]> gcc.gnu.org Git - gcc.git/blob - libstdc++-v3/configure
configure.ac: Set ABI_TWEAKS_SRCDIR.
[gcc.git] / libstdc++-v3 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for package-unused version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='package-unused'
269 PACKAGE_TARNAME='libstdc++'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='package-unused version-unused'
272 PACKAGE_BUGREPORT=''
273
274 ac_unique_file="src/ios.cc"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libtool_VERSION multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot glibcxx_builddir glibcxx_srcdir toplevel_srcdir CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LN_S AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOL CXXCPP CPPFLAGS enable_shared enable_static GLIBCXX_HOSTED_TRUE GLIBCXX_HOSTED_FALSE GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS CSTDIO_H BASIC_FILE_H BASIC_FILE_CC CPP EGREP check_msgfmt glibcxx_MOFILES glibcxx_POFILES glibcxx_localedir USE_NLS CLOCALE_H CCODECVT_H CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H ALLOCATOR_H ALLOCATOR_NAME C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE glibcxx_thread_h DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE EXTRA_CXX_FLAGS WERROR SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS LIBICONV SYMVER_MAP port_specific_symbol_files GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE baseline_dir GLIBCXX_TEST_WCHAR_T_TRUE GLIBCXX_TEST_WCHAR_T_FALSE GLIBCXX_TEST_ABI_TRUE GLIBCXX_TEST_ABI_FALSE ATOMICITY_SRCDIR ATOMIC_WORD_SRCDIR ABI_TWEAKS_SRCDIR OS_INC_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CXXCPP_set=${CXXCPP+set}
754 ac_env_CXXCPP_value=$CXXCPP
755 ac_cv_env_CXXCPP_set=${CXXCPP+set}
756 ac_cv_env_CXXCPP_value=$CXXCPP
757 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758 ac_env_CPPFLAGS_value=$CPPFLAGS
759 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761 ac_env_CPP_set=${CPP+set}
762 ac_env_CPP_value=$CPP
763 ac_cv_env_CPP_set=${CPP+set}
764 ac_cv_env_CPP_value=$CPP
765
766 #
767 # Report the --help message.
768 #
769 if test "$ac_init_help" = "long"; then
770 # Omit some internal or obsolete options to make the list less imposing.
771 # This message is too long to be a string in the A/UX 3.1 sh.
772 cat <<_ACEOF
773 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
774
775 Usage: $0 [OPTION]... [VAR=VALUE]...
776
777 To assign environment variables (e.g., CC, CFLAGS...), specify them as
778 VAR=VALUE. See below for descriptions of some of the useful variables.
779
780 Defaults for the options are specified in brackets.
781
782 Configuration:
783 -h, --help display this help and exit
784 --help=short display options specific to this package
785 --help=recursive display the short help of all the included packages
786 -V, --version display version information and exit
787 -q, --quiet, --silent do not print \`checking...' messages
788 --cache-file=FILE cache test results in FILE [disabled]
789 -C, --config-cache alias for \`--cache-file=config.cache'
790 -n, --no-create do not create output files
791 --srcdir=DIR find the sources in DIR [configure dir or \`..']
792
793 _ACEOF
794
795 cat <<_ACEOF
796 Installation directories:
797 --prefix=PREFIX install architecture-independent files in PREFIX
798 [$ac_default_prefix]
799 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
800 [PREFIX]
801
802 By default, \`make install' will install all the files in
803 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
804 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
805 for instance \`--prefix=\$HOME'.
806
807 For better control, use the options below.
808
809 Fine tuning of the installation directories:
810 --bindir=DIR user executables [EPREFIX/bin]
811 --sbindir=DIR system admin executables [EPREFIX/sbin]
812 --libexecdir=DIR program executables [EPREFIX/libexec]
813 --datadir=DIR read-only architecture-independent data [PREFIX/share]
814 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
815 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
816 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
817 --libdir=DIR object code libraries [EPREFIX/lib]
818 --includedir=DIR C header files [PREFIX/include]
819 --oldincludedir=DIR C header files for non-gcc [/usr/include]
820 --infodir=DIR info documentation [PREFIX/info]
821 --mandir=DIR man documentation [PREFIX/man]
822 _ACEOF
823
824 cat <<\_ACEOF
825
826 Program names:
827 --program-prefix=PREFIX prepend PREFIX to installed program names
828 --program-suffix=SUFFIX append SUFFIX to installed program names
829 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
830
831 System types:
832 --build=BUILD configure for building on BUILD [guessed]
833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
834 --target=TARGET configure for building compilers for TARGET [HOST]
835 _ACEOF
836 fi
837
838 if test -n "$ac_init_help"; then
839 case $ac_init_help in
840 short | recursive ) echo "Configuration of package-unused version-unused:";;
841 esac
842 cat <<\_ACEOF
843
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-multilib build many library versions (default)
848 --enable-maintainer-mode enable make rules and dependencies not useful
849 (and sometimes confusing) to the casual installer
850 --enable-shared=PKGS build shared libraries default=yes
851 --enable-static=PKGS build static libraries default=yes
852 --enable-fast-install=PKGS optimize for fast installation default=yes
853 --disable-libtool-lock avoid locking (might break parallel builds)
854 --disable-hosted-libstdcxx
855 only build freestanding C++ runtime support
856 --enable-sjlj-exceptions
857 force use of builtin_setjmp for exceptions
858 [default=auto]
859 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
860 [default=$is_hosted]
861 --enable-cstdio=PACKAGE use target-specific I/O package
862 [default=stdio]
863 --enable-clocale[=MODEL]
864 use MODEL for target locale package
865 [default=auto]
866 --enable-nls use Native Language Support (default)
867 --enable-libstdcxx-allocator=KIND
868 use KIND for target std::allocator base
869 [default=auto]
870 --enable-cheaders=KIND construct "C" headers for g++
871 [default=$c_model]
872 --enable-c-mbchar enable multibyte (wide) characters
873 [default=yes]
874 --enable-c99 turns on ISO/IEC 9899:1999 support
875 [default=yes]
876 --enable-long-long enables I/O support for 'long long'
877 [default=yes]
878 --enable-concept-checks use Boost-derived template checks [default=no]
879 --enable-libstdcxx-debug-flags=FLAGS
880 pass compiler FLAGS when building debug library
881 [default="-g3 -O0"]
882 --enable-libstdcxx-debug
883 build extra debug library [default=no]
884 --enable-cxx-flags=FLAGS
885 pass compiler FLAGS when building library
886 [default=]
887 --enable-symvers=STYLE enables symbol versioning of the shared library
888 [default=yes]
889 --enable-version-specific-runtime-libs
890 Specify that runtime libraries should be installed
891 in a compiler-specific directory
892
893 Optional Packages:
894 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
895 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
896 --with-target-subdir=SUBDIR
897 configuring in a subdirectory
898 --with-cross-host=HOST configuring with a cross compiler
899 --with-newlib assume newlib as a system C library
900 --with-gnu-ld assume the C compiler uses GNU ld default=no
901 --with-pic try to use only PIC/non-PIC objects default=use both
902 --with-gxx-include-dir=DIR
903 installation directory for include files
904
905 Some influential environment variables:
906 CC C compiler command
907 CFLAGS C compiler flags
908 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
909 nonstandard directory <lib dir>
910 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
911 headers in a nonstandard directory <include dir>
912 CXX C++ compiler command
913 CXXFLAGS C++ compiler flags
914 CXXCPP C++ preprocessor
915 CPP C preprocessor
916
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
919
920 _ACEOF
921 fi
922
923 if test "$ac_init_help" = "recursive"; then
924 # If there are subdirs, report their specific --help.
925 ac_popdir=`pwd`
926 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927 test -d $ac_dir || continue
928 ac_builddir=.
929
930 if test "$ac_dir" != .; then
931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932 # A "../" for each directory in $ac_dir_suffix.
933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
934 else
935 ac_dir_suffix= ac_top_builddir=
936 fi
937
938 case $srcdir in
939 .) # No --srcdir option. We are building in place.
940 ac_srcdir=.
941 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir=.
943 else
944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
945 fi ;;
946 [\\/]* | ?:[\\/]* ) # Absolute path.
947 ac_srcdir=$srcdir$ac_dir_suffix;
948 ac_top_srcdir=$srcdir ;;
949 *) # Relative path.
950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 esac
953
954 # Do not use `cd foo && pwd` to compute absolute paths, because
955 # the directories may not exist.
956 case `pwd` in
957 .) ac_abs_builddir="$ac_dir";;
958 *)
959 case "$ac_dir" in
960 .) ac_abs_builddir=`pwd`;;
961 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
962 *) ac_abs_builddir=`pwd`/"$ac_dir";;
963 esac;;
964 esac
965 case $ac_abs_builddir in
966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
967 *)
968 case ${ac_top_builddir}. in
969 .) ac_abs_top_builddir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
971 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972 esac;;
973 esac
974 case $ac_abs_builddir in
975 .) ac_abs_srcdir=$ac_srcdir;;
976 *)
977 case $ac_srcdir in
978 .) ac_abs_srcdir=$ac_abs_builddir;;
979 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
980 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981 esac;;
982 esac
983 case $ac_abs_builddir in
984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
985 *)
986 case $ac_top_srcdir in
987 .) ac_abs_top_srcdir=$ac_abs_builddir;;
988 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
989 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
990 esac;;
991 esac
992
993 cd $ac_dir
994 # Check for guested configure; otherwise get Cygnus style configure.
995 if test -f $ac_srcdir/configure.gnu; then
996 echo
997 $SHELL $ac_srcdir/configure.gnu --help=recursive
998 elif test -f $ac_srcdir/configure; then
999 echo
1000 $SHELL $ac_srcdir/configure --help=recursive
1001 elif test -f $ac_srcdir/configure.ac ||
1002 test -f $ac_srcdir/configure.in; then
1003 echo
1004 $ac_configure --help
1005 else
1006 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1007 fi
1008 cd "$ac_popdir"
1009 done
1010 fi
1011
1012 test -n "$ac_init_help" && exit 0
1013 if $ac_init_version; then
1014 cat <<\_ACEOF
1015 package-unused configure version-unused
1016 generated by GNU Autoconf 2.59
1017
1018 Copyright (C) 2003 Free Software Foundation, Inc.
1019 This configure script is free software; the Free Software Foundation
1020 gives unlimited permission to copy, distribute and modify it.
1021 _ACEOF
1022 exit 0
1023 fi
1024 exec 5>config.log
1025 cat >&5 <<_ACEOF
1026 This file contains any messages produced by compilers while
1027 running configure, to aid debugging if configure makes a mistake.
1028
1029 It was created by package-unused $as_me version-unused, which was
1030 generated by GNU Autoconf 2.59. Invocation command line was
1031
1032 $ $0 $@
1033
1034 _ACEOF
1035 {
1036 cat <<_ASUNAME
1037 ## --------- ##
1038 ## Platform. ##
1039 ## --------- ##
1040
1041 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1042 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1043 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1044 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1045 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1046
1047 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1048 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1049
1050 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1051 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1052 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1053 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1054 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1055 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1056 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1057
1058 _ASUNAME
1059
1060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1061 for as_dir in $PATH
1062 do
1063 IFS=$as_save_IFS
1064 test -z "$as_dir" && as_dir=.
1065 echo "PATH: $as_dir"
1066 done
1067
1068 } >&5
1069
1070 cat >&5 <<_ACEOF
1071
1072
1073 ## ----------- ##
1074 ## Core tests. ##
1075 ## ----------- ##
1076
1077 _ACEOF
1078
1079
1080 # Keep a trace of the command line.
1081 # Strip out --no-create and --no-recursion so they do not pile up.
1082 # Strip out --silent because we don't want to record it for future runs.
1083 # Also quote any args containing shell meta-characters.
1084 # Make two passes to allow for proper duplicate-argument suppression.
1085 ac_configure_args=
1086 ac_configure_args0=
1087 ac_configure_args1=
1088 ac_sep=
1089 ac_must_keep_next=false
1090 for ac_pass in 1 2
1091 do
1092 for ac_arg
1093 do
1094 case $ac_arg in
1095 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097 | -silent | --silent | --silen | --sile | --sil)
1098 continue ;;
1099 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1100 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101 esac
1102 case $ac_pass in
1103 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1104 2)
1105 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1106 if test $ac_must_keep_next = true; then
1107 ac_must_keep_next=false # Got value, back to normal.
1108 else
1109 case $ac_arg in
1110 *=* | --config-cache | -C | -disable-* | --disable-* \
1111 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1112 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1113 | -with-* | --with-* | -without-* | --without-* | --x)
1114 case "$ac_configure_args0 " in
1115 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116 esac
1117 ;;
1118 -* ) ac_must_keep_next=true ;;
1119 esac
1120 fi
1121 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1122 # Get rid of the leading space.
1123 ac_sep=" "
1124 ;;
1125 esac
1126 done
1127 done
1128 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1129 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1130
1131 # When interrupted or exit'd, cleanup temporary files, and complete
1132 # config.log. We remove comments because anyway the quotes in there
1133 # would cause problems or look ugly.
1134 # WARNING: Be sure not to use single quotes in there, as some shells,
1135 # such as our DU 5.0 friend, will then `close' the trap.
1136 trap 'exit_status=$?
1137 # Save into config.log some information that might help in debugging.
1138 {
1139 echo
1140
1141 cat <<\_ASBOX
1142 ## ---------------- ##
1143 ## Cache variables. ##
1144 ## ---------------- ##
1145 _ASBOX
1146 echo
1147 # The following way of writing the cache mishandles newlines in values,
1148 {
1149 (set) 2>&1 |
1150 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151 *ac_space=\ *)
1152 sed -n \
1153 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1154 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1155 ;;
1156 *)
1157 sed -n \
1158 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1159 ;;
1160 esac;
1161 }
1162 echo
1163
1164 cat <<\_ASBOX
1165 ## ----------------- ##
1166 ## Output variables. ##
1167 ## ----------------- ##
1168 _ASBOX
1169 echo
1170 for ac_var in $ac_subst_vars
1171 do
1172 eval ac_val=$`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
1174 done | sort
1175 echo
1176
1177 if test -n "$ac_subst_files"; then
1178 cat <<\_ASBOX
1179 ## ------------- ##
1180 ## Output files. ##
1181 ## ------------- ##
1182 _ASBOX
1183 echo
1184 for ac_var in $ac_subst_files
1185 do
1186 eval ac_val=$`echo $ac_var`
1187 echo "$ac_var='"'"'$ac_val'"'"'"
1188 done | sort
1189 echo
1190 fi
1191
1192 if test -s confdefs.h; then
1193 cat <<\_ASBOX
1194 ## ----------- ##
1195 ## confdefs.h. ##
1196 ## ----------- ##
1197 _ASBOX
1198 echo
1199 sed "/^$/d" confdefs.h | sort
1200 echo
1201 fi
1202 test "$ac_signal" != 0 &&
1203 echo "$as_me: caught signal $ac_signal"
1204 echo "$as_me: exit $exit_status"
1205 } >&5
1206 rm -f core *.core &&
1207 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1208 exit $exit_status
1209 ' 0
1210 for ac_signal in 1 2 13 15; do
1211 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1212 done
1213 ac_signal=0
1214
1215 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1216 rm -rf conftest* confdefs.h
1217 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218 echo >confdefs.h
1219
1220 # Predefined preprocessor variables.
1221
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_NAME "$PACKAGE_NAME"
1224 _ACEOF
1225
1226
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1229 _ACEOF
1230
1231
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1234 _ACEOF
1235
1236
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_STRING "$PACKAGE_STRING"
1239 _ACEOF
1240
1241
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1244 _ACEOF
1245
1246
1247 # Let the site file select an alternate cache file if it wants to.
1248 # Prefer explicitly selected file to automatically selected ones.
1249 if test -z "$CONFIG_SITE"; then
1250 if test "x$prefix" != xNONE; then
1251 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1252 else
1253 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1254 fi
1255 fi
1256 for ac_site_file in $CONFIG_SITE; do
1257 if test -r "$ac_site_file"; then
1258 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1259 echo "$as_me: loading site script $ac_site_file" >&6;}
1260 sed 's/^/| /' "$ac_site_file" >&5
1261 . "$ac_site_file"
1262 fi
1263 done
1264
1265 if test -r "$cache_file"; then
1266 # Some versions of bash will fail to source /dev/null (special
1267 # files actually), so we avoid doing that.
1268 if test -f "$cache_file"; then
1269 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1270 echo "$as_me: loading cache $cache_file" >&6;}
1271 case $cache_file in
1272 [\\/]* | ?:[\\/]* ) . $cache_file;;
1273 *) . ./$cache_file;;
1274 esac
1275 fi
1276 else
1277 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1278 echo "$as_me: creating cache $cache_file" >&6;}
1279 >$cache_file
1280 fi
1281
1282 # Check that the precious variables saved in the cache have kept the same
1283 # value.
1284 ac_cache_corrupted=false
1285 for ac_var in `(set) 2>&1 |
1286 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1287 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1288 eval ac_new_set=\$ac_env_${ac_var}_set
1289 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1290 eval ac_new_val="\$ac_env_${ac_var}_value"
1291 case $ac_old_set,$ac_new_set in
1292 set,)
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1296 ,set)
1297 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1298 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1299 ac_cache_corrupted=: ;;
1300 ,);;
1301 *)
1302 if test "x$ac_old_val" != "x$ac_new_val"; then
1303 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1304 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1305 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1306 echo "$as_me: former value: $ac_old_val" >&2;}
1307 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1308 echo "$as_me: current value: $ac_new_val" >&2;}
1309 ac_cache_corrupted=:
1310 fi;;
1311 esac
1312 # Pass precious variables to config.status.
1313 if test "$ac_new_set" = set; then
1314 case $ac_new_val in
1315 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1316 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1317 *) ac_arg=$ac_var=$ac_new_val ;;
1318 esac
1319 case " $ac_configure_args " in
1320 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1321 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1322 esac
1323 fi
1324 done
1325 if $ac_cache_corrupted; then
1326 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1327 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1328 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1329 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1330 { (exit 1); exit 1; }; }
1331 fi
1332
1333 ac_ext=c
1334 ac_cpp='$CPP $CPPFLAGS'
1335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366 ac_config_headers="$ac_config_headers config.h"
1367
1368
1369 # This works around the fact that libtool configuration may change LD
1370 # for this particular configuration, but some shells, instead of
1371 # keeping the changes in LD private, export them just because LD is
1372 # exported. Only used at the end of this file.
1373 ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1374
1375 # For libtool versioning info, format is CURRENT:REVISION:AGE
1376 libtool_VERSION=6:1:0
1377
1378
1379 # Find the rest of the source tree framework.
1380 # Default to --enable-multilib
1381 # Check whether --enable-multilib or --disable-multilib was given.
1382 if test "${enable_multilib+set}" = set; then
1383 enableval="$enable_multilib"
1384 case "$enableval" in
1385 yes) multilib=yes ;;
1386 no) multilib=no ;;
1387 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1388 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1389 { (exit 1); exit 1; }; } ;;
1390 esac
1391 else
1392 multilib=yes
1393 fi;
1394
1395 # We may get other options which we leave undocumented:
1396 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1397 # See config-ml.in if you want the gory details.
1398
1399 if test "$srcdir" = "."; then
1400 if test "$with_target_subdir" != "."; then
1401 multi_basedir="$srcdir/$with_multisrctop../.."
1402 else
1403 multi_basedir="$srcdir/$with_multisrctop.."
1404 fi
1405 else
1406 multi_basedir="$srcdir/.."
1407 fi
1408
1409
1410 ac_config_commands="$ac_config_commands default-1"
1411
1412
1413 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1414 #
1415 # You will slowly go insane if you do not grok the following fact: when
1416 # building v3 as part of the compiler, the top-level /target/ becomes the
1417 # library's /host/. configure then causes --target to default to --host,
1418 # exactly like any other package using autoconf. Therefore, 'target' and
1419 # 'host' will always be the same. This makes sense both for native and
1420 # cross compilers, just think about it for a little while. :-)
1421 #
1422 # Also, if v3 is being configured as part of a cross compiler, the top-level
1423 # configure script will pass the "real" host as $with_cross_host.
1424 #
1425 # Do not delete or change the following two lines. For why, see
1426 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1427 ac_aux_dir=
1428 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1429 if test -f $ac_dir/install-sh; then
1430 ac_aux_dir=$ac_dir
1431 ac_install_sh="$ac_aux_dir/install-sh -c"
1432 break
1433 elif test -f $ac_dir/install.sh; then
1434 ac_aux_dir=$ac_dir
1435 ac_install_sh="$ac_aux_dir/install.sh -c"
1436 break
1437 elif test -f $ac_dir/shtool; then
1438 ac_aux_dir=$ac_dir
1439 ac_install_sh="$ac_aux_dir/shtool install -c"
1440 break
1441 fi
1442 done
1443 if test -z "$ac_aux_dir"; then
1444 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1445 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1446 { (exit 1); exit 1; }; }
1447 fi
1448 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1449 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1450 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1451
1452 # Make sure we can run config.sub.
1453 $ac_config_sub sun4 >/dev/null 2>&1 ||
1454 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1455 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1456 { (exit 1); exit 1; }; }
1457
1458 echo "$as_me:$LINENO: checking build system type" >&5
1459 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1460 if test "${ac_cv_build+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 else
1463 ac_cv_build_alias=$build_alias
1464 test -z "$ac_cv_build_alias" &&
1465 ac_cv_build_alias=`$ac_config_guess`
1466 test -z "$ac_cv_build_alias" &&
1467 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1468 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1469 { (exit 1); exit 1; }; }
1470 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1471 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1472 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1473 { (exit 1); exit 1; }; }
1474
1475 fi
1476 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1477 echo "${ECHO_T}$ac_cv_build" >&6
1478 build=$ac_cv_build
1479 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1480 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1481 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482
1483
1484 echo "$as_me:$LINENO: checking host system type" >&5
1485 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1486 if test "${ac_cv_host+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1488 else
1489 ac_cv_host_alias=$host_alias
1490 test -z "$ac_cv_host_alias" &&
1491 ac_cv_host_alias=$ac_cv_build_alias
1492 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1493 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1495 { (exit 1); exit 1; }; }
1496
1497 fi
1498 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1499 echo "${ECHO_T}$ac_cv_host" >&6
1500 host=$ac_cv_host
1501 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1504
1505
1506 echo "$as_me:$LINENO: checking target system type" >&5
1507 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1508 if test "${ac_cv_target+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511 ac_cv_target_alias=$target_alias
1512 test "x$ac_cv_target_alias" = "x" &&
1513 ac_cv_target_alias=$ac_cv_host_alias
1514 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1515 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1517 { (exit 1); exit 1; }; }
1518
1519 fi
1520 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1521 echo "${ECHO_T}$ac_cv_target" >&6
1522 target=$ac_cv_target
1523 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1526
1527
1528 # The aliases save the names the user supplied, while $host etc.
1529 # will get canonicalized.
1530 test -n "$target_alias" &&
1531 test "$program_prefix$program_suffix$program_transform_name" = \
1532 NONENONEs,x,x, &&
1533 program_prefix=${target_alias}-
1534 target_alias=${target_alias-$host_alias}
1535
1536 # Handy for debugging:
1537 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1538
1539 if test "$build" != "$host"; then
1540 # We are being configured with some form of cross compiler.
1541 GLIBCXX_IS_NATIVE=false
1542
1543 else
1544 GLIBCXX_IS_NATIVE=true
1545 fi
1546
1547 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1548 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1549 # 1.x: minimum required version
1550 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1551 # of other PACKAGE_* variables will, however, and there's nothing
1552 # we can do about that; they come from AC_INIT).
1553 # foreign: we don't follow the normal rules for GNU packages (no COPYING
1554 # file in the top srcdir, etc, etc), so stop complaining.
1555 # no-dependencies: turns off auto dependency generation (just for now)
1556 # -Wall: turns on all automake warnings...
1557 # -Wno-portability: ...except this one, since GNU make is now required.
1558 am__api_version="1.8"
1559 # Find a good install program. We prefer a C program (faster),
1560 # so one script is as good as another. But avoid the broken or
1561 # incompatible versions:
1562 # SysV /etc/install, /usr/sbin/install
1563 # SunOS /usr/etc/install
1564 # IRIX /sbin/install
1565 # AIX /bin/install
1566 # AmigaOS /C/install, which installs bootblocks on floppy discs
1567 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1568 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1569 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1570 # OS/2's system install, which has a completely different semantic
1571 # ./install, which can be erroneously created by make from ./install.sh.
1572 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1573 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1574 if test -z "$INSTALL"; then
1575 if test "${ac_cv_path_install+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 for as_dir in $PATH
1580 do
1581 IFS=$as_save_IFS
1582 test -z "$as_dir" && as_dir=.
1583 # Account for people who put trailing slashes in PATH elements.
1584 case $as_dir/ in
1585 ./ | .// | /cC/* | \
1586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1587 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1588 /usr/ucb/* ) ;;
1589 *)
1590 # OSF1 and SCO ODT 3.0 have their own names for install.
1591 # Don't use installbsd from OSF since it installs stuff as root
1592 # by default.
1593 for ac_prog in ginstall scoinst install; do
1594 for ac_exec_ext in '' $ac_executable_extensions; do
1595 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1596 if test $ac_prog = install &&
1597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1598 # AIX install. It has an incompatible calling convention.
1599 :
1600 elif test $ac_prog = install &&
1601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1602 # program-specific install script used by HP pwplus--don't use.
1603 :
1604 else
1605 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1606 break 3
1607 fi
1608 fi
1609 done
1610 done
1611 ;;
1612 esac
1613 done
1614
1615
1616 fi
1617 if test "${ac_cv_path_install+set}" = set; then
1618 INSTALL=$ac_cv_path_install
1619 else
1620 # As a last resort, use the slow shell script. We don't cache a
1621 # path for INSTALL within a source directory, because that will
1622 # break other packages using the cache if that directory is
1623 # removed, or if the path is relative.
1624 INSTALL=$ac_install_sh
1625 fi
1626 fi
1627 echo "$as_me:$LINENO: result: $INSTALL" >&5
1628 echo "${ECHO_T}$INSTALL" >&6
1629
1630 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1631 # It thinks the first close brace ends the variable substitution.
1632 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1633
1634 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1635
1636 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1637
1638 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1639 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1640 # Just in case
1641 sleep 1
1642 echo timestamp > conftest.file
1643 # Do `set' in a subshell so we don't clobber the current shell's
1644 # arguments. Must try -L first in case configure is actually a
1645 # symlink; some systems play weird games with the mod time of symlinks
1646 # (eg FreeBSD returns the mod time of the symlink's containing
1647 # directory).
1648 if (
1649 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1650 if test "$*" = "X"; then
1651 # -L didn't work.
1652 set X `ls -t $srcdir/configure conftest.file`
1653 fi
1654 rm -f conftest.file
1655 if test "$*" != "X $srcdir/configure conftest.file" \
1656 && test "$*" != "X conftest.file $srcdir/configure"; then
1657
1658 # If neither matched, then we have a broken ls. This can happen
1659 # if, for instance, CONFIG_SHELL is bash and it inherits a
1660 # broken ls alias from the environment. This has actually
1661 # happened. Such a system could not be considered "sane".
1662 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1663 alias in your environment" >&5
1664 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1665 alias in your environment" >&2;}
1666 { (exit 1); exit 1; }; }
1667 fi
1668
1669 test "$2" = conftest.file
1670 )
1671 then
1672 # Ok.
1673 :
1674 else
1675 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1676 Check your system clock" >&5
1677 echo "$as_me: error: newly created file is older than distributed files!
1678 Check your system clock" >&2;}
1679 { (exit 1); exit 1; }; }
1680 fi
1681 echo "$as_me:$LINENO: result: yes" >&5
1682 echo "${ECHO_T}yes" >&6
1683 test "$program_prefix" != NONE &&
1684 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1685 # Use a double $ so make ignores it.
1686 test "$program_suffix" != NONE &&
1687 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1688 # Double any \ or $. echo might interpret backslashes.
1689 # By default was `s,x,x', remove it if useless.
1690 cat <<\_ACEOF >conftest.sed
1691 s/[\\$]/&&/g;s/;s,x,x,$//
1692 _ACEOF
1693 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1694 rm conftest.sed
1695
1696 # expand $ac_aux_dir to an absolute path
1697 am_aux_dir=`cd $ac_aux_dir && pwd`
1698
1699 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1700 # Use eval to expand $SHELL
1701 if eval "$MISSING --run true"; then
1702 am_missing_run="$MISSING --run "
1703 else
1704 am_missing_run=
1705 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1706 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1707 fi
1708
1709 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1710 # Keeping the `.' argument allows $(mkdir_p) to be used without
1711 # argument. Indeed, we sometimes output rules like
1712 # $(mkdir_p) $(somedir)
1713 # where $(somedir) is conditionally defined.
1714 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1715 # expensive solution, as it forces Make to start a sub-shell.)
1716 mkdir_p='mkdir -p -- .'
1717 else
1718 # On NextStep and OpenStep, the `mkdir' command does not
1719 # recognize any option. It will interpret all options as
1720 # directories to create, and then abort because `.' already
1721 # exists.
1722 for d in ./-p ./--version;
1723 do
1724 test -d $d && rmdir $d
1725 done
1726 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1727 if test -f "$ac_aux_dir/mkinstalldirs"; then
1728 mkdir_p='$(mkinstalldirs)'
1729 else
1730 mkdir_p='$(install_sh) -d'
1731 fi
1732 fi
1733
1734 for ac_prog in gawk mawk nawk awk
1735 do
1736 # Extract the first word of "$ac_prog", so it can be a program name with args.
1737 set dummy $ac_prog; ac_word=$2
1738 echo "$as_me:$LINENO: checking for $ac_word" >&5
1739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740 if test "${ac_cv_prog_AWK+set}" = set; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 else
1743 if test -n "$AWK"; then
1744 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1745 else
1746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 for as_dir in $PATH
1748 do
1749 IFS=$as_save_IFS
1750 test -z "$as_dir" && as_dir=.
1751 for ac_exec_ext in '' $ac_executable_extensions; do
1752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753 ac_cv_prog_AWK="$ac_prog"
1754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755 break 2
1756 fi
1757 done
1758 done
1759
1760 fi
1761 fi
1762 AWK=$ac_cv_prog_AWK
1763 if test -n "$AWK"; then
1764 echo "$as_me:$LINENO: result: $AWK" >&5
1765 echo "${ECHO_T}$AWK" >&6
1766 else
1767 echo "$as_me:$LINENO: result: no" >&5
1768 echo "${ECHO_T}no" >&6
1769 fi
1770
1771 test -n "$AWK" && break
1772 done
1773
1774 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1775 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1776 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1777 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1778 echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780 cat >conftest.make <<\_ACEOF
1781 all:
1782 @echo 'ac_maketemp="$(MAKE)"'
1783 _ACEOF
1784 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1785 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1786 if test -n "$ac_maketemp"; then
1787 eval ac_cv_prog_make_${ac_make}_set=yes
1788 else
1789 eval ac_cv_prog_make_${ac_make}_set=no
1790 fi
1791 rm -f conftest.make
1792 fi
1793 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1794 echo "$as_me:$LINENO: result: yes" >&5
1795 echo "${ECHO_T}yes" >&6
1796 SET_MAKE=
1797 else
1798 echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1800 SET_MAKE="MAKE=${MAKE-make}"
1801 fi
1802
1803 rm -rf .tst 2>/dev/null
1804 mkdir .tst 2>/dev/null
1805 if test -d .tst; then
1806 am__leading_dot=.
1807 else
1808 am__leading_dot=_
1809 fi
1810 rmdir .tst 2>/dev/null
1811
1812 # test to see if srcdir already configured
1813 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1814 test -f $srcdir/config.status; then
1815 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1816 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1817 { (exit 1); exit 1; }; }
1818 fi
1819
1820 # test whether we have cygpath
1821 if test -z "$CYGPATH_W"; then
1822 if (cygpath --version) >/dev/null 2>/dev/null; then
1823 CYGPATH_W='cygpath -w'
1824 else
1825 CYGPATH_W=echo
1826 fi
1827 fi
1828
1829
1830 # Define the identity of the package.
1831 PACKAGE='libstdc++'
1832 VERSION='version-unused'
1833
1834
1835 # Some tools Automake needs.
1836
1837 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1838
1839
1840 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1841
1842
1843 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1844
1845
1846 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1847
1848
1849 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1850
1851
1852 AMTAR=${AMTAR-"${am_missing_run}tar"}
1853
1854 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1855
1856 # Installed binaries are usually stripped using `strip' when the user
1857 # run `make install-strip'. However `strip' might not be the right
1858 # tool to use in cross-compilation environments, therefore Automake
1859 # will honor the `STRIP' environment variable to overrule this program.
1860 if test "$cross_compiling" != no; then
1861 if test -n "$ac_tool_prefix"; then
1862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1863 set dummy ${ac_tool_prefix}strip; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_STRIP+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869 if test -n "$STRIP"; then
1870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875 IFS=$as_save_IFS
1876 test -z "$as_dir" && as_dir=.
1877 for ac_exec_ext in '' $ac_executable_extensions; do
1878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881 break 2
1882 fi
1883 done
1884 done
1885
1886 fi
1887 fi
1888 STRIP=$ac_cv_prog_STRIP
1889 if test -n "$STRIP"; then
1890 echo "$as_me:$LINENO: result: $STRIP" >&5
1891 echo "${ECHO_T}$STRIP" >&6
1892 else
1893 echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 fi
1896
1897 fi
1898 if test -z "$ac_cv_prog_STRIP"; then
1899 ac_ct_STRIP=$STRIP
1900 # Extract the first word of "strip", so it can be a program name with args.
1901 set dummy strip; ac_word=$2
1902 echo "$as_me:$LINENO: checking for $ac_word" >&5
1903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1906 else
1907 if test -n "$ac_ct_STRIP"; then
1908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1909 else
1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 for as_dir in $PATH
1912 do
1913 IFS=$as_save_IFS
1914 test -z "$as_dir" && as_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917 ac_cv_prog_ac_ct_STRIP="strip"
1918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 break 2
1920 fi
1921 done
1922 done
1923
1924 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1925 fi
1926 fi
1927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1928 if test -n "$ac_ct_STRIP"; then
1929 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1930 echo "${ECHO_T}$ac_ct_STRIP" >&6
1931 else
1932 echo "$as_me:$LINENO: result: no" >&5
1933 echo "${ECHO_T}no" >&6
1934 fi
1935
1936 STRIP=$ac_ct_STRIP
1937 else
1938 STRIP="$ac_cv_prog_STRIP"
1939 fi
1940
1941 fi
1942 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1943
1944 # We need awk for the "check" target. The system "awk" is bad on
1945 # some platforms.
1946
1947
1948
1949
1950 # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
1951 # up critical shell variables.
1952
1953 # Keep these sync'd with the list in Makefile.am. The first provides an
1954 # expandable list at autoconf time; the second provides an expandable list
1955 # (i.e., shell variable) at configure time.
1956
1957 SUBDIRS='include libmath libsupc++ src po testsuite'
1958
1959 # These need to be absolute paths, yet at the same time need to
1960 # canonicalize only relative paths, because then amd will not unmount
1961 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1962 glibcxx_builddir=`${PWDCMD-pwd}`
1963 case $srcdir in
1964 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
1965 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1966 esac
1967 toplevel_srcdir=${glibcxx_srcdir}/..
1968
1969
1970
1971
1972 # We use these options to decide which functions to include. They are
1973 # set from the top level.
1974
1975 # Check whether --with-target-subdir or --without-target-subdir was given.
1976 if test "${with_target_subdir+set}" = set; then
1977 withval="$with_target_subdir"
1978
1979 fi;
1980
1981
1982 # Check whether --with-cross-host or --without-cross-host was given.
1983 if test "${with_cross_host+set}" = set; then
1984 withval="$with_cross_host"
1985
1986 fi;
1987
1988
1989 # Check whether --with-newlib or --without-newlib was given.
1990 if test "${with_newlib+set}" = set; then
1991 withval="$with_newlib"
1992
1993 fi;
1994
1995 # We're almost certainly being configured before anything else which uses
1996 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
1997 # we not cache the value of CXX that we "discover" here, because it's set
1998 # to something unique for us and libjava. Other target libraries need to
1999 # find CXX for themselves. We yank the rug out from under the normal AC_*
2000 # process by sneakily renaming the cache variable. This also lets us debug
2001 # the value of "our" CXX in postmortems.
2002 #
2003 # We must also force CXX to /not/ be a precious variable, otherwise the
2004 # wrong (non-multilib-adjusted) value will be used in multilibs. This
2005 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
2006 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2007 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2008 #
2009 # -fno-builtin must be present here so that a non-conflicting form of
2010 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2011
2012
2013
2014
2015 save_CXXFLAGS="$CXXFLAGS"
2016 CXXFLAGS="$CXXFLAGS -fno-builtin"
2017 ac_ext=c
2018 ac_cpp='$CPP $CPPFLAGS'
2019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2022 if test -n "$ac_tool_prefix"; then
2023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2024 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2025 echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030 if test -n "$CC"; then
2031 ac_cv_prog_CC="$CC" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2040 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 break 2
2043 fi
2044 done
2045 done
2046
2047 fi
2048 fi
2049 CC=$ac_cv_prog_CC
2050 if test -n "$CC"; then
2051 echo "$as_me:$LINENO: result: $CC" >&5
2052 echo "${ECHO_T}$CC" >&6
2053 else
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2056 fi
2057
2058 fi
2059 if test -z "$ac_cv_prog_CC"; then
2060 ac_ct_CC=$CC
2061 # Extract the first word of "gcc", so it can be a program name with args.
2062 set dummy gcc; ac_word=$2
2063 echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068 if test -n "$ac_ct_CC"; then
2069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2070 else
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 for as_dir in $PATH
2073 do
2074 IFS=$as_save_IFS
2075 test -z "$as_dir" && as_dir=.
2076 for ac_exec_ext in '' $ac_executable_extensions; do
2077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2078 ac_cv_prog_ac_ct_CC="gcc"
2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 break 2
2081 fi
2082 done
2083 done
2084
2085 fi
2086 fi
2087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2088 if test -n "$ac_ct_CC"; then
2089 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2090 echo "${ECHO_T}$ac_ct_CC" >&6
2091 else
2092 echo "$as_me:$LINENO: result: no" >&5
2093 echo "${ECHO_T}no" >&6
2094 fi
2095
2096 CC=$ac_ct_CC
2097 else
2098 CC="$ac_cv_prog_CC"
2099 fi
2100
2101 if test -z "$CC"; then
2102 if test -n "$ac_tool_prefix"; then
2103 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2104 set dummy ${ac_tool_prefix}cc; ac_word=$2
2105 echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110 if test -n "$CC"; then
2111 ac_cv_prog_CC="$CC" # Let the user override the test.
2112 else
2113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 for as_dir in $PATH
2115 do
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2120 ac_cv_prog_CC="${ac_tool_prefix}cc"
2121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 break 2
2123 fi
2124 done
2125 done
2126
2127 fi
2128 fi
2129 CC=$ac_cv_prog_CC
2130 if test -n "$CC"; then
2131 echo "$as_me:$LINENO: result: $CC" >&5
2132 echo "${ECHO_T}$CC" >&6
2133 else
2134 echo "$as_me:$LINENO: result: no" >&5
2135 echo "${ECHO_T}no" >&6
2136 fi
2137
2138 fi
2139 if test -z "$ac_cv_prog_CC"; then
2140 ac_ct_CC=$CC
2141 # Extract the first word of "cc", so it can be a program name with args.
2142 set dummy cc; ac_word=$2
2143 echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 if test -n "$ac_ct_CC"; then
2149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158 ac_cv_prog_ac_ct_CC="cc"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 break 2
2161 fi
2162 done
2163 done
2164
2165 fi
2166 fi
2167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2168 if test -n "$ac_ct_CC"; then
2169 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2170 echo "${ECHO_T}$ac_ct_CC" >&6
2171 else
2172 echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6
2174 fi
2175
2176 CC=$ac_ct_CC
2177 else
2178 CC="$ac_cv_prog_CC"
2179 fi
2180
2181 fi
2182 if test -z "$CC"; then
2183 # Extract the first word of "cc", so it can be a program name with args.
2184 set dummy cc; ac_word=$2
2185 echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187 if test "${ac_cv_prog_CC+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2189 else
2190 if test -n "$CC"; then
2191 ac_cv_prog_CC="$CC" # Let the user override the test.
2192 else
2193 ac_prog_rejected=no
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2196 do
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 for ac_exec_ext in '' $ac_executable_extensions; do
2200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2202 ac_prog_rejected=yes
2203 continue
2204 fi
2205 ac_cv_prog_CC="cc"
2206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 break 2
2208 fi
2209 done
2210 done
2211
2212 if test $ac_prog_rejected = yes; then
2213 # We found a bogon in the path, so make sure we never use it.
2214 set dummy $ac_cv_prog_CC
2215 shift
2216 if test $# != 0; then
2217 # We chose a different compiler from the bogus one.
2218 # However, it has the same basename, so the bogon will be chosen
2219 # first if we set CC to just the basename; use the full file name.
2220 shift
2221 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2222 fi
2223 fi
2224 fi
2225 fi
2226 CC=$ac_cv_prog_CC
2227 if test -n "$CC"; then
2228 echo "$as_me:$LINENO: result: $CC" >&5
2229 echo "${ECHO_T}$CC" >&6
2230 else
2231 echo "$as_me:$LINENO: result: no" >&5
2232 echo "${ECHO_T}no" >&6
2233 fi
2234
2235 fi
2236 if test -z "$CC"; then
2237 if test -n "$ac_tool_prefix"; then
2238 for ac_prog in cl
2239 do
2240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2242 echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 if test -n "$CC"; then
2248 ac_cv_prog_CC="$CC" # Let the user override the test.
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2257 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 break 2
2260 fi
2261 done
2262 done
2263
2264 fi
2265 fi
2266 CC=$ac_cv_prog_CC
2267 if test -n "$CC"; then
2268 echo "$as_me:$LINENO: result: $CC" >&5
2269 echo "${ECHO_T}$CC" >&6
2270 else
2271 echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6
2273 fi
2274
2275 test -n "$CC" && break
2276 done
2277 fi
2278 if test -z "$CC"; then
2279 ac_ct_CC=$CC
2280 for ac_prog in cl
2281 do
2282 # Extract the first word of "$ac_prog", so it can be a program name with args.
2283 set dummy $ac_prog; ac_word=$2
2284 echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289 if test -n "$ac_ct_CC"; then
2290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2291 else
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2294 do
2295 IFS=$as_save_IFS
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2299 ac_cv_prog_ac_ct_CC="$ac_prog"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 break 2
2302 fi
2303 done
2304 done
2305
2306 fi
2307 fi
2308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2309 if test -n "$ac_ct_CC"; then
2310 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2311 echo "${ECHO_T}$ac_ct_CC" >&6
2312 else
2313 echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6
2315 fi
2316
2317 test -n "$ac_ct_CC" && break
2318 done
2319
2320 CC=$ac_ct_CC
2321 fi
2322
2323 fi
2324
2325
2326 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2327 See \`config.log' for more details." >&5
2328 echo "$as_me: error: no acceptable C compiler found in \$PATH
2329 See \`config.log' for more details." >&2;}
2330 { (exit 1); exit 1; }; }
2331
2332 # Provide some information about the compiler.
2333 echo "$as_me:$LINENO:" \
2334 "checking for C compiler version" >&5
2335 ac_compiler=`set X $ac_compile; echo $2`
2336 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2337 (eval $ac_compiler --version </dev/null >&5) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); }
2341 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2342 (eval $ac_compiler -v </dev/null >&5) 2>&5
2343 ac_status=$?
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }
2346 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2347 (eval $ac_compiler -V </dev/null >&5) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }
2351
2352 cat >conftest.$ac_ext <<_ACEOF
2353 /* confdefs.h. */
2354 _ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h. */
2358
2359 int
2360 main ()
2361 {
2362
2363 ;
2364 return 0;
2365 }
2366 _ACEOF
2367 # FIXME: Cleanup?
2368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2369 (eval $ac_link) 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; then
2373 gcc_no_link=no
2374 else
2375 gcc_no_link=yes
2376 fi
2377
2378 if test x$gcc_no_link = xyes; then
2379 # Setting cross_compile will disable run tests; it will
2380 # also disable AC_CHECK_FILE but that's generally
2381 # correct if we can't link.
2382 cross_compiling=yes
2383 EXEEXT=
2384 else
2385 cat >conftest.$ac_ext <<_ACEOF
2386 /* confdefs.h. */
2387 _ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2391
2392 int
2393 main ()
2394 {
2395
2396 ;
2397 return 0;
2398 }
2399 _ACEOF
2400 ac_clean_files_save=$ac_clean_files
2401 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2402 # Try to create an executable without -o first, disregard a.out.
2403 # It will help us diagnose broken compilers, and finding out an intuition
2404 # of exeext.
2405 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2406 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2407 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2408 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2409 (eval $ac_link_default) 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; then
2413 # Find the output, starting from the most likely. This scheme is
2414 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2415 # resort.
2416
2417 # Be careful to initialize this variable, since it used to be cached.
2418 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2419 ac_cv_exeext=
2420 # b.out is created by i960 compilers.
2421 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2422 do
2423 test -f "$ac_file" || continue
2424 case $ac_file in
2425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2426 ;;
2427 conftest.$ac_ext )
2428 # This is the source file.
2429 ;;
2430 [ab].out )
2431 # We found the default executable, but exeext='' is most
2432 # certainly right.
2433 break;;
2434 *.* )
2435 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2436 # FIXME: I believe we export ac_cv_exeext for Libtool,
2437 # but it would be cool to find out if it's true. Does anybody
2438 # maintain Libtool? --akim.
2439 export ac_cv_exeext
2440 break;;
2441 * )
2442 break;;
2443 esac
2444 done
2445 else
2446 echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2450 See \`config.log' for more details." >&5
2451 echo "$as_me: error: C compiler cannot create executables
2452 See \`config.log' for more details." >&2;}
2453 { (exit 77); exit 77; }; }
2454 fi
2455
2456 ac_exeext=$ac_cv_exeext
2457 echo "$as_me:$LINENO: result: $ac_file" >&5
2458 echo "${ECHO_T}$ac_file" >&6
2459
2460 # Check the compiler produces executables we can run. If not, either
2461 # the compiler is broken, or we cross compile.
2462 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2463 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2464 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2465 # If not cross compiling, check that we can run a simple program.
2466 if test "$cross_compiling" != yes; then
2467 if { ac_try='./$ac_file'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469 (eval $ac_try) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 cross_compiling=no
2474 else
2475 if test "$cross_compiling" = maybe; then
2476 cross_compiling=yes
2477 else
2478 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2479 If you meant to cross compile, use \`--host'.
2480 See \`config.log' for more details." >&5
2481 echo "$as_me: error: cannot run C compiled programs.
2482 If you meant to cross compile, use \`--host'.
2483 See \`config.log' for more details." >&2;}
2484 { (exit 1); exit 1; }; }
2485 fi
2486 fi
2487 fi
2488 echo "$as_me:$LINENO: result: yes" >&5
2489 echo "${ECHO_T}yes" >&6
2490
2491 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2492 ac_clean_files=$ac_clean_files_save
2493 # Check the compiler produces executables we can run. If not, either
2494 # the compiler is broken, or we cross compile.
2495 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2496 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2497 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2498 echo "${ECHO_T}$cross_compiling" >&6
2499
2500 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2501 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2503 (eval $ac_link) 2>&5
2504 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; then
2507 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2508 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2509 # work properly (i.e., refer to `conftest.exe'), while it won't with
2510 # `rm'.
2511 for ac_file in conftest.exe conftest conftest.*; do
2512 test -f "$ac_file" || continue
2513 case $ac_file in
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2515 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2516 export ac_cv_exeext
2517 break;;
2518 * ) break;;
2519 esac
2520 done
2521 else
2522 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2525 See \`config.log' for more details." >&2;}
2526 { (exit 1); exit 1; }; }
2527 fi
2528
2529 rm -f conftest$ac_cv_exeext
2530 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2531 echo "${ECHO_T}$ac_cv_exeext" >&6
2532
2533 rm -f conftest.$ac_ext
2534 EXEEXT=$ac_cv_exeext
2535 ac_exeext=$EXEEXT
2536 fi
2537 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2538 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2539 if test "${ac_cv_objext+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542 cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h. */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2548
2549 int
2550 main ()
2551 {
2552
2553 ;
2554 return 0;
2555 }
2556 _ACEOF
2557 rm -f conftest.o conftest.obj
2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; then
2563 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2564 case $ac_file in
2565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2566 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2567 break;;
2568 esac
2569 done
2570 else
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2575 See \`config.log' for more details." >&5
2576 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2577 See \`config.log' for more details." >&2;}
2578 { (exit 1); exit 1; }; }
2579 fi
2580
2581 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2582 fi
2583 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2584 echo "${ECHO_T}$ac_cv_objext" >&6
2585 OBJEXT=$ac_cv_objext
2586 ac_objext=$OBJEXT
2587 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2588 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2589 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592 cat >conftest.$ac_ext <<_ACEOF
2593 /* confdefs.h. */
2594 _ACEOF
2595 cat confdefs.h >>conftest.$ac_ext
2596 cat >>conftest.$ac_ext <<_ACEOF
2597 /* end confdefs.h. */
2598
2599 int
2600 main ()
2601 {
2602 #ifndef __GNUC__
2603 choke me
2604 #endif
2605
2606 ;
2607 return 0;
2608 }
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612 (eval $ac_compile) 2>conftest.er1
2613 ac_status=$?
2614 grep -v '^ *+' conftest.er1 >conftest.err
2615 rm -f conftest.er1
2616 cat conftest.err >&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -z "$ac_c_werror_flag"
2620 || test ! -s conftest.err'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; } &&
2626 { ac_try='test -s conftest.$ac_objext'
2627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 (eval $ac_try) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; }; then
2632 ac_compiler_gnu=yes
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 ac_compiler_gnu=no
2638 fi
2639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2640 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2641
2642 fi
2643 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2644 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2645 GCC=`test $ac_compiler_gnu = yes && echo yes`
2646 ac_test_CFLAGS=${CFLAGS+set}
2647 ac_save_CFLAGS=$CFLAGS
2648 CFLAGS="-g"
2649 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2650 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2651 if test "${ac_cv_prog_cc_g+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654 cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h. */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2660
2661 int
2662 main ()
2663 {
2664
2665 ;
2666 return 0;
2667 }
2668 _ACEOF
2669 rm -f conftest.$ac_objext
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671 (eval $ac_compile) 2>conftest.er1
2672 ac_status=$?
2673 grep -v '^ *+' conftest.er1 >conftest.err
2674 rm -f conftest.er1
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } &&
2678 { ac_try='test -z "$ac_c_werror_flag"
2679 || test ! -s conftest.err'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681 (eval $ac_try) 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; } &&
2685 { ac_try='test -s conftest.$ac_objext'
2686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687 (eval $ac_try) 2>&5
2688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }; }; then
2691 ac_cv_prog_cc_g=yes
2692 else
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696 ac_cv_prog_cc_g=no
2697 fi
2698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2699 fi
2700 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2701 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2702 if test "$ac_test_CFLAGS" = set; then
2703 CFLAGS=$ac_save_CFLAGS
2704 elif test $ac_cv_prog_cc_g = yes; then
2705 if test "$GCC" = yes; then
2706 CFLAGS="-g -O2"
2707 else
2708 CFLAGS="-g"
2709 fi
2710 else
2711 if test "$GCC" = yes; then
2712 CFLAGS="-O2"
2713 else
2714 CFLAGS=
2715 fi
2716 fi
2717 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2718 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2719 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722 ac_cv_prog_cc_stdc=no
2723 ac_save_CC=$CC
2724 cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h. */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2730 #include <stdarg.h>
2731 #include <stdio.h>
2732 #include <sys/types.h>
2733 #include <sys/stat.h>
2734 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2735 struct buf { int x; };
2736 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2737 static char *e (p, i)
2738 char **p;
2739 int i;
2740 {
2741 return p[i];
2742 }
2743 static char *f (char * (*g) (char **, int), char **p, ...)
2744 {
2745 char *s;
2746 va_list v;
2747 va_start (v,p);
2748 s = g (p, va_arg (v,int));
2749 va_end (v);
2750 return s;
2751 }
2752
2753 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2754 function prototypes and stuff, but not '\xHH' hex character constants.
2755 These don't provoke an error unfortunately, instead are silently treated
2756 as 'x'. The following induces an error, until -std1 is added to get
2757 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2758 array size at least. It's necessary to write '\x00'==0 to get something
2759 that's true only with -std1. */
2760 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2761
2762 int test (int i, double x);
2763 struct s1 {int (*f) (int a);};
2764 struct s2 {int (*f) (double a);};
2765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2766 int argc;
2767 char **argv;
2768 int
2769 main ()
2770 {
2771 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2772 ;
2773 return 0;
2774 }
2775 _ACEOF
2776 # Don't try gcc -ansi; that turns off useful extensions and
2777 # breaks some systems' header files.
2778 # AIX -qlanglvl=ansi
2779 # Ultrix and OSF/1 -std1
2780 # HP-UX 10.20 and later -Ae
2781 # HP-UX older versions -Aa -D_HPUX_SOURCE
2782 # SVR4 -Xc -D__EXTENSIONS__
2783 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2784 do
2785 CC="$ac_save_CC $ac_arg"
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>conftest.er1
2789 ac_status=$?
2790 grep -v '^ *+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -z "$ac_c_werror_flag"
2796 || test ! -s conftest.err'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_cv_prog_cc_stdc=$ac_arg
2809 break
2810 else
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814 fi
2815 rm -f conftest.err conftest.$ac_objext
2816 done
2817 rm -f conftest.$ac_ext conftest.$ac_objext
2818 CC=$ac_save_CC
2819
2820 fi
2821
2822 case "x$ac_cv_prog_cc_stdc" in
2823 x|xno)
2824 echo "$as_me:$LINENO: result: none needed" >&5
2825 echo "${ECHO_T}none needed" >&6 ;;
2826 *)
2827 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2828 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2829 CC="$CC $ac_cv_prog_cc_stdc" ;;
2830 esac
2831
2832 # Some people use a C++ compiler to compile C. Since we use `exit',
2833 # in C++ we need to declare it. In case someone uses the same compiler
2834 # for both compiling C and C++ we need to have the C++ compiler decide
2835 # the declaration of exit, since it's the most demanding environment.
2836 cat >conftest.$ac_ext <<_ACEOF
2837 #ifndef __cplusplus
2838 choke me
2839 #endif
2840 _ACEOF
2841 rm -f conftest.$ac_objext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843 (eval $ac_compile) 2>conftest.er1
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 (eval $ac_try) 2>&5
2854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest.$ac_objext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 (eval $ac_try) 2>&5
2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 for ac_declaration in \
2864 '' \
2865 'extern "C" void std::exit (int) throw (); using std::exit;' \
2866 'extern "C" void std::exit (int); using std::exit;' \
2867 'extern "C" void exit (int) throw ();' \
2868 'extern "C" void exit (int);' \
2869 'void exit (int);'
2870 do
2871 cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h. */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2877 $ac_declaration
2878 #include <stdlib.h>
2879 int
2880 main ()
2881 {
2882 exit (42);
2883 ;
2884 return 0;
2885 }
2886 _ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>conftest.er1
2890 ac_status=$?
2891 grep -v '^ *+' conftest.er1 >conftest.err
2892 rm -f conftest.er1
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } &&
2896 { ac_try='test -z "$ac_c_werror_flag"
2897 || test ! -s conftest.err'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899 (eval $ac_try) 2>&5
2900 ac_status=$?
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; } &&
2903 { ac_try='test -s conftest.$ac_objext'
2904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905 (eval $ac_try) 2>&5
2906 ac_status=$?
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }; }; then
2909 :
2910 else
2911 echo "$as_me: failed program was:" >&5
2912 sed 's/^/| /' conftest.$ac_ext >&5
2913
2914 continue
2915 fi
2916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917 cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h. */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923 $ac_declaration
2924 int
2925 main ()
2926 {
2927 exit (42);
2928 ;
2929 return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_c_werror_flag"
2942 || test ! -s conftest.err'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 break
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 fi
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961 done
2962 rm -f conftest*
2963 if test -n "$ac_declaration"; then
2964 echo '#ifdef __cplusplus' >>confdefs.h
2965 echo $ac_declaration >>confdefs.h
2966 echo '#endif' >>confdefs.h
2967 fi
2968
2969 else
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2972
2973 fi
2974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980
2981 ac_ext=cc
2982 ac_cpp='$CXXCPP $CPPFLAGS'
2983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2986 if test -n "$ac_tool_prefix"; then
2987 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2988 do
2989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2991 echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2993 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996 if test -n "$CXX"; then
2997 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3006 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010 done
3011 done
3012
3013 fi
3014 fi
3015 CXX=$glibcxx_cv_prog_CXX
3016 if test -n "$CXX"; then
3017 echo "$as_me:$LINENO: result: $CXX" >&5
3018 echo "${ECHO_T}$CXX" >&6
3019 else
3020 echo "$as_me:$LINENO: result: no" >&5
3021 echo "${ECHO_T}no" >&6
3022 fi
3023
3024 test -n "$CXX" && break
3025 done
3026 fi
3027 if test -z "$CXX"; then
3028 ac_ct_CXX=$CXX
3029 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3030 do
3031 # Extract the first word of "$ac_prog", so it can be a program name with args.
3032 set dummy $ac_prog; ac_word=$2
3033 echo "$as_me:$LINENO: checking for $ac_word" >&5
3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3035 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038 if test -n "$ac_ct_CXX"; then
3039 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048 ac_cv_prog_ac_ct_CXX="$ac_prog"
3049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 break 2
3051 fi
3052 done
3053 done
3054
3055 fi
3056 fi
3057 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3058 if test -n "$ac_ct_CXX"; then
3059 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3060 echo "${ECHO_T}$ac_ct_CXX" >&6
3061 else
3062 echo "$as_me:$LINENO: result: no" >&5
3063 echo "${ECHO_T}no" >&6
3064 fi
3065
3066 test -n "$ac_ct_CXX" && break
3067 done
3068 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3069
3070 CXX=$ac_ct_CXX
3071 fi
3072
3073
3074 # Provide some information about the compiler.
3075 echo "$as_me:$LINENO:" \
3076 "checking for C++ compiler version" >&5
3077 ac_compiler=`set X $ac_compile; echo $2`
3078 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3079 (eval $ac_compiler --version </dev/null >&5) 2>&5
3080 ac_status=$?
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }
3083 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3084 (eval $ac_compiler -v </dev/null >&5) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }
3088 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3089 (eval $ac_compiler -V </dev/null >&5) 2>&5
3090 ac_status=$?
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }
3093
3094 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3095 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3096 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3097 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 else
3099 cat >conftest.$ac_ext <<_ACEOF
3100 /* confdefs.h. */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3105
3106 int
3107 main ()
3108 {
3109 #ifndef __GNUC__
3110 choke me
3111 #endif
3112
3113 ;
3114 return 0;
3115 }
3116 _ACEOF
3117 rm -f conftest.$ac_objext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3119 (eval $ac_compile) 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_cxx_werror_flag"
3127 || test ! -s conftest.err'
3128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3129 (eval $ac_try) 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; } &&
3133 { ac_try='test -s conftest.$ac_objext'
3134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135 (eval $ac_try) 2>&5
3136 ac_status=$?
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; }; then
3139 ac_compiler_gnu=yes
3140 else
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 ac_compiler_gnu=no
3145 fi
3146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3148
3149 fi
3150 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3151 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3152 GXX=`test $ac_compiler_gnu = yes && echo yes`
3153 ac_test_CXXFLAGS=${CXXFLAGS+set}
3154 ac_save_CXXFLAGS=$CXXFLAGS
3155 CXXFLAGS="-g"
3156 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3157 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3158 if test "${ac_cv_prog_cxx_g+set}" = set; then
3159 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161 cat >conftest.$ac_ext <<_ACEOF
3162 /* confdefs.h. */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3167
3168 int
3169 main ()
3170 {
3171
3172 ;
3173 return 0;
3174 }
3175 _ACEOF
3176 rm -f conftest.$ac_objext
3177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3178 (eval $ac_compile) 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try='test -z "$ac_cxx_werror_flag"
3186 || test ! -s conftest.err'
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 (eval $ac_try) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 (eval $ac_try) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3198 ac_cv_prog_cxx_g=yes
3199 else
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 ac_cv_prog_cxx_g=no
3204 fi
3205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3206 fi
3207 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3208 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3209 if test "$ac_test_CXXFLAGS" = set; then
3210 CXXFLAGS=$ac_save_CXXFLAGS
3211 elif test $ac_cv_prog_cxx_g = yes; then
3212 if test "$GXX" = yes; then
3213 CXXFLAGS="-g -O2"
3214 else
3215 CXXFLAGS="-g"
3216 fi
3217 else
3218 if test "$GXX" = yes; then
3219 CXXFLAGS="-O2"
3220 else
3221 CXXFLAGS=
3222 fi
3223 fi
3224 for ac_declaration in \
3225 '' \
3226 'extern "C" void std::exit (int) throw (); using std::exit;' \
3227 'extern "C" void std::exit (int); using std::exit;' \
3228 'extern "C" void exit (int) throw ();' \
3229 'extern "C" void exit (int);' \
3230 'void exit (int);'
3231 do
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h. */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3238 $ac_declaration
3239 #include <stdlib.h>
3240 int
3241 main ()
3242 {
3243 exit (42);
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>conftest.er1
3251 ac_status=$?
3252 grep -v '^ *+' conftest.er1 >conftest.err
3253 rm -f conftest.er1
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try='test -z "$ac_cxx_werror_flag"
3258 || test ! -s conftest.err'
3259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 (eval $ac_try) 2>&5
3261 ac_status=$?
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; } &&
3264 { ac_try='test -s conftest.$ac_objext'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 (eval $ac_try) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; }; then
3270 :
3271 else
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3274
3275 continue
3276 fi
3277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3278 cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h. */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3284 $ac_declaration
3285 int
3286 main ()
3287 {
3288 exit (42);
3289 ;
3290 return 0;
3291 }
3292 _ACEOF
3293 rm -f conftest.$ac_objext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3295 (eval $ac_compile) 2>conftest.er1
3296 ac_status=$?
3297 grep -v '^ *+' conftest.er1 >conftest.err
3298 rm -f conftest.er1
3299 cat conftest.err >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } &&
3302 { ac_try='test -z "$ac_cxx_werror_flag"
3303 || test ! -s conftest.err'
3304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305 (eval $ac_try) 2>&5
3306 ac_status=$?
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }; } &&
3309 { ac_try='test -s conftest.$ac_objext'
3310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311 (eval $ac_try) 2>&5
3312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 break
3316 else
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 fi
3321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3322 done
3323 rm -f conftest*
3324 if test -n "$ac_declaration"; then
3325 echo '#ifdef __cplusplus' >>confdefs.h
3326 echo $ac_declaration >>confdefs.h
3327 echo '#endif' >>confdefs.h
3328 fi
3329
3330 ac_ext=c
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335
3336 CXXFLAGS="$save_CXXFLAGS"
3337
3338
3339
3340
3341 # For directory versioning (e.g., headers) and other variables.
3342 echo "$as_me:$LINENO: checking for GCC version number" >&5
3343 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3344 gcc_version=`$CXX -dumpversion`
3345 echo "$as_me:$LINENO: result: $gcc_version" >&5
3346 echo "${ECHO_T}$gcc_version" >&6
3347
3348 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3349 # available). Uncomment the next line to force a particular method.
3350 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3351 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3352 LN_S=$as_ln_s
3353 if test "$LN_S" = "ln -s"; then
3354 echo "$as_me:$LINENO: result: yes" >&5
3355 echo "${ECHO_T}yes" >&6
3356 else
3357 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3358 echo "${ECHO_T}no, using $LN_S" >&6
3359 fi
3360
3361 #LN_S='cp -p'
3362
3363 if test -n "$ac_tool_prefix"; then
3364 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3365 set dummy ${ac_tool_prefix}as; ac_word=$2
3366 echo "$as_me:$LINENO: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3368 if test "${ac_cv_prog_AS+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 else
3371 if test -n "$AS"; then
3372 ac_cv_prog_AS="$AS" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_AS="${ac_tool_prefix}as"
3382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385 done
3386 done
3387
3388 fi
3389 fi
3390 AS=$ac_cv_prog_AS
3391 if test -n "$AS"; then
3392 echo "$as_me:$LINENO: result: $AS" >&5
3393 echo "${ECHO_T}$AS" >&6
3394 else
3395 echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6
3397 fi
3398
3399 fi
3400 if test -z "$ac_cv_prog_AS"; then
3401 ac_ct_AS=$AS
3402 # Extract the first word of "as", so it can be a program name with args.
3403 set dummy as; ac_word=$2
3404 echo "$as_me:$LINENO: checking for $ac_word" >&5
3405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3406 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 else
3409 if test -n "$ac_ct_AS"; then
3410 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3414 do
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_ac_ct_AS="as"
3420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 break 2
3422 fi
3423 done
3424 done
3425
3426 fi
3427 fi
3428 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3429 if test -n "$ac_ct_AS"; then
3430 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3431 echo "${ECHO_T}$ac_ct_AS" >&6
3432 else
3433 echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3435 fi
3436
3437 AS=$ac_ct_AS
3438 else
3439 AS="$ac_cv_prog_AS"
3440 fi
3441
3442 if test -n "$ac_tool_prefix"; then
3443 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3444 set dummy ${ac_tool_prefix}ar; ac_word=$2
3445 echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3447 if test "${ac_cv_prog_AR+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450 if test -n "$AR"; then
3451 ac_cv_prog_AR="$AR" # Let the user override the test.
3452 else
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456 IFS=$as_save_IFS
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 ac_cv_prog_AR="${ac_tool_prefix}ar"
3461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 break 2
3463 fi
3464 done
3465 done
3466
3467 fi
3468 fi
3469 AR=$ac_cv_prog_AR
3470 if test -n "$AR"; then
3471 echo "$as_me:$LINENO: result: $AR" >&5
3472 echo "${ECHO_T}$AR" >&6
3473 else
3474 echo "$as_me:$LINENO: result: no" >&5
3475 echo "${ECHO_T}no" >&6
3476 fi
3477
3478 fi
3479 if test -z "$ac_cv_prog_AR"; then
3480 ac_ct_AR=$AR
3481 # Extract the first word of "ar", so it can be a program name with args.
3482 set dummy ar; ac_word=$2
3483 echo "$as_me:$LINENO: checking for $ac_word" >&5
3484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3485 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 if test -n "$ac_ct_AR"; then
3489 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3493 do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498 ac_cv_prog_ac_ct_AR="ar"
3499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502 done
3503 done
3504
3505 fi
3506 fi
3507 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3508 if test -n "$ac_ct_AR"; then
3509 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3510 echo "${ECHO_T}$ac_ct_AR" >&6
3511 else
3512 echo "$as_me:$LINENO: result: no" >&5
3513 echo "${ECHO_T}no" >&6
3514 fi
3515
3516 AR=$ac_ct_AR
3517 else
3518 AR="$ac_cv_prog_AR"
3519 fi
3520
3521 if test -n "$ac_tool_prefix"; then
3522 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3523 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3524 echo "$as_me:$LINENO: checking for $ac_word" >&5
3525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3526 if test "${ac_cv_prog_RANLIB+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 if test -n "$RANLIB"; then
3530 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3534 do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3539 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3542 fi
3543 done
3544 done
3545
3546 fi
3547 fi
3548 RANLIB=$ac_cv_prog_RANLIB
3549 if test -n "$RANLIB"; then
3550 echo "$as_me:$LINENO: result: $RANLIB" >&5
3551 echo "${ECHO_T}$RANLIB" >&6
3552 else
3553 echo "$as_me:$LINENO: result: no" >&5
3554 echo "${ECHO_T}no" >&6
3555 fi
3556
3557 fi
3558 if test -z "$ac_cv_prog_RANLIB"; then
3559 ac_ct_RANLIB=$RANLIB
3560 # Extract the first word of "ranlib", so it can be a program name with args.
3561 set dummy ranlib; ac_word=$2
3562 echo "$as_me:$LINENO: checking for $ac_word" >&5
3563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3564 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 else
3567 if test -n "$ac_ct_RANLIB"; then
3568 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3569 else
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 for as_dir in $PATH
3572 do
3573 IFS=$as_save_IFS
3574 test -z "$as_dir" && as_dir=.
3575 for ac_exec_ext in '' $ac_executable_extensions; do
3576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3577 ac_cv_prog_ac_ct_RANLIB="ranlib"
3578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 break 2
3580 fi
3581 done
3582 done
3583
3584 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3585 fi
3586 fi
3587 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3588 if test -n "$ac_ct_RANLIB"; then
3589 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3590 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3591 else
3592 echo "$as_me:$LINENO: result: no" >&5
3593 echo "${ECHO_T}no" >&6
3594 fi
3595
3596 RANLIB=$ac_ct_RANLIB
3597 else
3598 RANLIB="$ac_cv_prog_RANLIB"
3599 fi
3600
3601
3602 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3603 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3604 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3605 if test "${enable_maintainer_mode+set}" = set; then
3606 enableval="$enable_maintainer_mode"
3607 USE_MAINTAINER_MODE=$enableval
3608 else
3609 USE_MAINTAINER_MODE=no
3610 fi;
3611 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3612 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3613
3614
3615 if test $USE_MAINTAINER_MODE = yes; then
3616 MAINTAINER_MODE_TRUE=
3617 MAINTAINER_MODE_FALSE='#'
3618 else
3619 MAINTAINER_MODE_TRUE='#'
3620 MAINTAINER_MODE_FALSE=
3621 fi
3622
3623 MAINT=$MAINTAINER_MODE_TRUE
3624
3625
3626
3627 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3628 # which are themselves conditionally expanded.
3629 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3630 ## other macros from doing the same. This should be automated.) -pme
3631 need_libmath=no
3632 enable_wchar_t=no
3633 #enable_libstdcxx_debug=no
3634 #enable_libstdcxx_pch=no
3635 #enable_cheaders=c
3636 #c_compatibility=no
3637 #enable_abi_check=no
3638 #enable_symvers=no
3639 #enable_hosted_libstdcxx=yes
3640
3641 # Find platform-specific directories containing configuration info.
3642 # Also possibly modify flags used elsewhere, as needed by the platform.
3643
3644 . $glibcxx_srcdir/configure.host
3645 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3646 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3647 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3648 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3649
3650
3651
3652 #AC_MSG_NOTICE([====== Starting libtool configuration])
3653
3654 # Check whether --enable-shared or --disable-shared was given.
3655 if test "${enable_shared+set}" = set; then
3656 enableval="$enable_shared"
3657 p=${PACKAGE-default}
3658 case $enableval in
3659 yes) enable_shared=yes ;;
3660 no) enable_shared=no ;;
3661 *)
3662 enable_shared=no
3663 # Look at the argument we got. We use all the common list separators.
3664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3665 for pkg in $enableval; do
3666 if test "X$pkg" = "X$p"; then
3667 enable_shared=yes
3668 fi
3669 done
3670 IFS="$ac_save_ifs"
3671 ;;
3672 esac
3673 else
3674 enable_shared=yes
3675 fi;
3676 # Check whether --enable-static or --disable-static was given.
3677 if test "${enable_static+set}" = set; then
3678 enableval="$enable_static"
3679 p=${PACKAGE-default}
3680 case $enableval in
3681 yes) enable_static=yes ;;
3682 no) enable_static=no ;;
3683 *)
3684 enable_static=no
3685 # Look at the argument we got. We use all the common list separators.
3686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3687 for pkg in $enableval; do
3688 if test "X$pkg" = "X$p"; then
3689 enable_static=yes
3690 fi
3691 done
3692 IFS="$ac_save_ifs"
3693 ;;
3694 esac
3695 else
3696 enable_static=yes
3697 fi;
3698 # Check whether --enable-fast-install or --disable-fast-install was given.
3699 if test "${enable_fast_install+set}" = set; then
3700 enableval="$enable_fast_install"
3701 p=${PACKAGE-default}
3702 case $enableval in
3703 yes) enable_fast_install=yes ;;
3704 no) enable_fast_install=no ;;
3705 *)
3706 enable_fast_install=no
3707 # Look at the argument we got. We use all the common list separators.
3708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3709 for pkg in $enableval; do
3710 if test "X$pkg" = "X$p"; then
3711 enable_fast_install=yes
3712 fi
3713 done
3714 IFS="$ac_save_ifs"
3715 ;;
3716 esac
3717 else
3718 enable_fast_install=yes
3719 fi;
3720
3721 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3722 if test "${with_gnu_ld+set}" = set; then
3723 withval="$with_gnu_ld"
3724 test "$withval" = no || with_gnu_ld=yes
3725 else
3726 with_gnu_ld=no
3727 fi;
3728 ac_prog=ld
3729 if test "$GCC" = yes; then
3730 # Check if gcc -print-prog-name=ld gives a path.
3731 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3732 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3733 case $host in
3734 *-*-mingw*)
3735 # gcc leaves a trailing carriage return which upsets mingw
3736 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3737 *)
3738 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3739 esac
3740 case $ac_prog in
3741 # Accept absolute paths.
3742 [\\/]* | [A-Za-z]:[\\/]*)
3743 re_direlt='/[^/][^/]*/\.\./'
3744 # Canonicalize the path of ld
3745 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3746 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3747 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3748 done
3749 test -z "$LD" && LD="$ac_prog"
3750 ;;
3751 "")
3752 # If it fails, then pretend we aren't using GCC.
3753 ac_prog=ld
3754 ;;
3755 *)
3756 # If it is relative, then search for the first ld in PATH.
3757 with_gnu_ld=unknown
3758 ;;
3759 esac
3760 elif test "$with_gnu_ld" = yes; then
3761 echo "$as_me:$LINENO: checking for GNU ld" >&5
3762 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3763 else
3764 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3765 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3766 fi
3767 if test "${lt_cv_path_LD+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770 if test -z "$LD"; then
3771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3772 for ac_dir in $PATH; do
3773 test -z "$ac_dir" && ac_dir=.
3774 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3775 lt_cv_path_LD="$ac_dir/$ac_prog"
3776 # Check to see if the program is GNU ld. I'd rather use --version,
3777 # but apparently some GNU ld's only accept -v.
3778 # Break only if it was the GNU/non-GNU ld that we prefer.
3779 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3780 test "$with_gnu_ld" != no && break
3781 else
3782 test "$with_gnu_ld" != yes && break
3783 fi
3784 fi
3785 done
3786 IFS="$ac_save_ifs"
3787 else
3788 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3789 fi
3790 fi
3791
3792 LD="$lt_cv_path_LD"
3793 if test -n "$LD"; then
3794 echo "$as_me:$LINENO: result: $LD" >&5
3795 echo "${ECHO_T}$LD" >&6
3796 else
3797 echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3799 fi
3800 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3801 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3802 { (exit 1); exit 1; }; }
3803 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3804 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3805 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3809 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3810 lt_cv_prog_gnu_ld=yes
3811 else
3812 lt_cv_prog_gnu_ld=no
3813 fi
3814 fi
3815 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3816 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3817 with_gnu_ld=$lt_cv_prog_gnu_ld
3818
3819
3820 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3821 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3822 if test "${lt_cv_ld_reload_flag+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825 lt_cv_ld_reload_flag='-r'
3826 fi
3827 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3828 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3829 reload_flag=$lt_cv_ld_reload_flag
3830 test -n "$reload_flag" && reload_flag=" $reload_flag"
3831
3832 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3833 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3834 if test "${lt_cv_path_NM+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837 if test -n "$NM"; then
3838 # Let the user override the test.
3839 lt_cv_path_NM="$NM"
3840 else
3841 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3842 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3843 test -z "$ac_dir" && ac_dir=.
3844 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3845 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3846 # Check to see if the nm accepts a BSD-compat flag.
3847 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3848 # nm: unknown option "B" ignored
3849 # Tru64's nm complains that /dev/null is an invalid object file
3850 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3851 lt_cv_path_NM="$tmp_nm -B"
3852 break
3853 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3854 lt_cv_path_NM="$tmp_nm -p"
3855 break
3856 else
3857 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3858 continue # so that we can try to find one that supports BSD flags
3859 fi
3860 fi
3861 done
3862 IFS="$ac_save_ifs"
3863 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3864 fi
3865 fi
3866
3867 NM="$lt_cv_path_NM"
3868 echo "$as_me:$LINENO: result: $NM" >&5
3869 echo "${ECHO_T}$NM" >&6
3870
3871 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3872 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3873 if test "${lt_cv_deplibs_check_method+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 lt_cv_file_magic_cmd='$MAGIC_CMD'
3877 lt_cv_file_magic_test_file=
3878 lt_cv_deplibs_check_method='unknown'
3879 # Need to set the preceding variable on all platforms that support
3880 # interlibrary dependencies.
3881 # 'none' -- dependencies not supported.
3882 # `unknown' -- same as none, but documents that we really don't know.
3883 # 'pass_all' -- all dependencies passed with no checks.
3884 # 'test_compile' -- check by making test program.
3885 # 'file_magic [regex]' -- check by looking for files in library path
3886 # which responds to the $file_magic_cmd with a given egrep regex.
3887 # If you have `file' or equivalent on your system and you're not sure
3888 # whether `pass_all' will *always* work, you probably want this one.
3889
3890 case $host_os in
3891 aix*)
3892 lt_cv_deplibs_check_method=pass_all
3893 ;;
3894
3895 beos*)
3896 lt_cv_deplibs_check_method=pass_all
3897 ;;
3898
3899 bsdi4*)
3900 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3901 lt_cv_file_magic_cmd='/usr/bin/file -L'
3902 lt_cv_file_magic_test_file=/shlib/libc.so
3903 ;;
3904
3905 cygwin* | mingw* |pw32*)
3906 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3907 lt_cv_file_magic_cmd='$OBJDUMP -f'
3908 ;;
3909
3910 darwin* | rhapsody*)
3911 # this will be overwritten by pass_all, but leave it in just in case
3912 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3913 lt_cv_file_magic_cmd='/usr/bin/file -L'
3914 case "$host_os" in
3915 rhapsody* | darwin1.012)
3916 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3917 ;;
3918 *) # Darwin 1.3 on
3919 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3920 ;;
3921 esac
3922 lt_cv_deplibs_check_method=pass_all
3923 ;;
3924
3925 freebsd* | kfreebsd*-gnu)
3926 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3927 case $host_cpu in
3928 i*86 )
3929 # Not sure whether the presence of OpenBSD here was a mistake.
3930 # Let's accept both of them until this is cleared up.
3931 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3932 lt_cv_file_magic_cmd=/usr/bin/file
3933 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3934 ;;
3935 esac
3936 else
3937 lt_cv_deplibs_check_method=pass_all
3938 fi
3939 ;;
3940
3941 gnu*)
3942 lt_cv_deplibs_check_method=pass_all
3943 ;;
3944
3945 hpux10.20*|hpux11*)
3946 case $host_cpu in
3947 hppa*)
3948 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3949 lt_cv_file_magic_cmd=/usr/bin/file
3950 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3951 ;;
3952 ia64*)
3953 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3954 lt_cv_file_magic_cmd=/usr/bin/file
3955 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3956 ;;
3957 esac
3958 ;;
3959
3960 irix5* | irix6*)
3961 case $host_os in
3962 irix5*)
3963 # this will be overridden with pass_all, but let us keep it just in case
3964 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3965 ;;
3966 *)
3967 case $LD in
3968 *-32|*"-32 ") libmagic=32-bit;;
3969 *-n32|*"-n32 ") libmagic=N32;;
3970 *-64|*"-64 ") libmagic=64-bit;;
3971 *) libmagic=never-match;;
3972 esac
3973 # this will be overridden with pass_all, but let us keep it just in case
3974 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3975 ;;
3976 esac
3977 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3978 lt_cv_deplibs_check_method=pass_all
3979 ;;
3980
3981 # This must be Linux ELF.
3982 linux-gnu*)
3983 case $host_cpu in
3984 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3985 lt_cv_deplibs_check_method=pass_all ;;
3986 *)
3987 # glibc up to 2.1.1 does not perform some relocations on ARM
3988 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3989 esac
3990 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3991 ;;
3992
3993 netbsd* | knetbsd*-gnu)
3994 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3995 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3996 else
3997 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3998 fi
3999 ;;
4000
4001 newsos6)
4002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4003 lt_cv_file_magic_cmd=/usr/bin/file
4004 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4005 ;;
4006
4007 osf3* | osf4* | osf5*)
4008 # this will be overridden with pass_all, but let us keep it just in case
4009 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4010 lt_cv_file_magic_test_file=/shlib/libc.so
4011 lt_cv_deplibs_check_method=pass_all
4012 ;;
4013
4014 sco3.2v5*)
4015 lt_cv_deplibs_check_method=pass_all
4016 ;;
4017
4018 solaris*)
4019 lt_cv_deplibs_check_method=pass_all
4020 lt_cv_file_magic_test_file=/lib/libc.so
4021 ;;
4022
4023 sysv5uw[78]* | sysv4*uw2*)
4024 lt_cv_deplibs_check_method=pass_all
4025 ;;
4026
4027 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4028 case $host_vendor in
4029 ncr)
4030 lt_cv_deplibs_check_method=pass_all
4031 ;;
4032 motorola)
4033 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]'
4034 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4035 ;;
4036 esac
4037 ;;
4038 esac
4039
4040 fi
4041 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4042 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4043 file_magic_cmd=$lt_cv_file_magic_cmd
4044 deplibs_check_method=$lt_cv_deplibs_check_method
4045
4046
4047
4048
4049
4050 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4051
4052 # Only perform the check for file, if the check method requires it
4053 case $deplibs_check_method in
4054 file_magic*)
4055 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4056 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4057 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4058 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 case $MAGIC_CMD in
4062 /*)
4063 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4064 ;;
4065 ?:/*)
4066 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4067 ;;
4068 *)
4069 ac_save_MAGIC_CMD="$MAGIC_CMD"
4070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4071 ac_dummy="/usr/bin:$PATH"
4072 for ac_dir in $ac_dummy; do
4073 test -z "$ac_dir" && ac_dir=.
4074 if test -f $ac_dir/${ac_tool_prefix}file; then
4075 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4076 if test -n "$file_magic_test_file"; then
4077 case $deplibs_check_method in
4078 "file_magic "*)
4079 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4081 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4082 egrep "$file_magic_regex" > /dev/null; then
4083 :
4084 else
4085 cat <<EOF 1>&2
4086
4087 *** Warning: the command libtool uses to detect shared libraries,
4088 *** $file_magic_cmd, produces output that libtool cannot recognize.
4089 *** The result is that libtool may fail to recognize shared libraries
4090 *** as such. This will affect the creation of libtool libraries that
4091 *** depend on shared libraries, but programs linked with such libtool
4092 *** libraries will work regardless of this problem. Nevertheless, you
4093 *** may want to report the problem to your system manager and/or to
4094 *** bug-libtool@gnu.org
4095
4096 EOF
4097 fi ;;
4098 esac
4099 fi
4100 break
4101 fi
4102 done
4103 IFS="$ac_save_ifs"
4104 MAGIC_CMD="$ac_save_MAGIC_CMD"
4105 ;;
4106 esac
4107 fi
4108
4109 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4110 if test -n "$MAGIC_CMD"; then
4111 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4112 echo "${ECHO_T}$MAGIC_CMD" >&6
4113 else
4114 echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4116 fi
4117
4118 if test -z "$lt_cv_path_MAGIC_CMD"; then
4119 if test -n "$ac_tool_prefix"; then
4120 echo "$as_me:$LINENO: checking for file" >&5
4121 echo $ECHO_N "checking for file... $ECHO_C" >&6
4122 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 case $MAGIC_CMD in
4126 /*)
4127 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4128 ;;
4129 ?:/*)
4130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4131 ;;
4132 *)
4133 ac_save_MAGIC_CMD="$MAGIC_CMD"
4134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4135 ac_dummy="/usr/bin:$PATH"
4136 for ac_dir in $ac_dummy; do
4137 test -z "$ac_dir" && ac_dir=.
4138 if test -f $ac_dir/file; then
4139 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4140 if test -n "$file_magic_test_file"; then
4141 case $deplibs_check_method in
4142 "file_magic "*)
4143 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4144 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4145 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4146 egrep "$file_magic_regex" > /dev/null; then
4147 :
4148 else
4149 cat <<EOF 1>&2
4150
4151 *** Warning: the command libtool uses to detect shared libraries,
4152 *** $file_magic_cmd, produces output that libtool cannot recognize.
4153 *** The result is that libtool may fail to recognize shared libraries
4154 *** as such. This will affect the creation of libtool libraries that
4155 *** depend on shared libraries, but programs linked with such libtool
4156 *** libraries will work regardless of this problem. Nevertheless, you
4157 *** may want to report the problem to your system manager and/or to
4158 *** bug-libtool@gnu.org
4159
4160 EOF
4161 fi ;;
4162 esac
4163 fi
4164 break
4165 fi
4166 done
4167 IFS="$ac_save_ifs"
4168 MAGIC_CMD="$ac_save_MAGIC_CMD"
4169 ;;
4170 esac
4171 fi
4172
4173 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4174 if test -n "$MAGIC_CMD"; then
4175 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4176 echo "${ECHO_T}$MAGIC_CMD" >&6
4177 else
4178 echo "$as_me:$LINENO: result: no" >&5
4179 echo "${ECHO_T}no" >&6
4180 fi
4181
4182 else
4183 MAGIC_CMD=:
4184 fi
4185 fi
4186
4187 fi
4188 ;;
4189 esac
4190
4191 if test -n "$ac_tool_prefix"; then
4192 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4193 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4194 echo "$as_me:$LINENO: checking for $ac_word" >&5
4195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4196 if test "${ac_cv_prog_RANLIB+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199 if test -n "$RANLIB"; then
4200 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4201 else
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4204 do
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4209 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 break 2
4212 fi
4213 done
4214 done
4215
4216 fi
4217 fi
4218 RANLIB=$ac_cv_prog_RANLIB
4219 if test -n "$RANLIB"; then
4220 echo "$as_me:$LINENO: result: $RANLIB" >&5
4221 echo "${ECHO_T}$RANLIB" >&6
4222 else
4223 echo "$as_me:$LINENO: result: no" >&5
4224 echo "${ECHO_T}no" >&6
4225 fi
4226
4227 fi
4228 if test -z "$ac_cv_prog_RANLIB"; then
4229 ac_ct_RANLIB=$RANLIB
4230 # Extract the first word of "ranlib", so it can be a program name with args.
4231 set dummy ranlib; ac_word=$2
4232 echo "$as_me:$LINENO: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4234 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237 if test -n "$ac_ct_RANLIB"; then
4238 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243 IFS=$as_save_IFS
4244 test -z "$as_dir" && as_dir=.
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247 ac_cv_prog_ac_ct_RANLIB="ranlib"
4248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 break 2
4250 fi
4251 done
4252 done
4253
4254 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4255 fi
4256 fi
4257 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4258 if test -n "$ac_ct_RANLIB"; then
4259 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4260 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4261 else
4262 echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6
4264 fi
4265
4266 RANLIB=$ac_ct_RANLIB
4267 else
4268 RANLIB="$ac_cv_prog_RANLIB"
4269 fi
4270
4271 if test -n "$ac_tool_prefix"; then
4272 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4273 set dummy ${ac_tool_prefix}strip; ac_word=$2
4274 echo "$as_me:$LINENO: checking for $ac_word" >&5
4275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276 if test "${ac_cv_prog_STRIP+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279 if test -n "$STRIP"; then
4280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4292 fi
4293 done
4294 done
4295
4296 fi
4297 fi
4298 STRIP=$ac_cv_prog_STRIP
4299 if test -n "$STRIP"; then
4300 echo "$as_me:$LINENO: result: $STRIP" >&5
4301 echo "${ECHO_T}$STRIP" >&6
4302 else
4303 echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6
4305 fi
4306
4307 fi
4308 if test -z "$ac_cv_prog_STRIP"; then
4309 ac_ct_STRIP=$STRIP
4310 # Extract the first word of "strip", so it can be a program name with args.
4311 set dummy strip; ac_word=$2
4312 echo "$as_me:$LINENO: checking for $ac_word" >&5
4313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4314 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 if test -n "$ac_ct_STRIP"; then
4318 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4319 else
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH
4322 do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4327 ac_cv_prog_ac_ct_STRIP="strip"
4328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4329 break 2
4330 fi
4331 done
4332 done
4333
4334 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4335 fi
4336 fi
4337 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4338 if test -n "$ac_ct_STRIP"; then
4339 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4340 echo "${ECHO_T}$ac_ct_STRIP" >&6
4341 else
4342 echo "$as_me:$LINENO: result: no" >&5
4343 echo "${ECHO_T}no" >&6
4344 fi
4345
4346 STRIP=$ac_ct_STRIP
4347 else
4348 STRIP="$ac_cv_prog_STRIP"
4349 fi
4350
4351
4352 # Check for any special flags to pass to ltconfig.
4353 libtool_flags="--cache-file=$cache_file"
4354 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4355 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4356 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4357 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4358 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4359
4360
4361 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4362 if test "${enable_libtool_lock+set}" = set; then
4363 enableval="$enable_libtool_lock"
4364
4365 fi;
4366 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4367 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4368
4369
4370 # Check whether --with-pic or --without-pic was given.
4371 if test "${with_pic+set}" = set; then
4372 withval="$with_pic"
4373 pic_mode="$withval"
4374 else
4375 pic_mode=default
4376 fi;
4377 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4378 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4379
4380 # Some flags need to be propagated to the compiler or linker for good
4381 # libtool support.
4382 case $host in
4383 *-*-irix6*)
4384 # Find out which ABI we are using.
4385 echo '#line 4375 "configure"' > conftest.$ac_ext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; then
4391 if test "$lt_cv_prog_gnu_ld" = yes; then
4392 case `/usr/bin/file conftest.$ac_objext` in
4393 *32-bit*)
4394 LD="${LD-ld} -melf32bsmip"
4395 ;;
4396 *N32*)
4397 LD="${LD-ld} -melf32bmipn32"
4398 ;;
4399 *64-bit*)
4400 LD="${LD-ld} -melf64bmip"
4401 ;;
4402 esac
4403 else
4404 case `/usr/bin/file conftest.$ac_objext` in
4405 *32-bit*)
4406 LD="${LD-ld} -32"
4407 ;;
4408 *N32*)
4409 LD="${LD-ld} -n32"
4410 ;;
4411 *64-bit*)
4412 LD="${LD-ld} -64"
4413 ;;
4414 esac
4415 fi
4416 fi
4417 rm -rf conftest*
4418 ;;
4419
4420 ia64-*-hpux*)
4421 # Find out which ABI we are using.
4422 echo 'int i;' > conftest.$ac_ext
4423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; then
4428 case "`/usr/bin/file conftest.o`" in
4429 *ELF-32*)
4430 HPUX_IA64_MODE="32"
4431 ;;
4432 *ELF-64*)
4433 HPUX_IA64_MODE="64"
4434 ;;
4435 esac
4436 fi
4437 rm -rf conftest*
4438 ;;
4439
4440 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4441 # Find out which ABI we are using.
4442 echo 'int i;' > conftest.$ac_ext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; then
4448 case "`/usr/bin/file conftest.o`" in
4449 *32-bit*)
4450 case $host in
4451 x86_64-*linux*)
4452 LD="${LD-ld} -m elf_i386"
4453 ;;
4454 ppc64-*linux*|powerpc64-*linux*)
4455 LD="${LD-ld} -m elf32ppclinux"
4456 ;;
4457 s390x-*linux*)
4458 LD="${LD-ld} -m elf_s390"
4459 ;;
4460 sparc64-*linux*)
4461 LD="${LD-ld} -m elf32_sparc"
4462 ;;
4463 esac
4464 ;;
4465 *64-bit*)
4466 case $host in
4467 x86_64-*linux*)
4468 LD="${LD-ld} -m elf_x86_64"
4469 ;;
4470 ppc*-*linux*|powerpc*-*linux*)
4471 LD="${LD-ld} -m elf64ppc"
4472 ;;
4473 s390*-*linux*)
4474 LD="${LD-ld} -m elf64_s390"
4475 ;;
4476 sparc*-*linux*)
4477 LD="${LD-ld} -m elf64_sparc"
4478 ;;
4479 esac
4480 ;;
4481 esac
4482 fi
4483 rm -rf conftest*
4484 ;;
4485
4486 *-*-sco3.2v5*)
4487 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4488 SAVE_CFLAGS="$CFLAGS"
4489 CFLAGS="$CFLAGS -belf"
4490 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4491 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4492 if test "${lt_cv_cc_needs_belf+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495
4496
4497 ac_ext=c
4498 ac_cpp='$CPP $CPPFLAGS'
4499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502
4503 if test x$gcc_no_link = xyes; then
4504 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4505 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4506 { (exit 1); exit 1; }; }
4507 fi
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514
4515 int
4516 main ()
4517 {
4518
4519 ;
4520 return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest.$ac_objext conftest$ac_exeext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4525 (eval $ac_link) 2>conftest.er1
4526 ac_status=$?
4527 grep -v '^ *+' conftest.er1 >conftest.err
4528 rm -f conftest.er1
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } &&
4532 { ac_try='test -z "$ac_c_werror_flag"
4533 || test ! -s conftest.err'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 (eval $ac_try) 2>&5
4536 ac_status=$?
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; } &&
4539 { ac_try='test -s conftest$ac_exeext'
4540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 (eval $ac_try) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; }; then
4545 lt_cv_cc_needs_belf=yes
4546 else
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.$ac_ext >&5
4549
4550 lt_cv_cc_needs_belf=no
4551 fi
4552 rm -f conftest.err conftest.$ac_objext \
4553 conftest$ac_exeext conftest.$ac_ext
4554 ac_ext=c
4555 ac_cpp='$CPP $CPPFLAGS'
4556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4559
4560 fi
4561 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4562 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4563 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4564 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4565 CFLAGS="$SAVE_CFLAGS"
4566 fi
4567 ;;
4568
4569
4570 esac
4571
4572
4573 # Save cache, so that ltconfig can load it
4574 cat >confcache <<\_ACEOF
4575 # This file is a shell script that caches the results of configure
4576 # tests run on this system so they can be shared between configure
4577 # scripts and configure runs, see configure's option --config-cache.
4578 # It is not useful on other systems. If it contains results you don't
4579 # want to keep, you may remove or edit it.
4580 #
4581 # config.status only pays attention to the cache file if you give it
4582 # the --recheck option to rerun configure.
4583 #
4584 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4585 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4586 # following values.
4587
4588 _ACEOF
4589
4590 # The following way of writing the cache mishandles newlines in values,
4591 # but we know of no workaround that is simple, portable, and efficient.
4592 # So, don't put newlines in cache variables' values.
4593 # Ultrix sh set writes to stderr and can't be redirected directly,
4594 # and sets the high bit in the cache file unless we assign to the vars.
4595 {
4596 (set) 2>&1 |
4597 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4598 *ac_space=\ *)
4599 # `set' does not quote correctly, so add quotes (double-quote
4600 # substitution turns \\\\ into \\, and sed turns \\ into \).
4601 sed -n \
4602 "s/'/'\\\\''/g;
4603 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4604 ;;
4605 *)
4606 # `set' quotes correctly as required by POSIX, so do not add quotes.
4607 sed -n \
4608 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4609 ;;
4610 esac;
4611 } |
4612 sed '
4613 t clear
4614 : clear
4615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4616 t end
4617 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4618 : end' >>confcache
4619 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4620 if test -w $cache_file; then
4621 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4622 cat confcache >$cache_file
4623 else
4624 echo "not updating unwritable cache $cache_file"
4625 fi
4626 fi
4627 rm -f confcache
4628
4629 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4630 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4631 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4632 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4633 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4634 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4635 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4636 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4637 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4638 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4639 echo "$as_me: error: libtool configure failed" >&2;}
4640 { (exit 1); exit 1; }; }
4641
4642 # Reload cache, that may have been modified by ltconfig
4643 if test -r "$cache_file"; then
4644 # Some versions of bash will fail to source /dev/null (special
4645 # files actually), so we avoid doing that.
4646 if test -f "$cache_file"; then
4647 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4648 echo "$as_me: loading cache $cache_file" >&6;}
4649 case $cache_file in
4650 [\\/]* | ?:[\\/]* ) . $cache_file;;
4651 *) . ./$cache_file;;
4652 esac
4653 fi
4654 else
4655 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4656 echo "$as_me: creating cache $cache_file" >&6;}
4657 >$cache_file
4658 fi
4659
4660
4661 # This can be used to rebuild libtool when needed
4662 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4663
4664 # Always use our own libtool.
4665 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4666
4667 # Redirect the config.log output again, so that the ltconfig log is not
4668 # clobbered by the next message.
4669 exec 5>>./config.log
4670
4671 ac_ext=cc
4672 ac_cpp='$CXXCPP $CPPFLAGS'
4673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4676 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4677 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4678 if test -z "$CXXCPP"; then
4679 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682 # Double quotes because CXXCPP needs to be expanded
4683 for CXXCPP in "$CXX -E" "/lib/cpp"
4684 do
4685 ac_preproc_ok=false
4686 for ac_cxx_preproc_warn_flag in '' yes
4687 do
4688 # Use a header file that comes with gcc, so configuring glibc
4689 # with a fresh cross-compiler works.
4690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4691 # <limits.h> exists even on freestanding compilers.
4692 # On the NeXT, cc -E runs the code through the compiler's parser,
4693 # not just through cpp. "Syntax error" is here to catch this case.
4694 cat >conftest.$ac_ext <<_ACEOF
4695 /* confdefs.h. */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h. */
4700 #ifdef __STDC__
4701 # include <limits.h>
4702 #else
4703 # include <assert.h>
4704 #endif
4705 Syntax error
4706 _ACEOF
4707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4709 ac_status=$?
4710 grep -v '^ *+' conftest.er1 >conftest.err
4711 rm -f conftest.er1
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } >/dev/null; then
4715 if test -s conftest.err; then
4716 ac_cpp_err=$ac_cxx_preproc_warn_flag
4717 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4718 else
4719 ac_cpp_err=
4720 fi
4721 else
4722 ac_cpp_err=yes
4723 fi
4724 if test -z "$ac_cpp_err"; then
4725 :
4726 else
4727 echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730 # Broken: fails on valid input.
4731 continue
4732 fi
4733 rm -f conftest.err conftest.$ac_ext
4734
4735 # OK, works on sane cases. Now check whether non-existent headers
4736 # can be detected and how.
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #include <ac_nonexistent.h>
4744 _ACEOF
4745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null; then
4753 if test -s conftest.err; then
4754 ac_cpp_err=$ac_cxx_preproc_warn_flag
4755 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4756 else
4757 ac_cpp_err=
4758 fi
4759 else
4760 ac_cpp_err=yes
4761 fi
4762 if test -z "$ac_cpp_err"; then
4763 # Broken: success on invalid input.
4764 continue
4765 else
4766 echo "$as_me: failed program was:" >&5
4767 sed 's/^/| /' conftest.$ac_ext >&5
4768
4769 # Passes both tests.
4770 ac_preproc_ok=:
4771 break
4772 fi
4773 rm -f conftest.err conftest.$ac_ext
4774
4775 done
4776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4777 rm -f conftest.err conftest.$ac_ext
4778 if $ac_preproc_ok; then
4779 break
4780 fi
4781
4782 done
4783 ac_cv_prog_CXXCPP=$CXXCPP
4784
4785 fi
4786 CXXCPP=$ac_cv_prog_CXXCPP
4787 else
4788 ac_cv_prog_CXXCPP=$CXXCPP
4789 fi
4790 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4791 echo "${ECHO_T}$CXXCPP" >&6
4792 ac_preproc_ok=false
4793 for ac_cxx_preproc_warn_flag in '' yes
4794 do
4795 # Use a header file that comes with gcc, so configuring glibc
4796 # with a fresh cross-compiler works.
4797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798 # <limits.h> exists even on freestanding compilers.
4799 # On the NeXT, cc -E runs the code through the compiler's parser,
4800 # not just through cpp. "Syntax error" is here to catch this case.
4801 cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h. */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 #ifdef __STDC__
4808 # include <limits.h>
4809 #else
4810 # include <assert.h>
4811 #endif
4812 Syntax error
4813 _ACEOF
4814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4816 ac_status=$?
4817 grep -v '^ *+' conftest.er1 >conftest.err
4818 rm -f conftest.er1
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } >/dev/null; then
4822 if test -s conftest.err; then
4823 ac_cpp_err=$ac_cxx_preproc_warn_flag
4824 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4825 else
4826 ac_cpp_err=
4827 fi
4828 else
4829 ac_cpp_err=yes
4830 fi
4831 if test -z "$ac_cpp_err"; then
4832 :
4833 else
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837 # Broken: fails on valid input.
4838 continue
4839 fi
4840 rm -f conftest.err conftest.$ac_ext
4841
4842 # OK, works on sane cases. Now check whether non-existent headers
4843 # can be detected and how.
4844 cat >conftest.$ac_ext <<_ACEOF
4845 /* confdefs.h. */
4846 _ACEOF
4847 cat confdefs.h >>conftest.$ac_ext
4848 cat >>conftest.$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 #include <ac_nonexistent.h>
4851 _ACEOF
4852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4854 ac_status=$?
4855 grep -v '^ *+' conftest.er1 >conftest.err
4856 rm -f conftest.er1
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } >/dev/null; then
4860 if test -s conftest.err; then
4861 ac_cpp_err=$ac_cxx_preproc_warn_flag
4862 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4863 else
4864 ac_cpp_err=
4865 fi
4866 else
4867 ac_cpp_err=yes
4868 fi
4869 if test -z "$ac_cpp_err"; then
4870 # Broken: success on invalid input.
4871 continue
4872 else
4873 echo "$as_me: failed program was:" >&5
4874 sed 's/^/| /' conftest.$ac_ext >&5
4875
4876 # Passes both tests.
4877 ac_preproc_ok=:
4878 break
4879 fi
4880 rm -f conftest.err conftest.$ac_ext
4881
4882 done
4883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4884 rm -f conftest.err conftest.$ac_ext
4885 if $ac_preproc_ok; then
4886 :
4887 else
4888 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4889 See \`config.log' for more details." >&5
4890 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4891 See \`config.log' for more details." >&2;}
4892 { (exit 1); exit 1; }; }
4893 fi
4894
4895 ac_ext=c
4896 ac_cpp='$CPP $CPPFLAGS'
4897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900
4901
4902
4903 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4904 lt_save_CC="$CC"
4905 lt_save_CFLAGS="$CFLAGS"
4906 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4907 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4908 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4909 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4910 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4911 deplibs_check_method="$deplibs_check_method" \
4912 file_magic_cmd="$file_magic_cmd" \
4913 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4914 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4915 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4916 echo "$as_me: error: libtool tag configuration failed" >&2;}
4917 { (exit 1); exit 1; }; }
4918 CC="$lt_save_CC"
4919 CFLAGS="$lt_save_CFLAGS"
4920
4921 # Redirect the config.log output again, so that the ltconfig log is not
4922 # clobbered by the next message.
4923 exec 5>>./config.log
4924
4925
4926
4927
4928
4929
4930
4931
4932 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4933
4934 # Possibly disable most of the library.
4935 ## XXX Consider skipping unncessary tests altogether in this case, rather
4936 ## than just ignoring the results. Faster /and/ more correct, win win.
4937
4938 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4939 if test "${enable_hosted_libstdcxx+set}" = set; then
4940 enableval="$enable_hosted_libstdcxx"
4941
4942 else
4943 enable_hosted_libstdcxx=yes
4944 fi;
4945 if test "$enable_hosted_libstdcxx" = no; then
4946 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4947 echo "$as_me: Only freestanding libraries will be built" >&6;}
4948 is_hosted=no
4949 hosted_define=0
4950 enable_abi_check=no
4951 enable_libstdcxx_pch=no
4952 else
4953 is_hosted=yes
4954 hosted_define=1
4955 fi
4956
4957
4958 cat >>confdefs.h <<_ACEOF
4959 #define _GLIBCXX_HOSTED $hosted_define
4960 _ACEOF
4961
4962
4963
4964 # Check for support bits and g++ features that don't require linking.
4965
4966 echo "$as_me:$LINENO: checking for exception model to use" >&5
4967 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
4968
4969
4970 ac_ext=cc
4971 ac_cpp='$CXXCPP $CPPFLAGS'
4972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4975
4976 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4977 if test "${enable_sjlj_exceptions+set}" = set; then
4978 enableval="$enable_sjlj_exceptions"
4979
4980 case "$enableval" in
4981 yes|no|auto) ;;
4982 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
4983 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
4984 { (exit 1); exit 1; }; } ;;
4985 esac
4986
4987 else
4988 enable_sjlj_exceptions=auto
4989 fi;
4990
4991
4992 if test $enable_sjlj_exceptions = auto; then
4993 # Botheration. Now we've got to detect the exception model. Link tests
4994 # against libgcc.a are problematic since we've not been given proper -L
4995 # bits for single-tree newlib and libgloss.
4996 #
4997 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
4998 cat > conftest.$ac_ext << EOF
4999 #line 4988 "configure"
5000 struct S { ~S(); };
5001 void bar();
5002 void foo()
5003 {
5004 S s;
5005 bar();
5006 }
5007 EOF
5008 old_CXXFLAGS="$CXXFLAGS"
5009 CXXFLAGS=-S
5010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5011 (eval $ac_compile) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); }; then
5015 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5016 enable_sjlj_exceptions=yes
5017 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5018 enable_sjlj_exceptions=no
5019 fi
5020 fi
5021 CXXFLAGS="$old_CXXFLAGS"
5022 rm -f conftest*
5023 fi
5024
5025 # This is a tad weird, for hysterical raisins. We have to map enable/disable
5026 # to two different models.
5027 case $enable_sjlj_exceptions in
5028 yes)
5029
5030 cat >>confdefs.h <<\_ACEOF
5031 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
5032 _ACEOF
5033
5034 ac_exception_model_name=sjlj
5035 ;;
5036 no)
5037 ac_exception_model_name="call frame"
5038 ;;
5039 *)
5040 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5041 echo "$as_me: error: unable to detect exception model" >&2;}
5042 { (exit 1); exit 1; }; }
5043 ;;
5044 esac
5045 ac_ext=c
5046 ac_cpp='$CPP $CPPFLAGS'
5047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050
5051 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5052 echo "${ECHO_T}$ac_exception_model_name" >&6
5053
5054
5055 echo "$as_me:$LINENO: checking for enabled PCH" >&5
5056 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
5057 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
5058 if test "${enable_libstdcxx_pch+set}" = set; then
5059 enableval="$enable_libstdcxx_pch"
5060
5061 case "$enableval" in
5062 yes|no) ;;
5063 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
5064 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
5065 { (exit 1); exit 1; }; } ;;
5066 esac
5067
5068 else
5069 enable_libstdcxx_pch=$is_hosted
5070 fi;
5071
5072 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
5073 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
5074
5075 if test $enable_libstdcxx_pch = yes; then
5076 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
5077 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
5078 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081 ac_save_CXXFLAGS="$CXXFLAGS"
5082 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
5083
5084
5085 ac_ext=cc
5086 ac_cpp='$CXXCPP $CPPFLAGS'
5087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5090
5091 echo '#include <math.h>' > conftest.h
5092 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
5093 -o conftest.h.gch 1>&5 2>&1 &&
5094 echo '#error "pch failed"' > conftest.h &&
5095 echo '#include "conftest.h"' > conftest.cc &&
5096 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
5097 then
5098 glibcxx_cv_prog_CXX_pch=yes
5099 else
5100 glibcxx_cv_prog_CXX_pch=no
5101 fi
5102 rm -f conftest*
5103 CXXFLAGS=$ac_save_CXXFLAGS
5104 ac_ext=c
5105 ac_cpp='$CPP $CPPFLAGS'
5106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5109
5110
5111 fi
5112 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5113 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5114 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
5115 fi
5116
5117
5118 if test $enable_libstdcxx_pch = yes; then
5119 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5120 else
5121 glibcxx_PCHFLAGS=""
5122 fi
5123
5124
5125
5126 # Enable all the variable C++ runtime options.
5127 # NB: C_MBCHAR must come early.
5128
5129 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5130 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5131 # Check whether --enable-cstdio or --disable-cstdio was given.
5132 if test "${enable_cstdio+set}" = set; then
5133 enableval="$enable_cstdio"
5134
5135 case "$enableval" in
5136 stdio) ;;
5137 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5138 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5140 esac
5141
5142 else
5143 enable_cstdio=stdio
5144 fi;
5145
5146
5147 # Now that libio has been removed, you can have any color you want as long
5148 # as it's black. This is one big no-op until other packages are added, but
5149 # showing the framework never hurts.
5150 case ${enable_cstdio} in
5151 stdio)
5152 CSTDIO_H=config/io/c_io_stdio.h
5153 BASIC_FILE_H=config/io/basic_file_stdio.h
5154 BASIC_FILE_CC=config/io/basic_file_stdio.cc
5155 echo "$as_me:$LINENO: result: stdio" >&5
5156 echo "${ECHO_T}stdio" >&6
5157 ;;
5158 esac
5159
5160
5161
5162
5163
5164 ac_ext=c
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5170 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5171 # On Suns, sometimes $CPP names a directory.
5172 if test -n "$CPP" && test -d "$CPP"; then
5173 CPP=
5174 fi
5175 if test -z "$CPP"; then
5176 if test "${ac_cv_prog_CPP+set}" = set; then
5177 echo $ECHO_N "(cached) $ECHO_C" >&6
5178 else
5179 # Double quotes because CPP needs to be expanded
5180 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5181 do
5182 ac_preproc_ok=false
5183 for ac_c_preproc_warn_flag in '' yes
5184 do
5185 # Use a header file that comes with gcc, so configuring glibc
5186 # with a fresh cross-compiler works.
5187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5188 # <limits.h> exists even on freestanding compilers.
5189 # On the NeXT, cc -E runs the code through the compiler's parser,
5190 # not just through cpp. "Syntax error" is here to catch this case.
5191 cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h. */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h. */
5197 #ifdef __STDC__
5198 # include <limits.h>
5199 #else
5200 # include <assert.h>
5201 #endif
5202 Syntax error
5203 _ACEOF
5204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } >/dev/null; then
5212 if test -s conftest.err; then
5213 ac_cpp_err=$ac_c_preproc_warn_flag
5214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5215 else
5216 ac_cpp_err=
5217 fi
5218 else
5219 ac_cpp_err=yes
5220 fi
5221 if test -z "$ac_cpp_err"; then
5222 :
5223 else
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5226
5227 # Broken: fails on valid input.
5228 continue
5229 fi
5230 rm -f conftest.err conftest.$ac_ext
5231
5232 # OK, works on sane cases. Now check whether non-existent headers
5233 # can be detected and how.
5234 cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h. */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240 #include <ac_nonexistent.h>
5241 _ACEOF
5242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5244 ac_status=$?
5245 grep -v '^ *+' conftest.er1 >conftest.err
5246 rm -f conftest.er1
5247 cat conftest.err >&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); } >/dev/null; then
5250 if test -s conftest.err; then
5251 ac_cpp_err=$ac_c_preproc_warn_flag
5252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5253 else
5254 ac_cpp_err=
5255 fi
5256 else
5257 ac_cpp_err=yes
5258 fi
5259 if test -z "$ac_cpp_err"; then
5260 # Broken: success on invalid input.
5261 continue
5262 else
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5265
5266 # Passes both tests.
5267 ac_preproc_ok=:
5268 break
5269 fi
5270 rm -f conftest.err conftest.$ac_ext
5271
5272 done
5273 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5274 rm -f conftest.err conftest.$ac_ext
5275 if $ac_preproc_ok; then
5276 break
5277 fi
5278
5279 done
5280 ac_cv_prog_CPP=$CPP
5281
5282 fi
5283 CPP=$ac_cv_prog_CPP
5284 else
5285 ac_cv_prog_CPP=$CPP
5286 fi
5287 echo "$as_me:$LINENO: result: $CPP" >&5
5288 echo "${ECHO_T}$CPP" >&6
5289 ac_preproc_ok=false
5290 for ac_c_preproc_warn_flag in '' yes
5291 do
5292 # Use a header file that comes with gcc, so configuring glibc
5293 # with a fresh cross-compiler works.
5294 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5295 # <limits.h> exists even on freestanding compilers.
5296 # On the NeXT, cc -E runs the code through the compiler's parser,
5297 # not just through cpp. "Syntax error" is here to catch this case.
5298 cat >conftest.$ac_ext <<_ACEOF
5299 /* confdefs.h. */
5300 _ACEOF
5301 cat confdefs.h >>conftest.$ac_ext
5302 cat >>conftest.$ac_ext <<_ACEOF
5303 /* end confdefs.h. */
5304 #ifdef __STDC__
5305 # include <limits.h>
5306 #else
5307 # include <assert.h>
5308 #endif
5309 Syntax error
5310 _ACEOF
5311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } >/dev/null; then
5319 if test -s conftest.err; then
5320 ac_cpp_err=$ac_c_preproc_warn_flag
5321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5322 else
5323 ac_cpp_err=
5324 fi
5325 else
5326 ac_cpp_err=yes
5327 fi
5328 if test -z "$ac_cpp_err"; then
5329 :
5330 else
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5333
5334 # Broken: fails on valid input.
5335 continue
5336 fi
5337 rm -f conftest.err conftest.$ac_ext
5338
5339 # OK, works on sane cases. Now check whether non-existent headers
5340 # can be detected and how.
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 #include <ac_nonexistent.h>
5348 _ACEOF
5349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } >/dev/null; then
5357 if test -s conftest.err; then
5358 ac_cpp_err=$ac_c_preproc_warn_flag
5359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5360 else
5361 ac_cpp_err=
5362 fi
5363 else
5364 ac_cpp_err=yes
5365 fi
5366 if test -z "$ac_cpp_err"; then
5367 # Broken: success on invalid input.
5368 continue
5369 else
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373 # Passes both tests.
5374 ac_preproc_ok=:
5375 break
5376 fi
5377 rm -f conftest.err conftest.$ac_ext
5378
5379 done
5380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5381 rm -f conftest.err conftest.$ac_ext
5382 if $ac_preproc_ok; then
5383 :
5384 else
5385 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5386 See \`config.log' for more details." >&5
5387 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5388 See \`config.log' for more details." >&2;}
5389 { (exit 1); exit 1; }; }
5390 fi
5391
5392 ac_ext=c
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397
5398
5399 echo "$as_me:$LINENO: checking for egrep" >&5
5400 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5401 if test "${ac_cv_prog_egrep+set}" = set; then
5402 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5405 then ac_cv_prog_egrep='grep -E'
5406 else ac_cv_prog_egrep='egrep'
5407 fi
5408 fi
5409 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5410 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5411 EGREP=$ac_cv_prog_egrep
5412
5413
5414 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5415 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5416 if test "${ac_cv_header_stdc+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h. */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 #include <stdlib.h>
5426 #include <stdarg.h>
5427 #include <string.h>
5428 #include <float.h>
5429
5430 int
5431 main ()
5432 {
5433
5434 ;
5435 return 0;
5436 }
5437 _ACEOF
5438 rm -f conftest.$ac_objext
5439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5440 (eval $ac_compile) 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } &&
5447 { ac_try='test -z "$ac_c_werror_flag"
5448 || test ! -s conftest.err'
5449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450 (eval $ac_try) 2>&5
5451 ac_status=$?
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; } &&
5454 { ac_try='test -s conftest.$ac_objext'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456 (eval $ac_try) 2>&5
5457 ac_status=$?
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; }; then
5460 ac_cv_header_stdc=yes
5461 else
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5464
5465 ac_cv_header_stdc=no
5466 fi
5467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5468
5469 if test $ac_cv_header_stdc = yes; then
5470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5471 cat >conftest.$ac_ext <<_ACEOF
5472 /* confdefs.h. */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5477 #include <string.h>
5478
5479 _ACEOF
5480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5481 $EGREP "memchr" >/dev/null 2>&1; then
5482 :
5483 else
5484 ac_cv_header_stdc=no
5485 fi
5486 rm -f conftest*
5487
5488 fi
5489
5490 if test $ac_cv_header_stdc = yes; then
5491 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5492 cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h. */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h. */
5498 #include <stdlib.h>
5499
5500 _ACEOF
5501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5502 $EGREP "free" >/dev/null 2>&1; then
5503 :
5504 else
5505 ac_cv_header_stdc=no
5506 fi
5507 rm -f conftest*
5508
5509 fi
5510
5511 if test $ac_cv_header_stdc = yes; then
5512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5513 if test "$cross_compiling" = yes; then
5514 :
5515 else
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h. */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5522 #include <ctype.h>
5523 #if ((' ' & 0x0FF) == 0x020)
5524 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5525 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5526 #else
5527 # define ISLOWER(c) \
5528 (('a' <= (c) && (c) <= 'i') \
5529 || ('j' <= (c) && (c) <= 'r') \
5530 || ('s' <= (c) && (c) <= 'z'))
5531 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5532 #endif
5533
5534 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5535 int
5536 main ()
5537 {
5538 int i;
5539 for (i = 0; i < 256; i++)
5540 if (XOR (islower (i), ISLOWER (i))
5541 || toupper (i) != TOUPPER (i))
5542 exit(2);
5543 exit (0);
5544 }
5545 _ACEOF
5546 rm -f conftest$ac_exeext
5547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5548 (eval $ac_link) 2>&5
5549 ac_status=$?
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5553 (eval $ac_try) 2>&5
5554 ac_status=$?
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5557 :
5558 else
5559 echo "$as_me: program exited with status $ac_status" >&5
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563 ( exit $ac_status )
5564 ac_cv_header_stdc=no
5565 fi
5566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5567 fi
5568 fi
5569 fi
5570 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5571 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5572 if test $ac_cv_header_stdc = yes; then
5573
5574 cat >>confdefs.h <<\_ACEOF
5575 #define STDC_HEADERS 1
5576 _ACEOF
5577
5578 fi
5579
5580 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5591 inttypes.h stdint.h unistd.h
5592 do
5593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5594 echo "$as_me:$LINENO: checking for $ac_header" >&5
5595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 else
5599 cat >conftest.$ac_ext <<_ACEOF
5600 /* confdefs.h. */
5601 _ACEOF
5602 cat confdefs.h >>conftest.$ac_ext
5603 cat >>conftest.$ac_ext <<_ACEOF
5604 /* end confdefs.h. */
5605 $ac_includes_default
5606
5607 #include <$ac_header>
5608 _ACEOF
5609 rm -f conftest.$ac_objext
5610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5611 (eval $ac_compile) 2>conftest.er1
5612 ac_status=$?
5613 grep -v '^ *+' conftest.er1 >conftest.err
5614 rm -f conftest.er1
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } &&
5618 { ac_try='test -z "$ac_c_werror_flag"
5619 || test ! -s conftest.err'
5620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5621 (eval $ac_try) 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; } &&
5625 { ac_try='test -s conftest.$ac_objext'
5626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 (eval $ac_try) 2>&5
5628 ac_status=$?
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); }; }; then
5631 eval "$as_ac_Header=yes"
5632 else
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5635
5636 eval "$as_ac_Header=no"
5637 fi
5638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5639 fi
5640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5643 cat >>confdefs.h <<_ACEOF
5644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5645 _ACEOF
5646
5647 fi
5648
5649 done
5650
5651
5652
5653 echo "$as_me:$LINENO: checking for C locale to use" >&5
5654 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5655 # Check whether --enable-clocale or --disable-clocale was given.
5656 if test "${enable_clocale+set}" = set; then
5657 enableval="$enable_clocale"
5658
5659 case "$enableval" in
5660 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5661 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5662 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5663 { (exit 1); exit 1; }; } ;;
5664 esac
5665
5666 else
5667 enable_clocale=auto
5668 fi;
5669
5670
5671 # If they didn't use this option switch, or if they specified --enable
5672 # with no specific model, we'll have to look for one. If they
5673 # specified --disable (???), do likewise.
5674 if test $enable_clocale = no || test $enable_clocale = yes; then
5675 enable_clocale=auto
5676 fi
5677
5678 # Either a known package, or "auto"
5679 enable_clocale_flag=$enable_clocale
5680
5681 # Probe for locale support if no specific model is specified.
5682 # Default to "generic".
5683 if test $enable_clocale_flag = auto; then
5684 case x${target_os} in
5685 xlinux* | xgnu* | xkfreebsd*-gnu | xknetbsd*-gnu)
5686 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5692
5693 #include <features.h>
5694 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5695 _GLIBCXX_ok
5696 #endif
5697
5698 _ACEOF
5699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5700 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5701 enable_clocale_flag=gnu
5702 else
5703 enable_clocale_flag=generic
5704 fi
5705 rm -f conftest*
5706
5707
5708 # Test for bugs early in glibc-2.2.x series
5709 if test x$enable_clocale_flag = xgnu; then
5710 if test "$cross_compiling" = yes; then
5711 enable_clocale_flag=generic
5712 else
5713 cat >conftest.$ac_ext <<_ACEOF
5714 /* confdefs.h. */
5715 _ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h. */
5719
5720 #define _GNU_SOURCE 1
5721 #include <locale.h>
5722 #include <string.h>
5723 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5724 extern __typeof(newlocale) __newlocale;
5725 extern __typeof(duplocale) __duplocale;
5726 extern __typeof(strcoll_l) __strcoll_l;
5727 #endif
5728 int main()
5729 {
5730 const char __one[] = "Äuglein Augmen";
5731 const char __two[] = "Äuglein";
5732 int i;
5733 int j;
5734 __locale_t loc;
5735 __locale_t loc_dup;
5736 loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5737 loc_dup = __duplocale(loc);
5738 i = __strcoll_l(__one, __two, loc);
5739 j = __strcoll_l(__one, __two, loc_dup);
5740 return 0;
5741 }
5742
5743 _ACEOF
5744 rm -f conftest$ac_exeext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5746 (eval $ac_link) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 (eval $ac_try) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5755 enable_clocale_flag=gnu
5756 else
5757 echo "$as_me: program exited with status $ac_status" >&5
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5760
5761 ( exit $ac_status )
5762 enable_clocale_flag=generic
5763 fi
5764 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5765 fi
5766 fi
5767
5768 # ... at some point put __strxfrm_l tests in as well.
5769 ;;
5770 *)
5771 enable_clocale_flag=generic
5772 ;;
5773 esac
5774 fi
5775
5776 # Deal with gettext issues. Default to not using it (=no) until we detect
5777 # support for it later. Let the user turn it off via --e/d, but let that
5778 # default to on for easier handling.
5779 USE_NLS=no
5780 # Check whether --enable-nls or --disable-nls was given.
5781 if test "${enable_nls+set}" = set; then
5782 enableval="$enable_nls"
5783
5784 else
5785 enable_nls=yes
5786 fi;
5787
5788 # Set configure bits for specified locale package
5789 case ${enable_clocale_flag} in
5790 generic)
5791 echo "$as_me:$LINENO: result: generic" >&5
5792 echo "${ECHO_T}generic" >&6
5793
5794 CLOCALE_H=config/locale/generic/c_locale.h
5795 CLOCALE_CC=config/locale/generic/c_locale.cc
5796 CCODECVT_H=config/locale/generic/codecvt_specializations.h
5797 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5798 CCOLLATE_CC=config/locale/generic/collate_members.cc
5799 CCTYPE_CC=config/locale/generic/ctype_members.cc
5800 CMESSAGES_H=config/locale/generic/messages_members.h
5801 CMESSAGES_CC=config/locale/generic/messages_members.cc
5802 CMONEY_CC=config/locale/generic/monetary_members.cc
5803 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5804 CTIME_H=config/locale/generic/time_members.h
5805 CTIME_CC=config/locale/generic/time_members.cc
5806 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5807 ;;
5808 gnu)
5809 echo "$as_me:$LINENO: result: gnu" >&5
5810 echo "${ECHO_T}gnu" >&6
5811
5812 # Declare intention to use gettext, and add support for specific
5813 # languages.
5814 # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5815 ALL_LINGUAS="de fr"
5816
5817 # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5818 # Extract the first word of "msgfmt", so it can be a program name with args.
5819 set dummy msgfmt; ac_word=$2
5820 echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5822 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825 if test -n "$check_msgfmt"; then
5826 ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5827 else
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 for as_dir in $PATH
5830 do
5831 IFS=$as_save_IFS
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_check_msgfmt="yes"
5836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 break 2
5838 fi
5839 done
5840 done
5841
5842 test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5843 fi
5844 fi
5845 check_msgfmt=$ac_cv_prog_check_msgfmt
5846 if test -n "$check_msgfmt"; then
5847 echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5848 echo "${ECHO_T}$check_msgfmt" >&6
5849 else
5850 echo "$as_me:$LINENO: result: no" >&5
5851 echo "${ECHO_T}no" >&6
5852 fi
5853
5854 if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5855 USE_NLS=yes
5856 fi
5857 # Export the build objects.
5858 for ling in $ALL_LINGUAS; do \
5859 glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5860 glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5861 done
5862
5863
5864
5865 CLOCALE_H=config/locale/gnu/c_locale.h
5866 CLOCALE_CC=config/locale/gnu/c_locale.cc
5867 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5868 CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5869 CCOLLATE_CC=config/locale/gnu/collate_members.cc
5870 CCTYPE_CC=config/locale/gnu/ctype_members.cc
5871 CMESSAGES_H=config/locale/gnu/messages_members.h
5872 CMESSAGES_CC=config/locale/gnu/messages_members.cc
5873 CMONEY_CC=config/locale/gnu/monetary_members.cc
5874 CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5875 CTIME_H=config/locale/gnu/time_members.h
5876 CTIME_CC=config/locale/gnu/time_members.cc
5877 CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5878 ;;
5879 ieee_1003.1-2001)
5880 echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5881 echo "${ECHO_T}IEEE 1003.1" >&6
5882
5883 CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5884 CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5885 CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5886 CCODECVT_CC=config/locale/generic/codecvt_members.cc
5887 CCOLLATE_CC=config/locale/generic/collate_members.cc
5888 CCTYPE_CC=config/locale/generic/ctype_members.cc
5889 CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5890 CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5891 CMONEY_CC=config/locale/generic/monetary_members.cc
5892 CNUMERIC_CC=config/locale/generic/numeric_members.cc
5893 CTIME_H=config/locale/generic/time_members.h
5894 CTIME_CC=config/locale/generic/time_members.cc
5895 CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5896 ;;
5897 esac
5898
5899 # This is where the testsuite looks for locale catalogs, using the
5900 # -DLOCALEDIR define during testsuite compilation.
5901 glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5902
5903
5904 # A standalone libintl (e.g., GNU libintl) may be in use.
5905 if test $USE_NLS = yes; then
5906
5907 for ac_header in libintl.h
5908 do
5909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5911 echo "$as_me:$LINENO: checking for $ac_header" >&5
5912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 fi
5916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5918 else
5919 # Is the header compilable?
5920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5922 cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h. */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 $ac_includes_default
5929 #include <$ac_header>
5930 _ACEOF
5931 rm -f conftest.$ac_objext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933 (eval $ac_compile) 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -z "$ac_c_werror_flag"
5941 || test ! -s conftest.err'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; } &&
5947 { ac_try='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_header_compiler=yes
5954 else
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 ac_header_compiler=no
5959 fi
5960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5962 echo "${ECHO_T}$ac_header_compiler" >&6
5963
5964 # Is the header present?
5965 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5967 cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h. */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 #include <$ac_header>
5974 _ACEOF
5975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } >/dev/null; then
5983 if test -s conftest.err; then
5984 ac_cpp_err=$ac_c_preproc_warn_flag
5985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5986 else
5987 ac_cpp_err=
5988 fi
5989 else
5990 ac_cpp_err=yes
5991 fi
5992 if test -z "$ac_cpp_err"; then
5993 ac_header_preproc=yes
5994 else
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 ac_header_preproc=no
5999 fi
6000 rm -f conftest.err conftest.$ac_ext
6001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6002 echo "${ECHO_T}$ac_header_preproc" >&6
6003
6004 # So? What about this header?
6005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6006 yes:no: )
6007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6010 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6011 ac_header_preproc=yes
6012 ;;
6013 no:yes:* )
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6019 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6021 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6025 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6026 (
6027 cat <<\_ASBOX
6028 ## ----------------------------------------- ##
6029 ## Report this to the package-unused lists. ##
6030 ## ----------------------------------------- ##
6031 _ASBOX
6032 ) |
6033 sed "s/^/$as_me: WARNING: /" >&2
6034 ;;
6035 esac
6036 echo "$as_me:$LINENO: checking for $ac_header" >&5
6037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041 eval "$as_ac_Header=\$ac_header_preproc"
6042 fi
6043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6045
6046 fi
6047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6048 cat >>confdefs.h <<_ACEOF
6049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6050 _ACEOF
6051
6052 else
6053 USE_NLS=no
6054 fi
6055
6056 done
6057
6058 echo "$as_me:$LINENO: checking for library containing gettext" >&5
6059 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
6060 if test "${ac_cv_search_gettext+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063 ac_func_search_save_LIBS=$LIBS
6064 ac_cv_search_gettext=no
6065 if test x$gcc_no_link = xyes; then
6066 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6067 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6068 { (exit 1); exit 1; }; }
6069 fi
6070 cat >conftest.$ac_ext <<_ACEOF
6071 /* confdefs.h. */
6072 _ACEOF
6073 cat confdefs.h >>conftest.$ac_ext
6074 cat >>conftest.$ac_ext <<_ACEOF
6075 /* end confdefs.h. */
6076
6077 /* Override any gcc2 internal prototype to avoid an error. */
6078 #ifdef __cplusplus
6079 extern "C"
6080 #endif
6081 /* We use char because int might match the return type of a gcc2
6082 builtin and then its argument prototype would still apply. */
6083 char gettext ();
6084 int
6085 main ()
6086 {
6087 gettext ();
6088 ;
6089 return 0;
6090 }
6091 _ACEOF
6092 rm -f conftest.$ac_objext conftest$ac_exeext
6093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6094 (eval $ac_link) 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } &&
6101 { ac_try='test -z "$ac_c_werror_flag"
6102 || test ! -s conftest.err'
6103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6104 (eval $ac_try) 2>&5
6105 ac_status=$?
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }; } &&
6108 { ac_try='test -s conftest$ac_exeext'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 (eval $ac_try) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6114 ac_cv_search_gettext="none required"
6115 else
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119 fi
6120 rm -f conftest.err conftest.$ac_objext \
6121 conftest$ac_exeext conftest.$ac_ext
6122 if test "$ac_cv_search_gettext" = no; then
6123 for ac_lib in intl; do
6124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6125 if test x$gcc_no_link = xyes; then
6126 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6127 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6128 { (exit 1); exit 1; }; }
6129 fi
6130 cat >conftest.$ac_ext <<_ACEOF
6131 /* confdefs.h. */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136
6137 /* Override any gcc2 internal prototype to avoid an error. */
6138 #ifdef __cplusplus
6139 extern "C"
6140 #endif
6141 /* We use char because int might match the return type of a gcc2
6142 builtin and then its argument prototype would still apply. */
6143 char gettext ();
6144 int
6145 main ()
6146 {
6147 gettext ();
6148 ;
6149 return 0;
6150 }
6151 _ACEOF
6152 rm -f conftest.$ac_objext conftest$ac_exeext
6153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6154 (eval $ac_link) 2>conftest.er1
6155 ac_status=$?
6156 grep -v '^ *+' conftest.er1 >conftest.err
6157 rm -f conftest.er1
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } &&
6161 { ac_try='test -z "$ac_c_werror_flag"
6162 || test ! -s conftest.err'
6163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 (eval $ac_try) 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; } &&
6168 { ac_try='test -s conftest$ac_exeext'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 (eval $ac_try) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_cv_search_gettext="-l$ac_lib"
6175 break
6176 else
6177 echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180 fi
6181 rm -f conftest.err conftest.$ac_objext \
6182 conftest$ac_exeext conftest.$ac_ext
6183 done
6184 fi
6185 LIBS=$ac_func_search_save_LIBS
6186 fi
6187 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6188 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6189 if test "$ac_cv_search_gettext" != no; then
6190 test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6191
6192 else
6193 USE_NLS=no
6194 fi
6195
6196 fi
6197 if test $USE_NLS = yes; then
6198 cat >>confdefs.h <<\_ACEOF
6199 #define _GLIBCXX_USE_NLS 1
6200 _ACEOF
6201
6202 fi
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220 echo "$as_me:$LINENO: checking for std::allocator base class to use" >&5
6221 echo $ECHO_N "checking for std::allocator base class to use... $ECHO_C" >&6
6222 # Check whether --enable-libstdcxx-allocator or --disable-libstdcxx-allocator was given.
6223 if test "${enable_libstdcxx_allocator+set}" = set; then
6224 enableval="$enable_libstdcxx_allocator"
6225
6226 case "$enableval" in
6227 new|malloc|mt|bitmap|pool|yes|no|auto) ;;
6228 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable libstdcxx-allocator" >&5
6229 echo "$as_me: error: Unknown argument to enable/disable libstdcxx-allocator" >&2;}
6230 { (exit 1); exit 1; }; } ;;
6231 esac
6232
6233 else
6234 enable_libstdcxx_allocator=auto
6235 fi;
6236
6237 # If they didn't use this option switch, or if they specified --enable
6238 # with no specific model, we'll have to look for one. If they
6239 # specified --disable (???), do likewise.
6240 if test $enable_libstdcxx_allocator = no || test $enable_libstdcxx_allocator = yes; then
6241 enable_libstdcxx_allocator=auto
6242 fi
6243
6244 # Either a known package, or "auto"
6245 enable_libstdcxx_allocator_flag=$enable_libstdcxx_allocator
6246
6247 # Probe for host-specific support if no specific model is specified.
6248 # Default to "new".
6249 if test $enable_libstdcxx_allocator_flag = auto; then
6250 case ${target_os} in
6251 *)
6252 enable_libstdcxx_allocator_flag=new
6253 ;;
6254 esac
6255 fi
6256 echo "$as_me:$LINENO: result: $enable_libstdcxx_allocator_flag" >&5
6257 echo "${ECHO_T}$enable_libstdcxx_allocator_flag" >&6
6258
6259
6260 # Set configure bits for specified locale package
6261 case ${enable_libstdcxx_allocator_flag} in
6262 bitmap)
6263 ALLOCATOR_H=config/allocator/bitmap_allocator_base.h
6264 ALLOCATOR_NAME=__gnu_cxx::bitmap_allocator
6265 ;;
6266 malloc)
6267 ALLOCATOR_H=config/allocator/malloc_allocator_base.h
6268 ALLOCATOR_NAME=__gnu_cxx::malloc_allocator
6269 ;;
6270 mt)
6271 ALLOCATOR_H=config/allocator/mt_allocator_base.h
6272 ALLOCATOR_NAME=__gnu_cxx::__mt_alloc
6273 ;;
6274 new)
6275 ALLOCATOR_H=config/allocator/new_allocator_base.h
6276 ALLOCATOR_NAME=__gnu_cxx::new_allocator
6277 ;;
6278 pool)
6279 ALLOCATOR_H=config/allocator/pool_allocator_base.h
6280 ALLOCATOR_NAME=__gnu_cxx::__pool_alloc
6281 ;;
6282 esac
6283
6284
6285
6286
6287
6288 # Check whether --enable-cheaders or --disable-cheaders was given.
6289 if test "${enable_cheaders+set}" = set; then
6290 enableval="$enable_cheaders"
6291
6292 case "$enableval" in
6293 c|c_std) ;;
6294 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6295 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6296 { (exit 1); exit 1; }; } ;;
6297 esac
6298
6299 else
6300 enable_cheaders=$c_model
6301 fi;
6302
6303 { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6304 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6305
6306 C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6307
6308
6309
6310
6311
6312
6313 # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6314 if test "${enable_c_mbchar+set}" = set; then
6315 enableval="$enable_c_mbchar"
6316
6317 case "$enableval" in
6318 yes|no) ;;
6319 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6320 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6321 { (exit 1); exit 1; }; } ;;
6322 esac
6323
6324 else
6325 enable_c_mbchar=yes
6326 fi;
6327
6328 # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6329
6330
6331
6332 # Check whether --enable-c99 or --disable-c99 was given.
6333 if test "${enable_c99+set}" = set; then
6334 enableval="$enable_c99"
6335
6336 case "$enableval" in
6337 yes|no) ;;
6338 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6339 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6340 { (exit 1); exit 1; }; } ;;
6341 esac
6342
6343 else
6344 enable_c99=yes
6345 fi;
6346
6347
6348
6349
6350 ac_ext=cc
6351 ac_cpp='$CXXCPP $CPPFLAGS'
6352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6355
6356
6357 # Check for the existence of <math.h> functions used if C99 is enabled.
6358 ac_c99_math=yes;
6359 echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6360 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367 #include <math.h>
6368 int
6369 main ()
6370 {
6371 fpclassify(0.0);
6372 ;
6373 return 0;
6374 }
6375 _ACEOF
6376 rm -f conftest.$ac_objext
6377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6378 (eval $ac_compile) 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_cxx_werror_flag"
6386 || test ! -s conftest.err'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest.$ac_objext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 :
6399 else
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 ac_c99_math=no
6404 fi
6405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6406 cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h. */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 #include <math.h>
6413 int
6414 main ()
6415 {
6416 isfinite(0.0);
6417 ;
6418 return 0;
6419 }
6420 _ACEOF
6421 rm -f conftest.$ac_objext
6422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6423 (eval $ac_compile) 2>conftest.er1
6424 ac_status=$?
6425 grep -v '^ *+' conftest.er1 >conftest.err
6426 rm -f conftest.er1
6427 cat conftest.err >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } &&
6430 { ac_try='test -z "$ac_cxx_werror_flag"
6431 || test ! -s conftest.err'
6432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 (eval $ac_try) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; } &&
6437 { ac_try='test -s conftest.$ac_objext'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 :
6444 else
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6447
6448 ac_c99_math=no
6449 fi
6450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6451 cat >conftest.$ac_ext <<_ACEOF
6452 /* confdefs.h. */
6453 _ACEOF
6454 cat confdefs.h >>conftest.$ac_ext
6455 cat >>conftest.$ac_ext <<_ACEOF
6456 /* end confdefs.h. */
6457 #include <math.h>
6458 int
6459 main ()
6460 {
6461 isinf(0.0);
6462 ;
6463 return 0;
6464 }
6465 _ACEOF
6466 rm -f conftest.$ac_objext
6467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6468 (eval $ac_compile) 2>conftest.er1
6469 ac_status=$?
6470 grep -v '^ *+' conftest.er1 >conftest.err
6471 rm -f conftest.er1
6472 cat conftest.err >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } &&
6475 { ac_try='test -z "$ac_cxx_werror_flag"
6476 || test ! -s conftest.err'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; } &&
6482 { ac_try='test -s conftest.$ac_objext'
6483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484 (eval $ac_try) 2>&5
6485 ac_status=$?
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); }; }; then
6488 :
6489 else
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6492
6493 ac_c99_math=no
6494 fi
6495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6496 cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h. */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6502 #include <math.h>
6503 int
6504 main ()
6505 {
6506 isnan(0.0);
6507 ;
6508 return 0;
6509 }
6510 _ACEOF
6511 rm -f conftest.$ac_objext
6512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513 (eval $ac_compile) 2>conftest.er1
6514 ac_status=$?
6515 grep -v '^ *+' conftest.er1 >conftest.err
6516 rm -f conftest.er1
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -z "$ac_cxx_werror_flag"
6521 || test ! -s conftest.err'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 (eval $ac_try) 2>&5
6524 ac_status=$?
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; } &&
6527 { ac_try='test -s conftest.$ac_objext'
6528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 (eval $ac_try) 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; }; then
6533 :
6534 else
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6537
6538 ac_c99_math=no
6539 fi
6540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6541 cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h. */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 #include <math.h>
6548 int
6549 main ()
6550 {
6551 isnormal(0.0);
6552 ;
6553 return 0;
6554 }
6555 _ACEOF
6556 rm -f conftest.$ac_objext
6557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6558 (eval $ac_compile) 2>conftest.er1
6559 ac_status=$?
6560 grep -v '^ *+' conftest.er1 >conftest.err
6561 rm -f conftest.er1
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } &&
6565 { ac_try='test -z "$ac_cxx_werror_flag"
6566 || test ! -s conftest.err'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 (eval $ac_try) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; } &&
6572 { ac_try='test -s conftest.$ac_objext'
6573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 (eval $ac_try) 2>&5
6575 ac_status=$?
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; }; then
6578 :
6579 else
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583 ac_c99_math=no
6584 fi
6585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6586 cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h. */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 #include <math.h>
6593 int
6594 main ()
6595 {
6596 signbit(0.0);
6597 ;
6598 return 0;
6599 }
6600 _ACEOF
6601 rm -f conftest.$ac_objext
6602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6603 (eval $ac_compile) 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } &&
6610 { ac_try='test -z "$ac_cxx_werror_flag"
6611 || test ! -s conftest.err'
6612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 (eval $ac_try) 2>&5
6614 ac_status=$?
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); }; } &&
6617 { ac_try='test -s conftest.$ac_objext'
6618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 (eval $ac_try) 2>&5
6620 ac_status=$?
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; }; then
6623 :
6624 else
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6627
6628 ac_c99_math=no
6629 fi
6630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6631 cat >conftest.$ac_ext <<_ACEOF
6632 /* confdefs.h. */
6633 _ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h. */
6637 #include <math.h>
6638 int
6639 main ()
6640 {
6641 isgreater(0.0,0.0);
6642 ;
6643 return 0;
6644 }
6645 _ACEOF
6646 rm -f conftest.$ac_objext
6647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6648 (eval $ac_compile) 2>conftest.er1
6649 ac_status=$?
6650 grep -v '^ *+' conftest.er1 >conftest.err
6651 rm -f conftest.er1
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -z "$ac_cxx_werror_flag"
6656 || test ! -s conftest.err'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 (eval $ac_try) 2>&5
6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 :
6669 else
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6672
6673 ac_c99_math=no
6674 fi
6675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6676 cat >conftest.$ac_ext <<_ACEOF
6677 /* confdefs.h. */
6678 _ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 #include <math.h>
6683 int
6684 main ()
6685 {
6686 isgreaterequal(0.0,0.0);
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -z "$ac_cxx_werror_flag"
6701 || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 :
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6717
6718 ac_c99_math=no
6719 fi
6720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6721 cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h. */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6727 #include <math.h>
6728 int
6729 main ()
6730 {
6731 isless(0.0,0.0);
6732 ;
6733 return 0;
6734 }
6735 _ACEOF
6736 rm -f conftest.$ac_objext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738 (eval $ac_compile) 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try='test -z "$ac_cxx_werror_flag"
6746 || test ! -s conftest.err'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; } &&
6752 { ac_try='test -s conftest.$ac_objext'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 (eval $ac_try) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; }; then
6758 :
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6762
6763 ac_c99_math=no
6764 fi
6765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6766 cat >conftest.$ac_ext <<_ACEOF
6767 /* confdefs.h. */
6768 _ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6772 #include <math.h>
6773 int
6774 main ()
6775 {
6776 islessequal(0.0,0.0);
6777 ;
6778 return 0;
6779 }
6780 _ACEOF
6781 rm -f conftest.$ac_objext
6782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6783 (eval $ac_compile) 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } &&
6790 { ac_try='test -z "$ac_cxx_werror_flag"
6791 || test ! -s conftest.err'
6792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 (eval $ac_try) 2>&5
6794 ac_status=$?
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); }; } &&
6797 { ac_try='test -s conftest.$ac_objext'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 (eval $ac_try) 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; }; then
6803 :
6804 else
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6807
6808 ac_c99_math=no
6809 fi
6810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6811 cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h. */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6817 #include <math.h>
6818 int
6819 main ()
6820 {
6821 islessgreater(0.0,0.0);
6822 ;
6823 return 0;
6824 }
6825 _ACEOF
6826 rm -f conftest.$ac_objext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6828 (eval $ac_compile) 2>conftest.er1
6829 ac_status=$?
6830 grep -v '^ *+' conftest.er1 >conftest.err
6831 rm -f conftest.er1
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } &&
6835 { ac_try='test -z "$ac_cxx_werror_flag"
6836 || test ! -s conftest.err'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 (eval $ac_try) 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; } &&
6842 { ac_try='test -s conftest.$ac_objext'
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 (eval $ac_try) 2>&5
6845 ac_status=$?
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; }; then
6848 :
6849 else
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6852
6853 ac_c99_math=no
6854 fi
6855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h. */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6862 #include <math.h>
6863 int
6864 main ()
6865 {
6866 isunordered(0.0,0.0);
6867 ;
6868 return 0;
6869 }
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873 (eval $ac_compile) 2>conftest.er1
6874 ac_status=$?
6875 grep -v '^ *+' conftest.er1 >conftest.err
6876 rm -f conftest.er1
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -z "$ac_cxx_werror_flag"
6881 || test ! -s conftest.err'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; } &&
6887 { ac_try='test -s conftest.$ac_objext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 (eval $ac_try) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6893 :
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6897
6898 ac_c99_math=no
6899 fi
6900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6901 echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6902 echo "${ECHO_T}$ac_c99_math" >&6
6903
6904 if test x"$ac_c99_math" = x"yes"; then
6905 cat >>confdefs.h <<\_ACEOF
6906 #define _GLIBCXX_USE_C99_MATH 1
6907 _ACEOF
6908
6909 fi
6910
6911 # Check for the existence in <stdio.h> of vscanf, et. al.
6912 ac_c99_stdio=yes;
6913 echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6914 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6915 cat >conftest.$ac_ext <<_ACEOF
6916 /* confdefs.h. */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6921 #include <stdio.h>
6922 int
6923 main ()
6924 {
6925 snprintf("12", 0, "%i");
6926 ;
6927 return 0;
6928 }
6929 _ACEOF
6930 rm -f conftest.$ac_objext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6932 (eval $ac_compile) 2>conftest.er1
6933 ac_status=$?
6934 grep -v '^ *+' conftest.er1 >conftest.err
6935 rm -f conftest.er1
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } &&
6939 { ac_try='test -z "$ac_cxx_werror_flag"
6940 || test ! -s conftest.err'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6942 (eval $ac_try) 2>&5
6943 ac_status=$?
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; } &&
6946 { ac_try='test -s conftest.$ac_objext'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6948 (eval $ac_try) 2>&5
6949 ac_status=$?
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; }; then
6952 :
6953 else
6954 echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6956
6957 ac_c99_stdio=no
6958 fi
6959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6960 cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h. */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 #include <stdio.h>
6967 #include <stdarg.h>
6968 void foo(char* fmt, ...)
6969 {va_list args; va_start(args, fmt);
6970 vfscanf(stderr, "%i", args);}
6971 int
6972 main ()
6973 {
6974
6975 ;
6976 return 0;
6977 }
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6981 (eval $ac_compile) 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } &&
6988 { ac_try='test -z "$ac_cxx_werror_flag"
6989 || test ! -s conftest.err'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 (eval $ac_try) 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; } &&
6995 { ac_try='test -s conftest.$ac_objext'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 (eval $ac_try) 2>&5
6998 ac_status=$?
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; }; then
7001 :
7002 else
7003 echo "$as_me: failed program was:" >&5
7004 sed 's/^/| /' conftest.$ac_ext >&5
7005
7006 ac_c99_stdio=no
7007 fi
7008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7009 cat >conftest.$ac_ext <<_ACEOF
7010 /* confdefs.h. */
7011 _ACEOF
7012 cat confdefs.h >>conftest.$ac_ext
7013 cat >>conftest.$ac_ext <<_ACEOF
7014 /* end confdefs.h. */
7015 #include <stdio.h>
7016 #include <stdarg.h>
7017 void foo(char* fmt, ...)
7018 {va_list args; va_start(args, fmt);
7019 vscanf("%i", args);}
7020 int
7021 main ()
7022 {
7023
7024 ;
7025 return 0;
7026 }
7027 _ACEOF
7028 rm -f conftest.$ac_objext
7029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7030 (eval $ac_compile) 2>conftest.er1
7031 ac_status=$?
7032 grep -v '^ *+' conftest.er1 >conftest.err
7033 rm -f conftest.er1
7034 cat conftest.err >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } &&
7037 { ac_try='test -z "$ac_cxx_werror_flag"
7038 || test ! -s conftest.err'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 (eval $ac_try) 2>&5
7041 ac_status=$?
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; } &&
7044 { ac_try='test -s conftest.$ac_objext'
7045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046 (eval $ac_try) 2>&5
7047 ac_status=$?
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; }; then
7050 :
7051 else
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7054
7055 ac_c99_stdio=no
7056 fi
7057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7058 cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h. */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 #include <stdio.h>
7065 #include <stdarg.h>
7066 void foo(char* fmt, ...)
7067 {va_list args; va_start(args, fmt);
7068 vsnprintf(fmt, 0, "%i", args);}
7069 int
7070 main ()
7071 {
7072
7073 ;
7074 return 0;
7075 }
7076 _ACEOF
7077 rm -f conftest.$ac_objext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7079 (eval $ac_compile) 2>conftest.er1
7080 ac_status=$?
7081 grep -v '^ *+' conftest.er1 >conftest.err
7082 rm -f conftest.er1
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } &&
7086 { ac_try='test -z "$ac_cxx_werror_flag"
7087 || test ! -s conftest.err'
7088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 (eval $ac_try) 2>&5
7090 ac_status=$?
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); }; } &&
7093 { ac_try='test -s conftest.$ac_objext'
7094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095 (eval $ac_try) 2>&5
7096 ac_status=$?
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; }; then
7099 :
7100 else
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7103
7104 ac_c99_stdio=no
7105 fi
7106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h. */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 #include <stdio.h>
7114 #include <stdarg.h>
7115 void foo(char* fmt, ...)
7116 {va_list args; va_start(args, fmt);
7117 vsscanf(fmt, "%i", args);}
7118 int
7119 main ()
7120 {
7121
7122 ;
7123 return 0;
7124 }
7125 _ACEOF
7126 rm -f conftest.$ac_objext
7127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7128 (eval $ac_compile) 2>conftest.er1
7129 ac_status=$?
7130 grep -v '^ *+' conftest.er1 >conftest.err
7131 rm -f conftest.er1
7132 cat conftest.err >&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } &&
7135 { ac_try='test -z "$ac_cxx_werror_flag"
7136 || test ! -s conftest.err'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 (eval $ac_try) 2>&5
7139 ac_status=$?
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; } &&
7142 { ac_try='test -s conftest.$ac_objext'
7143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144 (eval $ac_try) 2>&5
7145 ac_status=$?
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; }; then
7148 :
7149 else
7150 echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7152
7153 ac_c99_stdio=no
7154 fi
7155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7156 echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
7157 echo "${ECHO_T}$ac_c99_stdio" >&6
7158
7159 # Check for the existence in <stdlib.h> of lldiv_t, et. al.
7160 ac_c99_stdlib=yes;
7161 echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
7162 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
7163 if test "${ac_c99_lldiv_t+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166
7167 cat >conftest.$ac_ext <<_ACEOF
7168 /* confdefs.h. */
7169 _ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7173 #include <stdlib.h>
7174 int
7175 main ()
7176 {
7177 lldiv_t mydivt;
7178 ;
7179 return 0;
7180 }
7181 _ACEOF
7182 rm -f conftest.$ac_objext
7183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7184 (eval $ac_compile) 2>conftest.er1
7185 ac_status=$?
7186 grep -v '^ *+' conftest.er1 >conftest.err
7187 rm -f conftest.er1
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } &&
7191 { ac_try='test -z "$ac_cxx_werror_flag"
7192 || test ! -s conftest.err'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 (eval $ac_try) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; } &&
7198 { ac_try='test -s conftest.$ac_objext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 ac_c99_lldiv_t=yes
7205 else
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7208
7209 ac_c99_lldiv_t=no
7210 fi
7211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7212
7213 fi
7214
7215 echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
7216 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
7217
7218 echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
7219 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
7220 cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h. */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 #include <stdlib.h>
7227 int
7228 main ()
7229 {
7230 char* tmp; strtof("gnu", &tmp);
7231 ;
7232 return 0;
7233 }
7234 _ACEOF
7235 rm -f conftest.$ac_objext
7236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7237 (eval $ac_compile) 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } &&
7244 { ac_try='test -z "$ac_cxx_werror_flag"
7245 || test ! -s conftest.err'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 (eval $ac_try) 2>&5
7248 ac_status=$?
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; } &&
7251 { ac_try='test -s conftest.$ac_objext'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 (eval $ac_try) 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 :
7258 else
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7261
7262 ac_c99_stdlib=no
7263 fi
7264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h. */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 #include <stdlib.h>
7272 int
7273 main ()
7274 {
7275 char* tmp; strtold("gnu", &tmp);
7276 ;
7277 return 0;
7278 }
7279 _ACEOF
7280 rm -f conftest.$ac_objext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7282 (eval $ac_compile) 2>conftest.er1
7283 ac_status=$?
7284 grep -v '^ *+' conftest.er1 >conftest.err
7285 rm -f conftest.er1
7286 cat conftest.err >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try='test -z "$ac_cxx_werror_flag"
7290 || test ! -s conftest.err'
7291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292 (eval $ac_try) 2>&5
7293 ac_status=$?
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; } &&
7296 { ac_try='test -s conftest.$ac_objext'
7297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298 (eval $ac_try) 2>&5
7299 ac_status=$?
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); }; }; then
7302 :
7303 else
7304 echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7306
7307 ac_c99_stdlib=no
7308 fi
7309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 #include <stdlib.h>
7317 int
7318 main ()
7319 {
7320 llabs(10);
7321 ;
7322 return 0;
7323 }
7324 _ACEOF
7325 rm -f conftest.$ac_objext
7326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7327 (eval $ac_compile) 2>conftest.er1
7328 ac_status=$?
7329 grep -v '^ *+' conftest.er1 >conftest.err
7330 rm -f conftest.er1
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } &&
7334 { ac_try='test -z "$ac_cxx_werror_flag"
7335 || test ! -s conftest.err'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337 (eval $ac_try) 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; } &&
7341 { ac_try='test -s conftest.$ac_objext'
7342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343 (eval $ac_try) 2>&5
7344 ac_status=$?
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7347 :
7348 else
7349 echo "$as_me: failed program was:" >&5
7350 sed 's/^/| /' conftest.$ac_ext >&5
7351
7352 ac_c99_stdlib=no
7353 fi
7354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7355 cat >conftest.$ac_ext <<_ACEOF
7356 /* confdefs.h. */
7357 _ACEOF
7358 cat confdefs.h >>conftest.$ac_ext
7359 cat >>conftest.$ac_ext <<_ACEOF
7360 /* end confdefs.h. */
7361 #include <stdlib.h>
7362 int
7363 main ()
7364 {
7365 lldiv(10,1);
7366 ;
7367 return 0;
7368 }
7369 _ACEOF
7370 rm -f conftest.$ac_objext
7371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7372 (eval $ac_compile) 2>conftest.er1
7373 ac_status=$?
7374 grep -v '^ *+' conftest.er1 >conftest.err
7375 rm -f conftest.er1
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } &&
7379 { ac_try='test -z "$ac_cxx_werror_flag"
7380 || test ! -s conftest.err'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7382 (eval $ac_try) 2>&5
7383 ac_status=$?
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; } &&
7386 { ac_try='test -s conftest.$ac_objext'
7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388 (eval $ac_try) 2>&5
7389 ac_status=$?
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7392 :
7393 else
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7396
7397 ac_c99_stdlib=no
7398 fi
7399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7400 cat >conftest.$ac_ext <<_ACEOF
7401 /* confdefs.h. */
7402 _ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7406 #include <stdlib.h>
7407 int
7408 main ()
7409 {
7410 atoll("10");
7411 ;
7412 return 0;
7413 }
7414 _ACEOF
7415 rm -f conftest.$ac_objext
7416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7417 (eval $ac_compile) 2>conftest.er1
7418 ac_status=$?
7419 grep -v '^ *+' conftest.er1 >conftest.err
7420 rm -f conftest.er1
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } &&
7424 { ac_try='test -z "$ac_cxx_werror_flag"
7425 || test ! -s conftest.err'
7426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427 (eval $ac_try) 2>&5
7428 ac_status=$?
7429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); }; } &&
7431 { ac_try='test -s conftest.$ac_objext'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 (eval $ac_try) 2>&5
7434 ac_status=$?
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; }; then
7437 :
7438 else
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7441
7442 ac_c99_stdlib=no
7443 fi
7444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7445 cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h. */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451 #include <stdlib.h>
7452 int
7453 main ()
7454 {
7455 _Exit(0);
7456 ;
7457 return 0;
7458 }
7459 _ACEOF
7460 rm -f conftest.$ac_objext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7462 (eval $ac_compile) 2>conftest.er1
7463 ac_status=$?
7464 grep -v '^ *+' conftest.er1 >conftest.err
7465 rm -f conftest.er1
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try='test -z "$ac_cxx_werror_flag"
7470 || test ! -s conftest.err'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; } &&
7476 { ac_try='test -s conftest.$ac_objext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7478 (eval $ac_try) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 :
7483 else
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7486
7487 ac_c99_stdlib=no
7488 fi
7489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7490 if test x"$ac_c99_lldiv_t" = x"no"; then
7491 ac_c99_stdlib=no;
7492 fi;
7493 echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7494 echo "${ECHO_T}$ac_c99_stdlib" >&6
7495
7496 # Check for the existence of <wchar.h> functions used if C99 is enabled.
7497 # XXX the wchar.h checks should be rolled into the general C99 bits.
7498 ac_c99_wchar=yes;
7499 echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7500 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7501 cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h. */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 #include <wchar.h>
7508 int
7509 main ()
7510 {
7511 wcstold(L"10.0", NULL);
7512 ;
7513 return 0;
7514 }
7515 _ACEOF
7516 rm -f conftest.$ac_objext
7517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7518 (eval $ac_compile) 2>conftest.er1
7519 ac_status=$?
7520 grep -v '^ *+' conftest.er1 >conftest.err
7521 rm -f conftest.er1
7522 cat conftest.err >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } &&
7525 { ac_try='test -z "$ac_cxx_werror_flag"
7526 || test ! -s conftest.err'
7527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 (eval $ac_try) 2>&5
7529 ac_status=$?
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; } &&
7532 { ac_try='test -s conftest.$ac_objext'
7533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7534 (eval $ac_try) 2>&5
7535 ac_status=$?
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); }; }; then
7538 :
7539 else
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7542
7543 ac_c99_wchar=no
7544 fi
7545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7546 cat >conftest.$ac_ext <<_ACEOF
7547 /* confdefs.h. */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */
7552 #include <wchar.h>
7553 int
7554 main ()
7555 {
7556 wcstoll(L"10", NULL, 10);
7557 ;
7558 return 0;
7559 }
7560 _ACEOF
7561 rm -f conftest.$ac_objext
7562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7563 (eval $ac_compile) 2>conftest.er1
7564 ac_status=$?
7565 grep -v '^ *+' conftest.er1 >conftest.err
7566 rm -f conftest.er1
7567 cat conftest.err >&5
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } &&
7570 { ac_try='test -z "$ac_cxx_werror_flag"
7571 || test ! -s conftest.err'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; } &&
7577 { ac_try='test -s conftest.$ac_objext'
7578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579 (eval $ac_try) 2>&5
7580 ac_status=$?
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 :
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588 ac_c99_wchar=no
7589 fi
7590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7591 cat >conftest.$ac_ext <<_ACEOF
7592 /* confdefs.h. */
7593 _ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h. */
7597 #include <wchar.h>
7598 int
7599 main ()
7600 {
7601 wcstoull(L"10", NULL, 10);
7602 ;
7603 return 0;
7604 }
7605 _ACEOF
7606 rm -f conftest.$ac_objext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7608 (eval $ac_compile) 2>conftest.er1
7609 ac_status=$?
7610 grep -v '^ *+' conftest.er1 >conftest.err
7611 rm -f conftest.er1
7612 cat conftest.err >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } &&
7615 { ac_try='test -z "$ac_cxx_werror_flag"
7616 || test ! -s conftest.err'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618 (eval $ac_try) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; } &&
7622 { ac_try='test -s conftest.$ac_objext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 :
7629 else
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633 ac_c99_wchar=no
7634 fi
7635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7636 echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7637 echo "${ECHO_T}$ac_c99_wchar" >&6
7638
7639 echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7640 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7641 if test x"$ac_c99_math" = x"no" ||
7642 test x"$ac_c99_stdio" = x"no" ||
7643 test x"$ac_c99_stdlib" = x"no" ||
7644 test x"$ac_c99_wchar" = x"no"; then
7645 enable_c99=no;
7646 fi;
7647 echo "$as_me:$LINENO: result: $enable_c99" >&5
7648 echo "${ECHO_T}$enable_c99" >&6
7649
7650 if test x"$ac_99_math" = x"yes"; then
7651 cat >>confdefs.h <<\_ACEOF
7652 #define _GLIBCXX_USE_C99_MATH 1
7653 _ACEOF
7654
7655 fi
7656
7657 # Option parsed, now set things appropriately
7658 if test x"$enable_c99" = x"yes"; then
7659 cat >>confdefs.h <<\_ACEOF
7660 #define _GLIBCXX_USE_C99 1
7661 _ACEOF
7662
7663 fi
7664
7665 ac_ext=c
7666 ac_cpp='$CPP $CPPFLAGS'
7667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7670
7671
7672
7673 # Check whether --enable-long-long or --disable-long-long was given.
7674 if test "${enable_long_long+set}" = set; then
7675 enableval="$enable_long_long"
7676
7677 case "$enableval" in
7678 yes|no) ;;
7679 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7680 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7681 { (exit 1); exit 1; }; } ;;
7682 esac
7683
7684 else
7685 enable_long_long=yes
7686 fi;
7687
7688 if test $enable_long_long = yes; then
7689 cat >>confdefs.h <<\_ACEOF
7690 #define _GLIBCXX_USE_LONG_LONG 1
7691 _ACEOF
7692
7693 fi
7694
7695
7696 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7697 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7698 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7699 echo "$as_me:$LINENO: result: $target_thread_file" >&5
7700 echo "${ECHO_T}$target_thread_file" >&6
7701
7702 if test $target_thread_file != single; then
7703 cat >>confdefs.h <<\_ACEOF
7704 #define HAVE_GTHR_DEFAULT 1
7705 _ACEOF
7706
7707 fi
7708
7709 glibcxx_thread_h=gthr-$target_thread_file.h
7710
7711
7712
7713 # Check whether --enable-concept-checks or --disable-concept-checks was given.
7714 if test "${enable_concept_checks+set}" = set; then
7715 enableval="$enable_concept_checks"
7716
7717 case "$enableval" in
7718 yes|no) ;;
7719 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7720 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7721 { (exit 1); exit 1; }; } ;;
7722 esac
7723
7724 else
7725 enable_concept_checks=no
7726 fi;
7727
7728 if test $enable_concept_checks = yes; then
7729 cat >>confdefs.h <<\_ACEOF
7730 #define _GLIBCXX_CONCEPT_CHECKS 1
7731 _ACEOF
7732
7733 fi
7734
7735
7736 # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7737 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7738 enableval="$enable_libstdcxx_debug_flags"
7739 case "x$enable_libstdcxx_debug_flags" in
7740 xno | x) enable_libstdcxx_debug_flags= ;;
7741 x-*) ;;
7742 *) { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7743 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7744 { (exit 1); exit 1; }; } ;;
7745 esac
7746 else
7747 enable_libstdcxx_debug_flags="-g3 -O0"
7748 fi;
7749
7750
7751 # Option parsed, now set things appropriately
7752 DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7753
7754
7755 { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7756 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7757
7758
7759 echo "$as_me:$LINENO: checking for additional debug build" >&5
7760 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7761 # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7762 if test "${enable_libstdcxx_debug+set}" = set; then
7763 enableval="$enable_libstdcxx_debug"
7764
7765 case "$enableval" in
7766 yes|no) ;;
7767 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7768 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7769 { (exit 1); exit 1; }; } ;;
7770 esac
7771
7772 else
7773 enable_libstdcxx_debug=no
7774 fi;
7775
7776 echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7777 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7778
7779
7780 echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7781 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7782 # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7783 if test "${enable_cxx_flags+set}" = set; then
7784 enableval="$enable_cxx_flags"
7785 case "x$enable_cxx_flags" in
7786 xno | x) enable_cxx_flags= ;;
7787 x-*) ;;
7788 *) { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7789 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7790 { (exit 1); exit 1; }; } ;;
7791 esac
7792 else
7793 enable_cxx_flags=
7794 fi;
7795
7796
7797 # Run through flags (either default or command-line) and set anything
7798 # extra (e.g., #defines) that must accompany particular g++ options.
7799 if test -n "$enable_cxx_flags"; then
7800 for f in $enable_cxx_flags; do
7801 case "$f" in
7802 -fhonor-std) ;;
7803 -*) ;;
7804 *) # and we're trying to pass /what/ exactly?
7805 { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7806 echo "$as_me: error: compiler flags start with a -" >&2;}
7807 { (exit 1); exit 1; }; } ;;
7808 esac
7809 done
7810 fi
7811
7812 EXTRA_CXX_FLAGS="$enable_cxx_flags"
7813 echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7814 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7815
7816
7817
7818 # No surprises, no surprises...
7819 if test $atomicity_dir = cpu/generic ; then
7820 { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7821 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7822 if test $target_thread_file = single; then
7823 { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7824 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7825 { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7826 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7827 else
7828 { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7829 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7830 { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7831 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7832 fi
7833 fi
7834
7835
7836 if $GLIBCXX_IS_NATIVE; then
7837
7838 # We can do more elaborate tests that assume a working linker.
7839 CANADIAN=no
7840
7841 # Check for available headers.
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
7856 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
7857 sys/types.h
7858 do
7859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7861 echo "$as_me:$LINENO: checking for $ac_header" >&5
7862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865 fi
7866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7868 else
7869 # Is the header compilable?
7870 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7872 cat >conftest.$ac_ext <<_ACEOF
7873 /* confdefs.h. */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7878 $ac_includes_default
7879 #include <$ac_header>
7880 _ACEOF
7881 rm -f conftest.$ac_objext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883 (eval $ac_compile) 2>conftest.er1
7884 ac_status=$?
7885 grep -v '^ *+' conftest.er1 >conftest.err
7886 rm -f conftest.er1
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -z "$ac_c_werror_flag"
7891 || test ! -s conftest.err'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893 (eval $ac_try) 2>&5
7894 ac_status=$?
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; } &&
7897 { ac_try='test -s conftest.$ac_objext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899 (eval $ac_try) 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 ac_header_compiler=yes
7904 else
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7907
7908 ac_header_compiler=no
7909 fi
7910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7912 echo "${ECHO_T}$ac_header_compiler" >&6
7913
7914 # Is the header present?
7915 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7917 cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h. */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 #include <$ac_header>
7924 _ACEOF
7925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7927 ac_status=$?
7928 grep -v '^ *+' conftest.er1 >conftest.err
7929 rm -f conftest.er1
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } >/dev/null; then
7933 if test -s conftest.err; then
7934 ac_cpp_err=$ac_c_preproc_warn_flag
7935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7936 else
7937 ac_cpp_err=
7938 fi
7939 else
7940 ac_cpp_err=yes
7941 fi
7942 if test -z "$ac_cpp_err"; then
7943 ac_header_preproc=yes
7944 else
7945 echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7947
7948 ac_header_preproc=no
7949 fi
7950 rm -f conftest.err conftest.$ac_ext
7951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7952 echo "${ECHO_T}$ac_header_preproc" >&6
7953
7954 # So? What about this header?
7955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7956 yes:no: )
7957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7961 ac_header_preproc=yes
7962 ;;
7963 no:yes:* )
7964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7976 (
7977 cat <<\_ASBOX
7978 ## ----------------------------------------- ##
7979 ## Report this to the package-unused lists. ##
7980 ## ----------------------------------------- ##
7981 _ASBOX
7982 ) |
7983 sed "s/^/$as_me: WARNING: /" >&2
7984 ;;
7985 esac
7986 echo "$as_me:$LINENO: checking for $ac_header" >&5
7987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991 eval "$as_ac_Header=\$ac_header_preproc"
7992 fi
7993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7995
7996 fi
7997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7998 cat >>confdefs.h <<_ACEOF
7999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8000 _ACEOF
8001
8002 fi
8003
8004 done
8005
8006
8007
8008 # All these tests are for C++; save the language and the compiler flags.
8009 # The CXXFLAGS thing is suspicious, but based on similar bits previously
8010 # found in GLIBCXX_CONFIGURE.
8011
8012
8013 ac_ext=cc
8014 ac_cpp='$CXXCPP $CPPFLAGS'
8015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8018
8019 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8020 ac_save_CXXFLAGS="$CXXFLAGS"
8021
8022 # Check for maintainer-mode bits.
8023 if test x"$USE_MAINTAINER_MODE" = xno; then
8024 WERROR=''
8025 else
8026 WERROR='-Werror'
8027 fi
8028
8029 # Check for -ffunction-sections -fdata-sections
8030 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
8031 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
8032 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
8033 cat >conftest.$ac_ext <<_ACEOF
8034 /* confdefs.h. */
8035 _ACEOF
8036 cat confdefs.h >>conftest.$ac_ext
8037 cat >>conftest.$ac_ext <<_ACEOF
8038 /* end confdefs.h. */
8039
8040 int
8041 main ()
8042 {
8043 int foo;
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 rm -f conftest.$ac_objext
8049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8050 (eval $ac_compile) 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
8057 { ac_try='test -z "$ac_cxx_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest.$ac_objext'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_fdsections=yes
8071 else
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075 ac_fdsections=no
8076 fi
8077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8078 if test "$ac_test_CXXFLAGS" = set; then
8079 CXXFLAGS="$ac_save_CXXFLAGS"
8080 else
8081 # this is the suspicious part
8082 CXXFLAGS=''
8083 fi
8084 if test x"$ac_fdsections" = x"yes"; then
8085 SECTION_FLAGS='-ffunction-sections -fdata-sections'
8086 fi
8087 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
8088 echo "${ECHO_T}$ac_fdsections" >&6
8089
8090 ac_ext=c
8091 ac_cpp='$CPP $CPPFLAGS'
8092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8095
8096
8097
8098
8099
8100 # If we're not using GNU ld, then there's no point in even trying these
8101 # tests. Check for that first. We should have already tested for gld
8102 # by now (in libtool), but require it now just to be safe...
8103 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8104 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8105
8106
8107
8108 # The name set by libtool depends on the version of libtool. Shame on us
8109 # for depending on an impl detail, but c'est la vie. Older versions used
8110 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8111 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8112 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
8113 # set (hence we're using an older libtool), then set it.
8114 if test x${with_gnu_ld+set} != xset; then
8115 if test x${ac_cv_prog_gnu_ld+set} != xset; then
8116 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
8117 with_gnu_ld=no
8118 else
8119 with_gnu_ld=$ac_cv_prog_gnu_ld
8120 fi
8121 fi
8122
8123 # Start by getting the version number. I think the libtool test already
8124 # does some of this, but throws away the result.
8125
8126 ldver=`$LD --version 2>/dev/null | head -1 | \
8127 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8128
8129 glibcxx_gnu_ld_version=`echo $ldver | \
8130 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8131
8132 # Set --gc-sections.
8133 if test "$with_gnu_ld" = "notbroken"; then
8134 # GNU ld it is! Joy and bunny rabbits!
8135
8136 # All these tests are for C++; save the language and the compiler flags.
8137 # Need to do this so that g++ won't try to link in libstdc++
8138 ac_test_CFLAGS="${CFLAGS+set}"
8139 ac_save_CFLAGS="$CFLAGS"
8140 CFLAGS='-x c++ -Wl,--gc-sections'
8141
8142 # Check for -Wl,--gc-sections
8143 # XXX This test is broken at the moment, as symbols required for linking
8144 # are now in libsupc++ (not built yet). In addition, this test has
8145 # cored on solaris in the past. In addition, --gc-sections doesn't
8146 # really work at the moment (keeps on discarding used sections, first
8147 # .eh_frame and now some of the glibc sections for iconv).
8148 # Bzzzzt. Thanks for playing, maybe next time.
8149 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
8150 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
8151 if test "$cross_compiling" = yes; then
8152 ac_sectionLDflags=yes
8153 else
8154 cat >conftest.$ac_ext <<_ACEOF
8155 /* confdefs.h. */
8156 _ACEOF
8157 cat confdefs.h >>conftest.$ac_ext
8158 cat >>conftest.$ac_ext <<_ACEOF
8159 /* end confdefs.h. */
8160
8161 int main(void)
8162 {
8163 try { throw 1; }
8164 catch (...) { };
8165 return 0;
8166 }
8167
8168 _ACEOF
8169 rm -f conftest$ac_exeext
8170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8171 (eval $ac_link) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8176 (eval $ac_try) 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180 ac_sectionLDflags=yes
8181 else
8182 echo "$as_me: program exited with status $ac_status" >&5
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8185
8186 ( exit $ac_status )
8187 ac_sectionLDflags=no
8188 fi
8189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8190 fi
8191 if test "$ac_test_CFLAGS" = set; then
8192 CFLAGS="$ac_save_CFLAGS"
8193 else
8194 # this is the suspicious part
8195 CFLAGS=''
8196 fi
8197 if test "$ac_sectionLDflags" = "yes"; then
8198 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8199 fi
8200 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
8201 echo "${ECHO_T}$ac_sectionLDflags" >&6
8202 fi
8203
8204 # Set linker optimization flags.
8205 if test x"$with_gnu_ld" = x"yes"; then
8206 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8207 fi
8208
8209
8210
8211
8212
8213 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8214 ac_save_CXXFLAGS="$CXXFLAGS"
8215 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
8216
8217 echo "$as_me:$LINENO: checking for sin in -lm" >&5
8218 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8219 if test "${ac_cv_lib_m_sin+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 else
8222 ac_check_lib_save_LIBS=$LIBS
8223 LIBS="-lm $LIBS"
8224 if test x$gcc_no_link = xyes; then
8225 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8227 { (exit 1); exit 1; }; }
8228 fi
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h. */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235
8236 /* Override any gcc2 internal prototype to avoid an error. */
8237 #ifdef __cplusplus
8238 extern "C"
8239 #endif
8240 /* We use char because int might match the return type of a gcc2
8241 builtin and then its argument prototype would still apply. */
8242 char sin ();
8243 int
8244 main ()
8245 {
8246 sin ();
8247 ;
8248 return 0;
8249 }
8250 _ACEOF
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>conftest.er1
8254 ac_status=$?
8255 grep -v '^ *+' conftest.er1 >conftest.err
8256 rm -f conftest.er1
8257 cat conftest.err >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } &&
8260 { ac_try='test -z "$ac_c_werror_flag"
8261 || test ! -s conftest.err'
8262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263 (eval $ac_try) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; } &&
8267 { ac_try='test -s conftest$ac_exeext'
8268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 (eval $ac_try) 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; }; then
8273 ac_cv_lib_m_sin=yes
8274 else
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8277
8278 ac_cv_lib_m_sin=no
8279 fi
8280 rm -f conftest.err conftest.$ac_objext \
8281 conftest$ac_exeext conftest.$ac_ext
8282 LIBS=$ac_check_lib_save_LIBS
8283 fi
8284 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8285 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8286 if test $ac_cv_lib_m_sin = yes; then
8287 libm="-lm"
8288 fi
8289
8290 ac_save_LIBS="$LIBS"
8291 LIBS="$LIBS $libm"
8292
8293
8294
8295 echo "$as_me:$LINENO: checking for isinf declaration" >&5
8296 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
8297 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
8298 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 else
8301
8302
8303
8304 ac_ext=cc
8305 ac_cpp='$CXXCPP $CPPFLAGS'
8306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8309
8310 cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h. */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 #include <math.h>
8317 #ifdef HAVE_IEEEFP_H
8318 #include <ieeefp.h>
8319 #endif
8320
8321 int
8322 main ()
8323 {
8324 isinf(0);
8325 ;
8326 return 0;
8327 }
8328 _ACEOF
8329 rm -f conftest.$ac_objext
8330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8331 (eval $ac_compile) 2>conftest.er1
8332 ac_status=$?
8333 grep -v '^ *+' conftest.er1 >conftest.err
8334 rm -f conftest.er1
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } &&
8338 { ac_try='test -z "$ac_cxx_werror_flag"
8339 || test ! -s conftest.err'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 (eval $ac_try) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; } &&
8345 { ac_try='test -s conftest.$ac_objext'
8346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8347 (eval $ac_try) 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); }; }; then
8351 glibcxx_cv_func_isinf_use=yes
8352 else
8353 echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8355
8356 glibcxx_cv_func_isinf_use=no
8357 fi
8358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8359 ac_ext=c
8360 ac_cpp='$CPP $CPPFLAGS'
8361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8364
8365
8366 fi
8367
8368 fi
8369 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
8370 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
8371
8372 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
8373
8374 for ac_func in isinf
8375 do
8376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8377 echo "$as_me:$LINENO: checking for $ac_func" >&5
8378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8379 if eval "test \"\${$as_ac_var+set}\" = set"; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382 if test x$gcc_no_link = xyes; then
8383 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8384 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8385 { (exit 1); exit 1; }; }
8386 fi
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8395 #define $ac_func innocuous_$ac_func
8396
8397 /* System header to define __stub macros and hopefully few prototypes,
8398 which can conflict with char $ac_func (); below.
8399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8400 <limits.h> exists even on freestanding compilers. */
8401
8402 #ifdef __STDC__
8403 # include <limits.h>
8404 #else
8405 # include <assert.h>
8406 #endif
8407
8408 #undef $ac_func
8409
8410 /* Override any gcc2 internal prototype to avoid an error. */
8411 #ifdef __cplusplus
8412 extern "C"
8413 {
8414 #endif
8415 /* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8417 char $ac_func ();
8418 /* The GNU C library defines this for functions which it implements
8419 to always fail with ENOSYS. Some functions are actually named
8420 something starting with __ and the normal name is an alias. */
8421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8422 choke me
8423 #else
8424 char (*f) () = $ac_func;
8425 #endif
8426 #ifdef __cplusplus
8427 }
8428 #endif
8429
8430 int
8431 main ()
8432 {
8433 return f != $ac_func;
8434 ;
8435 return 0;
8436 }
8437 _ACEOF
8438 rm -f conftest.$ac_objext conftest$ac_exeext
8439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8440 (eval $ac_link) 2>conftest.er1
8441 ac_status=$?
8442 grep -v '^ *+' conftest.er1 >conftest.err
8443 rm -f conftest.er1
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag"
8448 || test ! -s conftest.err'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8450 (eval $ac_try) 2>&5
8451 ac_status=$?
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; } &&
8454 { ac_try='test -s conftest$ac_exeext'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 (eval $ac_try) 2>&5
8457 ac_status=$?
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8460 eval "$as_ac_var=yes"
8461 else
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8464
8465 eval "$as_ac_var=no"
8466 fi
8467 rm -f conftest.err conftest.$ac_objext \
8468 conftest$ac_exeext conftest.$ac_ext
8469 fi
8470 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8471 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8472 if test `eval echo '${'$as_ac_var'}'` = yes; then
8473 cat >>confdefs.h <<_ACEOF
8474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8475 _ACEOF
8476
8477 fi
8478 done
8479
8480 else
8481
8482 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8483 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8484 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8485 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488
8489
8490
8491 ac_ext=cc
8492 ac_cpp='$CXXCPP $CPPFLAGS'
8493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8496
8497 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h. */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8503 #include <math.h>
8504 #ifdef HAVE_IEEEFP_H
8505 #include <ieeefp.h>
8506 #endif
8507
8508 int
8509 main ()
8510 {
8511 _isinf(0);
8512 ;
8513 return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8518 (eval $ac_compile) 2>conftest.er1
8519 ac_status=$?
8520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_cxx_werror_flag"
8526 || test ! -s conftest.err'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try='test -s conftest.$ac_objext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 (eval $ac_try) 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8538 glibcxx_cv_func__isinf_use=yes
8539 else
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8542
8543 glibcxx_cv_func__isinf_use=no
8544 fi
8545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8546 ac_ext=c
8547 ac_cpp='$CPP $CPPFLAGS'
8548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8551
8552
8553 fi
8554
8555 fi
8556 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8557 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8558
8559 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8560
8561 for ac_func in _isinf
8562 do
8563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8564 echo "$as_me:$LINENO: checking for $ac_func" >&5
8565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8566 if eval "test \"\${$as_ac_var+set}\" = set"; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569 if test x$gcc_no_link = xyes; then
8570 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8571 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8572 { (exit 1); exit 1; }; }
8573 fi
8574 cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h. */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8582 #define $ac_func innocuous_$ac_func
8583
8584 /* System header to define __stub macros and hopefully few prototypes,
8585 which can conflict with char $ac_func (); below.
8586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8587 <limits.h> exists even on freestanding compilers. */
8588
8589 #ifdef __STDC__
8590 # include <limits.h>
8591 #else
8592 # include <assert.h>
8593 #endif
8594
8595 #undef $ac_func
8596
8597 /* Override any gcc2 internal prototype to avoid an error. */
8598 #ifdef __cplusplus
8599 extern "C"
8600 {
8601 #endif
8602 /* We use char because int might match the return type of a gcc2
8603 builtin and then its argument prototype would still apply. */
8604 char $ac_func ();
8605 /* The GNU C library defines this for functions which it implements
8606 to always fail with ENOSYS. Some functions are actually named
8607 something starting with __ and the normal name is an alias. */
8608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8609 choke me
8610 #else
8611 char (*f) () = $ac_func;
8612 #endif
8613 #ifdef __cplusplus
8614 }
8615 #endif
8616
8617 int
8618 main ()
8619 {
8620 return f != $ac_func;
8621 ;
8622 return 0;
8623 }
8624 _ACEOF
8625 rm -f conftest.$ac_objext conftest$ac_exeext
8626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8627 (eval $ac_link) 2>conftest.er1
8628 ac_status=$?
8629 grep -v '^ *+' conftest.er1 >conftest.err
8630 rm -f conftest.er1
8631 cat conftest.err >&5
8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
8634 { ac_try='test -z "$ac_c_werror_flag"
8635 || test ! -s conftest.err'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; } &&
8641 { ac_try='test -s conftest$ac_exeext'
8642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8643 (eval $ac_try) 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
8647 eval "$as_ac_var=yes"
8648 else
8649 echo "$as_me: failed program was:" >&5
8650 sed 's/^/| /' conftest.$ac_ext >&5
8651
8652 eval "$as_ac_var=no"
8653 fi
8654 rm -f conftest.err conftest.$ac_objext \
8655 conftest$ac_exeext conftest.$ac_ext
8656 fi
8657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8659 if test `eval echo '${'$as_ac_var'}'` = yes; then
8660 cat >>confdefs.h <<_ACEOF
8661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8662 _ACEOF
8663
8664 fi
8665 done
8666
8667 fi
8668 fi
8669
8670
8671
8672 echo "$as_me:$LINENO: checking for isnan declaration" >&5
8673 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8674 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8675 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678
8679
8680
8681 ac_ext=cc
8682 ac_cpp='$CXXCPP $CPPFLAGS'
8683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8686
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693 #include <math.h>
8694 #ifdef HAVE_IEEEFP_H
8695 #include <ieeefp.h>
8696 #endif
8697
8698 int
8699 main ()
8700 {
8701 isnan(0);
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 rm -f conftest.$ac_objext
8707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8708 (eval $ac_compile) 2>conftest.er1
8709 ac_status=$?
8710 grep -v '^ *+' conftest.er1 >conftest.err
8711 rm -f conftest.er1
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } &&
8715 { ac_try='test -z "$ac_cxx_werror_flag"
8716 || test ! -s conftest.err'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 (eval $ac_try) 2>&5
8719 ac_status=$?
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; } &&
8722 { ac_try='test -s conftest.$ac_objext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 glibcxx_cv_func_isnan_use=yes
8729 else
8730 echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8732
8733 glibcxx_cv_func_isnan_use=no
8734 fi
8735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8736 ac_ext=c
8737 ac_cpp='$CPP $CPPFLAGS'
8738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8741
8742
8743 fi
8744
8745 fi
8746 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8747 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8748
8749 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8750
8751 for ac_func in isnan
8752 do
8753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8754 echo "$as_me:$LINENO: checking for $ac_func" >&5
8755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8756 if eval "test \"\${$as_ac_var+set}\" = set"; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8758 else
8759 if test x$gcc_no_link = xyes; then
8760 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8761 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8762 { (exit 1); exit 1; }; }
8763 fi
8764 cat >conftest.$ac_ext <<_ACEOF
8765 /* confdefs.h. */
8766 _ACEOF
8767 cat confdefs.h >>conftest.$ac_ext
8768 cat >>conftest.$ac_ext <<_ACEOF
8769 /* end confdefs.h. */
8770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8772 #define $ac_func innocuous_$ac_func
8773
8774 /* System header to define __stub macros and hopefully few prototypes,
8775 which can conflict with char $ac_func (); below.
8776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8777 <limits.h> exists even on freestanding compilers. */
8778
8779 #ifdef __STDC__
8780 # include <limits.h>
8781 #else
8782 # include <assert.h>
8783 #endif
8784
8785 #undef $ac_func
8786
8787 /* Override any gcc2 internal prototype to avoid an error. */
8788 #ifdef __cplusplus
8789 extern "C"
8790 {
8791 #endif
8792 /* We use char because int might match the return type of a gcc2
8793 builtin and then its argument prototype would still apply. */
8794 char $ac_func ();
8795 /* The GNU C library defines this for functions which it implements
8796 to always fail with ENOSYS. Some functions are actually named
8797 something starting with __ and the normal name is an alias. */
8798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8799 choke me
8800 #else
8801 char (*f) () = $ac_func;
8802 #endif
8803 #ifdef __cplusplus
8804 }
8805 #endif
8806
8807 int
8808 main ()
8809 {
8810 return f != $ac_func;
8811 ;
8812 return 0;
8813 }
8814 _ACEOF
8815 rm -f conftest.$ac_objext conftest$ac_exeext
8816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8817 (eval $ac_link) 2>conftest.er1
8818 ac_status=$?
8819 grep -v '^ *+' conftest.er1 >conftest.err
8820 rm -f conftest.er1
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } &&
8824 { ac_try='test -z "$ac_c_werror_flag"
8825 || test ! -s conftest.err'
8826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827 (eval $ac_try) 2>&5
8828 ac_status=$?
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); }; } &&
8831 { ac_try='test -s conftest$ac_exeext'
8832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 (eval $ac_try) 2>&5
8834 ac_status=$?
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8837 eval "$as_ac_var=yes"
8838 else
8839 echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8841
8842 eval "$as_ac_var=no"
8843 fi
8844 rm -f conftest.err conftest.$ac_objext \
8845 conftest$ac_exeext conftest.$ac_ext
8846 fi
8847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8849 if test `eval echo '${'$as_ac_var'}'` = yes; then
8850 cat >>confdefs.h <<_ACEOF
8851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8852 _ACEOF
8853
8854 fi
8855 done
8856
8857 else
8858
8859 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
8860 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
8861 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
8862 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865
8866
8867
8868 ac_ext=cc
8869 ac_cpp='$CXXCPP $CPPFLAGS'
8870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8873
8874 cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h. */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880 #include <math.h>
8881 #ifdef HAVE_IEEEFP_H
8882 #include <ieeefp.h>
8883 #endif
8884
8885 int
8886 main ()
8887 {
8888 _isnan(0);
8889 ;
8890 return 0;
8891 }
8892 _ACEOF
8893 rm -f conftest.$ac_objext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8895 (eval $ac_compile) 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try='test -z "$ac_cxx_werror_flag"
8903 || test ! -s conftest.err'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 (eval $ac_try) 2>&5
8906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest.$ac_objext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 glibcxx_cv_func__isnan_use=yes
8916 else
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8919
8920 glibcxx_cv_func__isnan_use=no
8921 fi
8922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8923 ac_ext=c
8924 ac_cpp='$CPP $CPPFLAGS'
8925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8928
8929
8930 fi
8931
8932 fi
8933 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
8934 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
8935
8936 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
8937
8938 for ac_func in _isnan
8939 do
8940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8941 echo "$as_me:$LINENO: checking for $ac_func" >&5
8942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8943 if eval "test \"\${$as_ac_var+set}\" = set"; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946 if test x$gcc_no_link = xyes; then
8947 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8948 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8949 { (exit 1); exit 1; }; }
8950 fi
8951 cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h. */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8959 #define $ac_func innocuous_$ac_func
8960
8961 /* System header to define __stub macros and hopefully few prototypes,
8962 which can conflict with char $ac_func (); below.
8963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8964 <limits.h> exists even on freestanding compilers. */
8965
8966 #ifdef __STDC__
8967 # include <limits.h>
8968 #else
8969 # include <assert.h>
8970 #endif
8971
8972 #undef $ac_func
8973
8974 /* Override any gcc2 internal prototype to avoid an error. */
8975 #ifdef __cplusplus
8976 extern "C"
8977 {
8978 #endif
8979 /* We use char because int might match the return type of a gcc2
8980 builtin and then its argument prototype would still apply. */
8981 char $ac_func ();
8982 /* The GNU C library defines this for functions which it implements
8983 to always fail with ENOSYS. Some functions are actually named
8984 something starting with __ and the normal name is an alias. */
8985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8986 choke me
8987 #else
8988 char (*f) () = $ac_func;
8989 #endif
8990 #ifdef __cplusplus
8991 }
8992 #endif
8993
8994 int
8995 main ()
8996 {
8997 return f != $ac_func;
8998 ;
8999 return 0;
9000 }
9001 _ACEOF
9002 rm -f conftest.$ac_objext conftest$ac_exeext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9004 (eval $ac_link) 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } &&
9011 { ac_try='test -z "$ac_c_werror_flag"
9012 || test ! -s conftest.err'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; } &&
9018 { ac_try='test -s conftest$ac_exeext'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 (eval $ac_try) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
9024 eval "$as_ac_var=yes"
9025 else
9026 echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9028
9029 eval "$as_ac_var=no"
9030 fi
9031 rm -f conftest.err conftest.$ac_objext \
9032 conftest$ac_exeext conftest.$ac_ext
9033 fi
9034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9036 if test `eval echo '${'$as_ac_var'}'` = yes; then
9037 cat >>confdefs.h <<_ACEOF
9038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9039 _ACEOF
9040
9041 fi
9042 done
9043
9044 fi
9045 fi
9046
9047
9048
9049 echo "$as_me:$LINENO: checking for finite declaration" >&5
9050 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
9051 if test x${glibcxx_cv_func_finite_use+set} != xset; then
9052 if test "${glibcxx_cv_func_finite_use+set}" = set; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 else
9055
9056
9057
9058 ac_ext=cc
9059 ac_cpp='$CXXCPP $CPPFLAGS'
9060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9063
9064 cat >conftest.$ac_ext <<_ACEOF
9065 /* confdefs.h. */
9066 _ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 #include <math.h>
9071 #ifdef HAVE_IEEEFP_H
9072 #include <ieeefp.h>
9073 #endif
9074
9075 int
9076 main ()
9077 {
9078 finite(0);
9079 ;
9080 return 0;
9081 }
9082 _ACEOF
9083 rm -f conftest.$ac_objext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9085 (eval $ac_compile) 2>conftest.er1
9086 ac_status=$?
9087 grep -v '^ *+' conftest.er1 >conftest.err
9088 rm -f conftest.er1
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } &&
9092 { ac_try='test -z "$ac_cxx_werror_flag"
9093 || test ! -s conftest.err'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095 (eval $ac_try) 2>&5
9096 ac_status=$?
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; } &&
9099 { ac_try='test -s conftest.$ac_objext'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 glibcxx_cv_func_finite_use=yes
9106 else
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9109
9110 glibcxx_cv_func_finite_use=no
9111 fi
9112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9113 ac_ext=c
9114 ac_cpp='$CPP $CPPFLAGS'
9115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9118
9119
9120 fi
9121
9122 fi
9123 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
9124 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
9125
9126 if test x$glibcxx_cv_func_finite_use = x"yes"; then
9127
9128 for ac_func in finite
9129 do
9130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9131 echo "$as_me:$LINENO: checking for $ac_func" >&5
9132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9133 if eval "test \"\${$as_ac_var+set}\" = set"; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9135 else
9136 if test x$gcc_no_link = xyes; then
9137 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9138 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9139 { (exit 1); exit 1; }; }
9140 fi
9141 cat >conftest.$ac_ext <<_ACEOF
9142 /* confdefs.h. */
9143 _ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9149 #define $ac_func innocuous_$ac_func
9150
9151 /* System header to define __stub macros and hopefully few prototypes,
9152 which can conflict with char $ac_func (); below.
9153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9154 <limits.h> exists even on freestanding compilers. */
9155
9156 #ifdef __STDC__
9157 # include <limits.h>
9158 #else
9159 # include <assert.h>
9160 #endif
9161
9162 #undef $ac_func
9163
9164 /* Override any gcc2 internal prototype to avoid an error. */
9165 #ifdef __cplusplus
9166 extern "C"
9167 {
9168 #endif
9169 /* We use char because int might match the return type of a gcc2
9170 builtin and then its argument prototype would still apply. */
9171 char $ac_func ();
9172 /* The GNU C library defines this for functions which it implements
9173 to always fail with ENOSYS. Some functions are actually named
9174 something starting with __ and the normal name is an alias. */
9175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9176 choke me
9177 #else
9178 char (*f) () = $ac_func;
9179 #endif
9180 #ifdef __cplusplus
9181 }
9182 #endif
9183
9184 int
9185 main ()
9186 {
9187 return f != $ac_func;
9188 ;
9189 return 0;
9190 }
9191 _ACEOF
9192 rm -f conftest.$ac_objext conftest$ac_exeext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9194 (eval $ac_link) 2>conftest.er1
9195 ac_status=$?
9196 grep -v '^ *+' conftest.er1 >conftest.err
9197 rm -f conftest.er1
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try='test -z "$ac_c_werror_flag"
9202 || test ! -s conftest.err'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 (eval $ac_try) 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 eval "$as_ac_var=yes"
9215 else
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 eval "$as_ac_var=no"
9220 fi
9221 rm -f conftest.err conftest.$ac_objext \
9222 conftest$ac_exeext conftest.$ac_ext
9223 fi
9224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9226 if test `eval echo '${'$as_ac_var'}'` = yes; then
9227 cat >>confdefs.h <<_ACEOF
9228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9229 _ACEOF
9230
9231 fi
9232 done
9233
9234 else
9235
9236 echo "$as_me:$LINENO: checking for _finite declaration" >&5
9237 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
9238 if test x${glibcxx_cv_func__finite_use+set} != xset; then
9239 if test "${glibcxx_cv_func__finite_use+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 else
9242
9243
9244
9245 ac_ext=cc
9246 ac_cpp='$CXXCPP $CPPFLAGS'
9247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9250
9251 cat >conftest.$ac_ext <<_ACEOF
9252 /* confdefs.h. */
9253 _ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 #include <math.h>
9258 #ifdef HAVE_IEEEFP_H
9259 #include <ieeefp.h>
9260 #endif
9261
9262 int
9263 main ()
9264 {
9265 _finite(0);
9266 ;
9267 return 0;
9268 }
9269 _ACEOF
9270 rm -f conftest.$ac_objext
9271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9272 (eval $ac_compile) 2>conftest.er1
9273 ac_status=$?
9274 grep -v '^ *+' conftest.er1 >conftest.err
9275 rm -f conftest.er1
9276 cat conftest.err >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } &&
9279 { ac_try='test -z "$ac_cxx_werror_flag"
9280 || test ! -s conftest.err'
9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9282 (eval $ac_try) 2>&5
9283 ac_status=$?
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; } &&
9286 { ac_try='test -s conftest.$ac_objext'
9287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288 (eval $ac_try) 2>&5
9289 ac_status=$?
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); }; }; then
9292 glibcxx_cv_func__finite_use=yes
9293 else
9294 echo "$as_me: failed program was:" >&5
9295 sed 's/^/| /' conftest.$ac_ext >&5
9296
9297 glibcxx_cv_func__finite_use=no
9298 fi
9299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9300 ac_ext=c
9301 ac_cpp='$CPP $CPPFLAGS'
9302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9305
9306
9307 fi
9308
9309 fi
9310 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
9311 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
9312
9313 if test x$glibcxx_cv_func__finite_use = x"yes"; then
9314
9315 for ac_func in _finite
9316 do
9317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9318 echo "$as_me:$LINENO: checking for $ac_func" >&5
9319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9320 if eval "test \"\${$as_ac_var+set}\" = set"; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 else
9323 if test x$gcc_no_link = xyes; then
9324 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9325 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9326 { (exit 1); exit 1; }; }
9327 fi
9328 cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h. */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9336 #define $ac_func innocuous_$ac_func
9337
9338 /* System header to define __stub macros and hopefully few prototypes,
9339 which can conflict with char $ac_func (); below.
9340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9341 <limits.h> exists even on freestanding compilers. */
9342
9343 #ifdef __STDC__
9344 # include <limits.h>
9345 #else
9346 # include <assert.h>
9347 #endif
9348
9349 #undef $ac_func
9350
9351 /* Override any gcc2 internal prototype to avoid an error. */
9352 #ifdef __cplusplus
9353 extern "C"
9354 {
9355 #endif
9356 /* We use char because int might match the return type of a gcc2
9357 builtin and then its argument prototype would still apply. */
9358 char $ac_func ();
9359 /* The GNU C library defines this for functions which it implements
9360 to always fail with ENOSYS. Some functions are actually named
9361 something starting with __ and the normal name is an alias. */
9362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9363 choke me
9364 #else
9365 char (*f) () = $ac_func;
9366 #endif
9367 #ifdef __cplusplus
9368 }
9369 #endif
9370
9371 int
9372 main ()
9373 {
9374 return f != $ac_func;
9375 ;
9376 return 0;
9377 }
9378 _ACEOF
9379 rm -f conftest.$ac_objext conftest$ac_exeext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381 (eval $ac_link) 2>conftest.er1
9382 ac_status=$?
9383 grep -v '^ *+' conftest.er1 >conftest.err
9384 rm -f conftest.er1
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try='test -z "$ac_c_werror_flag"
9389 || test ! -s conftest.err'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 (eval $ac_try) 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; } &&
9395 { ac_try='test -s conftest$ac_exeext'
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 (eval $ac_try) 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; }; then
9401 eval "$as_ac_var=yes"
9402 else
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406 eval "$as_ac_var=no"
9407 fi
9408 rm -f conftest.err conftest.$ac_objext \
9409 conftest$ac_exeext conftest.$ac_ext
9410 fi
9411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9413 if test `eval echo '${'$as_ac_var'}'` = yes; then
9414 cat >>confdefs.h <<_ACEOF
9415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9416 _ACEOF
9417
9418 fi
9419 done
9420
9421 fi
9422 fi
9423
9424
9425
9426 echo "$as_me:$LINENO: checking for copysign declaration" >&5
9427 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
9428 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
9429 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432
9433
9434
9435 ac_ext=cc
9436 ac_cpp='$CXXCPP $CPPFLAGS'
9437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9440
9441 cat >conftest.$ac_ext <<_ACEOF
9442 /* confdefs.h. */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h. */
9447 #include <math.h>
9448 int
9449 main ()
9450 {
9451 copysign(0, 0);
9452 ;
9453 return 0;
9454 }
9455 _ACEOF
9456 rm -f conftest.$ac_objext
9457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9458 (eval $ac_compile) 2>conftest.er1
9459 ac_status=$?
9460 grep -v '^ *+' conftest.er1 >conftest.err
9461 rm -f conftest.er1
9462 cat conftest.err >&5
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } &&
9465 { ac_try='test -z "$ac_cxx_werror_flag"
9466 || test ! -s conftest.err'
9467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9468 (eval $ac_try) 2>&5
9469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; } &&
9472 { ac_try='test -s conftest.$ac_objext'
9473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 (eval $ac_try) 2>&5
9475 ac_status=$?
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 glibcxx_cv_func_copysign_use=yes
9479 else
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9482
9483 glibcxx_cv_func_copysign_use=no
9484 fi
9485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9486 ac_ext=c
9487 ac_cpp='$CPP $CPPFLAGS'
9488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9491
9492
9493 fi
9494
9495 fi
9496 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
9497 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
9498
9499 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
9500
9501 for ac_func in copysign
9502 do
9503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9504 echo "$as_me:$LINENO: checking for $ac_func" >&5
9505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9506 if eval "test \"\${$as_ac_var+set}\" = set"; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509 if test x$gcc_no_link = xyes; then
9510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9512 { (exit 1); exit 1; }; }
9513 fi
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h. */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9522 #define $ac_func innocuous_$ac_func
9523
9524 /* System header to define __stub macros and hopefully few prototypes,
9525 which can conflict with char $ac_func (); below.
9526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9527 <limits.h> exists even on freestanding compilers. */
9528
9529 #ifdef __STDC__
9530 # include <limits.h>
9531 #else
9532 # include <assert.h>
9533 #endif
9534
9535 #undef $ac_func
9536
9537 /* Override any gcc2 internal prototype to avoid an error. */
9538 #ifdef __cplusplus
9539 extern "C"
9540 {
9541 #endif
9542 /* We use char because int might match the return type of a gcc2
9543 builtin and then its argument prototype would still apply. */
9544 char $ac_func ();
9545 /* The GNU C library defines this for functions which it implements
9546 to always fail with ENOSYS. Some functions are actually named
9547 something starting with __ and the normal name is an alias. */
9548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9549 choke me
9550 #else
9551 char (*f) () = $ac_func;
9552 #endif
9553 #ifdef __cplusplus
9554 }
9555 #endif
9556
9557 int
9558 main ()
9559 {
9560 return f != $ac_func;
9561 ;
9562 return 0;
9563 }
9564 _ACEOF
9565 rm -f conftest.$ac_objext conftest$ac_exeext
9566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9567 (eval $ac_link) 2>conftest.er1
9568 ac_status=$?
9569 grep -v '^ *+' conftest.er1 >conftest.err
9570 rm -f conftest.er1
9571 cat conftest.err >&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } &&
9574 { ac_try='test -z "$ac_c_werror_flag"
9575 || test ! -s conftest.err'
9576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 (eval $ac_try) 2>&5
9578 ac_status=$?
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); }; } &&
9581 { ac_try='test -s conftest$ac_exeext'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 (eval $ac_try) 2>&5
9584 ac_status=$?
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 eval "$as_ac_var=yes"
9588 else
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9591
9592 eval "$as_ac_var=no"
9593 fi
9594 rm -f conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596 fi
9597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9599 if test `eval echo '${'$as_ac_var'}'` = yes; then
9600 cat >>confdefs.h <<_ACEOF
9601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9602 _ACEOF
9603
9604 fi
9605 done
9606
9607 else
9608
9609 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9610 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9611 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9612 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615
9616
9617
9618 ac_ext=cc
9619 ac_cpp='$CXXCPP $CPPFLAGS'
9620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9623
9624 cat >conftest.$ac_ext <<_ACEOF
9625 /* confdefs.h. */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9630 #include <math.h>
9631 int
9632 main ()
9633 {
9634 _copysign(0, 0);
9635 ;
9636 return 0;
9637 }
9638 _ACEOF
9639 rm -f conftest.$ac_objext
9640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9641 (eval $ac_compile) 2>conftest.er1
9642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try='test -z "$ac_cxx_werror_flag"
9649 || test ! -s conftest.err'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 (eval $ac_try) 2>&5
9652 ac_status=$?
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; } &&
9655 { ac_try='test -s conftest.$ac_objext'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 (eval $ac_try) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; }; then
9661 glibcxx_cv_func__copysign_use=yes
9662 else
9663 echo "$as_me: failed program was:" >&5
9664 sed 's/^/| /' conftest.$ac_ext >&5
9665
9666 glibcxx_cv_func__copysign_use=no
9667 fi
9668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9669 ac_ext=c
9670 ac_cpp='$CPP $CPPFLAGS'
9671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9674
9675
9676 fi
9677
9678 fi
9679 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9680 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9681
9682 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9683
9684 for ac_func in _copysign
9685 do
9686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9687 echo "$as_me:$LINENO: checking for $ac_func" >&5
9688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9689 if eval "test \"\${$as_ac_var+set}\" = set"; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692 if test x$gcc_no_link = xyes; then
9693 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9694 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9695 { (exit 1); exit 1; }; }
9696 fi
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h. */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9705 #define $ac_func innocuous_$ac_func
9706
9707 /* System header to define __stub macros and hopefully few prototypes,
9708 which can conflict with char $ac_func (); below.
9709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9710 <limits.h> exists even on freestanding compilers. */
9711
9712 #ifdef __STDC__
9713 # include <limits.h>
9714 #else
9715 # include <assert.h>
9716 #endif
9717
9718 #undef $ac_func
9719
9720 /* Override any gcc2 internal prototype to avoid an error. */
9721 #ifdef __cplusplus
9722 extern "C"
9723 {
9724 #endif
9725 /* We use char because int might match the return type of a gcc2
9726 builtin and then its argument prototype would still apply. */
9727 char $ac_func ();
9728 /* The GNU C library defines this for functions which it implements
9729 to always fail with ENOSYS. Some functions are actually named
9730 something starting with __ and the normal name is an alias. */
9731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9732 choke me
9733 #else
9734 char (*f) () = $ac_func;
9735 #endif
9736 #ifdef __cplusplus
9737 }
9738 #endif
9739
9740 int
9741 main ()
9742 {
9743 return f != $ac_func;
9744 ;
9745 return 0;
9746 }
9747 _ACEOF
9748 rm -f conftest.$ac_objext conftest$ac_exeext
9749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750 (eval $ac_link) 2>conftest.er1
9751 ac_status=$?
9752 grep -v '^ *+' conftest.er1 >conftest.err
9753 rm -f conftest.er1
9754 cat conftest.err >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } &&
9757 { ac_try='test -z "$ac_c_werror_flag"
9758 || test ! -s conftest.err'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 (eval $ac_try) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; } &&
9764 { ac_try='test -s conftest$ac_exeext'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; }; then
9770 eval "$as_ac_var=yes"
9771 else
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9774
9775 eval "$as_ac_var=no"
9776 fi
9777 rm -f conftest.err conftest.$ac_objext \
9778 conftest$ac_exeext conftest.$ac_ext
9779 fi
9780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9781 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9782 if test `eval echo '${'$as_ac_var'}'` = yes; then
9783 cat >>confdefs.h <<_ACEOF
9784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9785 _ACEOF
9786
9787 fi
9788 done
9789
9790 fi
9791 fi
9792
9793
9794
9795 echo "$as_me:$LINENO: checking for sincos declaration" >&5
9796 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
9797 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
9798 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 else
9801
9802
9803
9804 ac_ext=cc
9805 ac_cpp='$CXXCPP $CPPFLAGS'
9806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9809
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 #include <math.h>
9817 int
9818 main ()
9819 {
9820 sincos(0, 0, 0);
9821 ;
9822 return 0;
9823 }
9824 _ACEOF
9825 rm -f conftest.$ac_objext
9826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9827 (eval $ac_compile) 2>conftest.er1
9828 ac_status=$?
9829 grep -v '^ *+' conftest.er1 >conftest.err
9830 rm -f conftest.er1
9831 cat conftest.err >&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -z "$ac_cxx_werror_flag"
9835 || test ! -s conftest.err'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; } &&
9841 { ac_try='test -s conftest.$ac_objext'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843 (eval $ac_try) 2>&5
9844 ac_status=$?
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 glibcxx_cv_func_sincos_use=yes
9848 else
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 glibcxx_cv_func_sincos_use=no
9853 fi
9854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9855 ac_ext=c
9856 ac_cpp='$CPP $CPPFLAGS'
9857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9860
9861
9862 fi
9863
9864 fi
9865 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
9866 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
9867
9868 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
9869
9870 for ac_func in sincos
9871 do
9872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9873 echo "$as_me:$LINENO: checking for $ac_func" >&5
9874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9875 if eval "test \"\${$as_ac_var+set}\" = set"; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878 if test x$gcc_no_link = xyes; then
9879 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9880 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9881 { (exit 1); exit 1; }; }
9882 fi
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h. */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9891 #define $ac_func innocuous_$ac_func
9892
9893 /* System header to define __stub macros and hopefully few prototypes,
9894 which can conflict with char $ac_func (); below.
9895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9896 <limits.h> exists even on freestanding compilers. */
9897
9898 #ifdef __STDC__
9899 # include <limits.h>
9900 #else
9901 # include <assert.h>
9902 #endif
9903
9904 #undef $ac_func
9905
9906 /* Override any gcc2 internal prototype to avoid an error. */
9907 #ifdef __cplusplus
9908 extern "C"
9909 {
9910 #endif
9911 /* We use char because int might match the return type of a gcc2
9912 builtin and then its argument prototype would still apply. */
9913 char $ac_func ();
9914 /* The GNU C library defines this for functions which it implements
9915 to always fail with ENOSYS. Some functions are actually named
9916 something starting with __ and the normal name is an alias. */
9917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9918 choke me
9919 #else
9920 char (*f) () = $ac_func;
9921 #endif
9922 #ifdef __cplusplus
9923 }
9924 #endif
9925
9926 int
9927 main ()
9928 {
9929 return f != $ac_func;
9930 ;
9931 return 0;
9932 }
9933 _ACEOF
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9936 (eval $ac_link) 2>conftest.er1
9937 ac_status=$?
9938 grep -v '^ *+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
9943 { ac_try='test -z "$ac_c_werror_flag"
9944 || test ! -s conftest.err'
9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946 (eval $ac_try) 2>&5
9947 ac_status=$?
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; } &&
9950 { ac_try='test -s conftest$ac_exeext'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; }; then
9956 eval "$as_ac_var=yes"
9957 else
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9960
9961 eval "$as_ac_var=no"
9962 fi
9963 rm -f conftest.err conftest.$ac_objext \
9964 conftest$ac_exeext conftest.$ac_ext
9965 fi
9966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9968 if test `eval echo '${'$as_ac_var'}'` = yes; then
9969 cat >>confdefs.h <<_ACEOF
9970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9971 _ACEOF
9972
9973 fi
9974 done
9975
9976 else
9977
9978 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
9979 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
9980 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
9981 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984
9985
9986
9987 ac_ext=cc
9988 ac_cpp='$CXXCPP $CPPFLAGS'
9989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9992
9993 cat >conftest.$ac_ext <<_ACEOF
9994 /* confdefs.h. */
9995 _ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 #include <math.h>
10000 int
10001 main ()
10002 {
10003 _sincos(0, 0, 0);
10004 ;
10005 return 0;
10006 }
10007 _ACEOF
10008 rm -f conftest.$ac_objext
10009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10010 (eval $ac_compile) 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -z "$ac_cxx_werror_flag"
10018 || test ! -s conftest.err'
10019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; } &&
10024 { ac_try='test -s conftest.$ac_objext'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; }; then
10030 glibcxx_cv_func__sincos_use=yes
10031 else
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10034
10035 glibcxx_cv_func__sincos_use=no
10036 fi
10037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10038 ac_ext=c
10039 ac_cpp='$CPP $CPPFLAGS'
10040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10043
10044
10045 fi
10046
10047 fi
10048 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
10049 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
10050
10051 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
10052
10053 for ac_func in _sincos
10054 do
10055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10056 echo "$as_me:$LINENO: checking for $ac_func" >&5
10057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10058 if eval "test \"\${$as_ac_var+set}\" = set"; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061 if test x$gcc_no_link = xyes; then
10062 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10063 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10064 { (exit 1); exit 1; }; }
10065 fi
10066 cat >conftest.$ac_ext <<_ACEOF
10067 /* confdefs.h. */
10068 _ACEOF
10069 cat confdefs.h >>conftest.$ac_ext
10070 cat >>conftest.$ac_ext <<_ACEOF
10071 /* end confdefs.h. */
10072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10074 #define $ac_func innocuous_$ac_func
10075
10076 /* System header to define __stub macros and hopefully few prototypes,
10077 which can conflict with char $ac_func (); below.
10078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10079 <limits.h> exists even on freestanding compilers. */
10080
10081 #ifdef __STDC__
10082 # include <limits.h>
10083 #else
10084 # include <assert.h>
10085 #endif
10086
10087 #undef $ac_func
10088
10089 /* Override any gcc2 internal prototype to avoid an error. */
10090 #ifdef __cplusplus
10091 extern "C"
10092 {
10093 #endif
10094 /* We use char because int might match the return type of a gcc2
10095 builtin and then its argument prototype would still apply. */
10096 char $ac_func ();
10097 /* The GNU C library defines this for functions which it implements
10098 to always fail with ENOSYS. Some functions are actually named
10099 something starting with __ and the normal name is an alias. */
10100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10101 choke me
10102 #else
10103 char (*f) () = $ac_func;
10104 #endif
10105 #ifdef __cplusplus
10106 }
10107 #endif
10108
10109 int
10110 main ()
10111 {
10112 return f != $ac_func;
10113 ;
10114 return 0;
10115 }
10116 _ACEOF
10117 rm -f conftest.$ac_objext conftest$ac_exeext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119 (eval $ac_link) 2>conftest.er1
10120 ac_status=$?
10121 grep -v '^ *+' conftest.er1 >conftest.err
10122 rm -f conftest.er1
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } &&
10126 { ac_try='test -z "$ac_c_werror_flag"
10127 || test ! -s conftest.err'
10128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129 (eval $ac_try) 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; } &&
10133 { ac_try='test -s conftest$ac_exeext'
10134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 eval "$as_ac_var=yes"
10140 else
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10143
10144 eval "$as_ac_var=no"
10145 fi
10146 rm -f conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
10148 fi
10149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10151 if test `eval echo '${'$as_ac_var'}'` = yes; then
10152 cat >>confdefs.h <<_ACEOF
10153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10154 _ACEOF
10155
10156 fi
10157 done
10158
10159 fi
10160 fi
10161
10162
10163
10164 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
10165 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
10166 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
10167 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170
10171
10172
10173 ac_ext=cc
10174 ac_cpp='$CXXCPP $CPPFLAGS'
10175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10178
10179 cat >conftest.$ac_ext <<_ACEOF
10180 /* confdefs.h. */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h. */
10185 #include <math.h>
10186 #ifdef HAVE_IEEEFP_H
10187 #include <ieeefp.h>
10188 #endif
10189
10190 int
10191 main ()
10192 {
10193 fpclass(0);
10194 ;
10195 return 0;
10196 }
10197 _ACEOF
10198 rm -f conftest.$ac_objext
10199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10200 (eval $ac_compile) 2>conftest.er1
10201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } &&
10207 { ac_try='test -z "$ac_cxx_werror_flag"
10208 || test ! -s conftest.err'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest.$ac_objext'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 glibcxx_cv_func_fpclass_use=yes
10221 else
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10224
10225 glibcxx_cv_func_fpclass_use=no
10226 fi
10227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10228 ac_ext=c
10229 ac_cpp='$CPP $CPPFLAGS'
10230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10233
10234
10235 fi
10236
10237 fi
10238 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
10239 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
10240
10241 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
10242
10243 for ac_func in fpclass
10244 do
10245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10246 echo "$as_me:$LINENO: checking for $ac_func" >&5
10247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10248 if eval "test \"\${$as_ac_var+set}\" = set"; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 else
10251 if test x$gcc_no_link = xyes; then
10252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10254 { (exit 1); exit 1; }; }
10255 fi
10256 cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h. */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10264 #define $ac_func innocuous_$ac_func
10265
10266 /* System header to define __stub macros and hopefully few prototypes,
10267 which can conflict with char $ac_func (); below.
10268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10269 <limits.h> exists even on freestanding compilers. */
10270
10271 #ifdef __STDC__
10272 # include <limits.h>
10273 #else
10274 # include <assert.h>
10275 #endif
10276
10277 #undef $ac_func
10278
10279 /* Override any gcc2 internal prototype to avoid an error. */
10280 #ifdef __cplusplus
10281 extern "C"
10282 {
10283 #endif
10284 /* We use char because int might match the return type of a gcc2
10285 builtin and then its argument prototype would still apply. */
10286 char $ac_func ();
10287 /* The GNU C library defines this for functions which it implements
10288 to always fail with ENOSYS. Some functions are actually named
10289 something starting with __ and the normal name is an alias. */
10290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10291 choke me
10292 #else
10293 char (*f) () = $ac_func;
10294 #endif
10295 #ifdef __cplusplus
10296 }
10297 #endif
10298
10299 int
10300 main ()
10301 {
10302 return f != $ac_func;
10303 ;
10304 return 0;
10305 }
10306 _ACEOF
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309 (eval $ac_link) 2>conftest.er1
10310 ac_status=$?
10311 grep -v '^ *+' conftest.er1 >conftest.err
10312 rm -f conftest.er1
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_c_werror_flag"
10317 || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10320 ac_status=$?
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest$ac_exeext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 eval "$as_ac_var=yes"
10330 else
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10333
10334 eval "$as_ac_var=no"
10335 fi
10336 rm -f conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 fi
10339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10341 if test `eval echo '${'$as_ac_var'}'` = yes; then
10342 cat >>confdefs.h <<_ACEOF
10343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10344 _ACEOF
10345
10346 fi
10347 done
10348
10349 else
10350
10351 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
10352 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
10353 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
10354 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10356 else
10357
10358
10359
10360 ac_ext=cc
10361 ac_cpp='$CXXCPP $CPPFLAGS'
10362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10365
10366 cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h. */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10372 #include <math.h>
10373 #ifdef HAVE_IEEEFP_H
10374 #include <ieeefp.h>
10375 #endif
10376
10377 int
10378 main ()
10379 {
10380 _fpclass(0);
10381 ;
10382 return 0;
10383 }
10384 _ACEOF
10385 rm -f conftest.$ac_objext
10386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10387 (eval $ac_compile) 2>conftest.er1
10388 ac_status=$?
10389 grep -v '^ *+' conftest.er1 >conftest.err
10390 rm -f conftest.er1
10391 cat conftest.err >&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } &&
10394 { ac_try='test -z "$ac_cxx_werror_flag"
10395 || test ! -s conftest.err'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10398 ac_status=$?
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; } &&
10401 { ac_try='test -s conftest.$ac_objext'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10404 ac_status=$?
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }; then
10407 glibcxx_cv_func__fpclass_use=yes
10408 else
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10411
10412 glibcxx_cv_func__fpclass_use=no
10413 fi
10414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10415 ac_ext=c
10416 ac_cpp='$CPP $CPPFLAGS'
10417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10420
10421
10422 fi
10423
10424 fi
10425 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
10426 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
10427
10428 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
10429
10430 for ac_func in _fpclass
10431 do
10432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10433 echo "$as_me:$LINENO: checking for $ac_func" >&5
10434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10435 if eval "test \"\${$as_ac_var+set}\" = set"; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 else
10438 if test x$gcc_no_link = xyes; then
10439 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10440 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10441 { (exit 1); exit 1; }; }
10442 fi
10443 cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h. */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10451 #define $ac_func innocuous_$ac_func
10452
10453 /* System header to define __stub macros and hopefully few prototypes,
10454 which can conflict with char $ac_func (); below.
10455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10456 <limits.h> exists even on freestanding compilers. */
10457
10458 #ifdef __STDC__
10459 # include <limits.h>
10460 #else
10461 # include <assert.h>
10462 #endif
10463
10464 #undef $ac_func
10465
10466 /* Override any gcc2 internal prototype to avoid an error. */
10467 #ifdef __cplusplus
10468 extern "C"
10469 {
10470 #endif
10471 /* We use char because int might match the return type of a gcc2
10472 builtin and then its argument prototype would still apply. */
10473 char $ac_func ();
10474 /* The GNU C library defines this for functions which it implements
10475 to always fail with ENOSYS. Some functions are actually named
10476 something starting with __ and the normal name is an alias. */
10477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10478 choke me
10479 #else
10480 char (*f) () = $ac_func;
10481 #endif
10482 #ifdef __cplusplus
10483 }
10484 #endif
10485
10486 int
10487 main ()
10488 {
10489 return f != $ac_func;
10490 ;
10491 return 0;
10492 }
10493 _ACEOF
10494 rm -f conftest.$ac_objext conftest$ac_exeext
10495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10496 (eval $ac_link) 2>conftest.er1
10497 ac_status=$?
10498 grep -v '^ *+' conftest.er1 >conftest.err
10499 rm -f conftest.er1
10500 cat conftest.err >&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } &&
10503 { ac_try='test -z "$ac_c_werror_flag"
10504 || test ! -s conftest.err'
10505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506 (eval $ac_try) 2>&5
10507 ac_status=$?
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); }; } &&
10510 { ac_try='test -s conftest$ac_exeext'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10513 ac_status=$?
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10516 eval "$as_ac_var=yes"
10517 else
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10520
10521 eval "$as_ac_var=no"
10522 fi
10523 rm -f conftest.err conftest.$ac_objext \
10524 conftest$ac_exeext conftest.$ac_ext
10525 fi
10526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10528 if test `eval echo '${'$as_ac_var'}'` = yes; then
10529 cat >>confdefs.h <<_ACEOF
10530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10531 _ACEOF
10532
10533 fi
10534 done
10535
10536 fi
10537 fi
10538
10539
10540
10541 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
10542 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
10543 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
10544 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547
10548
10549
10550 ac_ext=cc
10551 ac_cpp='$CXXCPP $CPPFLAGS'
10552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10555
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h. */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562 #include <math.h>
10563 #ifdef HAVE_IEEEFP_H
10564 #include <ieeefp.h>
10565 #endif
10566
10567 int
10568 main ()
10569 {
10570 qfpclass(0);
10571 ;
10572 return 0;
10573 }
10574 _ACEOF
10575 rm -f conftest.$ac_objext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10577 (eval $ac_compile) 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
10584 { ac_try='test -z "$ac_cxx_werror_flag"
10585 || test ! -s conftest.err'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; } &&
10591 { ac_try='test -s conftest.$ac_objext'
10592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593 (eval $ac_try) 2>&5
10594 ac_status=$?
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; }; then
10597 glibcxx_cv_func_qfpclass_use=yes
10598 else
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602 glibcxx_cv_func_qfpclass_use=no
10603 fi
10604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10605 ac_ext=c
10606 ac_cpp='$CPP $CPPFLAGS'
10607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10610
10611
10612 fi
10613
10614 fi
10615 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
10616 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
10617
10618 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
10619
10620 for ac_func in qfpclass
10621 do
10622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10623 echo "$as_me:$LINENO: checking for $ac_func" >&5
10624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10625 if eval "test \"\${$as_ac_var+set}\" = set"; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628 if test x$gcc_no_link = xyes; then
10629 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10630 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10631 { (exit 1); exit 1; }; }
10632 fi
10633 cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h. */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10641 #define $ac_func innocuous_$ac_func
10642
10643 /* System header to define __stub macros and hopefully few prototypes,
10644 which can conflict with char $ac_func (); below.
10645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10646 <limits.h> exists even on freestanding compilers. */
10647
10648 #ifdef __STDC__
10649 # include <limits.h>
10650 #else
10651 # include <assert.h>
10652 #endif
10653
10654 #undef $ac_func
10655
10656 /* Override any gcc2 internal prototype to avoid an error. */
10657 #ifdef __cplusplus
10658 extern "C"
10659 {
10660 #endif
10661 /* We use char because int might match the return type of a gcc2
10662 builtin and then its argument prototype would still apply. */
10663 char $ac_func ();
10664 /* The GNU C library defines this for functions which it implements
10665 to always fail with ENOSYS. Some functions are actually named
10666 something starting with __ and the normal name is an alias. */
10667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10668 choke me
10669 #else
10670 char (*f) () = $ac_func;
10671 #endif
10672 #ifdef __cplusplus
10673 }
10674 #endif
10675
10676 int
10677 main ()
10678 {
10679 return f != $ac_func;
10680 ;
10681 return 0;
10682 }
10683 _ACEOF
10684 rm -f conftest.$ac_objext conftest$ac_exeext
10685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10686 (eval $ac_link) 2>conftest.er1
10687 ac_status=$?
10688 grep -v '^ *+' conftest.er1 >conftest.err
10689 rm -f conftest.er1
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -z "$ac_c_werror_flag"
10694 || test ! -s conftest.err'
10695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696 (eval $ac_try) 2>&5
10697 ac_status=$?
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; } &&
10700 { ac_try='test -s conftest$ac_exeext'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }; then
10706 eval "$as_ac_var=yes"
10707 else
10708 echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10710
10711 eval "$as_ac_var=no"
10712 fi
10713 rm -f conftest.err conftest.$ac_objext \
10714 conftest$ac_exeext conftest.$ac_ext
10715 fi
10716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10718 if test `eval echo '${'$as_ac_var'}'` = yes; then
10719 cat >>confdefs.h <<_ACEOF
10720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10721 _ACEOF
10722
10723 fi
10724 done
10725
10726 else
10727
10728 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
10729 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
10730 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
10731 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734
10735
10736
10737 ac_ext=cc
10738 ac_cpp='$CXXCPP $CPPFLAGS'
10739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10742
10743 cat >conftest.$ac_ext <<_ACEOF
10744 /* confdefs.h. */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10749 #include <math.h>
10750 #ifdef HAVE_IEEEFP_H
10751 #include <ieeefp.h>
10752 #endif
10753
10754 int
10755 main ()
10756 {
10757 _qfpclass(0);
10758 ;
10759 return 0;
10760 }
10761 _ACEOF
10762 rm -f conftest.$ac_objext
10763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10764 (eval $ac_compile) 2>conftest.er1
10765 ac_status=$?
10766 grep -v '^ *+' conftest.er1 >conftest.err
10767 rm -f conftest.er1
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } &&
10771 { ac_try='test -z "$ac_cxx_werror_flag"
10772 || test ! -s conftest.err'
10773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10774 (eval $ac_try) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; } &&
10778 { ac_try='test -s conftest.$ac_objext'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; }; then
10784 glibcxx_cv_func__qfpclass_use=yes
10785 else
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10788
10789 glibcxx_cv_func__qfpclass_use=no
10790 fi
10791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10792 ac_ext=c
10793 ac_cpp='$CPP $CPPFLAGS'
10794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10797
10798
10799 fi
10800
10801 fi
10802 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
10803 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
10804
10805 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
10806
10807 for ac_func in _qfpclass
10808 do
10809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10810 echo "$as_me:$LINENO: checking for $ac_func" >&5
10811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10812 if eval "test \"\${$as_ac_var+set}\" = set"; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 else
10815 if test x$gcc_no_link = xyes; then
10816 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10817 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10818 { (exit 1); exit 1; }; }
10819 fi
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h. */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10828 #define $ac_func innocuous_$ac_func
10829
10830 /* System header to define __stub macros and hopefully few prototypes,
10831 which can conflict with char $ac_func (); below.
10832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10833 <limits.h> exists even on freestanding compilers. */
10834
10835 #ifdef __STDC__
10836 # include <limits.h>
10837 #else
10838 # include <assert.h>
10839 #endif
10840
10841 #undef $ac_func
10842
10843 /* Override any gcc2 internal prototype to avoid an error. */
10844 #ifdef __cplusplus
10845 extern "C"
10846 {
10847 #endif
10848 /* We use char because int might match the return type of a gcc2
10849 builtin and then its argument prototype would still apply. */
10850 char $ac_func ();
10851 /* The GNU C library defines this for functions which it implements
10852 to always fail with ENOSYS. Some functions are actually named
10853 something starting with __ and the normal name is an alias. */
10854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10855 choke me
10856 #else
10857 char (*f) () = $ac_func;
10858 #endif
10859 #ifdef __cplusplus
10860 }
10861 #endif
10862
10863 int
10864 main ()
10865 {
10866 return f != $ac_func;
10867 ;
10868 return 0;
10869 }
10870 _ACEOF
10871 rm -f conftest.$ac_objext conftest$ac_exeext
10872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10873 (eval $ac_link) 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag"
10881 || test ! -s conftest.err'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; } &&
10887 { ac_try='test -s conftest$ac_exeext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 eval "$as_ac_var=yes"
10894 else
10895 echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10897
10898 eval "$as_ac_var=no"
10899 fi
10900 rm -f conftest.err conftest.$ac_objext \
10901 conftest$ac_exeext conftest.$ac_ext
10902 fi
10903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10905 if test `eval echo '${'$as_ac_var'}'` = yes; then
10906 cat >>confdefs.h <<_ACEOF
10907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10908 _ACEOF
10909
10910 fi
10911 done
10912
10913 fi
10914 fi
10915
10916
10917
10918 echo "$as_me:$LINENO: checking for hypot declaration" >&5
10919 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
10920 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
10921 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10923 else
10924
10925
10926
10927 ac_ext=cc
10928 ac_cpp='$CXXCPP $CPPFLAGS'
10929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10932
10933 cat >conftest.$ac_ext <<_ACEOF
10934 /* confdefs.h. */
10935 _ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10939 #include <math.h>
10940 int
10941 main ()
10942 {
10943 hypot(0, 0);
10944 ;
10945 return 0;
10946 }
10947 _ACEOF
10948 rm -f conftest.$ac_objext
10949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10950 (eval $ac_compile) 2>conftest.er1
10951 ac_status=$?
10952 grep -v '^ *+' conftest.er1 >conftest.err
10953 rm -f conftest.er1
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } &&
10957 { ac_try='test -z "$ac_cxx_werror_flag"
10958 || test ! -s conftest.err'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; } &&
10964 { ac_try='test -s conftest.$ac_objext'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
10970 glibcxx_cv_func_hypot_use=yes
10971 else
10972 echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10974
10975 glibcxx_cv_func_hypot_use=no
10976 fi
10977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10978 ac_ext=c
10979 ac_cpp='$CPP $CPPFLAGS'
10980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10983
10984
10985 fi
10986
10987 fi
10988 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
10989 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
10990
10991 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
10992
10993 for ac_func in hypot
10994 do
10995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10996 echo "$as_me:$LINENO: checking for $ac_func" >&5
10997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10998 if eval "test \"\${$as_ac_var+set}\" = set"; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001 if test x$gcc_no_link = xyes; then
11002 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11003 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11004 { (exit 1); exit 1; }; }
11005 fi
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h. */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11014 #define $ac_func innocuous_$ac_func
11015
11016 /* System header to define __stub macros and hopefully few prototypes,
11017 which can conflict with char $ac_func (); below.
11018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11019 <limits.h> exists even on freestanding compilers. */
11020
11021 #ifdef __STDC__
11022 # include <limits.h>
11023 #else
11024 # include <assert.h>
11025 #endif
11026
11027 #undef $ac_func
11028
11029 /* Override any gcc2 internal prototype to avoid an error. */
11030 #ifdef __cplusplus
11031 extern "C"
11032 {
11033 #endif
11034 /* We use char because int might match the return type of a gcc2
11035 builtin and then its argument prototype would still apply. */
11036 char $ac_func ();
11037 /* The GNU C library defines this for functions which it implements
11038 to always fail with ENOSYS. Some functions are actually named
11039 something starting with __ and the normal name is an alias. */
11040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11041 choke me
11042 #else
11043 char (*f) () = $ac_func;
11044 #endif
11045 #ifdef __cplusplus
11046 }
11047 #endif
11048
11049 int
11050 main ()
11051 {
11052 return f != $ac_func;
11053 ;
11054 return 0;
11055 }
11056 _ACEOF
11057 rm -f conftest.$ac_objext conftest$ac_exeext
11058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11059 (eval $ac_link) 2>conftest.er1
11060 ac_status=$?
11061 grep -v '^ *+' conftest.er1 >conftest.err
11062 rm -f conftest.er1
11063 cat conftest.err >&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } &&
11066 { ac_try='test -z "$ac_c_werror_flag"
11067 || test ! -s conftest.err'
11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069 (eval $ac_try) 2>&5
11070 ac_status=$?
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; } &&
11073 { ac_try='test -s conftest$ac_exeext'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; }; then
11079 eval "$as_ac_var=yes"
11080 else
11081 echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.$ac_ext >&5
11083
11084 eval "$as_ac_var=no"
11085 fi
11086 rm -f conftest.err conftest.$ac_objext \
11087 conftest$ac_exeext conftest.$ac_ext
11088 fi
11089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11091 if test `eval echo '${'$as_ac_var'}'` = yes; then
11092 cat >>confdefs.h <<_ACEOF
11093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11094 _ACEOF
11095
11096 fi
11097 done
11098
11099 else
11100
11101 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
11102 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
11103 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
11104 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11106 else
11107
11108
11109
11110 ac_ext=cc
11111 ac_cpp='$CXXCPP $CPPFLAGS'
11112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11115
11116 cat >conftest.$ac_ext <<_ACEOF
11117 /* confdefs.h. */
11118 _ACEOF
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11122 #include <math.h>
11123 int
11124 main ()
11125 {
11126 _hypot(0, 0);
11127 ;
11128 return 0;
11129 }
11130 _ACEOF
11131 rm -f conftest.$ac_objext
11132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11133 (eval $ac_compile) 2>conftest.er1
11134 ac_status=$?
11135 grep -v '^ *+' conftest.er1 >conftest.err
11136 rm -f conftest.er1
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } &&
11140 { ac_try='test -z "$ac_cxx_werror_flag"
11141 || test ! -s conftest.err'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; } &&
11147 { ac_try='test -s conftest.$ac_objext'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 glibcxx_cv_func__hypot_use=yes
11154 else
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158 glibcxx_cv_func__hypot_use=no
11159 fi
11160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11161 ac_ext=c
11162 ac_cpp='$CPP $CPPFLAGS'
11163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11166
11167
11168 fi
11169
11170 fi
11171 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
11172 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
11173
11174 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
11175
11176 for ac_func in _hypot
11177 do
11178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11179 echo "$as_me:$LINENO: checking for $ac_func" >&5
11180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11181 if eval "test \"\${$as_ac_var+set}\" = set"; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 else
11184 if test x$gcc_no_link = xyes; then
11185 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11186 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11187 { (exit 1); exit 1; }; }
11188 fi
11189 cat >conftest.$ac_ext <<_ACEOF
11190 /* confdefs.h. */
11191 _ACEOF
11192 cat confdefs.h >>conftest.$ac_ext
11193 cat >>conftest.$ac_ext <<_ACEOF
11194 /* end confdefs.h. */
11195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11197 #define $ac_func innocuous_$ac_func
11198
11199 /* System header to define __stub macros and hopefully few prototypes,
11200 which can conflict with char $ac_func (); below.
11201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11202 <limits.h> exists even on freestanding compilers. */
11203
11204 #ifdef __STDC__
11205 # include <limits.h>
11206 #else
11207 # include <assert.h>
11208 #endif
11209
11210 #undef $ac_func
11211
11212 /* Override any gcc2 internal prototype to avoid an error. */
11213 #ifdef __cplusplus
11214 extern "C"
11215 {
11216 #endif
11217 /* We use char because int might match the return type of a gcc2
11218 builtin and then its argument prototype would still apply. */
11219 char $ac_func ();
11220 /* The GNU C library defines this for functions which it implements
11221 to always fail with ENOSYS. Some functions are actually named
11222 something starting with __ and the normal name is an alias. */
11223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11224 choke me
11225 #else
11226 char (*f) () = $ac_func;
11227 #endif
11228 #ifdef __cplusplus
11229 }
11230 #endif
11231
11232 int
11233 main ()
11234 {
11235 return f != $ac_func;
11236 ;
11237 return 0;
11238 }
11239 _ACEOF
11240 rm -f conftest.$ac_objext conftest$ac_exeext
11241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11242 (eval $ac_link) 2>conftest.er1
11243 ac_status=$?
11244 grep -v '^ *+' conftest.er1 >conftest.err
11245 rm -f conftest.er1
11246 cat conftest.err >&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } &&
11249 { ac_try='test -z "$ac_c_werror_flag"
11250 || test ! -s conftest.err'
11251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11252 (eval $ac_try) 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; } &&
11256 { ac_try='test -s conftest$ac_exeext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11259 ac_status=$?
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 eval "$as_ac_var=yes"
11263 else
11264 echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11266
11267 eval "$as_ac_var=no"
11268 fi
11269 rm -f conftest.err conftest.$ac_objext \
11270 conftest$ac_exeext conftest.$ac_ext
11271 fi
11272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11274 if test `eval echo '${'$as_ac_var'}'` = yes; then
11275 cat >>confdefs.h <<_ACEOF
11276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11277 _ACEOF
11278
11279 fi
11280 done
11281
11282 fi
11283 fi
11284
11285
11286
11287 echo "$as_me:$LINENO: checking for float trig functions" >&5
11288 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
11289 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 else
11292
11293
11294
11295 ac_ext=cc
11296 ac_cpp='$CXXCPP $CPPFLAGS'
11297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11300
11301 cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h. */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 #include <math.h>
11308 int
11309 main ()
11310 {
11311 `for x in acosf asinf atanf \
11312 cosf sinf tanf \
11313 coshf sinhf tanhf; do echo "$x (0);"; done`
11314 ;
11315 return 0;
11316 }
11317 _ACEOF
11318 rm -f conftest.$ac_objext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11320 (eval $ac_compile) 2>conftest.er1
11321 ac_status=$?
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try='test -z "$ac_cxx_werror_flag"
11328 || test ! -s conftest.err'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest.$ac_objext'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 glibcxx_cv_func_float_trig_use=yes
11341 else
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11344
11345 glibcxx_cv_func_float_trig_use=no
11346 fi
11347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11348 ac_ext=c
11349 ac_cpp='$CPP $CPPFLAGS'
11350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11353
11354 fi
11355
11356 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
11357 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
11358 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368 for ac_func in acosf asinf atanf \
11369 cosf sinf tanf \
11370 coshf sinhf tanhf
11371 do
11372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11373 echo "$as_me:$LINENO: checking for $ac_func" >&5
11374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11375 if eval "test \"\${$as_ac_var+set}\" = set"; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378 if test x$gcc_no_link = xyes; then
11379 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11380 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11381 { (exit 1); exit 1; }; }
11382 fi
11383 cat >conftest.$ac_ext <<_ACEOF
11384 /* confdefs.h. */
11385 _ACEOF
11386 cat confdefs.h >>conftest.$ac_ext
11387 cat >>conftest.$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11391 #define $ac_func innocuous_$ac_func
11392
11393 /* System header to define __stub macros and hopefully few prototypes,
11394 which can conflict with char $ac_func (); below.
11395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11396 <limits.h> exists even on freestanding compilers. */
11397
11398 #ifdef __STDC__
11399 # include <limits.h>
11400 #else
11401 # include <assert.h>
11402 #endif
11403
11404 #undef $ac_func
11405
11406 /* Override any gcc2 internal prototype to avoid an error. */
11407 #ifdef __cplusplus
11408 extern "C"
11409 {
11410 #endif
11411 /* We use char because int might match the return type of a gcc2
11412 builtin and then its argument prototype would still apply. */
11413 char $ac_func ();
11414 /* The GNU C library defines this for functions which it implements
11415 to always fail with ENOSYS. Some functions are actually named
11416 something starting with __ and the normal name is an alias. */
11417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11418 choke me
11419 #else
11420 char (*f) () = $ac_func;
11421 #endif
11422 #ifdef __cplusplus
11423 }
11424 #endif
11425
11426 int
11427 main ()
11428 {
11429 return f != $ac_func;
11430 ;
11431 return 0;
11432 }
11433 _ACEOF
11434 rm -f conftest.$ac_objext conftest$ac_exeext
11435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11436 (eval $ac_link) 2>conftest.er1
11437 ac_status=$?
11438 grep -v '^ *+' conftest.er1 >conftest.err
11439 rm -f conftest.er1
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } &&
11443 { ac_try='test -z "$ac_c_werror_flag"
11444 || test ! -s conftest.err'
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11447 ac_status=$?
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; } &&
11450 { ac_try='test -s conftest$ac_exeext'
11451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11452 (eval $ac_try) 2>&5
11453 ac_status=$?
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; }; then
11456 eval "$as_ac_var=yes"
11457 else
11458 echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11460
11461 eval "$as_ac_var=no"
11462 fi
11463 rm -f conftest.err conftest.$ac_objext \
11464 conftest$ac_exeext conftest.$ac_ext
11465 fi
11466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11468 if test `eval echo '${'$as_ac_var'}'` = yes; then
11469 cat >>confdefs.h <<_ACEOF
11470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11471 _ACEOF
11472
11473 fi
11474 done
11475
11476 fi
11477
11478
11479 echo "$as_me:$LINENO: checking for float round functions" >&5
11480 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
11481 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 else
11484
11485
11486
11487 ac_ext=cc
11488 ac_cpp='$CXXCPP $CPPFLAGS'
11489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11492
11493 cat >conftest.$ac_ext <<_ACEOF
11494 /* confdefs.h. */
11495 _ACEOF
11496 cat confdefs.h >>conftest.$ac_ext
11497 cat >>conftest.$ac_ext <<_ACEOF
11498 /* end confdefs.h. */
11499 #include <math.h>
11500 int
11501 main ()
11502 {
11503 `for x in ceilf floorf; do echo "$x (0);"; done`
11504 ;
11505 return 0;
11506 }
11507 _ACEOF
11508 rm -f conftest.$ac_objext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11510 (eval $ac_compile) 2>conftest.er1
11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } &&
11517 { ac_try='test -z "$ac_cxx_werror_flag"
11518 || test ! -s conftest.err'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest.$ac_objext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 glibcxx_cv_func_float_round_use=yes
11531 else
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535 glibcxx_cv_func_float_round_use=no
11536 fi
11537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11538 ac_ext=c
11539 ac_cpp='$CPP $CPPFLAGS'
11540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11543
11544 fi
11545
11546 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
11547 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
11548 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
11549
11550
11551 for ac_func in ceilf floorf
11552 do
11553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11554 echo "$as_me:$LINENO: checking for $ac_func" >&5
11555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11556 if eval "test \"\${$as_ac_var+set}\" = set"; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559 if test x$gcc_no_link = xyes; then
11560 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11562 { (exit 1); exit 1; }; }
11563 fi
11564 cat >conftest.$ac_ext <<_ACEOF
11565 /* confdefs.h. */
11566 _ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h. */
11570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11572 #define $ac_func innocuous_$ac_func
11573
11574 /* System header to define __stub macros and hopefully few prototypes,
11575 which can conflict with char $ac_func (); below.
11576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11577 <limits.h> exists even on freestanding compilers. */
11578
11579 #ifdef __STDC__
11580 # include <limits.h>
11581 #else
11582 # include <assert.h>
11583 #endif
11584
11585 #undef $ac_func
11586
11587 /* Override any gcc2 internal prototype to avoid an error. */
11588 #ifdef __cplusplus
11589 extern "C"
11590 {
11591 #endif
11592 /* We use char because int might match the return type of a gcc2
11593 builtin and then its argument prototype would still apply. */
11594 char $ac_func ();
11595 /* The GNU C library defines this for functions which it implements
11596 to always fail with ENOSYS. Some functions are actually named
11597 something starting with __ and the normal name is an alias. */
11598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11599 choke me
11600 #else
11601 char (*f) () = $ac_func;
11602 #endif
11603 #ifdef __cplusplus
11604 }
11605 #endif
11606
11607 int
11608 main ()
11609 {
11610 return f != $ac_func;
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 rm -f conftest.$ac_objext conftest$ac_exeext
11616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11617 (eval $ac_link) 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -z "$ac_c_werror_flag"
11625 || test ! -s conftest.err'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; } &&
11631 { ac_try='test -s conftest$ac_exeext'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; }; then
11637 eval "$as_ac_var=yes"
11638 else
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642 eval "$as_ac_var=no"
11643 fi
11644 rm -f conftest.err conftest.$ac_objext \
11645 conftest$ac_exeext conftest.$ac_ext
11646 fi
11647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11649 if test `eval echo '${'$as_ac_var'}'` = yes; then
11650 cat >>confdefs.h <<_ACEOF
11651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11652 _ACEOF
11653
11654 fi
11655 done
11656
11657 fi
11658
11659
11660
11661 echo "$as_me:$LINENO: checking for expf declaration" >&5
11662 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
11663 if test x${glibcxx_cv_func_expf_use+set} != xset; then
11664 if test "${glibcxx_cv_func_expf_use+set}" = set; then
11665 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 else
11667
11668
11669
11670 ac_ext=cc
11671 ac_cpp='$CXXCPP $CPPFLAGS'
11672 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11673 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11674 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11675
11676 cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h. */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h. */
11682 #include <math.h>
11683 #ifdef HAVE_IEEEFP_H
11684 #include <ieeefp.h>
11685 #endif
11686
11687 int
11688 main ()
11689 {
11690 expf(0);
11691 ;
11692 return 0;
11693 }
11694 _ACEOF
11695 rm -f conftest.$ac_objext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11697 (eval $ac_compile) 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -z "$ac_cxx_werror_flag"
11705 || test ! -s conftest.err'
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest.$ac_objext'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 glibcxx_cv_func_expf_use=yes
11718 else
11719 echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11721
11722 glibcxx_cv_func_expf_use=no
11723 fi
11724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11725 ac_ext=c
11726 ac_cpp='$CPP $CPPFLAGS'
11727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11730
11731
11732 fi
11733
11734 fi
11735 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
11736 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
11737
11738 if test x$glibcxx_cv_func_expf_use = x"yes"; then
11739
11740 for ac_func in expf
11741 do
11742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11743 echo "$as_me:$LINENO: checking for $ac_func" >&5
11744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11745 if eval "test \"\${$as_ac_var+set}\" = set"; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748 if test x$gcc_no_link = xyes; then
11749 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11750 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11751 { (exit 1); exit 1; }; }
11752 fi
11753 cat >conftest.$ac_ext <<_ACEOF
11754 /* confdefs.h. */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11761 #define $ac_func innocuous_$ac_func
11762
11763 /* System header to define __stub macros and hopefully few prototypes,
11764 which can conflict with char $ac_func (); below.
11765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11766 <limits.h> exists even on freestanding compilers. */
11767
11768 #ifdef __STDC__
11769 # include <limits.h>
11770 #else
11771 # include <assert.h>
11772 #endif
11773
11774 #undef $ac_func
11775
11776 /* Override any gcc2 internal prototype to avoid an error. */
11777 #ifdef __cplusplus
11778 extern "C"
11779 {
11780 #endif
11781 /* We use char because int might match the return type of a gcc2
11782 builtin and then its argument prototype would still apply. */
11783 char $ac_func ();
11784 /* The GNU C library defines this for functions which it implements
11785 to always fail with ENOSYS. Some functions are actually named
11786 something starting with __ and the normal name is an alias. */
11787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11788 choke me
11789 #else
11790 char (*f) () = $ac_func;
11791 #endif
11792 #ifdef __cplusplus
11793 }
11794 #endif
11795
11796 int
11797 main ()
11798 {
11799 return f != $ac_func;
11800 ;
11801 return 0;
11802 }
11803 _ACEOF
11804 rm -f conftest.$ac_objext conftest$ac_exeext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806 (eval $ac_link) 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
11813 { ac_try='test -z "$ac_c_werror_flag"
11814 || test ! -s conftest.err'
11815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816 (eval $ac_try) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; } &&
11820 { ac_try='test -s conftest$ac_exeext'
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 eval "$as_ac_var=yes"
11827 else
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11830
11831 eval "$as_ac_var=no"
11832 fi
11833 rm -f conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11835 fi
11836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11838 if test `eval echo '${'$as_ac_var'}'` = yes; then
11839 cat >>confdefs.h <<_ACEOF
11840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11841 _ACEOF
11842
11843 fi
11844 done
11845
11846 else
11847
11848 echo "$as_me:$LINENO: checking for _expf declaration" >&5
11849 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
11850 if test x${glibcxx_cv_func__expf_use+set} != xset; then
11851 if test "${glibcxx_cv_func__expf_use+set}" = set; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854
11855
11856
11857 ac_ext=cc
11858 ac_cpp='$CXXCPP $CPPFLAGS'
11859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11862
11863 cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h. */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 #include <math.h>
11870 #ifdef HAVE_IEEEFP_H
11871 #include <ieeefp.h>
11872 #endif
11873
11874 int
11875 main ()
11876 {
11877 _expf(0);
11878 ;
11879 return 0;
11880 }
11881 _ACEOF
11882 rm -f conftest.$ac_objext
11883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11884 (eval $ac_compile) 2>conftest.er1
11885 ac_status=$?
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
11891 { ac_try='test -z "$ac_cxx_werror_flag"
11892 || test ! -s conftest.err'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest.$ac_objext'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; }; then
11904 glibcxx_cv_func__expf_use=yes
11905 else
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11908
11909 glibcxx_cv_func__expf_use=no
11910 fi
11911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11912 ac_ext=c
11913 ac_cpp='$CPP $CPPFLAGS'
11914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11917
11918
11919 fi
11920
11921 fi
11922 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
11923 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
11924
11925 if test x$glibcxx_cv_func__expf_use = x"yes"; then
11926
11927 for ac_func in _expf
11928 do
11929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11930 echo "$as_me:$LINENO: checking for $ac_func" >&5
11931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11932 if eval "test \"\${$as_ac_var+set}\" = set"; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935 if test x$gcc_no_link = xyes; then
11936 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11937 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11938 { (exit 1); exit 1; }; }
11939 fi
11940 cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h. */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11948 #define $ac_func innocuous_$ac_func
11949
11950 /* System header to define __stub macros and hopefully few prototypes,
11951 which can conflict with char $ac_func (); below.
11952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11953 <limits.h> exists even on freestanding compilers. */
11954
11955 #ifdef __STDC__
11956 # include <limits.h>
11957 #else
11958 # include <assert.h>
11959 #endif
11960
11961 #undef $ac_func
11962
11963 /* Override any gcc2 internal prototype to avoid an error. */
11964 #ifdef __cplusplus
11965 extern "C"
11966 {
11967 #endif
11968 /* We use char because int might match the return type of a gcc2
11969 builtin and then its argument prototype would still apply. */
11970 char $ac_func ();
11971 /* The GNU C library defines this for functions which it implements
11972 to always fail with ENOSYS. Some functions are actually named
11973 something starting with __ and the normal name is an alias. */
11974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11975 choke me
11976 #else
11977 char (*f) () = $ac_func;
11978 #endif
11979 #ifdef __cplusplus
11980 }
11981 #endif
11982
11983 int
11984 main ()
11985 {
11986 return f != $ac_func;
11987 ;
11988 return 0;
11989 }
11990 _ACEOF
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11993 (eval $ac_link) 2>conftest.er1
11994 ac_status=$?
11995 grep -v '^ *+' conftest.er1 >conftest.err
11996 rm -f conftest.er1
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } &&
12000 { ac_try='test -z "$ac_c_werror_flag"
12001 || test ! -s conftest.err'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; } &&
12007 { ac_try='test -s conftest$ac_exeext'
12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; }; then
12013 eval "$as_ac_var=yes"
12014 else
12015 echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12017
12018 eval "$as_ac_var=no"
12019 fi
12020 rm -f conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
12022 fi
12023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12025 if test `eval echo '${'$as_ac_var'}'` = yes; then
12026 cat >>confdefs.h <<_ACEOF
12027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12028 _ACEOF
12029
12030 fi
12031 done
12032
12033 fi
12034 fi
12035
12036
12037
12038 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
12039 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
12040 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
12041 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044
12045
12046
12047 ac_ext=cc
12048 ac_cpp='$CXXCPP $CPPFLAGS'
12049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12052
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h. */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 #include <math.h>
12060 #ifdef HAVE_IEEEFP_H
12061 #include <ieeefp.h>
12062 #endif
12063
12064 int
12065 main ()
12066 {
12067 isnanf(0);
12068 ;
12069 return 0;
12070 }
12071 _ACEOF
12072 rm -f conftest.$ac_objext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12074 (eval $ac_compile) 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } &&
12081 { ac_try='test -z "$ac_cxx_werror_flag"
12082 || test ! -s conftest.err'
12083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084 (eval $ac_try) 2>&5
12085 ac_status=$?
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); }; } &&
12088 { ac_try='test -s conftest.$ac_objext'
12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090 (eval $ac_try) 2>&5
12091 ac_status=$?
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; }; then
12094 glibcxx_cv_func_isnanf_use=yes
12095 else
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12098
12099 glibcxx_cv_func_isnanf_use=no
12100 fi
12101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12102 ac_ext=c
12103 ac_cpp='$CPP $CPPFLAGS'
12104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12107
12108
12109 fi
12110
12111 fi
12112 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
12113 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
12114
12115 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
12116
12117 for ac_func in isnanf
12118 do
12119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12120 echo "$as_me:$LINENO: checking for $ac_func" >&5
12121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12122 if eval "test \"\${$as_ac_var+set}\" = set"; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125 if test x$gcc_no_link = xyes; then
12126 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12127 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12128 { (exit 1); exit 1; }; }
12129 fi
12130 cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h. */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h. */
12136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12138 #define $ac_func innocuous_$ac_func
12139
12140 /* System header to define __stub macros and hopefully few prototypes,
12141 which can conflict with char $ac_func (); below.
12142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12143 <limits.h> exists even on freestanding compilers. */
12144
12145 #ifdef __STDC__
12146 # include <limits.h>
12147 #else
12148 # include <assert.h>
12149 #endif
12150
12151 #undef $ac_func
12152
12153 /* Override any gcc2 internal prototype to avoid an error. */
12154 #ifdef __cplusplus
12155 extern "C"
12156 {
12157 #endif
12158 /* We use char because int might match the return type of a gcc2
12159 builtin and then its argument prototype would still apply. */
12160 char $ac_func ();
12161 /* The GNU C library defines this for functions which it implements
12162 to always fail with ENOSYS. Some functions are actually named
12163 something starting with __ and the normal name is an alias. */
12164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12165 choke me
12166 #else
12167 char (*f) () = $ac_func;
12168 #endif
12169 #ifdef __cplusplus
12170 }
12171 #endif
12172
12173 int
12174 main ()
12175 {
12176 return f != $ac_func;
12177 ;
12178 return 0;
12179 }
12180 _ACEOF
12181 rm -f conftest.$ac_objext conftest$ac_exeext
12182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12183 (eval $ac_link) 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
12190 { ac_try='test -z "$ac_c_werror_flag"
12191 || test ! -s conftest.err'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; } &&
12197 { ac_try='test -s conftest$ac_exeext'
12198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199 (eval $ac_try) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12203 eval "$as_ac_var=yes"
12204 else
12205 echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12207
12208 eval "$as_ac_var=no"
12209 fi
12210 rm -f conftest.err conftest.$ac_objext \
12211 conftest$ac_exeext conftest.$ac_ext
12212 fi
12213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12215 if test `eval echo '${'$as_ac_var'}'` = yes; then
12216 cat >>confdefs.h <<_ACEOF
12217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12218 _ACEOF
12219
12220 fi
12221 done
12222
12223 else
12224
12225 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
12226 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
12227 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
12228 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 else
12231
12232
12233
12234 ac_ext=cc
12235 ac_cpp='$CXXCPP $CPPFLAGS'
12236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12239
12240 cat >conftest.$ac_ext <<_ACEOF
12241 /* confdefs.h. */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h. */
12246 #include <math.h>
12247 #ifdef HAVE_IEEEFP_H
12248 #include <ieeefp.h>
12249 #endif
12250
12251 int
12252 main ()
12253 {
12254 _isnanf(0);
12255 ;
12256 return 0;
12257 }
12258 _ACEOF
12259 rm -f conftest.$ac_objext
12260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12261 (eval $ac_compile) 2>conftest.er1
12262 ac_status=$?
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_cxx_werror_flag"
12269 || test ! -s conftest.err'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; } &&
12275 { ac_try='test -s conftest.$ac_objext'
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12281 glibcxx_cv_func__isnanf_use=yes
12282 else
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12285
12286 glibcxx_cv_func__isnanf_use=no
12287 fi
12288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12289 ac_ext=c
12290 ac_cpp='$CPP $CPPFLAGS'
12291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12294
12295
12296 fi
12297
12298 fi
12299 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
12300 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
12301
12302 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
12303
12304 for ac_func in _isnanf
12305 do
12306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12307 echo "$as_me:$LINENO: checking for $ac_func" >&5
12308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12309 if eval "test \"\${$as_ac_var+set}\" = set"; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 else
12312 if test x$gcc_no_link = xyes; then
12313 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12314 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12315 { (exit 1); exit 1; }; }
12316 fi
12317 cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h. */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12325 #define $ac_func innocuous_$ac_func
12326
12327 /* System header to define __stub macros and hopefully few prototypes,
12328 which can conflict with char $ac_func (); below.
12329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12330 <limits.h> exists even on freestanding compilers. */
12331
12332 #ifdef __STDC__
12333 # include <limits.h>
12334 #else
12335 # include <assert.h>
12336 #endif
12337
12338 #undef $ac_func
12339
12340 /* Override any gcc2 internal prototype to avoid an error. */
12341 #ifdef __cplusplus
12342 extern "C"
12343 {
12344 #endif
12345 /* We use char because int might match the return type of a gcc2
12346 builtin and then its argument prototype would still apply. */
12347 char $ac_func ();
12348 /* The GNU C library defines this for functions which it implements
12349 to always fail with ENOSYS. Some functions are actually named
12350 something starting with __ and the normal name is an alias. */
12351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12352 choke me
12353 #else
12354 char (*f) () = $ac_func;
12355 #endif
12356 #ifdef __cplusplus
12357 }
12358 #endif
12359
12360 int
12361 main ()
12362 {
12363 return f != $ac_func;
12364 ;
12365 return 0;
12366 }
12367 _ACEOF
12368 rm -f conftest.$ac_objext conftest$ac_exeext
12369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12370 (eval $ac_link) 2>conftest.er1
12371 ac_status=$?
12372 grep -v '^ *+' conftest.er1 >conftest.err
12373 rm -f conftest.er1
12374 cat conftest.err >&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } &&
12377 { ac_try='test -z "$ac_c_werror_flag"
12378 || test ! -s conftest.err'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; } &&
12384 { ac_try='test -s conftest$ac_exeext'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 eval "$as_ac_var=yes"
12391 else
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12394
12395 eval "$as_ac_var=no"
12396 fi
12397 rm -f conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12399 fi
12400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12402 if test `eval echo '${'$as_ac_var'}'` = yes; then
12403 cat >>confdefs.h <<_ACEOF
12404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12405 _ACEOF
12406
12407 fi
12408 done
12409
12410 fi
12411 fi
12412
12413
12414
12415 echo "$as_me:$LINENO: checking for isinff declaration" >&5
12416 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
12417 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
12418 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 else
12421
12422
12423
12424 ac_ext=cc
12425 ac_cpp='$CXXCPP $CPPFLAGS'
12426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12429
12430 cat >conftest.$ac_ext <<_ACEOF
12431 /* confdefs.h. */
12432 _ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12436 #include <math.h>
12437 #ifdef HAVE_IEEEFP_H
12438 #include <ieeefp.h>
12439 #endif
12440
12441 int
12442 main ()
12443 {
12444 isinff(0);
12445 ;
12446 return 0;
12447 }
12448 _ACEOF
12449 rm -f conftest.$ac_objext
12450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12451 (eval $ac_compile) 2>conftest.er1
12452 ac_status=$?
12453 grep -v '^ *+' conftest.er1 >conftest.err
12454 rm -f conftest.er1
12455 cat conftest.err >&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } &&
12458 { ac_try='test -z "$ac_cxx_werror_flag"
12459 || test ! -s conftest.err'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest.$ac_objext'
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
12471 glibcxx_cv_func_isinff_use=yes
12472 else
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12475
12476 glibcxx_cv_func_isinff_use=no
12477 fi
12478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12479 ac_ext=c
12480 ac_cpp='$CPP $CPPFLAGS'
12481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12484
12485
12486 fi
12487
12488 fi
12489 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
12490 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
12491
12492 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
12493
12494 for ac_func in isinff
12495 do
12496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12497 echo "$as_me:$LINENO: checking for $ac_func" >&5
12498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12499 if eval "test \"\${$as_ac_var+set}\" = set"; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 else
12502 if test x$gcc_no_link = xyes; then
12503 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12504 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12505 { (exit 1); exit 1; }; }
12506 fi
12507 cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h. */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12515 #define $ac_func innocuous_$ac_func
12516
12517 /* System header to define __stub macros and hopefully few prototypes,
12518 which can conflict with char $ac_func (); below.
12519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12520 <limits.h> exists even on freestanding compilers. */
12521
12522 #ifdef __STDC__
12523 # include <limits.h>
12524 #else
12525 # include <assert.h>
12526 #endif
12527
12528 #undef $ac_func
12529
12530 /* Override any gcc2 internal prototype to avoid an error. */
12531 #ifdef __cplusplus
12532 extern "C"
12533 {
12534 #endif
12535 /* We use char because int might match the return type of a gcc2
12536 builtin and then its argument prototype would still apply. */
12537 char $ac_func ();
12538 /* The GNU C library defines this for functions which it implements
12539 to always fail with ENOSYS. Some functions are actually named
12540 something starting with __ and the normal name is an alias. */
12541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12542 choke me
12543 #else
12544 char (*f) () = $ac_func;
12545 #endif
12546 #ifdef __cplusplus
12547 }
12548 #endif
12549
12550 int
12551 main ()
12552 {
12553 return f != $ac_func;
12554 ;
12555 return 0;
12556 }
12557 _ACEOF
12558 rm -f conftest.$ac_objext conftest$ac_exeext
12559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12560 (eval $ac_link) 2>conftest.er1
12561 ac_status=$?
12562 grep -v '^ *+' conftest.er1 >conftest.err
12563 rm -f conftest.er1
12564 cat conftest.err >&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); } &&
12567 { ac_try='test -z "$ac_c_werror_flag"
12568 || test ! -s conftest.err'
12569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570 (eval $ac_try) 2>&5
12571 ac_status=$?
12572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573 (exit $ac_status); }; } &&
12574 { ac_try='test -s conftest$ac_exeext'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; }; then
12580 eval "$as_ac_var=yes"
12581 else
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12584
12585 eval "$as_ac_var=no"
12586 fi
12587 rm -f conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12589 fi
12590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12592 if test `eval echo '${'$as_ac_var'}'` = yes; then
12593 cat >>confdefs.h <<_ACEOF
12594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12595 _ACEOF
12596
12597 fi
12598 done
12599
12600 else
12601
12602 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
12603 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
12604 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
12605 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 else
12608
12609
12610
12611 ac_ext=cc
12612 ac_cpp='$CXXCPP $CPPFLAGS'
12613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12616
12617 cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h. */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12623 #include <math.h>
12624 #ifdef HAVE_IEEEFP_H
12625 #include <ieeefp.h>
12626 #endif
12627
12628 int
12629 main ()
12630 {
12631 _isinff(0);
12632 ;
12633 return 0;
12634 }
12635 _ACEOF
12636 rm -f conftest.$ac_objext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12638 (eval $ac_compile) 2>conftest.er1
12639 ac_status=$?
12640 grep -v '^ *+' conftest.er1 >conftest.err
12641 rm -f conftest.er1
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } &&
12645 { ac_try='test -z "$ac_cxx_werror_flag"
12646 || test ! -s conftest.err'
12647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12648 (eval $ac_try) 2>&5
12649 ac_status=$?
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); }; } &&
12652 { ac_try='test -s conftest.$ac_objext'
12653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12655 ac_status=$?
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 glibcxx_cv_func__isinff_use=yes
12659 else
12660 echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663 glibcxx_cv_func__isinff_use=no
12664 fi
12665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12666 ac_ext=c
12667 ac_cpp='$CPP $CPPFLAGS'
12668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12671
12672
12673 fi
12674
12675 fi
12676 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
12677 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
12678
12679 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
12680
12681 for ac_func in _isinff
12682 do
12683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12684 echo "$as_me:$LINENO: checking for $ac_func" >&5
12685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12686 if eval "test \"\${$as_ac_var+set}\" = set"; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12688 else
12689 if test x$gcc_no_link = xyes; then
12690 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12691 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12692 { (exit 1); exit 1; }; }
12693 fi
12694 cat >conftest.$ac_ext <<_ACEOF
12695 /* confdefs.h. */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12702 #define $ac_func innocuous_$ac_func
12703
12704 /* System header to define __stub macros and hopefully few prototypes,
12705 which can conflict with char $ac_func (); below.
12706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12707 <limits.h> exists even on freestanding compilers. */
12708
12709 #ifdef __STDC__
12710 # include <limits.h>
12711 #else
12712 # include <assert.h>
12713 #endif
12714
12715 #undef $ac_func
12716
12717 /* Override any gcc2 internal prototype to avoid an error. */
12718 #ifdef __cplusplus
12719 extern "C"
12720 {
12721 #endif
12722 /* We use char because int might match the return type of a gcc2
12723 builtin and then its argument prototype would still apply. */
12724 char $ac_func ();
12725 /* The GNU C library defines this for functions which it implements
12726 to always fail with ENOSYS. Some functions are actually named
12727 something starting with __ and the normal name is an alias. */
12728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12729 choke me
12730 #else
12731 char (*f) () = $ac_func;
12732 #endif
12733 #ifdef __cplusplus
12734 }
12735 #endif
12736
12737 int
12738 main ()
12739 {
12740 return f != $ac_func;
12741 ;
12742 return 0;
12743 }
12744 _ACEOF
12745 rm -f conftest.$ac_objext conftest$ac_exeext
12746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12747 (eval $ac_link) 2>conftest.er1
12748 ac_status=$?
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
12754 { ac_try='test -z "$ac_c_werror_flag"
12755 || test ! -s conftest.err'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; } &&
12761 { ac_try='test -s conftest$ac_exeext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 eval "$as_ac_var=yes"
12768 else
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12771
12772 eval "$as_ac_var=no"
12773 fi
12774 rm -f conftest.err conftest.$ac_objext \
12775 conftest$ac_exeext conftest.$ac_ext
12776 fi
12777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12779 if test `eval echo '${'$as_ac_var'}'` = yes; then
12780 cat >>confdefs.h <<_ACEOF
12781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12782 _ACEOF
12783
12784 fi
12785 done
12786
12787 fi
12788 fi
12789
12790
12791
12792 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
12793 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
12794 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
12795 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798
12799
12800
12801 ac_ext=cc
12802 ac_cpp='$CXXCPP $CPPFLAGS'
12803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12806
12807 cat >conftest.$ac_ext <<_ACEOF
12808 /* confdefs.h. */
12809 _ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12813 #include <math.h>
12814 int
12815 main ()
12816 {
12817 atan2f(0, 0);
12818 ;
12819 return 0;
12820 }
12821 _ACEOF
12822 rm -f conftest.$ac_objext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12824 (eval $ac_compile) 2>conftest.er1
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try='test -z "$ac_cxx_werror_flag"
12832 || test ! -s conftest.err'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try='test -s conftest.$ac_objext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 glibcxx_cv_func_atan2f_use=yes
12845 else
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12848
12849 glibcxx_cv_func_atan2f_use=no
12850 fi
12851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12852 ac_ext=c
12853 ac_cpp='$CPP $CPPFLAGS'
12854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12857
12858
12859 fi
12860
12861 fi
12862 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
12863 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
12864
12865 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
12866
12867 for ac_func in atan2f
12868 do
12869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12870 echo "$as_me:$LINENO: checking for $ac_func" >&5
12871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12872 if eval "test \"\${$as_ac_var+set}\" = set"; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875 if test x$gcc_no_link = xyes; then
12876 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12877 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12878 { (exit 1); exit 1; }; }
12879 fi
12880 cat >conftest.$ac_ext <<_ACEOF
12881 /* confdefs.h. */
12882 _ACEOF
12883 cat confdefs.h >>conftest.$ac_ext
12884 cat >>conftest.$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12888 #define $ac_func innocuous_$ac_func
12889
12890 /* System header to define __stub macros and hopefully few prototypes,
12891 which can conflict with char $ac_func (); below.
12892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12893 <limits.h> exists even on freestanding compilers. */
12894
12895 #ifdef __STDC__
12896 # include <limits.h>
12897 #else
12898 # include <assert.h>
12899 #endif
12900
12901 #undef $ac_func
12902
12903 /* Override any gcc2 internal prototype to avoid an error. */
12904 #ifdef __cplusplus
12905 extern "C"
12906 {
12907 #endif
12908 /* We use char because int might match the return type of a gcc2
12909 builtin and then its argument prototype would still apply. */
12910 char $ac_func ();
12911 /* The GNU C library defines this for functions which it implements
12912 to always fail with ENOSYS. Some functions are actually named
12913 something starting with __ and the normal name is an alias. */
12914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12915 choke me
12916 #else
12917 char (*f) () = $ac_func;
12918 #endif
12919 #ifdef __cplusplus
12920 }
12921 #endif
12922
12923 int
12924 main ()
12925 {
12926 return f != $ac_func;
12927 ;
12928 return 0;
12929 }
12930 _ACEOF
12931 rm -f conftest.$ac_objext conftest$ac_exeext
12932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12933 (eval $ac_link) 2>conftest.er1
12934 ac_status=$?
12935 grep -v '^ *+' conftest.er1 >conftest.err
12936 rm -f conftest.er1
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } &&
12940 { ac_try='test -z "$ac_c_werror_flag"
12941 || test ! -s conftest.err'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; } &&
12947 { ac_try='test -s conftest$ac_exeext'
12948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12949 (eval $ac_try) 2>&5
12950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 eval "$as_ac_var=yes"
12954 else
12955 echo "$as_me: failed program was:" >&5
12956 sed 's/^/| /' conftest.$ac_ext >&5
12957
12958 eval "$as_ac_var=no"
12959 fi
12960 rm -f conftest.err conftest.$ac_objext \
12961 conftest$ac_exeext conftest.$ac_ext
12962 fi
12963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12965 if test `eval echo '${'$as_ac_var'}'` = yes; then
12966 cat >>confdefs.h <<_ACEOF
12967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12968 _ACEOF
12969
12970 fi
12971 done
12972
12973 else
12974
12975 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
12976 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
12977 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
12978 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981
12982
12983
12984 ac_ext=cc
12985 ac_cpp='$CXXCPP $CPPFLAGS'
12986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12989
12990 cat >conftest.$ac_ext <<_ACEOF
12991 /* confdefs.h. */
12992 _ACEOF
12993 cat confdefs.h >>conftest.$ac_ext
12994 cat >>conftest.$ac_ext <<_ACEOF
12995 /* end confdefs.h. */
12996 #include <math.h>
12997 int
12998 main ()
12999 {
13000 _atan2f(0, 0);
13001 ;
13002 return 0;
13003 }
13004 _ACEOF
13005 rm -f conftest.$ac_objext
13006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13007 (eval $ac_compile) 2>conftest.er1
13008 ac_status=$?
13009 grep -v '^ *+' conftest.er1 >conftest.err
13010 rm -f conftest.er1
13011 cat conftest.err >&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); } &&
13014 { ac_try='test -z "$ac_cxx_werror_flag"
13015 || test ! -s conftest.err'
13016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017 (eval $ac_try) 2>&5
13018 ac_status=$?
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); }; } &&
13021 { ac_try='test -s conftest.$ac_objext'
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; }; then
13027 glibcxx_cv_func__atan2f_use=yes
13028 else
13029 echo "$as_me: failed program was:" >&5
13030 sed 's/^/| /' conftest.$ac_ext >&5
13031
13032 glibcxx_cv_func__atan2f_use=no
13033 fi
13034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13035 ac_ext=c
13036 ac_cpp='$CPP $CPPFLAGS'
13037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13040
13041
13042 fi
13043
13044 fi
13045 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
13046 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
13047
13048 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
13049
13050 for ac_func in _atan2f
13051 do
13052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13053 echo "$as_me:$LINENO: checking for $ac_func" >&5
13054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13055 if eval "test \"\${$as_ac_var+set}\" = set"; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13057 else
13058 if test x$gcc_no_link = xyes; then
13059 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13060 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13061 { (exit 1); exit 1; }; }
13062 fi
13063 cat >conftest.$ac_ext <<_ACEOF
13064 /* confdefs.h. */
13065 _ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13071 #define $ac_func innocuous_$ac_func
13072
13073 /* System header to define __stub macros and hopefully few prototypes,
13074 which can conflict with char $ac_func (); below.
13075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13076 <limits.h> exists even on freestanding compilers. */
13077
13078 #ifdef __STDC__
13079 # include <limits.h>
13080 #else
13081 # include <assert.h>
13082 #endif
13083
13084 #undef $ac_func
13085
13086 /* Override any gcc2 internal prototype to avoid an error. */
13087 #ifdef __cplusplus
13088 extern "C"
13089 {
13090 #endif
13091 /* We use char because int might match the return type of a gcc2
13092 builtin and then its argument prototype would still apply. */
13093 char $ac_func ();
13094 /* The GNU C library defines this for functions which it implements
13095 to always fail with ENOSYS. Some functions are actually named
13096 something starting with __ and the normal name is an alias. */
13097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13098 choke me
13099 #else
13100 char (*f) () = $ac_func;
13101 #endif
13102 #ifdef __cplusplus
13103 }
13104 #endif
13105
13106 int
13107 main ()
13108 {
13109 return f != $ac_func;
13110 ;
13111 return 0;
13112 }
13113 _ACEOF
13114 rm -f conftest.$ac_objext conftest$ac_exeext
13115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13116 (eval $ac_link) 2>conftest.er1
13117 ac_status=$?
13118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
13123 { ac_try='test -z "$ac_c_werror_flag"
13124 || test ! -s conftest.err'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; } &&
13130 { ac_try='test -s conftest$ac_exeext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13133 ac_status=$?
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 eval "$as_ac_var=yes"
13137 else
13138 echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13140
13141 eval "$as_ac_var=no"
13142 fi
13143 rm -f conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
13145 fi
13146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13148 if test `eval echo '${'$as_ac_var'}'` = yes; then
13149 cat >>confdefs.h <<_ACEOF
13150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13151 _ACEOF
13152
13153 fi
13154 done
13155
13156 fi
13157 fi
13158
13159
13160
13161 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
13162 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
13163 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
13164 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 else
13167
13168
13169
13170 ac_ext=cc
13171 ac_cpp='$CXXCPP $CPPFLAGS'
13172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13175
13176 cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h. */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182 #include <math.h>
13183 #ifdef HAVE_IEEEFP_H
13184 #include <ieeefp.h>
13185 #endif
13186
13187 int
13188 main ()
13189 {
13190 fabsf(0);
13191 ;
13192 return 0;
13193 }
13194 _ACEOF
13195 rm -f conftest.$ac_objext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197 (eval $ac_compile) 2>conftest.er1
13198 ac_status=$?
13199 grep -v '^ *+' conftest.er1 >conftest.err
13200 rm -f conftest.er1
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -z "$ac_cxx_werror_flag"
13205 || test ! -s conftest.err'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest.$ac_objext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 glibcxx_cv_func_fabsf_use=yes
13218 else
13219 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.$ac_ext >&5
13221
13222 glibcxx_cv_func_fabsf_use=no
13223 fi
13224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13225 ac_ext=c
13226 ac_cpp='$CPP $CPPFLAGS'
13227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13230
13231
13232 fi
13233
13234 fi
13235 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
13236 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
13237
13238 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
13239
13240 for ac_func in fabsf
13241 do
13242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13243 echo "$as_me:$LINENO: checking for $ac_func" >&5
13244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13245 if eval "test \"\${$as_ac_var+set}\" = set"; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13247 else
13248 if test x$gcc_no_link = xyes; then
13249 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13250 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13251 { (exit 1); exit 1; }; }
13252 fi
13253 cat >conftest.$ac_ext <<_ACEOF
13254 /* confdefs.h. */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13261 #define $ac_func innocuous_$ac_func
13262
13263 /* System header to define __stub macros and hopefully few prototypes,
13264 which can conflict with char $ac_func (); below.
13265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13266 <limits.h> exists even on freestanding compilers. */
13267
13268 #ifdef __STDC__
13269 # include <limits.h>
13270 #else
13271 # include <assert.h>
13272 #endif
13273
13274 #undef $ac_func
13275
13276 /* Override any gcc2 internal prototype to avoid an error. */
13277 #ifdef __cplusplus
13278 extern "C"
13279 {
13280 #endif
13281 /* We use char because int might match the return type of a gcc2
13282 builtin and then its argument prototype would still apply. */
13283 char $ac_func ();
13284 /* The GNU C library defines this for functions which it implements
13285 to always fail with ENOSYS. Some functions are actually named
13286 something starting with __ and the normal name is an alias. */
13287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13288 choke me
13289 #else
13290 char (*f) () = $ac_func;
13291 #endif
13292 #ifdef __cplusplus
13293 }
13294 #endif
13295
13296 int
13297 main ()
13298 {
13299 return f != $ac_func;
13300 ;
13301 return 0;
13302 }
13303 _ACEOF
13304 rm -f conftest.$ac_objext conftest$ac_exeext
13305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13306 (eval $ac_link) 2>conftest.er1
13307 ac_status=$?
13308 grep -v '^ *+' conftest.er1 >conftest.err
13309 rm -f conftest.er1
13310 cat conftest.err >&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -z "$ac_c_werror_flag"
13314 || test ! -s conftest.err'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; } &&
13320 { ac_try='test -s conftest$ac_exeext'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 eval "$as_ac_var=yes"
13327 else
13328 echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13330
13331 eval "$as_ac_var=no"
13332 fi
13333 rm -f conftest.err conftest.$ac_objext \
13334 conftest$ac_exeext conftest.$ac_ext
13335 fi
13336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13338 if test `eval echo '${'$as_ac_var'}'` = yes; then
13339 cat >>confdefs.h <<_ACEOF
13340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13341 _ACEOF
13342
13343 fi
13344 done
13345
13346 else
13347
13348 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
13349 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
13350 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
13351 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 else
13354
13355
13356
13357 ac_ext=cc
13358 ac_cpp='$CXXCPP $CPPFLAGS'
13359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13362
13363 cat >conftest.$ac_ext <<_ACEOF
13364 /* confdefs.h. */
13365 _ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13369 #include <math.h>
13370 #ifdef HAVE_IEEEFP_H
13371 #include <ieeefp.h>
13372 #endif
13373
13374 int
13375 main ()
13376 {
13377 _fabsf(0);
13378 ;
13379 return 0;
13380 }
13381 _ACEOF
13382 rm -f conftest.$ac_objext
13383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13384 (eval $ac_compile) 2>conftest.er1
13385 ac_status=$?
13386 grep -v '^ *+' conftest.er1 >conftest.err
13387 rm -f conftest.er1
13388 cat conftest.err >&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } &&
13391 { ac_try='test -z "$ac_cxx_werror_flag"
13392 || test ! -s conftest.err'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; } &&
13398 { ac_try='test -s conftest.$ac_objext'
13399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13400 (eval $ac_try) 2>&5
13401 ac_status=$?
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 (exit $ac_status); }; }; then
13404 glibcxx_cv_func__fabsf_use=yes
13405 else
13406 echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.$ac_ext >&5
13408
13409 glibcxx_cv_func__fabsf_use=no
13410 fi
13411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13412 ac_ext=c
13413 ac_cpp='$CPP $CPPFLAGS'
13414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13417
13418
13419 fi
13420
13421 fi
13422 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
13423 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
13424
13425 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
13426
13427 for ac_func in _fabsf
13428 do
13429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13430 echo "$as_me:$LINENO: checking for $ac_func" >&5
13431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13432 if eval "test \"\${$as_ac_var+set}\" = set"; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 else
13435 if test x$gcc_no_link = xyes; then
13436 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13437 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13438 { (exit 1); exit 1; }; }
13439 fi
13440 cat >conftest.$ac_ext <<_ACEOF
13441 /* confdefs.h. */
13442 _ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13448 #define $ac_func innocuous_$ac_func
13449
13450 /* System header to define __stub macros and hopefully few prototypes,
13451 which can conflict with char $ac_func (); below.
13452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13453 <limits.h> exists even on freestanding compilers. */
13454
13455 #ifdef __STDC__
13456 # include <limits.h>
13457 #else
13458 # include <assert.h>
13459 #endif
13460
13461 #undef $ac_func
13462
13463 /* Override any gcc2 internal prototype to avoid an error. */
13464 #ifdef __cplusplus
13465 extern "C"
13466 {
13467 #endif
13468 /* We use char because int might match the return type of a gcc2
13469 builtin and then its argument prototype would still apply. */
13470 char $ac_func ();
13471 /* The GNU C library defines this for functions which it implements
13472 to always fail with ENOSYS. Some functions are actually named
13473 something starting with __ and the normal name is an alias. */
13474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13475 choke me
13476 #else
13477 char (*f) () = $ac_func;
13478 #endif
13479 #ifdef __cplusplus
13480 }
13481 #endif
13482
13483 int
13484 main ()
13485 {
13486 return f != $ac_func;
13487 ;
13488 return 0;
13489 }
13490 _ACEOF
13491 rm -f conftest.$ac_objext conftest$ac_exeext
13492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13493 (eval $ac_link) 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try='test -z "$ac_c_werror_flag"
13501 || test ! -s conftest.err'
13502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13503 (eval $ac_try) 2>&5
13504 ac_status=$?
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try='test -s conftest$ac_exeext'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; }; then
13513 eval "$as_ac_var=yes"
13514 else
13515 echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13517
13518 eval "$as_ac_var=no"
13519 fi
13520 rm -f conftest.err conftest.$ac_objext \
13521 conftest$ac_exeext conftest.$ac_ext
13522 fi
13523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13525 if test `eval echo '${'$as_ac_var'}'` = yes; then
13526 cat >>confdefs.h <<_ACEOF
13527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13528 _ACEOF
13529
13530 fi
13531 done
13532
13533 fi
13534 fi
13535
13536
13537
13538 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
13539 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
13540 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
13541 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
13544
13545
13546
13547 ac_ext=cc
13548 ac_cpp='$CXXCPP $CPPFLAGS'
13549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13552
13553 cat >conftest.$ac_ext <<_ACEOF
13554 /* confdefs.h. */
13555 _ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13559 #include <math.h>
13560 int
13561 main ()
13562 {
13563 fmodf(0, 0);
13564 ;
13565 return 0;
13566 }
13567 _ACEOF
13568 rm -f conftest.$ac_objext
13569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570 (eval $ac_compile) 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -z "$ac_cxx_werror_flag"
13578 || test ! -s conftest.err'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; } &&
13584 { ac_try='test -s conftest.$ac_objext'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 glibcxx_cv_func_fmodf_use=yes
13591 else
13592 echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13594
13595 glibcxx_cv_func_fmodf_use=no
13596 fi
13597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13598 ac_ext=c
13599 ac_cpp='$CPP $CPPFLAGS'
13600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13603
13604
13605 fi
13606
13607 fi
13608 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
13609 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
13610
13611 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
13612
13613 for ac_func in fmodf
13614 do
13615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13616 echo "$as_me:$LINENO: checking for $ac_func" >&5
13617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13618 if eval "test \"\${$as_ac_var+set}\" = set"; then
13619 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 else
13621 if test x$gcc_no_link = xyes; then
13622 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13623 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13624 { (exit 1); exit 1; }; }
13625 fi
13626 cat >conftest.$ac_ext <<_ACEOF
13627 /* confdefs.h. */
13628 _ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13634 #define $ac_func innocuous_$ac_func
13635
13636 /* System header to define __stub macros and hopefully few prototypes,
13637 which can conflict with char $ac_func (); below.
13638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13639 <limits.h> exists even on freestanding compilers. */
13640
13641 #ifdef __STDC__
13642 # include <limits.h>
13643 #else
13644 # include <assert.h>
13645 #endif
13646
13647 #undef $ac_func
13648
13649 /* Override any gcc2 internal prototype to avoid an error. */
13650 #ifdef __cplusplus
13651 extern "C"
13652 {
13653 #endif
13654 /* We use char because int might match the return type of a gcc2
13655 builtin and then its argument prototype would still apply. */
13656 char $ac_func ();
13657 /* The GNU C library defines this for functions which it implements
13658 to always fail with ENOSYS. Some functions are actually named
13659 something starting with __ and the normal name is an alias. */
13660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13661 choke me
13662 #else
13663 char (*f) () = $ac_func;
13664 #endif
13665 #ifdef __cplusplus
13666 }
13667 #endif
13668
13669 int
13670 main ()
13671 {
13672 return f != $ac_func;
13673 ;
13674 return 0;
13675 }
13676 _ACEOF
13677 rm -f conftest.$ac_objext conftest$ac_exeext
13678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13679 (eval $ac_link) 2>conftest.er1
13680 ac_status=$?
13681 grep -v '^ *+' conftest.er1 >conftest.err
13682 rm -f conftest.er1
13683 cat conftest.err >&5
13684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } &&
13686 { ac_try='test -z "$ac_c_werror_flag"
13687 || test ! -s conftest.err'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; } &&
13693 { ac_try='test -s conftest$ac_exeext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 eval "$as_ac_var=yes"
13700 else
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13703
13704 eval "$as_ac_var=no"
13705 fi
13706 rm -f conftest.err conftest.$ac_objext \
13707 conftest$ac_exeext conftest.$ac_ext
13708 fi
13709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13711 if test `eval echo '${'$as_ac_var'}'` = yes; then
13712 cat >>confdefs.h <<_ACEOF
13713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13714 _ACEOF
13715
13716 fi
13717 done
13718
13719 else
13720
13721 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
13722 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
13723 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
13724 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13726 else
13727
13728
13729
13730 ac_ext=cc
13731 ac_cpp='$CXXCPP $CPPFLAGS'
13732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13735
13736 cat >conftest.$ac_ext <<_ACEOF
13737 /* confdefs.h. */
13738 _ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 #include <math.h>
13743 int
13744 main ()
13745 {
13746 _fmodf(0, 0);
13747 ;
13748 return 0;
13749 }
13750 _ACEOF
13751 rm -f conftest.$ac_objext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13753 (eval $ac_compile) 2>conftest.er1
13754 ac_status=$?
13755 grep -v '^ *+' conftest.er1 >conftest.err
13756 rm -f conftest.er1
13757 cat conftest.err >&5
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -z "$ac_cxx_werror_flag"
13761 || test ! -s conftest.err'
13762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; } &&
13767 { ac_try='test -s conftest.$ac_objext'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 glibcxx_cv_func__fmodf_use=yes
13774 else
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13777
13778 glibcxx_cv_func__fmodf_use=no
13779 fi
13780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13781 ac_ext=c
13782 ac_cpp='$CPP $CPPFLAGS'
13783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13786
13787
13788 fi
13789
13790 fi
13791 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
13792 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
13793
13794 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
13795
13796 for ac_func in _fmodf
13797 do
13798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13799 echo "$as_me:$LINENO: checking for $ac_func" >&5
13800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13801 if eval "test \"\${$as_ac_var+set}\" = set"; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 else
13804 if test x$gcc_no_link = xyes; then
13805 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13807 { (exit 1); exit 1; }; }
13808 fi
13809 cat >conftest.$ac_ext <<_ACEOF
13810 /* confdefs.h. */
13811 _ACEOF
13812 cat confdefs.h >>conftest.$ac_ext
13813 cat >>conftest.$ac_ext <<_ACEOF
13814 /* end confdefs.h. */
13815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13817 #define $ac_func innocuous_$ac_func
13818
13819 /* System header to define __stub macros and hopefully few prototypes,
13820 which can conflict with char $ac_func (); below.
13821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13822 <limits.h> exists even on freestanding compilers. */
13823
13824 #ifdef __STDC__
13825 # include <limits.h>
13826 #else
13827 # include <assert.h>
13828 #endif
13829
13830 #undef $ac_func
13831
13832 /* Override any gcc2 internal prototype to avoid an error. */
13833 #ifdef __cplusplus
13834 extern "C"
13835 {
13836 #endif
13837 /* We use char because int might match the return type of a gcc2
13838 builtin and then its argument prototype would still apply. */
13839 char $ac_func ();
13840 /* The GNU C library defines this for functions which it implements
13841 to always fail with ENOSYS. Some functions are actually named
13842 something starting with __ and the normal name is an alias. */
13843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13844 choke me
13845 #else
13846 char (*f) () = $ac_func;
13847 #endif
13848 #ifdef __cplusplus
13849 }
13850 #endif
13851
13852 int
13853 main ()
13854 {
13855 return f != $ac_func;
13856 ;
13857 return 0;
13858 }
13859 _ACEOF
13860 rm -f conftest.$ac_objext conftest$ac_exeext
13861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13862 (eval $ac_link) 2>conftest.er1
13863 ac_status=$?
13864 grep -v '^ *+' conftest.er1 >conftest.err
13865 rm -f conftest.er1
13866 cat conftest.err >&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } &&
13869 { ac_try='test -z "$ac_c_werror_flag"
13870 || test ! -s conftest.err'
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13873 ac_status=$?
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; } &&
13876 { ac_try='test -s conftest$ac_exeext'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 eval "$as_ac_var=yes"
13883 else
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13886
13887 eval "$as_ac_var=no"
13888 fi
13889 rm -f conftest.err conftest.$ac_objext \
13890 conftest$ac_exeext conftest.$ac_ext
13891 fi
13892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13894 if test `eval echo '${'$as_ac_var'}'` = yes; then
13895 cat >>confdefs.h <<_ACEOF
13896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13897 _ACEOF
13898
13899 fi
13900 done
13901
13902 fi
13903 fi
13904
13905
13906
13907 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
13908 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
13909 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
13910 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
13911 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 else
13913
13914
13915
13916 ac_ext=cc
13917 ac_cpp='$CXXCPP $CPPFLAGS'
13918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13921
13922 cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h. */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h. */
13928 #include <math.h>
13929 int
13930 main ()
13931 {
13932 frexpf(0, 0);
13933 ;
13934 return 0;
13935 }
13936 _ACEOF
13937 rm -f conftest.$ac_objext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939 (eval $ac_compile) 2>conftest.er1
13940 ac_status=$?
13941 grep -v '^ *+' conftest.er1 >conftest.err
13942 rm -f conftest.er1
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -z "$ac_cxx_werror_flag"
13947 || test ! -s conftest.err'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; } &&
13953 { ac_try='test -s conftest.$ac_objext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 glibcxx_cv_func_frexpf_use=yes
13960 else
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13963
13964 glibcxx_cv_func_frexpf_use=no
13965 fi
13966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13967 ac_ext=c
13968 ac_cpp='$CPP $CPPFLAGS'
13969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13972
13973
13974 fi
13975
13976 fi
13977 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
13978 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
13979
13980 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
13981
13982 for ac_func in frexpf
13983 do
13984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13985 echo "$as_me:$LINENO: checking for $ac_func" >&5
13986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13987 if eval "test \"\${$as_ac_var+set}\" = set"; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 else
13990 if test x$gcc_no_link = xyes; then
13991 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13992 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13993 { (exit 1); exit 1; }; }
13994 fi
13995 cat >conftest.$ac_ext <<_ACEOF
13996 /* confdefs.h. */
13997 _ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14003 #define $ac_func innocuous_$ac_func
14004
14005 /* System header to define __stub macros and hopefully few prototypes,
14006 which can conflict with char $ac_func (); below.
14007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14008 <limits.h> exists even on freestanding compilers. */
14009
14010 #ifdef __STDC__
14011 # include <limits.h>
14012 #else
14013 # include <assert.h>
14014 #endif
14015
14016 #undef $ac_func
14017
14018 /* Override any gcc2 internal prototype to avoid an error. */
14019 #ifdef __cplusplus
14020 extern "C"
14021 {
14022 #endif
14023 /* We use char because int might match the return type of a gcc2
14024 builtin and then its argument prototype would still apply. */
14025 char $ac_func ();
14026 /* The GNU C library defines this for functions which it implements
14027 to always fail with ENOSYS. Some functions are actually named
14028 something starting with __ and the normal name is an alias. */
14029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14030 choke me
14031 #else
14032 char (*f) () = $ac_func;
14033 #endif
14034 #ifdef __cplusplus
14035 }
14036 #endif
14037
14038 int
14039 main ()
14040 {
14041 return f != $ac_func;
14042 ;
14043 return 0;
14044 }
14045 _ACEOF
14046 rm -f conftest.$ac_objext conftest$ac_exeext
14047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14048 (eval $ac_link) 2>conftest.er1
14049 ac_status=$?
14050 grep -v '^ *+' conftest.er1 >conftest.err
14051 rm -f conftest.er1
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } &&
14055 { ac_try='test -z "$ac_c_werror_flag"
14056 || test ! -s conftest.err'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14059 ac_status=$?
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; } &&
14062 { ac_try='test -s conftest$ac_exeext'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14065 ac_status=$?
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
14068 eval "$as_ac_var=yes"
14069 else
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14072
14073 eval "$as_ac_var=no"
14074 fi
14075 rm -f conftest.err conftest.$ac_objext \
14076 conftest$ac_exeext conftest.$ac_ext
14077 fi
14078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14080 if test `eval echo '${'$as_ac_var'}'` = yes; then
14081 cat >>confdefs.h <<_ACEOF
14082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14083 _ACEOF
14084
14085 fi
14086 done
14087
14088 else
14089
14090 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
14091 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
14092 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
14093 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 else
14096
14097
14098
14099 ac_ext=cc
14100 ac_cpp='$CXXCPP $CPPFLAGS'
14101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14104
14105 cat >conftest.$ac_ext <<_ACEOF
14106 /* confdefs.h. */
14107 _ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14111 #include <math.h>
14112 int
14113 main ()
14114 {
14115 _frexpf(0, 0);
14116 ;
14117 return 0;
14118 }
14119 _ACEOF
14120 rm -f conftest.$ac_objext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122 (eval $ac_compile) 2>conftest.er1
14123 ac_status=$?
14124 grep -v '^ *+' conftest.er1 >conftest.err
14125 rm -f conftest.er1
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } &&
14129 { ac_try='test -z "$ac_cxx_werror_flag"
14130 || test ! -s conftest.err'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } &&
14136 { ac_try='test -s conftest.$ac_objext'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 glibcxx_cv_func__frexpf_use=yes
14143 else
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14146
14147 glibcxx_cv_func__frexpf_use=no
14148 fi
14149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14150 ac_ext=c
14151 ac_cpp='$CPP $CPPFLAGS'
14152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14155
14156
14157 fi
14158
14159 fi
14160 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
14161 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
14162
14163 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
14164
14165 for ac_func in _frexpf
14166 do
14167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14168 echo "$as_me:$LINENO: checking for $ac_func" >&5
14169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14170 if eval "test \"\${$as_ac_var+set}\" = set"; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 else
14173 if test x$gcc_no_link = xyes; then
14174 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14175 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14176 { (exit 1); exit 1; }; }
14177 fi
14178 cat >conftest.$ac_ext <<_ACEOF
14179 /* confdefs.h. */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14186 #define $ac_func innocuous_$ac_func
14187
14188 /* System header to define __stub macros and hopefully few prototypes,
14189 which can conflict with char $ac_func (); below.
14190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14191 <limits.h> exists even on freestanding compilers. */
14192
14193 #ifdef __STDC__
14194 # include <limits.h>
14195 #else
14196 # include <assert.h>
14197 #endif
14198
14199 #undef $ac_func
14200
14201 /* Override any gcc2 internal prototype to avoid an error. */
14202 #ifdef __cplusplus
14203 extern "C"
14204 {
14205 #endif
14206 /* We use char because int might match the return type of a gcc2
14207 builtin and then its argument prototype would still apply. */
14208 char $ac_func ();
14209 /* The GNU C library defines this for functions which it implements
14210 to always fail with ENOSYS. Some functions are actually named
14211 something starting with __ and the normal name is an alias. */
14212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14213 choke me
14214 #else
14215 char (*f) () = $ac_func;
14216 #endif
14217 #ifdef __cplusplus
14218 }
14219 #endif
14220
14221 int
14222 main ()
14223 {
14224 return f != $ac_func;
14225 ;
14226 return 0;
14227 }
14228 _ACEOF
14229 rm -f conftest.$ac_objext conftest$ac_exeext
14230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14231 (eval $ac_link) 2>conftest.er1
14232 ac_status=$?
14233 grep -v '^ *+' conftest.er1 >conftest.err
14234 rm -f conftest.er1
14235 cat conftest.err >&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try='test -z "$ac_c_werror_flag"
14239 || test ! -s conftest.err'
14240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14241 (eval $ac_try) 2>&5
14242 ac_status=$?
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest$ac_exeext'
14246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247 (eval $ac_try) 2>&5
14248 ac_status=$?
14249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250 (exit $ac_status); }; }; then
14251 eval "$as_ac_var=yes"
14252 else
14253 echo "$as_me: failed program was:" >&5
14254 sed 's/^/| /' conftest.$ac_ext >&5
14255
14256 eval "$as_ac_var=no"
14257 fi
14258 rm -f conftest.err conftest.$ac_objext \
14259 conftest$ac_exeext conftest.$ac_ext
14260 fi
14261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14263 if test `eval echo '${'$as_ac_var'}'` = yes; then
14264 cat >>confdefs.h <<_ACEOF
14265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14266 _ACEOF
14267
14268 fi
14269 done
14270
14271 fi
14272 fi
14273
14274
14275
14276 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
14277 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
14278 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
14279 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282
14283
14284
14285 ac_ext=cc
14286 ac_cpp='$CXXCPP $CPPFLAGS'
14287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14290
14291 cat >conftest.$ac_ext <<_ACEOF
14292 /* confdefs.h. */
14293 _ACEOF
14294 cat confdefs.h >>conftest.$ac_ext
14295 cat >>conftest.$ac_ext <<_ACEOF
14296 /* end confdefs.h. */
14297 #include <math.h>
14298 int
14299 main ()
14300 {
14301 hypotf(0, 0);
14302 ;
14303 return 0;
14304 }
14305 _ACEOF
14306 rm -f conftest.$ac_objext
14307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14308 (eval $ac_compile) 2>conftest.er1
14309 ac_status=$?
14310 grep -v '^ *+' conftest.er1 >conftest.err
14311 rm -f conftest.er1
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } &&
14315 { ac_try='test -z "$ac_cxx_werror_flag"
14316 || test ! -s conftest.err'
14317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318 (eval $ac_try) 2>&5
14319 ac_status=$?
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); }; } &&
14322 { ac_try='test -s conftest.$ac_objext'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14325 ac_status=$?
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; }; then
14328 glibcxx_cv_func_hypotf_use=yes
14329 else
14330 echo "$as_me: failed program was:" >&5
14331 sed 's/^/| /' conftest.$ac_ext >&5
14332
14333 glibcxx_cv_func_hypotf_use=no
14334 fi
14335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14336 ac_ext=c
14337 ac_cpp='$CPP $CPPFLAGS'
14338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14341
14342
14343 fi
14344
14345 fi
14346 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
14347 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
14348
14349 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
14350
14351 for ac_func in hypotf
14352 do
14353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14354 echo "$as_me:$LINENO: checking for $ac_func" >&5
14355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14356 if eval "test \"\${$as_ac_var+set}\" = set"; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359 if test x$gcc_no_link = xyes; then
14360 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14362 { (exit 1); exit 1; }; }
14363 fi
14364 cat >conftest.$ac_ext <<_ACEOF
14365 /* confdefs.h. */
14366 _ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14372 #define $ac_func innocuous_$ac_func
14373
14374 /* System header to define __stub macros and hopefully few prototypes,
14375 which can conflict with char $ac_func (); below.
14376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14377 <limits.h> exists even on freestanding compilers. */
14378
14379 #ifdef __STDC__
14380 # include <limits.h>
14381 #else
14382 # include <assert.h>
14383 #endif
14384
14385 #undef $ac_func
14386
14387 /* Override any gcc2 internal prototype to avoid an error. */
14388 #ifdef __cplusplus
14389 extern "C"
14390 {
14391 #endif
14392 /* We use char because int might match the return type of a gcc2
14393 builtin and then its argument prototype would still apply. */
14394 char $ac_func ();
14395 /* The GNU C library defines this for functions which it implements
14396 to always fail with ENOSYS. Some functions are actually named
14397 something starting with __ and the normal name is an alias. */
14398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14399 choke me
14400 #else
14401 char (*f) () = $ac_func;
14402 #endif
14403 #ifdef __cplusplus
14404 }
14405 #endif
14406
14407 int
14408 main ()
14409 {
14410 return f != $ac_func;
14411 ;
14412 return 0;
14413 }
14414 _ACEOF
14415 rm -f conftest.$ac_objext conftest$ac_exeext
14416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14417 (eval $ac_link) 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try='test -z "$ac_c_werror_flag"
14425 || test ! -s conftest.err'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; } &&
14431 { ac_try='test -s conftest$ac_exeext'
14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14433 (eval $ac_try) 2>&5
14434 ac_status=$?
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); }; }; then
14437 eval "$as_ac_var=yes"
14438 else
14439 echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14441
14442 eval "$as_ac_var=no"
14443 fi
14444 rm -f conftest.err conftest.$ac_objext \
14445 conftest$ac_exeext conftest.$ac_ext
14446 fi
14447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14449 if test `eval echo '${'$as_ac_var'}'` = yes; then
14450 cat >>confdefs.h <<_ACEOF
14451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14452 _ACEOF
14453
14454 fi
14455 done
14456
14457 else
14458
14459 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
14460 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
14461 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
14462 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 else
14465
14466
14467
14468 ac_ext=cc
14469 ac_cpp='$CXXCPP $CPPFLAGS'
14470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14473
14474 cat >conftest.$ac_ext <<_ACEOF
14475 /* confdefs.h. */
14476 _ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h. */
14480 #include <math.h>
14481 int
14482 main ()
14483 {
14484 _hypotf(0, 0);
14485 ;
14486 return 0;
14487 }
14488 _ACEOF
14489 rm -f conftest.$ac_objext
14490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14491 (eval $ac_compile) 2>conftest.er1
14492 ac_status=$?
14493 grep -v '^ *+' conftest.er1 >conftest.err
14494 rm -f conftest.er1
14495 cat conftest.err >&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } &&
14498 { ac_try='test -z "$ac_cxx_werror_flag"
14499 || test ! -s conftest.err'
14500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501 (eval $ac_try) 2>&5
14502 ac_status=$?
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; } &&
14505 { ac_try='test -s conftest.$ac_objext'
14506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507 (eval $ac_try) 2>&5
14508 ac_status=$?
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; }; then
14511 glibcxx_cv_func__hypotf_use=yes
14512 else
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14515
14516 glibcxx_cv_func__hypotf_use=no
14517 fi
14518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14519 ac_ext=c
14520 ac_cpp='$CPP $CPPFLAGS'
14521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14524
14525
14526 fi
14527
14528 fi
14529 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
14530 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
14531
14532 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
14533
14534 for ac_func in _hypotf
14535 do
14536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14537 echo "$as_me:$LINENO: checking for $ac_func" >&5
14538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14539 if eval "test \"\${$as_ac_var+set}\" = set"; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542 if test x$gcc_no_link = xyes; then
14543 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14544 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14545 { (exit 1); exit 1; }; }
14546 fi
14547 cat >conftest.$ac_ext <<_ACEOF
14548 /* confdefs.h. */
14549 _ACEOF
14550 cat confdefs.h >>conftest.$ac_ext
14551 cat >>conftest.$ac_ext <<_ACEOF
14552 /* end confdefs.h. */
14553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14555 #define $ac_func innocuous_$ac_func
14556
14557 /* System header to define __stub macros and hopefully few prototypes,
14558 which can conflict with char $ac_func (); below.
14559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14560 <limits.h> exists even on freestanding compilers. */
14561
14562 #ifdef __STDC__
14563 # include <limits.h>
14564 #else
14565 # include <assert.h>
14566 #endif
14567
14568 #undef $ac_func
14569
14570 /* Override any gcc2 internal prototype to avoid an error. */
14571 #ifdef __cplusplus
14572 extern "C"
14573 {
14574 #endif
14575 /* We use char because int might match the return type of a gcc2
14576 builtin and then its argument prototype would still apply. */
14577 char $ac_func ();
14578 /* The GNU C library defines this for functions which it implements
14579 to always fail with ENOSYS. Some functions are actually named
14580 something starting with __ and the normal name is an alias. */
14581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14582 choke me
14583 #else
14584 char (*f) () = $ac_func;
14585 #endif
14586 #ifdef __cplusplus
14587 }
14588 #endif
14589
14590 int
14591 main ()
14592 {
14593 return f != $ac_func;
14594 ;
14595 return 0;
14596 }
14597 _ACEOF
14598 rm -f conftest.$ac_objext conftest$ac_exeext
14599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14600 (eval $ac_link) 2>conftest.er1
14601 ac_status=$?
14602 grep -v '^ *+' conftest.er1 >conftest.err
14603 rm -f conftest.er1
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -z "$ac_c_werror_flag"
14608 || test ! -s conftest.err'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14611 ac_status=$?
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; } &&
14614 { ac_try='test -s conftest$ac_exeext'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14617 ac_status=$?
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 eval "$as_ac_var=yes"
14621 else
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14624
14625 eval "$as_ac_var=no"
14626 fi
14627 rm -f conftest.err conftest.$ac_objext \
14628 conftest$ac_exeext conftest.$ac_ext
14629 fi
14630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14631 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14632 if test `eval echo '${'$as_ac_var'}'` = yes; then
14633 cat >>confdefs.h <<_ACEOF
14634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14635 _ACEOF
14636
14637 fi
14638 done
14639
14640 fi
14641 fi
14642
14643
14644
14645 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
14646 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
14647 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
14648 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14650 else
14651
14652
14653
14654 ac_ext=cc
14655 ac_cpp='$CXXCPP $CPPFLAGS'
14656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14659
14660 cat >conftest.$ac_ext <<_ACEOF
14661 /* confdefs.h. */
14662 _ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h. */
14666 #include <math.h>
14667 int
14668 main ()
14669 {
14670 ldexpf(0, 0);
14671 ;
14672 return 0;
14673 }
14674 _ACEOF
14675 rm -f conftest.$ac_objext
14676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14677 (eval $ac_compile) 2>conftest.er1
14678 ac_status=$?
14679 grep -v '^ *+' conftest.er1 >conftest.err
14680 rm -f conftest.er1
14681 cat conftest.err >&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } &&
14684 { ac_try='test -z "$ac_cxx_werror_flag"
14685 || test ! -s conftest.err'
14686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687 (eval $ac_try) 2>&5
14688 ac_status=$?
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; } &&
14691 { ac_try='test -s conftest.$ac_objext'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14694 ac_status=$?
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; }; then
14697 glibcxx_cv_func_ldexpf_use=yes
14698 else
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14701
14702 glibcxx_cv_func_ldexpf_use=no
14703 fi
14704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14705 ac_ext=c
14706 ac_cpp='$CPP $CPPFLAGS'
14707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14710
14711
14712 fi
14713
14714 fi
14715 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
14716 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
14717
14718 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
14719
14720 for ac_func in ldexpf
14721 do
14722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14723 echo "$as_me:$LINENO: checking for $ac_func" >&5
14724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14725 if eval "test \"\${$as_ac_var+set}\" = set"; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 else
14728 if test x$gcc_no_link = xyes; then
14729 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14730 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14731 { (exit 1); exit 1; }; }
14732 fi
14733 cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h. */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14741 #define $ac_func innocuous_$ac_func
14742
14743 /* System header to define __stub macros and hopefully few prototypes,
14744 which can conflict with char $ac_func (); below.
14745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14746 <limits.h> exists even on freestanding compilers. */
14747
14748 #ifdef __STDC__
14749 # include <limits.h>
14750 #else
14751 # include <assert.h>
14752 #endif
14753
14754 #undef $ac_func
14755
14756 /* Override any gcc2 internal prototype to avoid an error. */
14757 #ifdef __cplusplus
14758 extern "C"
14759 {
14760 #endif
14761 /* We use char because int might match the return type of a gcc2
14762 builtin and then its argument prototype would still apply. */
14763 char $ac_func ();
14764 /* The GNU C library defines this for functions which it implements
14765 to always fail with ENOSYS. Some functions are actually named
14766 something starting with __ and the normal name is an alias. */
14767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14768 choke me
14769 #else
14770 char (*f) () = $ac_func;
14771 #endif
14772 #ifdef __cplusplus
14773 }
14774 #endif
14775
14776 int
14777 main ()
14778 {
14779 return f != $ac_func;
14780 ;
14781 return 0;
14782 }
14783 _ACEOF
14784 rm -f conftest.$ac_objext conftest$ac_exeext
14785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14786 (eval $ac_link) 2>conftest.er1
14787 ac_status=$?
14788 grep -v '^ *+' conftest.er1 >conftest.err
14789 rm -f conftest.er1
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } &&
14793 { ac_try='test -z "$ac_c_werror_flag"
14794 || test ! -s conftest.err'
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14797 ac_status=$?
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; } &&
14800 { ac_try='test -s conftest$ac_exeext'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14806 eval "$as_ac_var=yes"
14807 else
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.$ac_ext >&5
14810
14811 eval "$as_ac_var=no"
14812 fi
14813 rm -f conftest.err conftest.$ac_objext \
14814 conftest$ac_exeext conftest.$ac_ext
14815 fi
14816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14818 if test `eval echo '${'$as_ac_var'}'` = yes; then
14819 cat >>confdefs.h <<_ACEOF
14820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14821 _ACEOF
14822
14823 fi
14824 done
14825
14826 else
14827
14828 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
14829 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
14830 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
14831 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 else
14834
14835
14836
14837 ac_ext=cc
14838 ac_cpp='$CXXCPP $CPPFLAGS'
14839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14842
14843 cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h. */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 #include <math.h>
14850 int
14851 main ()
14852 {
14853 _ldexpf(0, 0);
14854 ;
14855 return 0;
14856 }
14857 _ACEOF
14858 rm -f conftest.$ac_objext
14859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14860 (eval $ac_compile) 2>conftest.er1
14861 ac_status=$?
14862 grep -v '^ *+' conftest.er1 >conftest.err
14863 rm -f conftest.er1
14864 cat conftest.err >&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
14867 { ac_try='test -z "$ac_cxx_werror_flag"
14868 || test ! -s conftest.err'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; } &&
14874 { ac_try='test -s conftest.$ac_objext'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
14880 glibcxx_cv_func__ldexpf_use=yes
14881 else
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.$ac_ext >&5
14884
14885 glibcxx_cv_func__ldexpf_use=no
14886 fi
14887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14888 ac_ext=c
14889 ac_cpp='$CPP $CPPFLAGS'
14890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14893
14894
14895 fi
14896
14897 fi
14898 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
14899 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
14900
14901 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
14902
14903 for ac_func in _ldexpf
14904 do
14905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14906 echo "$as_me:$LINENO: checking for $ac_func" >&5
14907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14908 if eval "test \"\${$as_ac_var+set}\" = set"; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14910 else
14911 if test x$gcc_no_link = xyes; then
14912 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14913 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14914 { (exit 1); exit 1; }; }
14915 fi
14916 cat >conftest.$ac_ext <<_ACEOF
14917 /* confdefs.h. */
14918 _ACEOF
14919 cat confdefs.h >>conftest.$ac_ext
14920 cat >>conftest.$ac_ext <<_ACEOF
14921 /* end confdefs.h. */
14922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14924 #define $ac_func innocuous_$ac_func
14925
14926 /* System header to define __stub macros and hopefully few prototypes,
14927 which can conflict with char $ac_func (); below.
14928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14929 <limits.h> exists even on freestanding compilers. */
14930
14931 #ifdef __STDC__
14932 # include <limits.h>
14933 #else
14934 # include <assert.h>
14935 #endif
14936
14937 #undef $ac_func
14938
14939 /* Override any gcc2 internal prototype to avoid an error. */
14940 #ifdef __cplusplus
14941 extern "C"
14942 {
14943 #endif
14944 /* We use char because int might match the return type of a gcc2
14945 builtin and then its argument prototype would still apply. */
14946 char $ac_func ();
14947 /* The GNU C library defines this for functions which it implements
14948 to always fail with ENOSYS. Some functions are actually named
14949 something starting with __ and the normal name is an alias. */
14950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14951 choke me
14952 #else
14953 char (*f) () = $ac_func;
14954 #endif
14955 #ifdef __cplusplus
14956 }
14957 #endif
14958
14959 int
14960 main ()
14961 {
14962 return f != $ac_func;
14963 ;
14964 return 0;
14965 }
14966 _ACEOF
14967 rm -f conftest.$ac_objext conftest$ac_exeext
14968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14969 (eval $ac_link) 2>conftest.er1
14970 ac_status=$?
14971 grep -v '^ *+' conftest.er1 >conftest.err
14972 rm -f conftest.er1
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } &&
14976 { ac_try='test -z "$ac_c_werror_flag"
14977 || test ! -s conftest.err'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; } &&
14983 { ac_try='test -s conftest$ac_exeext'
14984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985 (eval $ac_try) 2>&5
14986 ac_status=$?
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; }; then
14989 eval "$as_ac_var=yes"
14990 else
14991 echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14993
14994 eval "$as_ac_var=no"
14995 fi
14996 rm -f conftest.err conftest.$ac_objext \
14997 conftest$ac_exeext conftest.$ac_ext
14998 fi
14999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15001 if test `eval echo '${'$as_ac_var'}'` = yes; then
15002 cat >>confdefs.h <<_ACEOF
15003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15004 _ACEOF
15005
15006 fi
15007 done
15008
15009 fi
15010 fi
15011
15012
15013
15014 echo "$as_me:$LINENO: checking for logf declaration" >&5
15015 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
15016 if test x${glibcxx_cv_func_logf_use+set} != xset; then
15017 if test "${glibcxx_cv_func_logf_use+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020
15021
15022
15023 ac_ext=cc
15024 ac_cpp='$CXXCPP $CPPFLAGS'
15025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15028
15029 cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h. */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 #include <math.h>
15036 #ifdef HAVE_IEEEFP_H
15037 #include <ieeefp.h>
15038 #endif
15039
15040 int
15041 main ()
15042 {
15043 logf(0);
15044 ;
15045 return 0;
15046 }
15047 _ACEOF
15048 rm -f conftest.$ac_objext
15049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15050 (eval $ac_compile) 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -z "$ac_cxx_werror_flag"
15058 || test ! -s conftest.err'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest.$ac_objext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 glibcxx_cv_func_logf_use=yes
15071 else
15072 echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15074
15075 glibcxx_cv_func_logf_use=no
15076 fi
15077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15078 ac_ext=c
15079 ac_cpp='$CPP $CPPFLAGS'
15080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15083
15084
15085 fi
15086
15087 fi
15088 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
15089 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
15090
15091 if test x$glibcxx_cv_func_logf_use = x"yes"; then
15092
15093 for ac_func in logf
15094 do
15095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15096 echo "$as_me:$LINENO: checking for $ac_func" >&5
15097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15098 if eval "test \"\${$as_ac_var+set}\" = set"; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15100 else
15101 if test x$gcc_no_link = xyes; then
15102 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15103 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15104 { (exit 1); exit 1; }; }
15105 fi
15106 cat >conftest.$ac_ext <<_ACEOF
15107 /* confdefs.h. */
15108 _ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15114 #define $ac_func innocuous_$ac_func
15115
15116 /* System header to define __stub macros and hopefully few prototypes,
15117 which can conflict with char $ac_func (); below.
15118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15119 <limits.h> exists even on freestanding compilers. */
15120
15121 #ifdef __STDC__
15122 # include <limits.h>
15123 #else
15124 # include <assert.h>
15125 #endif
15126
15127 #undef $ac_func
15128
15129 /* Override any gcc2 internal prototype to avoid an error. */
15130 #ifdef __cplusplus
15131 extern "C"
15132 {
15133 #endif
15134 /* We use char because int might match the return type of a gcc2
15135 builtin and then its argument prototype would still apply. */
15136 char $ac_func ();
15137 /* The GNU C library defines this for functions which it implements
15138 to always fail with ENOSYS. Some functions are actually named
15139 something starting with __ and the normal name is an alias. */
15140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15141 choke me
15142 #else
15143 char (*f) () = $ac_func;
15144 #endif
15145 #ifdef __cplusplus
15146 }
15147 #endif
15148
15149 int
15150 main ()
15151 {
15152 return f != $ac_func;
15153 ;
15154 return 0;
15155 }
15156 _ACEOF
15157 rm -f conftest.$ac_objext conftest$ac_exeext
15158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15159 (eval $ac_link) 2>conftest.er1
15160 ac_status=$?
15161 grep -v '^ *+' conftest.er1 >conftest.err
15162 rm -f conftest.er1
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } &&
15166 { ac_try='test -z "$ac_c_werror_flag"
15167 || test ! -s conftest.err'
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; } &&
15173 { ac_try='test -s conftest$ac_exeext'
15174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175 (eval $ac_try) 2>&5
15176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15179 eval "$as_ac_var=yes"
15180 else
15181 echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15183
15184 eval "$as_ac_var=no"
15185 fi
15186 rm -f conftest.err conftest.$ac_objext \
15187 conftest$ac_exeext conftest.$ac_ext
15188 fi
15189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15191 if test `eval echo '${'$as_ac_var'}'` = yes; then
15192 cat >>confdefs.h <<_ACEOF
15193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15194 _ACEOF
15195
15196 fi
15197 done
15198
15199 else
15200
15201 echo "$as_me:$LINENO: checking for _logf declaration" >&5
15202 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
15203 if test x${glibcxx_cv_func__logf_use+set} != xset; then
15204 if test "${glibcxx_cv_func__logf_use+set}" = set; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15206 else
15207
15208
15209
15210 ac_ext=cc
15211 ac_cpp='$CXXCPP $CPPFLAGS'
15212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15215
15216 cat >conftest.$ac_ext <<_ACEOF
15217 /* confdefs.h. */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h. */
15222 #include <math.h>
15223 #ifdef HAVE_IEEEFP_H
15224 #include <ieeefp.h>
15225 #endif
15226
15227 int
15228 main ()
15229 {
15230 _logf(0);
15231 ;
15232 return 0;
15233 }
15234 _ACEOF
15235 rm -f conftest.$ac_objext
15236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15237 (eval $ac_compile) 2>conftest.er1
15238 ac_status=$?
15239 grep -v '^ *+' conftest.er1 >conftest.err
15240 rm -f conftest.er1
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_cxx_werror_flag"
15245 || test ! -s conftest.err'
15246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15247 (eval $ac_try) 2>&5
15248 ac_status=$?
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; } &&
15251 { ac_try='test -s conftest.$ac_objext'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15254 ac_status=$?
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }; then
15257 glibcxx_cv_func__logf_use=yes
15258 else
15259 echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15261
15262 glibcxx_cv_func__logf_use=no
15263 fi
15264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15265 ac_ext=c
15266 ac_cpp='$CPP $CPPFLAGS'
15267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15270
15271
15272 fi
15273
15274 fi
15275 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
15276 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
15277
15278 if test x$glibcxx_cv_func__logf_use = x"yes"; then
15279
15280 for ac_func in _logf
15281 do
15282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15283 echo "$as_me:$LINENO: checking for $ac_func" >&5
15284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15285 if eval "test \"\${$as_ac_var+set}\" = set"; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288 if test x$gcc_no_link = xyes; then
15289 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15290 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15291 { (exit 1); exit 1; }; }
15292 fi
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h. */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15301 #define $ac_func innocuous_$ac_func
15302
15303 /* System header to define __stub macros and hopefully few prototypes,
15304 which can conflict with char $ac_func (); below.
15305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15306 <limits.h> exists even on freestanding compilers. */
15307
15308 #ifdef __STDC__
15309 # include <limits.h>
15310 #else
15311 # include <assert.h>
15312 #endif
15313
15314 #undef $ac_func
15315
15316 /* Override any gcc2 internal prototype to avoid an error. */
15317 #ifdef __cplusplus
15318 extern "C"
15319 {
15320 #endif
15321 /* We use char because int might match the return type of a gcc2
15322 builtin and then its argument prototype would still apply. */
15323 char $ac_func ();
15324 /* The GNU C library defines this for functions which it implements
15325 to always fail with ENOSYS. Some functions are actually named
15326 something starting with __ and the normal name is an alias. */
15327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15328 choke me
15329 #else
15330 char (*f) () = $ac_func;
15331 #endif
15332 #ifdef __cplusplus
15333 }
15334 #endif
15335
15336 int
15337 main ()
15338 {
15339 return f != $ac_func;
15340 ;
15341 return 0;
15342 }
15343 _ACEOF
15344 rm -f conftest.$ac_objext conftest$ac_exeext
15345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15346 (eval $ac_link) 2>conftest.er1
15347 ac_status=$?
15348 grep -v '^ *+' conftest.er1 >conftest.err
15349 rm -f conftest.er1
15350 cat conftest.err >&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } &&
15353 { ac_try='test -z "$ac_c_werror_flag"
15354 || test ! -s conftest.err'
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; } &&
15360 { ac_try='test -s conftest$ac_exeext'
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
15366 eval "$as_ac_var=yes"
15367 else
15368 echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15370
15371 eval "$as_ac_var=no"
15372 fi
15373 rm -f conftest.err conftest.$ac_objext \
15374 conftest$ac_exeext conftest.$ac_ext
15375 fi
15376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15378 if test `eval echo '${'$as_ac_var'}'` = yes; then
15379 cat >>confdefs.h <<_ACEOF
15380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15381 _ACEOF
15382
15383 fi
15384 done
15385
15386 fi
15387 fi
15388
15389
15390
15391 echo "$as_me:$LINENO: checking for log10f declaration" >&5
15392 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
15393 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
15394 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
15395 echo $ECHO_N "(cached) $ECHO_C" >&6
15396 else
15397
15398
15399
15400 ac_ext=cc
15401 ac_cpp='$CXXCPP $CPPFLAGS'
15402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15405
15406 cat >conftest.$ac_ext <<_ACEOF
15407 /* confdefs.h. */
15408 _ACEOF
15409 cat confdefs.h >>conftest.$ac_ext
15410 cat >>conftest.$ac_ext <<_ACEOF
15411 /* end confdefs.h. */
15412 #include <math.h>
15413 #ifdef HAVE_IEEEFP_H
15414 #include <ieeefp.h>
15415 #endif
15416
15417 int
15418 main ()
15419 {
15420 log10f(0);
15421 ;
15422 return 0;
15423 }
15424 _ACEOF
15425 rm -f conftest.$ac_objext
15426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15427 (eval $ac_compile) 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
15434 { ac_try='test -z "$ac_cxx_werror_flag"
15435 || test ! -s conftest.err'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; } &&
15441 { ac_try='test -s conftest.$ac_objext'
15442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443 (eval $ac_try) 2>&5
15444 ac_status=$?
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 glibcxx_cv_func_log10f_use=yes
15448 else
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 glibcxx_cv_func_log10f_use=no
15453 fi
15454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15455 ac_ext=c
15456 ac_cpp='$CPP $CPPFLAGS'
15457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15460
15461
15462 fi
15463
15464 fi
15465 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
15466 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
15467
15468 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
15469
15470 for ac_func in log10f
15471 do
15472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15473 echo "$as_me:$LINENO: checking for $ac_func" >&5
15474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15475 if eval "test \"\${$as_ac_var+set}\" = set"; then
15476 echo $ECHO_N "(cached) $ECHO_C" >&6
15477 else
15478 if test x$gcc_no_link = xyes; then
15479 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15480 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15481 { (exit 1); exit 1; }; }
15482 fi
15483 cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h. */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15491 #define $ac_func innocuous_$ac_func
15492
15493 /* System header to define __stub macros and hopefully few prototypes,
15494 which can conflict with char $ac_func (); below.
15495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15496 <limits.h> exists even on freestanding compilers. */
15497
15498 #ifdef __STDC__
15499 # include <limits.h>
15500 #else
15501 # include <assert.h>
15502 #endif
15503
15504 #undef $ac_func
15505
15506 /* Override any gcc2 internal prototype to avoid an error. */
15507 #ifdef __cplusplus
15508 extern "C"
15509 {
15510 #endif
15511 /* We use char because int might match the return type of a gcc2
15512 builtin and then its argument prototype would still apply. */
15513 char $ac_func ();
15514 /* The GNU C library defines this for functions which it implements
15515 to always fail with ENOSYS. Some functions are actually named
15516 something starting with __ and the normal name is an alias. */
15517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15518 choke me
15519 #else
15520 char (*f) () = $ac_func;
15521 #endif
15522 #ifdef __cplusplus
15523 }
15524 #endif
15525
15526 int
15527 main ()
15528 {
15529 return f != $ac_func;
15530 ;
15531 return 0;
15532 }
15533 _ACEOF
15534 rm -f conftest.$ac_objext conftest$ac_exeext
15535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15536 (eval $ac_link) 2>conftest.er1
15537 ac_status=$?
15538 grep -v '^ *+' conftest.er1 >conftest.err
15539 rm -f conftest.er1
15540 cat conftest.err >&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } &&
15543 { ac_try='test -z "$ac_c_werror_flag"
15544 || test ! -s conftest.err'
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; } &&
15550 { ac_try='test -s conftest$ac_exeext'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; }; then
15556 eval "$as_ac_var=yes"
15557 else
15558 echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15560
15561 eval "$as_ac_var=no"
15562 fi
15563 rm -f conftest.err conftest.$ac_objext \
15564 conftest$ac_exeext conftest.$ac_ext
15565 fi
15566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15568 if test `eval echo '${'$as_ac_var'}'` = yes; then
15569 cat >>confdefs.h <<_ACEOF
15570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15571 _ACEOF
15572
15573 fi
15574 done
15575
15576 else
15577
15578 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
15579 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
15580 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
15581 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15583 else
15584
15585
15586
15587 ac_ext=cc
15588 ac_cpp='$CXXCPP $CPPFLAGS'
15589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15592
15593 cat >conftest.$ac_ext <<_ACEOF
15594 /* confdefs.h. */
15595 _ACEOF
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h. */
15599 #include <math.h>
15600 #ifdef HAVE_IEEEFP_H
15601 #include <ieeefp.h>
15602 #endif
15603
15604 int
15605 main ()
15606 {
15607 _log10f(0);
15608 ;
15609 return 0;
15610 }
15611 _ACEOF
15612 rm -f conftest.$ac_objext
15613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15614 (eval $ac_compile) 2>conftest.er1
15615 ac_status=$?
15616 grep -v '^ *+' conftest.er1 >conftest.err
15617 rm -f conftest.er1
15618 cat conftest.err >&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } &&
15621 { ac_try='test -z "$ac_cxx_werror_flag"
15622 || test ! -s conftest.err'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; } &&
15628 { ac_try='test -s conftest.$ac_objext'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 glibcxx_cv_func__log10f_use=yes
15635 else
15636 echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15638
15639 glibcxx_cv_func__log10f_use=no
15640 fi
15641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15642 ac_ext=c
15643 ac_cpp='$CPP $CPPFLAGS'
15644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15647
15648
15649 fi
15650
15651 fi
15652 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
15653 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
15654
15655 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
15656
15657 for ac_func in _log10f
15658 do
15659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15660 echo "$as_me:$LINENO: checking for $ac_func" >&5
15661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15662 if eval "test \"\${$as_ac_var+set}\" = set"; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 else
15665 if test x$gcc_no_link = xyes; then
15666 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15667 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15668 { (exit 1); exit 1; }; }
15669 fi
15670 cat >conftest.$ac_ext <<_ACEOF
15671 /* confdefs.h. */
15672 _ACEOF
15673 cat confdefs.h >>conftest.$ac_ext
15674 cat >>conftest.$ac_ext <<_ACEOF
15675 /* end confdefs.h. */
15676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15678 #define $ac_func innocuous_$ac_func
15679
15680 /* System header to define __stub macros and hopefully few prototypes,
15681 which can conflict with char $ac_func (); below.
15682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15683 <limits.h> exists even on freestanding compilers. */
15684
15685 #ifdef __STDC__
15686 # include <limits.h>
15687 #else
15688 # include <assert.h>
15689 #endif
15690
15691 #undef $ac_func
15692
15693 /* Override any gcc2 internal prototype to avoid an error. */
15694 #ifdef __cplusplus
15695 extern "C"
15696 {
15697 #endif
15698 /* We use char because int might match the return type of a gcc2
15699 builtin and then its argument prototype would still apply. */
15700 char $ac_func ();
15701 /* The GNU C library defines this for functions which it implements
15702 to always fail with ENOSYS. Some functions are actually named
15703 something starting with __ and the normal name is an alias. */
15704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15705 choke me
15706 #else
15707 char (*f) () = $ac_func;
15708 #endif
15709 #ifdef __cplusplus
15710 }
15711 #endif
15712
15713 int
15714 main ()
15715 {
15716 return f != $ac_func;
15717 ;
15718 return 0;
15719 }
15720 _ACEOF
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723 (eval $ac_link) 2>conftest.er1
15724 ac_status=$?
15725 grep -v '^ *+' conftest.er1 >conftest.err
15726 rm -f conftest.er1
15727 cat conftest.err >&5
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); } &&
15730 { ac_try='test -z "$ac_c_werror_flag"
15731 || test ! -s conftest.err'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; } &&
15737 { ac_try='test -s conftest$ac_exeext'
15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739 (eval $ac_try) 2>&5
15740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 eval "$as_ac_var=yes"
15744 else
15745 echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15747
15748 eval "$as_ac_var=no"
15749 fi
15750 rm -f conftest.err conftest.$ac_objext \
15751 conftest$ac_exeext conftest.$ac_ext
15752 fi
15753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15755 if test `eval echo '${'$as_ac_var'}'` = yes; then
15756 cat >>confdefs.h <<_ACEOF
15757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15758 _ACEOF
15759
15760 fi
15761 done
15762
15763 fi
15764 fi
15765
15766
15767
15768 echo "$as_me:$LINENO: checking for modff declaration" >&5
15769 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
15770 if test x${glibcxx_cv_func_modff_use+set} != xset; then
15771 if test "${glibcxx_cv_func_modff_use+set}" = set; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 else
15774
15775
15776
15777 ac_ext=cc
15778 ac_cpp='$CXXCPP $CPPFLAGS'
15779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15782
15783 cat >conftest.$ac_ext <<_ACEOF
15784 /* confdefs.h. */
15785 _ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 #include <math.h>
15790 int
15791 main ()
15792 {
15793 modff(0, 0);
15794 ;
15795 return 0;
15796 }
15797 _ACEOF
15798 rm -f conftest.$ac_objext
15799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15800 (eval $ac_compile) 2>conftest.er1
15801 ac_status=$?
15802 grep -v '^ *+' conftest.er1 >conftest.err
15803 rm -f conftest.er1
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } &&
15807 { ac_try='test -z "$ac_cxx_werror_flag"
15808 || test ! -s conftest.err'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15811 ac_status=$?
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; } &&
15814 { ac_try='test -s conftest.$ac_objext'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15817 ac_status=$?
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; }; then
15820 glibcxx_cv_func_modff_use=yes
15821 else
15822 echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15824
15825 glibcxx_cv_func_modff_use=no
15826 fi
15827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15828 ac_ext=c
15829 ac_cpp='$CPP $CPPFLAGS'
15830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15833
15834
15835 fi
15836
15837 fi
15838 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
15839 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
15840
15841 if test x$glibcxx_cv_func_modff_use = x"yes"; then
15842
15843 for ac_func in modff
15844 do
15845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15846 echo "$as_me:$LINENO: checking for $ac_func" >&5
15847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15848 if eval "test \"\${$as_ac_var+set}\" = set"; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15850 else
15851 if test x$gcc_no_link = xyes; then
15852 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15853 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15854 { (exit 1); exit 1; }; }
15855 fi
15856 cat >conftest.$ac_ext <<_ACEOF
15857 /* confdefs.h. */
15858 _ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h. */
15862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15864 #define $ac_func innocuous_$ac_func
15865
15866 /* System header to define __stub macros and hopefully few prototypes,
15867 which can conflict with char $ac_func (); below.
15868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15869 <limits.h> exists even on freestanding compilers. */
15870
15871 #ifdef __STDC__
15872 # include <limits.h>
15873 #else
15874 # include <assert.h>
15875 #endif
15876
15877 #undef $ac_func
15878
15879 /* Override any gcc2 internal prototype to avoid an error. */
15880 #ifdef __cplusplus
15881 extern "C"
15882 {
15883 #endif
15884 /* We use char because int might match the return type of a gcc2
15885 builtin and then its argument prototype would still apply. */
15886 char $ac_func ();
15887 /* The GNU C library defines this for functions which it implements
15888 to always fail with ENOSYS. Some functions are actually named
15889 something starting with __ and the normal name is an alias. */
15890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15891 choke me
15892 #else
15893 char (*f) () = $ac_func;
15894 #endif
15895 #ifdef __cplusplus
15896 }
15897 #endif
15898
15899 int
15900 main ()
15901 {
15902 return f != $ac_func;
15903 ;
15904 return 0;
15905 }
15906 _ACEOF
15907 rm -f conftest.$ac_objext conftest$ac_exeext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909 (eval $ac_link) 2>conftest.er1
15910 ac_status=$?
15911 grep -v '^ *+' conftest.er1 >conftest.err
15912 rm -f conftest.er1
15913 cat conftest.err >&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } &&
15916 { ac_try='test -z "$ac_c_werror_flag"
15917 || test ! -s conftest.err'
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; } &&
15923 { ac_try='test -s conftest$ac_exeext'
15924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 (eval $ac_try) 2>&5
15926 ac_status=$?
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); }; }; then
15929 eval "$as_ac_var=yes"
15930 else
15931 echo "$as_me: failed program was:" >&5
15932 sed 's/^/| /' conftest.$ac_ext >&5
15933
15934 eval "$as_ac_var=no"
15935 fi
15936 rm -f conftest.err conftest.$ac_objext \
15937 conftest$ac_exeext conftest.$ac_ext
15938 fi
15939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15941 if test `eval echo '${'$as_ac_var'}'` = yes; then
15942 cat >>confdefs.h <<_ACEOF
15943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15944 _ACEOF
15945
15946 fi
15947 done
15948
15949 else
15950
15951 echo "$as_me:$LINENO: checking for _modff declaration" >&5
15952 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
15953 if test x${glibcxx_cv_func__modff_use+set} != xset; then
15954 if test "${glibcxx_cv_func__modff_use+set}" = set; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15956 else
15957
15958
15959
15960 ac_ext=cc
15961 ac_cpp='$CXXCPP $CPPFLAGS'
15962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15965
15966 cat >conftest.$ac_ext <<_ACEOF
15967 /* confdefs.h. */
15968 _ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h. */
15972 #include <math.h>
15973 int
15974 main ()
15975 {
15976 _modff(0, 0);
15977 ;
15978 return 0;
15979 }
15980 _ACEOF
15981 rm -f conftest.$ac_objext
15982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15983 (eval $ac_compile) 2>conftest.er1
15984 ac_status=$?
15985 grep -v '^ *+' conftest.er1 >conftest.err
15986 rm -f conftest.er1
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } &&
15990 { ac_try='test -z "$ac_cxx_werror_flag"
15991 || test ! -s conftest.err'
15992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15994 ac_status=$?
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; } &&
15997 { ac_try='test -s conftest.$ac_objext'
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5
16000 ac_status=$?
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; }; then
16003 glibcxx_cv_func__modff_use=yes
16004 else
16005 echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16007
16008 glibcxx_cv_func__modff_use=no
16009 fi
16010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16011 ac_ext=c
16012 ac_cpp='$CPP $CPPFLAGS'
16013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16016
16017
16018 fi
16019
16020 fi
16021 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
16022 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
16023
16024 if test x$glibcxx_cv_func__modff_use = x"yes"; then
16025
16026 for ac_func in _modff
16027 do
16028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16029 echo "$as_me:$LINENO: checking for $ac_func" >&5
16030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16031 if eval "test \"\${$as_ac_var+set}\" = set"; then
16032 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 else
16034 if test x$gcc_no_link = xyes; then
16035 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16037 { (exit 1); exit 1; }; }
16038 fi
16039 cat >conftest.$ac_ext <<_ACEOF
16040 /* confdefs.h. */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16047 #define $ac_func innocuous_$ac_func
16048
16049 /* System header to define __stub macros and hopefully few prototypes,
16050 which can conflict with char $ac_func (); below.
16051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16052 <limits.h> exists even on freestanding compilers. */
16053
16054 #ifdef __STDC__
16055 # include <limits.h>
16056 #else
16057 # include <assert.h>
16058 #endif
16059
16060 #undef $ac_func
16061
16062 /* Override any gcc2 internal prototype to avoid an error. */
16063 #ifdef __cplusplus
16064 extern "C"
16065 {
16066 #endif
16067 /* We use char because int might match the return type of a gcc2
16068 builtin and then its argument prototype would still apply. */
16069 char $ac_func ();
16070 /* The GNU C library defines this for functions which it implements
16071 to always fail with ENOSYS. Some functions are actually named
16072 something starting with __ and the normal name is an alias. */
16073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16074 choke me
16075 #else
16076 char (*f) () = $ac_func;
16077 #endif
16078 #ifdef __cplusplus
16079 }
16080 #endif
16081
16082 int
16083 main ()
16084 {
16085 return f != $ac_func;
16086 ;
16087 return 0;
16088 }
16089 _ACEOF
16090 rm -f conftest.$ac_objext conftest$ac_exeext
16091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16092 (eval $ac_link) 2>conftest.er1
16093 ac_status=$?
16094 grep -v '^ *+' conftest.er1 >conftest.err
16095 rm -f conftest.er1
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } &&
16099 { ac_try='test -z "$ac_c_werror_flag"
16100 || test ! -s conftest.err'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; } &&
16106 { ac_try='test -s conftest$ac_exeext'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 eval "$as_ac_var=yes"
16113 else
16114 echo "$as_me: failed program was:" >&5
16115 sed 's/^/| /' conftest.$ac_ext >&5
16116
16117 eval "$as_ac_var=no"
16118 fi
16119 rm -f conftest.err conftest.$ac_objext \
16120 conftest$ac_exeext conftest.$ac_ext
16121 fi
16122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16124 if test `eval echo '${'$as_ac_var'}'` = yes; then
16125 cat >>confdefs.h <<_ACEOF
16126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16127 _ACEOF
16128
16129 fi
16130 done
16131
16132 fi
16133 fi
16134
16135
16136
16137 echo "$as_me:$LINENO: checking for powf declaration" >&5
16138 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
16139 if test x${glibcxx_cv_func_powf_use+set} != xset; then
16140 if test "${glibcxx_cv_func_powf_use+set}" = set; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16142 else
16143
16144
16145
16146 ac_ext=cc
16147 ac_cpp='$CXXCPP $CPPFLAGS'
16148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16151
16152 cat >conftest.$ac_ext <<_ACEOF
16153 /* confdefs.h. */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16158 #include <math.h>
16159 int
16160 main ()
16161 {
16162 powf(0, 0);
16163 ;
16164 return 0;
16165 }
16166 _ACEOF
16167 rm -f conftest.$ac_objext
16168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16169 (eval $ac_compile) 2>conftest.er1
16170 ac_status=$?
16171 grep -v '^ *+' conftest.er1 >conftest.err
16172 rm -f conftest.er1
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } &&
16176 { ac_try='test -z "$ac_cxx_werror_flag"
16177 || test ! -s conftest.err'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; } &&
16183 { ac_try='test -s conftest.$ac_objext'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; }; then
16189 glibcxx_cv_func_powf_use=yes
16190 else
16191 echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16193
16194 glibcxx_cv_func_powf_use=no
16195 fi
16196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16197 ac_ext=c
16198 ac_cpp='$CPP $CPPFLAGS'
16199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16202
16203
16204 fi
16205
16206 fi
16207 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
16208 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
16209
16210 if test x$glibcxx_cv_func_powf_use = x"yes"; then
16211
16212 for ac_func in powf
16213 do
16214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16215 echo "$as_me:$LINENO: checking for $ac_func" >&5
16216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16217 if eval "test \"\${$as_ac_var+set}\" = set"; then
16218 echo $ECHO_N "(cached) $ECHO_C" >&6
16219 else
16220 if test x$gcc_no_link = xyes; then
16221 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16222 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16223 { (exit 1); exit 1; }; }
16224 fi
16225 cat >conftest.$ac_ext <<_ACEOF
16226 /* confdefs.h. */
16227 _ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16233 #define $ac_func innocuous_$ac_func
16234
16235 /* System header to define __stub macros and hopefully few prototypes,
16236 which can conflict with char $ac_func (); below.
16237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16238 <limits.h> exists even on freestanding compilers. */
16239
16240 #ifdef __STDC__
16241 # include <limits.h>
16242 #else
16243 # include <assert.h>
16244 #endif
16245
16246 #undef $ac_func
16247
16248 /* Override any gcc2 internal prototype to avoid an error. */
16249 #ifdef __cplusplus
16250 extern "C"
16251 {
16252 #endif
16253 /* We use char because int might match the return type of a gcc2
16254 builtin and then its argument prototype would still apply. */
16255 char $ac_func ();
16256 /* The GNU C library defines this for functions which it implements
16257 to always fail with ENOSYS. Some functions are actually named
16258 something starting with __ and the normal name is an alias. */
16259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16260 choke me
16261 #else
16262 char (*f) () = $ac_func;
16263 #endif
16264 #ifdef __cplusplus
16265 }
16266 #endif
16267
16268 int
16269 main ()
16270 {
16271 return f != $ac_func;
16272 ;
16273 return 0;
16274 }
16275 _ACEOF
16276 rm -f conftest.$ac_objext conftest$ac_exeext
16277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16278 (eval $ac_link) 2>conftest.er1
16279 ac_status=$?
16280 grep -v '^ *+' conftest.er1 >conftest.err
16281 rm -f conftest.er1
16282 cat conftest.err >&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } &&
16285 { ac_try='test -z "$ac_c_werror_flag"
16286 || test ! -s conftest.err'
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16289 ac_status=$?
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; } &&
16292 { ac_try='test -s conftest$ac_exeext'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16295 ac_status=$?
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16298 eval "$as_ac_var=yes"
16299 else
16300 echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16302
16303 eval "$as_ac_var=no"
16304 fi
16305 rm -f conftest.err conftest.$ac_objext \
16306 conftest$ac_exeext conftest.$ac_ext
16307 fi
16308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16310 if test `eval echo '${'$as_ac_var'}'` = yes; then
16311 cat >>confdefs.h <<_ACEOF
16312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16313 _ACEOF
16314
16315 fi
16316 done
16317
16318 else
16319
16320 echo "$as_me:$LINENO: checking for _powf declaration" >&5
16321 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
16322 if test x${glibcxx_cv_func__powf_use+set} != xset; then
16323 if test "${glibcxx_cv_func__powf_use+set}" = set; then
16324 echo $ECHO_N "(cached) $ECHO_C" >&6
16325 else
16326
16327
16328
16329 ac_ext=cc
16330 ac_cpp='$CXXCPP $CPPFLAGS'
16331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16334
16335 cat >conftest.$ac_ext <<_ACEOF
16336 /* confdefs.h. */
16337 _ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 #include <math.h>
16342 int
16343 main ()
16344 {
16345 _powf(0, 0);
16346 ;
16347 return 0;
16348 }
16349 _ACEOF
16350 rm -f conftest.$ac_objext
16351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16352 (eval $ac_compile) 2>conftest.er1
16353 ac_status=$?
16354 grep -v '^ *+' conftest.er1 >conftest.err
16355 rm -f conftest.er1
16356 cat conftest.err >&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); } &&
16359 { ac_try='test -z "$ac_cxx_werror_flag"
16360 || test ! -s conftest.err'
16361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362 (eval $ac_try) 2>&5
16363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; } &&
16366 { ac_try='test -s conftest.$ac_objext'
16367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 glibcxx_cv_func__powf_use=yes
16373 else
16374 echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16376
16377 glibcxx_cv_func__powf_use=no
16378 fi
16379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16380 ac_ext=c
16381 ac_cpp='$CPP $CPPFLAGS'
16382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16385
16386
16387 fi
16388
16389 fi
16390 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
16391 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
16392
16393 if test x$glibcxx_cv_func__powf_use = x"yes"; then
16394
16395 for ac_func in _powf
16396 do
16397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16398 echo "$as_me:$LINENO: checking for $ac_func" >&5
16399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16400 if eval "test \"\${$as_ac_var+set}\" = set"; then
16401 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 else
16403 if test x$gcc_no_link = xyes; then
16404 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16405 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16406 { (exit 1); exit 1; }; }
16407 fi
16408 cat >conftest.$ac_ext <<_ACEOF
16409 /* confdefs.h. */
16410 _ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h. */
16414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16416 #define $ac_func innocuous_$ac_func
16417
16418 /* System header to define __stub macros and hopefully few prototypes,
16419 which can conflict with char $ac_func (); below.
16420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16421 <limits.h> exists even on freestanding compilers. */
16422
16423 #ifdef __STDC__
16424 # include <limits.h>
16425 #else
16426 # include <assert.h>
16427 #endif
16428
16429 #undef $ac_func
16430
16431 /* Override any gcc2 internal prototype to avoid an error. */
16432 #ifdef __cplusplus
16433 extern "C"
16434 {
16435 #endif
16436 /* We use char because int might match the return type of a gcc2
16437 builtin and then its argument prototype would still apply. */
16438 char $ac_func ();
16439 /* The GNU C library defines this for functions which it implements
16440 to always fail with ENOSYS. Some functions are actually named
16441 something starting with __ and the normal name is an alias. */
16442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16443 choke me
16444 #else
16445 char (*f) () = $ac_func;
16446 #endif
16447 #ifdef __cplusplus
16448 }
16449 #endif
16450
16451 int
16452 main ()
16453 {
16454 return f != $ac_func;
16455 ;
16456 return 0;
16457 }
16458 _ACEOF
16459 rm -f conftest.$ac_objext conftest$ac_exeext
16460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16461 (eval $ac_link) 2>conftest.er1
16462 ac_status=$?
16463 grep -v '^ *+' conftest.er1 >conftest.err
16464 rm -f conftest.er1
16465 cat conftest.err >&5
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
16468 { ac_try='test -z "$ac_c_werror_flag"
16469 || test ! -s conftest.err'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; } &&
16475 { ac_try='test -s conftest$ac_exeext'
16476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477 (eval $ac_try) 2>&5
16478 ac_status=$?
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); }; }; then
16481 eval "$as_ac_var=yes"
16482 else
16483 echo "$as_me: failed program was:" >&5
16484 sed 's/^/| /' conftest.$ac_ext >&5
16485
16486 eval "$as_ac_var=no"
16487 fi
16488 rm -f conftest.err conftest.$ac_objext \
16489 conftest$ac_exeext conftest.$ac_ext
16490 fi
16491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16493 if test `eval echo '${'$as_ac_var'}'` = yes; then
16494 cat >>confdefs.h <<_ACEOF
16495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16496 _ACEOF
16497
16498 fi
16499 done
16500
16501 fi
16502 fi
16503
16504
16505
16506 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
16507 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
16508 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
16509 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 else
16512
16513
16514
16515 ac_ext=cc
16516 ac_cpp='$CXXCPP $CPPFLAGS'
16517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16520
16521 cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h. */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #include <math.h>
16528 #ifdef HAVE_IEEEFP_H
16529 #include <ieeefp.h>
16530 #endif
16531
16532 int
16533 main ()
16534 {
16535 sqrtf(0);
16536 ;
16537 return 0;
16538 }
16539 _ACEOF
16540 rm -f conftest.$ac_objext
16541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16542 (eval $ac_compile) 2>conftest.er1
16543 ac_status=$?
16544 grep -v '^ *+' conftest.er1 >conftest.err
16545 rm -f conftest.er1
16546 cat conftest.err >&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } &&
16549 { ac_try='test -z "$ac_cxx_werror_flag"
16550 || test ! -s conftest.err'
16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552 (eval $ac_try) 2>&5
16553 ac_status=$?
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; } &&
16556 { ac_try='test -s conftest.$ac_objext'
16557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558 (eval $ac_try) 2>&5
16559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; }; then
16562 glibcxx_cv_func_sqrtf_use=yes
16563 else
16564 echo "$as_me: failed program was:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16566
16567 glibcxx_cv_func_sqrtf_use=no
16568 fi
16569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16570 ac_ext=c
16571 ac_cpp='$CPP $CPPFLAGS'
16572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16575
16576
16577 fi
16578
16579 fi
16580 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
16581 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
16582
16583 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
16584
16585 for ac_func in sqrtf
16586 do
16587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16588 echo "$as_me:$LINENO: checking for $ac_func" >&5
16589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16590 if eval "test \"\${$as_ac_var+set}\" = set"; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16592 else
16593 if test x$gcc_no_link = xyes; then
16594 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16595 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16596 { (exit 1); exit 1; }; }
16597 fi
16598 cat >conftest.$ac_ext <<_ACEOF
16599 /* confdefs.h. */
16600 _ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h. */
16604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16606 #define $ac_func innocuous_$ac_func
16607
16608 /* System header to define __stub macros and hopefully few prototypes,
16609 which can conflict with char $ac_func (); below.
16610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16611 <limits.h> exists even on freestanding compilers. */
16612
16613 #ifdef __STDC__
16614 # include <limits.h>
16615 #else
16616 # include <assert.h>
16617 #endif
16618
16619 #undef $ac_func
16620
16621 /* Override any gcc2 internal prototype to avoid an error. */
16622 #ifdef __cplusplus
16623 extern "C"
16624 {
16625 #endif
16626 /* We use char because int might match the return type of a gcc2
16627 builtin and then its argument prototype would still apply. */
16628 char $ac_func ();
16629 /* The GNU C library defines this for functions which it implements
16630 to always fail with ENOSYS. Some functions are actually named
16631 something starting with __ and the normal name is an alias. */
16632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16633 choke me
16634 #else
16635 char (*f) () = $ac_func;
16636 #endif
16637 #ifdef __cplusplus
16638 }
16639 #endif
16640
16641 int
16642 main ()
16643 {
16644 return f != $ac_func;
16645 ;
16646 return 0;
16647 }
16648 _ACEOF
16649 rm -f conftest.$ac_objext conftest$ac_exeext
16650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16651 (eval $ac_link) 2>conftest.er1
16652 ac_status=$?
16653 grep -v '^ *+' conftest.er1 >conftest.err
16654 rm -f conftest.er1
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } &&
16658 { ac_try='test -z "$ac_c_werror_flag"
16659 || test ! -s conftest.err'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16662 ac_status=$?
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; } &&
16665 { ac_try='test -s conftest$ac_exeext'
16666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16667 (eval $ac_try) 2>&5
16668 ac_status=$?
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); }; }; then
16671 eval "$as_ac_var=yes"
16672 else
16673 echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16675
16676 eval "$as_ac_var=no"
16677 fi
16678 rm -f conftest.err conftest.$ac_objext \
16679 conftest$ac_exeext conftest.$ac_ext
16680 fi
16681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16683 if test `eval echo '${'$as_ac_var'}'` = yes; then
16684 cat >>confdefs.h <<_ACEOF
16685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16686 _ACEOF
16687
16688 fi
16689 done
16690
16691 else
16692
16693 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
16694 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
16695 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
16696 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 else
16699
16700
16701
16702 ac_ext=cc
16703 ac_cpp='$CXXCPP $CPPFLAGS'
16704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16707
16708 cat >conftest.$ac_ext <<_ACEOF
16709 /* confdefs.h. */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 #include <math.h>
16715 #ifdef HAVE_IEEEFP_H
16716 #include <ieeefp.h>
16717 #endif
16718
16719 int
16720 main ()
16721 {
16722 _sqrtf(0);
16723 ;
16724 return 0;
16725 }
16726 _ACEOF
16727 rm -f conftest.$ac_objext
16728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16729 (eval $ac_compile) 2>conftest.er1
16730 ac_status=$?
16731 grep -v '^ *+' conftest.er1 >conftest.err
16732 rm -f conftest.er1
16733 cat conftest.err >&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } &&
16736 { ac_try='test -z "$ac_cxx_werror_flag"
16737 || test ! -s conftest.err'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; } &&
16743 { ac_try='test -s conftest.$ac_objext'
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; }; then
16749 glibcxx_cv_func__sqrtf_use=yes
16750 else
16751 echo "$as_me: failed program was:" >&5
16752 sed 's/^/| /' conftest.$ac_ext >&5
16753
16754 glibcxx_cv_func__sqrtf_use=no
16755 fi
16756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16757 ac_ext=c
16758 ac_cpp='$CPP $CPPFLAGS'
16759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16762
16763
16764 fi
16765
16766 fi
16767 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
16768 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
16769
16770 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
16771
16772 for ac_func in _sqrtf
16773 do
16774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16775 echo "$as_me:$LINENO: checking for $ac_func" >&5
16776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16777 if eval "test \"\${$as_ac_var+set}\" = set"; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16779 else
16780 if test x$gcc_no_link = xyes; then
16781 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16782 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16783 { (exit 1); exit 1; }; }
16784 fi
16785 cat >conftest.$ac_ext <<_ACEOF
16786 /* confdefs.h. */
16787 _ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h. */
16791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16793 #define $ac_func innocuous_$ac_func
16794
16795 /* System header to define __stub macros and hopefully few prototypes,
16796 which can conflict with char $ac_func (); below.
16797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16798 <limits.h> exists even on freestanding compilers. */
16799
16800 #ifdef __STDC__
16801 # include <limits.h>
16802 #else
16803 # include <assert.h>
16804 #endif
16805
16806 #undef $ac_func
16807
16808 /* Override any gcc2 internal prototype to avoid an error. */
16809 #ifdef __cplusplus
16810 extern "C"
16811 {
16812 #endif
16813 /* We use char because int might match the return type of a gcc2
16814 builtin and then its argument prototype would still apply. */
16815 char $ac_func ();
16816 /* The GNU C library defines this for functions which it implements
16817 to always fail with ENOSYS. Some functions are actually named
16818 something starting with __ and the normal name is an alias. */
16819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16820 choke me
16821 #else
16822 char (*f) () = $ac_func;
16823 #endif
16824 #ifdef __cplusplus
16825 }
16826 #endif
16827
16828 int
16829 main ()
16830 {
16831 return f != $ac_func;
16832 ;
16833 return 0;
16834 }
16835 _ACEOF
16836 rm -f conftest.$ac_objext conftest$ac_exeext
16837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16838 (eval $ac_link) 2>conftest.er1
16839 ac_status=$?
16840 grep -v '^ *+' conftest.er1 >conftest.err
16841 rm -f conftest.er1
16842 cat conftest.err >&5
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } &&
16845 { ac_try='test -z "$ac_c_werror_flag"
16846 || test ! -s conftest.err'
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest$ac_exeext'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 eval "$as_ac_var=yes"
16859 else
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16862
16863 eval "$as_ac_var=no"
16864 fi
16865 rm -f conftest.err conftest.$ac_objext \
16866 conftest$ac_exeext conftest.$ac_ext
16867 fi
16868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16870 if test `eval echo '${'$as_ac_var'}'` = yes; then
16871 cat >>confdefs.h <<_ACEOF
16872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16873 _ACEOF
16874
16875 fi
16876 done
16877
16878 fi
16879 fi
16880
16881
16882
16883 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
16884 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
16885 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
16886 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
16887 echo $ECHO_N "(cached) $ECHO_C" >&6
16888 else
16889
16890
16891
16892 ac_ext=cc
16893 ac_cpp='$CXXCPP $CPPFLAGS'
16894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16897
16898 cat >conftest.$ac_ext <<_ACEOF
16899 /* confdefs.h. */
16900 _ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 #include <math.h>
16905 int
16906 main ()
16907 {
16908 sincosf(0, 0, 0);
16909 ;
16910 return 0;
16911 }
16912 _ACEOF
16913 rm -f conftest.$ac_objext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16915 (eval $ac_compile) 2>conftest.er1
16916 ac_status=$?
16917 grep -v '^ *+' conftest.er1 >conftest.err
16918 rm -f conftest.er1
16919 cat conftest.err >&5
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); } &&
16922 { ac_try='test -z "$ac_cxx_werror_flag"
16923 || test ! -s conftest.err'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; } &&
16929 { ac_try='test -s conftest.$ac_objext'
16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16931 (eval $ac_try) 2>&5
16932 ac_status=$?
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); }; }; then
16935 glibcxx_cv_func_sincosf_use=yes
16936 else
16937 echo "$as_me: failed program was:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16939
16940 glibcxx_cv_func_sincosf_use=no
16941 fi
16942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16943 ac_ext=c
16944 ac_cpp='$CPP $CPPFLAGS'
16945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16948
16949
16950 fi
16951
16952 fi
16953 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
16954 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
16955
16956 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
16957
16958 for ac_func in sincosf
16959 do
16960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16961 echo "$as_me:$LINENO: checking for $ac_func" >&5
16962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16963 if eval "test \"\${$as_ac_var+set}\" = set"; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 else
16966 if test x$gcc_no_link = xyes; then
16967 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16968 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16969 { (exit 1); exit 1; }; }
16970 fi
16971 cat >conftest.$ac_ext <<_ACEOF
16972 /* confdefs.h. */
16973 _ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16979 #define $ac_func innocuous_$ac_func
16980
16981 /* System header to define __stub macros and hopefully few prototypes,
16982 which can conflict with char $ac_func (); below.
16983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16984 <limits.h> exists even on freestanding compilers. */
16985
16986 #ifdef __STDC__
16987 # include <limits.h>
16988 #else
16989 # include <assert.h>
16990 #endif
16991
16992 #undef $ac_func
16993
16994 /* Override any gcc2 internal prototype to avoid an error. */
16995 #ifdef __cplusplus
16996 extern "C"
16997 {
16998 #endif
16999 /* We use char because int might match the return type of a gcc2
17000 builtin and then its argument prototype would still apply. */
17001 char $ac_func ();
17002 /* The GNU C library defines this for functions which it implements
17003 to always fail with ENOSYS. Some functions are actually named
17004 something starting with __ and the normal name is an alias. */
17005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17006 choke me
17007 #else
17008 char (*f) () = $ac_func;
17009 #endif
17010 #ifdef __cplusplus
17011 }
17012 #endif
17013
17014 int
17015 main ()
17016 {
17017 return f != $ac_func;
17018 ;
17019 return 0;
17020 }
17021 _ACEOF
17022 rm -f conftest.$ac_objext conftest$ac_exeext
17023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17024 (eval $ac_link) 2>conftest.er1
17025 ac_status=$?
17026 grep -v '^ *+' conftest.er1 >conftest.err
17027 rm -f conftest.er1
17028 cat conftest.err >&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } &&
17031 { ac_try='test -z "$ac_c_werror_flag"
17032 || test ! -s conftest.err'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; } &&
17038 { ac_try='test -s conftest$ac_exeext'
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 eval "$as_ac_var=yes"
17045 else
17046 echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17048
17049 eval "$as_ac_var=no"
17050 fi
17051 rm -f conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext conftest.$ac_ext
17053 fi
17054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17056 if test `eval echo '${'$as_ac_var'}'` = yes; then
17057 cat >>confdefs.h <<_ACEOF
17058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17059 _ACEOF
17060
17061 fi
17062 done
17063
17064 else
17065
17066 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
17067 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
17068 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
17069 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 else
17072
17073
17074
17075 ac_ext=cc
17076 ac_cpp='$CXXCPP $CPPFLAGS'
17077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17080
17081 cat >conftest.$ac_ext <<_ACEOF
17082 /* confdefs.h. */
17083 _ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17087 #include <math.h>
17088 int
17089 main ()
17090 {
17091 _sincosf(0, 0, 0);
17092 ;
17093 return 0;
17094 }
17095 _ACEOF
17096 rm -f conftest.$ac_objext
17097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17098 (eval $ac_compile) 2>conftest.er1
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } &&
17105 { ac_try='test -z "$ac_cxx_werror_flag"
17106 || test ! -s conftest.err'
17107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108 (eval $ac_try) 2>&5
17109 ac_status=$?
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; } &&
17112 { ac_try='test -s conftest.$ac_objext'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 glibcxx_cv_func__sincosf_use=yes
17119 else
17120 echo "$as_me: failed program was:" >&5
17121 sed 's/^/| /' conftest.$ac_ext >&5
17122
17123 glibcxx_cv_func__sincosf_use=no
17124 fi
17125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17126 ac_ext=c
17127 ac_cpp='$CPP $CPPFLAGS'
17128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17131
17132
17133 fi
17134
17135 fi
17136 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
17137 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
17138
17139 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
17140
17141 for ac_func in _sincosf
17142 do
17143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17144 echo "$as_me:$LINENO: checking for $ac_func" >&5
17145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17146 if eval "test \"\${$as_ac_var+set}\" = set"; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 else
17149 if test x$gcc_no_link = xyes; then
17150 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17151 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17152 { (exit 1); exit 1; }; }
17153 fi
17154 cat >conftest.$ac_ext <<_ACEOF
17155 /* confdefs.h. */
17156 _ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17161 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17162 #define $ac_func innocuous_$ac_func
17163
17164 /* System header to define __stub macros and hopefully few prototypes,
17165 which can conflict with char $ac_func (); below.
17166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17167 <limits.h> exists even on freestanding compilers. */
17168
17169 #ifdef __STDC__
17170 # include <limits.h>
17171 #else
17172 # include <assert.h>
17173 #endif
17174
17175 #undef $ac_func
17176
17177 /* Override any gcc2 internal prototype to avoid an error. */
17178 #ifdef __cplusplus
17179 extern "C"
17180 {
17181 #endif
17182 /* We use char because int might match the return type of a gcc2
17183 builtin and then its argument prototype would still apply. */
17184 char $ac_func ();
17185 /* The GNU C library defines this for functions which it implements
17186 to always fail with ENOSYS. Some functions are actually named
17187 something starting with __ and the normal name is an alias. */
17188 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17189 choke me
17190 #else
17191 char (*f) () = $ac_func;
17192 #endif
17193 #ifdef __cplusplus
17194 }
17195 #endif
17196
17197 int
17198 main ()
17199 {
17200 return f != $ac_func;
17201 ;
17202 return 0;
17203 }
17204 _ACEOF
17205 rm -f conftest.$ac_objext conftest$ac_exeext
17206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17207 (eval $ac_link) 2>conftest.er1
17208 ac_status=$?
17209 grep -v '^ *+' conftest.er1 >conftest.err
17210 rm -f conftest.er1
17211 cat conftest.err >&5
17212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17213 (exit $ac_status); } &&
17214 { ac_try='test -z "$ac_c_werror_flag"
17215 || test ! -s conftest.err'
17216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17217 (eval $ac_try) 2>&5
17218 ac_status=$?
17219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17220 (exit $ac_status); }; } &&
17221 { ac_try='test -s conftest$ac_exeext'
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; }; then
17227 eval "$as_ac_var=yes"
17228 else
17229 echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17231
17232 eval "$as_ac_var=no"
17233 fi
17234 rm -f conftest.err conftest.$ac_objext \
17235 conftest$ac_exeext conftest.$ac_ext
17236 fi
17237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17238 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17239 if test `eval echo '${'$as_ac_var'}'` = yes; then
17240 cat >>confdefs.h <<_ACEOF
17241 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17242 _ACEOF
17243
17244 fi
17245 done
17246
17247 fi
17248 fi
17249
17250
17251
17252 echo "$as_me:$LINENO: checking for finitef declaration" >&5
17253 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
17254 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
17255 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
17256 echo $ECHO_N "(cached) $ECHO_C" >&6
17257 else
17258
17259
17260
17261 ac_ext=cc
17262 ac_cpp='$CXXCPP $CPPFLAGS'
17263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17266
17267 cat >conftest.$ac_ext <<_ACEOF
17268 /* confdefs.h. */
17269 _ACEOF
17270 cat confdefs.h >>conftest.$ac_ext
17271 cat >>conftest.$ac_ext <<_ACEOF
17272 /* end confdefs.h. */
17273 #include <math.h>
17274 #ifdef HAVE_IEEEFP_H
17275 #include <ieeefp.h>
17276 #endif
17277
17278 int
17279 main ()
17280 {
17281 finitef(0);
17282 ;
17283 return 0;
17284 }
17285 _ACEOF
17286 rm -f conftest.$ac_objext
17287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17288 (eval $ac_compile) 2>conftest.er1
17289 ac_status=$?
17290 grep -v '^ *+' conftest.er1 >conftest.err
17291 rm -f conftest.er1
17292 cat conftest.err >&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); } &&
17295 { ac_try='test -z "$ac_cxx_werror_flag"
17296 || test ! -s conftest.err'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; } &&
17302 { ac_try='test -s conftest.$ac_objext'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; }; then
17308 glibcxx_cv_func_finitef_use=yes
17309 else
17310 echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17312
17313 glibcxx_cv_func_finitef_use=no
17314 fi
17315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17316 ac_ext=c
17317 ac_cpp='$CPP $CPPFLAGS'
17318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17321
17322
17323 fi
17324
17325 fi
17326 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
17327 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
17328
17329 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
17330
17331 for ac_func in finitef
17332 do
17333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17334 echo "$as_me:$LINENO: checking for $ac_func" >&5
17335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17336 if eval "test \"\${$as_ac_var+set}\" = set"; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339 if test x$gcc_no_link = xyes; then
17340 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17341 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17342 { (exit 1); exit 1; }; }
17343 fi
17344 cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h. */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17352 #define $ac_func innocuous_$ac_func
17353
17354 /* System header to define __stub macros and hopefully few prototypes,
17355 which can conflict with char $ac_func (); below.
17356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17357 <limits.h> exists even on freestanding compilers. */
17358
17359 #ifdef __STDC__
17360 # include <limits.h>
17361 #else
17362 # include <assert.h>
17363 #endif
17364
17365 #undef $ac_func
17366
17367 /* Override any gcc2 internal prototype to avoid an error. */
17368 #ifdef __cplusplus
17369 extern "C"
17370 {
17371 #endif
17372 /* We use char because int might match the return type of a gcc2
17373 builtin and then its argument prototype would still apply. */
17374 char $ac_func ();
17375 /* The GNU C library defines this for functions which it implements
17376 to always fail with ENOSYS. Some functions are actually named
17377 something starting with __ and the normal name is an alias. */
17378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17379 choke me
17380 #else
17381 char (*f) () = $ac_func;
17382 #endif
17383 #ifdef __cplusplus
17384 }
17385 #endif
17386
17387 int
17388 main ()
17389 {
17390 return f != $ac_func;
17391 ;
17392 return 0;
17393 }
17394 _ACEOF
17395 rm -f conftest.$ac_objext conftest$ac_exeext
17396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17397 (eval $ac_link) 2>conftest.er1
17398 ac_status=$?
17399 grep -v '^ *+' conftest.er1 >conftest.err
17400 rm -f conftest.er1
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } &&
17404 { ac_try='test -z "$ac_c_werror_flag"
17405 || test ! -s conftest.err'
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; } &&
17411 { ac_try='test -s conftest$ac_exeext'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17417 eval "$as_ac_var=yes"
17418 else
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17421
17422 eval "$as_ac_var=no"
17423 fi
17424 rm -f conftest.err conftest.$ac_objext \
17425 conftest$ac_exeext conftest.$ac_ext
17426 fi
17427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17429 if test `eval echo '${'$as_ac_var'}'` = yes; then
17430 cat >>confdefs.h <<_ACEOF
17431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17432 _ACEOF
17433
17434 fi
17435 done
17436
17437 else
17438
17439 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
17440 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
17441 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
17442 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17444 else
17445
17446
17447
17448 ac_ext=cc
17449 ac_cpp='$CXXCPP $CPPFLAGS'
17450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17453
17454 cat >conftest.$ac_ext <<_ACEOF
17455 /* confdefs.h. */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h. */
17460 #include <math.h>
17461 #ifdef HAVE_IEEEFP_H
17462 #include <ieeefp.h>
17463 #endif
17464
17465 int
17466 main ()
17467 {
17468 _finitef(0);
17469 ;
17470 return 0;
17471 }
17472 _ACEOF
17473 rm -f conftest.$ac_objext
17474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17475 (eval $ac_compile) 2>conftest.er1
17476 ac_status=$?
17477 grep -v '^ *+' conftest.er1 >conftest.err
17478 rm -f conftest.er1
17479 cat conftest.err >&5
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } &&
17482 { ac_try='test -z "$ac_cxx_werror_flag"
17483 || test ! -s conftest.err'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; } &&
17489 { ac_try='test -s conftest.$ac_objext'
17490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491 (eval $ac_try) 2>&5
17492 ac_status=$?
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; }; then
17495 glibcxx_cv_func__finitef_use=yes
17496 else
17497 echo "$as_me: failed program was:" >&5
17498 sed 's/^/| /' conftest.$ac_ext >&5
17499
17500 glibcxx_cv_func__finitef_use=no
17501 fi
17502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17503 ac_ext=c
17504 ac_cpp='$CPP $CPPFLAGS'
17505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17508
17509
17510 fi
17511
17512 fi
17513 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
17514 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
17515
17516 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
17517
17518 for ac_func in _finitef
17519 do
17520 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17521 echo "$as_me:$LINENO: checking for $ac_func" >&5
17522 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17523 if eval "test \"\${$as_ac_var+set}\" = set"; then
17524 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 else
17526 if test x$gcc_no_link = xyes; then
17527 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17528 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17529 { (exit 1); exit 1; }; }
17530 fi
17531 cat >conftest.$ac_ext <<_ACEOF
17532 /* confdefs.h. */
17533 _ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
17537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17539 #define $ac_func innocuous_$ac_func
17540
17541 /* System header to define __stub macros and hopefully few prototypes,
17542 which can conflict with char $ac_func (); below.
17543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17544 <limits.h> exists even on freestanding compilers. */
17545
17546 #ifdef __STDC__
17547 # include <limits.h>
17548 #else
17549 # include <assert.h>
17550 #endif
17551
17552 #undef $ac_func
17553
17554 /* Override any gcc2 internal prototype to avoid an error. */
17555 #ifdef __cplusplus
17556 extern "C"
17557 {
17558 #endif
17559 /* We use char because int might match the return type of a gcc2
17560 builtin and then its argument prototype would still apply. */
17561 char $ac_func ();
17562 /* The GNU C library defines this for functions which it implements
17563 to always fail with ENOSYS. Some functions are actually named
17564 something starting with __ and the normal name is an alias. */
17565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17566 choke me
17567 #else
17568 char (*f) () = $ac_func;
17569 #endif
17570 #ifdef __cplusplus
17571 }
17572 #endif
17573
17574 int
17575 main ()
17576 {
17577 return f != $ac_func;
17578 ;
17579 return 0;
17580 }
17581 _ACEOF
17582 rm -f conftest.$ac_objext conftest$ac_exeext
17583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17584 (eval $ac_link) 2>conftest.er1
17585 ac_status=$?
17586 grep -v '^ *+' conftest.er1 >conftest.err
17587 rm -f conftest.er1
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } &&
17591 { ac_try='test -z "$ac_c_werror_flag"
17592 || test ! -s conftest.err'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; } &&
17598 { ac_try='test -s conftest$ac_exeext'
17599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600 (eval $ac_try) 2>&5
17601 ac_status=$?
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 eval "$as_ac_var=yes"
17605 else
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17608
17609 eval "$as_ac_var=no"
17610 fi
17611 rm -f conftest.err conftest.$ac_objext \
17612 conftest$ac_exeext conftest.$ac_ext
17613 fi
17614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17616 if test `eval echo '${'$as_ac_var'}'` = yes; then
17617 cat >>confdefs.h <<_ACEOF
17618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17619 _ACEOF
17620
17621 fi
17622 done
17623
17624 fi
17625 fi
17626
17627
17628
17629 echo "$as_me:$LINENO: checking for long double trig functions" >&5
17630 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
17631 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17633 else
17634
17635
17636
17637 ac_ext=cc
17638 ac_cpp='$CXXCPP $CPPFLAGS'
17639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17642
17643 cat >conftest.$ac_ext <<_ACEOF
17644 /* confdefs.h. */
17645 _ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h. */
17649 #include <math.h>
17650 int
17651 main ()
17652 {
17653 `for x in acosl asinl atanl \
17654 cosl sinl tanl \
17655 coshl sinhl tanhl; do echo "$x (0);"; done`
17656 ;
17657 return 0;
17658 }
17659 _ACEOF
17660 rm -f conftest.$ac_objext
17661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17662 (eval $ac_compile) 2>conftest.er1
17663 ac_status=$?
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } &&
17669 { ac_try='test -z "$ac_cxx_werror_flag"
17670 || test ! -s conftest.err'
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest.$ac_objext'
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 glibcxx_cv_func_long_double_trig_use=yes
17683 else
17684 echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17686
17687 glibcxx_cv_func_long_double_trig_use=no
17688 fi
17689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17690 ac_ext=c
17691 ac_cpp='$CPP $CPPFLAGS'
17692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17695
17696 fi
17697
17698 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
17699 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
17700 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710 for ac_func in acosl asinl atanl \
17711 cosl sinl tanl \
17712 coshl sinhl tanhl
17713 do
17714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17715 echo "$as_me:$LINENO: checking for $ac_func" >&5
17716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17717 if eval "test \"\${$as_ac_var+set}\" = set"; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17719 else
17720 if test x$gcc_no_link = xyes; then
17721 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17722 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17723 { (exit 1); exit 1; }; }
17724 fi
17725 cat >conftest.$ac_ext <<_ACEOF
17726 /* confdefs.h. */
17727 _ACEOF
17728 cat confdefs.h >>conftest.$ac_ext
17729 cat >>conftest.$ac_ext <<_ACEOF
17730 /* end confdefs.h. */
17731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17733 #define $ac_func innocuous_$ac_func
17734
17735 /* System header to define __stub macros and hopefully few prototypes,
17736 which can conflict with char $ac_func (); below.
17737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17738 <limits.h> exists even on freestanding compilers. */
17739
17740 #ifdef __STDC__
17741 # include <limits.h>
17742 #else
17743 # include <assert.h>
17744 #endif
17745
17746 #undef $ac_func
17747
17748 /* Override any gcc2 internal prototype to avoid an error. */
17749 #ifdef __cplusplus
17750 extern "C"
17751 {
17752 #endif
17753 /* We use char because int might match the return type of a gcc2
17754 builtin and then its argument prototype would still apply. */
17755 char $ac_func ();
17756 /* The GNU C library defines this for functions which it implements
17757 to always fail with ENOSYS. Some functions are actually named
17758 something starting with __ and the normal name is an alias. */
17759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17760 choke me
17761 #else
17762 char (*f) () = $ac_func;
17763 #endif
17764 #ifdef __cplusplus
17765 }
17766 #endif
17767
17768 int
17769 main ()
17770 {
17771 return f != $ac_func;
17772 ;
17773 return 0;
17774 }
17775 _ACEOF
17776 rm -f conftest.$ac_objext conftest$ac_exeext
17777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17778 (eval $ac_link) 2>conftest.er1
17779 ac_status=$?
17780 grep -v '^ *+' conftest.er1 >conftest.err
17781 rm -f conftest.er1
17782 cat conftest.err >&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); } &&
17785 { ac_try='test -z "$ac_c_werror_flag"
17786 || test ! -s conftest.err'
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17789 ac_status=$?
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; } &&
17792 { ac_try='test -s conftest$ac_exeext'
17793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17794 (eval $ac_try) 2>&5
17795 ac_status=$?
17796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797 (exit $ac_status); }; }; then
17798 eval "$as_ac_var=yes"
17799 else
17800 echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.$ac_ext >&5
17802
17803 eval "$as_ac_var=no"
17804 fi
17805 rm -f conftest.err conftest.$ac_objext \
17806 conftest$ac_exeext conftest.$ac_ext
17807 fi
17808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17810 if test `eval echo '${'$as_ac_var'}'` = yes; then
17811 cat >>confdefs.h <<_ACEOF
17812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17813 _ACEOF
17814
17815 fi
17816 done
17817
17818 fi
17819
17820
17821 echo "$as_me:$LINENO: checking for long double round functions" >&5
17822 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
17823 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
17824 echo $ECHO_N "(cached) $ECHO_C" >&6
17825 else
17826
17827
17828
17829 ac_ext=cc
17830 ac_cpp='$CXXCPP $CPPFLAGS'
17831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17834
17835 cat >conftest.$ac_ext <<_ACEOF
17836 /* confdefs.h. */
17837 _ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h. */
17841 #include <math.h>
17842 int
17843 main ()
17844 {
17845 `for x in ceill floorl; do echo "$x (0);"; done`
17846 ;
17847 return 0;
17848 }
17849 _ACEOF
17850 rm -f conftest.$ac_objext
17851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17852 (eval $ac_compile) 2>conftest.er1
17853 ac_status=$?
17854 grep -v '^ *+' conftest.er1 >conftest.err
17855 rm -f conftest.er1
17856 cat conftest.err >&5
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); } &&
17859 { ac_try='test -z "$ac_cxx_werror_flag"
17860 || test ! -s conftest.err'
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17863 ac_status=$?
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest.$ac_objext'
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 glibcxx_cv_func_long_double_round_use=yes
17873 else
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877 glibcxx_cv_func_long_double_round_use=no
17878 fi
17879 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17880 ac_ext=c
17881 ac_cpp='$CPP $CPPFLAGS'
17882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17885
17886 fi
17887
17888 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
17889 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
17890 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
17891
17892
17893 for ac_func in ceill floorl
17894 do
17895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17896 echo "$as_me:$LINENO: checking for $ac_func" >&5
17897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17898 if eval "test \"\${$as_ac_var+set}\" = set"; then
17899 echo $ECHO_N "(cached) $ECHO_C" >&6
17900 else
17901 if test x$gcc_no_link = xyes; then
17902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17904 { (exit 1); exit 1; }; }
17905 fi
17906 cat >conftest.$ac_ext <<_ACEOF
17907 /* confdefs.h. */
17908 _ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h. */
17912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17914 #define $ac_func innocuous_$ac_func
17915
17916 /* System header to define __stub macros and hopefully few prototypes,
17917 which can conflict with char $ac_func (); below.
17918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17919 <limits.h> exists even on freestanding compilers. */
17920
17921 #ifdef __STDC__
17922 # include <limits.h>
17923 #else
17924 # include <assert.h>
17925 #endif
17926
17927 #undef $ac_func
17928
17929 /* Override any gcc2 internal prototype to avoid an error. */
17930 #ifdef __cplusplus
17931 extern "C"
17932 {
17933 #endif
17934 /* We use char because int might match the return type of a gcc2
17935 builtin and then its argument prototype would still apply. */
17936 char $ac_func ();
17937 /* The GNU C library defines this for functions which it implements
17938 to always fail with ENOSYS. Some functions are actually named
17939 something starting with __ and the normal name is an alias. */
17940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17941 choke me
17942 #else
17943 char (*f) () = $ac_func;
17944 #endif
17945 #ifdef __cplusplus
17946 }
17947 #endif
17948
17949 int
17950 main ()
17951 {
17952 return f != $ac_func;
17953 ;
17954 return 0;
17955 }
17956 _ACEOF
17957 rm -f conftest.$ac_objext conftest$ac_exeext
17958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17959 (eval $ac_link) 2>conftest.er1
17960 ac_status=$?
17961 grep -v '^ *+' conftest.er1 >conftest.err
17962 rm -f conftest.er1
17963 cat conftest.err >&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); } &&
17966 { ac_try='test -z "$ac_c_werror_flag"
17967 || test ! -s conftest.err'
17968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969 (eval $ac_try) 2>&5
17970 ac_status=$?
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); }; } &&
17973 { ac_try='test -s conftest$ac_exeext'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; }; then
17979 eval "$as_ac_var=yes"
17980 else
17981 echo "$as_me: failed program was:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17983
17984 eval "$as_ac_var=no"
17985 fi
17986 rm -f conftest.err conftest.$ac_objext \
17987 conftest$ac_exeext conftest.$ac_ext
17988 fi
17989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17991 if test `eval echo '${'$as_ac_var'}'` = yes; then
17992 cat >>confdefs.h <<_ACEOF
17993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17994 _ACEOF
17995
17996 fi
17997 done
17998
17999 fi
18000
18001
18002
18003 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
18004 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
18005 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
18006 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
18007 echo $ECHO_N "(cached) $ECHO_C" >&6
18008 else
18009
18010
18011
18012 ac_ext=cc
18013 ac_cpp='$CXXCPP $CPPFLAGS'
18014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18017
18018 cat >conftest.$ac_ext <<_ACEOF
18019 /* confdefs.h. */
18020 _ACEOF
18021 cat confdefs.h >>conftest.$ac_ext
18022 cat >>conftest.$ac_ext <<_ACEOF
18023 /* end confdefs.h. */
18024 #include <math.h>
18025 #ifdef HAVE_IEEEFP_H
18026 #include <ieeefp.h>
18027 #endif
18028
18029 int
18030 main ()
18031 {
18032 isnanl(0);
18033 ;
18034 return 0;
18035 }
18036 _ACEOF
18037 rm -f conftest.$ac_objext
18038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18039 (eval $ac_compile) 2>conftest.er1
18040 ac_status=$?
18041 grep -v '^ *+' conftest.er1 >conftest.err
18042 rm -f conftest.er1
18043 cat conftest.err >&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); } &&
18046 { ac_try='test -z "$ac_cxx_werror_flag"
18047 || test ! -s conftest.err'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18050 ac_status=$?
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; } &&
18053 { ac_try='test -s conftest.$ac_objext'
18054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055 (eval $ac_try) 2>&5
18056 ac_status=$?
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; }; then
18059 glibcxx_cv_func_isnanl_use=yes
18060 else
18061 echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18063
18064 glibcxx_cv_func_isnanl_use=no
18065 fi
18066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18067 ac_ext=c
18068 ac_cpp='$CPP $CPPFLAGS'
18069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18072
18073
18074 fi
18075
18076 fi
18077 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
18078 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
18079
18080 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
18081
18082 for ac_func in isnanl
18083 do
18084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18085 echo "$as_me:$LINENO: checking for $ac_func" >&5
18086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18087 if eval "test \"\${$as_ac_var+set}\" = set"; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18089 else
18090 if test x$gcc_no_link = xyes; then
18091 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18092 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18093 { (exit 1); exit 1; }; }
18094 fi
18095 cat >conftest.$ac_ext <<_ACEOF
18096 /* confdefs.h. */
18097 _ACEOF
18098 cat confdefs.h >>conftest.$ac_ext
18099 cat >>conftest.$ac_ext <<_ACEOF
18100 /* end confdefs.h. */
18101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18103 #define $ac_func innocuous_$ac_func
18104
18105 /* System header to define __stub macros and hopefully few prototypes,
18106 which can conflict with char $ac_func (); below.
18107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18108 <limits.h> exists even on freestanding compilers. */
18109
18110 #ifdef __STDC__
18111 # include <limits.h>
18112 #else
18113 # include <assert.h>
18114 #endif
18115
18116 #undef $ac_func
18117
18118 /* Override any gcc2 internal prototype to avoid an error. */
18119 #ifdef __cplusplus
18120 extern "C"
18121 {
18122 #endif
18123 /* We use char because int might match the return type of a gcc2
18124 builtin and then its argument prototype would still apply. */
18125 char $ac_func ();
18126 /* The GNU C library defines this for functions which it implements
18127 to always fail with ENOSYS. Some functions are actually named
18128 something starting with __ and the normal name is an alias. */
18129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18130 choke me
18131 #else
18132 char (*f) () = $ac_func;
18133 #endif
18134 #ifdef __cplusplus
18135 }
18136 #endif
18137
18138 int
18139 main ()
18140 {
18141 return f != $ac_func;
18142 ;
18143 return 0;
18144 }
18145 _ACEOF
18146 rm -f conftest.$ac_objext conftest$ac_exeext
18147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18148 (eval $ac_link) 2>conftest.er1
18149 ac_status=$?
18150 grep -v '^ *+' conftest.er1 >conftest.err
18151 rm -f conftest.er1
18152 cat conftest.err >&5
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
18155 { ac_try='test -z "$ac_c_werror_flag"
18156 || test ! -s conftest.err'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18159 ac_status=$?
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; } &&
18162 { ac_try='test -s conftest$ac_exeext'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 eval "$as_ac_var=yes"
18169 else
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18172
18173 eval "$as_ac_var=no"
18174 fi
18175 rm -f conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18177 fi
18178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18180 if test `eval echo '${'$as_ac_var'}'` = yes; then
18181 cat >>confdefs.h <<_ACEOF
18182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18183 _ACEOF
18184
18185 fi
18186 done
18187
18188 else
18189
18190 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
18191 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
18192 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
18193 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18195 else
18196
18197
18198
18199 ac_ext=cc
18200 ac_cpp='$CXXCPP $CPPFLAGS'
18201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18204
18205 cat >conftest.$ac_ext <<_ACEOF
18206 /* confdefs.h. */
18207 _ACEOF
18208 cat confdefs.h >>conftest.$ac_ext
18209 cat >>conftest.$ac_ext <<_ACEOF
18210 /* end confdefs.h. */
18211 #include <math.h>
18212 #ifdef HAVE_IEEEFP_H
18213 #include <ieeefp.h>
18214 #endif
18215
18216 int
18217 main ()
18218 {
18219 _isnanl(0);
18220 ;
18221 return 0;
18222 }
18223 _ACEOF
18224 rm -f conftest.$ac_objext
18225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18226 (eval $ac_compile) 2>conftest.er1
18227 ac_status=$?
18228 grep -v '^ *+' conftest.er1 >conftest.err
18229 rm -f conftest.er1
18230 cat conftest.err >&5
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } &&
18233 { ac_try='test -z "$ac_cxx_werror_flag"
18234 || test ! -s conftest.err'
18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18236 (eval $ac_try) 2>&5
18237 ac_status=$?
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); }; } &&
18240 { ac_try='test -s conftest.$ac_objext'
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18243 ac_status=$?
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; }; then
18246 glibcxx_cv_func__isnanl_use=yes
18247 else
18248 echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18250
18251 glibcxx_cv_func__isnanl_use=no
18252 fi
18253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18254 ac_ext=c
18255 ac_cpp='$CPP $CPPFLAGS'
18256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18259
18260
18261 fi
18262
18263 fi
18264 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
18265 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
18266
18267 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
18268
18269 for ac_func in _isnanl
18270 do
18271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18272 echo "$as_me:$LINENO: checking for $ac_func" >&5
18273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18274 if eval "test \"\${$as_ac_var+set}\" = set"; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 else
18277 if test x$gcc_no_link = xyes; then
18278 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18279 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18280 { (exit 1); exit 1; }; }
18281 fi
18282 cat >conftest.$ac_ext <<_ACEOF
18283 /* confdefs.h. */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18290 #define $ac_func innocuous_$ac_func
18291
18292 /* System header to define __stub macros and hopefully few prototypes,
18293 which can conflict with char $ac_func (); below.
18294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18295 <limits.h> exists even on freestanding compilers. */
18296
18297 #ifdef __STDC__
18298 # include <limits.h>
18299 #else
18300 # include <assert.h>
18301 #endif
18302
18303 #undef $ac_func
18304
18305 /* Override any gcc2 internal prototype to avoid an error. */
18306 #ifdef __cplusplus
18307 extern "C"
18308 {
18309 #endif
18310 /* We use char because int might match the return type of a gcc2
18311 builtin and then its argument prototype would still apply. */
18312 char $ac_func ();
18313 /* The GNU C library defines this for functions which it implements
18314 to always fail with ENOSYS. Some functions are actually named
18315 something starting with __ and the normal name is an alias. */
18316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18317 choke me
18318 #else
18319 char (*f) () = $ac_func;
18320 #endif
18321 #ifdef __cplusplus
18322 }
18323 #endif
18324
18325 int
18326 main ()
18327 {
18328 return f != $ac_func;
18329 ;
18330 return 0;
18331 }
18332 _ACEOF
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18335 (eval $ac_link) 2>conftest.er1
18336 ac_status=$?
18337 grep -v '^ *+' conftest.er1 >conftest.err
18338 rm -f conftest.er1
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_c_werror_flag"
18343 || test ! -s conftest.err'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try='test -s conftest$ac_exeext'
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 eval "$as_ac_var=yes"
18356 else
18357 echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18359
18360 eval "$as_ac_var=no"
18361 fi
18362 rm -f conftest.err conftest.$ac_objext \
18363 conftest$ac_exeext conftest.$ac_ext
18364 fi
18365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18367 if test `eval echo '${'$as_ac_var'}'` = yes; then
18368 cat >>confdefs.h <<_ACEOF
18369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18370 _ACEOF
18371
18372 fi
18373 done
18374
18375 fi
18376 fi
18377
18378
18379
18380 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
18381 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
18382 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
18383 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
18384 echo $ECHO_N "(cached) $ECHO_C" >&6
18385 else
18386
18387
18388
18389 ac_ext=cc
18390 ac_cpp='$CXXCPP $CPPFLAGS'
18391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18394
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h. */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18401 #include <math.h>
18402 #ifdef HAVE_IEEEFP_H
18403 #include <ieeefp.h>
18404 #endif
18405
18406 int
18407 main ()
18408 {
18409 isinfl(0);
18410 ;
18411 return 0;
18412 }
18413 _ACEOF
18414 rm -f conftest.$ac_objext
18415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18416 (eval $ac_compile) 2>conftest.er1
18417 ac_status=$?
18418 grep -v '^ *+' conftest.er1 >conftest.err
18419 rm -f conftest.er1
18420 cat conftest.err >&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); } &&
18423 { ac_try='test -z "$ac_cxx_werror_flag"
18424 || test ! -s conftest.err'
18425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18426 (eval $ac_try) 2>&5
18427 ac_status=$?
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; } &&
18430 { ac_try='test -s conftest.$ac_objext'
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; }; then
18436 glibcxx_cv_func_isinfl_use=yes
18437 else
18438 echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18440
18441 glibcxx_cv_func_isinfl_use=no
18442 fi
18443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18444 ac_ext=c
18445 ac_cpp='$CPP $CPPFLAGS'
18446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18449
18450
18451 fi
18452
18453 fi
18454 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
18455 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
18456
18457 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
18458
18459 for ac_func in isinfl
18460 do
18461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18462 echo "$as_me:$LINENO: checking for $ac_func" >&5
18463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18464 if eval "test \"\${$as_ac_var+set}\" = set"; then
18465 echo $ECHO_N "(cached) $ECHO_C" >&6
18466 else
18467 if test x$gcc_no_link = xyes; then
18468 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18469 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18470 { (exit 1); exit 1; }; }
18471 fi
18472 cat >conftest.$ac_ext <<_ACEOF
18473 /* confdefs.h. */
18474 _ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h. */
18478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18480 #define $ac_func innocuous_$ac_func
18481
18482 /* System header to define __stub macros and hopefully few prototypes,
18483 which can conflict with char $ac_func (); below.
18484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18485 <limits.h> exists even on freestanding compilers. */
18486
18487 #ifdef __STDC__
18488 # include <limits.h>
18489 #else
18490 # include <assert.h>
18491 #endif
18492
18493 #undef $ac_func
18494
18495 /* Override any gcc2 internal prototype to avoid an error. */
18496 #ifdef __cplusplus
18497 extern "C"
18498 {
18499 #endif
18500 /* We use char because int might match the return type of a gcc2
18501 builtin and then its argument prototype would still apply. */
18502 char $ac_func ();
18503 /* The GNU C library defines this for functions which it implements
18504 to always fail with ENOSYS. Some functions are actually named
18505 something starting with __ and the normal name is an alias. */
18506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18507 choke me
18508 #else
18509 char (*f) () = $ac_func;
18510 #endif
18511 #ifdef __cplusplus
18512 }
18513 #endif
18514
18515 int
18516 main ()
18517 {
18518 return f != $ac_func;
18519 ;
18520 return 0;
18521 }
18522 _ACEOF
18523 rm -f conftest.$ac_objext conftest$ac_exeext
18524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18525 (eval $ac_link) 2>conftest.er1
18526 ac_status=$?
18527 grep -v '^ *+' conftest.er1 >conftest.err
18528 rm -f conftest.er1
18529 cat conftest.err >&5
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); } &&
18532 { ac_try='test -z "$ac_c_werror_flag"
18533 || test ! -s conftest.err'
18534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18535 (eval $ac_try) 2>&5
18536 ac_status=$?
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; } &&
18539 { ac_try='test -s conftest$ac_exeext'
18540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18541 (eval $ac_try) 2>&5
18542 ac_status=$?
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 eval "$as_ac_var=yes"
18546 else
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18549
18550 eval "$as_ac_var=no"
18551 fi
18552 rm -f conftest.err conftest.$ac_objext \
18553 conftest$ac_exeext conftest.$ac_ext
18554 fi
18555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18557 if test `eval echo '${'$as_ac_var'}'` = yes; then
18558 cat >>confdefs.h <<_ACEOF
18559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18560 _ACEOF
18561
18562 fi
18563 done
18564
18565 else
18566
18567 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
18568 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
18569 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
18570 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 else
18573
18574
18575
18576 ac_ext=cc
18577 ac_cpp='$CXXCPP $CPPFLAGS'
18578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18581
18582 cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h. */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 #include <math.h>
18589 #ifdef HAVE_IEEEFP_H
18590 #include <ieeefp.h>
18591 #endif
18592
18593 int
18594 main ()
18595 {
18596 _isinfl(0);
18597 ;
18598 return 0;
18599 }
18600 _ACEOF
18601 rm -f conftest.$ac_objext
18602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18603 (eval $ac_compile) 2>conftest.er1
18604 ac_status=$?
18605 grep -v '^ *+' conftest.er1 >conftest.err
18606 rm -f conftest.er1
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } &&
18610 { ac_try='test -z "$ac_cxx_werror_flag"
18611 || test ! -s conftest.err'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; } &&
18617 { ac_try='test -s conftest.$ac_objext'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 glibcxx_cv_func__isinfl_use=yes
18624 else
18625 echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18627
18628 glibcxx_cv_func__isinfl_use=no
18629 fi
18630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18631 ac_ext=c
18632 ac_cpp='$CPP $CPPFLAGS'
18633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18636
18637
18638 fi
18639
18640 fi
18641 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
18642 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
18643
18644 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
18645
18646 for ac_func in _isinfl
18647 do
18648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18649 echo "$as_me:$LINENO: checking for $ac_func" >&5
18650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18651 if eval "test \"\${$as_ac_var+set}\" = set"; then
18652 echo $ECHO_N "(cached) $ECHO_C" >&6
18653 else
18654 if test x$gcc_no_link = xyes; then
18655 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18657 { (exit 1); exit 1; }; }
18658 fi
18659 cat >conftest.$ac_ext <<_ACEOF
18660 /* confdefs.h. */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18667 #define $ac_func innocuous_$ac_func
18668
18669 /* System header to define __stub macros and hopefully few prototypes,
18670 which can conflict with char $ac_func (); below.
18671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18672 <limits.h> exists even on freestanding compilers. */
18673
18674 #ifdef __STDC__
18675 # include <limits.h>
18676 #else
18677 # include <assert.h>
18678 #endif
18679
18680 #undef $ac_func
18681
18682 /* Override any gcc2 internal prototype to avoid an error. */
18683 #ifdef __cplusplus
18684 extern "C"
18685 {
18686 #endif
18687 /* We use char because int might match the return type of a gcc2
18688 builtin and then its argument prototype would still apply. */
18689 char $ac_func ();
18690 /* The GNU C library defines this for functions which it implements
18691 to always fail with ENOSYS. Some functions are actually named
18692 something starting with __ and the normal name is an alias. */
18693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18694 choke me
18695 #else
18696 char (*f) () = $ac_func;
18697 #endif
18698 #ifdef __cplusplus
18699 }
18700 #endif
18701
18702 int
18703 main ()
18704 {
18705 return f != $ac_func;
18706 ;
18707 return 0;
18708 }
18709 _ACEOF
18710 rm -f conftest.$ac_objext conftest$ac_exeext
18711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18712 (eval $ac_link) 2>conftest.er1
18713 ac_status=$?
18714 grep -v '^ *+' conftest.er1 >conftest.err
18715 rm -f conftest.er1
18716 cat conftest.err >&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } &&
18719 { ac_try='test -z "$ac_c_werror_flag"
18720 || test ! -s conftest.err'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; } &&
18726 { ac_try='test -s conftest$ac_exeext'
18727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18728 (eval $ac_try) 2>&5
18729 ac_status=$?
18730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731 (exit $ac_status); }; }; then
18732 eval "$as_ac_var=yes"
18733 else
18734 echo "$as_me: failed program was:" >&5
18735 sed 's/^/| /' conftest.$ac_ext >&5
18736
18737 eval "$as_ac_var=no"
18738 fi
18739 rm -f conftest.err conftest.$ac_objext \
18740 conftest$ac_exeext conftest.$ac_ext
18741 fi
18742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18743 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18744 if test `eval echo '${'$as_ac_var'}'` = yes; then
18745 cat >>confdefs.h <<_ACEOF
18746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18747 _ACEOF
18748
18749 fi
18750 done
18751
18752 fi
18753 fi
18754
18755
18756
18757 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
18758 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
18759 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
18760 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18762 else
18763
18764
18765
18766 ac_ext=cc
18767 ac_cpp='$CXXCPP $CPPFLAGS'
18768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18771
18772 cat >conftest.$ac_ext <<_ACEOF
18773 /* confdefs.h. */
18774 _ACEOF
18775 cat confdefs.h >>conftest.$ac_ext
18776 cat >>conftest.$ac_ext <<_ACEOF
18777 /* end confdefs.h. */
18778 #include <math.h>
18779 int
18780 main ()
18781 {
18782 copysignl(0, 0);
18783 ;
18784 return 0;
18785 }
18786 _ACEOF
18787 rm -f conftest.$ac_objext
18788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18789 (eval $ac_compile) 2>conftest.er1
18790 ac_status=$?
18791 grep -v '^ *+' conftest.er1 >conftest.err
18792 rm -f conftest.er1
18793 cat conftest.err >&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } &&
18796 { ac_try='test -z "$ac_cxx_werror_flag"
18797 || test ! -s conftest.err'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18800 ac_status=$?
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; } &&
18803 { ac_try='test -s conftest.$ac_objext'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
18809 glibcxx_cv_func_copysignl_use=yes
18810 else
18811 echo "$as_me: failed program was:" >&5
18812 sed 's/^/| /' conftest.$ac_ext >&5
18813
18814 glibcxx_cv_func_copysignl_use=no
18815 fi
18816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18817 ac_ext=c
18818 ac_cpp='$CPP $CPPFLAGS'
18819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18822
18823
18824 fi
18825
18826 fi
18827 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
18828 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
18829
18830 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
18831
18832 for ac_func in copysignl
18833 do
18834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18835 echo "$as_me:$LINENO: checking for $ac_func" >&5
18836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18837 if eval "test \"\${$as_ac_var+set}\" = set"; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 else
18840 if test x$gcc_no_link = xyes; then
18841 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18842 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18843 { (exit 1); exit 1; }; }
18844 fi
18845 cat >conftest.$ac_ext <<_ACEOF
18846 /* confdefs.h. */
18847 _ACEOF
18848 cat confdefs.h >>conftest.$ac_ext
18849 cat >>conftest.$ac_ext <<_ACEOF
18850 /* end confdefs.h. */
18851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18853 #define $ac_func innocuous_$ac_func
18854
18855 /* System header to define __stub macros and hopefully few prototypes,
18856 which can conflict with char $ac_func (); below.
18857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18858 <limits.h> exists even on freestanding compilers. */
18859
18860 #ifdef __STDC__
18861 # include <limits.h>
18862 #else
18863 # include <assert.h>
18864 #endif
18865
18866 #undef $ac_func
18867
18868 /* Override any gcc2 internal prototype to avoid an error. */
18869 #ifdef __cplusplus
18870 extern "C"
18871 {
18872 #endif
18873 /* We use char because int might match the return type of a gcc2
18874 builtin and then its argument prototype would still apply. */
18875 char $ac_func ();
18876 /* The GNU C library defines this for functions which it implements
18877 to always fail with ENOSYS. Some functions are actually named
18878 something starting with __ and the normal name is an alias. */
18879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18880 choke me
18881 #else
18882 char (*f) () = $ac_func;
18883 #endif
18884 #ifdef __cplusplus
18885 }
18886 #endif
18887
18888 int
18889 main ()
18890 {
18891 return f != $ac_func;
18892 ;
18893 return 0;
18894 }
18895 _ACEOF
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18898 (eval $ac_link) 2>conftest.er1
18899 ac_status=$?
18900 grep -v '^ *+' conftest.er1 >conftest.err
18901 rm -f conftest.er1
18902 cat conftest.err >&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } &&
18905 { ac_try='test -z "$ac_c_werror_flag"
18906 || test ! -s conftest.err'
18907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18908 (eval $ac_try) 2>&5
18909 ac_status=$?
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); }; } &&
18912 { ac_try='test -s conftest$ac_exeext'
18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18915 ac_status=$?
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; }; then
18918 eval "$as_ac_var=yes"
18919 else
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18922
18923 eval "$as_ac_var=no"
18924 fi
18925 rm -f conftest.err conftest.$ac_objext \
18926 conftest$ac_exeext conftest.$ac_ext
18927 fi
18928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18930 if test `eval echo '${'$as_ac_var'}'` = yes; then
18931 cat >>confdefs.h <<_ACEOF
18932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18933 _ACEOF
18934
18935 fi
18936 done
18937
18938 else
18939
18940 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
18941 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
18942 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
18943 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
18944 echo $ECHO_N "(cached) $ECHO_C" >&6
18945 else
18946
18947
18948
18949 ac_ext=cc
18950 ac_cpp='$CXXCPP $CPPFLAGS'
18951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18954
18955 cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h. */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 #include <math.h>
18962 int
18963 main ()
18964 {
18965 _copysignl(0, 0);
18966 ;
18967 return 0;
18968 }
18969 _ACEOF
18970 rm -f conftest.$ac_objext
18971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18972 (eval $ac_compile) 2>conftest.er1
18973 ac_status=$?
18974 grep -v '^ *+' conftest.er1 >conftest.err
18975 rm -f conftest.er1
18976 cat conftest.err >&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); } &&
18979 { ac_try='test -z "$ac_cxx_werror_flag"
18980 || test ! -s conftest.err'
18981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982 (eval $ac_try) 2>&5
18983 ac_status=$?
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; } &&
18986 { ac_try='test -s conftest.$ac_objext'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18989 ac_status=$?
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; }; then
18992 glibcxx_cv_func__copysignl_use=yes
18993 else
18994 echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18996
18997 glibcxx_cv_func__copysignl_use=no
18998 fi
18999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19000 ac_ext=c
19001 ac_cpp='$CPP $CPPFLAGS'
19002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19005
19006
19007 fi
19008
19009 fi
19010 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
19011 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
19012
19013 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
19014
19015 for ac_func in _copysignl
19016 do
19017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19018 echo "$as_me:$LINENO: checking for $ac_func" >&5
19019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19020 if eval "test \"\${$as_ac_var+set}\" = set"; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 else
19023 if test x$gcc_no_link = xyes; then
19024 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19025 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19026 { (exit 1); exit 1; }; }
19027 fi
19028 cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h. */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19036 #define $ac_func innocuous_$ac_func
19037
19038 /* System header to define __stub macros and hopefully few prototypes,
19039 which can conflict with char $ac_func (); below.
19040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19041 <limits.h> exists even on freestanding compilers. */
19042
19043 #ifdef __STDC__
19044 # include <limits.h>
19045 #else
19046 # include <assert.h>
19047 #endif
19048
19049 #undef $ac_func
19050
19051 /* Override any gcc2 internal prototype to avoid an error. */
19052 #ifdef __cplusplus
19053 extern "C"
19054 {
19055 #endif
19056 /* We use char because int might match the return type of a gcc2
19057 builtin and then its argument prototype would still apply. */
19058 char $ac_func ();
19059 /* The GNU C library defines this for functions which it implements
19060 to always fail with ENOSYS. Some functions are actually named
19061 something starting with __ and the normal name is an alias. */
19062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19063 choke me
19064 #else
19065 char (*f) () = $ac_func;
19066 #endif
19067 #ifdef __cplusplus
19068 }
19069 #endif
19070
19071 int
19072 main ()
19073 {
19074 return f != $ac_func;
19075 ;
19076 return 0;
19077 }
19078 _ACEOF
19079 rm -f conftest.$ac_objext conftest$ac_exeext
19080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19081 (eval $ac_link) 2>conftest.er1
19082 ac_status=$?
19083 grep -v '^ *+' conftest.er1 >conftest.err
19084 rm -f conftest.er1
19085 cat conftest.err >&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try='test -z "$ac_c_werror_flag"
19089 || test ! -s conftest.err'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; } &&
19095 { ac_try='test -s conftest$ac_exeext'
19096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19097 (eval $ac_try) 2>&5
19098 ac_status=$?
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; }; then
19101 eval "$as_ac_var=yes"
19102 else
19103 echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19105
19106 eval "$as_ac_var=no"
19107 fi
19108 rm -f conftest.err conftest.$ac_objext \
19109 conftest$ac_exeext conftest.$ac_ext
19110 fi
19111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19113 if test `eval echo '${'$as_ac_var'}'` = yes; then
19114 cat >>confdefs.h <<_ACEOF
19115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19116 _ACEOF
19117
19118 fi
19119 done
19120
19121 fi
19122 fi
19123
19124
19125
19126 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
19127 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
19128 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
19129 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132
19133
19134
19135 ac_ext=cc
19136 ac_cpp='$CXXCPP $CPPFLAGS'
19137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19140
19141 cat >conftest.$ac_ext <<_ACEOF
19142 /* confdefs.h. */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19147 #include <math.h>
19148 int
19149 main ()
19150 {
19151 atan2l(0, 0);
19152 ;
19153 return 0;
19154 }
19155 _ACEOF
19156 rm -f conftest.$ac_objext
19157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19158 (eval $ac_compile) 2>conftest.er1
19159 ac_status=$?
19160 grep -v '^ *+' conftest.er1 >conftest.err
19161 rm -f conftest.er1
19162 cat conftest.err >&5
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } &&
19165 { ac_try='test -z "$ac_cxx_werror_flag"
19166 || test ! -s conftest.err'
19167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; } &&
19172 { ac_try='test -s conftest.$ac_objext'
19173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19174 (eval $ac_try) 2>&5
19175 ac_status=$?
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); }; }; then
19178 glibcxx_cv_func_atan2l_use=yes
19179 else
19180 echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19182
19183 glibcxx_cv_func_atan2l_use=no
19184 fi
19185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19186 ac_ext=c
19187 ac_cpp='$CPP $CPPFLAGS'
19188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19191
19192
19193 fi
19194
19195 fi
19196 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
19197 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
19198
19199 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
19200
19201 for ac_func in atan2l
19202 do
19203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19204 echo "$as_me:$LINENO: checking for $ac_func" >&5
19205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19206 if eval "test \"\${$as_ac_var+set}\" = set"; then
19207 echo $ECHO_N "(cached) $ECHO_C" >&6
19208 else
19209 if test x$gcc_no_link = xyes; then
19210 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19212 { (exit 1); exit 1; }; }
19213 fi
19214 cat >conftest.$ac_ext <<_ACEOF
19215 /* confdefs.h. */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h. */
19220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19222 #define $ac_func innocuous_$ac_func
19223
19224 /* System header to define __stub macros and hopefully few prototypes,
19225 which can conflict with char $ac_func (); below.
19226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19227 <limits.h> exists even on freestanding compilers. */
19228
19229 #ifdef __STDC__
19230 # include <limits.h>
19231 #else
19232 # include <assert.h>
19233 #endif
19234
19235 #undef $ac_func
19236
19237 /* Override any gcc2 internal prototype to avoid an error. */
19238 #ifdef __cplusplus
19239 extern "C"
19240 {
19241 #endif
19242 /* We use char because int might match the return type of a gcc2
19243 builtin and then its argument prototype would still apply. */
19244 char $ac_func ();
19245 /* The GNU C library defines this for functions which it implements
19246 to always fail with ENOSYS. Some functions are actually named
19247 something starting with __ and the normal name is an alias. */
19248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19249 choke me
19250 #else
19251 char (*f) () = $ac_func;
19252 #endif
19253 #ifdef __cplusplus
19254 }
19255 #endif
19256
19257 int
19258 main ()
19259 {
19260 return f != $ac_func;
19261 ;
19262 return 0;
19263 }
19264 _ACEOF
19265 rm -f conftest.$ac_objext conftest$ac_exeext
19266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19267 (eval $ac_link) 2>conftest.er1
19268 ac_status=$?
19269 grep -v '^ *+' conftest.er1 >conftest.err
19270 rm -f conftest.er1
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
19274 { ac_try='test -z "$ac_c_werror_flag"
19275 || test ! -s conftest.err'
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; } &&
19281 { ac_try='test -s conftest$ac_exeext'
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19284 ac_status=$?
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; }; then
19287 eval "$as_ac_var=yes"
19288 else
19289 echo "$as_me: failed program was:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19291
19292 eval "$as_ac_var=no"
19293 fi
19294 rm -f conftest.err conftest.$ac_objext \
19295 conftest$ac_exeext conftest.$ac_ext
19296 fi
19297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19299 if test `eval echo '${'$as_ac_var'}'` = yes; then
19300 cat >>confdefs.h <<_ACEOF
19301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19302 _ACEOF
19303
19304 fi
19305 done
19306
19307 else
19308
19309 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
19310 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
19311 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
19312 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19314 else
19315
19316
19317
19318 ac_ext=cc
19319 ac_cpp='$CXXCPP $CPPFLAGS'
19320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19323
19324 cat >conftest.$ac_ext <<_ACEOF
19325 /* confdefs.h. */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h. */
19330 #include <math.h>
19331 int
19332 main ()
19333 {
19334 _atan2l(0, 0);
19335 ;
19336 return 0;
19337 }
19338 _ACEOF
19339 rm -f conftest.$ac_objext
19340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19341 (eval $ac_compile) 2>conftest.er1
19342 ac_status=$?
19343 grep -v '^ *+' conftest.er1 >conftest.err
19344 rm -f conftest.er1
19345 cat conftest.err >&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); } &&
19348 { ac_try='test -z "$ac_cxx_werror_flag"
19349 || test ! -s conftest.err'
19350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19352 ac_status=$?
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); }; } &&
19355 { ac_try='test -s conftest.$ac_objext'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361 glibcxx_cv_func__atan2l_use=yes
19362 else
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19365
19366 glibcxx_cv_func__atan2l_use=no
19367 fi
19368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19369 ac_ext=c
19370 ac_cpp='$CPP $CPPFLAGS'
19371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19374
19375
19376 fi
19377
19378 fi
19379 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
19380 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
19381
19382 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
19383
19384 for ac_func in _atan2l
19385 do
19386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19387 echo "$as_me:$LINENO: checking for $ac_func" >&5
19388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19389 if eval "test \"\${$as_ac_var+set}\" = set"; then
19390 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19392 if test x$gcc_no_link = xyes; then
19393 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19394 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19395 { (exit 1); exit 1; }; }
19396 fi
19397 cat >conftest.$ac_ext <<_ACEOF
19398 /* confdefs.h. */
19399 _ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h. */
19403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19405 #define $ac_func innocuous_$ac_func
19406
19407 /* System header to define __stub macros and hopefully few prototypes,
19408 which can conflict with char $ac_func (); below.
19409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19410 <limits.h> exists even on freestanding compilers. */
19411
19412 #ifdef __STDC__
19413 # include <limits.h>
19414 #else
19415 # include <assert.h>
19416 #endif
19417
19418 #undef $ac_func
19419
19420 /* Override any gcc2 internal prototype to avoid an error. */
19421 #ifdef __cplusplus
19422 extern "C"
19423 {
19424 #endif
19425 /* We use char because int might match the return type of a gcc2
19426 builtin and then its argument prototype would still apply. */
19427 char $ac_func ();
19428 /* The GNU C library defines this for functions which it implements
19429 to always fail with ENOSYS. Some functions are actually named
19430 something starting with __ and the normal name is an alias. */
19431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19432 choke me
19433 #else
19434 char (*f) () = $ac_func;
19435 #endif
19436 #ifdef __cplusplus
19437 }
19438 #endif
19439
19440 int
19441 main ()
19442 {
19443 return f != $ac_func;
19444 ;
19445 return 0;
19446 }
19447 _ACEOF
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19450 (eval $ac_link) 2>conftest.er1
19451 ac_status=$?
19452 grep -v '^ *+' conftest.er1 >conftest.err
19453 rm -f conftest.er1
19454 cat conftest.err >&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } &&
19457 { ac_try='test -z "$ac_c_werror_flag"
19458 || test ! -s conftest.err'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; } &&
19464 { ac_try='test -s conftest$ac_exeext'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; }; then
19470 eval "$as_ac_var=yes"
19471 else
19472 echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.$ac_ext >&5
19474
19475 eval "$as_ac_var=no"
19476 fi
19477 rm -f conftest.err conftest.$ac_objext \
19478 conftest$ac_exeext conftest.$ac_ext
19479 fi
19480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19482 if test `eval echo '${'$as_ac_var'}'` = yes; then
19483 cat >>confdefs.h <<_ACEOF
19484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19485 _ACEOF
19486
19487 fi
19488 done
19489
19490 fi
19491 fi
19492
19493
19494
19495 echo "$as_me:$LINENO: checking for expl declaration" >&5
19496 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
19497 if test x${glibcxx_cv_func_expl_use+set} != xset; then
19498 if test "${glibcxx_cv_func_expl_use+set}" = set; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 else
19501
19502
19503
19504 ac_ext=cc
19505 ac_cpp='$CXXCPP $CPPFLAGS'
19506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19509
19510 cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h. */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h. */
19516 #include <math.h>
19517 #ifdef HAVE_IEEEFP_H
19518 #include <ieeefp.h>
19519 #endif
19520
19521 int
19522 main ()
19523 {
19524 expl(0);
19525 ;
19526 return 0;
19527 }
19528 _ACEOF
19529 rm -f conftest.$ac_objext
19530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19531 (eval $ac_compile) 2>conftest.er1
19532 ac_status=$?
19533 grep -v '^ *+' conftest.er1 >conftest.err
19534 rm -f conftest.er1
19535 cat conftest.err >&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); } &&
19538 { ac_try='test -z "$ac_cxx_werror_flag"
19539 || test ! -s conftest.err'
19540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541 (eval $ac_try) 2>&5
19542 ac_status=$?
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; } &&
19545 { ac_try='test -s conftest.$ac_objext'
19546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547 (eval $ac_try) 2>&5
19548 ac_status=$?
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); }; }; then
19551 glibcxx_cv_func_expl_use=yes
19552 else
19553 echo "$as_me: failed program was:" >&5
19554 sed 's/^/| /' conftest.$ac_ext >&5
19555
19556 glibcxx_cv_func_expl_use=no
19557 fi
19558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19559 ac_ext=c
19560 ac_cpp='$CPP $CPPFLAGS'
19561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19564
19565
19566 fi
19567
19568 fi
19569 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
19570 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
19571
19572 if test x$glibcxx_cv_func_expl_use = x"yes"; then
19573
19574 for ac_func in expl
19575 do
19576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19577 echo "$as_me:$LINENO: checking for $ac_func" >&5
19578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19579 if eval "test \"\${$as_ac_var+set}\" = set"; then
19580 echo $ECHO_N "(cached) $ECHO_C" >&6
19581 else
19582 if test x$gcc_no_link = xyes; then
19583 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19585 { (exit 1); exit 1; }; }
19586 fi
19587 cat >conftest.$ac_ext <<_ACEOF
19588 /* confdefs.h. */
19589 _ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19595 #define $ac_func innocuous_$ac_func
19596
19597 /* System header to define __stub macros and hopefully few prototypes,
19598 which can conflict with char $ac_func (); below.
19599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19600 <limits.h> exists even on freestanding compilers. */
19601
19602 #ifdef __STDC__
19603 # include <limits.h>
19604 #else
19605 # include <assert.h>
19606 #endif
19607
19608 #undef $ac_func
19609
19610 /* Override any gcc2 internal prototype to avoid an error. */
19611 #ifdef __cplusplus
19612 extern "C"
19613 {
19614 #endif
19615 /* We use char because int might match the return type of a gcc2
19616 builtin and then its argument prototype would still apply. */
19617 char $ac_func ();
19618 /* The GNU C library defines this for functions which it implements
19619 to always fail with ENOSYS. Some functions are actually named
19620 something starting with __ and the normal name is an alias. */
19621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19622 choke me
19623 #else
19624 char (*f) () = $ac_func;
19625 #endif
19626 #ifdef __cplusplus
19627 }
19628 #endif
19629
19630 int
19631 main ()
19632 {
19633 return f != $ac_func;
19634 ;
19635 return 0;
19636 }
19637 _ACEOF
19638 rm -f conftest.$ac_objext conftest$ac_exeext
19639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19640 (eval $ac_link) 2>conftest.er1
19641 ac_status=$?
19642 grep -v '^ *+' conftest.er1 >conftest.err
19643 rm -f conftest.er1
19644 cat conftest.err >&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
19647 { ac_try='test -z "$ac_c_werror_flag"
19648 || test ! -s conftest.err'
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19651 ac_status=$?
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; } &&
19654 { ac_try='test -s conftest$ac_exeext'
19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656 (eval $ac_try) 2>&5
19657 ac_status=$?
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19660 eval "$as_ac_var=yes"
19661 else
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665 eval "$as_ac_var=no"
19666 fi
19667 rm -f conftest.err conftest.$ac_objext \
19668 conftest$ac_exeext conftest.$ac_ext
19669 fi
19670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19672 if test `eval echo '${'$as_ac_var'}'` = yes; then
19673 cat >>confdefs.h <<_ACEOF
19674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19675 _ACEOF
19676
19677 fi
19678 done
19679
19680 else
19681
19682 echo "$as_me:$LINENO: checking for _expl declaration" >&5
19683 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
19684 if test x${glibcxx_cv_func__expl_use+set} != xset; then
19685 if test "${glibcxx_cv_func__expl_use+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19687 else
19688
19689
19690
19691 ac_ext=cc
19692 ac_cpp='$CXXCPP $CPPFLAGS'
19693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19696
19697 cat >conftest.$ac_ext <<_ACEOF
19698 /* confdefs.h. */
19699 _ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19703 #include <math.h>
19704 #ifdef HAVE_IEEEFP_H
19705 #include <ieeefp.h>
19706 #endif
19707
19708 int
19709 main ()
19710 {
19711 _expl(0);
19712 ;
19713 return 0;
19714 }
19715 _ACEOF
19716 rm -f conftest.$ac_objext
19717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19718 (eval $ac_compile) 2>conftest.er1
19719 ac_status=$?
19720 grep -v '^ *+' conftest.er1 >conftest.err
19721 rm -f conftest.er1
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } &&
19725 { ac_try='test -z "$ac_cxx_werror_flag"
19726 || test ! -s conftest.err'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; } &&
19732 { ac_try='test -s conftest.$ac_objext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 glibcxx_cv_func__expl_use=yes
19739 else
19740 echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743 glibcxx_cv_func__expl_use=no
19744 fi
19745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19746 ac_ext=c
19747 ac_cpp='$CPP $CPPFLAGS'
19748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19751
19752
19753 fi
19754
19755 fi
19756 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
19757 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
19758
19759 if test x$glibcxx_cv_func__expl_use = x"yes"; then
19760
19761 for ac_func in _expl
19762 do
19763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19764 echo "$as_me:$LINENO: checking for $ac_func" >&5
19765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19766 if eval "test \"\${$as_ac_var+set}\" = set"; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19768 else
19769 if test x$gcc_no_link = xyes; then
19770 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19771 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19772 { (exit 1); exit 1; }; }
19773 fi
19774 cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h. */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19782 #define $ac_func innocuous_$ac_func
19783
19784 /* System header to define __stub macros and hopefully few prototypes,
19785 which can conflict with char $ac_func (); below.
19786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19787 <limits.h> exists even on freestanding compilers. */
19788
19789 #ifdef __STDC__
19790 # include <limits.h>
19791 #else
19792 # include <assert.h>
19793 #endif
19794
19795 #undef $ac_func
19796
19797 /* Override any gcc2 internal prototype to avoid an error. */
19798 #ifdef __cplusplus
19799 extern "C"
19800 {
19801 #endif
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 /* The GNU C library defines this for functions which it implements
19806 to always fail with ENOSYS. Some functions are actually named
19807 something starting with __ and the normal name is an alias. */
19808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19809 choke me
19810 #else
19811 char (*f) () = $ac_func;
19812 #endif
19813 #ifdef __cplusplus
19814 }
19815 #endif
19816
19817 int
19818 main ()
19819 {
19820 return f != $ac_func;
19821 ;
19822 return 0;
19823 }
19824 _ACEOF
19825 rm -f conftest.$ac_objext conftest$ac_exeext
19826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19827 (eval $ac_link) 2>conftest.er1
19828 ac_status=$?
19829 grep -v '^ *+' conftest.er1 >conftest.err
19830 rm -f conftest.er1
19831 cat conftest.err >&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } &&
19834 { ac_try='test -z "$ac_c_werror_flag"
19835 || test ! -s conftest.err'
19836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19837 (eval $ac_try) 2>&5
19838 ac_status=$?
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); }; } &&
19841 { ac_try='test -s conftest$ac_exeext'
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; }; then
19847 eval "$as_ac_var=yes"
19848 else
19849 echo "$as_me: failed program was:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19851
19852 eval "$as_ac_var=no"
19853 fi
19854 rm -f conftest.err conftest.$ac_objext \
19855 conftest$ac_exeext conftest.$ac_ext
19856 fi
19857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19859 if test `eval echo '${'$as_ac_var'}'` = yes; then
19860 cat >>confdefs.h <<_ACEOF
19861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19862 _ACEOF
19863
19864 fi
19865 done
19866
19867 fi
19868 fi
19869
19870
19871
19872 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
19873 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
19874 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
19875 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19877 else
19878
19879
19880
19881 ac_ext=cc
19882 ac_cpp='$CXXCPP $CPPFLAGS'
19883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19886
19887 cat >conftest.$ac_ext <<_ACEOF
19888 /* confdefs.h. */
19889 _ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893 #include <math.h>
19894 #ifdef HAVE_IEEEFP_H
19895 #include <ieeefp.h>
19896 #endif
19897
19898 int
19899 main ()
19900 {
19901 fabsl(0);
19902 ;
19903 return 0;
19904 }
19905 _ACEOF
19906 rm -f conftest.$ac_objext
19907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19908 (eval $ac_compile) 2>conftest.er1
19909 ac_status=$?
19910 grep -v '^ *+' conftest.er1 >conftest.err
19911 rm -f conftest.er1
19912 cat conftest.err >&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); } &&
19915 { ac_try='test -z "$ac_cxx_werror_flag"
19916 || test ! -s conftest.err'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; } &&
19922 { ac_try='test -s conftest.$ac_objext'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928 glibcxx_cv_func_fabsl_use=yes
19929 else
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19932
19933 glibcxx_cv_func_fabsl_use=no
19934 fi
19935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19936 ac_ext=c
19937 ac_cpp='$CPP $CPPFLAGS'
19938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19941
19942
19943 fi
19944
19945 fi
19946 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
19947 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
19948
19949 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
19950
19951 for ac_func in fabsl
19952 do
19953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19954 echo "$as_me:$LINENO: checking for $ac_func" >&5
19955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19956 if eval "test \"\${$as_ac_var+set}\" = set"; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
19958 else
19959 if test x$gcc_no_link = xyes; then
19960 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19961 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19962 { (exit 1); exit 1; }; }
19963 fi
19964 cat >conftest.$ac_ext <<_ACEOF
19965 /* confdefs.h. */
19966 _ACEOF
19967 cat confdefs.h >>conftest.$ac_ext
19968 cat >>conftest.$ac_ext <<_ACEOF
19969 /* end confdefs.h. */
19970 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19972 #define $ac_func innocuous_$ac_func
19973
19974 /* System header to define __stub macros and hopefully few prototypes,
19975 which can conflict with char $ac_func (); below.
19976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19977 <limits.h> exists even on freestanding compilers. */
19978
19979 #ifdef __STDC__
19980 # include <limits.h>
19981 #else
19982 # include <assert.h>
19983 #endif
19984
19985 #undef $ac_func
19986
19987 /* Override any gcc2 internal prototype to avoid an error. */
19988 #ifdef __cplusplus
19989 extern "C"
19990 {
19991 #endif
19992 /* We use char because int might match the return type of a gcc2
19993 builtin and then its argument prototype would still apply. */
19994 char $ac_func ();
19995 /* The GNU C library defines this for functions which it implements
19996 to always fail with ENOSYS. Some functions are actually named
19997 something starting with __ and the normal name is an alias. */
19998 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19999 choke me
20000 #else
20001 char (*f) () = $ac_func;
20002 #endif
20003 #ifdef __cplusplus
20004 }
20005 #endif
20006
20007 int
20008 main ()
20009 {
20010 return f != $ac_func;
20011 ;
20012 return 0;
20013 }
20014 _ACEOF
20015 rm -f conftest.$ac_objext conftest$ac_exeext
20016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20017 (eval $ac_link) 2>conftest.er1
20018 ac_status=$?
20019 grep -v '^ *+' conftest.er1 >conftest.err
20020 rm -f conftest.er1
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); } &&
20024 { ac_try='test -z "$ac_c_werror_flag"
20025 || test ! -s conftest.err'
20026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; } &&
20031 { ac_try='test -s conftest$ac_exeext'
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20034 ac_status=$?
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 eval "$as_ac_var=yes"
20038 else
20039 echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20041
20042 eval "$as_ac_var=no"
20043 fi
20044 rm -f conftest.err conftest.$ac_objext \
20045 conftest$ac_exeext conftest.$ac_ext
20046 fi
20047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20049 if test `eval echo '${'$as_ac_var'}'` = yes; then
20050 cat >>confdefs.h <<_ACEOF
20051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20052 _ACEOF
20053
20054 fi
20055 done
20056
20057 else
20058
20059 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
20060 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
20061 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
20062 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 else
20065
20066
20067
20068 ac_ext=cc
20069 ac_cpp='$CXXCPP $CPPFLAGS'
20070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20073
20074 cat >conftest.$ac_ext <<_ACEOF
20075 /* confdefs.h. */
20076 _ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20080 #include <math.h>
20081 #ifdef HAVE_IEEEFP_H
20082 #include <ieeefp.h>
20083 #endif
20084
20085 int
20086 main ()
20087 {
20088 _fabsl(0);
20089 ;
20090 return 0;
20091 }
20092 _ACEOF
20093 rm -f conftest.$ac_objext
20094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20095 (eval $ac_compile) 2>conftest.er1
20096 ac_status=$?
20097 grep -v '^ *+' conftest.er1 >conftest.err
20098 rm -f conftest.er1
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try='test -z "$ac_cxx_werror_flag"
20103 || test ! -s conftest.err'
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try='test -s conftest.$ac_objext'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20112 ac_status=$?
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 glibcxx_cv_func__fabsl_use=yes
20116 else
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20119
20120 glibcxx_cv_func__fabsl_use=no
20121 fi
20122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20123 ac_ext=c
20124 ac_cpp='$CPP $CPPFLAGS'
20125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20128
20129
20130 fi
20131
20132 fi
20133 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
20134 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
20135
20136 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
20137
20138 for ac_func in _fabsl
20139 do
20140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20141 echo "$as_me:$LINENO: checking for $ac_func" >&5
20142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20143 if eval "test \"\${$as_ac_var+set}\" = set"; then
20144 echo $ECHO_N "(cached) $ECHO_C" >&6
20145 else
20146 if test x$gcc_no_link = xyes; then
20147 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20148 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20149 { (exit 1); exit 1; }; }
20150 fi
20151 cat >conftest.$ac_ext <<_ACEOF
20152 /* confdefs.h. */
20153 _ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20159 #define $ac_func innocuous_$ac_func
20160
20161 /* System header to define __stub macros and hopefully few prototypes,
20162 which can conflict with char $ac_func (); below.
20163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20164 <limits.h> exists even on freestanding compilers. */
20165
20166 #ifdef __STDC__
20167 # include <limits.h>
20168 #else
20169 # include <assert.h>
20170 #endif
20171
20172 #undef $ac_func
20173
20174 /* Override any gcc2 internal prototype to avoid an error. */
20175 #ifdef __cplusplus
20176 extern "C"
20177 {
20178 #endif
20179 /* We use char because int might match the return type of a gcc2
20180 builtin and then its argument prototype would still apply. */
20181 char $ac_func ();
20182 /* The GNU C library defines this for functions which it implements
20183 to always fail with ENOSYS. Some functions are actually named
20184 something starting with __ and the normal name is an alias. */
20185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20186 choke me
20187 #else
20188 char (*f) () = $ac_func;
20189 #endif
20190 #ifdef __cplusplus
20191 }
20192 #endif
20193
20194 int
20195 main ()
20196 {
20197 return f != $ac_func;
20198 ;
20199 return 0;
20200 }
20201 _ACEOF
20202 rm -f conftest.$ac_objext conftest$ac_exeext
20203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20204 (eval $ac_link) 2>conftest.er1
20205 ac_status=$?
20206 grep -v '^ *+' conftest.er1 >conftest.err
20207 rm -f conftest.er1
20208 cat conftest.err >&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); } &&
20211 { ac_try='test -z "$ac_c_werror_flag"
20212 || test ! -s conftest.err'
20213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20214 (eval $ac_try) 2>&5
20215 ac_status=$?
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); }; } &&
20218 { ac_try='test -s conftest$ac_exeext'
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20221 ac_status=$?
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; }; then
20224 eval "$as_ac_var=yes"
20225 else
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20228
20229 eval "$as_ac_var=no"
20230 fi
20231 rm -f conftest.err conftest.$ac_objext \
20232 conftest$ac_exeext conftest.$ac_ext
20233 fi
20234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20236 if test `eval echo '${'$as_ac_var'}'` = yes; then
20237 cat >>confdefs.h <<_ACEOF
20238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20239 _ACEOF
20240
20241 fi
20242 done
20243
20244 fi
20245 fi
20246
20247
20248
20249 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
20250 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
20251 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
20252 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 else
20255
20256
20257
20258 ac_ext=cc
20259 ac_cpp='$CXXCPP $CPPFLAGS'
20260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20263
20264 cat >conftest.$ac_ext <<_ACEOF
20265 /* confdefs.h. */
20266 _ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h. */
20270 #include <math.h>
20271 int
20272 main ()
20273 {
20274 fmodl(0, 0);
20275 ;
20276 return 0;
20277 }
20278 _ACEOF
20279 rm -f conftest.$ac_objext
20280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20281 (eval $ac_compile) 2>conftest.er1
20282 ac_status=$?
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } &&
20288 { ac_try='test -z "$ac_cxx_werror_flag"
20289 || test ! -s conftest.err'
20290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291 (eval $ac_try) 2>&5
20292 ac_status=$?
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); }; } &&
20295 { ac_try='test -s conftest.$ac_objext'
20296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20298 ac_status=$?
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; }; then
20301 glibcxx_cv_func_fmodl_use=yes
20302 else
20303 echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20305
20306 glibcxx_cv_func_fmodl_use=no
20307 fi
20308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20309 ac_ext=c
20310 ac_cpp='$CPP $CPPFLAGS'
20311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20314
20315
20316 fi
20317
20318 fi
20319 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
20320 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
20321
20322 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
20323
20324 for ac_func in fmodl
20325 do
20326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20327 echo "$as_me:$LINENO: checking for $ac_func" >&5
20328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20329 if eval "test \"\${$as_ac_var+set}\" = set"; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20331 else
20332 if test x$gcc_no_link = xyes; then
20333 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20334 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20335 { (exit 1); exit 1; }; }
20336 fi
20337 cat >conftest.$ac_ext <<_ACEOF
20338 /* confdefs.h. */
20339 _ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20345 #define $ac_func innocuous_$ac_func
20346
20347 /* System header to define __stub macros and hopefully few prototypes,
20348 which can conflict with char $ac_func (); below.
20349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20350 <limits.h> exists even on freestanding compilers. */
20351
20352 #ifdef __STDC__
20353 # include <limits.h>
20354 #else
20355 # include <assert.h>
20356 #endif
20357
20358 #undef $ac_func
20359
20360 /* Override any gcc2 internal prototype to avoid an error. */
20361 #ifdef __cplusplus
20362 extern "C"
20363 {
20364 #endif
20365 /* We use char because int might match the return type of a gcc2
20366 builtin and then its argument prototype would still apply. */
20367 char $ac_func ();
20368 /* The GNU C library defines this for functions which it implements
20369 to always fail with ENOSYS. Some functions are actually named
20370 something starting with __ and the normal name is an alias. */
20371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20372 choke me
20373 #else
20374 char (*f) () = $ac_func;
20375 #endif
20376 #ifdef __cplusplus
20377 }
20378 #endif
20379
20380 int
20381 main ()
20382 {
20383 return f != $ac_func;
20384 ;
20385 return 0;
20386 }
20387 _ACEOF
20388 rm -f conftest.$ac_objext conftest$ac_exeext
20389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20390 (eval $ac_link) 2>conftest.er1
20391 ac_status=$?
20392 grep -v '^ *+' conftest.er1 >conftest.err
20393 rm -f conftest.er1
20394 cat conftest.err >&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } &&
20397 { ac_try='test -z "$ac_c_werror_flag"
20398 || test ! -s conftest.err'
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; } &&
20404 { ac_try='test -s conftest$ac_exeext'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
20410 eval "$as_ac_var=yes"
20411 else
20412 echo "$as_me: failed program was:" >&5
20413 sed 's/^/| /' conftest.$ac_ext >&5
20414
20415 eval "$as_ac_var=no"
20416 fi
20417 rm -f conftest.err conftest.$ac_objext \
20418 conftest$ac_exeext conftest.$ac_ext
20419 fi
20420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20422 if test `eval echo '${'$as_ac_var'}'` = yes; then
20423 cat >>confdefs.h <<_ACEOF
20424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20425 _ACEOF
20426
20427 fi
20428 done
20429
20430 else
20431
20432 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
20433 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
20434 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
20435 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
20436 echo $ECHO_N "(cached) $ECHO_C" >&6
20437 else
20438
20439
20440
20441 ac_ext=cc
20442 ac_cpp='$CXXCPP $CPPFLAGS'
20443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20446
20447 cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h. */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h. */
20453 #include <math.h>
20454 int
20455 main ()
20456 {
20457 _fmodl(0, 0);
20458 ;
20459 return 0;
20460 }
20461 _ACEOF
20462 rm -f conftest.$ac_objext
20463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20464 (eval $ac_compile) 2>conftest.er1
20465 ac_status=$?
20466 grep -v '^ *+' conftest.er1 >conftest.err
20467 rm -f conftest.er1
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
20471 { ac_try='test -z "$ac_cxx_werror_flag"
20472 || test ! -s conftest.err'
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20475 ac_status=$?
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; } &&
20478 { ac_try='test -s conftest.$ac_objext'
20479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20480 (eval $ac_try) 2>&5
20481 ac_status=$?
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; }; then
20484 glibcxx_cv_func__fmodl_use=yes
20485 else
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488
20489 glibcxx_cv_func__fmodl_use=no
20490 fi
20491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20492 ac_ext=c
20493 ac_cpp='$CPP $CPPFLAGS'
20494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20497
20498
20499 fi
20500
20501 fi
20502 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
20503 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
20504
20505 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
20506
20507 for ac_func in _fmodl
20508 do
20509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20510 echo "$as_me:$LINENO: checking for $ac_func" >&5
20511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20512 if eval "test \"\${$as_ac_var+set}\" = set"; then
20513 echo $ECHO_N "(cached) $ECHO_C" >&6
20514 else
20515 if test x$gcc_no_link = xyes; then
20516 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20517 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20518 { (exit 1); exit 1; }; }
20519 fi
20520 cat >conftest.$ac_ext <<_ACEOF
20521 /* confdefs.h. */
20522 _ACEOF
20523 cat confdefs.h >>conftest.$ac_ext
20524 cat >>conftest.$ac_ext <<_ACEOF
20525 /* end confdefs.h. */
20526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20528 #define $ac_func innocuous_$ac_func
20529
20530 /* System header to define __stub macros and hopefully few prototypes,
20531 which can conflict with char $ac_func (); below.
20532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20533 <limits.h> exists even on freestanding compilers. */
20534
20535 #ifdef __STDC__
20536 # include <limits.h>
20537 #else
20538 # include <assert.h>
20539 #endif
20540
20541 #undef $ac_func
20542
20543 /* Override any gcc2 internal prototype to avoid an error. */
20544 #ifdef __cplusplus
20545 extern "C"
20546 {
20547 #endif
20548 /* We use char because int might match the return type of a gcc2
20549 builtin and then its argument prototype would still apply. */
20550 char $ac_func ();
20551 /* The GNU C library defines this for functions which it implements
20552 to always fail with ENOSYS. Some functions are actually named
20553 something starting with __ and the normal name is an alias. */
20554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20555 choke me
20556 #else
20557 char (*f) () = $ac_func;
20558 #endif
20559 #ifdef __cplusplus
20560 }
20561 #endif
20562
20563 int
20564 main ()
20565 {
20566 return f != $ac_func;
20567 ;
20568 return 0;
20569 }
20570 _ACEOF
20571 rm -f conftest.$ac_objext conftest$ac_exeext
20572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20573 (eval $ac_link) 2>conftest.er1
20574 ac_status=$?
20575 grep -v '^ *+' conftest.er1 >conftest.err
20576 rm -f conftest.er1
20577 cat conftest.err >&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } &&
20580 { ac_try='test -z "$ac_c_werror_flag"
20581 || test ! -s conftest.err'
20582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583 (eval $ac_try) 2>&5
20584 ac_status=$?
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; } &&
20587 { ac_try='test -s conftest$ac_exeext'
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20590 ac_status=$?
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; }; then
20593 eval "$as_ac_var=yes"
20594 else
20595 echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20597
20598 eval "$as_ac_var=no"
20599 fi
20600 rm -f conftest.err conftest.$ac_objext \
20601 conftest$ac_exeext conftest.$ac_ext
20602 fi
20603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20605 if test `eval echo '${'$as_ac_var'}'` = yes; then
20606 cat >>confdefs.h <<_ACEOF
20607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20608 _ACEOF
20609
20610 fi
20611 done
20612
20613 fi
20614 fi
20615
20616
20617
20618 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
20619 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
20620 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
20621 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
20622 echo $ECHO_N "(cached) $ECHO_C" >&6
20623 else
20624
20625
20626
20627 ac_ext=cc
20628 ac_cpp='$CXXCPP $CPPFLAGS'
20629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20632
20633 cat >conftest.$ac_ext <<_ACEOF
20634 /* confdefs.h. */
20635 _ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h. */
20639 #include <math.h>
20640 int
20641 main ()
20642 {
20643 frexpl(0, 0);
20644 ;
20645 return 0;
20646 }
20647 _ACEOF
20648 rm -f conftest.$ac_objext
20649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20650 (eval $ac_compile) 2>conftest.er1
20651 ac_status=$?
20652 grep -v '^ *+' conftest.er1 >conftest.err
20653 rm -f conftest.er1
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } &&
20657 { ac_try='test -z "$ac_cxx_werror_flag"
20658 || test ! -s conftest.err'
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20661 ac_status=$?
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; } &&
20664 { ac_try='test -s conftest.$ac_objext'
20665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20666 (eval $ac_try) 2>&5
20667 ac_status=$?
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); }; }; then
20670 glibcxx_cv_func_frexpl_use=yes
20671 else
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20674
20675 glibcxx_cv_func_frexpl_use=no
20676 fi
20677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20678 ac_ext=c
20679 ac_cpp='$CPP $CPPFLAGS'
20680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20683
20684
20685 fi
20686
20687 fi
20688 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
20689 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
20690
20691 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
20692
20693 for ac_func in frexpl
20694 do
20695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20696 echo "$as_me:$LINENO: checking for $ac_func" >&5
20697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20698 if eval "test \"\${$as_ac_var+set}\" = set"; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
20700 else
20701 if test x$gcc_no_link = xyes; then
20702 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20703 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20704 { (exit 1); exit 1; }; }
20705 fi
20706 cat >conftest.$ac_ext <<_ACEOF
20707 /* confdefs.h. */
20708 _ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h. */
20712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20714 #define $ac_func innocuous_$ac_func
20715
20716 /* System header to define __stub macros and hopefully few prototypes,
20717 which can conflict with char $ac_func (); below.
20718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20719 <limits.h> exists even on freestanding compilers. */
20720
20721 #ifdef __STDC__
20722 # include <limits.h>
20723 #else
20724 # include <assert.h>
20725 #endif
20726
20727 #undef $ac_func
20728
20729 /* Override any gcc2 internal prototype to avoid an error. */
20730 #ifdef __cplusplus
20731 extern "C"
20732 {
20733 #endif
20734 /* We use char because int might match the return type of a gcc2
20735 builtin and then its argument prototype would still apply. */
20736 char $ac_func ();
20737 /* The GNU C library defines this for functions which it implements
20738 to always fail with ENOSYS. Some functions are actually named
20739 something starting with __ and the normal name is an alias. */
20740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20741 choke me
20742 #else
20743 char (*f) () = $ac_func;
20744 #endif
20745 #ifdef __cplusplus
20746 }
20747 #endif
20748
20749 int
20750 main ()
20751 {
20752 return f != $ac_func;
20753 ;
20754 return 0;
20755 }
20756 _ACEOF
20757 rm -f conftest.$ac_objext conftest$ac_exeext
20758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20759 (eval $ac_link) 2>conftest.er1
20760 ac_status=$?
20761 grep -v '^ *+' conftest.er1 >conftest.err
20762 rm -f conftest.er1
20763 cat conftest.err >&5
20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765 (exit $ac_status); } &&
20766 { ac_try='test -z "$ac_c_werror_flag"
20767 || test ! -s conftest.err'
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; } &&
20773 { ac_try='test -s conftest$ac_exeext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 eval "$as_ac_var=yes"
20780 else
20781 echo "$as_me: failed program was:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20783
20784 eval "$as_ac_var=no"
20785 fi
20786 rm -f conftest.err conftest.$ac_objext \
20787 conftest$ac_exeext conftest.$ac_ext
20788 fi
20789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20790 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20791 if test `eval echo '${'$as_ac_var'}'` = yes; then
20792 cat >>confdefs.h <<_ACEOF
20793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20794 _ACEOF
20795
20796 fi
20797 done
20798
20799 else
20800
20801 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
20802 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
20803 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
20804 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
20805 echo $ECHO_N "(cached) $ECHO_C" >&6
20806 else
20807
20808
20809
20810 ac_ext=cc
20811 ac_cpp='$CXXCPP $CPPFLAGS'
20812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20815
20816 cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h. */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20822 #include <math.h>
20823 int
20824 main ()
20825 {
20826 _frexpl(0, 0);
20827 ;
20828 return 0;
20829 }
20830 _ACEOF
20831 rm -f conftest.$ac_objext
20832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20833 (eval $ac_compile) 2>conftest.er1
20834 ac_status=$?
20835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } &&
20840 { ac_try='test -z "$ac_cxx_werror_flag"
20841 || test ! -s conftest.err'
20842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843 (eval $ac_try) 2>&5
20844 ac_status=$?
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; } &&
20847 { ac_try='test -s conftest.$ac_objext'
20848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849 (eval $ac_try) 2>&5
20850 ac_status=$?
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; }; then
20853 glibcxx_cv_func__frexpl_use=yes
20854 else
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20857
20858 glibcxx_cv_func__frexpl_use=no
20859 fi
20860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20861 ac_ext=c
20862 ac_cpp='$CPP $CPPFLAGS'
20863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20866
20867
20868 fi
20869
20870 fi
20871 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
20872 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
20873
20874 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
20875
20876 for ac_func in _frexpl
20877 do
20878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20879 echo "$as_me:$LINENO: checking for $ac_func" >&5
20880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20881 if eval "test \"\${$as_ac_var+set}\" = set"; then
20882 echo $ECHO_N "(cached) $ECHO_C" >&6
20883 else
20884 if test x$gcc_no_link = xyes; then
20885 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20886 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20887 { (exit 1); exit 1; }; }
20888 fi
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h. */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20897 #define $ac_func innocuous_$ac_func
20898
20899 /* System header to define __stub macros and hopefully few prototypes,
20900 which can conflict with char $ac_func (); below.
20901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20902 <limits.h> exists even on freestanding compilers. */
20903
20904 #ifdef __STDC__
20905 # include <limits.h>
20906 #else
20907 # include <assert.h>
20908 #endif
20909
20910 #undef $ac_func
20911
20912 /* Override any gcc2 internal prototype to avoid an error. */
20913 #ifdef __cplusplus
20914 extern "C"
20915 {
20916 #endif
20917 /* We use char because int might match the return type of a gcc2
20918 builtin and then its argument prototype would still apply. */
20919 char $ac_func ();
20920 /* The GNU C library defines this for functions which it implements
20921 to always fail with ENOSYS. Some functions are actually named
20922 something starting with __ and the normal name is an alias. */
20923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20924 choke me
20925 #else
20926 char (*f) () = $ac_func;
20927 #endif
20928 #ifdef __cplusplus
20929 }
20930 #endif
20931
20932 int
20933 main ()
20934 {
20935 return f != $ac_func;
20936 ;
20937 return 0;
20938 }
20939 _ACEOF
20940 rm -f conftest.$ac_objext conftest$ac_exeext
20941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20942 (eval $ac_link) 2>conftest.er1
20943 ac_status=$?
20944 grep -v '^ *+' conftest.er1 >conftest.err
20945 rm -f conftest.er1
20946 cat conftest.err >&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } &&
20949 { ac_try='test -z "$ac_c_werror_flag"
20950 || test ! -s conftest.err'
20951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 (eval $ac_try) 2>&5
20953 ac_status=$?
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); }; } &&
20956 { ac_try='test -s conftest$ac_exeext'
20957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958 (eval $ac_try) 2>&5
20959 ac_status=$?
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; }; then
20962 eval "$as_ac_var=yes"
20963 else
20964 echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.$ac_ext >&5
20966
20967 eval "$as_ac_var=no"
20968 fi
20969 rm -f conftest.err conftest.$ac_objext \
20970 conftest$ac_exeext conftest.$ac_ext
20971 fi
20972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20974 if test `eval echo '${'$as_ac_var'}'` = yes; then
20975 cat >>confdefs.h <<_ACEOF
20976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20977 _ACEOF
20978
20979 fi
20980 done
20981
20982 fi
20983 fi
20984
20985
20986
20987 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
20988 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
20989 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
20990 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
20991 echo $ECHO_N "(cached) $ECHO_C" >&6
20992 else
20993
20994
20995
20996 ac_ext=cc
20997 ac_cpp='$CXXCPP $CPPFLAGS'
20998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21001
21002 cat >conftest.$ac_ext <<_ACEOF
21003 /* confdefs.h. */
21004 _ACEOF
21005 cat confdefs.h >>conftest.$ac_ext
21006 cat >>conftest.$ac_ext <<_ACEOF
21007 /* end confdefs.h. */
21008 #include <math.h>
21009 int
21010 main ()
21011 {
21012 hypotl(0, 0);
21013 ;
21014 return 0;
21015 }
21016 _ACEOF
21017 rm -f conftest.$ac_objext
21018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21019 (eval $ac_compile) 2>conftest.er1
21020 ac_status=$?
21021 grep -v '^ *+' conftest.er1 >conftest.err
21022 rm -f conftest.er1
21023 cat conftest.err >&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); } &&
21026 { ac_try='test -z "$ac_cxx_werror_flag"
21027 || test ! -s conftest.err'
21028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21029 (eval $ac_try) 2>&5
21030 ac_status=$?
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; } &&
21033 { ac_try='test -s conftest.$ac_objext'
21034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035 (eval $ac_try) 2>&5
21036 ac_status=$?
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; }; then
21039 glibcxx_cv_func_hypotl_use=yes
21040 else
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044 glibcxx_cv_func_hypotl_use=no
21045 fi
21046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21047 ac_ext=c
21048 ac_cpp='$CPP $CPPFLAGS'
21049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21052
21053
21054 fi
21055
21056 fi
21057 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
21058 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
21059
21060 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
21061
21062 for ac_func in hypotl
21063 do
21064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21065 echo "$as_me:$LINENO: checking for $ac_func" >&5
21066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21067 if eval "test \"\${$as_ac_var+set}\" = set"; then
21068 echo $ECHO_N "(cached) $ECHO_C" >&6
21069 else
21070 if test x$gcc_no_link = xyes; then
21071 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21072 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21073 { (exit 1); exit 1; }; }
21074 fi
21075 cat >conftest.$ac_ext <<_ACEOF
21076 /* confdefs.h. */
21077 _ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21083 #define $ac_func innocuous_$ac_func
21084
21085 /* System header to define __stub macros and hopefully few prototypes,
21086 which can conflict with char $ac_func (); below.
21087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21088 <limits.h> exists even on freestanding compilers. */
21089
21090 #ifdef __STDC__
21091 # include <limits.h>
21092 #else
21093 # include <assert.h>
21094 #endif
21095
21096 #undef $ac_func
21097
21098 /* Override any gcc2 internal prototype to avoid an error. */
21099 #ifdef __cplusplus
21100 extern "C"
21101 {
21102 #endif
21103 /* We use char because int might match the return type of a gcc2
21104 builtin and then its argument prototype would still apply. */
21105 char $ac_func ();
21106 /* The GNU C library defines this for functions which it implements
21107 to always fail with ENOSYS. Some functions are actually named
21108 something starting with __ and the normal name is an alias. */
21109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21110 choke me
21111 #else
21112 char (*f) () = $ac_func;
21113 #endif
21114 #ifdef __cplusplus
21115 }
21116 #endif
21117
21118 int
21119 main ()
21120 {
21121 return f != $ac_func;
21122 ;
21123 return 0;
21124 }
21125 _ACEOF
21126 rm -f conftest.$ac_objext conftest$ac_exeext
21127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21128 (eval $ac_link) 2>conftest.er1
21129 ac_status=$?
21130 grep -v '^ *+' conftest.er1 >conftest.err
21131 rm -f conftest.er1
21132 cat conftest.err >&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } &&
21135 { ac_try='test -z "$ac_c_werror_flag"
21136 || test ! -s conftest.err'
21137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21138 (eval $ac_try) 2>&5
21139 ac_status=$?
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); }; } &&
21142 { ac_try='test -s conftest$ac_exeext'
21143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144 (eval $ac_try) 2>&5
21145 ac_status=$?
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); }; }; then
21148 eval "$as_ac_var=yes"
21149 else
21150 echo "$as_me: failed program was:" >&5
21151 sed 's/^/| /' conftest.$ac_ext >&5
21152
21153 eval "$as_ac_var=no"
21154 fi
21155 rm -f conftest.err conftest.$ac_objext \
21156 conftest$ac_exeext conftest.$ac_ext
21157 fi
21158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21160 if test `eval echo '${'$as_ac_var'}'` = yes; then
21161 cat >>confdefs.h <<_ACEOF
21162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21163 _ACEOF
21164
21165 fi
21166 done
21167
21168 else
21169
21170 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
21171 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
21172 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
21173 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21175 else
21176
21177
21178
21179 ac_ext=cc
21180 ac_cpp='$CXXCPP $CPPFLAGS'
21181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21184
21185 cat >conftest.$ac_ext <<_ACEOF
21186 /* confdefs.h. */
21187 _ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 #include <math.h>
21192 int
21193 main ()
21194 {
21195 _hypotl(0, 0);
21196 ;
21197 return 0;
21198 }
21199 _ACEOF
21200 rm -f conftest.$ac_objext
21201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21202 (eval $ac_compile) 2>conftest.er1
21203 ac_status=$?
21204 grep -v '^ *+' conftest.er1 >conftest.err
21205 rm -f conftest.er1
21206 cat conftest.err >&5
21207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } &&
21209 { ac_try='test -z "$ac_cxx_werror_flag"
21210 || test ! -s conftest.err'
21211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21212 (eval $ac_try) 2>&5
21213 ac_status=$?
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); }; } &&
21216 { ac_try='test -s conftest.$ac_objext'
21217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21218 (eval $ac_try) 2>&5
21219 ac_status=$?
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); }; }; then
21222 glibcxx_cv_func__hypotl_use=yes
21223 else
21224 echo "$as_me: failed program was:" >&5
21225 sed 's/^/| /' conftest.$ac_ext >&5
21226
21227 glibcxx_cv_func__hypotl_use=no
21228 fi
21229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21230 ac_ext=c
21231 ac_cpp='$CPP $CPPFLAGS'
21232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21235
21236
21237 fi
21238
21239 fi
21240 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
21241 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
21242
21243 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
21244
21245 for ac_func in _hypotl
21246 do
21247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21248 echo "$as_me:$LINENO: checking for $ac_func" >&5
21249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21250 if eval "test \"\${$as_ac_var+set}\" = set"; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21252 else
21253 if test x$gcc_no_link = xyes; then
21254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21256 { (exit 1); exit 1; }; }
21257 fi
21258 cat >conftest.$ac_ext <<_ACEOF
21259 /* confdefs.h. */
21260 _ACEOF
21261 cat confdefs.h >>conftest.$ac_ext
21262 cat >>conftest.$ac_ext <<_ACEOF
21263 /* end confdefs.h. */
21264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21266 #define $ac_func innocuous_$ac_func
21267
21268 /* System header to define __stub macros and hopefully few prototypes,
21269 which can conflict with char $ac_func (); below.
21270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21271 <limits.h> exists even on freestanding compilers. */
21272
21273 #ifdef __STDC__
21274 # include <limits.h>
21275 #else
21276 # include <assert.h>
21277 #endif
21278
21279 #undef $ac_func
21280
21281 /* Override any gcc2 internal prototype to avoid an error. */
21282 #ifdef __cplusplus
21283 extern "C"
21284 {
21285 #endif
21286 /* We use char because int might match the return type of a gcc2
21287 builtin and then its argument prototype would still apply. */
21288 char $ac_func ();
21289 /* The GNU C library defines this for functions which it implements
21290 to always fail with ENOSYS. Some functions are actually named
21291 something starting with __ and the normal name is an alias. */
21292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21293 choke me
21294 #else
21295 char (*f) () = $ac_func;
21296 #endif
21297 #ifdef __cplusplus
21298 }
21299 #endif
21300
21301 int
21302 main ()
21303 {
21304 return f != $ac_func;
21305 ;
21306 return 0;
21307 }
21308 _ACEOF
21309 rm -f conftest.$ac_objext conftest$ac_exeext
21310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21311 (eval $ac_link) 2>conftest.er1
21312 ac_status=$?
21313 grep -v '^ *+' conftest.er1 >conftest.err
21314 rm -f conftest.er1
21315 cat conftest.err >&5
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); } &&
21318 { ac_try='test -z "$ac_c_werror_flag"
21319 || test ! -s conftest.err'
21320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321 (eval $ac_try) 2>&5
21322 ac_status=$?
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; } &&
21325 { ac_try='test -s conftest$ac_exeext'
21326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327 (eval $ac_try) 2>&5
21328 ac_status=$?
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); }; }; then
21331 eval "$as_ac_var=yes"
21332 else
21333 echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21335
21336 eval "$as_ac_var=no"
21337 fi
21338 rm -f conftest.err conftest.$ac_objext \
21339 conftest$ac_exeext conftest.$ac_ext
21340 fi
21341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21343 if test `eval echo '${'$as_ac_var'}'` = yes; then
21344 cat >>confdefs.h <<_ACEOF
21345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21346 _ACEOF
21347
21348 fi
21349 done
21350
21351 fi
21352 fi
21353
21354
21355
21356 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
21357 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
21358 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
21359 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
21360 echo $ECHO_N "(cached) $ECHO_C" >&6
21361 else
21362
21363
21364
21365 ac_ext=cc
21366 ac_cpp='$CXXCPP $CPPFLAGS'
21367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21370
21371 cat >conftest.$ac_ext <<_ACEOF
21372 /* confdefs.h. */
21373 _ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h. */
21377 #include <math.h>
21378 int
21379 main ()
21380 {
21381 ldexpl(0, 0);
21382 ;
21383 return 0;
21384 }
21385 _ACEOF
21386 rm -f conftest.$ac_objext
21387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21388 (eval $ac_compile) 2>conftest.er1
21389 ac_status=$?
21390 grep -v '^ *+' conftest.er1 >conftest.err
21391 rm -f conftest.er1
21392 cat conftest.err >&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); } &&
21395 { ac_try='test -z "$ac_cxx_werror_flag"
21396 || test ! -s conftest.err'
21397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398 (eval $ac_try) 2>&5
21399 ac_status=$?
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); }; } &&
21402 { ac_try='test -s conftest.$ac_objext'
21403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404 (eval $ac_try) 2>&5
21405 ac_status=$?
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); }; }; then
21408 glibcxx_cv_func_ldexpl_use=yes
21409 else
21410 echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21412
21413 glibcxx_cv_func_ldexpl_use=no
21414 fi
21415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21416 ac_ext=c
21417 ac_cpp='$CPP $CPPFLAGS'
21418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21421
21422
21423 fi
21424
21425 fi
21426 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
21427 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
21428
21429 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
21430
21431 for ac_func in ldexpl
21432 do
21433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21434 echo "$as_me:$LINENO: checking for $ac_func" >&5
21435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21436 if eval "test \"\${$as_ac_var+set}\" = set"; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21438 else
21439 if test x$gcc_no_link = xyes; then
21440 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21441 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21442 { (exit 1); exit 1; }; }
21443 fi
21444 cat >conftest.$ac_ext <<_ACEOF
21445 /* confdefs.h. */
21446 _ACEOF
21447 cat confdefs.h >>conftest.$ac_ext
21448 cat >>conftest.$ac_ext <<_ACEOF
21449 /* end confdefs.h. */
21450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21452 #define $ac_func innocuous_$ac_func
21453
21454 /* System header to define __stub macros and hopefully few prototypes,
21455 which can conflict with char $ac_func (); below.
21456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21457 <limits.h> exists even on freestanding compilers. */
21458
21459 #ifdef __STDC__
21460 # include <limits.h>
21461 #else
21462 # include <assert.h>
21463 #endif
21464
21465 #undef $ac_func
21466
21467 /* Override any gcc2 internal prototype to avoid an error. */
21468 #ifdef __cplusplus
21469 extern "C"
21470 {
21471 #endif
21472 /* We use char because int might match the return type of a gcc2
21473 builtin and then its argument prototype would still apply. */
21474 char $ac_func ();
21475 /* The GNU C library defines this for functions which it implements
21476 to always fail with ENOSYS. Some functions are actually named
21477 something starting with __ and the normal name is an alias. */
21478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21479 choke me
21480 #else
21481 char (*f) () = $ac_func;
21482 #endif
21483 #ifdef __cplusplus
21484 }
21485 #endif
21486
21487 int
21488 main ()
21489 {
21490 return f != $ac_func;
21491 ;
21492 return 0;
21493 }
21494 _ACEOF
21495 rm -f conftest.$ac_objext conftest$ac_exeext
21496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21497 (eval $ac_link) 2>conftest.er1
21498 ac_status=$?
21499 grep -v '^ *+' conftest.er1 >conftest.err
21500 rm -f conftest.er1
21501 cat conftest.err >&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); } &&
21504 { ac_try='test -z "$ac_c_werror_flag"
21505 || test ! -s conftest.err'
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; } &&
21511 { ac_try='test -s conftest$ac_exeext'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; }; then
21517 eval "$as_ac_var=yes"
21518 else
21519 echo "$as_me: failed program was:" >&5
21520 sed 's/^/| /' conftest.$ac_ext >&5
21521
21522 eval "$as_ac_var=no"
21523 fi
21524 rm -f conftest.err conftest.$ac_objext \
21525 conftest$ac_exeext conftest.$ac_ext
21526 fi
21527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21528 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21529 if test `eval echo '${'$as_ac_var'}'` = yes; then
21530 cat >>confdefs.h <<_ACEOF
21531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21532 _ACEOF
21533
21534 fi
21535 done
21536
21537 else
21538
21539 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
21540 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
21541 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
21542 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
21543 echo $ECHO_N "(cached) $ECHO_C" >&6
21544 else
21545
21546
21547
21548 ac_ext=cc
21549 ac_cpp='$CXXCPP $CPPFLAGS'
21550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21553
21554 cat >conftest.$ac_ext <<_ACEOF
21555 /* confdefs.h. */
21556 _ACEOF
21557 cat confdefs.h >>conftest.$ac_ext
21558 cat >>conftest.$ac_ext <<_ACEOF
21559 /* end confdefs.h. */
21560 #include <math.h>
21561 int
21562 main ()
21563 {
21564 _ldexpl(0, 0);
21565 ;
21566 return 0;
21567 }
21568 _ACEOF
21569 rm -f conftest.$ac_objext
21570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21571 (eval $ac_compile) 2>conftest.er1
21572 ac_status=$?
21573 grep -v '^ *+' conftest.er1 >conftest.err
21574 rm -f conftest.er1
21575 cat conftest.err >&5
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } &&
21578 { ac_try='test -z "$ac_cxx_werror_flag"
21579 || test ! -s conftest.err'
21580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581 (eval $ac_try) 2>&5
21582 ac_status=$?
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; } &&
21585 { ac_try='test -s conftest.$ac_objext'
21586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587 (eval $ac_try) 2>&5
21588 ac_status=$?
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; }; then
21591 glibcxx_cv_func__ldexpl_use=yes
21592 else
21593 echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21595
21596 glibcxx_cv_func__ldexpl_use=no
21597 fi
21598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21599 ac_ext=c
21600 ac_cpp='$CPP $CPPFLAGS'
21601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21604
21605
21606 fi
21607
21608 fi
21609 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
21610 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
21611
21612 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
21613
21614 for ac_func in _ldexpl
21615 do
21616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21617 echo "$as_me:$LINENO: checking for $ac_func" >&5
21618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21619 if eval "test \"\${$as_ac_var+set}\" = set"; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21621 else
21622 if test x$gcc_no_link = xyes; then
21623 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21624 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21625 { (exit 1); exit 1; }; }
21626 fi
21627 cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h. */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21635 #define $ac_func innocuous_$ac_func
21636
21637 /* System header to define __stub macros and hopefully few prototypes,
21638 which can conflict with char $ac_func (); below.
21639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21640 <limits.h> exists even on freestanding compilers. */
21641
21642 #ifdef __STDC__
21643 # include <limits.h>
21644 #else
21645 # include <assert.h>
21646 #endif
21647
21648 #undef $ac_func
21649
21650 /* Override any gcc2 internal prototype to avoid an error. */
21651 #ifdef __cplusplus
21652 extern "C"
21653 {
21654 #endif
21655 /* We use char because int might match the return type of a gcc2
21656 builtin and then its argument prototype would still apply. */
21657 char $ac_func ();
21658 /* The GNU C library defines this for functions which it implements
21659 to always fail with ENOSYS. Some functions are actually named
21660 something starting with __ and the normal name is an alias. */
21661 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21662 choke me
21663 #else
21664 char (*f) () = $ac_func;
21665 #endif
21666 #ifdef __cplusplus
21667 }
21668 #endif
21669
21670 int
21671 main ()
21672 {
21673 return f != $ac_func;
21674 ;
21675 return 0;
21676 }
21677 _ACEOF
21678 rm -f conftest.$ac_objext conftest$ac_exeext
21679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21680 (eval $ac_link) 2>conftest.er1
21681 ac_status=$?
21682 grep -v '^ *+' conftest.er1 >conftest.err
21683 rm -f conftest.er1
21684 cat conftest.err >&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } &&
21687 { ac_try='test -z "$ac_c_werror_flag"
21688 || test ! -s conftest.err'
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21691 ac_status=$?
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; } &&
21694 { ac_try='test -s conftest$ac_exeext'
21695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; }; then
21700 eval "$as_ac_var=yes"
21701 else
21702 echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21704
21705 eval "$as_ac_var=no"
21706 fi
21707 rm -f conftest.err conftest.$ac_objext \
21708 conftest$ac_exeext conftest.$ac_ext
21709 fi
21710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21712 if test `eval echo '${'$as_ac_var'}'` = yes; then
21713 cat >>confdefs.h <<_ACEOF
21714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21715 _ACEOF
21716
21717 fi
21718 done
21719
21720 fi
21721 fi
21722
21723
21724
21725 echo "$as_me:$LINENO: checking for logl declaration" >&5
21726 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
21727 if test x${glibcxx_cv_func_logl_use+set} != xset; then
21728 if test "${glibcxx_cv_func_logl_use+set}" = set; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21730 else
21731
21732
21733
21734 ac_ext=cc
21735 ac_cpp='$CXXCPP $CPPFLAGS'
21736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21739
21740 cat >conftest.$ac_ext <<_ACEOF
21741 /* confdefs.h. */
21742 _ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 #include <math.h>
21747 #ifdef HAVE_IEEEFP_H
21748 #include <ieeefp.h>
21749 #endif
21750
21751 int
21752 main ()
21753 {
21754 logl(0);
21755 ;
21756 return 0;
21757 }
21758 _ACEOF
21759 rm -f conftest.$ac_objext
21760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21761 (eval $ac_compile) 2>conftest.er1
21762 ac_status=$?
21763 grep -v '^ *+' conftest.er1 >conftest.err
21764 rm -f conftest.er1
21765 cat conftest.err >&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); } &&
21768 { ac_try='test -z "$ac_cxx_werror_flag"
21769 || test ! -s conftest.err'
21770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21771 (eval $ac_try) 2>&5
21772 ac_status=$?
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); }; } &&
21775 { ac_try='test -s conftest.$ac_objext'
21776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21777 (eval $ac_try) 2>&5
21778 ac_status=$?
21779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780 (exit $ac_status); }; }; then
21781 glibcxx_cv_func_logl_use=yes
21782 else
21783 echo "$as_me: failed program was:" >&5
21784 sed 's/^/| /' conftest.$ac_ext >&5
21785
21786 glibcxx_cv_func_logl_use=no
21787 fi
21788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21789 ac_ext=c
21790 ac_cpp='$CPP $CPPFLAGS'
21791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21794
21795
21796 fi
21797
21798 fi
21799 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
21800 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
21801
21802 if test x$glibcxx_cv_func_logl_use = x"yes"; then
21803
21804 for ac_func in logl
21805 do
21806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21807 echo "$as_me:$LINENO: checking for $ac_func" >&5
21808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21809 if eval "test \"\${$as_ac_var+set}\" = set"; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 else
21812 if test x$gcc_no_link = xyes; then
21813 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21814 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21815 { (exit 1); exit 1; }; }
21816 fi
21817 cat >conftest.$ac_ext <<_ACEOF
21818 /* confdefs.h. */
21819 _ACEOF
21820 cat confdefs.h >>conftest.$ac_ext
21821 cat >>conftest.$ac_ext <<_ACEOF
21822 /* end confdefs.h. */
21823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21825 #define $ac_func innocuous_$ac_func
21826
21827 /* System header to define __stub macros and hopefully few prototypes,
21828 which can conflict with char $ac_func (); below.
21829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21830 <limits.h> exists even on freestanding compilers. */
21831
21832 #ifdef __STDC__
21833 # include <limits.h>
21834 #else
21835 # include <assert.h>
21836 #endif
21837
21838 #undef $ac_func
21839
21840 /* Override any gcc2 internal prototype to avoid an error. */
21841 #ifdef __cplusplus
21842 extern "C"
21843 {
21844 #endif
21845 /* We use char because int might match the return type of a gcc2
21846 builtin and then its argument prototype would still apply. */
21847 char $ac_func ();
21848 /* The GNU C library defines this for functions which it implements
21849 to always fail with ENOSYS. Some functions are actually named
21850 something starting with __ and the normal name is an alias. */
21851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21852 choke me
21853 #else
21854 char (*f) () = $ac_func;
21855 #endif
21856 #ifdef __cplusplus
21857 }
21858 #endif
21859
21860 int
21861 main ()
21862 {
21863 return f != $ac_func;
21864 ;
21865 return 0;
21866 }
21867 _ACEOF
21868 rm -f conftest.$ac_objext conftest$ac_exeext
21869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21870 (eval $ac_link) 2>conftest.er1
21871 ac_status=$?
21872 grep -v '^ *+' conftest.er1 >conftest.err
21873 rm -f conftest.er1
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } &&
21877 { ac_try='test -z "$ac_c_werror_flag"
21878 || test ! -s conftest.err'
21879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880 (eval $ac_try) 2>&5
21881 ac_status=$?
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; } &&
21884 { ac_try='test -s conftest$ac_exeext'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21887 ac_status=$?
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; }; then
21890 eval "$as_ac_var=yes"
21891 else
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21894
21895 eval "$as_ac_var=no"
21896 fi
21897 rm -f conftest.err conftest.$ac_objext \
21898 conftest$ac_exeext conftest.$ac_ext
21899 fi
21900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21902 if test `eval echo '${'$as_ac_var'}'` = yes; then
21903 cat >>confdefs.h <<_ACEOF
21904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21905 _ACEOF
21906
21907 fi
21908 done
21909
21910 else
21911
21912 echo "$as_me:$LINENO: checking for _logl declaration" >&5
21913 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
21914 if test x${glibcxx_cv_func__logl_use+set} != xset; then
21915 if test "${glibcxx_cv_func__logl_use+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21917 else
21918
21919
21920
21921 ac_ext=cc
21922 ac_cpp='$CXXCPP $CPPFLAGS'
21923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21926
21927 cat >conftest.$ac_ext <<_ACEOF
21928 /* confdefs.h. */
21929 _ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h. */
21933 #include <math.h>
21934 #ifdef HAVE_IEEEFP_H
21935 #include <ieeefp.h>
21936 #endif
21937
21938 int
21939 main ()
21940 {
21941 _logl(0);
21942 ;
21943 return 0;
21944 }
21945 _ACEOF
21946 rm -f conftest.$ac_objext
21947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21948 (eval $ac_compile) 2>conftest.er1
21949 ac_status=$?
21950 grep -v '^ *+' conftest.er1 >conftest.err
21951 rm -f conftest.er1
21952 cat conftest.err >&5
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); } &&
21955 { ac_try='test -z "$ac_cxx_werror_flag"
21956 || test ! -s conftest.err'
21957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958 (eval $ac_try) 2>&5
21959 ac_status=$?
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); }; } &&
21962 { ac_try='test -s conftest.$ac_objext'
21963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; }; then
21968 glibcxx_cv_func__logl_use=yes
21969 else
21970 echo "$as_me: failed program was:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21972
21973 glibcxx_cv_func__logl_use=no
21974 fi
21975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21976 ac_ext=c
21977 ac_cpp='$CPP $CPPFLAGS'
21978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21981
21982
21983 fi
21984
21985 fi
21986 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
21987 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
21988
21989 if test x$glibcxx_cv_func__logl_use = x"yes"; then
21990
21991 for ac_func in _logl
21992 do
21993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21994 echo "$as_me:$LINENO: checking for $ac_func" >&5
21995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21996 if eval "test \"\${$as_ac_var+set}\" = set"; then
21997 echo $ECHO_N "(cached) $ECHO_C" >&6
21998 else
21999 if test x$gcc_no_link = xyes; then
22000 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22001 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22002 { (exit 1); exit 1; }; }
22003 fi
22004 cat >conftest.$ac_ext <<_ACEOF
22005 /* confdefs.h. */
22006 _ACEOF
22007 cat confdefs.h >>conftest.$ac_ext
22008 cat >>conftest.$ac_ext <<_ACEOF
22009 /* end confdefs.h. */
22010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22012 #define $ac_func innocuous_$ac_func
22013
22014 /* System header to define __stub macros and hopefully few prototypes,
22015 which can conflict with char $ac_func (); below.
22016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22017 <limits.h> exists even on freestanding compilers. */
22018
22019 #ifdef __STDC__
22020 # include <limits.h>
22021 #else
22022 # include <assert.h>
22023 #endif
22024
22025 #undef $ac_func
22026
22027 /* Override any gcc2 internal prototype to avoid an error. */
22028 #ifdef __cplusplus
22029 extern "C"
22030 {
22031 #endif
22032 /* We use char because int might match the return type of a gcc2
22033 builtin and then its argument prototype would still apply. */
22034 char $ac_func ();
22035 /* The GNU C library defines this for functions which it implements
22036 to always fail with ENOSYS. Some functions are actually named
22037 something starting with __ and the normal name is an alias. */
22038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22039 choke me
22040 #else
22041 char (*f) () = $ac_func;
22042 #endif
22043 #ifdef __cplusplus
22044 }
22045 #endif
22046
22047 int
22048 main ()
22049 {
22050 return f != $ac_func;
22051 ;
22052 return 0;
22053 }
22054 _ACEOF
22055 rm -f conftest.$ac_objext conftest$ac_exeext
22056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22057 (eval $ac_link) 2>conftest.er1
22058 ac_status=$?
22059 grep -v '^ *+' conftest.er1 >conftest.err
22060 rm -f conftest.er1
22061 cat conftest.err >&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); } &&
22064 { ac_try='test -z "$ac_c_werror_flag"
22065 || test ! -s conftest.err'
22066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22067 (eval $ac_try) 2>&5
22068 ac_status=$?
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); }; } &&
22071 { ac_try='test -s conftest$ac_exeext'
22072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073 (eval $ac_try) 2>&5
22074 ac_status=$?
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; }; then
22077 eval "$as_ac_var=yes"
22078 else
22079 echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22081
22082 eval "$as_ac_var=no"
22083 fi
22084 rm -f conftest.err conftest.$ac_objext \
22085 conftest$ac_exeext conftest.$ac_ext
22086 fi
22087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22089 if test `eval echo '${'$as_ac_var'}'` = yes; then
22090 cat >>confdefs.h <<_ACEOF
22091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22092 _ACEOF
22093
22094 fi
22095 done
22096
22097 fi
22098 fi
22099
22100
22101
22102 echo "$as_me:$LINENO: checking for log10l declaration" >&5
22103 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
22104 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
22105 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
22106 echo $ECHO_N "(cached) $ECHO_C" >&6
22107 else
22108
22109
22110
22111 ac_ext=cc
22112 ac_cpp='$CXXCPP $CPPFLAGS'
22113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22116
22117 cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h. */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 #include <math.h>
22124 #ifdef HAVE_IEEEFP_H
22125 #include <ieeefp.h>
22126 #endif
22127
22128 int
22129 main ()
22130 {
22131 log10l(0);
22132 ;
22133 return 0;
22134 }
22135 _ACEOF
22136 rm -f conftest.$ac_objext
22137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22138 (eval $ac_compile) 2>conftest.er1
22139 ac_status=$?
22140 grep -v '^ *+' conftest.er1 >conftest.err
22141 rm -f conftest.er1
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } &&
22145 { ac_try='test -z "$ac_cxx_werror_flag"
22146 || test ! -s conftest.err'
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; } &&
22152 { ac_try='test -s conftest.$ac_objext'
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; }; then
22158 glibcxx_cv_func_log10l_use=yes
22159 else
22160 echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22162
22163 glibcxx_cv_func_log10l_use=no
22164 fi
22165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22166 ac_ext=c
22167 ac_cpp='$CPP $CPPFLAGS'
22168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22171
22172
22173 fi
22174
22175 fi
22176 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
22177 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
22178
22179 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
22180
22181 for ac_func in log10l
22182 do
22183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22184 echo "$as_me:$LINENO: checking for $ac_func" >&5
22185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22186 if eval "test \"\${$as_ac_var+set}\" = set"; then
22187 echo $ECHO_N "(cached) $ECHO_C" >&6
22188 else
22189 if test x$gcc_no_link = xyes; then
22190 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22191 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22192 { (exit 1); exit 1; }; }
22193 fi
22194 cat >conftest.$ac_ext <<_ACEOF
22195 /* confdefs.h. */
22196 _ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22202 #define $ac_func innocuous_$ac_func
22203
22204 /* System header to define __stub macros and hopefully few prototypes,
22205 which can conflict with char $ac_func (); below.
22206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22207 <limits.h> exists even on freestanding compilers. */
22208
22209 #ifdef __STDC__
22210 # include <limits.h>
22211 #else
22212 # include <assert.h>
22213 #endif
22214
22215 #undef $ac_func
22216
22217 /* Override any gcc2 internal prototype to avoid an error. */
22218 #ifdef __cplusplus
22219 extern "C"
22220 {
22221 #endif
22222 /* We use char because int might match the return type of a gcc2
22223 builtin and then its argument prototype would still apply. */
22224 char $ac_func ();
22225 /* The GNU C library defines this for functions which it implements
22226 to always fail with ENOSYS. Some functions are actually named
22227 something starting with __ and the normal name is an alias. */
22228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22229 choke me
22230 #else
22231 char (*f) () = $ac_func;
22232 #endif
22233 #ifdef __cplusplus
22234 }
22235 #endif
22236
22237 int
22238 main ()
22239 {
22240 return f != $ac_func;
22241 ;
22242 return 0;
22243 }
22244 _ACEOF
22245 rm -f conftest.$ac_objext conftest$ac_exeext
22246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22247 (eval $ac_link) 2>conftest.er1
22248 ac_status=$?
22249 grep -v '^ *+' conftest.er1 >conftest.err
22250 rm -f conftest.er1
22251 cat conftest.err >&5
22252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253 (exit $ac_status); } &&
22254 { ac_try='test -z "$ac_c_werror_flag"
22255 || test ! -s conftest.err'
22256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22257 (eval $ac_try) 2>&5
22258 ac_status=$?
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); }; } &&
22261 { ac_try='test -s conftest$ac_exeext'
22262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22263 (eval $ac_try) 2>&5
22264 ac_status=$?
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }; }; then
22267 eval "$as_ac_var=yes"
22268 else
22269 echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22271
22272 eval "$as_ac_var=no"
22273 fi
22274 rm -f conftest.err conftest.$ac_objext \
22275 conftest$ac_exeext conftest.$ac_ext
22276 fi
22277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22279 if test `eval echo '${'$as_ac_var'}'` = yes; then
22280 cat >>confdefs.h <<_ACEOF
22281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22282 _ACEOF
22283
22284 fi
22285 done
22286
22287 else
22288
22289 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
22290 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
22291 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
22292 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
22293 echo $ECHO_N "(cached) $ECHO_C" >&6
22294 else
22295
22296
22297
22298 ac_ext=cc
22299 ac_cpp='$CXXCPP $CPPFLAGS'
22300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22303
22304 cat >conftest.$ac_ext <<_ACEOF
22305 /* confdefs.h. */
22306 _ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h. */
22310 #include <math.h>
22311 #ifdef HAVE_IEEEFP_H
22312 #include <ieeefp.h>
22313 #endif
22314
22315 int
22316 main ()
22317 {
22318 _log10l(0);
22319 ;
22320 return 0;
22321 }
22322 _ACEOF
22323 rm -f conftest.$ac_objext
22324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22325 (eval $ac_compile) 2>conftest.er1
22326 ac_status=$?
22327 grep -v '^ *+' conftest.er1 >conftest.err
22328 rm -f conftest.er1
22329 cat conftest.err >&5
22330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22331 (exit $ac_status); } &&
22332 { ac_try='test -z "$ac_cxx_werror_flag"
22333 || test ! -s conftest.err'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22336 ac_status=$?
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; } &&
22339 { ac_try='test -s conftest.$ac_objext'
22340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22341 (eval $ac_try) 2>&5
22342 ac_status=$?
22343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); }; }; then
22345 glibcxx_cv_func__log10l_use=yes
22346 else
22347 echo "$as_me: failed program was:" >&5
22348 sed 's/^/| /' conftest.$ac_ext >&5
22349
22350 glibcxx_cv_func__log10l_use=no
22351 fi
22352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22353 ac_ext=c
22354 ac_cpp='$CPP $CPPFLAGS'
22355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22358
22359
22360 fi
22361
22362 fi
22363 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
22364 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
22365
22366 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
22367
22368 for ac_func in _log10l
22369 do
22370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22371 echo "$as_me:$LINENO: checking for $ac_func" >&5
22372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22373 if eval "test \"\${$as_ac_var+set}\" = set"; then
22374 echo $ECHO_N "(cached) $ECHO_C" >&6
22375 else
22376 if test x$gcc_no_link = xyes; then
22377 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22378 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22379 { (exit 1); exit 1; }; }
22380 fi
22381 cat >conftest.$ac_ext <<_ACEOF
22382 /* confdefs.h. */
22383 _ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h. */
22387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22389 #define $ac_func innocuous_$ac_func
22390
22391 /* System header to define __stub macros and hopefully few prototypes,
22392 which can conflict with char $ac_func (); below.
22393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22394 <limits.h> exists even on freestanding compilers. */
22395
22396 #ifdef __STDC__
22397 # include <limits.h>
22398 #else
22399 # include <assert.h>
22400 #endif
22401
22402 #undef $ac_func
22403
22404 /* Override any gcc2 internal prototype to avoid an error. */
22405 #ifdef __cplusplus
22406 extern "C"
22407 {
22408 #endif
22409 /* We use char because int might match the return type of a gcc2
22410 builtin and then its argument prototype would still apply. */
22411 char $ac_func ();
22412 /* The GNU C library defines this for functions which it implements
22413 to always fail with ENOSYS. Some functions are actually named
22414 something starting with __ and the normal name is an alias. */
22415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22416 choke me
22417 #else
22418 char (*f) () = $ac_func;
22419 #endif
22420 #ifdef __cplusplus
22421 }
22422 #endif
22423
22424 int
22425 main ()
22426 {
22427 return f != $ac_func;
22428 ;
22429 return 0;
22430 }
22431 _ACEOF
22432 rm -f conftest.$ac_objext conftest$ac_exeext
22433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22434 (eval $ac_link) 2>conftest.er1
22435 ac_status=$?
22436 grep -v '^ *+' conftest.er1 >conftest.err
22437 rm -f conftest.er1
22438 cat conftest.err >&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } &&
22441 { ac_try='test -z "$ac_c_werror_flag"
22442 || test ! -s conftest.err'
22443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444 (eval $ac_try) 2>&5
22445 ac_status=$?
22446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447 (exit $ac_status); }; } &&
22448 { ac_try='test -s conftest$ac_exeext'
22449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450 (eval $ac_try) 2>&5
22451 ac_status=$?
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); }; }; then
22454 eval "$as_ac_var=yes"
22455 else
22456 echo "$as_me: failed program was:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22458
22459 eval "$as_ac_var=no"
22460 fi
22461 rm -f conftest.err conftest.$ac_objext \
22462 conftest$ac_exeext conftest.$ac_ext
22463 fi
22464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22466 if test `eval echo '${'$as_ac_var'}'` = yes; then
22467 cat >>confdefs.h <<_ACEOF
22468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22469 _ACEOF
22470
22471 fi
22472 done
22473
22474 fi
22475 fi
22476
22477
22478
22479 echo "$as_me:$LINENO: checking for modfl declaration" >&5
22480 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
22481 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
22482 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
22483 echo $ECHO_N "(cached) $ECHO_C" >&6
22484 else
22485
22486
22487
22488 ac_ext=cc
22489 ac_cpp='$CXXCPP $CPPFLAGS'
22490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22493
22494 cat >conftest.$ac_ext <<_ACEOF
22495 /* confdefs.h. */
22496 _ACEOF
22497 cat confdefs.h >>conftest.$ac_ext
22498 cat >>conftest.$ac_ext <<_ACEOF
22499 /* end confdefs.h. */
22500 #include <math.h>
22501 int
22502 main ()
22503 {
22504 modfl(0, 0);
22505 ;
22506 return 0;
22507 }
22508 _ACEOF
22509 rm -f conftest.$ac_objext
22510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22511 (eval $ac_compile) 2>conftest.er1
22512 ac_status=$?
22513 grep -v '^ *+' conftest.er1 >conftest.err
22514 rm -f conftest.er1
22515 cat conftest.err >&5
22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517 (exit $ac_status); } &&
22518 { ac_try='test -z "$ac_cxx_werror_flag"
22519 || test ! -s conftest.err'
22520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22521 (eval $ac_try) 2>&5
22522 ac_status=$?
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); }; } &&
22525 { ac_try='test -s conftest.$ac_objext'
22526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22527 (eval $ac_try) 2>&5
22528 ac_status=$?
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); }; }; then
22531 glibcxx_cv_func_modfl_use=yes
22532 else
22533 echo "$as_me: failed program was:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22535
22536 glibcxx_cv_func_modfl_use=no
22537 fi
22538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22539 ac_ext=c
22540 ac_cpp='$CPP $CPPFLAGS'
22541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22544
22545
22546 fi
22547
22548 fi
22549 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
22550 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
22551
22552 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
22553
22554 for ac_func in modfl
22555 do
22556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22557 echo "$as_me:$LINENO: checking for $ac_func" >&5
22558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22559 if eval "test \"\${$as_ac_var+set}\" = set"; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22561 else
22562 if test x$gcc_no_link = xyes; then
22563 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22564 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22565 { (exit 1); exit 1; }; }
22566 fi
22567 cat >conftest.$ac_ext <<_ACEOF
22568 /* confdefs.h. */
22569 _ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h. */
22573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22575 #define $ac_func innocuous_$ac_func
22576
22577 /* System header to define __stub macros and hopefully few prototypes,
22578 which can conflict with char $ac_func (); below.
22579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22580 <limits.h> exists even on freestanding compilers. */
22581
22582 #ifdef __STDC__
22583 # include <limits.h>
22584 #else
22585 # include <assert.h>
22586 #endif
22587
22588 #undef $ac_func
22589
22590 /* Override any gcc2 internal prototype to avoid an error. */
22591 #ifdef __cplusplus
22592 extern "C"
22593 {
22594 #endif
22595 /* We use char because int might match the return type of a gcc2
22596 builtin and then its argument prototype would still apply. */
22597 char $ac_func ();
22598 /* The GNU C library defines this for functions which it implements
22599 to always fail with ENOSYS. Some functions are actually named
22600 something starting with __ and the normal name is an alias. */
22601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22602 choke me
22603 #else
22604 char (*f) () = $ac_func;
22605 #endif
22606 #ifdef __cplusplus
22607 }
22608 #endif
22609
22610 int
22611 main ()
22612 {
22613 return f != $ac_func;
22614 ;
22615 return 0;
22616 }
22617 _ACEOF
22618 rm -f conftest.$ac_objext conftest$ac_exeext
22619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22620 (eval $ac_link) 2>conftest.er1
22621 ac_status=$?
22622 grep -v '^ *+' conftest.er1 >conftest.err
22623 rm -f conftest.er1
22624 cat conftest.err >&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } &&
22627 { ac_try='test -z "$ac_c_werror_flag"
22628 || test ! -s conftest.err'
22629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630 (eval $ac_try) 2>&5
22631 ac_status=$?
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; } &&
22634 { ac_try='test -s conftest$ac_exeext'
22635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22636 (eval $ac_try) 2>&5
22637 ac_status=$?
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); }; }; then
22640 eval "$as_ac_var=yes"
22641 else
22642 echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22644
22645 eval "$as_ac_var=no"
22646 fi
22647 rm -f conftest.err conftest.$ac_objext \
22648 conftest$ac_exeext conftest.$ac_ext
22649 fi
22650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22652 if test `eval echo '${'$as_ac_var'}'` = yes; then
22653 cat >>confdefs.h <<_ACEOF
22654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22655 _ACEOF
22656
22657 fi
22658 done
22659
22660 else
22661
22662 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
22663 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
22664 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
22665 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
22666 echo $ECHO_N "(cached) $ECHO_C" >&6
22667 else
22668
22669
22670
22671 ac_ext=cc
22672 ac_cpp='$CXXCPP $CPPFLAGS'
22673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22676
22677 cat >conftest.$ac_ext <<_ACEOF
22678 /* confdefs.h. */
22679 _ACEOF
22680 cat confdefs.h >>conftest.$ac_ext
22681 cat >>conftest.$ac_ext <<_ACEOF
22682 /* end confdefs.h. */
22683 #include <math.h>
22684 int
22685 main ()
22686 {
22687 _modfl(0, 0);
22688 ;
22689 return 0;
22690 }
22691 _ACEOF
22692 rm -f conftest.$ac_objext
22693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22694 (eval $ac_compile) 2>conftest.er1
22695 ac_status=$?
22696 grep -v '^ *+' conftest.er1 >conftest.err
22697 rm -f conftest.er1
22698 cat conftest.err >&5
22699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700 (exit $ac_status); } &&
22701 { ac_try='test -z "$ac_cxx_werror_flag"
22702 || test ! -s conftest.err'
22703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22704 (eval $ac_try) 2>&5
22705 ac_status=$?
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); }; } &&
22708 { ac_try='test -s conftest.$ac_objext'
22709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710 (eval $ac_try) 2>&5
22711 ac_status=$?
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; }; then
22714 glibcxx_cv_func__modfl_use=yes
22715 else
22716 echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22718
22719 glibcxx_cv_func__modfl_use=no
22720 fi
22721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22722 ac_ext=c
22723 ac_cpp='$CPP $CPPFLAGS'
22724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22727
22728
22729 fi
22730
22731 fi
22732 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
22733 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
22734
22735 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
22736
22737 for ac_func in _modfl
22738 do
22739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22740 echo "$as_me:$LINENO: checking for $ac_func" >&5
22741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22742 if eval "test \"\${$as_ac_var+set}\" = set"; then
22743 echo $ECHO_N "(cached) $ECHO_C" >&6
22744 else
22745 if test x$gcc_no_link = xyes; then
22746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22748 { (exit 1); exit 1; }; }
22749 fi
22750 cat >conftest.$ac_ext <<_ACEOF
22751 /* confdefs.h. */
22752 _ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h. */
22756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22758 #define $ac_func innocuous_$ac_func
22759
22760 /* System header to define __stub macros and hopefully few prototypes,
22761 which can conflict with char $ac_func (); below.
22762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22763 <limits.h> exists even on freestanding compilers. */
22764
22765 #ifdef __STDC__
22766 # include <limits.h>
22767 #else
22768 # include <assert.h>
22769 #endif
22770
22771 #undef $ac_func
22772
22773 /* Override any gcc2 internal prototype to avoid an error. */
22774 #ifdef __cplusplus
22775 extern "C"
22776 {
22777 #endif
22778 /* We use char because int might match the return type of a gcc2
22779 builtin and then its argument prototype would still apply. */
22780 char $ac_func ();
22781 /* The GNU C library defines this for functions which it implements
22782 to always fail with ENOSYS. Some functions are actually named
22783 something starting with __ and the normal name is an alias. */
22784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22785 choke me
22786 #else
22787 char (*f) () = $ac_func;
22788 #endif
22789 #ifdef __cplusplus
22790 }
22791 #endif
22792
22793 int
22794 main ()
22795 {
22796 return f != $ac_func;
22797 ;
22798 return 0;
22799 }
22800 _ACEOF
22801 rm -f conftest.$ac_objext conftest$ac_exeext
22802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22803 (eval $ac_link) 2>conftest.er1
22804 ac_status=$?
22805 grep -v '^ *+' conftest.er1 >conftest.err
22806 rm -f conftest.er1
22807 cat conftest.err >&5
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); } &&
22810 { ac_try='test -z "$ac_c_werror_flag"
22811 || test ! -s conftest.err'
22812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22813 (eval $ac_try) 2>&5
22814 ac_status=$?
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); }; } &&
22817 { ac_try='test -s conftest$ac_exeext'
22818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22819 (eval $ac_try) 2>&5
22820 ac_status=$?
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); }; }; then
22823 eval "$as_ac_var=yes"
22824 else
22825 echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22827
22828 eval "$as_ac_var=no"
22829 fi
22830 rm -f conftest.err conftest.$ac_objext \
22831 conftest$ac_exeext conftest.$ac_ext
22832 fi
22833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22835 if test `eval echo '${'$as_ac_var'}'` = yes; then
22836 cat >>confdefs.h <<_ACEOF
22837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22838 _ACEOF
22839
22840 fi
22841 done
22842
22843 fi
22844 fi
22845
22846
22847
22848 echo "$as_me:$LINENO: checking for powl declaration" >&5
22849 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
22850 if test x${glibcxx_cv_func_powl_use+set} != xset; then
22851 if test "${glibcxx_cv_func_powl_use+set}" = set; then
22852 echo $ECHO_N "(cached) $ECHO_C" >&6
22853 else
22854
22855
22856
22857 ac_ext=cc
22858 ac_cpp='$CXXCPP $CPPFLAGS'
22859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22862
22863 cat >conftest.$ac_ext <<_ACEOF
22864 /* confdefs.h. */
22865 _ACEOF
22866 cat confdefs.h >>conftest.$ac_ext
22867 cat >>conftest.$ac_ext <<_ACEOF
22868 /* end confdefs.h. */
22869 #include <math.h>
22870 int
22871 main ()
22872 {
22873 powl(0, 0);
22874 ;
22875 return 0;
22876 }
22877 _ACEOF
22878 rm -f conftest.$ac_objext
22879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22880 (eval $ac_compile) 2>conftest.er1
22881 ac_status=$?
22882 grep -v '^ *+' conftest.er1 >conftest.err
22883 rm -f conftest.er1
22884 cat conftest.err >&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); } &&
22887 { ac_try='test -z "$ac_cxx_werror_flag"
22888 || test ! -s conftest.err'
22889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890 (eval $ac_try) 2>&5
22891 ac_status=$?
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); }; } &&
22894 { ac_try='test -s conftest.$ac_objext'
22895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22896 (eval $ac_try) 2>&5
22897 ac_status=$?
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); }; }; then
22900 glibcxx_cv_func_powl_use=yes
22901 else
22902 echo "$as_me: failed program was:" >&5
22903 sed 's/^/| /' conftest.$ac_ext >&5
22904
22905 glibcxx_cv_func_powl_use=no
22906 fi
22907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22908 ac_ext=c
22909 ac_cpp='$CPP $CPPFLAGS'
22910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22913
22914
22915 fi
22916
22917 fi
22918 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
22919 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
22920
22921 if test x$glibcxx_cv_func_powl_use = x"yes"; then
22922
22923 for ac_func in powl
22924 do
22925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22926 echo "$as_me:$LINENO: checking for $ac_func" >&5
22927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22928 if eval "test \"\${$as_ac_var+set}\" = set"; then
22929 echo $ECHO_N "(cached) $ECHO_C" >&6
22930 else
22931 if test x$gcc_no_link = xyes; then
22932 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22933 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22934 { (exit 1); exit 1; }; }
22935 fi
22936 cat >conftest.$ac_ext <<_ACEOF
22937 /* confdefs.h. */
22938 _ACEOF
22939 cat confdefs.h >>conftest.$ac_ext
22940 cat >>conftest.$ac_ext <<_ACEOF
22941 /* end confdefs.h. */
22942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22944 #define $ac_func innocuous_$ac_func
22945
22946 /* System header to define __stub macros and hopefully few prototypes,
22947 which can conflict with char $ac_func (); below.
22948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22949 <limits.h> exists even on freestanding compilers. */
22950
22951 #ifdef __STDC__
22952 # include <limits.h>
22953 #else
22954 # include <assert.h>
22955 #endif
22956
22957 #undef $ac_func
22958
22959 /* Override any gcc2 internal prototype to avoid an error. */
22960 #ifdef __cplusplus
22961 extern "C"
22962 {
22963 #endif
22964 /* We use char because int might match the return type of a gcc2
22965 builtin and then its argument prototype would still apply. */
22966 char $ac_func ();
22967 /* The GNU C library defines this for functions which it implements
22968 to always fail with ENOSYS. Some functions are actually named
22969 something starting with __ and the normal name is an alias. */
22970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22971 choke me
22972 #else
22973 char (*f) () = $ac_func;
22974 #endif
22975 #ifdef __cplusplus
22976 }
22977 #endif
22978
22979 int
22980 main ()
22981 {
22982 return f != $ac_func;
22983 ;
22984 return 0;
22985 }
22986 _ACEOF
22987 rm -f conftest.$ac_objext conftest$ac_exeext
22988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22989 (eval $ac_link) 2>conftest.er1
22990 ac_status=$?
22991 grep -v '^ *+' conftest.er1 >conftest.err
22992 rm -f conftest.er1
22993 cat conftest.err >&5
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); } &&
22996 { ac_try='test -z "$ac_c_werror_flag"
22997 || test ! -s conftest.err'
22998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22999 (eval $ac_try) 2>&5
23000 ac_status=$?
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); }; } &&
23003 { ac_try='test -s conftest$ac_exeext'
23004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23005 (eval $ac_try) 2>&5
23006 ac_status=$?
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); }; }; then
23009 eval "$as_ac_var=yes"
23010 else
23011 echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23013
23014 eval "$as_ac_var=no"
23015 fi
23016 rm -f conftest.err conftest.$ac_objext \
23017 conftest$ac_exeext conftest.$ac_ext
23018 fi
23019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23021 if test `eval echo '${'$as_ac_var'}'` = yes; then
23022 cat >>confdefs.h <<_ACEOF
23023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23024 _ACEOF
23025
23026 fi
23027 done
23028
23029 else
23030
23031 echo "$as_me:$LINENO: checking for _powl declaration" >&5
23032 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
23033 if test x${glibcxx_cv_func__powl_use+set} != xset; then
23034 if test "${glibcxx_cv_func__powl_use+set}" = set; then
23035 echo $ECHO_N "(cached) $ECHO_C" >&6
23036 else
23037
23038
23039
23040 ac_ext=cc
23041 ac_cpp='$CXXCPP $CPPFLAGS'
23042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23045
23046 cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h. */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 #include <math.h>
23053 int
23054 main ()
23055 {
23056 _powl(0, 0);
23057 ;
23058 return 0;
23059 }
23060 _ACEOF
23061 rm -f conftest.$ac_objext
23062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23063 (eval $ac_compile) 2>conftest.er1
23064 ac_status=$?
23065 grep -v '^ *+' conftest.er1 >conftest.err
23066 rm -f conftest.er1
23067 cat conftest.err >&5
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); } &&
23070 { ac_try='test -z "$ac_cxx_werror_flag"
23071 || test ! -s conftest.err'
23072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073 (eval $ac_try) 2>&5
23074 ac_status=$?
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); }; } &&
23077 { ac_try='test -s conftest.$ac_objext'
23078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23079 (eval $ac_try) 2>&5
23080 ac_status=$?
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); }; }; then
23083 glibcxx_cv_func__powl_use=yes
23084 else
23085 echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23087
23088 glibcxx_cv_func__powl_use=no
23089 fi
23090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23091 ac_ext=c
23092 ac_cpp='$CPP $CPPFLAGS'
23093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23096
23097
23098 fi
23099
23100 fi
23101 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
23102 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
23103
23104 if test x$glibcxx_cv_func__powl_use = x"yes"; then
23105
23106 for ac_func in _powl
23107 do
23108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23109 echo "$as_me:$LINENO: checking for $ac_func" >&5
23110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23111 if eval "test \"\${$as_ac_var+set}\" = set"; then
23112 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 else
23114 if test x$gcc_no_link = xyes; then
23115 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23116 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23117 { (exit 1); exit 1; }; }
23118 fi
23119 cat >conftest.$ac_ext <<_ACEOF
23120 /* confdefs.h. */
23121 _ACEOF
23122 cat confdefs.h >>conftest.$ac_ext
23123 cat >>conftest.$ac_ext <<_ACEOF
23124 /* end confdefs.h. */
23125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23127 #define $ac_func innocuous_$ac_func
23128
23129 /* System header to define __stub macros and hopefully few prototypes,
23130 which can conflict with char $ac_func (); below.
23131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23132 <limits.h> exists even on freestanding compilers. */
23133
23134 #ifdef __STDC__
23135 # include <limits.h>
23136 #else
23137 # include <assert.h>
23138 #endif
23139
23140 #undef $ac_func
23141
23142 /* Override any gcc2 internal prototype to avoid an error. */
23143 #ifdef __cplusplus
23144 extern "C"
23145 {
23146 #endif
23147 /* We use char because int might match the return type of a gcc2
23148 builtin and then its argument prototype would still apply. */
23149 char $ac_func ();
23150 /* The GNU C library defines this for functions which it implements
23151 to always fail with ENOSYS. Some functions are actually named
23152 something starting with __ and the normal name is an alias. */
23153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23154 choke me
23155 #else
23156 char (*f) () = $ac_func;
23157 #endif
23158 #ifdef __cplusplus
23159 }
23160 #endif
23161
23162 int
23163 main ()
23164 {
23165 return f != $ac_func;
23166 ;
23167 return 0;
23168 }
23169 _ACEOF
23170 rm -f conftest.$ac_objext conftest$ac_exeext
23171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23172 (eval $ac_link) 2>conftest.er1
23173 ac_status=$?
23174 grep -v '^ *+' conftest.er1 >conftest.err
23175 rm -f conftest.er1
23176 cat conftest.err >&5
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } &&
23179 { ac_try='test -z "$ac_c_werror_flag"
23180 || test ! -s conftest.err'
23181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23182 (eval $ac_try) 2>&5
23183 ac_status=$?
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); }; } &&
23186 { ac_try='test -s conftest$ac_exeext'
23187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188 (eval $ac_try) 2>&5
23189 ac_status=$?
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); }; }; then
23192 eval "$as_ac_var=yes"
23193 else
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23196
23197 eval "$as_ac_var=no"
23198 fi
23199 rm -f conftest.err conftest.$ac_objext \
23200 conftest$ac_exeext conftest.$ac_ext
23201 fi
23202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23204 if test `eval echo '${'$as_ac_var'}'` = yes; then
23205 cat >>confdefs.h <<_ACEOF
23206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23207 _ACEOF
23208
23209 fi
23210 done
23211
23212 fi
23213 fi
23214
23215
23216
23217 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
23218 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
23219 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
23220 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
23221 echo $ECHO_N "(cached) $ECHO_C" >&6
23222 else
23223
23224
23225
23226 ac_ext=cc
23227 ac_cpp='$CXXCPP $CPPFLAGS'
23228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23231
23232 cat >conftest.$ac_ext <<_ACEOF
23233 /* confdefs.h. */
23234 _ACEOF
23235 cat confdefs.h >>conftest.$ac_ext
23236 cat >>conftest.$ac_ext <<_ACEOF
23237 /* end confdefs.h. */
23238 #include <math.h>
23239 #ifdef HAVE_IEEEFP_H
23240 #include <ieeefp.h>
23241 #endif
23242
23243 int
23244 main ()
23245 {
23246 sqrtl(0);
23247 ;
23248 return 0;
23249 }
23250 _ACEOF
23251 rm -f conftest.$ac_objext
23252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23253 (eval $ac_compile) 2>conftest.er1
23254 ac_status=$?
23255 grep -v '^ *+' conftest.er1 >conftest.err
23256 rm -f conftest.er1
23257 cat conftest.err >&5
23258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23259 (exit $ac_status); } &&
23260 { ac_try='test -z "$ac_cxx_werror_flag"
23261 || test ! -s conftest.err'
23262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23263 (eval $ac_try) 2>&5
23264 ac_status=$?
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); }; } &&
23267 { ac_try='test -s conftest.$ac_objext'
23268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23269 (eval $ac_try) 2>&5
23270 ac_status=$?
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); }; }; then
23273 glibcxx_cv_func_sqrtl_use=yes
23274 else
23275 echo "$as_me: failed program was:" >&5
23276 sed 's/^/| /' conftest.$ac_ext >&5
23277
23278 glibcxx_cv_func_sqrtl_use=no
23279 fi
23280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23281 ac_ext=c
23282 ac_cpp='$CPP $CPPFLAGS'
23283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23286
23287
23288 fi
23289
23290 fi
23291 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
23292 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
23293
23294 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
23295
23296 for ac_func in sqrtl
23297 do
23298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23299 echo "$as_me:$LINENO: checking for $ac_func" >&5
23300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23301 if eval "test \"\${$as_ac_var+set}\" = set"; then
23302 echo $ECHO_N "(cached) $ECHO_C" >&6
23303 else
23304 if test x$gcc_no_link = xyes; then
23305 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23306 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23307 { (exit 1); exit 1; }; }
23308 fi
23309 cat >conftest.$ac_ext <<_ACEOF
23310 /* confdefs.h. */
23311 _ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h. */
23315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23317 #define $ac_func innocuous_$ac_func
23318
23319 /* System header to define __stub macros and hopefully few prototypes,
23320 which can conflict with char $ac_func (); below.
23321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23322 <limits.h> exists even on freestanding compilers. */
23323
23324 #ifdef __STDC__
23325 # include <limits.h>
23326 #else
23327 # include <assert.h>
23328 #endif
23329
23330 #undef $ac_func
23331
23332 /* Override any gcc2 internal prototype to avoid an error. */
23333 #ifdef __cplusplus
23334 extern "C"
23335 {
23336 #endif
23337 /* We use char because int might match the return type of a gcc2
23338 builtin and then its argument prototype would still apply. */
23339 char $ac_func ();
23340 /* The GNU C library defines this for functions which it implements
23341 to always fail with ENOSYS. Some functions are actually named
23342 something starting with __ and the normal name is an alias. */
23343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23344 choke me
23345 #else
23346 char (*f) () = $ac_func;
23347 #endif
23348 #ifdef __cplusplus
23349 }
23350 #endif
23351
23352 int
23353 main ()
23354 {
23355 return f != $ac_func;
23356 ;
23357 return 0;
23358 }
23359 _ACEOF
23360 rm -f conftest.$ac_objext conftest$ac_exeext
23361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23362 (eval $ac_link) 2>conftest.er1
23363 ac_status=$?
23364 grep -v '^ *+' conftest.er1 >conftest.err
23365 rm -f conftest.er1
23366 cat conftest.err >&5
23367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368 (exit $ac_status); } &&
23369 { ac_try='test -z "$ac_c_werror_flag"
23370 || test ! -s conftest.err'
23371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23372 (eval $ac_try) 2>&5
23373 ac_status=$?
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); }; } &&
23376 { ac_try='test -s conftest$ac_exeext'
23377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378 (eval $ac_try) 2>&5
23379 ac_status=$?
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); }; }; then
23382 eval "$as_ac_var=yes"
23383 else
23384 echo "$as_me: failed program was:" >&5
23385 sed 's/^/| /' conftest.$ac_ext >&5
23386
23387 eval "$as_ac_var=no"
23388 fi
23389 rm -f conftest.err conftest.$ac_objext \
23390 conftest$ac_exeext conftest.$ac_ext
23391 fi
23392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23394 if test `eval echo '${'$as_ac_var'}'` = yes; then
23395 cat >>confdefs.h <<_ACEOF
23396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23397 _ACEOF
23398
23399 fi
23400 done
23401
23402 else
23403
23404 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
23405 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
23406 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
23407 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
23408 echo $ECHO_N "(cached) $ECHO_C" >&6
23409 else
23410
23411
23412
23413 ac_ext=cc
23414 ac_cpp='$CXXCPP $CPPFLAGS'
23415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23418
23419 cat >conftest.$ac_ext <<_ACEOF
23420 /* confdefs.h. */
23421 _ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h. */
23425 #include <math.h>
23426 #ifdef HAVE_IEEEFP_H
23427 #include <ieeefp.h>
23428 #endif
23429
23430 int
23431 main ()
23432 {
23433 _sqrtl(0);
23434 ;
23435 return 0;
23436 }
23437 _ACEOF
23438 rm -f conftest.$ac_objext
23439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23440 (eval $ac_compile) 2>conftest.er1
23441 ac_status=$?
23442 grep -v '^ *+' conftest.er1 >conftest.err
23443 rm -f conftest.er1
23444 cat conftest.err >&5
23445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446 (exit $ac_status); } &&
23447 { ac_try='test -z "$ac_cxx_werror_flag"
23448 || test ! -s conftest.err'
23449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450 (eval $ac_try) 2>&5
23451 ac_status=$?
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); }; } &&
23454 { ac_try='test -s conftest.$ac_objext'
23455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456 (eval $ac_try) 2>&5
23457 ac_status=$?
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); }; }; then
23460 glibcxx_cv_func__sqrtl_use=yes
23461 else
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23464
23465 glibcxx_cv_func__sqrtl_use=no
23466 fi
23467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23468 ac_ext=c
23469 ac_cpp='$CPP $CPPFLAGS'
23470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23473
23474
23475 fi
23476
23477 fi
23478 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
23479 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
23480
23481 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
23482
23483 for ac_func in _sqrtl
23484 do
23485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23486 echo "$as_me:$LINENO: checking for $ac_func" >&5
23487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23488 if eval "test \"\${$as_ac_var+set}\" = set"; then
23489 echo $ECHO_N "(cached) $ECHO_C" >&6
23490 else
23491 if test x$gcc_no_link = xyes; then
23492 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23493 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23494 { (exit 1); exit 1; }; }
23495 fi
23496 cat >conftest.$ac_ext <<_ACEOF
23497 /* confdefs.h. */
23498 _ACEOF
23499 cat confdefs.h >>conftest.$ac_ext
23500 cat >>conftest.$ac_ext <<_ACEOF
23501 /* end confdefs.h. */
23502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23504 #define $ac_func innocuous_$ac_func
23505
23506 /* System header to define __stub macros and hopefully few prototypes,
23507 which can conflict with char $ac_func (); below.
23508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23509 <limits.h> exists even on freestanding compilers. */
23510
23511 #ifdef __STDC__
23512 # include <limits.h>
23513 #else
23514 # include <assert.h>
23515 #endif
23516
23517 #undef $ac_func
23518
23519 /* Override any gcc2 internal prototype to avoid an error. */
23520 #ifdef __cplusplus
23521 extern "C"
23522 {
23523 #endif
23524 /* We use char because int might match the return type of a gcc2
23525 builtin and then its argument prototype would still apply. */
23526 char $ac_func ();
23527 /* The GNU C library defines this for functions which it implements
23528 to always fail with ENOSYS. Some functions are actually named
23529 something starting with __ and the normal name is an alias. */
23530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23531 choke me
23532 #else
23533 char (*f) () = $ac_func;
23534 #endif
23535 #ifdef __cplusplus
23536 }
23537 #endif
23538
23539 int
23540 main ()
23541 {
23542 return f != $ac_func;
23543 ;
23544 return 0;
23545 }
23546 _ACEOF
23547 rm -f conftest.$ac_objext conftest$ac_exeext
23548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23549 (eval $ac_link) 2>conftest.er1
23550 ac_status=$?
23551 grep -v '^ *+' conftest.er1 >conftest.err
23552 rm -f conftest.er1
23553 cat conftest.err >&5
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); } &&
23556 { ac_try='test -z "$ac_c_werror_flag"
23557 || test ! -s conftest.err'
23558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23559 (eval $ac_try) 2>&5
23560 ac_status=$?
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); }; } &&
23563 { ac_try='test -s conftest$ac_exeext'
23564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23565 (eval $ac_try) 2>&5
23566 ac_status=$?
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); }; }; then
23569 eval "$as_ac_var=yes"
23570 else
23571 echo "$as_me: failed program was:" >&5
23572 sed 's/^/| /' conftest.$ac_ext >&5
23573
23574 eval "$as_ac_var=no"
23575 fi
23576 rm -f conftest.err conftest.$ac_objext \
23577 conftest$ac_exeext conftest.$ac_ext
23578 fi
23579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23581 if test `eval echo '${'$as_ac_var'}'` = yes; then
23582 cat >>confdefs.h <<_ACEOF
23583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23584 _ACEOF
23585
23586 fi
23587 done
23588
23589 fi
23590 fi
23591
23592
23593
23594 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
23595 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
23596 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
23597 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
23598 echo $ECHO_N "(cached) $ECHO_C" >&6
23599 else
23600
23601
23602
23603 ac_ext=cc
23604 ac_cpp='$CXXCPP $CPPFLAGS'
23605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23608
23609 cat >conftest.$ac_ext <<_ACEOF
23610 /* confdefs.h. */
23611 _ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h. */
23615 #include <math.h>
23616 int
23617 main ()
23618 {
23619 sincosl(0, 0, 0);
23620 ;
23621 return 0;
23622 }
23623 _ACEOF
23624 rm -f conftest.$ac_objext
23625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23626 (eval $ac_compile) 2>conftest.er1
23627 ac_status=$?
23628 grep -v '^ *+' conftest.er1 >conftest.err
23629 rm -f conftest.er1
23630 cat conftest.err >&5
23631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632 (exit $ac_status); } &&
23633 { ac_try='test -z "$ac_cxx_werror_flag"
23634 || test ! -s conftest.err'
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23637 ac_status=$?
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; } &&
23640 { ac_try='test -s conftest.$ac_objext'
23641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642 (eval $ac_try) 2>&5
23643 ac_status=$?
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); }; }; then
23646 glibcxx_cv_func_sincosl_use=yes
23647 else
23648 echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23650
23651 glibcxx_cv_func_sincosl_use=no
23652 fi
23653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23654 ac_ext=c
23655 ac_cpp='$CPP $CPPFLAGS'
23656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23659
23660
23661 fi
23662
23663 fi
23664 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
23665 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
23666
23667 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
23668
23669 for ac_func in sincosl
23670 do
23671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23672 echo "$as_me:$LINENO: checking for $ac_func" >&5
23673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23674 if eval "test \"\${$as_ac_var+set}\" = set"; then
23675 echo $ECHO_N "(cached) $ECHO_C" >&6
23676 else
23677 if test x$gcc_no_link = xyes; then
23678 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23679 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23680 { (exit 1); exit 1; }; }
23681 fi
23682 cat >conftest.$ac_ext <<_ACEOF
23683 /* confdefs.h. */
23684 _ACEOF
23685 cat confdefs.h >>conftest.$ac_ext
23686 cat >>conftest.$ac_ext <<_ACEOF
23687 /* end confdefs.h. */
23688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23690 #define $ac_func innocuous_$ac_func
23691
23692 /* System header to define __stub macros and hopefully few prototypes,
23693 which can conflict with char $ac_func (); below.
23694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23695 <limits.h> exists even on freestanding compilers. */
23696
23697 #ifdef __STDC__
23698 # include <limits.h>
23699 #else
23700 # include <assert.h>
23701 #endif
23702
23703 #undef $ac_func
23704
23705 /* Override any gcc2 internal prototype to avoid an error. */
23706 #ifdef __cplusplus
23707 extern "C"
23708 {
23709 #endif
23710 /* We use char because int might match the return type of a gcc2
23711 builtin and then its argument prototype would still apply. */
23712 char $ac_func ();
23713 /* The GNU C library defines this for functions which it implements
23714 to always fail with ENOSYS. Some functions are actually named
23715 something starting with __ and the normal name is an alias. */
23716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23717 choke me
23718 #else
23719 char (*f) () = $ac_func;
23720 #endif
23721 #ifdef __cplusplus
23722 }
23723 #endif
23724
23725 int
23726 main ()
23727 {
23728 return f != $ac_func;
23729 ;
23730 return 0;
23731 }
23732 _ACEOF
23733 rm -f conftest.$ac_objext conftest$ac_exeext
23734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23735 (eval $ac_link) 2>conftest.er1
23736 ac_status=$?
23737 grep -v '^ *+' conftest.er1 >conftest.err
23738 rm -f conftest.er1
23739 cat conftest.err >&5
23740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741 (exit $ac_status); } &&
23742 { ac_try='test -z "$ac_c_werror_flag"
23743 || test ! -s conftest.err'
23744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23745 (eval $ac_try) 2>&5
23746 ac_status=$?
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); }; } &&
23749 { ac_try='test -s conftest$ac_exeext'
23750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23751 (eval $ac_try) 2>&5
23752 ac_status=$?
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); }; }; then
23755 eval "$as_ac_var=yes"
23756 else
23757 echo "$as_me: failed program was:" >&5
23758 sed 's/^/| /' conftest.$ac_ext >&5
23759
23760 eval "$as_ac_var=no"
23761 fi
23762 rm -f conftest.err conftest.$ac_objext \
23763 conftest$ac_exeext conftest.$ac_ext
23764 fi
23765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23767 if test `eval echo '${'$as_ac_var'}'` = yes; then
23768 cat >>confdefs.h <<_ACEOF
23769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23770 _ACEOF
23771
23772 fi
23773 done
23774
23775 else
23776
23777 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
23778 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
23779 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
23780 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
23781 echo $ECHO_N "(cached) $ECHO_C" >&6
23782 else
23783
23784
23785
23786 ac_ext=cc
23787 ac_cpp='$CXXCPP $CPPFLAGS'
23788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23791
23792 cat >conftest.$ac_ext <<_ACEOF
23793 /* confdefs.h. */
23794 _ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 #include <math.h>
23799 int
23800 main ()
23801 {
23802 _sincosl(0, 0, 0);
23803 ;
23804 return 0;
23805 }
23806 _ACEOF
23807 rm -f conftest.$ac_objext
23808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23809 (eval $ac_compile) 2>conftest.er1
23810 ac_status=$?
23811 grep -v '^ *+' conftest.er1 >conftest.err
23812 rm -f conftest.er1
23813 cat conftest.err >&5
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } &&
23816 { ac_try='test -z "$ac_cxx_werror_flag"
23817 || test ! -s conftest.err'
23818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23819 (eval $ac_try) 2>&5
23820 ac_status=$?
23821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822 (exit $ac_status); }; } &&
23823 { ac_try='test -s conftest.$ac_objext'
23824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825 (eval $ac_try) 2>&5
23826 ac_status=$?
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); }; }; then
23829 glibcxx_cv_func__sincosl_use=yes
23830 else
23831 echo "$as_me: failed program was:" >&5
23832 sed 's/^/| /' conftest.$ac_ext >&5
23833
23834 glibcxx_cv_func__sincosl_use=no
23835 fi
23836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23837 ac_ext=c
23838 ac_cpp='$CPP $CPPFLAGS'
23839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23842
23843
23844 fi
23845
23846 fi
23847 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
23848 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
23849
23850 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
23851
23852 for ac_func in _sincosl
23853 do
23854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23855 echo "$as_me:$LINENO: checking for $ac_func" >&5
23856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23857 if eval "test \"\${$as_ac_var+set}\" = set"; then
23858 echo $ECHO_N "(cached) $ECHO_C" >&6
23859 else
23860 if test x$gcc_no_link = xyes; then
23861 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23862 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23863 { (exit 1); exit 1; }; }
23864 fi
23865 cat >conftest.$ac_ext <<_ACEOF
23866 /* confdefs.h. */
23867 _ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h. */
23871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23873 #define $ac_func innocuous_$ac_func
23874
23875 /* System header to define __stub macros and hopefully few prototypes,
23876 which can conflict with char $ac_func (); below.
23877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23878 <limits.h> exists even on freestanding compilers. */
23879
23880 #ifdef __STDC__
23881 # include <limits.h>
23882 #else
23883 # include <assert.h>
23884 #endif
23885
23886 #undef $ac_func
23887
23888 /* Override any gcc2 internal prototype to avoid an error. */
23889 #ifdef __cplusplus
23890 extern "C"
23891 {
23892 #endif
23893 /* We use char because int might match the return type of a gcc2
23894 builtin and then its argument prototype would still apply. */
23895 char $ac_func ();
23896 /* The GNU C library defines this for functions which it implements
23897 to always fail with ENOSYS. Some functions are actually named
23898 something starting with __ and the normal name is an alias. */
23899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23900 choke me
23901 #else
23902 char (*f) () = $ac_func;
23903 #endif
23904 #ifdef __cplusplus
23905 }
23906 #endif
23907
23908 int
23909 main ()
23910 {
23911 return f != $ac_func;
23912 ;
23913 return 0;
23914 }
23915 _ACEOF
23916 rm -f conftest.$ac_objext conftest$ac_exeext
23917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23918 (eval $ac_link) 2>conftest.er1
23919 ac_status=$?
23920 grep -v '^ *+' conftest.er1 >conftest.err
23921 rm -f conftest.er1
23922 cat conftest.err >&5
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); } &&
23925 { ac_try='test -z "$ac_c_werror_flag"
23926 || test ! -s conftest.err'
23927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928 (eval $ac_try) 2>&5
23929 ac_status=$?
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); }; } &&
23932 { ac_try='test -s conftest$ac_exeext'
23933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934 (eval $ac_try) 2>&5
23935 ac_status=$?
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); }; }; then
23938 eval "$as_ac_var=yes"
23939 else
23940 echo "$as_me: failed program was:" >&5
23941 sed 's/^/| /' conftest.$ac_ext >&5
23942
23943 eval "$as_ac_var=no"
23944 fi
23945 rm -f conftest.err conftest.$ac_objext \
23946 conftest$ac_exeext conftest.$ac_ext
23947 fi
23948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23950 if test `eval echo '${'$as_ac_var'}'` = yes; then
23951 cat >>confdefs.h <<_ACEOF
23952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23953 _ACEOF
23954
23955 fi
23956 done
23957
23958 fi
23959 fi
23960
23961
23962
23963 echo "$as_me:$LINENO: checking for finitel declaration" >&5
23964 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
23965 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
23966 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
23967 echo $ECHO_N "(cached) $ECHO_C" >&6
23968 else
23969
23970
23971
23972 ac_ext=cc
23973 ac_cpp='$CXXCPP $CPPFLAGS'
23974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23977
23978 cat >conftest.$ac_ext <<_ACEOF
23979 /* confdefs.h. */
23980 _ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h. */
23984 #include <math.h>
23985 #ifdef HAVE_IEEEFP_H
23986 #include <ieeefp.h>
23987 #endif
23988
23989 int
23990 main ()
23991 {
23992 finitel(0);
23993 ;
23994 return 0;
23995 }
23996 _ACEOF
23997 rm -f conftest.$ac_objext
23998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23999 (eval $ac_compile) 2>conftest.er1
24000 ac_status=$?
24001 grep -v '^ *+' conftest.er1 >conftest.err
24002 rm -f conftest.er1
24003 cat conftest.err >&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } &&
24006 { ac_try='test -z "$ac_cxx_werror_flag"
24007 || test ! -s conftest.err'
24008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24009 (eval $ac_try) 2>&5
24010 ac_status=$?
24011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012 (exit $ac_status); }; } &&
24013 { ac_try='test -s conftest.$ac_objext'
24014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24015 (eval $ac_try) 2>&5
24016 ac_status=$?
24017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018 (exit $ac_status); }; }; then
24019 glibcxx_cv_func_finitel_use=yes
24020 else
24021 echo "$as_me: failed program was:" >&5
24022 sed 's/^/| /' conftest.$ac_ext >&5
24023
24024 glibcxx_cv_func_finitel_use=no
24025 fi
24026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24027 ac_ext=c
24028 ac_cpp='$CPP $CPPFLAGS'
24029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24032
24033
24034 fi
24035
24036 fi
24037 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
24038 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
24039
24040 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
24041
24042 for ac_func in finitel
24043 do
24044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24045 echo "$as_me:$LINENO: checking for $ac_func" >&5
24046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24047 if eval "test \"\${$as_ac_var+set}\" = set"; then
24048 echo $ECHO_N "(cached) $ECHO_C" >&6
24049 else
24050 if test x$gcc_no_link = xyes; then
24051 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24052 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24053 { (exit 1); exit 1; }; }
24054 fi
24055 cat >conftest.$ac_ext <<_ACEOF
24056 /* confdefs.h. */
24057 _ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h. */
24061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24063 #define $ac_func innocuous_$ac_func
24064
24065 /* System header to define __stub macros and hopefully few prototypes,
24066 which can conflict with char $ac_func (); below.
24067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24068 <limits.h> exists even on freestanding compilers. */
24069
24070 #ifdef __STDC__
24071 # include <limits.h>
24072 #else
24073 # include <assert.h>
24074 #endif
24075
24076 #undef $ac_func
24077
24078 /* Override any gcc2 internal prototype to avoid an error. */
24079 #ifdef __cplusplus
24080 extern "C"
24081 {
24082 #endif
24083 /* We use char because int might match the return type of a gcc2
24084 builtin and then its argument prototype would still apply. */
24085 char $ac_func ();
24086 /* The GNU C library defines this for functions which it implements
24087 to always fail with ENOSYS. Some functions are actually named
24088 something starting with __ and the normal name is an alias. */
24089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24090 choke me
24091 #else
24092 char (*f) () = $ac_func;
24093 #endif
24094 #ifdef __cplusplus
24095 }
24096 #endif
24097
24098 int
24099 main ()
24100 {
24101 return f != $ac_func;
24102 ;
24103 return 0;
24104 }
24105 _ACEOF
24106 rm -f conftest.$ac_objext conftest$ac_exeext
24107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24108 (eval $ac_link) 2>conftest.er1
24109 ac_status=$?
24110 grep -v '^ *+' conftest.er1 >conftest.err
24111 rm -f conftest.er1
24112 cat conftest.err >&5
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); } &&
24115 { ac_try='test -z "$ac_c_werror_flag"
24116 || test ! -s conftest.err'
24117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24118 (eval $ac_try) 2>&5
24119 ac_status=$?
24120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121 (exit $ac_status); }; } &&
24122 { ac_try='test -s conftest$ac_exeext'
24123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124 (eval $ac_try) 2>&5
24125 ac_status=$?
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); }; }; then
24128 eval "$as_ac_var=yes"
24129 else
24130 echo "$as_me: failed program was:" >&5
24131 sed 's/^/| /' conftest.$ac_ext >&5
24132
24133 eval "$as_ac_var=no"
24134 fi
24135 rm -f conftest.err conftest.$ac_objext \
24136 conftest$ac_exeext conftest.$ac_ext
24137 fi
24138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24140 if test `eval echo '${'$as_ac_var'}'` = yes; then
24141 cat >>confdefs.h <<_ACEOF
24142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24143 _ACEOF
24144
24145 fi
24146 done
24147
24148 else
24149
24150 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
24151 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
24152 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
24153 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
24154 echo $ECHO_N "(cached) $ECHO_C" >&6
24155 else
24156
24157
24158
24159 ac_ext=cc
24160 ac_cpp='$CXXCPP $CPPFLAGS'
24161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24164
24165 cat >conftest.$ac_ext <<_ACEOF
24166 /* confdefs.h. */
24167 _ACEOF
24168 cat confdefs.h >>conftest.$ac_ext
24169 cat >>conftest.$ac_ext <<_ACEOF
24170 /* end confdefs.h. */
24171 #include <math.h>
24172 #ifdef HAVE_IEEEFP_H
24173 #include <ieeefp.h>
24174 #endif
24175
24176 int
24177 main ()
24178 {
24179 _finitel(0);
24180 ;
24181 return 0;
24182 }
24183 _ACEOF
24184 rm -f conftest.$ac_objext
24185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24186 (eval $ac_compile) 2>conftest.er1
24187 ac_status=$?
24188 grep -v '^ *+' conftest.er1 >conftest.err
24189 rm -f conftest.er1
24190 cat conftest.err >&5
24191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192 (exit $ac_status); } &&
24193 { ac_try='test -z "$ac_cxx_werror_flag"
24194 || test ! -s conftest.err'
24195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24196 (eval $ac_try) 2>&5
24197 ac_status=$?
24198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199 (exit $ac_status); }; } &&
24200 { ac_try='test -s conftest.$ac_objext'
24201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24202 (eval $ac_try) 2>&5
24203 ac_status=$?
24204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24205 (exit $ac_status); }; }; then
24206 glibcxx_cv_func__finitel_use=yes
24207 else
24208 echo "$as_me: failed program was:" >&5
24209 sed 's/^/| /' conftest.$ac_ext >&5
24210
24211 glibcxx_cv_func__finitel_use=no
24212 fi
24213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24214 ac_ext=c
24215 ac_cpp='$CPP $CPPFLAGS'
24216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24219
24220
24221 fi
24222
24223 fi
24224 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
24225 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
24226
24227 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
24228
24229 for ac_func in _finitel
24230 do
24231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24232 echo "$as_me:$LINENO: checking for $ac_func" >&5
24233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24234 if eval "test \"\${$as_ac_var+set}\" = set"; then
24235 echo $ECHO_N "(cached) $ECHO_C" >&6
24236 else
24237 if test x$gcc_no_link = xyes; then
24238 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24239 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24240 { (exit 1); exit 1; }; }
24241 fi
24242 cat >conftest.$ac_ext <<_ACEOF
24243 /* confdefs.h. */
24244 _ACEOF
24245 cat confdefs.h >>conftest.$ac_ext
24246 cat >>conftest.$ac_ext <<_ACEOF
24247 /* end confdefs.h. */
24248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24250 #define $ac_func innocuous_$ac_func
24251
24252 /* System header to define __stub macros and hopefully few prototypes,
24253 which can conflict with char $ac_func (); below.
24254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24255 <limits.h> exists even on freestanding compilers. */
24256
24257 #ifdef __STDC__
24258 # include <limits.h>
24259 #else
24260 # include <assert.h>
24261 #endif
24262
24263 #undef $ac_func
24264
24265 /* Override any gcc2 internal prototype to avoid an error. */
24266 #ifdef __cplusplus
24267 extern "C"
24268 {
24269 #endif
24270 /* We use char because int might match the return type of a gcc2
24271 builtin and then its argument prototype would still apply. */
24272 char $ac_func ();
24273 /* The GNU C library defines this for functions which it implements
24274 to always fail with ENOSYS. Some functions are actually named
24275 something starting with __ and the normal name is an alias. */
24276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24277 choke me
24278 #else
24279 char (*f) () = $ac_func;
24280 #endif
24281 #ifdef __cplusplus
24282 }
24283 #endif
24284
24285 int
24286 main ()
24287 {
24288 return f != $ac_func;
24289 ;
24290 return 0;
24291 }
24292 _ACEOF
24293 rm -f conftest.$ac_objext conftest$ac_exeext
24294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24295 (eval $ac_link) 2>conftest.er1
24296 ac_status=$?
24297 grep -v '^ *+' conftest.er1 >conftest.err
24298 rm -f conftest.er1
24299 cat conftest.err >&5
24300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); } &&
24302 { ac_try='test -z "$ac_c_werror_flag"
24303 || test ! -s conftest.err'
24304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24305 (eval $ac_try) 2>&5
24306 ac_status=$?
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); }; } &&
24309 { ac_try='test -s conftest$ac_exeext'
24310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24311 (eval $ac_try) 2>&5
24312 ac_status=$?
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); }; }; then
24315 eval "$as_ac_var=yes"
24316 else
24317 echo "$as_me: failed program was:" >&5
24318 sed 's/^/| /' conftest.$ac_ext >&5
24319
24320 eval "$as_ac_var=no"
24321 fi
24322 rm -f conftest.err conftest.$ac_objext \
24323 conftest$ac_exeext conftest.$ac_ext
24324 fi
24325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24327 if test `eval echo '${'$as_ac_var'}'` = yes; then
24328 cat >>confdefs.h <<_ACEOF
24329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24330 _ACEOF
24331
24332 fi
24333 done
24334
24335 fi
24336 fi
24337
24338
24339
24340
24341 echo "$as_me:$LINENO: checking for _float trig functions" >&5
24342 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
24343 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
24344 echo $ECHO_N "(cached) $ECHO_C" >&6
24345 else
24346
24347
24348
24349 ac_ext=cc
24350 ac_cpp='$CXXCPP $CPPFLAGS'
24351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24354
24355 cat >conftest.$ac_ext <<_ACEOF
24356 /* confdefs.h. */
24357 _ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h. */
24361 #include <math.h>
24362 int
24363 main ()
24364 {
24365 `for x in _acosf _asinf _atanf \
24366 _cosf _sinf _tanf \
24367 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
24368 ;
24369 return 0;
24370 }
24371 _ACEOF
24372 rm -f conftest.$ac_objext
24373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24374 (eval $ac_compile) 2>conftest.er1
24375 ac_status=$?
24376 grep -v '^ *+' conftest.er1 >conftest.err
24377 rm -f conftest.er1
24378 cat conftest.err >&5
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); } &&
24381 { ac_try='test -z "$ac_cxx_werror_flag"
24382 || test ! -s conftest.err'
24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24384 (eval $ac_try) 2>&5
24385 ac_status=$?
24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24387 (exit $ac_status); }; } &&
24388 { ac_try='test -s conftest.$ac_objext'
24389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24390 (eval $ac_try) 2>&5
24391 ac_status=$?
24392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 (exit $ac_status); }; }; then
24394 glibcxx_cv_func__float_trig_use=yes
24395 else
24396 echo "$as_me: failed program was:" >&5
24397 sed 's/^/| /' conftest.$ac_ext >&5
24398
24399 glibcxx_cv_func__float_trig_use=no
24400 fi
24401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24402 ac_ext=c
24403 ac_cpp='$CPP $CPPFLAGS'
24404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24407
24408 fi
24409
24410 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
24411 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
24412 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422 for ac_func in _acosf _asinf _atanf \
24423 _cosf _sinf _tanf \
24424 _coshf _sinhf _tanhf
24425 do
24426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24427 echo "$as_me:$LINENO: checking for $ac_func" >&5
24428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24429 if eval "test \"\${$as_ac_var+set}\" = set"; then
24430 echo $ECHO_N "(cached) $ECHO_C" >&6
24431 else
24432 if test x$gcc_no_link = xyes; then
24433 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24434 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24435 { (exit 1); exit 1; }; }
24436 fi
24437 cat >conftest.$ac_ext <<_ACEOF
24438 /* confdefs.h. */
24439 _ACEOF
24440 cat confdefs.h >>conftest.$ac_ext
24441 cat >>conftest.$ac_ext <<_ACEOF
24442 /* end confdefs.h. */
24443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24445 #define $ac_func innocuous_$ac_func
24446
24447 /* System header to define __stub macros and hopefully few prototypes,
24448 which can conflict with char $ac_func (); below.
24449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24450 <limits.h> exists even on freestanding compilers. */
24451
24452 #ifdef __STDC__
24453 # include <limits.h>
24454 #else
24455 # include <assert.h>
24456 #endif
24457
24458 #undef $ac_func
24459
24460 /* Override any gcc2 internal prototype to avoid an error. */
24461 #ifdef __cplusplus
24462 extern "C"
24463 {
24464 #endif
24465 /* We use char because int might match the return type of a gcc2
24466 builtin and then its argument prototype would still apply. */
24467 char $ac_func ();
24468 /* The GNU C library defines this for functions which it implements
24469 to always fail with ENOSYS. Some functions are actually named
24470 something starting with __ and the normal name is an alias. */
24471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24472 choke me
24473 #else
24474 char (*f) () = $ac_func;
24475 #endif
24476 #ifdef __cplusplus
24477 }
24478 #endif
24479
24480 int
24481 main ()
24482 {
24483 return f != $ac_func;
24484 ;
24485 return 0;
24486 }
24487 _ACEOF
24488 rm -f conftest.$ac_objext conftest$ac_exeext
24489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24490 (eval $ac_link) 2>conftest.er1
24491 ac_status=$?
24492 grep -v '^ *+' conftest.er1 >conftest.err
24493 rm -f conftest.er1
24494 cat conftest.err >&5
24495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); } &&
24497 { ac_try='test -z "$ac_c_werror_flag"
24498 || test ! -s conftest.err'
24499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24500 (eval $ac_try) 2>&5
24501 ac_status=$?
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); }; } &&
24504 { ac_try='test -s conftest$ac_exeext'
24505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24506 (eval $ac_try) 2>&5
24507 ac_status=$?
24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24509 (exit $ac_status); }; }; then
24510 eval "$as_ac_var=yes"
24511 else
24512 echo "$as_me: failed program was:" >&5
24513 sed 's/^/| /' conftest.$ac_ext >&5
24514
24515 eval "$as_ac_var=no"
24516 fi
24517 rm -f conftest.err conftest.$ac_objext \
24518 conftest$ac_exeext conftest.$ac_ext
24519 fi
24520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24522 if test `eval echo '${'$as_ac_var'}'` = yes; then
24523 cat >>confdefs.h <<_ACEOF
24524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24525 _ACEOF
24526
24527 fi
24528 done
24529
24530 fi
24531
24532
24533 echo "$as_me:$LINENO: checking for _float round functions" >&5
24534 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
24535 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
24536 echo $ECHO_N "(cached) $ECHO_C" >&6
24537 else
24538
24539
24540
24541 ac_ext=cc
24542 ac_cpp='$CXXCPP $CPPFLAGS'
24543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24546
24547 cat >conftest.$ac_ext <<_ACEOF
24548 /* confdefs.h. */
24549 _ACEOF
24550 cat confdefs.h >>conftest.$ac_ext
24551 cat >>conftest.$ac_ext <<_ACEOF
24552 /* end confdefs.h. */
24553 #include <math.h>
24554 int
24555 main ()
24556 {
24557 `for x in _ceilf _floorf; do echo "$x (0);"; done`
24558 ;
24559 return 0;
24560 }
24561 _ACEOF
24562 rm -f conftest.$ac_objext
24563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24564 (eval $ac_compile) 2>conftest.er1
24565 ac_status=$?
24566 grep -v '^ *+' conftest.er1 >conftest.err
24567 rm -f conftest.er1
24568 cat conftest.err >&5
24569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); } &&
24571 { ac_try='test -z "$ac_cxx_werror_flag"
24572 || test ! -s conftest.err'
24573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24574 (eval $ac_try) 2>&5
24575 ac_status=$?
24576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577 (exit $ac_status); }; } &&
24578 { ac_try='test -s conftest.$ac_objext'
24579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24580 (eval $ac_try) 2>&5
24581 ac_status=$?
24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); }; }; then
24584 glibcxx_cv_func__float_round_use=yes
24585 else
24586 echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24588
24589 glibcxx_cv_func__float_round_use=no
24590 fi
24591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24592 ac_ext=c
24593 ac_cpp='$CPP $CPPFLAGS'
24594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24597
24598 fi
24599
24600 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
24601 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
24602 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
24603
24604
24605 for ac_func in _ceilf _floorf
24606 do
24607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24608 echo "$as_me:$LINENO: checking for $ac_func" >&5
24609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24610 if eval "test \"\${$as_ac_var+set}\" = set"; then
24611 echo $ECHO_N "(cached) $ECHO_C" >&6
24612 else
24613 if test x$gcc_no_link = xyes; then
24614 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24616 { (exit 1); exit 1; }; }
24617 fi
24618 cat >conftest.$ac_ext <<_ACEOF
24619 /* confdefs.h. */
24620 _ACEOF
24621 cat confdefs.h >>conftest.$ac_ext
24622 cat >>conftest.$ac_ext <<_ACEOF
24623 /* end confdefs.h. */
24624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24626 #define $ac_func innocuous_$ac_func
24627
24628 /* System header to define __stub macros and hopefully few prototypes,
24629 which can conflict with char $ac_func (); below.
24630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24631 <limits.h> exists even on freestanding compilers. */
24632
24633 #ifdef __STDC__
24634 # include <limits.h>
24635 #else
24636 # include <assert.h>
24637 #endif
24638
24639 #undef $ac_func
24640
24641 /* Override any gcc2 internal prototype to avoid an error. */
24642 #ifdef __cplusplus
24643 extern "C"
24644 {
24645 #endif
24646 /* We use char because int might match the return type of a gcc2
24647 builtin and then its argument prototype would still apply. */
24648 char $ac_func ();
24649 /* The GNU C library defines this for functions which it implements
24650 to always fail with ENOSYS. Some functions are actually named
24651 something starting with __ and the normal name is an alias. */
24652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24653 choke me
24654 #else
24655 char (*f) () = $ac_func;
24656 #endif
24657 #ifdef __cplusplus
24658 }
24659 #endif
24660
24661 int
24662 main ()
24663 {
24664 return f != $ac_func;
24665 ;
24666 return 0;
24667 }
24668 _ACEOF
24669 rm -f conftest.$ac_objext conftest$ac_exeext
24670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24671 (eval $ac_link) 2>conftest.er1
24672 ac_status=$?
24673 grep -v '^ *+' conftest.er1 >conftest.err
24674 rm -f conftest.er1
24675 cat conftest.err >&5
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); } &&
24678 { ac_try='test -z "$ac_c_werror_flag"
24679 || test ! -s conftest.err'
24680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681 (eval $ac_try) 2>&5
24682 ac_status=$?
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); }; } &&
24685 { ac_try='test -s conftest$ac_exeext'
24686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24687 (eval $ac_try) 2>&5
24688 ac_status=$?
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); }; }; then
24691 eval "$as_ac_var=yes"
24692 else
24693 echo "$as_me: failed program was:" >&5
24694 sed 's/^/| /' conftest.$ac_ext >&5
24695
24696 eval "$as_ac_var=no"
24697 fi
24698 rm -f conftest.err conftest.$ac_objext \
24699 conftest$ac_exeext conftest.$ac_ext
24700 fi
24701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24703 if test `eval echo '${'$as_ac_var'}'` = yes; then
24704 cat >>confdefs.h <<_ACEOF
24705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24706 _ACEOF
24707
24708 fi
24709 done
24710
24711 fi
24712
24713
24714
24715 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
24716 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
24717 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
24718 echo $ECHO_N "(cached) $ECHO_C" >&6
24719 else
24720
24721
24722
24723 ac_ext=cc
24724 ac_cpp='$CXXCPP $CPPFLAGS'
24725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24728
24729 cat >conftest.$ac_ext <<_ACEOF
24730 /* confdefs.h. */
24731 _ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h. */
24735 #include <math.h>
24736 int
24737 main ()
24738 {
24739 `for x in _acosl _asinl _atanl \
24740 _cosl _sinl _tanl \
24741 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
24742 ;
24743 return 0;
24744 }
24745 _ACEOF
24746 rm -f conftest.$ac_objext
24747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24748 (eval $ac_compile) 2>conftest.er1
24749 ac_status=$?
24750 grep -v '^ *+' conftest.er1 >conftest.err
24751 rm -f conftest.er1
24752 cat conftest.err >&5
24753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); } &&
24755 { ac_try='test -z "$ac_cxx_werror_flag"
24756 || test ! -s conftest.err'
24757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24758 (eval $ac_try) 2>&5
24759 ac_status=$?
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); }; } &&
24762 { ac_try='test -s conftest.$ac_objext'
24763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); }; }; then
24768 glibcxx_cv_func__long_double_trig_use=yes
24769 else
24770 echo "$as_me: failed program was:" >&5
24771 sed 's/^/| /' conftest.$ac_ext >&5
24772
24773 glibcxx_cv_func__long_double_trig_use=no
24774 fi
24775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24776 ac_ext=c
24777 ac_cpp='$CPP $CPPFLAGS'
24778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24781
24782 fi
24783
24784 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
24785 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
24786 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796 for ac_func in _acosl _asinl _atanl \
24797 _cosl _sinl _tanl \
24798 _coshl _sinhl _tanhl
24799 do
24800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24801 echo "$as_me:$LINENO: checking for $ac_func" >&5
24802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24803 if eval "test \"\${$as_ac_var+set}\" = set"; then
24804 echo $ECHO_N "(cached) $ECHO_C" >&6
24805 else
24806 if test x$gcc_no_link = xyes; then
24807 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24808 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24809 { (exit 1); exit 1; }; }
24810 fi
24811 cat >conftest.$ac_ext <<_ACEOF
24812 /* confdefs.h. */
24813 _ACEOF
24814 cat confdefs.h >>conftest.$ac_ext
24815 cat >>conftest.$ac_ext <<_ACEOF
24816 /* end confdefs.h. */
24817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24819 #define $ac_func innocuous_$ac_func
24820
24821 /* System header to define __stub macros and hopefully few prototypes,
24822 which can conflict with char $ac_func (); below.
24823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24824 <limits.h> exists even on freestanding compilers. */
24825
24826 #ifdef __STDC__
24827 # include <limits.h>
24828 #else
24829 # include <assert.h>
24830 #endif
24831
24832 #undef $ac_func
24833
24834 /* Override any gcc2 internal prototype to avoid an error. */
24835 #ifdef __cplusplus
24836 extern "C"
24837 {
24838 #endif
24839 /* We use char because int might match the return type of a gcc2
24840 builtin and then its argument prototype would still apply. */
24841 char $ac_func ();
24842 /* The GNU C library defines this for functions which it implements
24843 to always fail with ENOSYS. Some functions are actually named
24844 something starting with __ and the normal name is an alias. */
24845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24846 choke me
24847 #else
24848 char (*f) () = $ac_func;
24849 #endif
24850 #ifdef __cplusplus
24851 }
24852 #endif
24853
24854 int
24855 main ()
24856 {
24857 return f != $ac_func;
24858 ;
24859 return 0;
24860 }
24861 _ACEOF
24862 rm -f conftest.$ac_objext conftest$ac_exeext
24863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24864 (eval $ac_link) 2>conftest.er1
24865 ac_status=$?
24866 grep -v '^ *+' conftest.er1 >conftest.err
24867 rm -f conftest.er1
24868 cat conftest.err >&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } &&
24871 { ac_try='test -z "$ac_c_werror_flag"
24872 || test ! -s conftest.err'
24873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24874 (eval $ac_try) 2>&5
24875 ac_status=$?
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); }; } &&
24878 { ac_try='test -s conftest$ac_exeext'
24879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24880 (eval $ac_try) 2>&5
24881 ac_status=$?
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); }; }; then
24884 eval "$as_ac_var=yes"
24885 else
24886 echo "$as_me: failed program was:" >&5
24887 sed 's/^/| /' conftest.$ac_ext >&5
24888
24889 eval "$as_ac_var=no"
24890 fi
24891 rm -f conftest.err conftest.$ac_objext \
24892 conftest$ac_exeext conftest.$ac_ext
24893 fi
24894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24896 if test `eval echo '${'$as_ac_var'}'` = yes; then
24897 cat >>confdefs.h <<_ACEOF
24898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24899 _ACEOF
24900
24901 fi
24902 done
24903
24904 fi
24905
24906
24907 echo "$as_me:$LINENO: checking for _long double round functions" >&5
24908 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
24909 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
24910 echo $ECHO_N "(cached) $ECHO_C" >&6
24911 else
24912
24913
24914
24915 ac_ext=cc
24916 ac_cpp='$CXXCPP $CPPFLAGS'
24917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24920
24921 cat >conftest.$ac_ext <<_ACEOF
24922 /* confdefs.h. */
24923 _ACEOF
24924 cat confdefs.h >>conftest.$ac_ext
24925 cat >>conftest.$ac_ext <<_ACEOF
24926 /* end confdefs.h. */
24927 #include <math.h>
24928 int
24929 main ()
24930 {
24931 `for x in _ceill _floorl; do echo "$x (0);"; done`
24932 ;
24933 return 0;
24934 }
24935 _ACEOF
24936 rm -f conftest.$ac_objext
24937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24938 (eval $ac_compile) 2>conftest.er1
24939 ac_status=$?
24940 grep -v '^ *+' conftest.er1 >conftest.err
24941 rm -f conftest.er1
24942 cat conftest.err >&5
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); } &&
24945 { ac_try='test -z "$ac_cxx_werror_flag"
24946 || test ! -s conftest.err'
24947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24948 (eval $ac_try) 2>&5
24949 ac_status=$?
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); }; } &&
24952 { ac_try='test -s conftest.$ac_objext'
24953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24954 (eval $ac_try) 2>&5
24955 ac_status=$?
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }; }; then
24958 glibcxx_cv_func__long_double_round_use=yes
24959 else
24960 echo "$as_me: failed program was:" >&5
24961 sed 's/^/| /' conftest.$ac_ext >&5
24962
24963 glibcxx_cv_func__long_double_round_use=no
24964 fi
24965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24966 ac_ext=c
24967 ac_cpp='$CPP $CPPFLAGS'
24968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24971
24972 fi
24973
24974 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
24975 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
24976 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
24977
24978
24979 for ac_func in _ceill _floorl
24980 do
24981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24982 echo "$as_me:$LINENO: checking for $ac_func" >&5
24983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24984 if eval "test \"\${$as_ac_var+set}\" = set"; then
24985 echo $ECHO_N "(cached) $ECHO_C" >&6
24986 else
24987 if test x$gcc_no_link = xyes; then
24988 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24989 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24990 { (exit 1); exit 1; }; }
24991 fi
24992 cat >conftest.$ac_ext <<_ACEOF
24993 /* confdefs.h. */
24994 _ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25000 #define $ac_func innocuous_$ac_func
25001
25002 /* System header to define __stub macros and hopefully few prototypes,
25003 which can conflict with char $ac_func (); below.
25004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25005 <limits.h> exists even on freestanding compilers. */
25006
25007 #ifdef __STDC__
25008 # include <limits.h>
25009 #else
25010 # include <assert.h>
25011 #endif
25012
25013 #undef $ac_func
25014
25015 /* Override any gcc2 internal prototype to avoid an error. */
25016 #ifdef __cplusplus
25017 extern "C"
25018 {
25019 #endif
25020 /* We use char because int might match the return type of a gcc2
25021 builtin and then its argument prototype would still apply. */
25022 char $ac_func ();
25023 /* The GNU C library defines this for functions which it implements
25024 to always fail with ENOSYS. Some functions are actually named
25025 something starting with __ and the normal name is an alias. */
25026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25027 choke me
25028 #else
25029 char (*f) () = $ac_func;
25030 #endif
25031 #ifdef __cplusplus
25032 }
25033 #endif
25034
25035 int
25036 main ()
25037 {
25038 return f != $ac_func;
25039 ;
25040 return 0;
25041 }
25042 _ACEOF
25043 rm -f conftest.$ac_objext conftest$ac_exeext
25044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25045 (eval $ac_link) 2>conftest.er1
25046 ac_status=$?
25047 grep -v '^ *+' conftest.er1 >conftest.err
25048 rm -f conftest.er1
25049 cat conftest.err >&5
25050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); } &&
25052 { ac_try='test -z "$ac_c_werror_flag"
25053 || test ! -s conftest.err'
25054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25055 (eval $ac_try) 2>&5
25056 ac_status=$?
25057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058 (exit $ac_status); }; } &&
25059 { ac_try='test -s conftest$ac_exeext'
25060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25061 (eval $ac_try) 2>&5
25062 ac_status=$?
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); }; }; then
25065 eval "$as_ac_var=yes"
25066 else
25067 echo "$as_me: failed program was:" >&5
25068 sed 's/^/| /' conftest.$ac_ext >&5
25069
25070 eval "$as_ac_var=no"
25071 fi
25072 rm -f conftest.err conftest.$ac_objext \
25073 conftest$ac_exeext conftest.$ac_ext
25074 fi
25075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25077 if test `eval echo '${'$as_ac_var'}'` = yes; then
25078 cat >>confdefs.h <<_ACEOF
25079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25080 _ACEOF
25081
25082 fi
25083 done
25084
25085 fi
25086
25087
25088 LIBS="$ac_save_LIBS"
25089 CXXFLAGS="$ac_save_CXXFLAGS"
25090
25091
25092
25093 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
25094 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
25095 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
25096 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25098 else
25099
25100
25101
25102 ac_ext=cc
25103 ac_cpp='$CXXCPP $CPPFLAGS'
25104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25107
25108 cat >conftest.$ac_ext <<_ACEOF
25109 /* confdefs.h. */
25110 _ACEOF
25111 cat confdefs.h >>conftest.$ac_ext
25112 cat >>conftest.$ac_ext <<_ACEOF
25113 /* end confdefs.h. */
25114 #include <math.h>
25115 int
25116 main ()
25117 {
25118 __builtin_abs(0);
25119 ;
25120 return 0;
25121 }
25122 _ACEOF
25123 rm -f conftest.$ac_objext
25124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25125 (eval $ac_compile) 2>conftest.er1
25126 ac_status=$?
25127 grep -v '^ *+' conftest.er1 >conftest.err
25128 rm -f conftest.er1
25129 cat conftest.err >&5
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } &&
25132 { ac_try='test -z "$ac_cxx_werror_flag"
25133 || test ! -s conftest.err'
25134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25135 (eval $ac_try) 2>&5
25136 ac_status=$?
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); }; } &&
25139 { ac_try='test -s conftest.$ac_objext'
25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25142 ac_status=$?
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; }; then
25145 glibcxx_cv_func___builtin_abs_use=yes
25146 else
25147 echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25149
25150 glibcxx_cv_func___builtin_abs_use=no
25151 fi
25152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25153 ac_ext=c
25154 ac_cpp='$CPP $CPPFLAGS'
25155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25158
25159
25160 fi
25161
25162 fi
25163 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
25164 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
25165 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
25166 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
25167 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
25168 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
25169 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
25170 echo $ECHO_N "(cached) $ECHO_C" >&6
25171 else
25172
25173 if test x$gcc_no_link = xyes; then
25174 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25175 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25176 { (exit 1); exit 1; }; }
25177 fi
25178 cat >conftest.$ac_ext <<_ACEOF
25179 /* confdefs.h. */
25180 _ACEOF
25181 cat confdefs.h >>conftest.$ac_ext
25182 cat >>conftest.$ac_ext <<_ACEOF
25183 /* end confdefs.h. */
25184 #include <math.h>
25185 int
25186 main ()
25187 {
25188 __builtin_abs(0);
25189 ;
25190 return 0;
25191 }
25192 _ACEOF
25193 rm -f conftest.$ac_objext conftest$ac_exeext
25194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25195 (eval $ac_link) 2>conftest.er1
25196 ac_status=$?
25197 grep -v '^ *+' conftest.er1 >conftest.err
25198 rm -f conftest.er1
25199 cat conftest.err >&5
25200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201 (exit $ac_status); } &&
25202 { ac_try='test -z "$ac_c_werror_flag"
25203 || test ! -s conftest.err'
25204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25205 (eval $ac_try) 2>&5
25206 ac_status=$?
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); }; } &&
25209 { ac_try='test -s conftest$ac_exeext'
25210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25211 (eval $ac_try) 2>&5
25212 ac_status=$?
25213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); }; }; then
25215 glibcxx_cv_func___builtin_abs_link=yes
25216 else
25217 echo "$as_me: failed program was:" >&5
25218 sed 's/^/| /' conftest.$ac_ext >&5
25219
25220 glibcxx_cv_func___builtin_abs_link=no
25221 fi
25222 rm -f conftest.err conftest.$ac_objext \
25223 conftest$ac_exeext conftest.$ac_ext
25224
25225 fi
25226
25227 fi
25228 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
25229 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
25230 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
25231 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25232
25233 cat >>confdefs.h <<_ACEOF
25234 #define ${ac_tr_func} 1
25235 _ACEOF
25236
25237 fi
25238 fi
25239
25240
25241 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
25242 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
25243 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
25244 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
25245 echo $ECHO_N "(cached) $ECHO_C" >&6
25246 else
25247
25248
25249
25250 ac_ext=cc
25251 ac_cpp='$CXXCPP $CPPFLAGS'
25252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25255
25256 cat >conftest.$ac_ext <<_ACEOF
25257 /* confdefs.h. */
25258 _ACEOF
25259 cat confdefs.h >>conftest.$ac_ext
25260 cat >>conftest.$ac_ext <<_ACEOF
25261 /* end confdefs.h. */
25262 #include <math.h>
25263 int
25264 main ()
25265 {
25266 __builtin_fabsf(0);
25267 ;
25268 return 0;
25269 }
25270 _ACEOF
25271 rm -f conftest.$ac_objext
25272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25273 (eval $ac_compile) 2>conftest.er1
25274 ac_status=$?
25275 grep -v '^ *+' conftest.er1 >conftest.err
25276 rm -f conftest.er1
25277 cat conftest.err >&5
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); } &&
25280 { ac_try='test -z "$ac_cxx_werror_flag"
25281 || test ! -s conftest.err'
25282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25283 (eval $ac_try) 2>&5
25284 ac_status=$?
25285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); }; } &&
25287 { ac_try='test -s conftest.$ac_objext'
25288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289 (eval $ac_try) 2>&5
25290 ac_status=$?
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); }; }; then
25293 glibcxx_cv_func___builtin_fabsf_use=yes
25294 else
25295 echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25297
25298 glibcxx_cv_func___builtin_fabsf_use=no
25299 fi
25300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25301 ac_ext=c
25302 ac_cpp='$CPP $CPPFLAGS'
25303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25306
25307
25308 fi
25309
25310 fi
25311 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
25312 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
25313 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
25314 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
25315 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
25316 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
25317 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
25318 echo $ECHO_N "(cached) $ECHO_C" >&6
25319 else
25320
25321 if test x$gcc_no_link = xyes; then
25322 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25323 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25324 { (exit 1); exit 1; }; }
25325 fi
25326 cat >conftest.$ac_ext <<_ACEOF
25327 /* confdefs.h. */
25328 _ACEOF
25329 cat confdefs.h >>conftest.$ac_ext
25330 cat >>conftest.$ac_ext <<_ACEOF
25331 /* end confdefs.h. */
25332 #include <math.h>
25333 int
25334 main ()
25335 {
25336 __builtin_fabsf(0);
25337 ;
25338 return 0;
25339 }
25340 _ACEOF
25341 rm -f conftest.$ac_objext conftest$ac_exeext
25342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25343 (eval $ac_link) 2>conftest.er1
25344 ac_status=$?
25345 grep -v '^ *+' conftest.er1 >conftest.err
25346 rm -f conftest.er1
25347 cat conftest.err >&5
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); } &&
25350 { ac_try='test -z "$ac_c_werror_flag"
25351 || test ! -s conftest.err'
25352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353 (eval $ac_try) 2>&5
25354 ac_status=$?
25355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356 (exit $ac_status); }; } &&
25357 { ac_try='test -s conftest$ac_exeext'
25358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25359 (eval $ac_try) 2>&5
25360 ac_status=$?
25361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); }; }; then
25363 glibcxx_cv_func___builtin_fabsf_link=yes
25364 else
25365 echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25367
25368 glibcxx_cv_func___builtin_fabsf_link=no
25369 fi
25370 rm -f conftest.err conftest.$ac_objext \
25371 conftest$ac_exeext conftest.$ac_ext
25372
25373 fi
25374
25375 fi
25376 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
25377 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
25378 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
25379 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25380
25381 cat >>confdefs.h <<_ACEOF
25382 #define ${ac_tr_func} 1
25383 _ACEOF
25384
25385 fi
25386 fi
25387
25388
25389 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
25390 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
25391 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
25392 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
25393 echo $ECHO_N "(cached) $ECHO_C" >&6
25394 else
25395
25396
25397
25398 ac_ext=cc
25399 ac_cpp='$CXXCPP $CPPFLAGS'
25400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25403
25404 cat >conftest.$ac_ext <<_ACEOF
25405 /* confdefs.h. */
25406 _ACEOF
25407 cat confdefs.h >>conftest.$ac_ext
25408 cat >>conftest.$ac_ext <<_ACEOF
25409 /* end confdefs.h. */
25410 #include <math.h>
25411 int
25412 main ()
25413 {
25414 __builtin_fabs(0);
25415 ;
25416 return 0;
25417 }
25418 _ACEOF
25419 rm -f conftest.$ac_objext
25420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25421 (eval $ac_compile) 2>conftest.er1
25422 ac_status=$?
25423 grep -v '^ *+' conftest.er1 >conftest.err
25424 rm -f conftest.er1
25425 cat conftest.err >&5
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); } &&
25428 { ac_try='test -z "$ac_cxx_werror_flag"
25429 || test ! -s conftest.err'
25430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25431 (eval $ac_try) 2>&5
25432 ac_status=$?
25433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434 (exit $ac_status); }; } &&
25435 { ac_try='test -s conftest.$ac_objext'
25436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); }; }; then
25441 glibcxx_cv_func___builtin_fabs_use=yes
25442 else
25443 echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25445
25446 glibcxx_cv_func___builtin_fabs_use=no
25447 fi
25448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25449 ac_ext=c
25450 ac_cpp='$CPP $CPPFLAGS'
25451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25454
25455
25456 fi
25457
25458 fi
25459 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
25460 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
25461 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
25462 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
25463 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
25464 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
25465 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
25466 echo $ECHO_N "(cached) $ECHO_C" >&6
25467 else
25468
25469 if test x$gcc_no_link = xyes; then
25470 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25471 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25472 { (exit 1); exit 1; }; }
25473 fi
25474 cat >conftest.$ac_ext <<_ACEOF
25475 /* confdefs.h. */
25476 _ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h. */
25480 #include <math.h>
25481 int
25482 main ()
25483 {
25484 __builtin_fabs(0);
25485 ;
25486 return 0;
25487 }
25488 _ACEOF
25489 rm -f conftest.$ac_objext conftest$ac_exeext
25490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25491 (eval $ac_link) 2>conftest.er1
25492 ac_status=$?
25493 grep -v '^ *+' conftest.er1 >conftest.err
25494 rm -f conftest.er1
25495 cat conftest.err >&5
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); } &&
25498 { ac_try='test -z "$ac_c_werror_flag"
25499 || test ! -s conftest.err'
25500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25501 (eval $ac_try) 2>&5
25502 ac_status=$?
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); }; } &&
25505 { ac_try='test -s conftest$ac_exeext'
25506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25507 (eval $ac_try) 2>&5
25508 ac_status=$?
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); }; }; then
25511 glibcxx_cv_func___builtin_fabs_link=yes
25512 else
25513 echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25515
25516 glibcxx_cv_func___builtin_fabs_link=no
25517 fi
25518 rm -f conftest.err conftest.$ac_objext \
25519 conftest$ac_exeext conftest.$ac_ext
25520
25521 fi
25522
25523 fi
25524 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
25525 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
25526 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
25527 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25528
25529 cat >>confdefs.h <<_ACEOF
25530 #define ${ac_tr_func} 1
25531 _ACEOF
25532
25533 fi
25534 fi
25535
25536
25537 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
25538 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
25539 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
25540 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
25541 echo $ECHO_N "(cached) $ECHO_C" >&6
25542 else
25543
25544
25545
25546 ac_ext=cc
25547 ac_cpp='$CXXCPP $CPPFLAGS'
25548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25551
25552 cat >conftest.$ac_ext <<_ACEOF
25553 /* confdefs.h. */
25554 _ACEOF
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h. */
25558 #include <math.h>
25559 int
25560 main ()
25561 {
25562 __builtin_fabsl(0);
25563 ;
25564 return 0;
25565 }
25566 _ACEOF
25567 rm -f conftest.$ac_objext
25568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25569 (eval $ac_compile) 2>conftest.er1
25570 ac_status=$?
25571 grep -v '^ *+' conftest.er1 >conftest.err
25572 rm -f conftest.er1
25573 cat conftest.err >&5
25574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); } &&
25576 { ac_try='test -z "$ac_cxx_werror_flag"
25577 || test ! -s conftest.err'
25578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25579 (eval $ac_try) 2>&5
25580 ac_status=$?
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); }; } &&
25583 { ac_try='test -s conftest.$ac_objext'
25584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585 (eval $ac_try) 2>&5
25586 ac_status=$?
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; }; then
25589 glibcxx_cv_func___builtin_fabsl_use=yes
25590 else
25591 echo "$as_me: failed program was:" >&5
25592 sed 's/^/| /' conftest.$ac_ext >&5
25593
25594 glibcxx_cv_func___builtin_fabsl_use=no
25595 fi
25596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25597 ac_ext=c
25598 ac_cpp='$CPP $CPPFLAGS'
25599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25602
25603
25604 fi
25605
25606 fi
25607 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
25608 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
25609 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
25610 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
25611 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
25612 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
25613 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
25614 echo $ECHO_N "(cached) $ECHO_C" >&6
25615 else
25616
25617 if test x$gcc_no_link = xyes; then
25618 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25619 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25620 { (exit 1); exit 1; }; }
25621 fi
25622 cat >conftest.$ac_ext <<_ACEOF
25623 /* confdefs.h. */
25624 _ACEOF
25625 cat confdefs.h >>conftest.$ac_ext
25626 cat >>conftest.$ac_ext <<_ACEOF
25627 /* end confdefs.h. */
25628 #include <math.h>
25629 int
25630 main ()
25631 {
25632 __builtin_fabsl(0);
25633 ;
25634 return 0;
25635 }
25636 _ACEOF
25637 rm -f conftest.$ac_objext conftest$ac_exeext
25638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25639 (eval $ac_link) 2>conftest.er1
25640 ac_status=$?
25641 grep -v '^ *+' conftest.er1 >conftest.err
25642 rm -f conftest.er1
25643 cat conftest.err >&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); } &&
25646 { ac_try='test -z "$ac_c_werror_flag"
25647 || test ! -s conftest.err'
25648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25649 (eval $ac_try) 2>&5
25650 ac_status=$?
25651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652 (exit $ac_status); }; } &&
25653 { ac_try='test -s conftest$ac_exeext'
25654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25655 (eval $ac_try) 2>&5
25656 ac_status=$?
25657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658 (exit $ac_status); }; }; then
25659 glibcxx_cv_func___builtin_fabsl_link=yes
25660 else
25661 echo "$as_me: failed program was:" >&5
25662 sed 's/^/| /' conftest.$ac_ext >&5
25663
25664 glibcxx_cv_func___builtin_fabsl_link=no
25665 fi
25666 rm -f conftest.err conftest.$ac_objext \
25667 conftest$ac_exeext conftest.$ac_ext
25668
25669 fi
25670
25671 fi
25672 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
25673 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
25674 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
25675 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25676
25677 cat >>confdefs.h <<_ACEOF
25678 #define ${ac_tr_func} 1
25679 _ACEOF
25680
25681 fi
25682 fi
25683
25684
25685 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
25686 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
25687 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
25688 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
25689 echo $ECHO_N "(cached) $ECHO_C" >&6
25690 else
25691
25692
25693
25694 ac_ext=cc
25695 ac_cpp='$CXXCPP $CPPFLAGS'
25696 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25697 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25698 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25699
25700 cat >conftest.$ac_ext <<_ACEOF
25701 /* confdefs.h. */
25702 _ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h. */
25706 #include <math.h>
25707 int
25708 main ()
25709 {
25710 __builtin_labs(0);
25711 ;
25712 return 0;
25713 }
25714 _ACEOF
25715 rm -f conftest.$ac_objext
25716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25717 (eval $ac_compile) 2>conftest.er1
25718 ac_status=$?
25719 grep -v '^ *+' conftest.er1 >conftest.err
25720 rm -f conftest.er1
25721 cat conftest.err >&5
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); } &&
25724 { ac_try='test -z "$ac_cxx_werror_flag"
25725 || test ! -s conftest.err'
25726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727 (eval $ac_try) 2>&5
25728 ac_status=$?
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); }; } &&
25731 { ac_try='test -s conftest.$ac_objext'
25732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25733 (eval $ac_try) 2>&5
25734 ac_status=$?
25735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736 (exit $ac_status); }; }; then
25737 glibcxx_cv_func___builtin_labs_use=yes
25738 else
25739 echo "$as_me: failed program was:" >&5
25740 sed 's/^/| /' conftest.$ac_ext >&5
25741
25742 glibcxx_cv_func___builtin_labs_use=no
25743 fi
25744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25745 ac_ext=c
25746 ac_cpp='$CPP $CPPFLAGS'
25747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25750
25751
25752 fi
25753
25754 fi
25755 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
25756 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
25757 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
25758 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
25759 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
25760 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
25761 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
25762 echo $ECHO_N "(cached) $ECHO_C" >&6
25763 else
25764
25765 if test x$gcc_no_link = xyes; then
25766 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25767 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25768 { (exit 1); exit 1; }; }
25769 fi
25770 cat >conftest.$ac_ext <<_ACEOF
25771 /* confdefs.h. */
25772 _ACEOF
25773 cat confdefs.h >>conftest.$ac_ext
25774 cat >>conftest.$ac_ext <<_ACEOF
25775 /* end confdefs.h. */
25776 #include <math.h>
25777 int
25778 main ()
25779 {
25780 __builtin_labs(0);
25781 ;
25782 return 0;
25783 }
25784 _ACEOF
25785 rm -f conftest.$ac_objext conftest$ac_exeext
25786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25787 (eval $ac_link) 2>conftest.er1
25788 ac_status=$?
25789 grep -v '^ *+' conftest.er1 >conftest.err
25790 rm -f conftest.er1
25791 cat conftest.err >&5
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); } &&
25794 { ac_try='test -z "$ac_c_werror_flag"
25795 || test ! -s conftest.err'
25796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25797 (eval $ac_try) 2>&5
25798 ac_status=$?
25799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25800 (exit $ac_status); }; } &&
25801 { ac_try='test -s conftest$ac_exeext'
25802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25803 (eval $ac_try) 2>&5
25804 ac_status=$?
25805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); }; }; then
25807 glibcxx_cv_func___builtin_labs_link=yes
25808 else
25809 echo "$as_me: failed program was:" >&5
25810 sed 's/^/| /' conftest.$ac_ext >&5
25811
25812 glibcxx_cv_func___builtin_labs_link=no
25813 fi
25814 rm -f conftest.err conftest.$ac_objext \
25815 conftest$ac_exeext conftest.$ac_ext
25816
25817 fi
25818
25819 fi
25820 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
25821 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
25822 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
25823 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25824
25825 cat >>confdefs.h <<_ACEOF
25826 #define ${ac_tr_func} 1
25827 _ACEOF
25828
25829 fi
25830 fi
25831
25832
25833
25834 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
25835 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
25836 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
25837 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
25838 echo $ECHO_N "(cached) $ECHO_C" >&6
25839 else
25840
25841
25842
25843 ac_ext=cc
25844 ac_cpp='$CXXCPP $CPPFLAGS'
25845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25848
25849 cat >conftest.$ac_ext <<_ACEOF
25850 /* confdefs.h. */
25851 _ACEOF
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h. */
25855 #include <math.h>
25856 int
25857 main ()
25858 {
25859 __builtin_sqrtf(0);
25860 ;
25861 return 0;
25862 }
25863 _ACEOF
25864 rm -f conftest.$ac_objext
25865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25866 (eval $ac_compile) 2>conftest.er1
25867 ac_status=$?
25868 grep -v '^ *+' conftest.er1 >conftest.err
25869 rm -f conftest.er1
25870 cat conftest.err >&5
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); } &&
25873 { ac_try='test -z "$ac_cxx_werror_flag"
25874 || test ! -s conftest.err'
25875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876 (eval $ac_try) 2>&5
25877 ac_status=$?
25878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879 (exit $ac_status); }; } &&
25880 { ac_try='test -s conftest.$ac_objext'
25881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25882 (eval $ac_try) 2>&5
25883 ac_status=$?
25884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885 (exit $ac_status); }; }; then
25886 glibcxx_cv_func___builtin_sqrtf_use=yes
25887 else
25888 echo "$as_me: failed program was:" >&5
25889 sed 's/^/| /' conftest.$ac_ext >&5
25890
25891 glibcxx_cv_func___builtin_sqrtf_use=no
25892 fi
25893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25894 ac_ext=c
25895 ac_cpp='$CPP $CPPFLAGS'
25896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25899
25900
25901 fi
25902
25903 fi
25904 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
25905 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
25906 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
25907 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
25908 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
25909 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
25910 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
25911 echo $ECHO_N "(cached) $ECHO_C" >&6
25912 else
25913
25914 if test x$gcc_no_link = xyes; then
25915 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25916 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25917 { (exit 1); exit 1; }; }
25918 fi
25919 cat >conftest.$ac_ext <<_ACEOF
25920 /* confdefs.h. */
25921 _ACEOF
25922 cat confdefs.h >>conftest.$ac_ext
25923 cat >>conftest.$ac_ext <<_ACEOF
25924 /* end confdefs.h. */
25925 #include <math.h>
25926 int
25927 main ()
25928 {
25929 __builtin_sqrtf(0);
25930 ;
25931 return 0;
25932 }
25933 _ACEOF
25934 rm -f conftest.$ac_objext conftest$ac_exeext
25935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25936 (eval $ac_link) 2>conftest.er1
25937 ac_status=$?
25938 grep -v '^ *+' conftest.er1 >conftest.err
25939 rm -f conftest.er1
25940 cat conftest.err >&5
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); } &&
25943 { ac_try='test -z "$ac_c_werror_flag"
25944 || test ! -s conftest.err'
25945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946 (eval $ac_try) 2>&5
25947 ac_status=$?
25948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949 (exit $ac_status); }; } &&
25950 { ac_try='test -s conftest$ac_exeext'
25951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952 (eval $ac_try) 2>&5
25953 ac_status=$?
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); }; }; then
25956 glibcxx_cv_func___builtin_sqrtf_link=yes
25957 else
25958 echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25960
25961 glibcxx_cv_func___builtin_sqrtf_link=no
25962 fi
25963 rm -f conftest.err conftest.$ac_objext \
25964 conftest$ac_exeext conftest.$ac_ext
25965
25966 fi
25967
25968 fi
25969 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
25970 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
25971 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
25972 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25973
25974 cat >>confdefs.h <<_ACEOF
25975 #define ${ac_tr_func} 1
25976 _ACEOF
25977
25978 fi
25979 fi
25980
25981
25982 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
25983 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
25984 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
25985 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
25986 echo $ECHO_N "(cached) $ECHO_C" >&6
25987 else
25988
25989
25990
25991 ac_ext=cc
25992 ac_cpp='$CXXCPP $CPPFLAGS'
25993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25996
25997 cat >conftest.$ac_ext <<_ACEOF
25998 /* confdefs.h. */
25999 _ACEOF
26000 cat confdefs.h >>conftest.$ac_ext
26001 cat >>conftest.$ac_ext <<_ACEOF
26002 /* end confdefs.h. */
26003 #include <math.h>
26004 int
26005 main ()
26006 {
26007 __builtin_sqrt(0);
26008 ;
26009 return 0;
26010 }
26011 _ACEOF
26012 rm -f conftest.$ac_objext
26013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26014 (eval $ac_compile) 2>conftest.er1
26015 ac_status=$?
26016 grep -v '^ *+' conftest.er1 >conftest.err
26017 rm -f conftest.er1
26018 cat conftest.err >&5
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); } &&
26021 { ac_try='test -z "$ac_cxx_werror_flag"
26022 || test ! -s conftest.err'
26023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26024 (eval $ac_try) 2>&5
26025 ac_status=$?
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); }; } &&
26028 { ac_try='test -s conftest.$ac_objext'
26029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26030 (eval $ac_try) 2>&5
26031 ac_status=$?
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); }; }; then
26034 glibcxx_cv_func___builtin_sqrt_use=yes
26035 else
26036 echo "$as_me: failed program was:" >&5
26037 sed 's/^/| /' conftest.$ac_ext >&5
26038
26039 glibcxx_cv_func___builtin_sqrt_use=no
26040 fi
26041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26042 ac_ext=c
26043 ac_cpp='$CPP $CPPFLAGS'
26044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26047
26048
26049 fi
26050
26051 fi
26052 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
26053 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
26054 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
26055 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
26056 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
26057 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
26058 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
26059 echo $ECHO_N "(cached) $ECHO_C" >&6
26060 else
26061
26062 if test x$gcc_no_link = xyes; then
26063 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26064 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26065 { (exit 1); exit 1; }; }
26066 fi
26067 cat >conftest.$ac_ext <<_ACEOF
26068 /* confdefs.h. */
26069 _ACEOF
26070 cat confdefs.h >>conftest.$ac_ext
26071 cat >>conftest.$ac_ext <<_ACEOF
26072 /* end confdefs.h. */
26073 #include <math.h>
26074 int
26075 main ()
26076 {
26077 __builtin_sqrt(0);
26078 ;
26079 return 0;
26080 }
26081 _ACEOF
26082 rm -f conftest.$ac_objext conftest$ac_exeext
26083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26084 (eval $ac_link) 2>conftest.er1
26085 ac_status=$?
26086 grep -v '^ *+' conftest.er1 >conftest.err
26087 rm -f conftest.er1
26088 cat conftest.err >&5
26089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090 (exit $ac_status); } &&
26091 { ac_try='test -z "$ac_c_werror_flag"
26092 || test ! -s conftest.err'
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; } &&
26098 { ac_try='test -s conftest$ac_exeext'
26099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100 (eval $ac_try) 2>&5
26101 ac_status=$?
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; }; then
26104 glibcxx_cv_func___builtin_sqrt_link=yes
26105 else
26106 echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26108
26109 glibcxx_cv_func___builtin_sqrt_link=no
26110 fi
26111 rm -f conftest.err conftest.$ac_objext \
26112 conftest$ac_exeext conftest.$ac_ext
26113
26114 fi
26115
26116 fi
26117 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
26118 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
26119 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
26120 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26121
26122 cat >>confdefs.h <<_ACEOF
26123 #define ${ac_tr_func} 1
26124 _ACEOF
26125
26126 fi
26127 fi
26128
26129
26130 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
26131 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
26132 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
26133 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
26134 echo $ECHO_N "(cached) $ECHO_C" >&6
26135 else
26136
26137
26138
26139 ac_ext=cc
26140 ac_cpp='$CXXCPP $CPPFLAGS'
26141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26144
26145 cat >conftest.$ac_ext <<_ACEOF
26146 /* confdefs.h. */
26147 _ACEOF
26148 cat confdefs.h >>conftest.$ac_ext
26149 cat >>conftest.$ac_ext <<_ACEOF
26150 /* end confdefs.h. */
26151 #include <math.h>
26152 int
26153 main ()
26154 {
26155 __builtin_sqrtl(0);
26156 ;
26157 return 0;
26158 }
26159 _ACEOF
26160 rm -f conftest.$ac_objext
26161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26162 (eval $ac_compile) 2>conftest.er1
26163 ac_status=$?
26164 grep -v '^ *+' conftest.er1 >conftest.err
26165 rm -f conftest.er1
26166 cat conftest.err >&5
26167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168 (exit $ac_status); } &&
26169 { ac_try='test -z "$ac_cxx_werror_flag"
26170 || test ! -s conftest.err'
26171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172 (eval $ac_try) 2>&5
26173 ac_status=$?
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); }; } &&
26176 { ac_try='test -s conftest.$ac_objext'
26177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; }; then
26182 glibcxx_cv_func___builtin_sqrtl_use=yes
26183 else
26184 echo "$as_me: failed program was:" >&5
26185 sed 's/^/| /' conftest.$ac_ext >&5
26186
26187 glibcxx_cv_func___builtin_sqrtl_use=no
26188 fi
26189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26190 ac_ext=c
26191 ac_cpp='$CPP $CPPFLAGS'
26192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26195
26196
26197 fi
26198
26199 fi
26200 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
26201 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
26202 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
26203 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
26204 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
26205 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
26206 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
26207 echo $ECHO_N "(cached) $ECHO_C" >&6
26208 else
26209
26210 if test x$gcc_no_link = xyes; then
26211 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26212 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26213 { (exit 1); exit 1; }; }
26214 fi
26215 cat >conftest.$ac_ext <<_ACEOF
26216 /* confdefs.h. */
26217 _ACEOF
26218 cat confdefs.h >>conftest.$ac_ext
26219 cat >>conftest.$ac_ext <<_ACEOF
26220 /* end confdefs.h. */
26221 #include <math.h>
26222 int
26223 main ()
26224 {
26225 __builtin_sqrtl(0);
26226 ;
26227 return 0;
26228 }
26229 _ACEOF
26230 rm -f conftest.$ac_objext conftest$ac_exeext
26231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26232 (eval $ac_link) 2>conftest.er1
26233 ac_status=$?
26234 grep -v '^ *+' conftest.er1 >conftest.err
26235 rm -f conftest.er1
26236 cat conftest.err >&5
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); } &&
26239 { ac_try='test -z "$ac_c_werror_flag"
26240 || test ! -s conftest.err'
26241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26242 (eval $ac_try) 2>&5
26243 ac_status=$?
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); }; } &&
26246 { ac_try='test -s conftest$ac_exeext'
26247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248 (eval $ac_try) 2>&5
26249 ac_status=$?
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); }; }; then
26252 glibcxx_cv_func___builtin_sqrtl_link=yes
26253 else
26254 echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26256
26257 glibcxx_cv_func___builtin_sqrtl_link=no
26258 fi
26259 rm -f conftest.err conftest.$ac_objext \
26260 conftest$ac_exeext conftest.$ac_ext
26261
26262 fi
26263
26264 fi
26265 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
26266 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
26267 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
26268 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26269
26270 cat >>confdefs.h <<_ACEOF
26271 #define ${ac_tr_func} 1
26272 _ACEOF
26273
26274 fi
26275 fi
26276
26277
26278
26279 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
26280 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
26281 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
26282 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
26283 echo $ECHO_N "(cached) $ECHO_C" >&6
26284 else
26285
26286
26287
26288 ac_ext=cc
26289 ac_cpp='$CXXCPP $CPPFLAGS'
26290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26293
26294 cat >conftest.$ac_ext <<_ACEOF
26295 /* confdefs.h. */
26296 _ACEOF
26297 cat confdefs.h >>conftest.$ac_ext
26298 cat >>conftest.$ac_ext <<_ACEOF
26299 /* end confdefs.h. */
26300 #include <math.h>
26301 int
26302 main ()
26303 {
26304 __builtin_sinf(0);
26305 ;
26306 return 0;
26307 }
26308 _ACEOF
26309 rm -f conftest.$ac_objext
26310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26311 (eval $ac_compile) 2>conftest.er1
26312 ac_status=$?
26313 grep -v '^ *+' conftest.er1 >conftest.err
26314 rm -f conftest.er1
26315 cat conftest.err >&5
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); } &&
26318 { ac_try='test -z "$ac_cxx_werror_flag"
26319 || test ! -s conftest.err'
26320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321 (eval $ac_try) 2>&5
26322 ac_status=$?
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); }; } &&
26325 { ac_try='test -s conftest.$ac_objext'
26326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327 (eval $ac_try) 2>&5
26328 ac_status=$?
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); }; }; then
26331 glibcxx_cv_func___builtin_sinf_use=yes
26332 else
26333 echo "$as_me: failed program was:" >&5
26334 sed 's/^/| /' conftest.$ac_ext >&5
26335
26336 glibcxx_cv_func___builtin_sinf_use=no
26337 fi
26338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26339 ac_ext=c
26340 ac_cpp='$CPP $CPPFLAGS'
26341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26344
26345
26346 fi
26347
26348 fi
26349 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
26350 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
26351 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
26352 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
26353 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
26354 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
26355 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
26356 echo $ECHO_N "(cached) $ECHO_C" >&6
26357 else
26358
26359 if test x$gcc_no_link = xyes; then
26360 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26362 { (exit 1); exit 1; }; }
26363 fi
26364 cat >conftest.$ac_ext <<_ACEOF
26365 /* confdefs.h. */
26366 _ACEOF
26367 cat confdefs.h >>conftest.$ac_ext
26368 cat >>conftest.$ac_ext <<_ACEOF
26369 /* end confdefs.h. */
26370 #include <math.h>
26371 int
26372 main ()
26373 {
26374 __builtin_sinf(0);
26375 ;
26376 return 0;
26377 }
26378 _ACEOF
26379 rm -f conftest.$ac_objext conftest$ac_exeext
26380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26381 (eval $ac_link) 2>conftest.er1
26382 ac_status=$?
26383 grep -v '^ *+' conftest.er1 >conftest.err
26384 rm -f conftest.er1
26385 cat conftest.err >&5
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); } &&
26388 { ac_try='test -z "$ac_c_werror_flag"
26389 || test ! -s conftest.err'
26390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26391 (eval $ac_try) 2>&5
26392 ac_status=$?
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); }; } &&
26395 { ac_try='test -s conftest$ac_exeext'
26396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26397 (eval $ac_try) 2>&5
26398 ac_status=$?
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); }; }; then
26401 glibcxx_cv_func___builtin_sinf_link=yes
26402 else
26403 echo "$as_me: failed program was:" >&5
26404 sed 's/^/| /' conftest.$ac_ext >&5
26405
26406 glibcxx_cv_func___builtin_sinf_link=no
26407 fi
26408 rm -f conftest.err conftest.$ac_objext \
26409 conftest$ac_exeext conftest.$ac_ext
26410
26411 fi
26412
26413 fi
26414 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
26415 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
26416 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
26417 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26418
26419 cat >>confdefs.h <<_ACEOF
26420 #define ${ac_tr_func} 1
26421 _ACEOF
26422
26423 fi
26424 fi
26425
26426
26427 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
26428 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
26429 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
26430 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
26431 echo $ECHO_N "(cached) $ECHO_C" >&6
26432 else
26433
26434
26435
26436 ac_ext=cc
26437 ac_cpp='$CXXCPP $CPPFLAGS'
26438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26441
26442 cat >conftest.$ac_ext <<_ACEOF
26443 /* confdefs.h. */
26444 _ACEOF
26445 cat confdefs.h >>conftest.$ac_ext
26446 cat >>conftest.$ac_ext <<_ACEOF
26447 /* end confdefs.h. */
26448 #include <math.h>
26449 int
26450 main ()
26451 {
26452 __builtin_sin(0);
26453 ;
26454 return 0;
26455 }
26456 _ACEOF
26457 rm -f conftest.$ac_objext
26458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26459 (eval $ac_compile) 2>conftest.er1
26460 ac_status=$?
26461 grep -v '^ *+' conftest.er1 >conftest.err
26462 rm -f conftest.er1
26463 cat conftest.err >&5
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); } &&
26466 { ac_try='test -z "$ac_cxx_werror_flag"
26467 || test ! -s conftest.err'
26468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26469 (eval $ac_try) 2>&5
26470 ac_status=$?
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); }; } &&
26473 { ac_try='test -s conftest.$ac_objext'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; }; then
26479 glibcxx_cv_func___builtin_sin_use=yes
26480 else
26481 echo "$as_me: failed program was:" >&5
26482 sed 's/^/| /' conftest.$ac_ext >&5
26483
26484 glibcxx_cv_func___builtin_sin_use=no
26485 fi
26486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26487 ac_ext=c
26488 ac_cpp='$CPP $CPPFLAGS'
26489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26492
26493
26494 fi
26495
26496 fi
26497 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
26498 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
26499 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
26500 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
26501 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
26502 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
26503 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
26504 echo $ECHO_N "(cached) $ECHO_C" >&6
26505 else
26506
26507 if test x$gcc_no_link = xyes; then
26508 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26509 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26510 { (exit 1); exit 1; }; }
26511 fi
26512 cat >conftest.$ac_ext <<_ACEOF
26513 /* confdefs.h. */
26514 _ACEOF
26515 cat confdefs.h >>conftest.$ac_ext
26516 cat >>conftest.$ac_ext <<_ACEOF
26517 /* end confdefs.h. */
26518 #include <math.h>
26519 int
26520 main ()
26521 {
26522 __builtin_sin(0);
26523 ;
26524 return 0;
26525 }
26526 _ACEOF
26527 rm -f conftest.$ac_objext conftest$ac_exeext
26528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26529 (eval $ac_link) 2>conftest.er1
26530 ac_status=$?
26531 grep -v '^ *+' conftest.er1 >conftest.err
26532 rm -f conftest.er1
26533 cat conftest.err >&5
26534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26535 (exit $ac_status); } &&
26536 { ac_try='test -z "$ac_c_werror_flag"
26537 || test ! -s conftest.err'
26538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26539 (eval $ac_try) 2>&5
26540 ac_status=$?
26541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542 (exit $ac_status); }; } &&
26543 { ac_try='test -s conftest$ac_exeext'
26544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26545 (eval $ac_try) 2>&5
26546 ac_status=$?
26547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548 (exit $ac_status); }; }; then
26549 glibcxx_cv_func___builtin_sin_link=yes
26550 else
26551 echo "$as_me: failed program was:" >&5
26552 sed 's/^/| /' conftest.$ac_ext >&5
26553
26554 glibcxx_cv_func___builtin_sin_link=no
26555 fi
26556 rm -f conftest.err conftest.$ac_objext \
26557 conftest$ac_exeext conftest.$ac_ext
26558
26559 fi
26560
26561 fi
26562 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
26563 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
26564 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
26565 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26566
26567 cat >>confdefs.h <<_ACEOF
26568 #define ${ac_tr_func} 1
26569 _ACEOF
26570
26571 fi
26572 fi
26573
26574
26575 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
26576 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
26577 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
26578 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
26579 echo $ECHO_N "(cached) $ECHO_C" >&6
26580 else
26581
26582
26583
26584 ac_ext=cc
26585 ac_cpp='$CXXCPP $CPPFLAGS'
26586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26589
26590 cat >conftest.$ac_ext <<_ACEOF
26591 /* confdefs.h. */
26592 _ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h. */
26596 #include <math.h>
26597 int
26598 main ()
26599 {
26600 __builtin_sinl(0);
26601 ;
26602 return 0;
26603 }
26604 _ACEOF
26605 rm -f conftest.$ac_objext
26606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26607 (eval $ac_compile) 2>conftest.er1
26608 ac_status=$?
26609 grep -v '^ *+' conftest.er1 >conftest.err
26610 rm -f conftest.er1
26611 cat conftest.err >&5
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); } &&
26614 { ac_try='test -z "$ac_cxx_werror_flag"
26615 || test ! -s conftest.err'
26616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26617 (eval $ac_try) 2>&5
26618 ac_status=$?
26619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620 (exit $ac_status); }; } &&
26621 { ac_try='test -s conftest.$ac_objext'
26622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26623 (eval $ac_try) 2>&5
26624 ac_status=$?
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); }; }; then
26627 glibcxx_cv_func___builtin_sinl_use=yes
26628 else
26629 echo "$as_me: failed program was:" >&5
26630 sed 's/^/| /' conftest.$ac_ext >&5
26631
26632 glibcxx_cv_func___builtin_sinl_use=no
26633 fi
26634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26635 ac_ext=c
26636 ac_cpp='$CPP $CPPFLAGS'
26637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26640
26641
26642 fi
26643
26644 fi
26645 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
26646 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
26647 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
26648 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
26649 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
26650 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
26651 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
26652 echo $ECHO_N "(cached) $ECHO_C" >&6
26653 else
26654
26655 if test x$gcc_no_link = xyes; then
26656 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26658 { (exit 1); exit 1; }; }
26659 fi
26660 cat >conftest.$ac_ext <<_ACEOF
26661 /* confdefs.h. */
26662 _ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h. */
26666 #include <math.h>
26667 int
26668 main ()
26669 {
26670 __builtin_sinl(0);
26671 ;
26672 return 0;
26673 }
26674 _ACEOF
26675 rm -f conftest.$ac_objext conftest$ac_exeext
26676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26677 (eval $ac_link) 2>conftest.er1
26678 ac_status=$?
26679 grep -v '^ *+' conftest.er1 >conftest.err
26680 rm -f conftest.er1
26681 cat conftest.err >&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); } &&
26684 { ac_try='test -z "$ac_c_werror_flag"
26685 || test ! -s conftest.err'
26686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26687 (eval $ac_try) 2>&5
26688 ac_status=$?
26689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690 (exit $ac_status); }; } &&
26691 { ac_try='test -s conftest$ac_exeext'
26692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26693 (eval $ac_try) 2>&5
26694 ac_status=$?
26695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696 (exit $ac_status); }; }; then
26697 glibcxx_cv_func___builtin_sinl_link=yes
26698 else
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26701
26702 glibcxx_cv_func___builtin_sinl_link=no
26703 fi
26704 rm -f conftest.err conftest.$ac_objext \
26705 conftest$ac_exeext conftest.$ac_ext
26706
26707 fi
26708
26709 fi
26710 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
26711 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
26712 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
26713 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26714
26715 cat >>confdefs.h <<_ACEOF
26716 #define ${ac_tr_func} 1
26717 _ACEOF
26718
26719 fi
26720 fi
26721
26722
26723
26724 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
26725 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
26726 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
26727 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
26728 echo $ECHO_N "(cached) $ECHO_C" >&6
26729 else
26730
26731
26732
26733 ac_ext=cc
26734 ac_cpp='$CXXCPP $CPPFLAGS'
26735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26738
26739 cat >conftest.$ac_ext <<_ACEOF
26740 /* confdefs.h. */
26741 _ACEOF
26742 cat confdefs.h >>conftest.$ac_ext
26743 cat >>conftest.$ac_ext <<_ACEOF
26744 /* end confdefs.h. */
26745 #include <math.h>
26746 int
26747 main ()
26748 {
26749 __builtin_cosf(0);
26750 ;
26751 return 0;
26752 }
26753 _ACEOF
26754 rm -f conftest.$ac_objext
26755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26756 (eval $ac_compile) 2>conftest.er1
26757 ac_status=$?
26758 grep -v '^ *+' conftest.er1 >conftest.err
26759 rm -f conftest.er1
26760 cat conftest.err >&5
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); } &&
26763 { ac_try='test -z "$ac_cxx_werror_flag"
26764 || test ! -s conftest.err'
26765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26766 (eval $ac_try) 2>&5
26767 ac_status=$?
26768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26769 (exit $ac_status); }; } &&
26770 { ac_try='test -s conftest.$ac_objext'
26771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26772 (eval $ac_try) 2>&5
26773 ac_status=$?
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); }; }; then
26776 glibcxx_cv_func___builtin_cosf_use=yes
26777 else
26778 echo "$as_me: failed program was:" >&5
26779 sed 's/^/| /' conftest.$ac_ext >&5
26780
26781 glibcxx_cv_func___builtin_cosf_use=no
26782 fi
26783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26784 ac_ext=c
26785 ac_cpp='$CPP $CPPFLAGS'
26786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26789
26790
26791 fi
26792
26793 fi
26794 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
26795 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
26796 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
26797 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
26798 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
26799 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
26800 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
26801 echo $ECHO_N "(cached) $ECHO_C" >&6
26802 else
26803
26804 if test x$gcc_no_link = xyes; then
26805 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26807 { (exit 1); exit 1; }; }
26808 fi
26809 cat >conftest.$ac_ext <<_ACEOF
26810 /* confdefs.h. */
26811 _ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h. */
26815 #include <math.h>
26816 int
26817 main ()
26818 {
26819 __builtin_cosf(0);
26820 ;
26821 return 0;
26822 }
26823 _ACEOF
26824 rm -f conftest.$ac_objext conftest$ac_exeext
26825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26826 (eval $ac_link) 2>conftest.er1
26827 ac_status=$?
26828 grep -v '^ *+' conftest.er1 >conftest.err
26829 rm -f conftest.er1
26830 cat conftest.err >&5
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); } &&
26833 { ac_try='test -z "$ac_c_werror_flag"
26834 || test ! -s conftest.err'
26835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26836 (eval $ac_try) 2>&5
26837 ac_status=$?
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); }; } &&
26840 { ac_try='test -s conftest$ac_exeext'
26841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26842 (eval $ac_try) 2>&5
26843 ac_status=$?
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); }; }; then
26846 glibcxx_cv_func___builtin_cosf_link=yes
26847 else
26848 echo "$as_me: failed program was:" >&5
26849 sed 's/^/| /' conftest.$ac_ext >&5
26850
26851 glibcxx_cv_func___builtin_cosf_link=no
26852 fi
26853 rm -f conftest.err conftest.$ac_objext \
26854 conftest$ac_exeext conftest.$ac_ext
26855
26856 fi
26857
26858 fi
26859 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
26860 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
26861 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
26862 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26863
26864 cat >>confdefs.h <<_ACEOF
26865 #define ${ac_tr_func} 1
26866 _ACEOF
26867
26868 fi
26869 fi
26870
26871
26872 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
26873 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
26874 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
26875 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
26876 echo $ECHO_N "(cached) $ECHO_C" >&6
26877 else
26878
26879
26880
26881 ac_ext=cc
26882 ac_cpp='$CXXCPP $CPPFLAGS'
26883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26886
26887 cat >conftest.$ac_ext <<_ACEOF
26888 /* confdefs.h. */
26889 _ACEOF
26890 cat confdefs.h >>conftest.$ac_ext
26891 cat >>conftest.$ac_ext <<_ACEOF
26892 /* end confdefs.h. */
26893 #include <math.h>
26894 int
26895 main ()
26896 {
26897 __builtin_cos(0);
26898 ;
26899 return 0;
26900 }
26901 _ACEOF
26902 rm -f conftest.$ac_objext
26903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26904 (eval $ac_compile) 2>conftest.er1
26905 ac_status=$?
26906 grep -v '^ *+' conftest.er1 >conftest.err
26907 rm -f conftest.er1
26908 cat conftest.err >&5
26909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910 (exit $ac_status); } &&
26911 { ac_try='test -z "$ac_cxx_werror_flag"
26912 || test ! -s conftest.err'
26913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26914 (eval $ac_try) 2>&5
26915 ac_status=$?
26916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26917 (exit $ac_status); }; } &&
26918 { ac_try='test -s conftest.$ac_objext'
26919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26920 (eval $ac_try) 2>&5
26921 ac_status=$?
26922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923 (exit $ac_status); }; }; then
26924 glibcxx_cv_func___builtin_cos_use=yes
26925 else
26926 echo "$as_me: failed program was:" >&5
26927 sed 's/^/| /' conftest.$ac_ext >&5
26928
26929 glibcxx_cv_func___builtin_cos_use=no
26930 fi
26931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26932 ac_ext=c
26933 ac_cpp='$CPP $CPPFLAGS'
26934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26937
26938
26939 fi
26940
26941 fi
26942 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
26943 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
26944 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
26945 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
26946 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
26947 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
26948 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
26949 echo $ECHO_N "(cached) $ECHO_C" >&6
26950 else
26951
26952 if test x$gcc_no_link = xyes; then
26953 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26954 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26955 { (exit 1); exit 1; }; }
26956 fi
26957 cat >conftest.$ac_ext <<_ACEOF
26958 /* confdefs.h. */
26959 _ACEOF
26960 cat confdefs.h >>conftest.$ac_ext
26961 cat >>conftest.$ac_ext <<_ACEOF
26962 /* end confdefs.h. */
26963 #include <math.h>
26964 int
26965 main ()
26966 {
26967 __builtin_cos(0);
26968 ;
26969 return 0;
26970 }
26971 _ACEOF
26972 rm -f conftest.$ac_objext conftest$ac_exeext
26973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26974 (eval $ac_link) 2>conftest.er1
26975 ac_status=$?
26976 grep -v '^ *+' conftest.er1 >conftest.err
26977 rm -f conftest.er1
26978 cat conftest.err >&5
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); } &&
26981 { ac_try='test -z "$ac_c_werror_flag"
26982 || test ! -s conftest.err'
26983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26984 (eval $ac_try) 2>&5
26985 ac_status=$?
26986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); }; } &&
26988 { ac_try='test -s conftest$ac_exeext'
26989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26990 (eval $ac_try) 2>&5
26991 ac_status=$?
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); }; }; then
26994 glibcxx_cv_func___builtin_cos_link=yes
26995 else
26996 echo "$as_me: failed program was:" >&5
26997 sed 's/^/| /' conftest.$ac_ext >&5
26998
26999 glibcxx_cv_func___builtin_cos_link=no
27000 fi
27001 rm -f conftest.err conftest.$ac_objext \
27002 conftest$ac_exeext conftest.$ac_ext
27003
27004 fi
27005
27006 fi
27007 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
27008 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
27009 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
27010 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27011
27012 cat >>confdefs.h <<_ACEOF
27013 #define ${ac_tr_func} 1
27014 _ACEOF
27015
27016 fi
27017 fi
27018
27019
27020 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
27021 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
27022 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
27023 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
27024 echo $ECHO_N "(cached) $ECHO_C" >&6
27025 else
27026
27027
27028
27029 ac_ext=cc
27030 ac_cpp='$CXXCPP $CPPFLAGS'
27031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27034
27035 cat >conftest.$ac_ext <<_ACEOF
27036 /* confdefs.h. */
27037 _ACEOF
27038 cat confdefs.h >>conftest.$ac_ext
27039 cat >>conftest.$ac_ext <<_ACEOF
27040 /* end confdefs.h. */
27041 #include <math.h>
27042 int
27043 main ()
27044 {
27045 __builtin_cosl(0);
27046 ;
27047 return 0;
27048 }
27049 _ACEOF
27050 rm -f conftest.$ac_objext
27051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27052 (eval $ac_compile) 2>conftest.er1
27053 ac_status=$?
27054 grep -v '^ *+' conftest.er1 >conftest.err
27055 rm -f conftest.er1
27056 cat conftest.err >&5
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); } &&
27059 { ac_try='test -z "$ac_cxx_werror_flag"
27060 || test ! -s conftest.err'
27061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27062 (eval $ac_try) 2>&5
27063 ac_status=$?
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); }; } &&
27066 { ac_try='test -s conftest.$ac_objext'
27067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27068 (eval $ac_try) 2>&5
27069 ac_status=$?
27070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); }; }; then
27072 glibcxx_cv_func___builtin_cosl_use=yes
27073 else
27074 echo "$as_me: failed program was:" >&5
27075 sed 's/^/| /' conftest.$ac_ext >&5
27076
27077 glibcxx_cv_func___builtin_cosl_use=no
27078 fi
27079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27080 ac_ext=c
27081 ac_cpp='$CPP $CPPFLAGS'
27082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27085
27086
27087 fi
27088
27089 fi
27090 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
27091 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
27092 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
27093 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
27094 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
27095 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
27096 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
27097 echo $ECHO_N "(cached) $ECHO_C" >&6
27098 else
27099
27100 if test x$gcc_no_link = xyes; then
27101 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27102 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27103 { (exit 1); exit 1; }; }
27104 fi
27105 cat >conftest.$ac_ext <<_ACEOF
27106 /* confdefs.h. */
27107 _ACEOF
27108 cat confdefs.h >>conftest.$ac_ext
27109 cat >>conftest.$ac_ext <<_ACEOF
27110 /* end confdefs.h. */
27111 #include <math.h>
27112 int
27113 main ()
27114 {
27115 __builtin_cosl(0);
27116 ;
27117 return 0;
27118 }
27119 _ACEOF
27120 rm -f conftest.$ac_objext conftest$ac_exeext
27121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27122 (eval $ac_link) 2>conftest.er1
27123 ac_status=$?
27124 grep -v '^ *+' conftest.er1 >conftest.err
27125 rm -f conftest.er1
27126 cat conftest.err >&5
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); } &&
27129 { ac_try='test -z "$ac_c_werror_flag"
27130 || test ! -s conftest.err'
27131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132 (eval $ac_try) 2>&5
27133 ac_status=$?
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); }; } &&
27136 { ac_try='test -s conftest$ac_exeext'
27137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27138 (eval $ac_try) 2>&5
27139 ac_status=$?
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); }; }; then
27142 glibcxx_cv_func___builtin_cosl_link=yes
27143 else
27144 echo "$as_me: failed program was:" >&5
27145 sed 's/^/| /' conftest.$ac_ext >&5
27146
27147 glibcxx_cv_func___builtin_cosl_link=no
27148 fi
27149 rm -f conftest.err conftest.$ac_objext \
27150 conftest$ac_exeext conftest.$ac_ext
27151
27152 fi
27153
27154 fi
27155 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
27156 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
27157 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
27158 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27159
27160 cat >>confdefs.h <<_ACEOF
27161 #define ${ac_tr_func} 1
27162 _ACEOF
27163
27164 fi
27165 fi
27166
27167
27168
27169
27170 echo "$as_me:$LINENO: checking for main in -lm" >&5
27171 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
27172 if test "${ac_cv_lib_m_main+set}" = set; then
27173 echo $ECHO_N "(cached) $ECHO_C" >&6
27174 else
27175 ac_check_lib_save_LIBS=$LIBS
27176 LIBS="-lm $LIBS"
27177 if test x$gcc_no_link = xyes; then
27178 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27179 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27180 { (exit 1); exit 1; }; }
27181 fi
27182 cat >conftest.$ac_ext <<_ACEOF
27183 /* confdefs.h. */
27184 _ACEOF
27185 cat confdefs.h >>conftest.$ac_ext
27186 cat >>conftest.$ac_ext <<_ACEOF
27187 /* end confdefs.h. */
27188
27189
27190 int
27191 main ()
27192 {
27193 main ();
27194 ;
27195 return 0;
27196 }
27197 _ACEOF
27198 rm -f conftest.$ac_objext conftest$ac_exeext
27199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27200 (eval $ac_link) 2>conftest.er1
27201 ac_status=$?
27202 grep -v '^ *+' conftest.er1 >conftest.err
27203 rm -f conftest.er1
27204 cat conftest.err >&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); } &&
27207 { ac_try='test -z "$ac_c_werror_flag"
27208 || test ! -s conftest.err'
27209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27210 (eval $ac_try) 2>&5
27211 ac_status=$?
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); }; } &&
27214 { ac_try='test -s conftest$ac_exeext'
27215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27216 (eval $ac_try) 2>&5
27217 ac_status=$?
27218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27219 (exit $ac_status); }; }; then
27220 ac_cv_lib_m_main=yes
27221 else
27222 echo "$as_me: failed program was:" >&5
27223 sed 's/^/| /' conftest.$ac_ext >&5
27224
27225 ac_cv_lib_m_main=no
27226 fi
27227 rm -f conftest.err conftest.$ac_objext \
27228 conftest$ac_exeext conftest.$ac_ext
27229 LIBS=$ac_check_lib_save_LIBS
27230 fi
27231 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
27232 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
27233 if test $ac_cv_lib_m_main = yes; then
27234 cat >>confdefs.h <<_ACEOF
27235 #define HAVE_LIBM 1
27236 _ACEOF
27237
27238 LIBS="-lm $LIBS"
27239
27240 fi
27241
27242
27243 for ac_func in copysignf
27244 do
27245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27246 echo "$as_me:$LINENO: checking for $ac_func" >&5
27247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27248 if eval "test \"\${$as_ac_var+set}\" = set"; then
27249 echo $ECHO_N "(cached) $ECHO_C" >&6
27250 else
27251 if test x$gcc_no_link = xyes; then
27252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27254 { (exit 1); exit 1; }; }
27255 fi
27256 cat >conftest.$ac_ext <<_ACEOF
27257 /* confdefs.h. */
27258 _ACEOF
27259 cat confdefs.h >>conftest.$ac_ext
27260 cat >>conftest.$ac_ext <<_ACEOF
27261 /* end confdefs.h. */
27262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27264 #define $ac_func innocuous_$ac_func
27265
27266 /* System header to define __stub macros and hopefully few prototypes,
27267 which can conflict with char $ac_func (); below.
27268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27269 <limits.h> exists even on freestanding compilers. */
27270
27271 #ifdef __STDC__
27272 # include <limits.h>
27273 #else
27274 # include <assert.h>
27275 #endif
27276
27277 #undef $ac_func
27278
27279 /* Override any gcc2 internal prototype to avoid an error. */
27280 #ifdef __cplusplus
27281 extern "C"
27282 {
27283 #endif
27284 /* We use char because int might match the return type of a gcc2
27285 builtin and then its argument prototype would still apply. */
27286 char $ac_func ();
27287 /* The GNU C library defines this for functions which it implements
27288 to always fail with ENOSYS. Some functions are actually named
27289 something starting with __ and the normal name is an alias. */
27290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27291 choke me
27292 #else
27293 char (*f) () = $ac_func;
27294 #endif
27295 #ifdef __cplusplus
27296 }
27297 #endif
27298
27299 int
27300 main ()
27301 {
27302 return f != $ac_func;
27303 ;
27304 return 0;
27305 }
27306 _ACEOF
27307 rm -f conftest.$ac_objext conftest$ac_exeext
27308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27309 (eval $ac_link) 2>conftest.er1
27310 ac_status=$?
27311 grep -v '^ *+' conftest.er1 >conftest.err
27312 rm -f conftest.er1
27313 cat conftest.err >&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); } &&
27316 { ac_try='test -z "$ac_c_werror_flag"
27317 || test ! -s conftest.err'
27318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27319 (eval $ac_try) 2>&5
27320 ac_status=$?
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); }; } &&
27323 { ac_try='test -s conftest$ac_exeext'
27324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27325 (eval $ac_try) 2>&5
27326 ac_status=$?
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); }; }; then
27329 eval "$as_ac_var=yes"
27330 else
27331 echo "$as_me: failed program was:" >&5
27332 sed 's/^/| /' conftest.$ac_ext >&5
27333
27334 eval "$as_ac_var=no"
27335 fi
27336 rm -f conftest.err conftest.$ac_objext \
27337 conftest$ac_exeext conftest.$ac_ext
27338 fi
27339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27341 if test `eval echo '${'$as_ac_var'}'` = yes; then
27342 cat >>confdefs.h <<_ACEOF
27343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27344 _ACEOF
27345
27346 else
27347 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
27348 fi
27349 done
27350
27351
27352
27353 for ac_func in __signbit
27354 do
27355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27356 echo "$as_me:$LINENO: checking for $ac_func" >&5
27357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27358 if eval "test \"\${$as_ac_var+set}\" = set"; then
27359 echo $ECHO_N "(cached) $ECHO_C" >&6
27360 else
27361 if test x$gcc_no_link = xyes; then
27362 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27363 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27364 { (exit 1); exit 1; }; }
27365 fi
27366 cat >conftest.$ac_ext <<_ACEOF
27367 /* confdefs.h. */
27368 _ACEOF
27369 cat confdefs.h >>conftest.$ac_ext
27370 cat >>conftest.$ac_ext <<_ACEOF
27371 /* end confdefs.h. */
27372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27374 #define $ac_func innocuous_$ac_func
27375
27376 /* System header to define __stub macros and hopefully few prototypes,
27377 which can conflict with char $ac_func (); below.
27378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27379 <limits.h> exists even on freestanding compilers. */
27380
27381 #ifdef __STDC__
27382 # include <limits.h>
27383 #else
27384 # include <assert.h>
27385 #endif
27386
27387 #undef $ac_func
27388
27389 /* Override any gcc2 internal prototype to avoid an error. */
27390 #ifdef __cplusplus
27391 extern "C"
27392 {
27393 #endif
27394 /* We use char because int might match the return type of a gcc2
27395 builtin and then its argument prototype would still apply. */
27396 char $ac_func ();
27397 /* The GNU C library defines this for functions which it implements
27398 to always fail with ENOSYS. Some functions are actually named
27399 something starting with __ and the normal name is an alias. */
27400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27401 choke me
27402 #else
27403 char (*f) () = $ac_func;
27404 #endif
27405 #ifdef __cplusplus
27406 }
27407 #endif
27408
27409 int
27410 main ()
27411 {
27412 return f != $ac_func;
27413 ;
27414 return 0;
27415 }
27416 _ACEOF
27417 rm -f conftest.$ac_objext conftest$ac_exeext
27418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27419 (eval $ac_link) 2>conftest.er1
27420 ac_status=$?
27421 grep -v '^ *+' conftest.er1 >conftest.err
27422 rm -f conftest.er1
27423 cat conftest.err >&5
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); } &&
27426 { ac_try='test -z "$ac_c_werror_flag"
27427 || test ! -s conftest.err'
27428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27429 (eval $ac_try) 2>&5
27430 ac_status=$?
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); }; } &&
27433 { ac_try='test -s conftest$ac_exeext'
27434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27435 (eval $ac_try) 2>&5
27436 ac_status=$?
27437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27438 (exit $ac_status); }; }; then
27439 eval "$as_ac_var=yes"
27440 else
27441 echo "$as_me: failed program was:" >&5
27442 sed 's/^/| /' conftest.$ac_ext >&5
27443
27444 eval "$as_ac_var=no"
27445 fi
27446 rm -f conftest.err conftest.$ac_objext \
27447 conftest$ac_exeext conftest.$ac_ext
27448 fi
27449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27451 if test `eval echo '${'$as_ac_var'}'` = yes; then
27452 cat >>confdefs.h <<_ACEOF
27453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27454 _ACEOF
27455
27456 else
27457 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
27458 fi
27459 done
27460
27461
27462
27463 for ac_func in __signbitf
27464 do
27465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27466 echo "$as_me:$LINENO: checking for $ac_func" >&5
27467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27468 if eval "test \"\${$as_ac_var+set}\" = set"; then
27469 echo $ECHO_N "(cached) $ECHO_C" >&6
27470 else
27471 if test x$gcc_no_link = xyes; then
27472 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27473 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27474 { (exit 1); exit 1; }; }
27475 fi
27476 cat >conftest.$ac_ext <<_ACEOF
27477 /* confdefs.h. */
27478 _ACEOF
27479 cat confdefs.h >>conftest.$ac_ext
27480 cat >>conftest.$ac_ext <<_ACEOF
27481 /* end confdefs.h. */
27482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27484 #define $ac_func innocuous_$ac_func
27485
27486 /* System header to define __stub macros and hopefully few prototypes,
27487 which can conflict with char $ac_func (); below.
27488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27489 <limits.h> exists even on freestanding compilers. */
27490
27491 #ifdef __STDC__
27492 # include <limits.h>
27493 #else
27494 # include <assert.h>
27495 #endif
27496
27497 #undef $ac_func
27498
27499 /* Override any gcc2 internal prototype to avoid an error. */
27500 #ifdef __cplusplus
27501 extern "C"
27502 {
27503 #endif
27504 /* We use char because int might match the return type of a gcc2
27505 builtin and then its argument prototype would still apply. */
27506 char $ac_func ();
27507 /* The GNU C library defines this for functions which it implements
27508 to always fail with ENOSYS. Some functions are actually named
27509 something starting with __ and the normal name is an alias. */
27510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27511 choke me
27512 #else
27513 char (*f) () = $ac_func;
27514 #endif
27515 #ifdef __cplusplus
27516 }
27517 #endif
27518
27519 int
27520 main ()
27521 {
27522 return f != $ac_func;
27523 ;
27524 return 0;
27525 }
27526 _ACEOF
27527 rm -f conftest.$ac_objext conftest$ac_exeext
27528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27529 (eval $ac_link) 2>conftest.er1
27530 ac_status=$?
27531 grep -v '^ *+' conftest.er1 >conftest.err
27532 rm -f conftest.er1
27533 cat conftest.err >&5
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); } &&
27536 { ac_try='test -z "$ac_c_werror_flag"
27537 || test ! -s conftest.err'
27538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27539 (eval $ac_try) 2>&5
27540 ac_status=$?
27541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); }; } &&
27543 { ac_try='test -s conftest$ac_exeext'
27544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27545 (eval $ac_try) 2>&5
27546 ac_status=$?
27547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27548 (exit $ac_status); }; }; then
27549 eval "$as_ac_var=yes"
27550 else
27551 echo "$as_me: failed program was:" >&5
27552 sed 's/^/| /' conftest.$ac_ext >&5
27553
27554 eval "$as_ac_var=no"
27555 fi
27556 rm -f conftest.err conftest.$ac_objext \
27557 conftest$ac_exeext conftest.$ac_ext
27558 fi
27559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27560 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27561 if test `eval echo '${'$as_ac_var'}'` = yes; then
27562 cat >>confdefs.h <<_ACEOF
27563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27564 _ACEOF
27565
27566 else
27567 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
27568 fi
27569 done
27570
27571
27572 if test x$ac_cv_func_copysignl = x"yes"; then
27573
27574 for ac_func in __signbitl
27575 do
27576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27577 echo "$as_me:$LINENO: checking for $ac_func" >&5
27578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27579 if eval "test \"\${$as_ac_var+set}\" = set"; then
27580 echo $ECHO_N "(cached) $ECHO_C" >&6
27581 else
27582 if test x$gcc_no_link = xyes; then
27583 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27585 { (exit 1); exit 1; }; }
27586 fi
27587 cat >conftest.$ac_ext <<_ACEOF
27588 /* confdefs.h. */
27589 _ACEOF
27590 cat confdefs.h >>conftest.$ac_ext
27591 cat >>conftest.$ac_ext <<_ACEOF
27592 /* end confdefs.h. */
27593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27595 #define $ac_func innocuous_$ac_func
27596
27597 /* System header to define __stub macros and hopefully few prototypes,
27598 which can conflict with char $ac_func (); below.
27599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27600 <limits.h> exists even on freestanding compilers. */
27601
27602 #ifdef __STDC__
27603 # include <limits.h>
27604 #else
27605 # include <assert.h>
27606 #endif
27607
27608 #undef $ac_func
27609
27610 /* Override any gcc2 internal prototype to avoid an error. */
27611 #ifdef __cplusplus
27612 extern "C"
27613 {
27614 #endif
27615 /* We use char because int might match the return type of a gcc2
27616 builtin and then its argument prototype would still apply. */
27617 char $ac_func ();
27618 /* The GNU C library defines this for functions which it implements
27619 to always fail with ENOSYS. Some functions are actually named
27620 something starting with __ and the normal name is an alias. */
27621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27622 choke me
27623 #else
27624 char (*f) () = $ac_func;
27625 #endif
27626 #ifdef __cplusplus
27627 }
27628 #endif
27629
27630 int
27631 main ()
27632 {
27633 return f != $ac_func;
27634 ;
27635 return 0;
27636 }
27637 _ACEOF
27638 rm -f conftest.$ac_objext conftest$ac_exeext
27639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27640 (eval $ac_link) 2>conftest.er1
27641 ac_status=$?
27642 grep -v '^ *+' conftest.er1 >conftest.err
27643 rm -f conftest.er1
27644 cat conftest.err >&5
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); } &&
27647 { ac_try='test -z "$ac_c_werror_flag"
27648 || test ! -s conftest.err'
27649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27650 (eval $ac_try) 2>&5
27651 ac_status=$?
27652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653 (exit $ac_status); }; } &&
27654 { ac_try='test -s conftest$ac_exeext'
27655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27656 (eval $ac_try) 2>&5
27657 ac_status=$?
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); }; }; then
27660 eval "$as_ac_var=yes"
27661 else
27662 echo "$as_me: failed program was:" >&5
27663 sed 's/^/| /' conftest.$ac_ext >&5
27664
27665 eval "$as_ac_var=no"
27666 fi
27667 rm -f conftest.err conftest.$ac_objext \
27668 conftest$ac_exeext conftest.$ac_ext
27669 fi
27670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27672 if test `eval echo '${'$as_ac_var'}'` = yes; then
27673 cat >>confdefs.h <<_ACEOF
27674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27675 _ACEOF
27676
27677 else
27678 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
27679 fi
27680 done
27681
27682 fi
27683
27684 # Used in libmath/Makefile.am.
27685 if test -n "$LIBMATHOBJS"; then
27686 need_libmath=yes
27687 fi
27688
27689
27690
27691 # Test wchar.h for mbstate_t, which is needed for char_traits and
27692 # others even if wchar_t support is not on.
27693 echo "$as_me:$LINENO: checking for mbstate_t" >&5
27694 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
27695 cat >conftest.$ac_ext <<_ACEOF
27696 /* confdefs.h. */
27697 _ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h. */
27701 #include <wchar.h>
27702 int
27703 main ()
27704 {
27705 mbstate_t teststate;
27706 ;
27707 return 0;
27708 }
27709 _ACEOF
27710 rm -f conftest.$ac_objext
27711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27712 (eval $ac_compile) 2>conftest.er1
27713 ac_status=$?
27714 grep -v '^ *+' conftest.er1 >conftest.err
27715 rm -f conftest.er1
27716 cat conftest.err >&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } &&
27719 { ac_try='test -z "$ac_c_werror_flag"
27720 || test ! -s conftest.err'
27721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722 (eval $ac_try) 2>&5
27723 ac_status=$?
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); }; } &&
27726 { ac_try='test -s conftest.$ac_objext'
27727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728 (eval $ac_try) 2>&5
27729 ac_status=$?
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; }; then
27732 have_mbstate_t=yes
27733 else
27734 echo "$as_me: failed program was:" >&5
27735 sed 's/^/| /' conftest.$ac_ext >&5
27736
27737 have_mbstate_t=no
27738 fi
27739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27740 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
27741 echo "${ECHO_T}$have_mbstate_t" >&6
27742 if test x"$have_mbstate_t" = xyes; then
27743 cat >>confdefs.h <<\_ACEOF
27744 #define HAVE_MBSTATE_T 1
27745 _ACEOF
27746
27747 fi
27748
27749 # Sanity check for existence of ISO C99 headers for extended encoding.
27750
27751 for ac_header in wchar.h
27752 do
27753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27755 echo "$as_me:$LINENO: checking for $ac_header" >&5
27756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27758 echo $ECHO_N "(cached) $ECHO_C" >&6
27759 fi
27760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27762 else
27763 # Is the header compilable?
27764 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27766 cat >conftest.$ac_ext <<_ACEOF
27767 /* confdefs.h. */
27768 _ACEOF
27769 cat confdefs.h >>conftest.$ac_ext
27770 cat >>conftest.$ac_ext <<_ACEOF
27771 /* end confdefs.h. */
27772 $ac_includes_default
27773 #include <$ac_header>
27774 _ACEOF
27775 rm -f conftest.$ac_objext
27776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27777 (eval $ac_compile) 2>conftest.er1
27778 ac_status=$?
27779 grep -v '^ *+' conftest.er1 >conftest.err
27780 rm -f conftest.er1
27781 cat conftest.err >&5
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); } &&
27784 { ac_try='test -z "$ac_c_werror_flag"
27785 || test ! -s conftest.err'
27786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27787 (eval $ac_try) 2>&5
27788 ac_status=$?
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790 (exit $ac_status); }; } &&
27791 { ac_try='test -s conftest.$ac_objext'
27792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27793 (eval $ac_try) 2>&5
27794 ac_status=$?
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; }; then
27797 ac_header_compiler=yes
27798 else
27799 echo "$as_me: failed program was:" >&5
27800 sed 's/^/| /' conftest.$ac_ext >&5
27801
27802 ac_header_compiler=no
27803 fi
27804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27805 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27806 echo "${ECHO_T}$ac_header_compiler" >&6
27807
27808 # Is the header present?
27809 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27811 cat >conftest.$ac_ext <<_ACEOF
27812 /* confdefs.h. */
27813 _ACEOF
27814 cat confdefs.h >>conftest.$ac_ext
27815 cat >>conftest.$ac_ext <<_ACEOF
27816 /* end confdefs.h. */
27817 #include <$ac_header>
27818 _ACEOF
27819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27821 ac_status=$?
27822 grep -v '^ *+' conftest.er1 >conftest.err
27823 rm -f conftest.er1
27824 cat conftest.err >&5
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); } >/dev/null; then
27827 if test -s conftest.err; then
27828 ac_cpp_err=$ac_c_preproc_warn_flag
27829 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27830 else
27831 ac_cpp_err=
27832 fi
27833 else
27834 ac_cpp_err=yes
27835 fi
27836 if test -z "$ac_cpp_err"; then
27837 ac_header_preproc=yes
27838 else
27839 echo "$as_me: failed program was:" >&5
27840 sed 's/^/| /' conftest.$ac_ext >&5
27841
27842 ac_header_preproc=no
27843 fi
27844 rm -f conftest.err conftest.$ac_ext
27845 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27846 echo "${ECHO_T}$ac_header_preproc" >&6
27847
27848 # So? What about this header?
27849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27850 yes:no: )
27851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27855 ac_header_preproc=yes
27856 ;;
27857 no:yes:* )
27858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27861 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27865 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27870 (
27871 cat <<\_ASBOX
27872 ## ----------------------------------------- ##
27873 ## Report this to the package-unused lists. ##
27874 ## ----------------------------------------- ##
27875 _ASBOX
27876 ) |
27877 sed "s/^/$as_me: WARNING: /" >&2
27878 ;;
27879 esac
27880 echo "$as_me:$LINENO: checking for $ac_header" >&5
27881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27883 echo $ECHO_N "(cached) $ECHO_C" >&6
27884 else
27885 eval "$as_ac_Header=\$ac_header_preproc"
27886 fi
27887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27889
27890 fi
27891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27892 cat >>confdefs.h <<_ACEOF
27893 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27894 _ACEOF
27895 ac_has_wchar_h=yes
27896 else
27897 ac_has_wchar_h=no
27898 fi
27899
27900 done
27901
27902
27903 for ac_header in wctype.h
27904 do
27905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27907 echo "$as_me:$LINENO: checking for $ac_header" >&5
27908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27910 echo $ECHO_N "(cached) $ECHO_C" >&6
27911 fi
27912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27914 else
27915 # Is the header compilable?
27916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27918 cat >conftest.$ac_ext <<_ACEOF
27919 /* confdefs.h. */
27920 _ACEOF
27921 cat confdefs.h >>conftest.$ac_ext
27922 cat >>conftest.$ac_ext <<_ACEOF
27923 /* end confdefs.h. */
27924 $ac_includes_default
27925 #include <$ac_header>
27926 _ACEOF
27927 rm -f conftest.$ac_objext
27928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27929 (eval $ac_compile) 2>conftest.er1
27930 ac_status=$?
27931 grep -v '^ *+' conftest.er1 >conftest.err
27932 rm -f conftest.er1
27933 cat conftest.err >&5
27934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27935 (exit $ac_status); } &&
27936 { ac_try='test -z "$ac_c_werror_flag"
27937 || test ! -s conftest.err'
27938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27939 (eval $ac_try) 2>&5
27940 ac_status=$?
27941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27942 (exit $ac_status); }; } &&
27943 { ac_try='test -s conftest.$ac_objext'
27944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27945 (eval $ac_try) 2>&5
27946 ac_status=$?
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); }; }; then
27949 ac_header_compiler=yes
27950 else
27951 echo "$as_me: failed program was:" >&5
27952 sed 's/^/| /' conftest.$ac_ext >&5
27953
27954 ac_header_compiler=no
27955 fi
27956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27958 echo "${ECHO_T}$ac_header_compiler" >&6
27959
27960 # Is the header present?
27961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27963 cat >conftest.$ac_ext <<_ACEOF
27964 /* confdefs.h. */
27965 _ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h. */
27969 #include <$ac_header>
27970 _ACEOF
27971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27973 ac_status=$?
27974 grep -v '^ *+' conftest.er1 >conftest.err
27975 rm -f conftest.er1
27976 cat conftest.err >&5
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); } >/dev/null; then
27979 if test -s conftest.err; then
27980 ac_cpp_err=$ac_c_preproc_warn_flag
27981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27982 else
27983 ac_cpp_err=
27984 fi
27985 else
27986 ac_cpp_err=yes
27987 fi
27988 if test -z "$ac_cpp_err"; then
27989 ac_header_preproc=yes
27990 else
27991 echo "$as_me: failed program was:" >&5
27992 sed 's/^/| /' conftest.$ac_ext >&5
27993
27994 ac_header_preproc=no
27995 fi
27996 rm -f conftest.err conftest.$ac_ext
27997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27998 echo "${ECHO_T}$ac_header_preproc" >&6
27999
28000 # So? What about this header?
28001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28002 yes:no: )
28003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28007 ac_header_preproc=yes
28008 ;;
28009 no:yes:* )
28010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28022 (
28023 cat <<\_ASBOX
28024 ## ----------------------------------------- ##
28025 ## Report this to the package-unused lists. ##
28026 ## ----------------------------------------- ##
28027 _ASBOX
28028 ) |
28029 sed "s/^/$as_me: WARNING: /" >&2
28030 ;;
28031 esac
28032 echo "$as_me:$LINENO: checking for $ac_header" >&5
28033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28035 echo $ECHO_N "(cached) $ECHO_C" >&6
28036 else
28037 eval "$as_ac_Header=\$ac_header_preproc"
28038 fi
28039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28041
28042 fi
28043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28044 cat >>confdefs.h <<_ACEOF
28045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28046 _ACEOF
28047 ac_has_wctype_h=yes
28048 else
28049 ac_has_wctype_h=no
28050 fi
28051
28052 done
28053
28054
28055 # Only continue checking if the ISO C99 headers exist and support is on.
28056 if test x"$ac_has_wchar_h" = xyes &&
28057 test x"$ac_has_wctype_h" = xyes &&
28058 test x"$enable_c_mbchar" != xno; then
28059
28060 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
28061 # numeric_limits can instantiate type_traits<wchar_t>
28062 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
28063 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
28064 cat >conftest.$ac_ext <<_ACEOF
28065 /* confdefs.h. */
28066 _ACEOF
28067 cat confdefs.h >>conftest.$ac_ext
28068 cat >>conftest.$ac_ext <<_ACEOF
28069 /* end confdefs.h. */
28070 #include <wchar.h>
28071 int
28072 main ()
28073 {
28074 int i = WCHAR_MIN; int j = WCHAR_MAX;
28075 ;
28076 return 0;
28077 }
28078 _ACEOF
28079 rm -f conftest.$ac_objext
28080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28081 (eval $ac_compile) 2>conftest.er1
28082 ac_status=$?
28083 grep -v '^ *+' conftest.er1 >conftest.err
28084 rm -f conftest.er1
28085 cat conftest.err >&5
28086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); } &&
28088 { ac_try='test -z "$ac_c_werror_flag"
28089 || test ! -s conftest.err'
28090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28091 (eval $ac_try) 2>&5
28092 ac_status=$?
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); }; } &&
28095 { ac_try='test -s conftest.$ac_objext'
28096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28097 (eval $ac_try) 2>&5
28098 ac_status=$?
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); }; }; then
28101 has_wchar_minmax=yes
28102 else
28103 echo "$as_me: failed program was:" >&5
28104 sed 's/^/| /' conftest.$ac_ext >&5
28105
28106 has_wchar_minmax=no
28107 fi
28108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28109 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
28110 echo "${ECHO_T}$has_wchar_minmax" >&6
28111
28112 # Test wchar.h for WEOF, which is what we use to determine whether
28113 # to specialize for char_traits<wchar_t> or not.
28114 echo "$as_me:$LINENO: checking for WEOF" >&5
28115 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
28116 cat >conftest.$ac_ext <<_ACEOF
28117 /* confdefs.h. */
28118 _ACEOF
28119 cat confdefs.h >>conftest.$ac_ext
28120 cat >>conftest.$ac_ext <<_ACEOF
28121 /* end confdefs.h. */
28122
28123 #include <wchar.h>
28124 #include <stddef.h>
28125 int
28126 main ()
28127 {
28128 wint_t i = WEOF;
28129 ;
28130 return 0;
28131 }
28132 _ACEOF
28133 rm -f conftest.$ac_objext
28134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28135 (eval $ac_compile) 2>conftest.er1
28136 ac_status=$?
28137 grep -v '^ *+' conftest.er1 >conftest.err
28138 rm -f conftest.er1
28139 cat conftest.err >&5
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); } &&
28142 { ac_try='test -z "$ac_c_werror_flag"
28143 || test ! -s conftest.err'
28144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145 (eval $ac_try) 2>&5
28146 ac_status=$?
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; } &&
28149 { ac_try='test -s conftest.$ac_objext'
28150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28151 (eval $ac_try) 2>&5
28152 ac_status=$?
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); }; }; then
28155 has_weof=yes
28156 else
28157 echo "$as_me: failed program was:" >&5
28158 sed 's/^/| /' conftest.$ac_ext >&5
28159
28160 has_weof=no
28161 fi
28162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28163 echo "$as_me:$LINENO: result: $has_weof" >&5
28164 echo "${ECHO_T}$has_weof" >&6
28165
28166 # Tests for wide character functions used in char_traits<wchar_t>.
28167 ac_wfuncs=yes
28168
28169
28170
28171
28172
28173
28174 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
28175 do
28176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28177 echo "$as_me:$LINENO: checking for $ac_func" >&5
28178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28179 if eval "test \"\${$as_ac_var+set}\" = set"; then
28180 echo $ECHO_N "(cached) $ECHO_C" >&6
28181 else
28182 if test x$gcc_no_link = xyes; then
28183 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28184 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28185 { (exit 1); exit 1; }; }
28186 fi
28187 cat >conftest.$ac_ext <<_ACEOF
28188 /* confdefs.h. */
28189 _ACEOF
28190 cat confdefs.h >>conftest.$ac_ext
28191 cat >>conftest.$ac_ext <<_ACEOF
28192 /* end confdefs.h. */
28193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28195 #define $ac_func innocuous_$ac_func
28196
28197 /* System header to define __stub macros and hopefully few prototypes,
28198 which can conflict with char $ac_func (); below.
28199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28200 <limits.h> exists even on freestanding compilers. */
28201
28202 #ifdef __STDC__
28203 # include <limits.h>
28204 #else
28205 # include <assert.h>
28206 #endif
28207
28208 #undef $ac_func
28209
28210 /* Override any gcc2 internal prototype to avoid an error. */
28211 #ifdef __cplusplus
28212 extern "C"
28213 {
28214 #endif
28215 /* We use char because int might match the return type of a gcc2
28216 builtin and then its argument prototype would still apply. */
28217 char $ac_func ();
28218 /* The GNU C library defines this for functions which it implements
28219 to always fail with ENOSYS. Some functions are actually named
28220 something starting with __ and the normal name is an alias. */
28221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28222 choke me
28223 #else
28224 char (*f) () = $ac_func;
28225 #endif
28226 #ifdef __cplusplus
28227 }
28228 #endif
28229
28230 int
28231 main ()
28232 {
28233 return f != $ac_func;
28234 ;
28235 return 0;
28236 }
28237 _ACEOF
28238 rm -f conftest.$ac_objext conftest$ac_exeext
28239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28240 (eval $ac_link) 2>conftest.er1
28241 ac_status=$?
28242 grep -v '^ *+' conftest.er1 >conftest.err
28243 rm -f conftest.er1
28244 cat conftest.err >&5
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); } &&
28247 { ac_try='test -z "$ac_c_werror_flag"
28248 || test ! -s conftest.err'
28249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28250 (eval $ac_try) 2>&5
28251 ac_status=$?
28252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28253 (exit $ac_status); }; } &&
28254 { ac_try='test -s conftest$ac_exeext'
28255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28256 (eval $ac_try) 2>&5
28257 ac_status=$?
28258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259 (exit $ac_status); }; }; then
28260 eval "$as_ac_var=yes"
28261 else
28262 echo "$as_me: failed program was:" >&5
28263 sed 's/^/| /' conftest.$ac_ext >&5
28264
28265 eval "$as_ac_var=no"
28266 fi
28267 rm -f conftest.err conftest.$ac_objext \
28268 conftest$ac_exeext conftest.$ac_ext
28269 fi
28270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28272 if test `eval echo '${'$as_ac_var'}'` = yes; then
28273 cat >>confdefs.h <<_ACEOF
28274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28275 _ACEOF
28276
28277 else
28278 ac_wfuncs=no
28279 fi
28280 done
28281
28282
28283 # Checks for names injected into std:: by the c_std headers.
28284
28285
28286
28287
28288
28289
28290
28291
28292
28293
28294
28295
28296
28297
28298
28299
28300
28301
28302
28303
28304
28305
28306
28307
28308
28309
28310
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329
28330 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
28331 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
28332 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
28333 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
28334 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
28335 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
28336 do
28337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28338 echo "$as_me:$LINENO: checking for $ac_func" >&5
28339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28340 if eval "test \"\${$as_ac_var+set}\" = set"; then
28341 echo $ECHO_N "(cached) $ECHO_C" >&6
28342 else
28343 if test x$gcc_no_link = xyes; then
28344 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28345 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28346 { (exit 1); exit 1; }; }
28347 fi
28348 cat >conftest.$ac_ext <<_ACEOF
28349 /* confdefs.h. */
28350 _ACEOF
28351 cat confdefs.h >>conftest.$ac_ext
28352 cat >>conftest.$ac_ext <<_ACEOF
28353 /* end confdefs.h. */
28354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28356 #define $ac_func innocuous_$ac_func
28357
28358 /* System header to define __stub macros and hopefully few prototypes,
28359 which can conflict with char $ac_func (); below.
28360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28361 <limits.h> exists even on freestanding compilers. */
28362
28363 #ifdef __STDC__
28364 # include <limits.h>
28365 #else
28366 # include <assert.h>
28367 #endif
28368
28369 #undef $ac_func
28370
28371 /* Override any gcc2 internal prototype to avoid an error. */
28372 #ifdef __cplusplus
28373 extern "C"
28374 {
28375 #endif
28376 /* We use char because int might match the return type of a gcc2
28377 builtin and then its argument prototype would still apply. */
28378 char $ac_func ();
28379 /* The GNU C library defines this for functions which it implements
28380 to always fail with ENOSYS. Some functions are actually named
28381 something starting with __ and the normal name is an alias. */
28382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28383 choke me
28384 #else
28385 char (*f) () = $ac_func;
28386 #endif
28387 #ifdef __cplusplus
28388 }
28389 #endif
28390
28391 int
28392 main ()
28393 {
28394 return f != $ac_func;
28395 ;
28396 return 0;
28397 }
28398 _ACEOF
28399 rm -f conftest.$ac_objext conftest$ac_exeext
28400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28401 (eval $ac_link) 2>conftest.er1
28402 ac_status=$?
28403 grep -v '^ *+' conftest.er1 >conftest.err
28404 rm -f conftest.er1
28405 cat conftest.err >&5
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); } &&
28408 { ac_try='test -z "$ac_c_werror_flag"
28409 || test ! -s conftest.err'
28410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28411 (eval $ac_try) 2>&5
28412 ac_status=$?
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); }; } &&
28415 { ac_try='test -s conftest$ac_exeext'
28416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28417 (eval $ac_try) 2>&5
28418 ac_status=$?
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); }; }; then
28421 eval "$as_ac_var=yes"
28422 else
28423 echo "$as_me: failed program was:" >&5
28424 sed 's/^/| /' conftest.$ac_ext >&5
28425
28426 eval "$as_ac_var=no"
28427 fi
28428 rm -f conftest.err conftest.$ac_objext \
28429 conftest$ac_exeext conftest.$ac_ext
28430 fi
28431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28433 if test `eval echo '${'$as_ac_var'}'` = yes; then
28434 cat >>confdefs.h <<_ACEOF
28435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28436 _ACEOF
28437
28438 else
28439 ac_wfuncs=no
28440 fi
28441 done
28442
28443
28444 # Checks for wide character functions that are not required
28445 # for basic wchar_t support. Don't disable support if they are missing.
28446 # Injection of these is wrapped with guard macros.
28447
28448
28449
28450
28451
28452 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
28453 do
28454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28455 echo "$as_me:$LINENO: checking for $ac_func" >&5
28456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28457 if eval "test \"\${$as_ac_var+set}\" = set"; then
28458 echo $ECHO_N "(cached) $ECHO_C" >&6
28459 else
28460 if test x$gcc_no_link = xyes; then
28461 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28462 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28463 { (exit 1); exit 1; }; }
28464 fi
28465 cat >conftest.$ac_ext <<_ACEOF
28466 /* confdefs.h. */
28467 _ACEOF
28468 cat confdefs.h >>conftest.$ac_ext
28469 cat >>conftest.$ac_ext <<_ACEOF
28470 /* end confdefs.h. */
28471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28473 #define $ac_func innocuous_$ac_func
28474
28475 /* System header to define __stub macros and hopefully few prototypes,
28476 which can conflict with char $ac_func (); below.
28477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28478 <limits.h> exists even on freestanding compilers. */
28479
28480 #ifdef __STDC__
28481 # include <limits.h>
28482 #else
28483 # include <assert.h>
28484 #endif
28485
28486 #undef $ac_func
28487
28488 /* Override any gcc2 internal prototype to avoid an error. */
28489 #ifdef __cplusplus
28490 extern "C"
28491 {
28492 #endif
28493 /* We use char because int might match the return type of a gcc2
28494 builtin and then its argument prototype would still apply. */
28495 char $ac_func ();
28496 /* The GNU C library defines this for functions which it implements
28497 to always fail with ENOSYS. Some functions are actually named
28498 something starting with __ and the normal name is an alias. */
28499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28500 choke me
28501 #else
28502 char (*f) () = $ac_func;
28503 #endif
28504 #ifdef __cplusplus
28505 }
28506 #endif
28507
28508 int
28509 main ()
28510 {
28511 return f != $ac_func;
28512 ;
28513 return 0;
28514 }
28515 _ACEOF
28516 rm -f conftest.$ac_objext conftest$ac_exeext
28517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28518 (eval $ac_link) 2>conftest.er1
28519 ac_status=$?
28520 grep -v '^ *+' conftest.er1 >conftest.err
28521 rm -f conftest.er1
28522 cat conftest.err >&5
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); } &&
28525 { ac_try='test -z "$ac_c_werror_flag"
28526 || test ! -s conftest.err'
28527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28528 (eval $ac_try) 2>&5
28529 ac_status=$?
28530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531 (exit $ac_status); }; } &&
28532 { ac_try='test -s conftest$ac_exeext'
28533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28534 (eval $ac_try) 2>&5
28535 ac_status=$?
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); }; }; then
28538 eval "$as_ac_var=yes"
28539 else
28540 echo "$as_me: failed program was:" >&5
28541 sed 's/^/| /' conftest.$ac_ext >&5
28542
28543 eval "$as_ac_var=no"
28544 fi
28545 rm -f conftest.err conftest.$ac_objext \
28546 conftest$ac_exeext conftest.$ac_ext
28547 fi
28548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28550 if test `eval echo '${'$as_ac_var'}'` = yes; then
28551 cat >>confdefs.h <<_ACEOF
28552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28553 _ACEOF
28554
28555 fi
28556 done
28557
28558
28559 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
28560 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
28561 if test x"$has_weof" = xyes &&
28562 test x"$has_wchar_minmax" = xyes &&
28563 test x"$ac_wfuncs" = xyes;
28564 then
28565 ac_isoC99_wchar_t=yes
28566 else
28567 ac_isoC99_wchar_t=no
28568 fi
28569 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
28570 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
28571
28572 # Use iconv for wchar_t to char conversions. As such, check for
28573 # X/Open Portability Guide, version 2 features (XPG2).
28574 if test "${ac_cv_header_iconv_h+set}" = set; then
28575 echo "$as_me:$LINENO: checking for iconv.h" >&5
28576 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28577 if test "${ac_cv_header_iconv_h+set}" = set; then
28578 echo $ECHO_N "(cached) $ECHO_C" >&6
28579 fi
28580 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28581 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28582 else
28583 # Is the header compilable?
28584 echo "$as_me:$LINENO: checking iconv.h usability" >&5
28585 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
28586 cat >conftest.$ac_ext <<_ACEOF
28587 /* confdefs.h. */
28588 _ACEOF
28589 cat confdefs.h >>conftest.$ac_ext
28590 cat >>conftest.$ac_ext <<_ACEOF
28591 /* end confdefs.h. */
28592 $ac_includes_default
28593 #include <iconv.h>
28594 _ACEOF
28595 rm -f conftest.$ac_objext
28596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28597 (eval $ac_compile) 2>conftest.er1
28598 ac_status=$?
28599 grep -v '^ *+' conftest.er1 >conftest.err
28600 rm -f conftest.er1
28601 cat conftest.err >&5
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); } &&
28604 { ac_try='test -z "$ac_c_werror_flag"
28605 || test ! -s conftest.err'
28606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28607 (eval $ac_try) 2>&5
28608 ac_status=$?
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; } &&
28611 { ac_try='test -s conftest.$ac_objext'
28612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28613 (eval $ac_try) 2>&5
28614 ac_status=$?
28615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616 (exit $ac_status); }; }; then
28617 ac_header_compiler=yes
28618 else
28619 echo "$as_me: failed program was:" >&5
28620 sed 's/^/| /' conftest.$ac_ext >&5
28621
28622 ac_header_compiler=no
28623 fi
28624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28626 echo "${ECHO_T}$ac_header_compiler" >&6
28627
28628 # Is the header present?
28629 echo "$as_me:$LINENO: checking iconv.h presence" >&5
28630 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
28631 cat >conftest.$ac_ext <<_ACEOF
28632 /* confdefs.h. */
28633 _ACEOF
28634 cat confdefs.h >>conftest.$ac_ext
28635 cat >>conftest.$ac_ext <<_ACEOF
28636 /* end confdefs.h. */
28637 #include <iconv.h>
28638 _ACEOF
28639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28641 ac_status=$?
28642 grep -v '^ *+' conftest.er1 >conftest.err
28643 rm -f conftest.er1
28644 cat conftest.err >&5
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); } >/dev/null; then
28647 if test -s conftest.err; then
28648 ac_cpp_err=$ac_c_preproc_warn_flag
28649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28650 else
28651 ac_cpp_err=
28652 fi
28653 else
28654 ac_cpp_err=yes
28655 fi
28656 if test -z "$ac_cpp_err"; then
28657 ac_header_preproc=yes
28658 else
28659 echo "$as_me: failed program was:" >&5
28660 sed 's/^/| /' conftest.$ac_ext >&5
28661
28662 ac_header_preproc=no
28663 fi
28664 rm -f conftest.err conftest.$ac_ext
28665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28666 echo "${ECHO_T}$ac_header_preproc" >&6
28667
28668 # So? What about this header?
28669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28670 yes:no: )
28671 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
28672 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28673 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
28674 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
28675 ac_header_preproc=yes
28676 ;;
28677 no:yes:* )
28678 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
28679 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
28680 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
28681 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
28682 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
28683 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
28684 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
28685 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
28686 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
28687 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
28688 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
28689 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
28690 (
28691 cat <<\_ASBOX
28692 ## ----------------------------------------- ##
28693 ## Report this to the package-unused lists. ##
28694 ## ----------------------------------------- ##
28695 _ASBOX
28696 ) |
28697 sed "s/^/$as_me: WARNING: /" >&2
28698 ;;
28699 esac
28700 echo "$as_me:$LINENO: checking for iconv.h" >&5
28701 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28702 if test "${ac_cv_header_iconv_h+set}" = set; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28704 else
28705 ac_cv_header_iconv_h=$ac_header_preproc
28706 fi
28707 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28708 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28709
28710 fi
28711 if test $ac_cv_header_iconv_h = yes; then
28712 ac_has_iconv_h=yes
28713 else
28714 ac_has_iconv_h=no
28715 fi
28716
28717
28718 if test "${ac_cv_header_langinfo_h+set}" = set; then
28719 echo "$as_me:$LINENO: checking for langinfo.h" >&5
28720 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
28721 if test "${ac_cv_header_langinfo_h+set}" = set; then
28722 echo $ECHO_N "(cached) $ECHO_C" >&6
28723 fi
28724 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
28725 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
28726 else
28727 # Is the header compilable?
28728 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
28729 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
28730 cat >conftest.$ac_ext <<_ACEOF
28731 /* confdefs.h. */
28732 _ACEOF
28733 cat confdefs.h >>conftest.$ac_ext
28734 cat >>conftest.$ac_ext <<_ACEOF
28735 /* end confdefs.h. */
28736 $ac_includes_default
28737 #include <langinfo.h>
28738 _ACEOF
28739 rm -f conftest.$ac_objext
28740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28741 (eval $ac_compile) 2>conftest.er1
28742 ac_status=$?
28743 grep -v '^ *+' conftest.er1 >conftest.err
28744 rm -f conftest.er1
28745 cat conftest.err >&5
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); } &&
28748 { ac_try='test -z "$ac_c_werror_flag"
28749 || test ! -s conftest.err'
28750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751 (eval $ac_try) 2>&5
28752 ac_status=$?
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; } &&
28755 { ac_try='test -s conftest.$ac_objext'
28756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757 (eval $ac_try) 2>&5
28758 ac_status=$?
28759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); }; }; then
28761 ac_header_compiler=yes
28762 else
28763 echo "$as_me: failed program was:" >&5
28764 sed 's/^/| /' conftest.$ac_ext >&5
28765
28766 ac_header_compiler=no
28767 fi
28768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28770 echo "${ECHO_T}$ac_header_compiler" >&6
28771
28772 # Is the header present?
28773 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
28774 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
28775 cat >conftest.$ac_ext <<_ACEOF
28776 /* confdefs.h. */
28777 _ACEOF
28778 cat confdefs.h >>conftest.$ac_ext
28779 cat >>conftest.$ac_ext <<_ACEOF
28780 /* end confdefs.h. */
28781 #include <langinfo.h>
28782 _ACEOF
28783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28785 ac_status=$?
28786 grep -v '^ *+' conftest.er1 >conftest.err
28787 rm -f conftest.er1
28788 cat conftest.err >&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } >/dev/null; then
28791 if test -s conftest.err; then
28792 ac_cpp_err=$ac_c_preproc_warn_flag
28793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28794 else
28795 ac_cpp_err=
28796 fi
28797 else
28798 ac_cpp_err=yes
28799 fi
28800 if test -z "$ac_cpp_err"; then
28801 ac_header_preproc=yes
28802 else
28803 echo "$as_me: failed program was:" >&5
28804 sed 's/^/| /' conftest.$ac_ext >&5
28805
28806 ac_header_preproc=no
28807 fi
28808 rm -f conftest.err conftest.$ac_ext
28809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28810 echo "${ECHO_T}$ac_header_preproc" >&6
28811
28812 # So? What about this header?
28813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28814 yes:no: )
28815 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
28816 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28817 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
28818 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
28819 ac_header_preproc=yes
28820 ;;
28821 no:yes:* )
28822 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
28823 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
28824 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
28825 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
28826 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
28827 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
28828 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
28829 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
28830 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
28831 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
28832 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
28833 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
28834 (
28835 cat <<\_ASBOX
28836 ## ----------------------------------------- ##
28837 ## Report this to the package-unused lists. ##
28838 ## ----------------------------------------- ##
28839 _ASBOX
28840 ) |
28841 sed "s/^/$as_me: WARNING: /" >&2
28842 ;;
28843 esac
28844 echo "$as_me:$LINENO: checking for langinfo.h" >&5
28845 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
28846 if test "${ac_cv_header_langinfo_h+set}" = set; then
28847 echo $ECHO_N "(cached) $ECHO_C" >&6
28848 else
28849 ac_cv_header_langinfo_h=$ac_header_preproc
28850 fi
28851 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
28852 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
28853
28854 fi
28855 if test $ac_cv_header_langinfo_h = yes; then
28856 ac_has_langinfo_h=yes
28857 else
28858 ac_has_langinfo_h=no
28859 fi
28860
28861
28862
28863 # Check for existence of libiconv.a providing XPG2 wchar_t support.
28864 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
28865 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
28866 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
28867 echo $ECHO_N "(cached) $ECHO_C" >&6
28868 else
28869 ac_check_lib_save_LIBS=$LIBS
28870 LIBS="-liconv $LIBS"
28871 if test x$gcc_no_link = xyes; then
28872 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28873 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28874 { (exit 1); exit 1; }; }
28875 fi
28876 cat >conftest.$ac_ext <<_ACEOF
28877 /* confdefs.h. */
28878 _ACEOF
28879 cat confdefs.h >>conftest.$ac_ext
28880 cat >>conftest.$ac_ext <<_ACEOF
28881 /* end confdefs.h. */
28882
28883 /* Override any gcc2 internal prototype to avoid an error. */
28884 #ifdef __cplusplus
28885 extern "C"
28886 #endif
28887 /* We use char because int might match the return type of a gcc2
28888 builtin and then its argument prototype would still apply. */
28889 char iconv ();
28890 int
28891 main ()
28892 {
28893 iconv ();
28894 ;
28895 return 0;
28896 }
28897 _ACEOF
28898 rm -f conftest.$ac_objext conftest$ac_exeext
28899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28900 (eval $ac_link) 2>conftest.er1
28901 ac_status=$?
28902 grep -v '^ *+' conftest.er1 >conftest.err
28903 rm -f conftest.er1
28904 cat conftest.err >&5
28905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906 (exit $ac_status); } &&
28907 { ac_try='test -z "$ac_c_werror_flag"
28908 || test ! -s conftest.err'
28909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910 (eval $ac_try) 2>&5
28911 ac_status=$?
28912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); }; } &&
28914 { ac_try='test -s conftest$ac_exeext'
28915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28916 (eval $ac_try) 2>&5
28917 ac_status=$?
28918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28919 (exit $ac_status); }; }; then
28920 ac_cv_lib_iconv_iconv=yes
28921 else
28922 echo "$as_me: failed program was:" >&5
28923 sed 's/^/| /' conftest.$ac_ext >&5
28924
28925 ac_cv_lib_iconv_iconv=no
28926 fi
28927 rm -f conftest.err conftest.$ac_objext \
28928 conftest$ac_exeext conftest.$ac_ext
28929 LIBS=$ac_check_lib_save_LIBS
28930 fi
28931 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
28932 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
28933 if test $ac_cv_lib_iconv_iconv = yes; then
28934 LIBICONV="-liconv"
28935 fi
28936
28937 ac_save_LIBS="$LIBS"
28938 LIBS="$LIBS $LIBICONV"
28939
28940
28941
28942
28943
28944
28945 for ac_func in iconv_open iconv_close iconv nl_langinfo
28946 do
28947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28948 echo "$as_me:$LINENO: checking for $ac_func" >&5
28949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28950 if eval "test \"\${$as_ac_var+set}\" = set"; then
28951 echo $ECHO_N "(cached) $ECHO_C" >&6
28952 else
28953 if test x$gcc_no_link = xyes; then
28954 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28955 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28956 { (exit 1); exit 1; }; }
28957 fi
28958 cat >conftest.$ac_ext <<_ACEOF
28959 /* confdefs.h. */
28960 _ACEOF
28961 cat confdefs.h >>conftest.$ac_ext
28962 cat >>conftest.$ac_ext <<_ACEOF
28963 /* end confdefs.h. */
28964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28966 #define $ac_func innocuous_$ac_func
28967
28968 /* System header to define __stub macros and hopefully few prototypes,
28969 which can conflict with char $ac_func (); below.
28970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28971 <limits.h> exists even on freestanding compilers. */
28972
28973 #ifdef __STDC__
28974 # include <limits.h>
28975 #else
28976 # include <assert.h>
28977 #endif
28978
28979 #undef $ac_func
28980
28981 /* Override any gcc2 internal prototype to avoid an error. */
28982 #ifdef __cplusplus
28983 extern "C"
28984 {
28985 #endif
28986 /* We use char because int might match the return type of a gcc2
28987 builtin and then its argument prototype would still apply. */
28988 char $ac_func ();
28989 /* The GNU C library defines this for functions which it implements
28990 to always fail with ENOSYS. Some functions are actually named
28991 something starting with __ and the normal name is an alias. */
28992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28993 choke me
28994 #else
28995 char (*f) () = $ac_func;
28996 #endif
28997 #ifdef __cplusplus
28998 }
28999 #endif
29000
29001 int
29002 main ()
29003 {
29004 return f != $ac_func;
29005 ;
29006 return 0;
29007 }
29008 _ACEOF
29009 rm -f conftest.$ac_objext conftest$ac_exeext
29010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29011 (eval $ac_link) 2>conftest.er1
29012 ac_status=$?
29013 grep -v '^ *+' conftest.er1 >conftest.err
29014 rm -f conftest.er1
29015 cat conftest.err >&5
29016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017 (exit $ac_status); } &&
29018 { ac_try='test -z "$ac_c_werror_flag"
29019 || test ! -s conftest.err'
29020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29021 (eval $ac_try) 2>&5
29022 ac_status=$?
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; } &&
29025 { ac_try='test -s conftest$ac_exeext'
29026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29027 (eval $ac_try) 2>&5
29028 ac_status=$?
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); }; }; then
29031 eval "$as_ac_var=yes"
29032 else
29033 echo "$as_me: failed program was:" >&5
29034 sed 's/^/| /' conftest.$ac_ext >&5
29035
29036 eval "$as_ac_var=no"
29037 fi
29038 rm -f conftest.err conftest.$ac_objext \
29039 conftest$ac_exeext conftest.$ac_ext
29040 fi
29041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29043 if test `eval echo '${'$as_ac_var'}'` = yes; then
29044 cat >>confdefs.h <<_ACEOF
29045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29046 _ACEOF
29047 ac_XPG2funcs=yes
29048 else
29049 ac_XPG2funcs=no
29050 fi
29051 done
29052
29053
29054 LIBS="$ac_save_LIBS"
29055
29056 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
29057 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
29058 if test x"$ac_has_iconv_h" = xyes &&
29059 test x"$ac_has_langinfo_h" = xyes &&
29060 test x"$ac_XPG2funcs" = xyes;
29061 then
29062 ac_XPG2_wchar_t=yes
29063 else
29064 ac_XPG2_wchar_t=no
29065 fi
29066 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
29067 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
29068
29069 # At the moment, only enable wchar_t specializations if all the
29070 # above support is present.
29071 if test x"$ac_isoC99_wchar_t" = xyes &&
29072 test x"$ac_XPG2_wchar_t" = xyes;
29073 then
29074 cat >>confdefs.h <<\_ACEOF
29075 #define _GLIBCXX_USE_WCHAR_T 1
29076 _ACEOF
29077
29078 enable_wchar_t=yes
29079 fi
29080 fi
29081 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
29082 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
29083 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
29084 echo "${ECHO_T}$enable_wchar_t" >&6
29085
29086
29087 ac_test_CXXFLAGS="${CXXFLAGS+set}"
29088 ac_save_CXXFLAGS="$CXXFLAGS"
29089 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
29090
29091
29092 echo "$as_me:$LINENO: checking for strtold declaration" >&5
29093 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
29094 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
29095 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
29096 echo $ECHO_N "(cached) $ECHO_C" >&6
29097 else
29098
29099
29100
29101 ac_ext=cc
29102 ac_cpp='$CXXCPP $CPPFLAGS'
29103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29106
29107 cat >conftest.$ac_ext <<_ACEOF
29108 /* confdefs.h. */
29109 _ACEOF
29110 cat confdefs.h >>conftest.$ac_ext
29111 cat >>conftest.$ac_ext <<_ACEOF
29112 /* end confdefs.h. */
29113 #include <stdlib.h>
29114 int
29115 main ()
29116 {
29117 strtold(0, 0);
29118 ;
29119 return 0;
29120 }
29121 _ACEOF
29122 rm -f conftest.$ac_objext
29123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29124 (eval $ac_compile) 2>conftest.er1
29125 ac_status=$?
29126 grep -v '^ *+' conftest.er1 >conftest.err
29127 rm -f conftest.er1
29128 cat conftest.err >&5
29129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130 (exit $ac_status); } &&
29131 { ac_try='test -z "$ac_cxx_werror_flag"
29132 || test ! -s conftest.err'
29133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134 (eval $ac_try) 2>&5
29135 ac_status=$?
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); }; } &&
29138 { ac_try='test -s conftest.$ac_objext'
29139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29140 (eval $ac_try) 2>&5
29141 ac_status=$?
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); }; }; then
29144 glibcxx_cv_func_strtold_use=yes
29145 else
29146 echo "$as_me: failed program was:" >&5
29147 sed 's/^/| /' conftest.$ac_ext >&5
29148
29149 glibcxx_cv_func_strtold_use=no
29150 fi
29151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29152 ac_ext=c
29153 ac_cpp='$CPP $CPPFLAGS'
29154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29157
29158
29159 fi
29160
29161 fi
29162 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
29163 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
29164 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
29165
29166 for ac_func in strtold
29167 do
29168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29169 echo "$as_me:$LINENO: checking for $ac_func" >&5
29170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29171 if eval "test \"\${$as_ac_var+set}\" = set"; then
29172 echo $ECHO_N "(cached) $ECHO_C" >&6
29173 else
29174 if test x$gcc_no_link = xyes; then
29175 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29176 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29177 { (exit 1); exit 1; }; }
29178 fi
29179 cat >conftest.$ac_ext <<_ACEOF
29180 /* confdefs.h. */
29181 _ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h. */
29185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29187 #define $ac_func innocuous_$ac_func
29188
29189 /* System header to define __stub macros and hopefully few prototypes,
29190 which can conflict with char $ac_func (); below.
29191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29192 <limits.h> exists even on freestanding compilers. */
29193
29194 #ifdef __STDC__
29195 # include <limits.h>
29196 #else
29197 # include <assert.h>
29198 #endif
29199
29200 #undef $ac_func
29201
29202 /* Override any gcc2 internal prototype to avoid an error. */
29203 #ifdef __cplusplus
29204 extern "C"
29205 {
29206 #endif
29207 /* We use char because int might match the return type of a gcc2
29208 builtin and then its argument prototype would still apply. */
29209 char $ac_func ();
29210 /* The GNU C library defines this for functions which it implements
29211 to always fail with ENOSYS. Some functions are actually named
29212 something starting with __ and the normal name is an alias. */
29213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29214 choke me
29215 #else
29216 char (*f) () = $ac_func;
29217 #endif
29218 #ifdef __cplusplus
29219 }
29220 #endif
29221
29222 int
29223 main ()
29224 {
29225 return f != $ac_func;
29226 ;
29227 return 0;
29228 }
29229 _ACEOF
29230 rm -f conftest.$ac_objext conftest$ac_exeext
29231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29232 (eval $ac_link) 2>conftest.er1
29233 ac_status=$?
29234 grep -v '^ *+' conftest.er1 >conftest.err
29235 rm -f conftest.er1
29236 cat conftest.err >&5
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); } &&
29239 { ac_try='test -z "$ac_c_werror_flag"
29240 || test ! -s conftest.err'
29241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29242 (eval $ac_try) 2>&5
29243 ac_status=$?
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; } &&
29246 { ac_try='test -s conftest$ac_exeext'
29247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29248 (eval $ac_try) 2>&5
29249 ac_status=$?
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); }; }; then
29252 eval "$as_ac_var=yes"
29253 else
29254 echo "$as_me: failed program was:" >&5
29255 sed 's/^/| /' conftest.$ac_ext >&5
29256
29257 eval "$as_ac_var=no"
29258 fi
29259 rm -f conftest.err conftest.$ac_objext \
29260 conftest$ac_exeext conftest.$ac_ext
29261 fi
29262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29264 if test `eval echo '${'$as_ac_var'}'` = yes; then
29265 cat >>confdefs.h <<_ACEOF
29266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29267 _ACEOF
29268
29269 fi
29270 done
29271
29272 fi
29273
29274
29275 echo "$as_me:$LINENO: checking for strtof declaration" >&5
29276 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
29277 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
29278 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
29279 echo $ECHO_N "(cached) $ECHO_C" >&6
29280 else
29281
29282
29283
29284 ac_ext=cc
29285 ac_cpp='$CXXCPP $CPPFLAGS'
29286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29289
29290 cat >conftest.$ac_ext <<_ACEOF
29291 /* confdefs.h. */
29292 _ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h. */
29296 #include <stdlib.h>
29297 int
29298 main ()
29299 {
29300 strtof(0, 0);
29301 ;
29302 return 0;
29303 }
29304 _ACEOF
29305 rm -f conftest.$ac_objext
29306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29307 (eval $ac_compile) 2>conftest.er1
29308 ac_status=$?
29309 grep -v '^ *+' conftest.er1 >conftest.err
29310 rm -f conftest.er1
29311 cat conftest.err >&5
29312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313 (exit $ac_status); } &&
29314 { ac_try='test -z "$ac_cxx_werror_flag"
29315 || test ! -s conftest.err'
29316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29317 (eval $ac_try) 2>&5
29318 ac_status=$?
29319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320 (exit $ac_status); }; } &&
29321 { ac_try='test -s conftest.$ac_objext'
29322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29323 (eval $ac_try) 2>&5
29324 ac_status=$?
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); }; }; then
29327 glibcxx_cv_func_strtof_use=yes
29328 else
29329 echo "$as_me: failed program was:" >&5
29330 sed 's/^/| /' conftest.$ac_ext >&5
29331
29332 glibcxx_cv_func_strtof_use=no
29333 fi
29334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29335 ac_ext=c
29336 ac_cpp='$CPP $CPPFLAGS'
29337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29340
29341
29342 fi
29343
29344 fi
29345 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
29346 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
29347 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
29348
29349 for ac_func in strtof
29350 do
29351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29352 echo "$as_me:$LINENO: checking for $ac_func" >&5
29353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29354 if eval "test \"\${$as_ac_var+set}\" = set"; then
29355 echo $ECHO_N "(cached) $ECHO_C" >&6
29356 else
29357 if test x$gcc_no_link = xyes; then
29358 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29359 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29360 { (exit 1); exit 1; }; }
29361 fi
29362 cat >conftest.$ac_ext <<_ACEOF
29363 /* confdefs.h. */
29364 _ACEOF
29365 cat confdefs.h >>conftest.$ac_ext
29366 cat >>conftest.$ac_ext <<_ACEOF
29367 /* end confdefs.h. */
29368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29370 #define $ac_func innocuous_$ac_func
29371
29372 /* System header to define __stub macros and hopefully few prototypes,
29373 which can conflict with char $ac_func (); below.
29374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29375 <limits.h> exists even on freestanding compilers. */
29376
29377 #ifdef __STDC__
29378 # include <limits.h>
29379 #else
29380 # include <assert.h>
29381 #endif
29382
29383 #undef $ac_func
29384
29385 /* Override any gcc2 internal prototype to avoid an error. */
29386 #ifdef __cplusplus
29387 extern "C"
29388 {
29389 #endif
29390 /* We use char because int might match the return type of a gcc2
29391 builtin and then its argument prototype would still apply. */
29392 char $ac_func ();
29393 /* The GNU C library defines this for functions which it implements
29394 to always fail with ENOSYS. Some functions are actually named
29395 something starting with __ and the normal name is an alias. */
29396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29397 choke me
29398 #else
29399 char (*f) () = $ac_func;
29400 #endif
29401 #ifdef __cplusplus
29402 }
29403 #endif
29404
29405 int
29406 main ()
29407 {
29408 return f != $ac_func;
29409 ;
29410 return 0;
29411 }
29412 _ACEOF
29413 rm -f conftest.$ac_objext conftest$ac_exeext
29414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29415 (eval $ac_link) 2>conftest.er1
29416 ac_status=$?
29417 grep -v '^ *+' conftest.er1 >conftest.err
29418 rm -f conftest.er1
29419 cat conftest.err >&5
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); } &&
29422 { ac_try='test -z "$ac_c_werror_flag"
29423 || test ! -s conftest.err'
29424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29425 (eval $ac_try) 2>&5
29426 ac_status=$?
29427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428 (exit $ac_status); }; } &&
29429 { ac_try='test -s conftest$ac_exeext'
29430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29431 (eval $ac_try) 2>&5
29432 ac_status=$?
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); }; }; then
29435 eval "$as_ac_var=yes"
29436 else
29437 echo "$as_me: failed program was:" >&5
29438 sed 's/^/| /' conftest.$ac_ext >&5
29439
29440 eval "$as_ac_var=no"
29441 fi
29442 rm -f conftest.err conftest.$ac_objext \
29443 conftest$ac_exeext conftest.$ac_ext
29444 fi
29445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29447 if test `eval echo '${'$as_ac_var'}'` = yes; then
29448 cat >>confdefs.h <<_ACEOF
29449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29450 _ACEOF
29451
29452 fi
29453 done
29454
29455 fi
29456
29457
29458 CXXFLAGS="$ac_save_CXXFLAGS"
29459
29460
29461 # For showmanyc_helper().
29462
29463
29464 for ac_header in sys/ioctl.h sys/filio.h
29465 do
29466 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29468 echo "$as_me:$LINENO: checking for $ac_header" >&5
29469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29471 echo $ECHO_N "(cached) $ECHO_C" >&6
29472 fi
29473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29475 else
29476 # Is the header compilable?
29477 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29479 cat >conftest.$ac_ext <<_ACEOF
29480 /* confdefs.h. */
29481 _ACEOF
29482 cat confdefs.h >>conftest.$ac_ext
29483 cat >>conftest.$ac_ext <<_ACEOF
29484 /* end confdefs.h. */
29485 $ac_includes_default
29486 #include <$ac_header>
29487 _ACEOF
29488 rm -f conftest.$ac_objext
29489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29490 (eval $ac_compile) 2>conftest.er1
29491 ac_status=$?
29492 grep -v '^ *+' conftest.er1 >conftest.err
29493 rm -f conftest.er1
29494 cat conftest.err >&5
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); } &&
29497 { ac_try='test -z "$ac_c_werror_flag"
29498 || test ! -s conftest.err'
29499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29500 (eval $ac_try) 2>&5
29501 ac_status=$?
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); }; } &&
29504 { ac_try='test -s conftest.$ac_objext'
29505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29506 (eval $ac_try) 2>&5
29507 ac_status=$?
29508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509 (exit $ac_status); }; }; then
29510 ac_header_compiler=yes
29511 else
29512 echo "$as_me: failed program was:" >&5
29513 sed 's/^/| /' conftest.$ac_ext >&5
29514
29515 ac_header_compiler=no
29516 fi
29517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29519 echo "${ECHO_T}$ac_header_compiler" >&6
29520
29521 # Is the header present?
29522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29524 cat >conftest.$ac_ext <<_ACEOF
29525 /* confdefs.h. */
29526 _ACEOF
29527 cat confdefs.h >>conftest.$ac_ext
29528 cat >>conftest.$ac_ext <<_ACEOF
29529 /* end confdefs.h. */
29530 #include <$ac_header>
29531 _ACEOF
29532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29534 ac_status=$?
29535 grep -v '^ *+' conftest.er1 >conftest.err
29536 rm -f conftest.er1
29537 cat conftest.err >&5
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); } >/dev/null; then
29540 if test -s conftest.err; then
29541 ac_cpp_err=$ac_c_preproc_warn_flag
29542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29543 else
29544 ac_cpp_err=
29545 fi
29546 else
29547 ac_cpp_err=yes
29548 fi
29549 if test -z "$ac_cpp_err"; then
29550 ac_header_preproc=yes
29551 else
29552 echo "$as_me: failed program was:" >&5
29553 sed 's/^/| /' conftest.$ac_ext >&5
29554
29555 ac_header_preproc=no
29556 fi
29557 rm -f conftest.err conftest.$ac_ext
29558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29559 echo "${ECHO_T}$ac_header_preproc" >&6
29560
29561 # So? What about this header?
29562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29563 yes:no: )
29564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29568 ac_header_preproc=yes
29569 ;;
29570 no:yes:* )
29571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29583 (
29584 cat <<\_ASBOX
29585 ## ----------------------------------------- ##
29586 ## Report this to the package-unused lists. ##
29587 ## ----------------------------------------- ##
29588 _ASBOX
29589 ) |
29590 sed "s/^/$as_me: WARNING: /" >&2
29591 ;;
29592 esac
29593 echo "$as_me:$LINENO: checking for $ac_header" >&5
29594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29596 echo $ECHO_N "(cached) $ECHO_C" >&6
29597 else
29598 eval "$as_ac_Header=\$ac_header_preproc"
29599 fi
29600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29602
29603 fi
29604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29605 cat >>confdefs.h <<_ACEOF
29606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29607 _ACEOF
29608
29609 fi
29610
29611 done
29612
29613
29614 if test "${glibcxx_cv_POLL+set}" = set; then
29615 echo $ECHO_N "(cached) $ECHO_C" >&6
29616 else
29617
29618 if test x$gcc_no_link = xyes; then
29619 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29620 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29621 { (exit 1); exit 1; }; }
29622 fi
29623 cat >conftest.$ac_ext <<_ACEOF
29624 /* confdefs.h. */
29625 _ACEOF
29626 cat confdefs.h >>conftest.$ac_ext
29627 cat >>conftest.$ac_ext <<_ACEOF
29628 /* end confdefs.h. */
29629 #include <poll.h>
29630 int
29631 main ()
29632 {
29633 struct pollfd pfd[1];
29634 pfd[0].events = POLLIN;
29635 poll(pfd, 1, 0);
29636 ;
29637 return 0;
29638 }
29639 _ACEOF
29640 rm -f conftest.$ac_objext conftest$ac_exeext
29641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29642 (eval $ac_link) 2>conftest.er1
29643 ac_status=$?
29644 grep -v '^ *+' conftest.er1 >conftest.err
29645 rm -f conftest.er1
29646 cat conftest.err >&5
29647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648 (exit $ac_status); } &&
29649 { ac_try='test -z "$ac_c_werror_flag"
29650 || test ! -s conftest.err'
29651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29652 (eval $ac_try) 2>&5
29653 ac_status=$?
29654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655 (exit $ac_status); }; } &&
29656 { ac_try='test -s conftest$ac_exeext'
29657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29658 (eval $ac_try) 2>&5
29659 ac_status=$?
29660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 (exit $ac_status); }; }; then
29662 glibcxx_cv_POLL=yes
29663 else
29664 echo "$as_me: failed program was:" >&5
29665 sed 's/^/| /' conftest.$ac_ext >&5
29666
29667 glibcxx_cv_POLL=no
29668 fi
29669 rm -f conftest.err conftest.$ac_objext \
29670 conftest$ac_exeext conftest.$ac_ext
29671
29672 fi
29673
29674 if test $glibcxx_cv_POLL = yes; then
29675 cat >>confdefs.h <<\_ACEOF
29676 #define HAVE_POLL 1
29677 _ACEOF
29678
29679 fi
29680
29681
29682 if test "${glibcxx_cv_S_ISREG+set}" = set; then
29683 echo $ECHO_N "(cached) $ECHO_C" >&6
29684 else
29685
29686 if test x$gcc_no_link = xyes; then
29687 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29688 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29689 { (exit 1); exit 1; }; }
29690 fi
29691 cat >conftest.$ac_ext <<_ACEOF
29692 /* confdefs.h. */
29693 _ACEOF
29694 cat confdefs.h >>conftest.$ac_ext
29695 cat >>conftest.$ac_ext <<_ACEOF
29696 /* end confdefs.h. */
29697 #include <sys/stat.h>
29698 int
29699 main ()
29700 {
29701 struct stat buffer;
29702 fstat(0, &buffer);
29703 S_ISREG(buffer.st_mode);
29704 ;
29705 return 0;
29706 }
29707 _ACEOF
29708 rm -f conftest.$ac_objext conftest$ac_exeext
29709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29710 (eval $ac_link) 2>conftest.er1
29711 ac_status=$?
29712 grep -v '^ *+' conftest.er1 >conftest.err
29713 rm -f conftest.er1
29714 cat conftest.err >&5
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); } &&
29717 { ac_try='test -z "$ac_c_werror_flag"
29718 || test ! -s conftest.err'
29719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29720 (eval $ac_try) 2>&5
29721 ac_status=$?
29722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723 (exit $ac_status); }; } &&
29724 { ac_try='test -s conftest$ac_exeext'
29725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29726 (eval $ac_try) 2>&5
29727 ac_status=$?
29728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729 (exit $ac_status); }; }; then
29730 glibcxx_cv_S_ISREG=yes
29731 else
29732 echo "$as_me: failed program was:" >&5
29733 sed 's/^/| /' conftest.$ac_ext >&5
29734
29735 glibcxx_cv_S_ISREG=no
29736 fi
29737 rm -f conftest.err conftest.$ac_objext \
29738 conftest$ac_exeext conftest.$ac_ext
29739
29740 fi
29741
29742 if test "${glibcxx_cv_S_IFREG+set}" = set; then
29743 echo $ECHO_N "(cached) $ECHO_C" >&6
29744 else
29745
29746 if test x$gcc_no_link = xyes; then
29747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29749 { (exit 1); exit 1; }; }
29750 fi
29751 cat >conftest.$ac_ext <<_ACEOF
29752 /* confdefs.h. */
29753 _ACEOF
29754 cat confdefs.h >>conftest.$ac_ext
29755 cat >>conftest.$ac_ext <<_ACEOF
29756 /* end confdefs.h. */
29757 #include <sys/stat.h>
29758 int
29759 main ()
29760 {
29761 struct stat buffer;
29762 fstat(0, &buffer);
29763 S_IFREG & buffer.st_mode;
29764 ;
29765 return 0;
29766 }
29767 _ACEOF
29768 rm -f conftest.$ac_objext conftest$ac_exeext
29769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29770 (eval $ac_link) 2>conftest.er1
29771 ac_status=$?
29772 grep -v '^ *+' conftest.er1 >conftest.err
29773 rm -f conftest.er1
29774 cat conftest.err >&5
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); } &&
29777 { ac_try='test -z "$ac_c_werror_flag"
29778 || test ! -s conftest.err'
29779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29780 (eval $ac_try) 2>&5
29781 ac_status=$?
29782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783 (exit $ac_status); }; } &&
29784 { ac_try='test -s conftest$ac_exeext'
29785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29786 (eval $ac_try) 2>&5
29787 ac_status=$?
29788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789 (exit $ac_status); }; }; then
29790 glibcxx_cv_S_IFREG=yes
29791 else
29792 echo "$as_me: failed program was:" >&5
29793 sed 's/^/| /' conftest.$ac_ext >&5
29794
29795 glibcxx_cv_S_IFREG=no
29796 fi
29797 rm -f conftest.err conftest.$ac_objext \
29798 conftest$ac_exeext conftest.$ac_ext
29799
29800 fi
29801
29802 if test $glibcxx_cv_S_ISREG = yes; then
29803 cat >>confdefs.h <<\_ACEOF
29804 #define HAVE_S_ISREG 1
29805 _ACEOF
29806
29807 elif test $glibcxx_cv_S_IFREG = yes; then
29808 cat >>confdefs.h <<\_ACEOF
29809 #define HAVE_S_IFREG 1
29810 _ACEOF
29811
29812 fi
29813
29814
29815 # For xsputn_2().
29816
29817 for ac_header in sys/uio.h
29818 do
29819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29821 echo "$as_me:$LINENO: checking for $ac_header" >&5
29822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29824 echo $ECHO_N "(cached) $ECHO_C" >&6
29825 fi
29826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29828 else
29829 # Is the header compilable?
29830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29832 cat >conftest.$ac_ext <<_ACEOF
29833 /* confdefs.h. */
29834 _ACEOF
29835 cat confdefs.h >>conftest.$ac_ext
29836 cat >>conftest.$ac_ext <<_ACEOF
29837 /* end confdefs.h. */
29838 $ac_includes_default
29839 #include <$ac_header>
29840 _ACEOF
29841 rm -f conftest.$ac_objext
29842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29843 (eval $ac_compile) 2>conftest.er1
29844 ac_status=$?
29845 grep -v '^ *+' conftest.er1 >conftest.err
29846 rm -f conftest.er1
29847 cat conftest.err >&5
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); } &&
29850 { ac_try='test -z "$ac_c_werror_flag"
29851 || test ! -s conftest.err'
29852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29853 (eval $ac_try) 2>&5
29854 ac_status=$?
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); }; } &&
29857 { ac_try='test -s conftest.$ac_objext'
29858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29859 (eval $ac_try) 2>&5
29860 ac_status=$?
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); }; }; then
29863 ac_header_compiler=yes
29864 else
29865 echo "$as_me: failed program was:" >&5
29866 sed 's/^/| /' conftest.$ac_ext >&5
29867
29868 ac_header_compiler=no
29869 fi
29870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29872 echo "${ECHO_T}$ac_header_compiler" >&6
29873
29874 # Is the header present?
29875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29877 cat >conftest.$ac_ext <<_ACEOF
29878 /* confdefs.h. */
29879 _ACEOF
29880 cat confdefs.h >>conftest.$ac_ext
29881 cat >>conftest.$ac_ext <<_ACEOF
29882 /* end confdefs.h. */
29883 #include <$ac_header>
29884 _ACEOF
29885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29887 ac_status=$?
29888 grep -v '^ *+' conftest.er1 >conftest.err
29889 rm -f conftest.er1
29890 cat conftest.err >&5
29891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892 (exit $ac_status); } >/dev/null; then
29893 if test -s conftest.err; then
29894 ac_cpp_err=$ac_c_preproc_warn_flag
29895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29896 else
29897 ac_cpp_err=
29898 fi
29899 else
29900 ac_cpp_err=yes
29901 fi
29902 if test -z "$ac_cpp_err"; then
29903 ac_header_preproc=yes
29904 else
29905 echo "$as_me: failed program was:" >&5
29906 sed 's/^/| /' conftest.$ac_ext >&5
29907
29908 ac_header_preproc=no
29909 fi
29910 rm -f conftest.err conftest.$ac_ext
29911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29912 echo "${ECHO_T}$ac_header_preproc" >&6
29913
29914 # So? What about this header?
29915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29916 yes:no: )
29917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29921 ac_header_preproc=yes
29922 ;;
29923 no:yes:* )
29924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29936 (
29937 cat <<\_ASBOX
29938 ## ----------------------------------------- ##
29939 ## Report this to the package-unused lists. ##
29940 ## ----------------------------------------- ##
29941 _ASBOX
29942 ) |
29943 sed "s/^/$as_me: WARNING: /" >&2
29944 ;;
29945 esac
29946 echo "$as_me:$LINENO: checking for $ac_header" >&5
29947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29949 echo $ECHO_N "(cached) $ECHO_C" >&6
29950 else
29951 eval "$as_ac_Header=\$ac_header_preproc"
29952 fi
29953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29955
29956 fi
29957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29958 cat >>confdefs.h <<_ACEOF
29959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29960 _ACEOF
29961
29962 fi
29963
29964 done
29965
29966
29967 if test "${glibcxx_cv_WRITEV+set}" = set; then
29968 echo $ECHO_N "(cached) $ECHO_C" >&6
29969 else
29970
29971 if test x$gcc_no_link = xyes; then
29972 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29973 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29974 { (exit 1); exit 1; }; }
29975 fi
29976 cat >conftest.$ac_ext <<_ACEOF
29977 /* confdefs.h. */
29978 _ACEOF
29979 cat confdefs.h >>conftest.$ac_ext
29980 cat >>conftest.$ac_ext <<_ACEOF
29981 /* end confdefs.h. */
29982 #include <sys/uio.h>
29983 int
29984 main ()
29985 {
29986 struct iovec iov[2];
29987 writev(0, iov, 0);
29988 ;
29989 return 0;
29990 }
29991 _ACEOF
29992 rm -f conftest.$ac_objext conftest$ac_exeext
29993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29994 (eval $ac_link) 2>conftest.er1
29995 ac_status=$?
29996 grep -v '^ *+' conftest.er1 >conftest.err
29997 rm -f conftest.er1
29998 cat conftest.err >&5
29999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000 (exit $ac_status); } &&
30001 { ac_try='test -z "$ac_c_werror_flag"
30002 || test ! -s conftest.err'
30003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30004 (eval $ac_try) 2>&5
30005 ac_status=$?
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); }; } &&
30008 { ac_try='test -s conftest$ac_exeext'
30009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30010 (eval $ac_try) 2>&5
30011 ac_status=$?
30012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013 (exit $ac_status); }; }; then
30014 glibcxx_cv_WRITEV=yes
30015 else
30016 echo "$as_me: failed program was:" >&5
30017 sed 's/^/| /' conftest.$ac_ext >&5
30018
30019 glibcxx_cv_WRITEV=no
30020 fi
30021 rm -f conftest.err conftest.$ac_objext \
30022 conftest$ac_exeext conftest.$ac_ext
30023
30024 fi
30025
30026 if test $glibcxx_cv_WRITEV = yes; then
30027 cat >>confdefs.h <<\_ACEOF
30028 #define HAVE_WRITEV 1
30029 _ACEOF
30030
30031 fi
30032
30033
30034 # For the __streamoff_base_type typedef.
30035
30036 if test "${glibcxx_cv_INT64_T+set}" = set; then
30037 echo $ECHO_N "(cached) $ECHO_C" >&6
30038 else
30039
30040 cat >conftest.$ac_ext <<_ACEOF
30041 /* confdefs.h. */
30042 _ACEOF
30043 cat confdefs.h >>conftest.$ac_ext
30044 cat >>conftest.$ac_ext <<_ACEOF
30045 /* end confdefs.h. */
30046 #include <stdint.h>
30047 int
30048 main ()
30049 {
30050 int64_t var;
30051 ;
30052 return 0;
30053 }
30054 _ACEOF
30055 rm -f conftest.$ac_objext
30056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30057 (eval $ac_compile) 2>conftest.er1
30058 ac_status=$?
30059 grep -v '^ *+' conftest.er1 >conftest.err
30060 rm -f conftest.er1
30061 cat conftest.err >&5
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); } &&
30064 { ac_try='test -z "$ac_c_werror_flag"
30065 || test ! -s conftest.err'
30066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30067 (eval $ac_try) 2>&5
30068 ac_status=$?
30069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); }; } &&
30071 { ac_try='test -s conftest.$ac_objext'
30072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30073 (eval $ac_try) 2>&5
30074 ac_status=$?
30075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30076 (exit $ac_status); }; }; then
30077 glibcxx_cv_INT64_T=yes
30078 else
30079 echo "$as_me: failed program was:" >&5
30080 sed 's/^/| /' conftest.$ac_ext >&5
30081
30082 glibcxx_cv_INT64_T=no
30083 fi
30084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30085
30086 fi
30087
30088 if test $glibcxx_cv_INT64_T = yes; then
30089 cat >>confdefs.h <<\_ACEOF
30090 #define HAVE_INT64_T 1
30091 _ACEOF
30092
30093 fi
30094
30095
30096 # For LFS support.
30097
30098
30099
30100 ac_ext=cc
30101 ac_cpp='$CXXCPP $CPPFLAGS'
30102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30105
30106 ac_save_CXXFLAGS="$CXXFLAGS"
30107 CXXFLAGS="$CXXFLAGS -fno-exceptions"
30108 if test "${glibcxx_cv_LFS+set}" = set; then
30109 echo $ECHO_N "(cached) $ECHO_C" >&6
30110 else
30111
30112 if test x$gcc_no_link = xyes; then
30113 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30115 { (exit 1); exit 1; }; }
30116 fi
30117 cat >conftest.$ac_ext <<_ACEOF
30118 /* confdefs.h. */
30119 _ACEOF
30120 cat confdefs.h >>conftest.$ac_ext
30121 cat >>conftest.$ac_ext <<_ACEOF
30122 /* end confdefs.h. */
30123 #include <unistd.h>
30124 #include <stdio.h>
30125
30126 int
30127 main ()
30128 {
30129 FILE* fp;
30130 fopen64("t", "w");
30131 fseeko64(fp, 0, SEEK_CUR);
30132 ftello64(fp);
30133 lseek64(1, 0, SEEK_CUR);
30134 ;
30135 return 0;
30136 }
30137 _ACEOF
30138 rm -f conftest.$ac_objext conftest$ac_exeext
30139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30140 (eval $ac_link) 2>conftest.er1
30141 ac_status=$?
30142 grep -v '^ *+' conftest.er1 >conftest.err
30143 rm -f conftest.er1
30144 cat conftest.err >&5
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); } &&
30147 { ac_try='test -z "$ac_cxx_werror_flag"
30148 || test ! -s conftest.err'
30149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30150 (eval $ac_try) 2>&5
30151 ac_status=$?
30152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153 (exit $ac_status); }; } &&
30154 { ac_try='test -s conftest$ac_exeext'
30155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30156 (eval $ac_try) 2>&5
30157 ac_status=$?
30158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159 (exit $ac_status); }; }; then
30160 glibcxx_cv_LFS=yes
30161 else
30162 echo "$as_me: failed program was:" >&5
30163 sed 's/^/| /' conftest.$ac_ext >&5
30164
30165 glibcxx_cv_LFS=no
30166 fi
30167 rm -f conftest.err conftest.$ac_objext \
30168 conftest$ac_exeext conftest.$ac_ext
30169
30170 fi
30171
30172 if test $glibcxx_cv_LFS = yes; then
30173 cat >>confdefs.h <<\_ACEOF
30174 #define _GLIBCXX_USE_LFS 1
30175 _ACEOF
30176
30177 fi
30178 CXXFLAGS="$ac_save_CXXFLAGS"
30179 ac_ext=c
30180 ac_cpp='$CPP $CPPFLAGS'
30181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30184
30185
30186
30187
30188 if test "${ac_cv_header_locale_h+set}" = set; then
30189 echo "$as_me:$LINENO: checking for locale.h" >&5
30190 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30191 if test "${ac_cv_header_locale_h+set}" = set; then
30192 echo $ECHO_N "(cached) $ECHO_C" >&6
30193 fi
30194 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30195 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30196 else
30197 # Is the header compilable?
30198 echo "$as_me:$LINENO: checking locale.h usability" >&5
30199 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
30200 cat >conftest.$ac_ext <<_ACEOF
30201 /* confdefs.h. */
30202 _ACEOF
30203 cat confdefs.h >>conftest.$ac_ext
30204 cat >>conftest.$ac_ext <<_ACEOF
30205 /* end confdefs.h. */
30206 $ac_includes_default
30207 #include <locale.h>
30208 _ACEOF
30209 rm -f conftest.$ac_objext
30210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30211 (eval $ac_compile) 2>conftest.er1
30212 ac_status=$?
30213 grep -v '^ *+' conftest.er1 >conftest.err
30214 rm -f conftest.er1
30215 cat conftest.err >&5
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); } &&
30218 { ac_try='test -z "$ac_c_werror_flag"
30219 || test ! -s conftest.err'
30220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30221 (eval $ac_try) 2>&5
30222 ac_status=$?
30223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224 (exit $ac_status); }; } &&
30225 { ac_try='test -s conftest.$ac_objext'
30226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30227 (eval $ac_try) 2>&5
30228 ac_status=$?
30229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230 (exit $ac_status); }; }; then
30231 ac_header_compiler=yes
30232 else
30233 echo "$as_me: failed program was:" >&5
30234 sed 's/^/| /' conftest.$ac_ext >&5
30235
30236 ac_header_compiler=no
30237 fi
30238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30239 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30240 echo "${ECHO_T}$ac_header_compiler" >&6
30241
30242 # Is the header present?
30243 echo "$as_me:$LINENO: checking locale.h presence" >&5
30244 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
30245 cat >conftest.$ac_ext <<_ACEOF
30246 /* confdefs.h. */
30247 _ACEOF
30248 cat confdefs.h >>conftest.$ac_ext
30249 cat >>conftest.$ac_ext <<_ACEOF
30250 /* end confdefs.h. */
30251 #include <locale.h>
30252 _ACEOF
30253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30255 ac_status=$?
30256 grep -v '^ *+' conftest.er1 >conftest.err
30257 rm -f conftest.er1
30258 cat conftest.err >&5
30259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); } >/dev/null; then
30261 if test -s conftest.err; then
30262 ac_cpp_err=$ac_c_preproc_warn_flag
30263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30264 else
30265 ac_cpp_err=
30266 fi
30267 else
30268 ac_cpp_err=yes
30269 fi
30270 if test -z "$ac_cpp_err"; then
30271 ac_header_preproc=yes
30272 else
30273 echo "$as_me: failed program was:" >&5
30274 sed 's/^/| /' conftest.$ac_ext >&5
30275
30276 ac_header_preproc=no
30277 fi
30278 rm -f conftest.err conftest.$ac_ext
30279 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30280 echo "${ECHO_T}$ac_header_preproc" >&6
30281
30282 # So? What about this header?
30283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30284 yes:no: )
30285 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
30286 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
30288 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
30289 ac_header_preproc=yes
30290 ;;
30291 no:yes:* )
30292 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
30293 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
30294 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
30295 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
30296 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
30297 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
30298 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
30299 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
30300 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
30301 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
30302 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
30303 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
30304 (
30305 cat <<\_ASBOX
30306 ## ----------------------------------------- ##
30307 ## Report this to the package-unused lists. ##
30308 ## ----------------------------------------- ##
30309 _ASBOX
30310 ) |
30311 sed "s/^/$as_me: WARNING: /" >&2
30312 ;;
30313 esac
30314 echo "$as_me:$LINENO: checking for locale.h" >&5
30315 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30316 if test "${ac_cv_header_locale_h+set}" = set; then
30317 echo $ECHO_N "(cached) $ECHO_C" >&6
30318 else
30319 ac_cv_header_locale_h=$ac_header_preproc
30320 fi
30321 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30322 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30323
30324 fi
30325 if test $ac_cv_header_locale_h = yes; then
30326
30327 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
30328 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
30329 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
30330 echo $ECHO_N "(cached) $ECHO_C" >&6
30331 else
30332 if test x$gcc_no_link = xyes; then
30333 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30334 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30335 { (exit 1); exit 1; }; }
30336 fi
30337 cat >conftest.$ac_ext <<_ACEOF
30338 /* confdefs.h. */
30339 _ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h. */
30343 #include <locale.h>
30344 int
30345 main ()
30346 {
30347 return LC_MESSAGES
30348 ;
30349 return 0;
30350 }
30351 _ACEOF
30352 rm -f conftest.$ac_objext conftest$ac_exeext
30353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30354 (eval $ac_link) 2>conftest.er1
30355 ac_status=$?
30356 grep -v '^ *+' conftest.er1 >conftest.err
30357 rm -f conftest.er1
30358 cat conftest.err >&5
30359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360 (exit $ac_status); } &&
30361 { ac_try='test -z "$ac_c_werror_flag"
30362 || test ! -s conftest.err'
30363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30364 (eval $ac_try) 2>&5
30365 ac_status=$?
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); }; } &&
30368 { ac_try='test -s conftest$ac_exeext'
30369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30370 (eval $ac_try) 2>&5
30371 ac_status=$?
30372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30373 (exit $ac_status); }; }; then
30374 ac_cv_val_LC_MESSAGES=yes
30375 else
30376 echo "$as_me: failed program was:" >&5
30377 sed 's/^/| /' conftest.$ac_ext >&5
30378
30379 ac_cv_val_LC_MESSAGES=no
30380 fi
30381 rm -f conftest.err conftest.$ac_objext \
30382 conftest$ac_exeext conftest.$ac_ext
30383 fi
30384 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
30385 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
30386 if test $ac_cv_val_LC_MESSAGES = yes; then
30387 cat >>confdefs.h <<\_ACEOF
30388 #define HAVE_LC_MESSAGES 1
30389 _ACEOF
30390
30391 fi
30392
30393 fi
30394
30395
30396
30397
30398 cat >conftest.$ac_ext <<_ACEOF
30399 /* confdefs.h. */
30400 _ACEOF
30401 cat confdefs.h >>conftest.$ac_ext
30402 cat >>conftest.$ac_ext <<_ACEOF
30403 /* end confdefs.h. */
30404 #include <setjmp.h>
30405 int
30406 main ()
30407 {
30408 sigjmp_buf env;
30409 while (! sigsetjmp (env, 1))
30410 siglongjmp (env, 1);
30411
30412 ;
30413 return 0;
30414 }
30415 _ACEOF
30416 rm -f conftest.$ac_objext
30417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30418 (eval $ac_compile) 2>conftest.er1
30419 ac_status=$?
30420 grep -v '^ *+' conftest.er1 >conftest.err
30421 rm -f conftest.er1
30422 cat conftest.err >&5
30423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424 (exit $ac_status); } &&
30425 { ac_try='test -z "$ac_c_werror_flag"
30426 || test ! -s conftest.err'
30427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30428 (eval $ac_try) 2>&5
30429 ac_status=$?
30430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431 (exit $ac_status); }; } &&
30432 { ac_try='test -s conftest.$ac_objext'
30433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30434 (eval $ac_try) 2>&5
30435 ac_status=$?
30436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437 (exit $ac_status); }; }; then
30438
30439 cat >>confdefs.h <<\_ACEOF
30440 #define HAVE_SIGSETJMP 1
30441 _ACEOF
30442
30443 else
30444 echo "$as_me: failed program was:" >&5
30445 sed 's/^/| /' conftest.$ac_ext >&5
30446
30447 fi
30448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30449
30450 if test x$gcc_no_link = xyes; then
30451 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30452 ac_cv_func_mmap_fixed_mapped=no
30453 fi
30454 fi
30455 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30456
30457
30458 for ac_header in stdlib.h unistd.h
30459 do
30460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30462 echo "$as_me:$LINENO: checking for $ac_header" >&5
30463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30465 echo $ECHO_N "(cached) $ECHO_C" >&6
30466 fi
30467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30469 else
30470 # Is the header compilable?
30471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30473 cat >conftest.$ac_ext <<_ACEOF
30474 /* confdefs.h. */
30475 _ACEOF
30476 cat confdefs.h >>conftest.$ac_ext
30477 cat >>conftest.$ac_ext <<_ACEOF
30478 /* end confdefs.h. */
30479 $ac_includes_default
30480 #include <$ac_header>
30481 _ACEOF
30482 rm -f conftest.$ac_objext
30483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30484 (eval $ac_compile) 2>conftest.er1
30485 ac_status=$?
30486 grep -v '^ *+' conftest.er1 >conftest.err
30487 rm -f conftest.er1
30488 cat conftest.err >&5
30489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490 (exit $ac_status); } &&
30491 { ac_try='test -z "$ac_c_werror_flag"
30492 || test ! -s conftest.err'
30493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30494 (eval $ac_try) 2>&5
30495 ac_status=$?
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; } &&
30498 { ac_try='test -s conftest.$ac_objext'
30499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30500 (eval $ac_try) 2>&5
30501 ac_status=$?
30502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30503 (exit $ac_status); }; }; then
30504 ac_header_compiler=yes
30505 else
30506 echo "$as_me: failed program was:" >&5
30507 sed 's/^/| /' conftest.$ac_ext >&5
30508
30509 ac_header_compiler=no
30510 fi
30511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30513 echo "${ECHO_T}$ac_header_compiler" >&6
30514
30515 # Is the header present?
30516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30518 cat >conftest.$ac_ext <<_ACEOF
30519 /* confdefs.h. */
30520 _ACEOF
30521 cat confdefs.h >>conftest.$ac_ext
30522 cat >>conftest.$ac_ext <<_ACEOF
30523 /* end confdefs.h. */
30524 #include <$ac_header>
30525 _ACEOF
30526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30528 ac_status=$?
30529 grep -v '^ *+' conftest.er1 >conftest.err
30530 rm -f conftest.er1
30531 cat conftest.err >&5
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); } >/dev/null; then
30534 if test -s conftest.err; then
30535 ac_cpp_err=$ac_c_preproc_warn_flag
30536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30537 else
30538 ac_cpp_err=
30539 fi
30540 else
30541 ac_cpp_err=yes
30542 fi
30543 if test -z "$ac_cpp_err"; then
30544 ac_header_preproc=yes
30545 else
30546 echo "$as_me: failed program was:" >&5
30547 sed 's/^/| /' conftest.$ac_ext >&5
30548
30549 ac_header_preproc=no
30550 fi
30551 rm -f conftest.err conftest.$ac_ext
30552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30553 echo "${ECHO_T}$ac_header_preproc" >&6
30554
30555 # So? What about this header?
30556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30557 yes:no: )
30558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30562 ac_header_preproc=yes
30563 ;;
30564 no:yes:* )
30565 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30567 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30568 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30569 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30571 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30572 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30575 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30577 (
30578 cat <<\_ASBOX
30579 ## ----------------------------------------- ##
30580 ## Report this to the package-unused lists. ##
30581 ## ----------------------------------------- ##
30582 _ASBOX
30583 ) |
30584 sed "s/^/$as_me: WARNING: /" >&2
30585 ;;
30586 esac
30587 echo "$as_me:$LINENO: checking for $ac_header" >&5
30588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30590 echo $ECHO_N "(cached) $ECHO_C" >&6
30591 else
30592 eval "$as_ac_Header=\$ac_header_preproc"
30593 fi
30594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30596
30597 fi
30598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30599 cat >>confdefs.h <<_ACEOF
30600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30601 _ACEOF
30602
30603 fi
30604
30605 done
30606
30607
30608 for ac_func in getpagesize
30609 do
30610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30611 echo "$as_me:$LINENO: checking for $ac_func" >&5
30612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30613 if eval "test \"\${$as_ac_var+set}\" = set"; then
30614 echo $ECHO_N "(cached) $ECHO_C" >&6
30615 else
30616 if test x$gcc_no_link = xyes; then
30617 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30618 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30619 { (exit 1); exit 1; }; }
30620 fi
30621 cat >conftest.$ac_ext <<_ACEOF
30622 /* confdefs.h. */
30623 _ACEOF
30624 cat confdefs.h >>conftest.$ac_ext
30625 cat >>conftest.$ac_ext <<_ACEOF
30626 /* end confdefs.h. */
30627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30629 #define $ac_func innocuous_$ac_func
30630
30631 /* System header to define __stub macros and hopefully few prototypes,
30632 which can conflict with char $ac_func (); below.
30633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30634 <limits.h> exists even on freestanding compilers. */
30635
30636 #ifdef __STDC__
30637 # include <limits.h>
30638 #else
30639 # include <assert.h>
30640 #endif
30641
30642 #undef $ac_func
30643
30644 /* Override any gcc2 internal prototype to avoid an error. */
30645 #ifdef __cplusplus
30646 extern "C"
30647 {
30648 #endif
30649 /* We use char because int might match the return type of a gcc2
30650 builtin and then its argument prototype would still apply. */
30651 char $ac_func ();
30652 /* The GNU C library defines this for functions which it implements
30653 to always fail with ENOSYS. Some functions are actually named
30654 something starting with __ and the normal name is an alias. */
30655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30656 choke me
30657 #else
30658 char (*f) () = $ac_func;
30659 #endif
30660 #ifdef __cplusplus
30661 }
30662 #endif
30663
30664 int
30665 main ()
30666 {
30667 return f != $ac_func;
30668 ;
30669 return 0;
30670 }
30671 _ACEOF
30672 rm -f conftest.$ac_objext conftest$ac_exeext
30673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30674 (eval $ac_link) 2>conftest.er1
30675 ac_status=$?
30676 grep -v '^ *+' conftest.er1 >conftest.err
30677 rm -f conftest.er1
30678 cat conftest.err >&5
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); } &&
30681 { ac_try='test -z "$ac_c_werror_flag"
30682 || test ! -s conftest.err'
30683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30684 (eval $ac_try) 2>&5
30685 ac_status=$?
30686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687 (exit $ac_status); }; } &&
30688 { ac_try='test -s conftest$ac_exeext'
30689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30690 (eval $ac_try) 2>&5
30691 ac_status=$?
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); }; }; then
30694 eval "$as_ac_var=yes"
30695 else
30696 echo "$as_me: failed program was:" >&5
30697 sed 's/^/| /' conftest.$ac_ext >&5
30698
30699 eval "$as_ac_var=no"
30700 fi
30701 rm -f conftest.err conftest.$ac_objext \
30702 conftest$ac_exeext conftest.$ac_ext
30703 fi
30704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30706 if test `eval echo '${'$as_ac_var'}'` = yes; then
30707 cat >>confdefs.h <<_ACEOF
30708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30709 _ACEOF
30710
30711 fi
30712 done
30713
30714 echo "$as_me:$LINENO: checking for working mmap" >&5
30715 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30716 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30717 echo $ECHO_N "(cached) $ECHO_C" >&6
30718 else
30719 if test "$cross_compiling" = yes; then
30720 ac_cv_func_mmap_fixed_mapped=no
30721 else
30722 cat >conftest.$ac_ext <<_ACEOF
30723 /* confdefs.h. */
30724 _ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h. */
30728 $ac_includes_default
30729 /* malloc might have been renamed as rpl_malloc. */
30730 #undef malloc
30731
30732 /* Thanks to Mike Haertel and Jim Avera for this test.
30733 Here is a matrix of mmap possibilities:
30734 mmap private not fixed
30735 mmap private fixed at somewhere currently unmapped
30736 mmap private fixed at somewhere already mapped
30737 mmap shared not fixed
30738 mmap shared fixed at somewhere currently unmapped
30739 mmap shared fixed at somewhere already mapped
30740 For private mappings, we should verify that changes cannot be read()
30741 back from the file, nor mmap's back from the file at a different
30742 address. (There have been systems where private was not correctly
30743 implemented like the infamous i386 svr4.0, and systems where the
30744 VM page cache was not coherent with the file system buffer cache
30745 like early versions of FreeBSD and possibly contemporary NetBSD.)
30746 For shared mappings, we should conversely verify that changes get
30747 propagated back to all the places they're supposed to be.
30748
30749 Grep wants private fixed already mapped.
30750 The main things grep needs to know about mmap are:
30751 * does it exist and is it safe to write into the mmap'd area
30752 * how to use it (BSD variants) */
30753
30754 #include <fcntl.h>
30755 #include <sys/mman.h>
30756
30757 #if !STDC_HEADERS && !HAVE_STDLIB_H
30758 char *malloc ();
30759 #endif
30760
30761 /* This mess was copied from the GNU getpagesize.h. */
30762 #if !HAVE_GETPAGESIZE
30763 /* Assume that all systems that can run configure have sys/param.h. */
30764 # if !HAVE_SYS_PARAM_H
30765 # define HAVE_SYS_PARAM_H 1
30766 # endif
30767
30768 # ifdef _SC_PAGESIZE
30769 # define getpagesize() sysconf(_SC_PAGESIZE)
30770 # else /* no _SC_PAGESIZE */
30771 # if HAVE_SYS_PARAM_H
30772 # include <sys/param.h>
30773 # ifdef EXEC_PAGESIZE
30774 # define getpagesize() EXEC_PAGESIZE
30775 # else /* no EXEC_PAGESIZE */
30776 # ifdef NBPG
30777 # define getpagesize() NBPG * CLSIZE
30778 # ifndef CLSIZE
30779 # define CLSIZE 1
30780 # endif /* no CLSIZE */
30781 # else /* no NBPG */
30782 # ifdef NBPC
30783 # define getpagesize() NBPC
30784 # else /* no NBPC */
30785 # ifdef PAGESIZE
30786 # define getpagesize() PAGESIZE
30787 # endif /* PAGESIZE */
30788 # endif /* no NBPC */
30789 # endif /* no NBPG */
30790 # endif /* no EXEC_PAGESIZE */
30791 # else /* no HAVE_SYS_PARAM_H */
30792 # define getpagesize() 8192 /* punt totally */
30793 # endif /* no HAVE_SYS_PARAM_H */
30794 # endif /* no _SC_PAGESIZE */
30795
30796 #endif /* no HAVE_GETPAGESIZE */
30797
30798 int
30799 main ()
30800 {
30801 char *data, *data2, *data3;
30802 int i, pagesize;
30803 int fd;
30804
30805 pagesize = getpagesize ();
30806
30807 /* First, make a file with some known garbage in it. */
30808 data = (char *) malloc (pagesize);
30809 if (!data)
30810 exit (1);
30811 for (i = 0; i < pagesize; ++i)
30812 *(data + i) = rand ();
30813 umask (0);
30814 fd = creat ("conftest.mmap", 0600);
30815 if (fd < 0)
30816 exit (1);
30817 if (write (fd, data, pagesize) != pagesize)
30818 exit (1);
30819 close (fd);
30820
30821 /* Next, try to mmap the file at a fixed address which already has
30822 something else allocated at it. If we can, also make sure that
30823 we see the same garbage. */
30824 fd = open ("conftest.mmap", O_RDWR);
30825 if (fd < 0)
30826 exit (1);
30827 data2 = (char *) malloc (2 * pagesize);
30828 if (!data2)
30829 exit (1);
30830 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
30831 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
30832 MAP_PRIVATE | MAP_FIXED, fd, 0L))
30833 exit (1);
30834 for (i = 0; i < pagesize; ++i)
30835 if (*(data + i) != *(data2 + i))
30836 exit (1);
30837
30838 /* Finally, make sure that changes to the mapped area do not
30839 percolate back to the file as seen by read(). (This is a bug on
30840 some variants of i386 svr4.0.) */
30841 for (i = 0; i < pagesize; ++i)
30842 *(data2 + i) = *(data2 + i) + 1;
30843 data3 = (char *) malloc (pagesize);
30844 if (!data3)
30845 exit (1);
30846 if (read (fd, data3, pagesize) != pagesize)
30847 exit (1);
30848 for (i = 0; i < pagesize; ++i)
30849 if (*(data + i) != *(data3 + i))
30850 exit (1);
30851 close (fd);
30852 exit (0);
30853 }
30854 _ACEOF
30855 rm -f conftest$ac_exeext
30856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30857 (eval $ac_link) 2>&5
30858 ac_status=$?
30859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30862 (eval $ac_try) 2>&5
30863 ac_status=$?
30864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30865 (exit $ac_status); }; }; then
30866 ac_cv_func_mmap_fixed_mapped=yes
30867 else
30868 echo "$as_me: program exited with status $ac_status" >&5
30869 echo "$as_me: failed program was:" >&5
30870 sed 's/^/| /' conftest.$ac_ext >&5
30871
30872 ( exit $ac_status )
30873 ac_cv_func_mmap_fixed_mapped=no
30874 fi
30875 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30876 fi
30877 fi
30878 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30879 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30880 if test $ac_cv_func_mmap_fixed_mapped = yes; then
30881
30882 cat >>confdefs.h <<\_ACEOF
30883 #define HAVE_MMAP 1
30884 _ACEOF
30885
30886 fi
30887 rm -f conftest.mmap
30888
30889 fi
30890
30891 else
30892
30893 # This lets us hard-code the functionality we know we'll have in the cross
30894 # target environment. "Let" is a sugar-coated word placed on an especially
30895 # dull and tedious hack, actually.
30896 #
30897 # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
30898 # that involve linking, can't be used:
30899 # "cannot open sim-crt0.o"
30900 # "cannot open crt0.o"
30901 # etc. All this is because there currently exists no unified, consistent
30902 # way for top level CC information to be passed down to target directories:
30903 # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
30904 # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
30905 # crosses can be removed.
30906
30907 # If Canadian cross, then don't pick up tools from the build directory.
30908 # Used only in GLIBCXX_EXPORT_INCLUDES.
30909 if test -n "$with_cross_host" &&
30910 test x"$build_alias" != x"$with_cross_host" &&
30911 test x"$build" != x"$target";
30912 then
30913 CANADIAN=yes
30914 else
30915 CANADIAN=no
30916 fi
30917
30918 # Construct crosses by hand, eliminating bits that need ld...
30919 # GLIBCXX_CHECK_COMPILER_FEATURES
30920 # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
30921 # GLIBCXX_CHECK_MATH_SUPPORT
30922
30923 # First, test for "known" system libraries. We may be using newlib even
30924 # on a hosted environment.
30925 if test "x${with_newlib}" = "xyes"; then
30926 os_include_dir="os/newlib"
30927 cat >>confdefs.h <<\_ACEOF
30928 #define HAVE_HYPOT 1
30929 _ACEOF
30930
30931
30932 # GLIBCXX_CHECK_STDLIB_SUPPORT
30933 cat >>confdefs.h <<\_ACEOF
30934 #define HAVE_STRTOF 1
30935 _ACEOF
30936
30937 cat >>confdefs.h <<\_ACEOF
30938 #define HAVE_STRTOLD 1
30939 _ACEOF
30940
30941 # AC_FUNC_MMAP
30942 cat >>confdefs.h <<\_ACEOF
30943 #define HAVE_MMAP 1
30944 _ACEOF
30945
30946
30947 cat >>confdefs.h <<\_ACEOF
30948 #define HAVE_ACOSF 1
30949 _ACEOF
30950
30951 cat >>confdefs.h <<\_ACEOF
30952 #define HAVE_ASINF 1
30953 _ACEOF
30954
30955 cat >>confdefs.h <<\_ACEOF
30956 #define HAVE_ATAN2F 1
30957 _ACEOF
30958
30959 cat >>confdefs.h <<\_ACEOF
30960 #define HAVE_ATANF 1
30961 _ACEOF
30962
30963 cat >>confdefs.h <<\_ACEOF
30964 #define HAVE_CEILF 1
30965 _ACEOF
30966
30967 cat >>confdefs.h <<\_ACEOF
30968 #define HAVE_COPYSIGN 1
30969 _ACEOF
30970
30971 cat >>confdefs.h <<\_ACEOF
30972 #define HAVE_COPYSIGNF 1
30973 _ACEOF
30974
30975 cat >>confdefs.h <<\_ACEOF
30976 #define HAVE_COSF 1
30977 _ACEOF
30978
30979 cat >>confdefs.h <<\_ACEOF
30980 #define HAVE_COSHF 1
30981 _ACEOF
30982
30983 cat >>confdefs.h <<\_ACEOF
30984 #define HAVE_EXPF 1
30985 _ACEOF
30986
30987 cat >>confdefs.h <<\_ACEOF
30988 #define HAVE_FABSF 1
30989 _ACEOF
30990
30991 cat >>confdefs.h <<\_ACEOF
30992 #define HAVE_FLOORF 1
30993 _ACEOF
30994
30995 cat >>confdefs.h <<\_ACEOF
30996 #define HAVE_FMODF 1
30997 _ACEOF
30998
30999 cat >>confdefs.h <<\_ACEOF
31000 #define HAVE_FREXPF 1
31001 _ACEOF
31002
31003 cat >>confdefs.h <<\_ACEOF
31004 #define HAVE_LDEXPF 1
31005 _ACEOF
31006
31007 cat >>confdefs.h <<\_ACEOF
31008 #define HAVE_LOG10F 1
31009 _ACEOF
31010
31011 cat >>confdefs.h <<\_ACEOF
31012 #define HAVE_LOGF 1
31013 _ACEOF
31014
31015 cat >>confdefs.h <<\_ACEOF
31016 #define HAVE_MODFF 1
31017 _ACEOF
31018
31019 cat >>confdefs.h <<\_ACEOF
31020 #define HAVE_POWF 1
31021 _ACEOF
31022
31023 cat >>confdefs.h <<\_ACEOF
31024 #define HAVE_SINF 1
31025 _ACEOF
31026
31027 cat >>confdefs.h <<\_ACEOF
31028 #define HAVE_SINHF 1
31029 _ACEOF
31030
31031 cat >>confdefs.h <<\_ACEOF
31032 #define HAVE_SQRTF 1
31033 _ACEOF
31034
31035 cat >>confdefs.h <<\_ACEOF
31036 #define HAVE_TANF 1
31037 _ACEOF
31038
31039 cat >>confdefs.h <<\_ACEOF
31040 #define HAVE_TANHF 1
31041 _ACEOF
31042
31043
31044 cat >>confdefs.h <<\_ACEOF
31045 #define HAVE_S_ISREG 1
31046 _ACEOF
31047
31048 cat >>confdefs.h <<\_ACEOF
31049 #define HAVE_S_IFREG 1
31050 _ACEOF
31051
31052 else
31053
31054 # Base decisions on target environment.
31055 case "${host}" in
31056 *-darwin*)
31057 # Darwin versions vary, but the linker should work in a cross environment,
31058 # so we just check for all the features here.
31059 # Check for available headers.
31060
31061
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072
31073 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
31074 machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
31075 sys/types.h
31076 do
31077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31079 echo "$as_me:$LINENO: checking for $ac_header" >&5
31080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31082 echo $ECHO_N "(cached) $ECHO_C" >&6
31083 fi
31084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31086 else
31087 # Is the header compilable?
31088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31090 cat >conftest.$ac_ext <<_ACEOF
31091 /* confdefs.h. */
31092 _ACEOF
31093 cat confdefs.h >>conftest.$ac_ext
31094 cat >>conftest.$ac_ext <<_ACEOF
31095 /* end confdefs.h. */
31096 $ac_includes_default
31097 #include <$ac_header>
31098 _ACEOF
31099 rm -f conftest.$ac_objext
31100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31101 (eval $ac_compile) 2>conftest.er1
31102 ac_status=$?
31103 grep -v '^ *+' conftest.er1 >conftest.err
31104 rm -f conftest.er1
31105 cat conftest.err >&5
31106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107 (exit $ac_status); } &&
31108 { ac_try='test -z "$ac_c_werror_flag"
31109 || test ! -s conftest.err'
31110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31111 (eval $ac_try) 2>&5
31112 ac_status=$?
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114 (exit $ac_status); }; } &&
31115 { ac_try='test -s conftest.$ac_objext'
31116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31117 (eval $ac_try) 2>&5
31118 ac_status=$?
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); }; }; then
31121 ac_header_compiler=yes
31122 else
31123 echo "$as_me: failed program was:" >&5
31124 sed 's/^/| /' conftest.$ac_ext >&5
31125
31126 ac_header_compiler=no
31127 fi
31128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31130 echo "${ECHO_T}$ac_header_compiler" >&6
31131
31132 # Is the header present?
31133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31135 cat >conftest.$ac_ext <<_ACEOF
31136 /* confdefs.h. */
31137 _ACEOF
31138 cat confdefs.h >>conftest.$ac_ext
31139 cat >>conftest.$ac_ext <<_ACEOF
31140 /* end confdefs.h. */
31141 #include <$ac_header>
31142 _ACEOF
31143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31145 ac_status=$?
31146 grep -v '^ *+' conftest.er1 >conftest.err
31147 rm -f conftest.er1
31148 cat conftest.err >&5
31149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31150 (exit $ac_status); } >/dev/null; then
31151 if test -s conftest.err; then
31152 ac_cpp_err=$ac_c_preproc_warn_flag
31153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31154 else
31155 ac_cpp_err=
31156 fi
31157 else
31158 ac_cpp_err=yes
31159 fi
31160 if test -z "$ac_cpp_err"; then
31161 ac_header_preproc=yes
31162 else
31163 echo "$as_me: failed program was:" >&5
31164 sed 's/^/| /' conftest.$ac_ext >&5
31165
31166 ac_header_preproc=no
31167 fi
31168 rm -f conftest.err conftest.$ac_ext
31169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31170 echo "${ECHO_T}$ac_header_preproc" >&6
31171
31172 # So? What about this header?
31173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31174 yes:no: )
31175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31179 ac_header_preproc=yes
31180 ;;
31181 no:yes:* )
31182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31194 (
31195 cat <<\_ASBOX
31196 ## ----------------------------------------- ##
31197 ## Report this to the package-unused lists. ##
31198 ## ----------------------------------------- ##
31199 _ASBOX
31200 ) |
31201 sed "s/^/$as_me: WARNING: /" >&2
31202 ;;
31203 esac
31204 echo "$as_me:$LINENO: checking for $ac_header" >&5
31205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31207 echo $ECHO_N "(cached) $ECHO_C" >&6
31208 else
31209 eval "$as_ac_Header=\$ac_header_preproc"
31210 fi
31211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31213
31214 fi
31215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31216 cat >>confdefs.h <<_ACEOF
31217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31218 _ACEOF
31219
31220 fi
31221
31222 done
31223
31224
31225
31226 # All these tests are for C++; save the language and the compiler flags.
31227 # The CXXFLAGS thing is suspicious, but based on similar bits previously
31228 # found in GLIBCXX_CONFIGURE.
31229
31230
31231 ac_ext=cc
31232 ac_cpp='$CXXCPP $CPPFLAGS'
31233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31236
31237 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31238 ac_save_CXXFLAGS="$CXXFLAGS"
31239
31240 # Check for maintainer-mode bits.
31241 if test x"$USE_MAINTAINER_MODE" = xno; then
31242 WERROR=''
31243 else
31244 WERROR='-Werror'
31245 fi
31246
31247 # Check for -ffunction-sections -fdata-sections
31248 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
31249 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
31250 CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
31251 cat >conftest.$ac_ext <<_ACEOF
31252 /* confdefs.h. */
31253 _ACEOF
31254 cat confdefs.h >>conftest.$ac_ext
31255 cat >>conftest.$ac_ext <<_ACEOF
31256 /* end confdefs.h. */
31257
31258 int
31259 main ()
31260 {
31261 int foo;
31262 ;
31263 return 0;
31264 }
31265 _ACEOF
31266 rm -f conftest.$ac_objext
31267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31268 (eval $ac_compile) 2>conftest.er1
31269 ac_status=$?
31270 grep -v '^ *+' conftest.er1 >conftest.err
31271 rm -f conftest.er1
31272 cat conftest.err >&5
31273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31274 (exit $ac_status); } &&
31275 { ac_try='test -z "$ac_cxx_werror_flag"
31276 || test ! -s conftest.err'
31277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31278 (eval $ac_try) 2>&5
31279 ac_status=$?
31280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281 (exit $ac_status); }; } &&
31282 { ac_try='test -s conftest.$ac_objext'
31283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31284 (eval $ac_try) 2>&5
31285 ac_status=$?
31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287 (exit $ac_status); }; }; then
31288 ac_fdsections=yes
31289 else
31290 echo "$as_me: failed program was:" >&5
31291 sed 's/^/| /' conftest.$ac_ext >&5
31292
31293 ac_fdsections=no
31294 fi
31295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31296 if test "$ac_test_CXXFLAGS" = set; then
31297 CXXFLAGS="$ac_save_CXXFLAGS"
31298 else
31299 # this is the suspicious part
31300 CXXFLAGS=''
31301 fi
31302 if test x"$ac_fdsections" = x"yes"; then
31303 SECTION_FLAGS='-ffunction-sections -fdata-sections'
31304 fi
31305 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
31306 echo "${ECHO_T}$ac_fdsections" >&6
31307
31308 ac_ext=c
31309 ac_cpp='$CPP $CPPFLAGS'
31310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31313
31314
31315
31316
31317 # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
31318
31319 ac_test_CXXFLAGS="${CXXFLAGS+set}"
31320 ac_save_CXXFLAGS="$CXXFLAGS"
31321 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
31322
31323 echo "$as_me:$LINENO: checking for sin in -lm" >&5
31324 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
31325 if test "${ac_cv_lib_m_sin+set}" = set; then
31326 echo $ECHO_N "(cached) $ECHO_C" >&6
31327 else
31328 ac_check_lib_save_LIBS=$LIBS
31329 LIBS="-lm $LIBS"
31330 if test x$gcc_no_link = xyes; then
31331 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31332 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31333 { (exit 1); exit 1; }; }
31334 fi
31335 cat >conftest.$ac_ext <<_ACEOF
31336 /* confdefs.h. */
31337 _ACEOF
31338 cat confdefs.h >>conftest.$ac_ext
31339 cat >>conftest.$ac_ext <<_ACEOF
31340 /* end confdefs.h. */
31341
31342 /* Override any gcc2 internal prototype to avoid an error. */
31343 #ifdef __cplusplus
31344 extern "C"
31345 #endif
31346 /* We use char because int might match the return type of a gcc2
31347 builtin and then its argument prototype would still apply. */
31348 char sin ();
31349 int
31350 main ()
31351 {
31352 sin ();
31353 ;
31354 return 0;
31355 }
31356 _ACEOF
31357 rm -f conftest.$ac_objext conftest$ac_exeext
31358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31359 (eval $ac_link) 2>conftest.er1
31360 ac_status=$?
31361 grep -v '^ *+' conftest.er1 >conftest.err
31362 rm -f conftest.er1
31363 cat conftest.err >&5
31364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365 (exit $ac_status); } &&
31366 { ac_try='test -z "$ac_c_werror_flag"
31367 || test ! -s conftest.err'
31368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31369 (eval $ac_try) 2>&5
31370 ac_status=$?
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); }; } &&
31373 { ac_try='test -s conftest$ac_exeext'
31374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31375 (eval $ac_try) 2>&5
31376 ac_status=$?
31377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31378 (exit $ac_status); }; }; then
31379 ac_cv_lib_m_sin=yes
31380 else
31381 echo "$as_me: failed program was:" >&5
31382 sed 's/^/| /' conftest.$ac_ext >&5
31383
31384 ac_cv_lib_m_sin=no
31385 fi
31386 rm -f conftest.err conftest.$ac_objext \
31387 conftest$ac_exeext conftest.$ac_ext
31388 LIBS=$ac_check_lib_save_LIBS
31389 fi
31390 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
31391 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
31392 if test $ac_cv_lib_m_sin = yes; then
31393 libm="-lm"
31394 fi
31395
31396 ac_save_LIBS="$LIBS"
31397 LIBS="$LIBS $libm"
31398
31399
31400
31401 echo "$as_me:$LINENO: checking for isinf declaration" >&5
31402 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
31403 if test x${glibcxx_cv_func_isinf_use+set} != xset; then
31404 if test "${glibcxx_cv_func_isinf_use+set}" = set; then
31405 echo $ECHO_N "(cached) $ECHO_C" >&6
31406 else
31407
31408
31409
31410 ac_ext=cc
31411 ac_cpp='$CXXCPP $CPPFLAGS'
31412 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31413 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31414 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31415
31416 cat >conftest.$ac_ext <<_ACEOF
31417 /* confdefs.h. */
31418 _ACEOF
31419 cat confdefs.h >>conftest.$ac_ext
31420 cat >>conftest.$ac_ext <<_ACEOF
31421 /* end confdefs.h. */
31422 #include <math.h>
31423 #ifdef HAVE_IEEEFP_H
31424 #include <ieeefp.h>
31425 #endif
31426
31427 int
31428 main ()
31429 {
31430 isinf(0);
31431 ;
31432 return 0;
31433 }
31434 _ACEOF
31435 rm -f conftest.$ac_objext
31436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31437 (eval $ac_compile) 2>conftest.er1
31438 ac_status=$?
31439 grep -v '^ *+' conftest.er1 >conftest.err
31440 rm -f conftest.er1
31441 cat conftest.err >&5
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); } &&
31444 { ac_try='test -z "$ac_cxx_werror_flag"
31445 || test ! -s conftest.err'
31446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31447 (eval $ac_try) 2>&5
31448 ac_status=$?
31449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31450 (exit $ac_status); }; } &&
31451 { ac_try='test -s conftest.$ac_objext'
31452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31453 (eval $ac_try) 2>&5
31454 ac_status=$?
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); }; }; then
31457 glibcxx_cv_func_isinf_use=yes
31458 else
31459 echo "$as_me: failed program was:" >&5
31460 sed 's/^/| /' conftest.$ac_ext >&5
31461
31462 glibcxx_cv_func_isinf_use=no
31463 fi
31464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31465 ac_ext=c
31466 ac_cpp='$CPP $CPPFLAGS'
31467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31470
31471
31472 fi
31473
31474 fi
31475 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
31476 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
31477
31478 if test x$glibcxx_cv_func_isinf_use = x"yes"; then
31479
31480 for ac_func in isinf
31481 do
31482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31483 echo "$as_me:$LINENO: checking for $ac_func" >&5
31484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31485 if eval "test \"\${$as_ac_var+set}\" = set"; then
31486 echo $ECHO_N "(cached) $ECHO_C" >&6
31487 else
31488 if test x$gcc_no_link = xyes; then
31489 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31490 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31491 { (exit 1); exit 1; }; }
31492 fi
31493 cat >conftest.$ac_ext <<_ACEOF
31494 /* confdefs.h. */
31495 _ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h. */
31499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31501 #define $ac_func innocuous_$ac_func
31502
31503 /* System header to define __stub macros and hopefully few prototypes,
31504 which can conflict with char $ac_func (); below.
31505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31506 <limits.h> exists even on freestanding compilers. */
31507
31508 #ifdef __STDC__
31509 # include <limits.h>
31510 #else
31511 # include <assert.h>
31512 #endif
31513
31514 #undef $ac_func
31515
31516 /* Override any gcc2 internal prototype to avoid an error. */
31517 #ifdef __cplusplus
31518 extern "C"
31519 {
31520 #endif
31521 /* We use char because int might match the return type of a gcc2
31522 builtin and then its argument prototype would still apply. */
31523 char $ac_func ();
31524 /* The GNU C library defines this for functions which it implements
31525 to always fail with ENOSYS. Some functions are actually named
31526 something starting with __ and the normal name is an alias. */
31527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31528 choke me
31529 #else
31530 char (*f) () = $ac_func;
31531 #endif
31532 #ifdef __cplusplus
31533 }
31534 #endif
31535
31536 int
31537 main ()
31538 {
31539 return f != $ac_func;
31540 ;
31541 return 0;
31542 }
31543 _ACEOF
31544 rm -f conftest.$ac_objext conftest$ac_exeext
31545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31546 (eval $ac_link) 2>conftest.er1
31547 ac_status=$?
31548 grep -v '^ *+' conftest.er1 >conftest.err
31549 rm -f conftest.er1
31550 cat conftest.err >&5
31551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31552 (exit $ac_status); } &&
31553 { ac_try='test -z "$ac_c_werror_flag"
31554 || test ! -s conftest.err'
31555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31556 (eval $ac_try) 2>&5
31557 ac_status=$?
31558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559 (exit $ac_status); }; } &&
31560 { ac_try='test -s conftest$ac_exeext'
31561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31562 (eval $ac_try) 2>&5
31563 ac_status=$?
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); }; }; then
31566 eval "$as_ac_var=yes"
31567 else
31568 echo "$as_me: failed program was:" >&5
31569 sed 's/^/| /' conftest.$ac_ext >&5
31570
31571 eval "$as_ac_var=no"
31572 fi
31573 rm -f conftest.err conftest.$ac_objext \
31574 conftest$ac_exeext conftest.$ac_ext
31575 fi
31576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31578 if test `eval echo '${'$as_ac_var'}'` = yes; then
31579 cat >>confdefs.h <<_ACEOF
31580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31581 _ACEOF
31582
31583 fi
31584 done
31585
31586 else
31587
31588 echo "$as_me:$LINENO: checking for _isinf declaration" >&5
31589 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
31590 if test x${glibcxx_cv_func__isinf_use+set} != xset; then
31591 if test "${glibcxx_cv_func__isinf_use+set}" = set; then
31592 echo $ECHO_N "(cached) $ECHO_C" >&6
31593 else
31594
31595
31596
31597 ac_ext=cc
31598 ac_cpp='$CXXCPP $CPPFLAGS'
31599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31602
31603 cat >conftest.$ac_ext <<_ACEOF
31604 /* confdefs.h. */
31605 _ACEOF
31606 cat confdefs.h >>conftest.$ac_ext
31607 cat >>conftest.$ac_ext <<_ACEOF
31608 /* end confdefs.h. */
31609 #include <math.h>
31610 #ifdef HAVE_IEEEFP_H
31611 #include <ieeefp.h>
31612 #endif
31613
31614 int
31615 main ()
31616 {
31617 _isinf(0);
31618 ;
31619 return 0;
31620 }
31621 _ACEOF
31622 rm -f conftest.$ac_objext
31623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31624 (eval $ac_compile) 2>conftest.er1
31625 ac_status=$?
31626 grep -v '^ *+' conftest.er1 >conftest.err
31627 rm -f conftest.er1
31628 cat conftest.err >&5
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); } &&
31631 { ac_try='test -z "$ac_cxx_werror_flag"
31632 || test ! -s conftest.err'
31633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31634 (eval $ac_try) 2>&5
31635 ac_status=$?
31636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637 (exit $ac_status); }; } &&
31638 { ac_try='test -s conftest.$ac_objext'
31639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31640 (eval $ac_try) 2>&5
31641 ac_status=$?
31642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643 (exit $ac_status); }; }; then
31644 glibcxx_cv_func__isinf_use=yes
31645 else
31646 echo "$as_me: failed program was:" >&5
31647 sed 's/^/| /' conftest.$ac_ext >&5
31648
31649 glibcxx_cv_func__isinf_use=no
31650 fi
31651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31652 ac_ext=c
31653 ac_cpp='$CPP $CPPFLAGS'
31654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31657
31658
31659 fi
31660
31661 fi
31662 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
31663 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
31664
31665 if test x$glibcxx_cv_func__isinf_use = x"yes"; then
31666
31667 for ac_func in _isinf
31668 do
31669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31670 echo "$as_me:$LINENO: checking for $ac_func" >&5
31671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31672 if eval "test \"\${$as_ac_var+set}\" = set"; then
31673 echo $ECHO_N "(cached) $ECHO_C" >&6
31674 else
31675 if test x$gcc_no_link = xyes; then
31676 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31677 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31678 { (exit 1); exit 1; }; }
31679 fi
31680 cat >conftest.$ac_ext <<_ACEOF
31681 /* confdefs.h. */
31682 _ACEOF
31683 cat confdefs.h >>conftest.$ac_ext
31684 cat >>conftest.$ac_ext <<_ACEOF
31685 /* end confdefs.h. */
31686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31688 #define $ac_func innocuous_$ac_func
31689
31690 /* System header to define __stub macros and hopefully few prototypes,
31691 which can conflict with char $ac_func (); below.
31692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31693 <limits.h> exists even on freestanding compilers. */
31694
31695 #ifdef __STDC__
31696 # include <limits.h>
31697 #else
31698 # include <assert.h>
31699 #endif
31700
31701 #undef $ac_func
31702
31703 /* Override any gcc2 internal prototype to avoid an error. */
31704 #ifdef __cplusplus
31705 extern "C"
31706 {
31707 #endif
31708 /* We use char because int might match the return type of a gcc2
31709 builtin and then its argument prototype would still apply. */
31710 char $ac_func ();
31711 /* The GNU C library defines this for functions which it implements
31712 to always fail with ENOSYS. Some functions are actually named
31713 something starting with __ and the normal name is an alias. */
31714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31715 choke me
31716 #else
31717 char (*f) () = $ac_func;
31718 #endif
31719 #ifdef __cplusplus
31720 }
31721 #endif
31722
31723 int
31724 main ()
31725 {
31726 return f != $ac_func;
31727 ;
31728 return 0;
31729 }
31730 _ACEOF
31731 rm -f conftest.$ac_objext conftest$ac_exeext
31732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31733 (eval $ac_link) 2>conftest.er1
31734 ac_status=$?
31735 grep -v '^ *+' conftest.er1 >conftest.err
31736 rm -f conftest.er1
31737 cat conftest.err >&5
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); } &&
31740 { ac_try='test -z "$ac_c_werror_flag"
31741 || test ! -s conftest.err'
31742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31743 (eval $ac_try) 2>&5
31744 ac_status=$?
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); }; } &&
31747 { ac_try='test -s conftest$ac_exeext'
31748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31749 (eval $ac_try) 2>&5
31750 ac_status=$?
31751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752 (exit $ac_status); }; }; then
31753 eval "$as_ac_var=yes"
31754 else
31755 echo "$as_me: failed program was:" >&5
31756 sed 's/^/| /' conftest.$ac_ext >&5
31757
31758 eval "$as_ac_var=no"
31759 fi
31760 rm -f conftest.err conftest.$ac_objext \
31761 conftest$ac_exeext conftest.$ac_ext
31762 fi
31763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31765 if test `eval echo '${'$as_ac_var'}'` = yes; then
31766 cat >>confdefs.h <<_ACEOF
31767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31768 _ACEOF
31769
31770 fi
31771 done
31772
31773 fi
31774 fi
31775
31776
31777
31778 echo "$as_me:$LINENO: checking for isnan declaration" >&5
31779 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
31780 if test x${glibcxx_cv_func_isnan_use+set} != xset; then
31781 if test "${glibcxx_cv_func_isnan_use+set}" = set; then
31782 echo $ECHO_N "(cached) $ECHO_C" >&6
31783 else
31784
31785
31786
31787 ac_ext=cc
31788 ac_cpp='$CXXCPP $CPPFLAGS'
31789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31792
31793 cat >conftest.$ac_ext <<_ACEOF
31794 /* confdefs.h. */
31795 _ACEOF
31796 cat confdefs.h >>conftest.$ac_ext
31797 cat >>conftest.$ac_ext <<_ACEOF
31798 /* end confdefs.h. */
31799 #include <math.h>
31800 #ifdef HAVE_IEEEFP_H
31801 #include <ieeefp.h>
31802 #endif
31803
31804 int
31805 main ()
31806 {
31807 isnan(0);
31808 ;
31809 return 0;
31810 }
31811 _ACEOF
31812 rm -f conftest.$ac_objext
31813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31814 (eval $ac_compile) 2>conftest.er1
31815 ac_status=$?
31816 grep -v '^ *+' conftest.er1 >conftest.err
31817 rm -f conftest.er1
31818 cat conftest.err >&5
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); } &&
31821 { ac_try='test -z "$ac_cxx_werror_flag"
31822 || test ! -s conftest.err'
31823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31824 (eval $ac_try) 2>&5
31825 ac_status=$?
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); }; } &&
31828 { ac_try='test -s conftest.$ac_objext'
31829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31830 (eval $ac_try) 2>&5
31831 ac_status=$?
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; }; then
31834 glibcxx_cv_func_isnan_use=yes
31835 else
31836 echo "$as_me: failed program was:" >&5
31837 sed 's/^/| /' conftest.$ac_ext >&5
31838
31839 glibcxx_cv_func_isnan_use=no
31840 fi
31841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31842 ac_ext=c
31843 ac_cpp='$CPP $CPPFLAGS'
31844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31847
31848
31849 fi
31850
31851 fi
31852 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
31853 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
31854
31855 if test x$glibcxx_cv_func_isnan_use = x"yes"; then
31856
31857 for ac_func in isnan
31858 do
31859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31860 echo "$as_me:$LINENO: checking for $ac_func" >&5
31861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31862 if eval "test \"\${$as_ac_var+set}\" = set"; then
31863 echo $ECHO_N "(cached) $ECHO_C" >&6
31864 else
31865 if test x$gcc_no_link = xyes; then
31866 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31867 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31868 { (exit 1); exit 1; }; }
31869 fi
31870 cat >conftest.$ac_ext <<_ACEOF
31871 /* confdefs.h. */
31872 _ACEOF
31873 cat confdefs.h >>conftest.$ac_ext
31874 cat >>conftest.$ac_ext <<_ACEOF
31875 /* end confdefs.h. */
31876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31878 #define $ac_func innocuous_$ac_func
31879
31880 /* System header to define __stub macros and hopefully few prototypes,
31881 which can conflict with char $ac_func (); below.
31882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31883 <limits.h> exists even on freestanding compilers. */
31884
31885 #ifdef __STDC__
31886 # include <limits.h>
31887 #else
31888 # include <assert.h>
31889 #endif
31890
31891 #undef $ac_func
31892
31893 /* Override any gcc2 internal prototype to avoid an error. */
31894 #ifdef __cplusplus
31895 extern "C"
31896 {
31897 #endif
31898 /* We use char because int might match the return type of a gcc2
31899 builtin and then its argument prototype would still apply. */
31900 char $ac_func ();
31901 /* The GNU C library defines this for functions which it implements
31902 to always fail with ENOSYS. Some functions are actually named
31903 something starting with __ and the normal name is an alias. */
31904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31905 choke me
31906 #else
31907 char (*f) () = $ac_func;
31908 #endif
31909 #ifdef __cplusplus
31910 }
31911 #endif
31912
31913 int
31914 main ()
31915 {
31916 return f != $ac_func;
31917 ;
31918 return 0;
31919 }
31920 _ACEOF
31921 rm -f conftest.$ac_objext conftest$ac_exeext
31922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31923 (eval $ac_link) 2>conftest.er1
31924 ac_status=$?
31925 grep -v '^ *+' conftest.er1 >conftest.err
31926 rm -f conftest.er1
31927 cat conftest.err >&5
31928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929 (exit $ac_status); } &&
31930 { ac_try='test -z "$ac_c_werror_flag"
31931 || test ! -s conftest.err'
31932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31933 (eval $ac_try) 2>&5
31934 ac_status=$?
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); }; } &&
31937 { ac_try='test -s conftest$ac_exeext'
31938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31939 (eval $ac_try) 2>&5
31940 ac_status=$?
31941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31942 (exit $ac_status); }; }; then
31943 eval "$as_ac_var=yes"
31944 else
31945 echo "$as_me: failed program was:" >&5
31946 sed 's/^/| /' conftest.$ac_ext >&5
31947
31948 eval "$as_ac_var=no"
31949 fi
31950 rm -f conftest.err conftest.$ac_objext \
31951 conftest$ac_exeext conftest.$ac_ext
31952 fi
31953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31955 if test `eval echo '${'$as_ac_var'}'` = yes; then
31956 cat >>confdefs.h <<_ACEOF
31957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31958 _ACEOF
31959
31960 fi
31961 done
31962
31963 else
31964
31965 echo "$as_me:$LINENO: checking for _isnan declaration" >&5
31966 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
31967 if test x${glibcxx_cv_func__isnan_use+set} != xset; then
31968 if test "${glibcxx_cv_func__isnan_use+set}" = set; then
31969 echo $ECHO_N "(cached) $ECHO_C" >&6
31970 else
31971
31972
31973
31974 ac_ext=cc
31975 ac_cpp='$CXXCPP $CPPFLAGS'
31976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31979
31980 cat >conftest.$ac_ext <<_ACEOF
31981 /* confdefs.h. */
31982 _ACEOF
31983 cat confdefs.h >>conftest.$ac_ext
31984 cat >>conftest.$ac_ext <<_ACEOF
31985 /* end confdefs.h. */
31986 #include <math.h>
31987 #ifdef HAVE_IEEEFP_H
31988 #include <ieeefp.h>
31989 #endif
31990
31991 int
31992 main ()
31993 {
31994 _isnan(0);
31995 ;
31996 return 0;
31997 }
31998 _ACEOF
31999 rm -f conftest.$ac_objext
32000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32001 (eval $ac_compile) 2>conftest.er1
32002 ac_status=$?
32003 grep -v '^ *+' conftest.er1 >conftest.err
32004 rm -f conftest.er1
32005 cat conftest.err >&5
32006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007 (exit $ac_status); } &&
32008 { ac_try='test -z "$ac_cxx_werror_flag"
32009 || test ! -s conftest.err'
32010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32011 (eval $ac_try) 2>&5
32012 ac_status=$?
32013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014 (exit $ac_status); }; } &&
32015 { ac_try='test -s conftest.$ac_objext'
32016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32017 (eval $ac_try) 2>&5
32018 ac_status=$?
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); }; }; then
32021 glibcxx_cv_func__isnan_use=yes
32022 else
32023 echo "$as_me: failed program was:" >&5
32024 sed 's/^/| /' conftest.$ac_ext >&5
32025
32026 glibcxx_cv_func__isnan_use=no
32027 fi
32028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32029 ac_ext=c
32030 ac_cpp='$CPP $CPPFLAGS'
32031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32034
32035
32036 fi
32037
32038 fi
32039 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
32040 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
32041
32042 if test x$glibcxx_cv_func__isnan_use = x"yes"; then
32043
32044 for ac_func in _isnan
32045 do
32046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32047 echo "$as_me:$LINENO: checking for $ac_func" >&5
32048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32049 if eval "test \"\${$as_ac_var+set}\" = set"; then
32050 echo $ECHO_N "(cached) $ECHO_C" >&6
32051 else
32052 if test x$gcc_no_link = xyes; then
32053 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32055 { (exit 1); exit 1; }; }
32056 fi
32057 cat >conftest.$ac_ext <<_ACEOF
32058 /* confdefs.h. */
32059 _ACEOF
32060 cat confdefs.h >>conftest.$ac_ext
32061 cat >>conftest.$ac_ext <<_ACEOF
32062 /* end confdefs.h. */
32063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32065 #define $ac_func innocuous_$ac_func
32066
32067 /* System header to define __stub macros and hopefully few prototypes,
32068 which can conflict with char $ac_func (); below.
32069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32070 <limits.h> exists even on freestanding compilers. */
32071
32072 #ifdef __STDC__
32073 # include <limits.h>
32074 #else
32075 # include <assert.h>
32076 #endif
32077
32078 #undef $ac_func
32079
32080 /* Override any gcc2 internal prototype to avoid an error. */
32081 #ifdef __cplusplus
32082 extern "C"
32083 {
32084 #endif
32085 /* We use char because int might match the return type of a gcc2
32086 builtin and then its argument prototype would still apply. */
32087 char $ac_func ();
32088 /* The GNU C library defines this for functions which it implements
32089 to always fail with ENOSYS. Some functions are actually named
32090 something starting with __ and the normal name is an alias. */
32091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32092 choke me
32093 #else
32094 char (*f) () = $ac_func;
32095 #endif
32096 #ifdef __cplusplus
32097 }
32098 #endif
32099
32100 int
32101 main ()
32102 {
32103 return f != $ac_func;
32104 ;
32105 return 0;
32106 }
32107 _ACEOF
32108 rm -f conftest.$ac_objext conftest$ac_exeext
32109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32110 (eval $ac_link) 2>conftest.er1
32111 ac_status=$?
32112 grep -v '^ *+' conftest.er1 >conftest.err
32113 rm -f conftest.er1
32114 cat conftest.err >&5
32115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116 (exit $ac_status); } &&
32117 { ac_try='test -z "$ac_c_werror_flag"
32118 || test ! -s conftest.err'
32119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32120 (eval $ac_try) 2>&5
32121 ac_status=$?
32122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123 (exit $ac_status); }; } &&
32124 { ac_try='test -s conftest$ac_exeext'
32125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32126 (eval $ac_try) 2>&5
32127 ac_status=$?
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); }; }; then
32130 eval "$as_ac_var=yes"
32131 else
32132 echo "$as_me: failed program was:" >&5
32133 sed 's/^/| /' conftest.$ac_ext >&5
32134
32135 eval "$as_ac_var=no"
32136 fi
32137 rm -f conftest.err conftest.$ac_objext \
32138 conftest$ac_exeext conftest.$ac_ext
32139 fi
32140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32141 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32142 if test `eval echo '${'$as_ac_var'}'` = yes; then
32143 cat >>confdefs.h <<_ACEOF
32144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32145 _ACEOF
32146
32147 fi
32148 done
32149
32150 fi
32151 fi
32152
32153
32154
32155 echo "$as_me:$LINENO: checking for finite declaration" >&5
32156 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
32157 if test x${glibcxx_cv_func_finite_use+set} != xset; then
32158 if test "${glibcxx_cv_func_finite_use+set}" = set; then
32159 echo $ECHO_N "(cached) $ECHO_C" >&6
32160 else
32161
32162
32163
32164 ac_ext=cc
32165 ac_cpp='$CXXCPP $CPPFLAGS'
32166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32169
32170 cat >conftest.$ac_ext <<_ACEOF
32171 /* confdefs.h. */
32172 _ACEOF
32173 cat confdefs.h >>conftest.$ac_ext
32174 cat >>conftest.$ac_ext <<_ACEOF
32175 /* end confdefs.h. */
32176 #include <math.h>
32177 #ifdef HAVE_IEEEFP_H
32178 #include <ieeefp.h>
32179 #endif
32180
32181 int
32182 main ()
32183 {
32184 finite(0);
32185 ;
32186 return 0;
32187 }
32188 _ACEOF
32189 rm -f conftest.$ac_objext
32190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32191 (eval $ac_compile) 2>conftest.er1
32192 ac_status=$?
32193 grep -v '^ *+' conftest.er1 >conftest.err
32194 rm -f conftest.er1
32195 cat conftest.err >&5
32196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197 (exit $ac_status); } &&
32198 { ac_try='test -z "$ac_cxx_werror_flag"
32199 || test ! -s conftest.err'
32200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32201 (eval $ac_try) 2>&5
32202 ac_status=$?
32203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204 (exit $ac_status); }; } &&
32205 { ac_try='test -s conftest.$ac_objext'
32206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32207 (eval $ac_try) 2>&5
32208 ac_status=$?
32209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210 (exit $ac_status); }; }; then
32211 glibcxx_cv_func_finite_use=yes
32212 else
32213 echo "$as_me: failed program was:" >&5
32214 sed 's/^/| /' conftest.$ac_ext >&5
32215
32216 glibcxx_cv_func_finite_use=no
32217 fi
32218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32219 ac_ext=c
32220 ac_cpp='$CPP $CPPFLAGS'
32221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32224
32225
32226 fi
32227
32228 fi
32229 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
32230 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
32231
32232 if test x$glibcxx_cv_func_finite_use = x"yes"; then
32233
32234 for ac_func in finite
32235 do
32236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32237 echo "$as_me:$LINENO: checking for $ac_func" >&5
32238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32239 if eval "test \"\${$as_ac_var+set}\" = set"; then
32240 echo $ECHO_N "(cached) $ECHO_C" >&6
32241 else
32242 if test x$gcc_no_link = xyes; then
32243 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32244 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32245 { (exit 1); exit 1; }; }
32246 fi
32247 cat >conftest.$ac_ext <<_ACEOF
32248 /* confdefs.h. */
32249 _ACEOF
32250 cat confdefs.h >>conftest.$ac_ext
32251 cat >>conftest.$ac_ext <<_ACEOF
32252 /* end confdefs.h. */
32253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32255 #define $ac_func innocuous_$ac_func
32256
32257 /* System header to define __stub macros and hopefully few prototypes,
32258 which can conflict with char $ac_func (); below.
32259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32260 <limits.h> exists even on freestanding compilers. */
32261
32262 #ifdef __STDC__
32263 # include <limits.h>
32264 #else
32265 # include <assert.h>
32266 #endif
32267
32268 #undef $ac_func
32269
32270 /* Override any gcc2 internal prototype to avoid an error. */
32271 #ifdef __cplusplus
32272 extern "C"
32273 {
32274 #endif
32275 /* We use char because int might match the return type of a gcc2
32276 builtin and then its argument prototype would still apply. */
32277 char $ac_func ();
32278 /* The GNU C library defines this for functions which it implements
32279 to always fail with ENOSYS. Some functions are actually named
32280 something starting with __ and the normal name is an alias. */
32281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32282 choke me
32283 #else
32284 char (*f) () = $ac_func;
32285 #endif
32286 #ifdef __cplusplus
32287 }
32288 #endif
32289
32290 int
32291 main ()
32292 {
32293 return f != $ac_func;
32294 ;
32295 return 0;
32296 }
32297 _ACEOF
32298 rm -f conftest.$ac_objext conftest$ac_exeext
32299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32300 (eval $ac_link) 2>conftest.er1
32301 ac_status=$?
32302 grep -v '^ *+' conftest.er1 >conftest.err
32303 rm -f conftest.er1
32304 cat conftest.err >&5
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); } &&
32307 { ac_try='test -z "$ac_c_werror_flag"
32308 || test ! -s conftest.err'
32309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32310 (eval $ac_try) 2>&5
32311 ac_status=$?
32312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313 (exit $ac_status); }; } &&
32314 { ac_try='test -s conftest$ac_exeext'
32315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32316 (eval $ac_try) 2>&5
32317 ac_status=$?
32318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319 (exit $ac_status); }; }; then
32320 eval "$as_ac_var=yes"
32321 else
32322 echo "$as_me: failed program was:" >&5
32323 sed 's/^/| /' conftest.$ac_ext >&5
32324
32325 eval "$as_ac_var=no"
32326 fi
32327 rm -f conftest.err conftest.$ac_objext \
32328 conftest$ac_exeext conftest.$ac_ext
32329 fi
32330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32332 if test `eval echo '${'$as_ac_var'}'` = yes; then
32333 cat >>confdefs.h <<_ACEOF
32334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32335 _ACEOF
32336
32337 fi
32338 done
32339
32340 else
32341
32342 echo "$as_me:$LINENO: checking for _finite declaration" >&5
32343 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
32344 if test x${glibcxx_cv_func__finite_use+set} != xset; then
32345 if test "${glibcxx_cv_func__finite_use+set}" = set; then
32346 echo $ECHO_N "(cached) $ECHO_C" >&6
32347 else
32348
32349
32350
32351 ac_ext=cc
32352 ac_cpp='$CXXCPP $CPPFLAGS'
32353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32356
32357 cat >conftest.$ac_ext <<_ACEOF
32358 /* confdefs.h. */
32359 _ACEOF
32360 cat confdefs.h >>conftest.$ac_ext
32361 cat >>conftest.$ac_ext <<_ACEOF
32362 /* end confdefs.h. */
32363 #include <math.h>
32364 #ifdef HAVE_IEEEFP_H
32365 #include <ieeefp.h>
32366 #endif
32367
32368 int
32369 main ()
32370 {
32371 _finite(0);
32372 ;
32373 return 0;
32374 }
32375 _ACEOF
32376 rm -f conftest.$ac_objext
32377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32378 (eval $ac_compile) 2>conftest.er1
32379 ac_status=$?
32380 grep -v '^ *+' conftest.er1 >conftest.err
32381 rm -f conftest.er1
32382 cat conftest.err >&5
32383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384 (exit $ac_status); } &&
32385 { ac_try='test -z "$ac_cxx_werror_flag"
32386 || test ! -s conftest.err'
32387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32388 (eval $ac_try) 2>&5
32389 ac_status=$?
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); }; } &&
32392 { ac_try='test -s conftest.$ac_objext'
32393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32394 (eval $ac_try) 2>&5
32395 ac_status=$?
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); }; }; then
32398 glibcxx_cv_func__finite_use=yes
32399 else
32400 echo "$as_me: failed program was:" >&5
32401 sed 's/^/| /' conftest.$ac_ext >&5
32402
32403 glibcxx_cv_func__finite_use=no
32404 fi
32405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32406 ac_ext=c
32407 ac_cpp='$CPP $CPPFLAGS'
32408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32411
32412
32413 fi
32414
32415 fi
32416 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
32417 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
32418
32419 if test x$glibcxx_cv_func__finite_use = x"yes"; then
32420
32421 for ac_func in _finite
32422 do
32423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32424 echo "$as_me:$LINENO: checking for $ac_func" >&5
32425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32426 if eval "test \"\${$as_ac_var+set}\" = set"; then
32427 echo $ECHO_N "(cached) $ECHO_C" >&6
32428 else
32429 if test x$gcc_no_link = xyes; then
32430 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32431 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32432 { (exit 1); exit 1; }; }
32433 fi
32434 cat >conftest.$ac_ext <<_ACEOF
32435 /* confdefs.h. */
32436 _ACEOF
32437 cat confdefs.h >>conftest.$ac_ext
32438 cat >>conftest.$ac_ext <<_ACEOF
32439 /* end confdefs.h. */
32440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32442 #define $ac_func innocuous_$ac_func
32443
32444 /* System header to define __stub macros and hopefully few prototypes,
32445 which can conflict with char $ac_func (); below.
32446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32447 <limits.h> exists even on freestanding compilers. */
32448
32449 #ifdef __STDC__
32450 # include <limits.h>
32451 #else
32452 # include <assert.h>
32453 #endif
32454
32455 #undef $ac_func
32456
32457 /* Override any gcc2 internal prototype to avoid an error. */
32458 #ifdef __cplusplus
32459 extern "C"
32460 {
32461 #endif
32462 /* We use char because int might match the return type of a gcc2
32463 builtin and then its argument prototype would still apply. */
32464 char $ac_func ();
32465 /* The GNU C library defines this for functions which it implements
32466 to always fail with ENOSYS. Some functions are actually named
32467 something starting with __ and the normal name is an alias. */
32468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32469 choke me
32470 #else
32471 char (*f) () = $ac_func;
32472 #endif
32473 #ifdef __cplusplus
32474 }
32475 #endif
32476
32477 int
32478 main ()
32479 {
32480 return f != $ac_func;
32481 ;
32482 return 0;
32483 }
32484 _ACEOF
32485 rm -f conftest.$ac_objext conftest$ac_exeext
32486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32487 (eval $ac_link) 2>conftest.er1
32488 ac_status=$?
32489 grep -v '^ *+' conftest.er1 >conftest.err
32490 rm -f conftest.er1
32491 cat conftest.err >&5
32492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32493 (exit $ac_status); } &&
32494 { ac_try='test -z "$ac_c_werror_flag"
32495 || test ! -s conftest.err'
32496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32497 (eval $ac_try) 2>&5
32498 ac_status=$?
32499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32500 (exit $ac_status); }; } &&
32501 { ac_try='test -s conftest$ac_exeext'
32502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32503 (eval $ac_try) 2>&5
32504 ac_status=$?
32505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32506 (exit $ac_status); }; }; then
32507 eval "$as_ac_var=yes"
32508 else
32509 echo "$as_me: failed program was:" >&5
32510 sed 's/^/| /' conftest.$ac_ext >&5
32511
32512 eval "$as_ac_var=no"
32513 fi
32514 rm -f conftest.err conftest.$ac_objext \
32515 conftest$ac_exeext conftest.$ac_ext
32516 fi
32517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32519 if test `eval echo '${'$as_ac_var'}'` = yes; then
32520 cat >>confdefs.h <<_ACEOF
32521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32522 _ACEOF
32523
32524 fi
32525 done
32526
32527 fi
32528 fi
32529
32530
32531
32532 echo "$as_me:$LINENO: checking for copysign declaration" >&5
32533 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
32534 if test x${glibcxx_cv_func_copysign_use+set} != xset; then
32535 if test "${glibcxx_cv_func_copysign_use+set}" = set; then
32536 echo $ECHO_N "(cached) $ECHO_C" >&6
32537 else
32538
32539
32540
32541 ac_ext=cc
32542 ac_cpp='$CXXCPP $CPPFLAGS'
32543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32546
32547 cat >conftest.$ac_ext <<_ACEOF
32548 /* confdefs.h. */
32549 _ACEOF
32550 cat confdefs.h >>conftest.$ac_ext
32551 cat >>conftest.$ac_ext <<_ACEOF
32552 /* end confdefs.h. */
32553 #include <math.h>
32554 int
32555 main ()
32556 {
32557 copysign(0, 0);
32558 ;
32559 return 0;
32560 }
32561 _ACEOF
32562 rm -f conftest.$ac_objext
32563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32564 (eval $ac_compile) 2>conftest.er1
32565 ac_status=$?
32566 grep -v '^ *+' conftest.er1 >conftest.err
32567 rm -f conftest.er1
32568 cat conftest.err >&5
32569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570 (exit $ac_status); } &&
32571 { ac_try='test -z "$ac_cxx_werror_flag"
32572 || test ! -s conftest.err'
32573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32574 (eval $ac_try) 2>&5
32575 ac_status=$?
32576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577 (exit $ac_status); }; } &&
32578 { ac_try='test -s conftest.$ac_objext'
32579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32580 (eval $ac_try) 2>&5
32581 ac_status=$?
32582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583 (exit $ac_status); }; }; then
32584 glibcxx_cv_func_copysign_use=yes
32585 else
32586 echo "$as_me: failed program was:" >&5
32587 sed 's/^/| /' conftest.$ac_ext >&5
32588
32589 glibcxx_cv_func_copysign_use=no
32590 fi
32591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32592 ac_ext=c
32593 ac_cpp='$CPP $CPPFLAGS'
32594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32597
32598
32599 fi
32600
32601 fi
32602 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
32603 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
32604
32605 if test x$glibcxx_cv_func_copysign_use = x"yes"; then
32606
32607 for ac_func in copysign
32608 do
32609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32610 echo "$as_me:$LINENO: checking for $ac_func" >&5
32611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32612 if eval "test \"\${$as_ac_var+set}\" = set"; then
32613 echo $ECHO_N "(cached) $ECHO_C" >&6
32614 else
32615 if test x$gcc_no_link = xyes; then
32616 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32617 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32618 { (exit 1); exit 1; }; }
32619 fi
32620 cat >conftest.$ac_ext <<_ACEOF
32621 /* confdefs.h. */
32622 _ACEOF
32623 cat confdefs.h >>conftest.$ac_ext
32624 cat >>conftest.$ac_ext <<_ACEOF
32625 /* end confdefs.h. */
32626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32628 #define $ac_func innocuous_$ac_func
32629
32630 /* System header to define __stub macros and hopefully few prototypes,
32631 which can conflict with char $ac_func (); below.
32632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32633 <limits.h> exists even on freestanding compilers. */
32634
32635 #ifdef __STDC__
32636 # include <limits.h>
32637 #else
32638 # include <assert.h>
32639 #endif
32640
32641 #undef $ac_func
32642
32643 /* Override any gcc2 internal prototype to avoid an error. */
32644 #ifdef __cplusplus
32645 extern "C"
32646 {
32647 #endif
32648 /* We use char because int might match the return type of a gcc2
32649 builtin and then its argument prototype would still apply. */
32650 char $ac_func ();
32651 /* The GNU C library defines this for functions which it implements
32652 to always fail with ENOSYS. Some functions are actually named
32653 something starting with __ and the normal name is an alias. */
32654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32655 choke me
32656 #else
32657 char (*f) () = $ac_func;
32658 #endif
32659 #ifdef __cplusplus
32660 }
32661 #endif
32662
32663 int
32664 main ()
32665 {
32666 return f != $ac_func;
32667 ;
32668 return 0;
32669 }
32670 _ACEOF
32671 rm -f conftest.$ac_objext conftest$ac_exeext
32672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32673 (eval $ac_link) 2>conftest.er1
32674 ac_status=$?
32675 grep -v '^ *+' conftest.er1 >conftest.err
32676 rm -f conftest.er1
32677 cat conftest.err >&5
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); } &&
32680 { ac_try='test -z "$ac_c_werror_flag"
32681 || test ! -s conftest.err'
32682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32683 (eval $ac_try) 2>&5
32684 ac_status=$?
32685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686 (exit $ac_status); }; } &&
32687 { ac_try='test -s conftest$ac_exeext'
32688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32689 (eval $ac_try) 2>&5
32690 ac_status=$?
32691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692 (exit $ac_status); }; }; then
32693 eval "$as_ac_var=yes"
32694 else
32695 echo "$as_me: failed program was:" >&5
32696 sed 's/^/| /' conftest.$ac_ext >&5
32697
32698 eval "$as_ac_var=no"
32699 fi
32700 rm -f conftest.err conftest.$ac_objext \
32701 conftest$ac_exeext conftest.$ac_ext
32702 fi
32703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32705 if test `eval echo '${'$as_ac_var'}'` = yes; then
32706 cat >>confdefs.h <<_ACEOF
32707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32708 _ACEOF
32709
32710 fi
32711 done
32712
32713 else
32714
32715 echo "$as_me:$LINENO: checking for _copysign declaration" >&5
32716 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
32717 if test x${glibcxx_cv_func__copysign_use+set} != xset; then
32718 if test "${glibcxx_cv_func__copysign_use+set}" = set; then
32719 echo $ECHO_N "(cached) $ECHO_C" >&6
32720 else
32721
32722
32723
32724 ac_ext=cc
32725 ac_cpp='$CXXCPP $CPPFLAGS'
32726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32729
32730 cat >conftest.$ac_ext <<_ACEOF
32731 /* confdefs.h. */
32732 _ACEOF
32733 cat confdefs.h >>conftest.$ac_ext
32734 cat >>conftest.$ac_ext <<_ACEOF
32735 /* end confdefs.h. */
32736 #include <math.h>
32737 int
32738 main ()
32739 {
32740 _copysign(0, 0);
32741 ;
32742 return 0;
32743 }
32744 _ACEOF
32745 rm -f conftest.$ac_objext
32746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32747 (eval $ac_compile) 2>conftest.er1
32748 ac_status=$?
32749 grep -v '^ *+' conftest.er1 >conftest.err
32750 rm -f conftest.er1
32751 cat conftest.err >&5
32752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753 (exit $ac_status); } &&
32754 { ac_try='test -z "$ac_cxx_werror_flag"
32755 || test ! -s conftest.err'
32756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32757 (eval $ac_try) 2>&5
32758 ac_status=$?
32759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760 (exit $ac_status); }; } &&
32761 { ac_try='test -s conftest.$ac_objext'
32762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32763 (eval $ac_try) 2>&5
32764 ac_status=$?
32765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766 (exit $ac_status); }; }; then
32767 glibcxx_cv_func__copysign_use=yes
32768 else
32769 echo "$as_me: failed program was:" >&5
32770 sed 's/^/| /' conftest.$ac_ext >&5
32771
32772 glibcxx_cv_func__copysign_use=no
32773 fi
32774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32775 ac_ext=c
32776 ac_cpp='$CPP $CPPFLAGS'
32777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32780
32781
32782 fi
32783
32784 fi
32785 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
32786 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
32787
32788 if test x$glibcxx_cv_func__copysign_use = x"yes"; then
32789
32790 for ac_func in _copysign
32791 do
32792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32793 echo "$as_me:$LINENO: checking for $ac_func" >&5
32794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32795 if eval "test \"\${$as_ac_var+set}\" = set"; then
32796 echo $ECHO_N "(cached) $ECHO_C" >&6
32797 else
32798 if test x$gcc_no_link = xyes; then
32799 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32800 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32801 { (exit 1); exit 1; }; }
32802 fi
32803 cat >conftest.$ac_ext <<_ACEOF
32804 /* confdefs.h. */
32805 _ACEOF
32806 cat confdefs.h >>conftest.$ac_ext
32807 cat >>conftest.$ac_ext <<_ACEOF
32808 /* end confdefs.h. */
32809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32811 #define $ac_func innocuous_$ac_func
32812
32813 /* System header to define __stub macros and hopefully few prototypes,
32814 which can conflict with char $ac_func (); below.
32815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32816 <limits.h> exists even on freestanding compilers. */
32817
32818 #ifdef __STDC__
32819 # include <limits.h>
32820 #else
32821 # include <assert.h>
32822 #endif
32823
32824 #undef $ac_func
32825
32826 /* Override any gcc2 internal prototype to avoid an error. */
32827 #ifdef __cplusplus
32828 extern "C"
32829 {
32830 #endif
32831 /* We use char because int might match the return type of a gcc2
32832 builtin and then its argument prototype would still apply. */
32833 char $ac_func ();
32834 /* The GNU C library defines this for functions which it implements
32835 to always fail with ENOSYS. Some functions are actually named
32836 something starting with __ and the normal name is an alias. */
32837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32838 choke me
32839 #else
32840 char (*f) () = $ac_func;
32841 #endif
32842 #ifdef __cplusplus
32843 }
32844 #endif
32845
32846 int
32847 main ()
32848 {
32849 return f != $ac_func;
32850 ;
32851 return 0;
32852 }
32853 _ACEOF
32854 rm -f conftest.$ac_objext conftest$ac_exeext
32855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32856 (eval $ac_link) 2>conftest.er1
32857 ac_status=$?
32858 grep -v '^ *+' conftest.er1 >conftest.err
32859 rm -f conftest.er1
32860 cat conftest.err >&5
32861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862 (exit $ac_status); } &&
32863 { ac_try='test -z "$ac_c_werror_flag"
32864 || test ! -s conftest.err'
32865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32866 (eval $ac_try) 2>&5
32867 ac_status=$?
32868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869 (exit $ac_status); }; } &&
32870 { ac_try='test -s conftest$ac_exeext'
32871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32872 (eval $ac_try) 2>&5
32873 ac_status=$?
32874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875 (exit $ac_status); }; }; then
32876 eval "$as_ac_var=yes"
32877 else
32878 echo "$as_me: failed program was:" >&5
32879 sed 's/^/| /' conftest.$ac_ext >&5
32880
32881 eval "$as_ac_var=no"
32882 fi
32883 rm -f conftest.err conftest.$ac_objext \
32884 conftest$ac_exeext conftest.$ac_ext
32885 fi
32886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32888 if test `eval echo '${'$as_ac_var'}'` = yes; then
32889 cat >>confdefs.h <<_ACEOF
32890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32891 _ACEOF
32892
32893 fi
32894 done
32895
32896 fi
32897 fi
32898
32899
32900
32901 echo "$as_me:$LINENO: checking for sincos declaration" >&5
32902 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
32903 if test x${glibcxx_cv_func_sincos_use+set} != xset; then
32904 if test "${glibcxx_cv_func_sincos_use+set}" = set; then
32905 echo $ECHO_N "(cached) $ECHO_C" >&6
32906 else
32907
32908
32909
32910 ac_ext=cc
32911 ac_cpp='$CXXCPP $CPPFLAGS'
32912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32915
32916 cat >conftest.$ac_ext <<_ACEOF
32917 /* confdefs.h. */
32918 _ACEOF
32919 cat confdefs.h >>conftest.$ac_ext
32920 cat >>conftest.$ac_ext <<_ACEOF
32921 /* end confdefs.h. */
32922 #include <math.h>
32923 int
32924 main ()
32925 {
32926 sincos(0, 0, 0);
32927 ;
32928 return 0;
32929 }
32930 _ACEOF
32931 rm -f conftest.$ac_objext
32932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32933 (eval $ac_compile) 2>conftest.er1
32934 ac_status=$?
32935 grep -v '^ *+' conftest.er1 >conftest.err
32936 rm -f conftest.er1
32937 cat conftest.err >&5
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); } &&
32940 { ac_try='test -z "$ac_cxx_werror_flag"
32941 || test ! -s conftest.err'
32942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32943 (eval $ac_try) 2>&5
32944 ac_status=$?
32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32946 (exit $ac_status); }; } &&
32947 { ac_try='test -s conftest.$ac_objext'
32948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32949 (eval $ac_try) 2>&5
32950 ac_status=$?
32951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32952 (exit $ac_status); }; }; then
32953 glibcxx_cv_func_sincos_use=yes
32954 else
32955 echo "$as_me: failed program was:" >&5
32956 sed 's/^/| /' conftest.$ac_ext >&5
32957
32958 glibcxx_cv_func_sincos_use=no
32959 fi
32960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32961 ac_ext=c
32962 ac_cpp='$CPP $CPPFLAGS'
32963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32966
32967
32968 fi
32969
32970 fi
32971 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
32972 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
32973
32974 if test x$glibcxx_cv_func_sincos_use = x"yes"; then
32975
32976 for ac_func in sincos
32977 do
32978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32979 echo "$as_me:$LINENO: checking for $ac_func" >&5
32980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32981 if eval "test \"\${$as_ac_var+set}\" = set"; then
32982 echo $ECHO_N "(cached) $ECHO_C" >&6
32983 else
32984 if test x$gcc_no_link = xyes; then
32985 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32986 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32987 { (exit 1); exit 1; }; }
32988 fi
32989 cat >conftest.$ac_ext <<_ACEOF
32990 /* confdefs.h. */
32991 _ACEOF
32992 cat confdefs.h >>conftest.$ac_ext
32993 cat >>conftest.$ac_ext <<_ACEOF
32994 /* end confdefs.h. */
32995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32997 #define $ac_func innocuous_$ac_func
32998
32999 /* System header to define __stub macros and hopefully few prototypes,
33000 which can conflict with char $ac_func (); below.
33001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33002 <limits.h> exists even on freestanding compilers. */
33003
33004 #ifdef __STDC__
33005 # include <limits.h>
33006 #else
33007 # include <assert.h>
33008 #endif
33009
33010 #undef $ac_func
33011
33012 /* Override any gcc2 internal prototype to avoid an error. */
33013 #ifdef __cplusplus
33014 extern "C"
33015 {
33016 #endif
33017 /* We use char because int might match the return type of a gcc2
33018 builtin and then its argument prototype would still apply. */
33019 char $ac_func ();
33020 /* The GNU C library defines this for functions which it implements
33021 to always fail with ENOSYS. Some functions are actually named
33022 something starting with __ and the normal name is an alias. */
33023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33024 choke me
33025 #else
33026 char (*f) () = $ac_func;
33027 #endif
33028 #ifdef __cplusplus
33029 }
33030 #endif
33031
33032 int
33033 main ()
33034 {
33035 return f != $ac_func;
33036 ;
33037 return 0;
33038 }
33039 _ACEOF
33040 rm -f conftest.$ac_objext conftest$ac_exeext
33041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33042 (eval $ac_link) 2>conftest.er1
33043 ac_status=$?
33044 grep -v '^ *+' conftest.er1 >conftest.err
33045 rm -f conftest.er1
33046 cat conftest.err >&5
33047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33048 (exit $ac_status); } &&
33049 { ac_try='test -z "$ac_c_werror_flag"
33050 || test ! -s conftest.err'
33051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33052 (eval $ac_try) 2>&5
33053 ac_status=$?
33054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055 (exit $ac_status); }; } &&
33056 { ac_try='test -s conftest$ac_exeext'
33057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33058 (eval $ac_try) 2>&5
33059 ac_status=$?
33060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33061 (exit $ac_status); }; }; then
33062 eval "$as_ac_var=yes"
33063 else
33064 echo "$as_me: failed program was:" >&5
33065 sed 's/^/| /' conftest.$ac_ext >&5
33066
33067 eval "$as_ac_var=no"
33068 fi
33069 rm -f conftest.err conftest.$ac_objext \
33070 conftest$ac_exeext conftest.$ac_ext
33071 fi
33072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33074 if test `eval echo '${'$as_ac_var'}'` = yes; then
33075 cat >>confdefs.h <<_ACEOF
33076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33077 _ACEOF
33078
33079 fi
33080 done
33081
33082 else
33083
33084 echo "$as_me:$LINENO: checking for _sincos declaration" >&5
33085 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
33086 if test x${glibcxx_cv_func__sincos_use+set} != xset; then
33087 if test "${glibcxx_cv_func__sincos_use+set}" = set; then
33088 echo $ECHO_N "(cached) $ECHO_C" >&6
33089 else
33090
33091
33092
33093 ac_ext=cc
33094 ac_cpp='$CXXCPP $CPPFLAGS'
33095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33098
33099 cat >conftest.$ac_ext <<_ACEOF
33100 /* confdefs.h. */
33101 _ACEOF
33102 cat confdefs.h >>conftest.$ac_ext
33103 cat >>conftest.$ac_ext <<_ACEOF
33104 /* end confdefs.h. */
33105 #include <math.h>
33106 int
33107 main ()
33108 {
33109 _sincos(0, 0, 0);
33110 ;
33111 return 0;
33112 }
33113 _ACEOF
33114 rm -f conftest.$ac_objext
33115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33116 (eval $ac_compile) 2>conftest.er1
33117 ac_status=$?
33118 grep -v '^ *+' conftest.er1 >conftest.err
33119 rm -f conftest.er1
33120 cat conftest.err >&5
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); } &&
33123 { ac_try='test -z "$ac_cxx_werror_flag"
33124 || test ! -s conftest.err'
33125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33126 (eval $ac_try) 2>&5
33127 ac_status=$?
33128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129 (exit $ac_status); }; } &&
33130 { ac_try='test -s conftest.$ac_objext'
33131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33132 (eval $ac_try) 2>&5
33133 ac_status=$?
33134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33135 (exit $ac_status); }; }; then
33136 glibcxx_cv_func__sincos_use=yes
33137 else
33138 echo "$as_me: failed program was:" >&5
33139 sed 's/^/| /' conftest.$ac_ext >&5
33140
33141 glibcxx_cv_func__sincos_use=no
33142 fi
33143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33144 ac_ext=c
33145 ac_cpp='$CPP $CPPFLAGS'
33146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33149
33150
33151 fi
33152
33153 fi
33154 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
33155 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
33156
33157 if test x$glibcxx_cv_func__sincos_use = x"yes"; then
33158
33159 for ac_func in _sincos
33160 do
33161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33162 echo "$as_me:$LINENO: checking for $ac_func" >&5
33163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33164 if eval "test \"\${$as_ac_var+set}\" = set"; then
33165 echo $ECHO_N "(cached) $ECHO_C" >&6
33166 else
33167 if test x$gcc_no_link = xyes; then
33168 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33170 { (exit 1); exit 1; }; }
33171 fi
33172 cat >conftest.$ac_ext <<_ACEOF
33173 /* confdefs.h. */
33174 _ACEOF
33175 cat confdefs.h >>conftest.$ac_ext
33176 cat >>conftest.$ac_ext <<_ACEOF
33177 /* end confdefs.h. */
33178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33180 #define $ac_func innocuous_$ac_func
33181
33182 /* System header to define __stub macros and hopefully few prototypes,
33183 which can conflict with char $ac_func (); below.
33184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33185 <limits.h> exists even on freestanding compilers. */
33186
33187 #ifdef __STDC__
33188 # include <limits.h>
33189 #else
33190 # include <assert.h>
33191 #endif
33192
33193 #undef $ac_func
33194
33195 /* Override any gcc2 internal prototype to avoid an error. */
33196 #ifdef __cplusplus
33197 extern "C"
33198 {
33199 #endif
33200 /* We use char because int might match the return type of a gcc2
33201 builtin and then its argument prototype would still apply. */
33202 char $ac_func ();
33203 /* The GNU C library defines this for functions which it implements
33204 to always fail with ENOSYS. Some functions are actually named
33205 something starting with __ and the normal name is an alias. */
33206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33207 choke me
33208 #else
33209 char (*f) () = $ac_func;
33210 #endif
33211 #ifdef __cplusplus
33212 }
33213 #endif
33214
33215 int
33216 main ()
33217 {
33218 return f != $ac_func;
33219 ;
33220 return 0;
33221 }
33222 _ACEOF
33223 rm -f conftest.$ac_objext conftest$ac_exeext
33224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33225 (eval $ac_link) 2>conftest.er1
33226 ac_status=$?
33227 grep -v '^ *+' conftest.er1 >conftest.err
33228 rm -f conftest.er1
33229 cat conftest.err >&5
33230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231 (exit $ac_status); } &&
33232 { ac_try='test -z "$ac_c_werror_flag"
33233 || test ! -s conftest.err'
33234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33235 (eval $ac_try) 2>&5
33236 ac_status=$?
33237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238 (exit $ac_status); }; } &&
33239 { ac_try='test -s conftest$ac_exeext'
33240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33241 (eval $ac_try) 2>&5
33242 ac_status=$?
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); }; }; then
33245 eval "$as_ac_var=yes"
33246 else
33247 echo "$as_me: failed program was:" >&5
33248 sed 's/^/| /' conftest.$ac_ext >&5
33249
33250 eval "$as_ac_var=no"
33251 fi
33252 rm -f conftest.err conftest.$ac_objext \
33253 conftest$ac_exeext conftest.$ac_ext
33254 fi
33255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33257 if test `eval echo '${'$as_ac_var'}'` = yes; then
33258 cat >>confdefs.h <<_ACEOF
33259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33260 _ACEOF
33261
33262 fi
33263 done
33264
33265 fi
33266 fi
33267
33268
33269
33270 echo "$as_me:$LINENO: checking for fpclass declaration" >&5
33271 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
33272 if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
33273 if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
33274 echo $ECHO_N "(cached) $ECHO_C" >&6
33275 else
33276
33277
33278
33279 ac_ext=cc
33280 ac_cpp='$CXXCPP $CPPFLAGS'
33281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33284
33285 cat >conftest.$ac_ext <<_ACEOF
33286 /* confdefs.h. */
33287 _ACEOF
33288 cat confdefs.h >>conftest.$ac_ext
33289 cat >>conftest.$ac_ext <<_ACEOF
33290 /* end confdefs.h. */
33291 #include <math.h>
33292 #ifdef HAVE_IEEEFP_H
33293 #include <ieeefp.h>
33294 #endif
33295
33296 int
33297 main ()
33298 {
33299 fpclass(0);
33300 ;
33301 return 0;
33302 }
33303 _ACEOF
33304 rm -f conftest.$ac_objext
33305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33306 (eval $ac_compile) 2>conftest.er1
33307 ac_status=$?
33308 grep -v '^ *+' conftest.er1 >conftest.err
33309 rm -f conftest.er1
33310 cat conftest.err >&5
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); } &&
33313 { ac_try='test -z "$ac_cxx_werror_flag"
33314 || test ! -s conftest.err'
33315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33316 (eval $ac_try) 2>&5
33317 ac_status=$?
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); }; } &&
33320 { ac_try='test -s conftest.$ac_objext'
33321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33322 (eval $ac_try) 2>&5
33323 ac_status=$?
33324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325 (exit $ac_status); }; }; then
33326 glibcxx_cv_func_fpclass_use=yes
33327 else
33328 echo "$as_me: failed program was:" >&5
33329 sed 's/^/| /' conftest.$ac_ext >&5
33330
33331 glibcxx_cv_func_fpclass_use=no
33332 fi
33333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33334 ac_ext=c
33335 ac_cpp='$CPP $CPPFLAGS'
33336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33339
33340
33341 fi
33342
33343 fi
33344 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
33345 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
33346
33347 if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
33348
33349 for ac_func in fpclass
33350 do
33351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33352 echo "$as_me:$LINENO: checking for $ac_func" >&5
33353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33354 if eval "test \"\${$as_ac_var+set}\" = set"; then
33355 echo $ECHO_N "(cached) $ECHO_C" >&6
33356 else
33357 if test x$gcc_no_link = xyes; then
33358 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33359 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33360 { (exit 1); exit 1; }; }
33361 fi
33362 cat >conftest.$ac_ext <<_ACEOF
33363 /* confdefs.h. */
33364 _ACEOF
33365 cat confdefs.h >>conftest.$ac_ext
33366 cat >>conftest.$ac_ext <<_ACEOF
33367 /* end confdefs.h. */
33368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33370 #define $ac_func innocuous_$ac_func
33371
33372 /* System header to define __stub macros and hopefully few prototypes,
33373 which can conflict with char $ac_func (); below.
33374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33375 <limits.h> exists even on freestanding compilers. */
33376
33377 #ifdef __STDC__
33378 # include <limits.h>
33379 #else
33380 # include <assert.h>
33381 #endif
33382
33383 #undef $ac_func
33384
33385 /* Override any gcc2 internal prototype to avoid an error. */
33386 #ifdef __cplusplus
33387 extern "C"
33388 {
33389 #endif
33390 /* We use char because int might match the return type of a gcc2
33391 builtin and then its argument prototype would still apply. */
33392 char $ac_func ();
33393 /* The GNU C library defines this for functions which it implements
33394 to always fail with ENOSYS. Some functions are actually named
33395 something starting with __ and the normal name is an alias. */
33396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33397 choke me
33398 #else
33399 char (*f) () = $ac_func;
33400 #endif
33401 #ifdef __cplusplus
33402 }
33403 #endif
33404
33405 int
33406 main ()
33407 {
33408 return f != $ac_func;
33409 ;
33410 return 0;
33411 }
33412 _ACEOF
33413 rm -f conftest.$ac_objext conftest$ac_exeext
33414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33415 (eval $ac_link) 2>conftest.er1
33416 ac_status=$?
33417 grep -v '^ *+' conftest.er1 >conftest.err
33418 rm -f conftest.er1
33419 cat conftest.err >&5
33420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421 (exit $ac_status); } &&
33422 { ac_try='test -z "$ac_c_werror_flag"
33423 || test ! -s conftest.err'
33424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33425 (eval $ac_try) 2>&5
33426 ac_status=$?
33427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428 (exit $ac_status); }; } &&
33429 { ac_try='test -s conftest$ac_exeext'
33430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33431 (eval $ac_try) 2>&5
33432 ac_status=$?
33433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434 (exit $ac_status); }; }; then
33435 eval "$as_ac_var=yes"
33436 else
33437 echo "$as_me: failed program was:" >&5
33438 sed 's/^/| /' conftest.$ac_ext >&5
33439
33440 eval "$as_ac_var=no"
33441 fi
33442 rm -f conftest.err conftest.$ac_objext \
33443 conftest$ac_exeext conftest.$ac_ext
33444 fi
33445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33447 if test `eval echo '${'$as_ac_var'}'` = yes; then
33448 cat >>confdefs.h <<_ACEOF
33449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33450 _ACEOF
33451
33452 fi
33453 done
33454
33455 else
33456
33457 echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
33458 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
33459 if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
33460 if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
33461 echo $ECHO_N "(cached) $ECHO_C" >&6
33462 else
33463
33464
33465
33466 ac_ext=cc
33467 ac_cpp='$CXXCPP $CPPFLAGS'
33468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33471
33472 cat >conftest.$ac_ext <<_ACEOF
33473 /* confdefs.h. */
33474 _ACEOF
33475 cat confdefs.h >>conftest.$ac_ext
33476 cat >>conftest.$ac_ext <<_ACEOF
33477 /* end confdefs.h. */
33478 #include <math.h>
33479 #ifdef HAVE_IEEEFP_H
33480 #include <ieeefp.h>
33481 #endif
33482
33483 int
33484 main ()
33485 {
33486 _fpclass(0);
33487 ;
33488 return 0;
33489 }
33490 _ACEOF
33491 rm -f conftest.$ac_objext
33492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33493 (eval $ac_compile) 2>conftest.er1
33494 ac_status=$?
33495 grep -v '^ *+' conftest.er1 >conftest.err
33496 rm -f conftest.er1
33497 cat conftest.err >&5
33498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33499 (exit $ac_status); } &&
33500 { ac_try='test -z "$ac_cxx_werror_flag"
33501 || test ! -s conftest.err'
33502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33503 (eval $ac_try) 2>&5
33504 ac_status=$?
33505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33506 (exit $ac_status); }; } &&
33507 { ac_try='test -s conftest.$ac_objext'
33508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33509 (eval $ac_try) 2>&5
33510 ac_status=$?
33511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512 (exit $ac_status); }; }; then
33513 glibcxx_cv_func__fpclass_use=yes
33514 else
33515 echo "$as_me: failed program was:" >&5
33516 sed 's/^/| /' conftest.$ac_ext >&5
33517
33518 glibcxx_cv_func__fpclass_use=no
33519 fi
33520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33521 ac_ext=c
33522 ac_cpp='$CPP $CPPFLAGS'
33523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33526
33527
33528 fi
33529
33530 fi
33531 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
33532 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
33533
33534 if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
33535
33536 for ac_func in _fpclass
33537 do
33538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33539 echo "$as_me:$LINENO: checking for $ac_func" >&5
33540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33541 if eval "test \"\${$as_ac_var+set}\" = set"; then
33542 echo $ECHO_N "(cached) $ECHO_C" >&6
33543 else
33544 if test x$gcc_no_link = xyes; then
33545 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33546 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33547 { (exit 1); exit 1; }; }
33548 fi
33549 cat >conftest.$ac_ext <<_ACEOF
33550 /* confdefs.h. */
33551 _ACEOF
33552 cat confdefs.h >>conftest.$ac_ext
33553 cat >>conftest.$ac_ext <<_ACEOF
33554 /* end confdefs.h. */
33555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33557 #define $ac_func innocuous_$ac_func
33558
33559 /* System header to define __stub macros and hopefully few prototypes,
33560 which can conflict with char $ac_func (); below.
33561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33562 <limits.h> exists even on freestanding compilers. */
33563
33564 #ifdef __STDC__
33565 # include <limits.h>
33566 #else
33567 # include <assert.h>
33568 #endif
33569
33570 #undef $ac_func
33571
33572 /* Override any gcc2 internal prototype to avoid an error. */
33573 #ifdef __cplusplus
33574 extern "C"
33575 {
33576 #endif
33577 /* We use char because int might match the return type of a gcc2
33578 builtin and then its argument prototype would still apply. */
33579 char $ac_func ();
33580 /* The GNU C library defines this for functions which it implements
33581 to always fail with ENOSYS. Some functions are actually named
33582 something starting with __ and the normal name is an alias. */
33583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33584 choke me
33585 #else
33586 char (*f) () = $ac_func;
33587 #endif
33588 #ifdef __cplusplus
33589 }
33590 #endif
33591
33592 int
33593 main ()
33594 {
33595 return f != $ac_func;
33596 ;
33597 return 0;
33598 }
33599 _ACEOF
33600 rm -f conftest.$ac_objext conftest$ac_exeext
33601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33602 (eval $ac_link) 2>conftest.er1
33603 ac_status=$?
33604 grep -v '^ *+' conftest.er1 >conftest.err
33605 rm -f conftest.er1
33606 cat conftest.err >&5
33607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608 (exit $ac_status); } &&
33609 { ac_try='test -z "$ac_c_werror_flag"
33610 || test ! -s conftest.err'
33611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33612 (eval $ac_try) 2>&5
33613 ac_status=$?
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); }; } &&
33616 { ac_try='test -s conftest$ac_exeext'
33617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33618 (eval $ac_try) 2>&5
33619 ac_status=$?
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; }; then
33622 eval "$as_ac_var=yes"
33623 else
33624 echo "$as_me: failed program was:" >&5
33625 sed 's/^/| /' conftest.$ac_ext >&5
33626
33627 eval "$as_ac_var=no"
33628 fi
33629 rm -f conftest.err conftest.$ac_objext \
33630 conftest$ac_exeext conftest.$ac_ext
33631 fi
33632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33634 if test `eval echo '${'$as_ac_var'}'` = yes; then
33635 cat >>confdefs.h <<_ACEOF
33636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33637 _ACEOF
33638
33639 fi
33640 done
33641
33642 fi
33643 fi
33644
33645
33646
33647 echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
33648 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
33649 if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
33650 if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
33651 echo $ECHO_N "(cached) $ECHO_C" >&6
33652 else
33653
33654
33655
33656 ac_ext=cc
33657 ac_cpp='$CXXCPP $CPPFLAGS'
33658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33661
33662 cat >conftest.$ac_ext <<_ACEOF
33663 /* confdefs.h. */
33664 _ACEOF
33665 cat confdefs.h >>conftest.$ac_ext
33666 cat >>conftest.$ac_ext <<_ACEOF
33667 /* end confdefs.h. */
33668 #include <math.h>
33669 #ifdef HAVE_IEEEFP_H
33670 #include <ieeefp.h>
33671 #endif
33672
33673 int
33674 main ()
33675 {
33676 qfpclass(0);
33677 ;
33678 return 0;
33679 }
33680 _ACEOF
33681 rm -f conftest.$ac_objext
33682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33683 (eval $ac_compile) 2>conftest.er1
33684 ac_status=$?
33685 grep -v '^ *+' conftest.er1 >conftest.err
33686 rm -f conftest.er1
33687 cat conftest.err >&5
33688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689 (exit $ac_status); } &&
33690 { ac_try='test -z "$ac_cxx_werror_flag"
33691 || test ! -s conftest.err'
33692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33693 (eval $ac_try) 2>&5
33694 ac_status=$?
33695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33696 (exit $ac_status); }; } &&
33697 { ac_try='test -s conftest.$ac_objext'
33698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33699 (eval $ac_try) 2>&5
33700 ac_status=$?
33701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33702 (exit $ac_status); }; }; then
33703 glibcxx_cv_func_qfpclass_use=yes
33704 else
33705 echo "$as_me: failed program was:" >&5
33706 sed 's/^/| /' conftest.$ac_ext >&5
33707
33708 glibcxx_cv_func_qfpclass_use=no
33709 fi
33710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33711 ac_ext=c
33712 ac_cpp='$CPP $CPPFLAGS'
33713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33716
33717
33718 fi
33719
33720 fi
33721 echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
33722 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
33723
33724 if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
33725
33726 for ac_func in qfpclass
33727 do
33728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33729 echo "$as_me:$LINENO: checking for $ac_func" >&5
33730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33731 if eval "test \"\${$as_ac_var+set}\" = set"; then
33732 echo $ECHO_N "(cached) $ECHO_C" >&6
33733 else
33734 if test x$gcc_no_link = xyes; then
33735 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33736 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33737 { (exit 1); exit 1; }; }
33738 fi
33739 cat >conftest.$ac_ext <<_ACEOF
33740 /* confdefs.h. */
33741 _ACEOF
33742 cat confdefs.h >>conftest.$ac_ext
33743 cat >>conftest.$ac_ext <<_ACEOF
33744 /* end confdefs.h. */
33745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33747 #define $ac_func innocuous_$ac_func
33748
33749 /* System header to define __stub macros and hopefully few prototypes,
33750 which can conflict with char $ac_func (); below.
33751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33752 <limits.h> exists even on freestanding compilers. */
33753
33754 #ifdef __STDC__
33755 # include <limits.h>
33756 #else
33757 # include <assert.h>
33758 #endif
33759
33760 #undef $ac_func
33761
33762 /* Override any gcc2 internal prototype to avoid an error. */
33763 #ifdef __cplusplus
33764 extern "C"
33765 {
33766 #endif
33767 /* We use char because int might match the return type of a gcc2
33768 builtin and then its argument prototype would still apply. */
33769 char $ac_func ();
33770 /* The GNU C library defines this for functions which it implements
33771 to always fail with ENOSYS. Some functions are actually named
33772 something starting with __ and the normal name is an alias. */
33773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33774 choke me
33775 #else
33776 char (*f) () = $ac_func;
33777 #endif
33778 #ifdef __cplusplus
33779 }
33780 #endif
33781
33782 int
33783 main ()
33784 {
33785 return f != $ac_func;
33786 ;
33787 return 0;
33788 }
33789 _ACEOF
33790 rm -f conftest.$ac_objext conftest$ac_exeext
33791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33792 (eval $ac_link) 2>conftest.er1
33793 ac_status=$?
33794 grep -v '^ *+' conftest.er1 >conftest.err
33795 rm -f conftest.er1
33796 cat conftest.err >&5
33797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); } &&
33799 { ac_try='test -z "$ac_c_werror_flag"
33800 || test ! -s conftest.err'
33801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33802 (eval $ac_try) 2>&5
33803 ac_status=$?
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); }; } &&
33806 { ac_try='test -s conftest$ac_exeext'
33807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33808 (eval $ac_try) 2>&5
33809 ac_status=$?
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; }; then
33812 eval "$as_ac_var=yes"
33813 else
33814 echo "$as_me: failed program was:" >&5
33815 sed 's/^/| /' conftest.$ac_ext >&5
33816
33817 eval "$as_ac_var=no"
33818 fi
33819 rm -f conftest.err conftest.$ac_objext \
33820 conftest$ac_exeext conftest.$ac_ext
33821 fi
33822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33824 if test `eval echo '${'$as_ac_var'}'` = yes; then
33825 cat >>confdefs.h <<_ACEOF
33826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33827 _ACEOF
33828
33829 fi
33830 done
33831
33832 else
33833
33834 echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
33835 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
33836 if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
33837 if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
33838 echo $ECHO_N "(cached) $ECHO_C" >&6
33839 else
33840
33841
33842
33843 ac_ext=cc
33844 ac_cpp='$CXXCPP $CPPFLAGS'
33845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33848
33849 cat >conftest.$ac_ext <<_ACEOF
33850 /* confdefs.h. */
33851 _ACEOF
33852 cat confdefs.h >>conftest.$ac_ext
33853 cat >>conftest.$ac_ext <<_ACEOF
33854 /* end confdefs.h. */
33855 #include <math.h>
33856 #ifdef HAVE_IEEEFP_H
33857 #include <ieeefp.h>
33858 #endif
33859
33860 int
33861 main ()
33862 {
33863 _qfpclass(0);
33864 ;
33865 return 0;
33866 }
33867 _ACEOF
33868 rm -f conftest.$ac_objext
33869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33870 (eval $ac_compile) 2>conftest.er1
33871 ac_status=$?
33872 grep -v '^ *+' conftest.er1 >conftest.err
33873 rm -f conftest.er1
33874 cat conftest.err >&5
33875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876 (exit $ac_status); } &&
33877 { ac_try='test -z "$ac_cxx_werror_flag"
33878 || test ! -s conftest.err'
33879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33880 (eval $ac_try) 2>&5
33881 ac_status=$?
33882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883 (exit $ac_status); }; } &&
33884 { ac_try='test -s conftest.$ac_objext'
33885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33886 (eval $ac_try) 2>&5
33887 ac_status=$?
33888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889 (exit $ac_status); }; }; then
33890 glibcxx_cv_func__qfpclass_use=yes
33891 else
33892 echo "$as_me: failed program was:" >&5
33893 sed 's/^/| /' conftest.$ac_ext >&5
33894
33895 glibcxx_cv_func__qfpclass_use=no
33896 fi
33897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33898 ac_ext=c
33899 ac_cpp='$CPP $CPPFLAGS'
33900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33903
33904
33905 fi
33906
33907 fi
33908 echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
33909 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
33910
33911 if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
33912
33913 for ac_func in _qfpclass
33914 do
33915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33916 echo "$as_me:$LINENO: checking for $ac_func" >&5
33917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33918 if eval "test \"\${$as_ac_var+set}\" = set"; then
33919 echo $ECHO_N "(cached) $ECHO_C" >&6
33920 else
33921 if test x$gcc_no_link = xyes; then
33922 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33923 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33924 { (exit 1); exit 1; }; }
33925 fi
33926 cat >conftest.$ac_ext <<_ACEOF
33927 /* confdefs.h. */
33928 _ACEOF
33929 cat confdefs.h >>conftest.$ac_ext
33930 cat >>conftest.$ac_ext <<_ACEOF
33931 /* end confdefs.h. */
33932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33934 #define $ac_func innocuous_$ac_func
33935
33936 /* System header to define __stub macros and hopefully few prototypes,
33937 which can conflict with char $ac_func (); below.
33938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33939 <limits.h> exists even on freestanding compilers. */
33940
33941 #ifdef __STDC__
33942 # include <limits.h>
33943 #else
33944 # include <assert.h>
33945 #endif
33946
33947 #undef $ac_func
33948
33949 /* Override any gcc2 internal prototype to avoid an error. */
33950 #ifdef __cplusplus
33951 extern "C"
33952 {
33953 #endif
33954 /* We use char because int might match the return type of a gcc2
33955 builtin and then its argument prototype would still apply. */
33956 char $ac_func ();
33957 /* The GNU C library defines this for functions which it implements
33958 to always fail with ENOSYS. Some functions are actually named
33959 something starting with __ and the normal name is an alias. */
33960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33961 choke me
33962 #else
33963 char (*f) () = $ac_func;
33964 #endif
33965 #ifdef __cplusplus
33966 }
33967 #endif
33968
33969 int
33970 main ()
33971 {
33972 return f != $ac_func;
33973 ;
33974 return 0;
33975 }
33976 _ACEOF
33977 rm -f conftest.$ac_objext conftest$ac_exeext
33978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33979 (eval $ac_link) 2>conftest.er1
33980 ac_status=$?
33981 grep -v '^ *+' conftest.er1 >conftest.err
33982 rm -f conftest.er1
33983 cat conftest.err >&5
33984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985 (exit $ac_status); } &&
33986 { ac_try='test -z "$ac_c_werror_flag"
33987 || test ! -s conftest.err'
33988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33989 (eval $ac_try) 2>&5
33990 ac_status=$?
33991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33992 (exit $ac_status); }; } &&
33993 { ac_try='test -s conftest$ac_exeext'
33994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33995 (eval $ac_try) 2>&5
33996 ac_status=$?
33997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33998 (exit $ac_status); }; }; then
33999 eval "$as_ac_var=yes"
34000 else
34001 echo "$as_me: failed program was:" >&5
34002 sed 's/^/| /' conftest.$ac_ext >&5
34003
34004 eval "$as_ac_var=no"
34005 fi
34006 rm -f conftest.err conftest.$ac_objext \
34007 conftest$ac_exeext conftest.$ac_ext
34008 fi
34009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34011 if test `eval echo '${'$as_ac_var'}'` = yes; then
34012 cat >>confdefs.h <<_ACEOF
34013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34014 _ACEOF
34015
34016 fi
34017 done
34018
34019 fi
34020 fi
34021
34022
34023
34024 echo "$as_me:$LINENO: checking for hypot declaration" >&5
34025 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
34026 if test x${glibcxx_cv_func_hypot_use+set} != xset; then
34027 if test "${glibcxx_cv_func_hypot_use+set}" = set; then
34028 echo $ECHO_N "(cached) $ECHO_C" >&6
34029 else
34030
34031
34032
34033 ac_ext=cc
34034 ac_cpp='$CXXCPP $CPPFLAGS'
34035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34038
34039 cat >conftest.$ac_ext <<_ACEOF
34040 /* confdefs.h. */
34041 _ACEOF
34042 cat confdefs.h >>conftest.$ac_ext
34043 cat >>conftest.$ac_ext <<_ACEOF
34044 /* end confdefs.h. */
34045 #include <math.h>
34046 int
34047 main ()
34048 {
34049 hypot(0, 0);
34050 ;
34051 return 0;
34052 }
34053 _ACEOF
34054 rm -f conftest.$ac_objext
34055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34056 (eval $ac_compile) 2>conftest.er1
34057 ac_status=$?
34058 grep -v '^ *+' conftest.er1 >conftest.err
34059 rm -f conftest.er1
34060 cat conftest.err >&5
34061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34062 (exit $ac_status); } &&
34063 { ac_try='test -z "$ac_cxx_werror_flag"
34064 || test ! -s conftest.err'
34065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34066 (eval $ac_try) 2>&5
34067 ac_status=$?
34068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069 (exit $ac_status); }; } &&
34070 { ac_try='test -s conftest.$ac_objext'
34071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34072 (eval $ac_try) 2>&5
34073 ac_status=$?
34074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075 (exit $ac_status); }; }; then
34076 glibcxx_cv_func_hypot_use=yes
34077 else
34078 echo "$as_me: failed program was:" >&5
34079 sed 's/^/| /' conftest.$ac_ext >&5
34080
34081 glibcxx_cv_func_hypot_use=no
34082 fi
34083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34084 ac_ext=c
34085 ac_cpp='$CPP $CPPFLAGS'
34086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34089
34090
34091 fi
34092
34093 fi
34094 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
34095 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
34096
34097 if test x$glibcxx_cv_func_hypot_use = x"yes"; then
34098
34099 for ac_func in hypot
34100 do
34101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34102 echo "$as_me:$LINENO: checking for $ac_func" >&5
34103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34104 if eval "test \"\${$as_ac_var+set}\" = set"; then
34105 echo $ECHO_N "(cached) $ECHO_C" >&6
34106 else
34107 if test x$gcc_no_link = xyes; then
34108 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34110 { (exit 1); exit 1; }; }
34111 fi
34112 cat >conftest.$ac_ext <<_ACEOF
34113 /* confdefs.h. */
34114 _ACEOF
34115 cat confdefs.h >>conftest.$ac_ext
34116 cat >>conftest.$ac_ext <<_ACEOF
34117 /* end confdefs.h. */
34118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34120 #define $ac_func innocuous_$ac_func
34121
34122 /* System header to define __stub macros and hopefully few prototypes,
34123 which can conflict with char $ac_func (); below.
34124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34125 <limits.h> exists even on freestanding compilers. */
34126
34127 #ifdef __STDC__
34128 # include <limits.h>
34129 #else
34130 # include <assert.h>
34131 #endif
34132
34133 #undef $ac_func
34134
34135 /* Override any gcc2 internal prototype to avoid an error. */
34136 #ifdef __cplusplus
34137 extern "C"
34138 {
34139 #endif
34140 /* We use char because int might match the return type of a gcc2
34141 builtin and then its argument prototype would still apply. */
34142 char $ac_func ();
34143 /* The GNU C library defines this for functions which it implements
34144 to always fail with ENOSYS. Some functions are actually named
34145 something starting with __ and the normal name is an alias. */
34146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34147 choke me
34148 #else
34149 char (*f) () = $ac_func;
34150 #endif
34151 #ifdef __cplusplus
34152 }
34153 #endif
34154
34155 int
34156 main ()
34157 {
34158 return f != $ac_func;
34159 ;
34160 return 0;
34161 }
34162 _ACEOF
34163 rm -f conftest.$ac_objext conftest$ac_exeext
34164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34165 (eval $ac_link) 2>conftest.er1
34166 ac_status=$?
34167 grep -v '^ *+' conftest.er1 >conftest.err
34168 rm -f conftest.er1
34169 cat conftest.err >&5
34170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34171 (exit $ac_status); } &&
34172 { ac_try='test -z "$ac_c_werror_flag"
34173 || test ! -s conftest.err'
34174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34175 (eval $ac_try) 2>&5
34176 ac_status=$?
34177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34178 (exit $ac_status); }; } &&
34179 { ac_try='test -s conftest$ac_exeext'
34180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34181 (eval $ac_try) 2>&5
34182 ac_status=$?
34183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184 (exit $ac_status); }; }; then
34185 eval "$as_ac_var=yes"
34186 else
34187 echo "$as_me: failed program was:" >&5
34188 sed 's/^/| /' conftest.$ac_ext >&5
34189
34190 eval "$as_ac_var=no"
34191 fi
34192 rm -f conftest.err conftest.$ac_objext \
34193 conftest$ac_exeext conftest.$ac_ext
34194 fi
34195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34197 if test `eval echo '${'$as_ac_var'}'` = yes; then
34198 cat >>confdefs.h <<_ACEOF
34199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34200 _ACEOF
34201
34202 fi
34203 done
34204
34205 else
34206
34207 echo "$as_me:$LINENO: checking for _hypot declaration" >&5
34208 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
34209 if test x${glibcxx_cv_func__hypot_use+set} != xset; then
34210 if test "${glibcxx_cv_func__hypot_use+set}" = set; then
34211 echo $ECHO_N "(cached) $ECHO_C" >&6
34212 else
34213
34214
34215
34216 ac_ext=cc
34217 ac_cpp='$CXXCPP $CPPFLAGS'
34218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34221
34222 cat >conftest.$ac_ext <<_ACEOF
34223 /* confdefs.h. */
34224 _ACEOF
34225 cat confdefs.h >>conftest.$ac_ext
34226 cat >>conftest.$ac_ext <<_ACEOF
34227 /* end confdefs.h. */
34228 #include <math.h>
34229 int
34230 main ()
34231 {
34232 _hypot(0, 0);
34233 ;
34234 return 0;
34235 }
34236 _ACEOF
34237 rm -f conftest.$ac_objext
34238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34239 (eval $ac_compile) 2>conftest.er1
34240 ac_status=$?
34241 grep -v '^ *+' conftest.er1 >conftest.err
34242 rm -f conftest.er1
34243 cat conftest.err >&5
34244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34245 (exit $ac_status); } &&
34246 { ac_try='test -z "$ac_cxx_werror_flag"
34247 || test ! -s conftest.err'
34248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34249 (eval $ac_try) 2>&5
34250 ac_status=$?
34251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34252 (exit $ac_status); }; } &&
34253 { ac_try='test -s conftest.$ac_objext'
34254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34255 (eval $ac_try) 2>&5
34256 ac_status=$?
34257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258 (exit $ac_status); }; }; then
34259 glibcxx_cv_func__hypot_use=yes
34260 else
34261 echo "$as_me: failed program was:" >&5
34262 sed 's/^/| /' conftest.$ac_ext >&5
34263
34264 glibcxx_cv_func__hypot_use=no
34265 fi
34266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34267 ac_ext=c
34268 ac_cpp='$CPP $CPPFLAGS'
34269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34272
34273
34274 fi
34275
34276 fi
34277 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
34278 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
34279
34280 if test x$glibcxx_cv_func__hypot_use = x"yes"; then
34281
34282 for ac_func in _hypot
34283 do
34284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34285 echo "$as_me:$LINENO: checking for $ac_func" >&5
34286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34287 if eval "test \"\${$as_ac_var+set}\" = set"; then
34288 echo $ECHO_N "(cached) $ECHO_C" >&6
34289 else
34290 if test x$gcc_no_link = xyes; then
34291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34293 { (exit 1); exit 1; }; }
34294 fi
34295 cat >conftest.$ac_ext <<_ACEOF
34296 /* confdefs.h. */
34297 _ACEOF
34298 cat confdefs.h >>conftest.$ac_ext
34299 cat >>conftest.$ac_ext <<_ACEOF
34300 /* end confdefs.h. */
34301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34303 #define $ac_func innocuous_$ac_func
34304
34305 /* System header to define __stub macros and hopefully few prototypes,
34306 which can conflict with char $ac_func (); below.
34307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34308 <limits.h> exists even on freestanding compilers. */
34309
34310 #ifdef __STDC__
34311 # include <limits.h>
34312 #else
34313 # include <assert.h>
34314 #endif
34315
34316 #undef $ac_func
34317
34318 /* Override any gcc2 internal prototype to avoid an error. */
34319 #ifdef __cplusplus
34320 extern "C"
34321 {
34322 #endif
34323 /* We use char because int might match the return type of a gcc2
34324 builtin and then its argument prototype would still apply. */
34325 char $ac_func ();
34326 /* The GNU C library defines this for functions which it implements
34327 to always fail with ENOSYS. Some functions are actually named
34328 something starting with __ and the normal name is an alias. */
34329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34330 choke me
34331 #else
34332 char (*f) () = $ac_func;
34333 #endif
34334 #ifdef __cplusplus
34335 }
34336 #endif
34337
34338 int
34339 main ()
34340 {
34341 return f != $ac_func;
34342 ;
34343 return 0;
34344 }
34345 _ACEOF
34346 rm -f conftest.$ac_objext conftest$ac_exeext
34347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34348 (eval $ac_link) 2>conftest.er1
34349 ac_status=$?
34350 grep -v '^ *+' conftest.er1 >conftest.err
34351 rm -f conftest.er1
34352 cat conftest.err >&5
34353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354 (exit $ac_status); } &&
34355 { ac_try='test -z "$ac_c_werror_flag"
34356 || test ! -s conftest.err'
34357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34358 (eval $ac_try) 2>&5
34359 ac_status=$?
34360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34361 (exit $ac_status); }; } &&
34362 { ac_try='test -s conftest$ac_exeext'
34363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34364 (eval $ac_try) 2>&5
34365 ac_status=$?
34366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34367 (exit $ac_status); }; }; then
34368 eval "$as_ac_var=yes"
34369 else
34370 echo "$as_me: failed program was:" >&5
34371 sed 's/^/| /' conftest.$ac_ext >&5
34372
34373 eval "$as_ac_var=no"
34374 fi
34375 rm -f conftest.err conftest.$ac_objext \
34376 conftest$ac_exeext conftest.$ac_ext
34377 fi
34378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34380 if test `eval echo '${'$as_ac_var'}'` = yes; then
34381 cat >>confdefs.h <<_ACEOF
34382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34383 _ACEOF
34384
34385 fi
34386 done
34387
34388 fi
34389 fi
34390
34391
34392
34393 echo "$as_me:$LINENO: checking for float trig functions" >&5
34394 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
34395 if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
34396 echo $ECHO_N "(cached) $ECHO_C" >&6
34397 else
34398
34399
34400
34401 ac_ext=cc
34402 ac_cpp='$CXXCPP $CPPFLAGS'
34403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34406
34407 cat >conftest.$ac_ext <<_ACEOF
34408 /* confdefs.h. */
34409 _ACEOF
34410 cat confdefs.h >>conftest.$ac_ext
34411 cat >>conftest.$ac_ext <<_ACEOF
34412 /* end confdefs.h. */
34413 #include <math.h>
34414 int
34415 main ()
34416 {
34417 `for x in acosf asinf atanf \
34418 cosf sinf tanf \
34419 coshf sinhf tanhf; do echo "$x (0);"; done`
34420 ;
34421 return 0;
34422 }
34423 _ACEOF
34424 rm -f conftest.$ac_objext
34425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34426 (eval $ac_compile) 2>conftest.er1
34427 ac_status=$?
34428 grep -v '^ *+' conftest.er1 >conftest.err
34429 rm -f conftest.er1
34430 cat conftest.err >&5
34431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34432 (exit $ac_status); } &&
34433 { ac_try='test -z "$ac_cxx_werror_flag"
34434 || test ! -s conftest.err'
34435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34436 (eval $ac_try) 2>&5
34437 ac_status=$?
34438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439 (exit $ac_status); }; } &&
34440 { ac_try='test -s conftest.$ac_objext'
34441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34442 (eval $ac_try) 2>&5
34443 ac_status=$?
34444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34445 (exit $ac_status); }; }; then
34446 glibcxx_cv_func_float_trig_use=yes
34447 else
34448 echo "$as_me: failed program was:" >&5
34449 sed 's/^/| /' conftest.$ac_ext >&5
34450
34451 glibcxx_cv_func_float_trig_use=no
34452 fi
34453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34454 ac_ext=c
34455 ac_cpp='$CPP $CPPFLAGS'
34456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34459
34460 fi
34461
34462 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
34463 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
34464 if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
34465
34466
34467
34468
34469
34470
34471
34472
34473
34474 for ac_func in acosf asinf atanf \
34475 cosf sinf tanf \
34476 coshf sinhf tanhf
34477 do
34478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34479 echo "$as_me:$LINENO: checking for $ac_func" >&5
34480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34481 if eval "test \"\${$as_ac_var+set}\" = set"; then
34482 echo $ECHO_N "(cached) $ECHO_C" >&6
34483 else
34484 if test x$gcc_no_link = xyes; then
34485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34486 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34487 { (exit 1); exit 1; }; }
34488 fi
34489 cat >conftest.$ac_ext <<_ACEOF
34490 /* confdefs.h. */
34491 _ACEOF
34492 cat confdefs.h >>conftest.$ac_ext
34493 cat >>conftest.$ac_ext <<_ACEOF
34494 /* end confdefs.h. */
34495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34497 #define $ac_func innocuous_$ac_func
34498
34499 /* System header to define __stub macros and hopefully few prototypes,
34500 which can conflict with char $ac_func (); below.
34501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34502 <limits.h> exists even on freestanding compilers. */
34503
34504 #ifdef __STDC__
34505 # include <limits.h>
34506 #else
34507 # include <assert.h>
34508 #endif
34509
34510 #undef $ac_func
34511
34512 /* Override any gcc2 internal prototype to avoid an error. */
34513 #ifdef __cplusplus
34514 extern "C"
34515 {
34516 #endif
34517 /* We use char because int might match the return type of a gcc2
34518 builtin and then its argument prototype would still apply. */
34519 char $ac_func ();
34520 /* The GNU C library defines this for functions which it implements
34521 to always fail with ENOSYS. Some functions are actually named
34522 something starting with __ and the normal name is an alias. */
34523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34524 choke me
34525 #else
34526 char (*f) () = $ac_func;
34527 #endif
34528 #ifdef __cplusplus
34529 }
34530 #endif
34531
34532 int
34533 main ()
34534 {
34535 return f != $ac_func;
34536 ;
34537 return 0;
34538 }
34539 _ACEOF
34540 rm -f conftest.$ac_objext conftest$ac_exeext
34541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34542 (eval $ac_link) 2>conftest.er1
34543 ac_status=$?
34544 grep -v '^ *+' conftest.er1 >conftest.err
34545 rm -f conftest.er1
34546 cat conftest.err >&5
34547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548 (exit $ac_status); } &&
34549 { ac_try='test -z "$ac_c_werror_flag"
34550 || test ! -s conftest.err'
34551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34552 (eval $ac_try) 2>&5
34553 ac_status=$?
34554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34555 (exit $ac_status); }; } &&
34556 { ac_try='test -s conftest$ac_exeext'
34557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34558 (eval $ac_try) 2>&5
34559 ac_status=$?
34560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561 (exit $ac_status); }; }; then
34562 eval "$as_ac_var=yes"
34563 else
34564 echo "$as_me: failed program was:" >&5
34565 sed 's/^/| /' conftest.$ac_ext >&5
34566
34567 eval "$as_ac_var=no"
34568 fi
34569 rm -f conftest.err conftest.$ac_objext \
34570 conftest$ac_exeext conftest.$ac_ext
34571 fi
34572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34574 if test `eval echo '${'$as_ac_var'}'` = yes; then
34575 cat >>confdefs.h <<_ACEOF
34576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34577 _ACEOF
34578
34579 fi
34580 done
34581
34582 fi
34583
34584
34585 echo "$as_me:$LINENO: checking for float round functions" >&5
34586 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
34587 if test "${glibcxx_cv_func_float_round_use+set}" = set; then
34588 echo $ECHO_N "(cached) $ECHO_C" >&6
34589 else
34590
34591
34592
34593 ac_ext=cc
34594 ac_cpp='$CXXCPP $CPPFLAGS'
34595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34598
34599 cat >conftest.$ac_ext <<_ACEOF
34600 /* confdefs.h. */
34601 _ACEOF
34602 cat confdefs.h >>conftest.$ac_ext
34603 cat >>conftest.$ac_ext <<_ACEOF
34604 /* end confdefs.h. */
34605 #include <math.h>
34606 int
34607 main ()
34608 {
34609 `for x in ceilf floorf; do echo "$x (0);"; done`
34610 ;
34611 return 0;
34612 }
34613 _ACEOF
34614 rm -f conftest.$ac_objext
34615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34616 (eval $ac_compile) 2>conftest.er1
34617 ac_status=$?
34618 grep -v '^ *+' conftest.er1 >conftest.err
34619 rm -f conftest.er1
34620 cat conftest.err >&5
34621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622 (exit $ac_status); } &&
34623 { ac_try='test -z "$ac_cxx_werror_flag"
34624 || test ! -s conftest.err'
34625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34626 (eval $ac_try) 2>&5
34627 ac_status=$?
34628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34629 (exit $ac_status); }; } &&
34630 { ac_try='test -s conftest.$ac_objext'
34631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34632 (eval $ac_try) 2>&5
34633 ac_status=$?
34634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635 (exit $ac_status); }; }; then
34636 glibcxx_cv_func_float_round_use=yes
34637 else
34638 echo "$as_me: failed program was:" >&5
34639 sed 's/^/| /' conftest.$ac_ext >&5
34640
34641 glibcxx_cv_func_float_round_use=no
34642 fi
34643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34644 ac_ext=c
34645 ac_cpp='$CPP $CPPFLAGS'
34646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34649
34650 fi
34651
34652 echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
34653 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
34654 if test x$glibcxx_cv_func_float_round_use = x"yes"; then
34655
34656
34657 for ac_func in ceilf floorf
34658 do
34659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34660 echo "$as_me:$LINENO: checking for $ac_func" >&5
34661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34662 if eval "test \"\${$as_ac_var+set}\" = set"; then
34663 echo $ECHO_N "(cached) $ECHO_C" >&6
34664 else
34665 if test x$gcc_no_link = xyes; then
34666 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34667 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34668 { (exit 1); exit 1; }; }
34669 fi
34670 cat >conftest.$ac_ext <<_ACEOF
34671 /* confdefs.h. */
34672 _ACEOF
34673 cat confdefs.h >>conftest.$ac_ext
34674 cat >>conftest.$ac_ext <<_ACEOF
34675 /* end confdefs.h. */
34676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34678 #define $ac_func innocuous_$ac_func
34679
34680 /* System header to define __stub macros and hopefully few prototypes,
34681 which can conflict with char $ac_func (); below.
34682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34683 <limits.h> exists even on freestanding compilers. */
34684
34685 #ifdef __STDC__
34686 # include <limits.h>
34687 #else
34688 # include <assert.h>
34689 #endif
34690
34691 #undef $ac_func
34692
34693 /* Override any gcc2 internal prototype to avoid an error. */
34694 #ifdef __cplusplus
34695 extern "C"
34696 {
34697 #endif
34698 /* We use char because int might match the return type of a gcc2
34699 builtin and then its argument prototype would still apply. */
34700 char $ac_func ();
34701 /* The GNU C library defines this for functions which it implements
34702 to always fail with ENOSYS. Some functions are actually named
34703 something starting with __ and the normal name is an alias. */
34704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34705 choke me
34706 #else
34707 char (*f) () = $ac_func;
34708 #endif
34709 #ifdef __cplusplus
34710 }
34711 #endif
34712
34713 int
34714 main ()
34715 {
34716 return f != $ac_func;
34717 ;
34718 return 0;
34719 }
34720 _ACEOF
34721 rm -f conftest.$ac_objext conftest$ac_exeext
34722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34723 (eval $ac_link) 2>conftest.er1
34724 ac_status=$?
34725 grep -v '^ *+' conftest.er1 >conftest.err
34726 rm -f conftest.er1
34727 cat conftest.err >&5
34728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729 (exit $ac_status); } &&
34730 { ac_try='test -z "$ac_c_werror_flag"
34731 || test ! -s conftest.err'
34732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34733 (eval $ac_try) 2>&5
34734 ac_status=$?
34735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34736 (exit $ac_status); }; } &&
34737 { ac_try='test -s conftest$ac_exeext'
34738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34739 (eval $ac_try) 2>&5
34740 ac_status=$?
34741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742 (exit $ac_status); }; }; then
34743 eval "$as_ac_var=yes"
34744 else
34745 echo "$as_me: failed program was:" >&5
34746 sed 's/^/| /' conftest.$ac_ext >&5
34747
34748 eval "$as_ac_var=no"
34749 fi
34750 rm -f conftest.err conftest.$ac_objext \
34751 conftest$ac_exeext conftest.$ac_ext
34752 fi
34753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34755 if test `eval echo '${'$as_ac_var'}'` = yes; then
34756 cat >>confdefs.h <<_ACEOF
34757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34758 _ACEOF
34759
34760 fi
34761 done
34762
34763 fi
34764
34765
34766
34767 echo "$as_me:$LINENO: checking for expf declaration" >&5
34768 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
34769 if test x${glibcxx_cv_func_expf_use+set} != xset; then
34770 if test "${glibcxx_cv_func_expf_use+set}" = set; then
34771 echo $ECHO_N "(cached) $ECHO_C" >&6
34772 else
34773
34774
34775
34776 ac_ext=cc
34777 ac_cpp='$CXXCPP $CPPFLAGS'
34778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34781
34782 cat >conftest.$ac_ext <<_ACEOF
34783 /* confdefs.h. */
34784 _ACEOF
34785 cat confdefs.h >>conftest.$ac_ext
34786 cat >>conftest.$ac_ext <<_ACEOF
34787 /* end confdefs.h. */
34788 #include <math.h>
34789 #ifdef HAVE_IEEEFP_H
34790 #include <ieeefp.h>
34791 #endif
34792
34793 int
34794 main ()
34795 {
34796 expf(0);
34797 ;
34798 return 0;
34799 }
34800 _ACEOF
34801 rm -f conftest.$ac_objext
34802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34803 (eval $ac_compile) 2>conftest.er1
34804 ac_status=$?
34805 grep -v '^ *+' conftest.er1 >conftest.err
34806 rm -f conftest.er1
34807 cat conftest.err >&5
34808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34809 (exit $ac_status); } &&
34810 { ac_try='test -z "$ac_cxx_werror_flag"
34811 || test ! -s conftest.err'
34812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34813 (eval $ac_try) 2>&5
34814 ac_status=$?
34815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816 (exit $ac_status); }; } &&
34817 { ac_try='test -s conftest.$ac_objext'
34818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34819 (eval $ac_try) 2>&5
34820 ac_status=$?
34821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34822 (exit $ac_status); }; }; then
34823 glibcxx_cv_func_expf_use=yes
34824 else
34825 echo "$as_me: failed program was:" >&5
34826 sed 's/^/| /' conftest.$ac_ext >&5
34827
34828 glibcxx_cv_func_expf_use=no
34829 fi
34830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34831 ac_ext=c
34832 ac_cpp='$CPP $CPPFLAGS'
34833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34836
34837
34838 fi
34839
34840 fi
34841 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
34842 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
34843
34844 if test x$glibcxx_cv_func_expf_use = x"yes"; then
34845
34846 for ac_func in expf
34847 do
34848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34849 echo "$as_me:$LINENO: checking for $ac_func" >&5
34850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34851 if eval "test \"\${$as_ac_var+set}\" = set"; then
34852 echo $ECHO_N "(cached) $ECHO_C" >&6
34853 else
34854 if test x$gcc_no_link = xyes; then
34855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34857 { (exit 1); exit 1; }; }
34858 fi
34859 cat >conftest.$ac_ext <<_ACEOF
34860 /* confdefs.h. */
34861 _ACEOF
34862 cat confdefs.h >>conftest.$ac_ext
34863 cat >>conftest.$ac_ext <<_ACEOF
34864 /* end confdefs.h. */
34865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34867 #define $ac_func innocuous_$ac_func
34868
34869 /* System header to define __stub macros and hopefully few prototypes,
34870 which can conflict with char $ac_func (); below.
34871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34872 <limits.h> exists even on freestanding compilers. */
34873
34874 #ifdef __STDC__
34875 # include <limits.h>
34876 #else
34877 # include <assert.h>
34878 #endif
34879
34880 #undef $ac_func
34881
34882 /* Override any gcc2 internal prototype to avoid an error. */
34883 #ifdef __cplusplus
34884 extern "C"
34885 {
34886 #endif
34887 /* We use char because int might match the return type of a gcc2
34888 builtin and then its argument prototype would still apply. */
34889 char $ac_func ();
34890 /* The GNU C library defines this for functions which it implements
34891 to always fail with ENOSYS. Some functions are actually named
34892 something starting with __ and the normal name is an alias. */
34893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34894 choke me
34895 #else
34896 char (*f) () = $ac_func;
34897 #endif
34898 #ifdef __cplusplus
34899 }
34900 #endif
34901
34902 int
34903 main ()
34904 {
34905 return f != $ac_func;
34906 ;
34907 return 0;
34908 }
34909 _ACEOF
34910 rm -f conftest.$ac_objext conftest$ac_exeext
34911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34912 (eval $ac_link) 2>conftest.er1
34913 ac_status=$?
34914 grep -v '^ *+' conftest.er1 >conftest.err
34915 rm -f conftest.er1
34916 cat conftest.err >&5
34917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918 (exit $ac_status); } &&
34919 { ac_try='test -z "$ac_c_werror_flag"
34920 || test ! -s conftest.err'
34921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34922 (eval $ac_try) 2>&5
34923 ac_status=$?
34924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925 (exit $ac_status); }; } &&
34926 { ac_try='test -s conftest$ac_exeext'
34927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34928 (eval $ac_try) 2>&5
34929 ac_status=$?
34930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34931 (exit $ac_status); }; }; then
34932 eval "$as_ac_var=yes"
34933 else
34934 echo "$as_me: failed program was:" >&5
34935 sed 's/^/| /' conftest.$ac_ext >&5
34936
34937 eval "$as_ac_var=no"
34938 fi
34939 rm -f conftest.err conftest.$ac_objext \
34940 conftest$ac_exeext conftest.$ac_ext
34941 fi
34942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34944 if test `eval echo '${'$as_ac_var'}'` = yes; then
34945 cat >>confdefs.h <<_ACEOF
34946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34947 _ACEOF
34948
34949 fi
34950 done
34951
34952 else
34953
34954 echo "$as_me:$LINENO: checking for _expf declaration" >&5
34955 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
34956 if test x${glibcxx_cv_func__expf_use+set} != xset; then
34957 if test "${glibcxx_cv_func__expf_use+set}" = set; then
34958 echo $ECHO_N "(cached) $ECHO_C" >&6
34959 else
34960
34961
34962
34963 ac_ext=cc
34964 ac_cpp='$CXXCPP $CPPFLAGS'
34965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34968
34969 cat >conftest.$ac_ext <<_ACEOF
34970 /* confdefs.h. */
34971 _ACEOF
34972 cat confdefs.h >>conftest.$ac_ext
34973 cat >>conftest.$ac_ext <<_ACEOF
34974 /* end confdefs.h. */
34975 #include <math.h>
34976 #ifdef HAVE_IEEEFP_H
34977 #include <ieeefp.h>
34978 #endif
34979
34980 int
34981 main ()
34982 {
34983 _expf(0);
34984 ;
34985 return 0;
34986 }
34987 _ACEOF
34988 rm -f conftest.$ac_objext
34989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34990 (eval $ac_compile) 2>conftest.er1
34991 ac_status=$?
34992 grep -v '^ *+' conftest.er1 >conftest.err
34993 rm -f conftest.er1
34994 cat conftest.err >&5
34995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); } &&
34997 { ac_try='test -z "$ac_cxx_werror_flag"
34998 || test ! -s conftest.err'
34999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35000 (eval $ac_try) 2>&5
35001 ac_status=$?
35002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003 (exit $ac_status); }; } &&
35004 { ac_try='test -s conftest.$ac_objext'
35005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35006 (eval $ac_try) 2>&5
35007 ac_status=$?
35008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35009 (exit $ac_status); }; }; then
35010 glibcxx_cv_func__expf_use=yes
35011 else
35012 echo "$as_me: failed program was:" >&5
35013 sed 's/^/| /' conftest.$ac_ext >&5
35014
35015 glibcxx_cv_func__expf_use=no
35016 fi
35017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35018 ac_ext=c
35019 ac_cpp='$CPP $CPPFLAGS'
35020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35023
35024
35025 fi
35026
35027 fi
35028 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
35029 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
35030
35031 if test x$glibcxx_cv_func__expf_use = x"yes"; then
35032
35033 for ac_func in _expf
35034 do
35035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35036 echo "$as_me:$LINENO: checking for $ac_func" >&5
35037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35038 if eval "test \"\${$as_ac_var+set}\" = set"; then
35039 echo $ECHO_N "(cached) $ECHO_C" >&6
35040 else
35041 if test x$gcc_no_link = xyes; then
35042 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35043 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35044 { (exit 1); exit 1; }; }
35045 fi
35046 cat >conftest.$ac_ext <<_ACEOF
35047 /* confdefs.h. */
35048 _ACEOF
35049 cat confdefs.h >>conftest.$ac_ext
35050 cat >>conftest.$ac_ext <<_ACEOF
35051 /* end confdefs.h. */
35052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35054 #define $ac_func innocuous_$ac_func
35055
35056 /* System header to define __stub macros and hopefully few prototypes,
35057 which can conflict with char $ac_func (); below.
35058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35059 <limits.h> exists even on freestanding compilers. */
35060
35061 #ifdef __STDC__
35062 # include <limits.h>
35063 #else
35064 # include <assert.h>
35065 #endif
35066
35067 #undef $ac_func
35068
35069 /* Override any gcc2 internal prototype to avoid an error. */
35070 #ifdef __cplusplus
35071 extern "C"
35072 {
35073 #endif
35074 /* We use char because int might match the return type of a gcc2
35075 builtin and then its argument prototype would still apply. */
35076 char $ac_func ();
35077 /* The GNU C library defines this for functions which it implements
35078 to always fail with ENOSYS. Some functions are actually named
35079 something starting with __ and the normal name is an alias. */
35080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35081 choke me
35082 #else
35083 char (*f) () = $ac_func;
35084 #endif
35085 #ifdef __cplusplus
35086 }
35087 #endif
35088
35089 int
35090 main ()
35091 {
35092 return f != $ac_func;
35093 ;
35094 return 0;
35095 }
35096 _ACEOF
35097 rm -f conftest.$ac_objext conftest$ac_exeext
35098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35099 (eval $ac_link) 2>conftest.er1
35100 ac_status=$?
35101 grep -v '^ *+' conftest.er1 >conftest.err
35102 rm -f conftest.er1
35103 cat conftest.err >&5
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); } &&
35106 { ac_try='test -z "$ac_c_werror_flag"
35107 || test ! -s conftest.err'
35108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35109 (eval $ac_try) 2>&5
35110 ac_status=$?
35111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35112 (exit $ac_status); }; } &&
35113 { ac_try='test -s conftest$ac_exeext'
35114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35115 (eval $ac_try) 2>&5
35116 ac_status=$?
35117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35118 (exit $ac_status); }; }; then
35119 eval "$as_ac_var=yes"
35120 else
35121 echo "$as_me: failed program was:" >&5
35122 sed 's/^/| /' conftest.$ac_ext >&5
35123
35124 eval "$as_ac_var=no"
35125 fi
35126 rm -f conftest.err conftest.$ac_objext \
35127 conftest$ac_exeext conftest.$ac_ext
35128 fi
35129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35131 if test `eval echo '${'$as_ac_var'}'` = yes; then
35132 cat >>confdefs.h <<_ACEOF
35133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35134 _ACEOF
35135
35136 fi
35137 done
35138
35139 fi
35140 fi
35141
35142
35143
35144 echo "$as_me:$LINENO: checking for isnanf declaration" >&5
35145 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
35146 if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
35147 if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
35148 echo $ECHO_N "(cached) $ECHO_C" >&6
35149 else
35150
35151
35152
35153 ac_ext=cc
35154 ac_cpp='$CXXCPP $CPPFLAGS'
35155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35158
35159 cat >conftest.$ac_ext <<_ACEOF
35160 /* confdefs.h. */
35161 _ACEOF
35162 cat confdefs.h >>conftest.$ac_ext
35163 cat >>conftest.$ac_ext <<_ACEOF
35164 /* end confdefs.h. */
35165 #include <math.h>
35166 #ifdef HAVE_IEEEFP_H
35167 #include <ieeefp.h>
35168 #endif
35169
35170 int
35171 main ()
35172 {
35173 isnanf(0);
35174 ;
35175 return 0;
35176 }
35177 _ACEOF
35178 rm -f conftest.$ac_objext
35179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35180 (eval $ac_compile) 2>conftest.er1
35181 ac_status=$?
35182 grep -v '^ *+' conftest.er1 >conftest.err
35183 rm -f conftest.er1
35184 cat conftest.err >&5
35185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186 (exit $ac_status); } &&
35187 { ac_try='test -z "$ac_cxx_werror_flag"
35188 || test ! -s conftest.err'
35189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35190 (eval $ac_try) 2>&5
35191 ac_status=$?
35192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193 (exit $ac_status); }; } &&
35194 { ac_try='test -s conftest.$ac_objext'
35195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35196 (eval $ac_try) 2>&5
35197 ac_status=$?
35198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35199 (exit $ac_status); }; }; then
35200 glibcxx_cv_func_isnanf_use=yes
35201 else
35202 echo "$as_me: failed program was:" >&5
35203 sed 's/^/| /' conftest.$ac_ext >&5
35204
35205 glibcxx_cv_func_isnanf_use=no
35206 fi
35207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35208 ac_ext=c
35209 ac_cpp='$CPP $CPPFLAGS'
35210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35213
35214
35215 fi
35216
35217 fi
35218 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
35219 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
35220
35221 if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
35222
35223 for ac_func in isnanf
35224 do
35225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35226 echo "$as_me:$LINENO: checking for $ac_func" >&5
35227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35228 if eval "test \"\${$as_ac_var+set}\" = set"; then
35229 echo $ECHO_N "(cached) $ECHO_C" >&6
35230 else
35231 if test x$gcc_no_link = xyes; then
35232 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35233 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35234 { (exit 1); exit 1; }; }
35235 fi
35236 cat >conftest.$ac_ext <<_ACEOF
35237 /* confdefs.h. */
35238 _ACEOF
35239 cat confdefs.h >>conftest.$ac_ext
35240 cat >>conftest.$ac_ext <<_ACEOF
35241 /* end confdefs.h. */
35242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35244 #define $ac_func innocuous_$ac_func
35245
35246 /* System header to define __stub macros and hopefully few prototypes,
35247 which can conflict with char $ac_func (); below.
35248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35249 <limits.h> exists even on freestanding compilers. */
35250
35251 #ifdef __STDC__
35252 # include <limits.h>
35253 #else
35254 # include <assert.h>
35255 #endif
35256
35257 #undef $ac_func
35258
35259 /* Override any gcc2 internal prototype to avoid an error. */
35260 #ifdef __cplusplus
35261 extern "C"
35262 {
35263 #endif
35264 /* We use char because int might match the return type of a gcc2
35265 builtin and then its argument prototype would still apply. */
35266 char $ac_func ();
35267 /* The GNU C library defines this for functions which it implements
35268 to always fail with ENOSYS. Some functions are actually named
35269 something starting with __ and the normal name is an alias. */
35270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35271 choke me
35272 #else
35273 char (*f) () = $ac_func;
35274 #endif
35275 #ifdef __cplusplus
35276 }
35277 #endif
35278
35279 int
35280 main ()
35281 {
35282 return f != $ac_func;
35283 ;
35284 return 0;
35285 }
35286 _ACEOF
35287 rm -f conftest.$ac_objext conftest$ac_exeext
35288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35289 (eval $ac_link) 2>conftest.er1
35290 ac_status=$?
35291 grep -v '^ *+' conftest.er1 >conftest.err
35292 rm -f conftest.er1
35293 cat conftest.err >&5
35294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295 (exit $ac_status); } &&
35296 { ac_try='test -z "$ac_c_werror_flag"
35297 || test ! -s conftest.err'
35298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35299 (eval $ac_try) 2>&5
35300 ac_status=$?
35301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302 (exit $ac_status); }; } &&
35303 { ac_try='test -s conftest$ac_exeext'
35304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35305 (eval $ac_try) 2>&5
35306 ac_status=$?
35307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308 (exit $ac_status); }; }; then
35309 eval "$as_ac_var=yes"
35310 else
35311 echo "$as_me: failed program was:" >&5
35312 sed 's/^/| /' conftest.$ac_ext >&5
35313
35314 eval "$as_ac_var=no"
35315 fi
35316 rm -f conftest.err conftest.$ac_objext \
35317 conftest$ac_exeext conftest.$ac_ext
35318 fi
35319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35321 if test `eval echo '${'$as_ac_var'}'` = yes; then
35322 cat >>confdefs.h <<_ACEOF
35323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35324 _ACEOF
35325
35326 fi
35327 done
35328
35329 else
35330
35331 echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
35332 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
35333 if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
35334 if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
35335 echo $ECHO_N "(cached) $ECHO_C" >&6
35336 else
35337
35338
35339
35340 ac_ext=cc
35341 ac_cpp='$CXXCPP $CPPFLAGS'
35342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35345
35346 cat >conftest.$ac_ext <<_ACEOF
35347 /* confdefs.h. */
35348 _ACEOF
35349 cat confdefs.h >>conftest.$ac_ext
35350 cat >>conftest.$ac_ext <<_ACEOF
35351 /* end confdefs.h. */
35352 #include <math.h>
35353 #ifdef HAVE_IEEEFP_H
35354 #include <ieeefp.h>
35355 #endif
35356
35357 int
35358 main ()
35359 {
35360 _isnanf(0);
35361 ;
35362 return 0;
35363 }
35364 _ACEOF
35365 rm -f conftest.$ac_objext
35366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35367 (eval $ac_compile) 2>conftest.er1
35368 ac_status=$?
35369 grep -v '^ *+' conftest.er1 >conftest.err
35370 rm -f conftest.er1
35371 cat conftest.err >&5
35372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35373 (exit $ac_status); } &&
35374 { ac_try='test -z "$ac_cxx_werror_flag"
35375 || test ! -s conftest.err'
35376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35377 (eval $ac_try) 2>&5
35378 ac_status=$?
35379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35380 (exit $ac_status); }; } &&
35381 { ac_try='test -s conftest.$ac_objext'
35382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35383 (eval $ac_try) 2>&5
35384 ac_status=$?
35385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35386 (exit $ac_status); }; }; then
35387 glibcxx_cv_func__isnanf_use=yes
35388 else
35389 echo "$as_me: failed program was:" >&5
35390 sed 's/^/| /' conftest.$ac_ext >&5
35391
35392 glibcxx_cv_func__isnanf_use=no
35393 fi
35394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35395 ac_ext=c
35396 ac_cpp='$CPP $CPPFLAGS'
35397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35400
35401
35402 fi
35403
35404 fi
35405 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
35406 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
35407
35408 if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
35409
35410 for ac_func in _isnanf
35411 do
35412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35413 echo "$as_me:$LINENO: checking for $ac_func" >&5
35414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35415 if eval "test \"\${$as_ac_var+set}\" = set"; then
35416 echo $ECHO_N "(cached) $ECHO_C" >&6
35417 else
35418 if test x$gcc_no_link = xyes; then
35419 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35420 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35421 { (exit 1); exit 1; }; }
35422 fi
35423 cat >conftest.$ac_ext <<_ACEOF
35424 /* confdefs.h. */
35425 _ACEOF
35426 cat confdefs.h >>conftest.$ac_ext
35427 cat >>conftest.$ac_ext <<_ACEOF
35428 /* end confdefs.h. */
35429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35431 #define $ac_func innocuous_$ac_func
35432
35433 /* System header to define __stub macros and hopefully few prototypes,
35434 which can conflict with char $ac_func (); below.
35435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35436 <limits.h> exists even on freestanding compilers. */
35437
35438 #ifdef __STDC__
35439 # include <limits.h>
35440 #else
35441 # include <assert.h>
35442 #endif
35443
35444 #undef $ac_func
35445
35446 /* Override any gcc2 internal prototype to avoid an error. */
35447 #ifdef __cplusplus
35448 extern "C"
35449 {
35450 #endif
35451 /* We use char because int might match the return type of a gcc2
35452 builtin and then its argument prototype would still apply. */
35453 char $ac_func ();
35454 /* The GNU C library defines this for functions which it implements
35455 to always fail with ENOSYS. Some functions are actually named
35456 something starting with __ and the normal name is an alias. */
35457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35458 choke me
35459 #else
35460 char (*f) () = $ac_func;
35461 #endif
35462 #ifdef __cplusplus
35463 }
35464 #endif
35465
35466 int
35467 main ()
35468 {
35469 return f != $ac_func;
35470 ;
35471 return 0;
35472 }
35473 _ACEOF
35474 rm -f conftest.$ac_objext conftest$ac_exeext
35475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35476 (eval $ac_link) 2>conftest.er1
35477 ac_status=$?
35478 grep -v '^ *+' conftest.er1 >conftest.err
35479 rm -f conftest.er1
35480 cat conftest.err >&5
35481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35482 (exit $ac_status); } &&
35483 { ac_try='test -z "$ac_c_werror_flag"
35484 || test ! -s conftest.err'
35485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35486 (eval $ac_try) 2>&5
35487 ac_status=$?
35488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489 (exit $ac_status); }; } &&
35490 { ac_try='test -s conftest$ac_exeext'
35491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35492 (eval $ac_try) 2>&5
35493 ac_status=$?
35494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495 (exit $ac_status); }; }; then
35496 eval "$as_ac_var=yes"
35497 else
35498 echo "$as_me: failed program was:" >&5
35499 sed 's/^/| /' conftest.$ac_ext >&5
35500
35501 eval "$as_ac_var=no"
35502 fi
35503 rm -f conftest.err conftest.$ac_objext \
35504 conftest$ac_exeext conftest.$ac_ext
35505 fi
35506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35507 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35508 if test `eval echo '${'$as_ac_var'}'` = yes; then
35509 cat >>confdefs.h <<_ACEOF
35510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35511 _ACEOF
35512
35513 fi
35514 done
35515
35516 fi
35517 fi
35518
35519
35520
35521 echo "$as_me:$LINENO: checking for isinff declaration" >&5
35522 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
35523 if test x${glibcxx_cv_func_isinff_use+set} != xset; then
35524 if test "${glibcxx_cv_func_isinff_use+set}" = set; then
35525 echo $ECHO_N "(cached) $ECHO_C" >&6
35526 else
35527
35528
35529
35530 ac_ext=cc
35531 ac_cpp='$CXXCPP $CPPFLAGS'
35532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35535
35536 cat >conftest.$ac_ext <<_ACEOF
35537 /* confdefs.h. */
35538 _ACEOF
35539 cat confdefs.h >>conftest.$ac_ext
35540 cat >>conftest.$ac_ext <<_ACEOF
35541 /* end confdefs.h. */
35542 #include <math.h>
35543 #ifdef HAVE_IEEEFP_H
35544 #include <ieeefp.h>
35545 #endif
35546
35547 int
35548 main ()
35549 {
35550 isinff(0);
35551 ;
35552 return 0;
35553 }
35554 _ACEOF
35555 rm -f conftest.$ac_objext
35556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35557 (eval $ac_compile) 2>conftest.er1
35558 ac_status=$?
35559 grep -v '^ *+' conftest.er1 >conftest.err
35560 rm -f conftest.er1
35561 cat conftest.err >&5
35562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35563 (exit $ac_status); } &&
35564 { ac_try='test -z "$ac_cxx_werror_flag"
35565 || test ! -s conftest.err'
35566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35567 (eval $ac_try) 2>&5
35568 ac_status=$?
35569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570 (exit $ac_status); }; } &&
35571 { ac_try='test -s conftest.$ac_objext'
35572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35573 (eval $ac_try) 2>&5
35574 ac_status=$?
35575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35576 (exit $ac_status); }; }; then
35577 glibcxx_cv_func_isinff_use=yes
35578 else
35579 echo "$as_me: failed program was:" >&5
35580 sed 's/^/| /' conftest.$ac_ext >&5
35581
35582 glibcxx_cv_func_isinff_use=no
35583 fi
35584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35585 ac_ext=c
35586 ac_cpp='$CPP $CPPFLAGS'
35587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35590
35591
35592 fi
35593
35594 fi
35595 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
35596 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
35597
35598 if test x$glibcxx_cv_func_isinff_use = x"yes"; then
35599
35600 for ac_func in isinff
35601 do
35602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35603 echo "$as_me:$LINENO: checking for $ac_func" >&5
35604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35605 if eval "test \"\${$as_ac_var+set}\" = set"; then
35606 echo $ECHO_N "(cached) $ECHO_C" >&6
35607 else
35608 if test x$gcc_no_link = xyes; then
35609 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35610 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35611 { (exit 1); exit 1; }; }
35612 fi
35613 cat >conftest.$ac_ext <<_ACEOF
35614 /* confdefs.h. */
35615 _ACEOF
35616 cat confdefs.h >>conftest.$ac_ext
35617 cat >>conftest.$ac_ext <<_ACEOF
35618 /* end confdefs.h. */
35619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35621 #define $ac_func innocuous_$ac_func
35622
35623 /* System header to define __stub macros and hopefully few prototypes,
35624 which can conflict with char $ac_func (); below.
35625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35626 <limits.h> exists even on freestanding compilers. */
35627
35628 #ifdef __STDC__
35629 # include <limits.h>
35630 #else
35631 # include <assert.h>
35632 #endif
35633
35634 #undef $ac_func
35635
35636 /* Override any gcc2 internal prototype to avoid an error. */
35637 #ifdef __cplusplus
35638 extern "C"
35639 {
35640 #endif
35641 /* We use char because int might match the return type of a gcc2
35642 builtin and then its argument prototype would still apply. */
35643 char $ac_func ();
35644 /* The GNU C library defines this for functions which it implements
35645 to always fail with ENOSYS. Some functions are actually named
35646 something starting with __ and the normal name is an alias. */
35647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35648 choke me
35649 #else
35650 char (*f) () = $ac_func;
35651 #endif
35652 #ifdef __cplusplus
35653 }
35654 #endif
35655
35656 int
35657 main ()
35658 {
35659 return f != $ac_func;
35660 ;
35661 return 0;
35662 }
35663 _ACEOF
35664 rm -f conftest.$ac_objext conftest$ac_exeext
35665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35666 (eval $ac_link) 2>conftest.er1
35667 ac_status=$?
35668 grep -v '^ *+' conftest.er1 >conftest.err
35669 rm -f conftest.er1
35670 cat conftest.err >&5
35671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35672 (exit $ac_status); } &&
35673 { ac_try='test -z "$ac_c_werror_flag"
35674 || test ! -s conftest.err'
35675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35676 (eval $ac_try) 2>&5
35677 ac_status=$?
35678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679 (exit $ac_status); }; } &&
35680 { ac_try='test -s conftest$ac_exeext'
35681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35682 (eval $ac_try) 2>&5
35683 ac_status=$?
35684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685 (exit $ac_status); }; }; then
35686 eval "$as_ac_var=yes"
35687 else
35688 echo "$as_me: failed program was:" >&5
35689 sed 's/^/| /' conftest.$ac_ext >&5
35690
35691 eval "$as_ac_var=no"
35692 fi
35693 rm -f conftest.err conftest.$ac_objext \
35694 conftest$ac_exeext conftest.$ac_ext
35695 fi
35696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35698 if test `eval echo '${'$as_ac_var'}'` = yes; then
35699 cat >>confdefs.h <<_ACEOF
35700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35701 _ACEOF
35702
35703 fi
35704 done
35705
35706 else
35707
35708 echo "$as_me:$LINENO: checking for _isinff declaration" >&5
35709 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
35710 if test x${glibcxx_cv_func__isinff_use+set} != xset; then
35711 if test "${glibcxx_cv_func__isinff_use+set}" = set; then
35712 echo $ECHO_N "(cached) $ECHO_C" >&6
35713 else
35714
35715
35716
35717 ac_ext=cc
35718 ac_cpp='$CXXCPP $CPPFLAGS'
35719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35722
35723 cat >conftest.$ac_ext <<_ACEOF
35724 /* confdefs.h. */
35725 _ACEOF
35726 cat confdefs.h >>conftest.$ac_ext
35727 cat >>conftest.$ac_ext <<_ACEOF
35728 /* end confdefs.h. */
35729 #include <math.h>
35730 #ifdef HAVE_IEEEFP_H
35731 #include <ieeefp.h>
35732 #endif
35733
35734 int
35735 main ()
35736 {
35737 _isinff(0);
35738 ;
35739 return 0;
35740 }
35741 _ACEOF
35742 rm -f conftest.$ac_objext
35743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35744 (eval $ac_compile) 2>conftest.er1
35745 ac_status=$?
35746 grep -v '^ *+' conftest.er1 >conftest.err
35747 rm -f conftest.er1
35748 cat conftest.err >&5
35749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35750 (exit $ac_status); } &&
35751 { ac_try='test -z "$ac_cxx_werror_flag"
35752 || test ! -s conftest.err'
35753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35754 (eval $ac_try) 2>&5
35755 ac_status=$?
35756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35757 (exit $ac_status); }; } &&
35758 { ac_try='test -s conftest.$ac_objext'
35759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35760 (eval $ac_try) 2>&5
35761 ac_status=$?
35762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763 (exit $ac_status); }; }; then
35764 glibcxx_cv_func__isinff_use=yes
35765 else
35766 echo "$as_me: failed program was:" >&5
35767 sed 's/^/| /' conftest.$ac_ext >&5
35768
35769 glibcxx_cv_func__isinff_use=no
35770 fi
35771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35772 ac_ext=c
35773 ac_cpp='$CPP $CPPFLAGS'
35774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35777
35778
35779 fi
35780
35781 fi
35782 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
35783 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
35784
35785 if test x$glibcxx_cv_func__isinff_use = x"yes"; then
35786
35787 for ac_func in _isinff
35788 do
35789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35790 echo "$as_me:$LINENO: checking for $ac_func" >&5
35791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35792 if eval "test \"\${$as_ac_var+set}\" = set"; then
35793 echo $ECHO_N "(cached) $ECHO_C" >&6
35794 else
35795 if test x$gcc_no_link = xyes; then
35796 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35797 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35798 { (exit 1); exit 1; }; }
35799 fi
35800 cat >conftest.$ac_ext <<_ACEOF
35801 /* confdefs.h. */
35802 _ACEOF
35803 cat confdefs.h >>conftest.$ac_ext
35804 cat >>conftest.$ac_ext <<_ACEOF
35805 /* end confdefs.h. */
35806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35808 #define $ac_func innocuous_$ac_func
35809
35810 /* System header to define __stub macros and hopefully few prototypes,
35811 which can conflict with char $ac_func (); below.
35812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35813 <limits.h> exists even on freestanding compilers. */
35814
35815 #ifdef __STDC__
35816 # include <limits.h>
35817 #else
35818 # include <assert.h>
35819 #endif
35820
35821 #undef $ac_func
35822
35823 /* Override any gcc2 internal prototype to avoid an error. */
35824 #ifdef __cplusplus
35825 extern "C"
35826 {
35827 #endif
35828 /* We use char because int might match the return type of a gcc2
35829 builtin and then its argument prototype would still apply. */
35830 char $ac_func ();
35831 /* The GNU C library defines this for functions which it implements
35832 to always fail with ENOSYS. Some functions are actually named
35833 something starting with __ and the normal name is an alias. */
35834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35835 choke me
35836 #else
35837 char (*f) () = $ac_func;
35838 #endif
35839 #ifdef __cplusplus
35840 }
35841 #endif
35842
35843 int
35844 main ()
35845 {
35846 return f != $ac_func;
35847 ;
35848 return 0;
35849 }
35850 _ACEOF
35851 rm -f conftest.$ac_objext conftest$ac_exeext
35852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35853 (eval $ac_link) 2>conftest.er1
35854 ac_status=$?
35855 grep -v '^ *+' conftest.er1 >conftest.err
35856 rm -f conftest.er1
35857 cat conftest.err >&5
35858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35859 (exit $ac_status); } &&
35860 { ac_try='test -z "$ac_c_werror_flag"
35861 || test ! -s conftest.err'
35862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35863 (eval $ac_try) 2>&5
35864 ac_status=$?
35865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866 (exit $ac_status); }; } &&
35867 { ac_try='test -s conftest$ac_exeext'
35868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35869 (eval $ac_try) 2>&5
35870 ac_status=$?
35871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35872 (exit $ac_status); }; }; then
35873 eval "$as_ac_var=yes"
35874 else
35875 echo "$as_me: failed program was:" >&5
35876 sed 's/^/| /' conftest.$ac_ext >&5
35877
35878 eval "$as_ac_var=no"
35879 fi
35880 rm -f conftest.err conftest.$ac_objext \
35881 conftest$ac_exeext conftest.$ac_ext
35882 fi
35883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35885 if test `eval echo '${'$as_ac_var'}'` = yes; then
35886 cat >>confdefs.h <<_ACEOF
35887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35888 _ACEOF
35889
35890 fi
35891 done
35892
35893 fi
35894 fi
35895
35896
35897
35898 echo "$as_me:$LINENO: checking for atan2f declaration" >&5
35899 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
35900 if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
35901 if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
35902 echo $ECHO_N "(cached) $ECHO_C" >&6
35903 else
35904
35905
35906
35907 ac_ext=cc
35908 ac_cpp='$CXXCPP $CPPFLAGS'
35909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35912
35913 cat >conftest.$ac_ext <<_ACEOF
35914 /* confdefs.h. */
35915 _ACEOF
35916 cat confdefs.h >>conftest.$ac_ext
35917 cat >>conftest.$ac_ext <<_ACEOF
35918 /* end confdefs.h. */
35919 #include <math.h>
35920 int
35921 main ()
35922 {
35923 atan2f(0, 0);
35924 ;
35925 return 0;
35926 }
35927 _ACEOF
35928 rm -f conftest.$ac_objext
35929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35930 (eval $ac_compile) 2>conftest.er1
35931 ac_status=$?
35932 grep -v '^ *+' conftest.er1 >conftest.err
35933 rm -f conftest.er1
35934 cat conftest.err >&5
35935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35936 (exit $ac_status); } &&
35937 { ac_try='test -z "$ac_cxx_werror_flag"
35938 || test ! -s conftest.err'
35939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35940 (eval $ac_try) 2>&5
35941 ac_status=$?
35942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35943 (exit $ac_status); }; } &&
35944 { ac_try='test -s conftest.$ac_objext'
35945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35946 (eval $ac_try) 2>&5
35947 ac_status=$?
35948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35949 (exit $ac_status); }; }; then
35950 glibcxx_cv_func_atan2f_use=yes
35951 else
35952 echo "$as_me: failed program was:" >&5
35953 sed 's/^/| /' conftest.$ac_ext >&5
35954
35955 glibcxx_cv_func_atan2f_use=no
35956 fi
35957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35958 ac_ext=c
35959 ac_cpp='$CPP $CPPFLAGS'
35960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35963
35964
35965 fi
35966
35967 fi
35968 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
35969 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
35970
35971 if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
35972
35973 for ac_func in atan2f
35974 do
35975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35976 echo "$as_me:$LINENO: checking for $ac_func" >&5
35977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35978 if eval "test \"\${$as_ac_var+set}\" = set"; then
35979 echo $ECHO_N "(cached) $ECHO_C" >&6
35980 else
35981 if test x$gcc_no_link = xyes; then
35982 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35983 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35984 { (exit 1); exit 1; }; }
35985 fi
35986 cat >conftest.$ac_ext <<_ACEOF
35987 /* confdefs.h. */
35988 _ACEOF
35989 cat confdefs.h >>conftest.$ac_ext
35990 cat >>conftest.$ac_ext <<_ACEOF
35991 /* end confdefs.h. */
35992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35994 #define $ac_func innocuous_$ac_func
35995
35996 /* System header to define __stub macros and hopefully few prototypes,
35997 which can conflict with char $ac_func (); below.
35998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35999 <limits.h> exists even on freestanding compilers. */
36000
36001 #ifdef __STDC__
36002 # include <limits.h>
36003 #else
36004 # include <assert.h>
36005 #endif
36006
36007 #undef $ac_func
36008
36009 /* Override any gcc2 internal prototype to avoid an error. */
36010 #ifdef __cplusplus
36011 extern "C"
36012 {
36013 #endif
36014 /* We use char because int might match the return type of a gcc2
36015 builtin and then its argument prototype would still apply. */
36016 char $ac_func ();
36017 /* The GNU C library defines this for functions which it implements
36018 to always fail with ENOSYS. Some functions are actually named
36019 something starting with __ and the normal name is an alias. */
36020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36021 choke me
36022 #else
36023 char (*f) () = $ac_func;
36024 #endif
36025 #ifdef __cplusplus
36026 }
36027 #endif
36028
36029 int
36030 main ()
36031 {
36032 return f != $ac_func;
36033 ;
36034 return 0;
36035 }
36036 _ACEOF
36037 rm -f conftest.$ac_objext conftest$ac_exeext
36038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36039 (eval $ac_link) 2>conftest.er1
36040 ac_status=$?
36041 grep -v '^ *+' conftest.er1 >conftest.err
36042 rm -f conftest.er1
36043 cat conftest.err >&5
36044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36045 (exit $ac_status); } &&
36046 { ac_try='test -z "$ac_c_werror_flag"
36047 || test ! -s conftest.err'
36048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36049 (eval $ac_try) 2>&5
36050 ac_status=$?
36051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36052 (exit $ac_status); }; } &&
36053 { ac_try='test -s conftest$ac_exeext'
36054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36055 (eval $ac_try) 2>&5
36056 ac_status=$?
36057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36058 (exit $ac_status); }; }; then
36059 eval "$as_ac_var=yes"
36060 else
36061 echo "$as_me: failed program was:" >&5
36062 sed 's/^/| /' conftest.$ac_ext >&5
36063
36064 eval "$as_ac_var=no"
36065 fi
36066 rm -f conftest.err conftest.$ac_objext \
36067 conftest$ac_exeext conftest.$ac_ext
36068 fi
36069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36071 if test `eval echo '${'$as_ac_var'}'` = yes; then
36072 cat >>confdefs.h <<_ACEOF
36073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36074 _ACEOF
36075
36076 fi
36077 done
36078
36079 else
36080
36081 echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
36082 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
36083 if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
36084 if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
36085 echo $ECHO_N "(cached) $ECHO_C" >&6
36086 else
36087
36088
36089
36090 ac_ext=cc
36091 ac_cpp='$CXXCPP $CPPFLAGS'
36092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36095
36096 cat >conftest.$ac_ext <<_ACEOF
36097 /* confdefs.h. */
36098 _ACEOF
36099 cat confdefs.h >>conftest.$ac_ext
36100 cat >>conftest.$ac_ext <<_ACEOF
36101 /* end confdefs.h. */
36102 #include <math.h>
36103 int
36104 main ()
36105 {
36106 _atan2f(0, 0);
36107 ;
36108 return 0;
36109 }
36110 _ACEOF
36111 rm -f conftest.$ac_objext
36112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36113 (eval $ac_compile) 2>conftest.er1
36114 ac_status=$?
36115 grep -v '^ *+' conftest.er1 >conftest.err
36116 rm -f conftest.er1
36117 cat conftest.err >&5
36118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119 (exit $ac_status); } &&
36120 { ac_try='test -z "$ac_cxx_werror_flag"
36121 || test ! -s conftest.err'
36122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36123 (eval $ac_try) 2>&5
36124 ac_status=$?
36125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126 (exit $ac_status); }; } &&
36127 { ac_try='test -s conftest.$ac_objext'
36128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36129 (eval $ac_try) 2>&5
36130 ac_status=$?
36131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132 (exit $ac_status); }; }; then
36133 glibcxx_cv_func__atan2f_use=yes
36134 else
36135 echo "$as_me: failed program was:" >&5
36136 sed 's/^/| /' conftest.$ac_ext >&5
36137
36138 glibcxx_cv_func__atan2f_use=no
36139 fi
36140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36141 ac_ext=c
36142 ac_cpp='$CPP $CPPFLAGS'
36143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36146
36147
36148 fi
36149
36150 fi
36151 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
36152 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
36153
36154 if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
36155
36156 for ac_func in _atan2f
36157 do
36158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36159 echo "$as_me:$LINENO: checking for $ac_func" >&5
36160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36161 if eval "test \"\${$as_ac_var+set}\" = set"; then
36162 echo $ECHO_N "(cached) $ECHO_C" >&6
36163 else
36164 if test x$gcc_no_link = xyes; then
36165 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36166 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36167 { (exit 1); exit 1; }; }
36168 fi
36169 cat >conftest.$ac_ext <<_ACEOF
36170 /* confdefs.h. */
36171 _ACEOF
36172 cat confdefs.h >>conftest.$ac_ext
36173 cat >>conftest.$ac_ext <<_ACEOF
36174 /* end confdefs.h. */
36175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36177 #define $ac_func innocuous_$ac_func
36178
36179 /* System header to define __stub macros and hopefully few prototypes,
36180 which can conflict with char $ac_func (); below.
36181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36182 <limits.h> exists even on freestanding compilers. */
36183
36184 #ifdef __STDC__
36185 # include <limits.h>
36186 #else
36187 # include <assert.h>
36188 #endif
36189
36190 #undef $ac_func
36191
36192 /* Override any gcc2 internal prototype to avoid an error. */
36193 #ifdef __cplusplus
36194 extern "C"
36195 {
36196 #endif
36197 /* We use char because int might match the return type of a gcc2
36198 builtin and then its argument prototype would still apply. */
36199 char $ac_func ();
36200 /* The GNU C library defines this for functions which it implements
36201 to always fail with ENOSYS. Some functions are actually named
36202 something starting with __ and the normal name is an alias. */
36203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36204 choke me
36205 #else
36206 char (*f) () = $ac_func;
36207 #endif
36208 #ifdef __cplusplus
36209 }
36210 #endif
36211
36212 int
36213 main ()
36214 {
36215 return f != $ac_func;
36216 ;
36217 return 0;
36218 }
36219 _ACEOF
36220 rm -f conftest.$ac_objext conftest$ac_exeext
36221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36222 (eval $ac_link) 2>conftest.er1
36223 ac_status=$?
36224 grep -v '^ *+' conftest.er1 >conftest.err
36225 rm -f conftest.er1
36226 cat conftest.err >&5
36227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228 (exit $ac_status); } &&
36229 { ac_try='test -z "$ac_c_werror_flag"
36230 || test ! -s conftest.err'
36231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36232 (eval $ac_try) 2>&5
36233 ac_status=$?
36234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235 (exit $ac_status); }; } &&
36236 { ac_try='test -s conftest$ac_exeext'
36237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36238 (eval $ac_try) 2>&5
36239 ac_status=$?
36240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241 (exit $ac_status); }; }; then
36242 eval "$as_ac_var=yes"
36243 else
36244 echo "$as_me: failed program was:" >&5
36245 sed 's/^/| /' conftest.$ac_ext >&5
36246
36247 eval "$as_ac_var=no"
36248 fi
36249 rm -f conftest.err conftest.$ac_objext \
36250 conftest$ac_exeext conftest.$ac_ext
36251 fi
36252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36254 if test `eval echo '${'$as_ac_var'}'` = yes; then
36255 cat >>confdefs.h <<_ACEOF
36256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36257 _ACEOF
36258
36259 fi
36260 done
36261
36262 fi
36263 fi
36264
36265
36266
36267 echo "$as_me:$LINENO: checking for fabsf declaration" >&5
36268 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
36269 if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
36270 if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
36271 echo $ECHO_N "(cached) $ECHO_C" >&6
36272 else
36273
36274
36275
36276 ac_ext=cc
36277 ac_cpp='$CXXCPP $CPPFLAGS'
36278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36281
36282 cat >conftest.$ac_ext <<_ACEOF
36283 /* confdefs.h. */
36284 _ACEOF
36285 cat confdefs.h >>conftest.$ac_ext
36286 cat >>conftest.$ac_ext <<_ACEOF
36287 /* end confdefs.h. */
36288 #include <math.h>
36289 #ifdef HAVE_IEEEFP_H
36290 #include <ieeefp.h>
36291 #endif
36292
36293 int
36294 main ()
36295 {
36296 fabsf(0);
36297 ;
36298 return 0;
36299 }
36300 _ACEOF
36301 rm -f conftest.$ac_objext
36302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36303 (eval $ac_compile) 2>conftest.er1
36304 ac_status=$?
36305 grep -v '^ *+' conftest.er1 >conftest.err
36306 rm -f conftest.er1
36307 cat conftest.err >&5
36308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36309 (exit $ac_status); } &&
36310 { ac_try='test -z "$ac_cxx_werror_flag"
36311 || test ! -s conftest.err'
36312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36313 (eval $ac_try) 2>&5
36314 ac_status=$?
36315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36316 (exit $ac_status); }; } &&
36317 { ac_try='test -s conftest.$ac_objext'
36318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36319 (eval $ac_try) 2>&5
36320 ac_status=$?
36321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322 (exit $ac_status); }; }; then
36323 glibcxx_cv_func_fabsf_use=yes
36324 else
36325 echo "$as_me: failed program was:" >&5
36326 sed 's/^/| /' conftest.$ac_ext >&5
36327
36328 glibcxx_cv_func_fabsf_use=no
36329 fi
36330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36331 ac_ext=c
36332 ac_cpp='$CPP $CPPFLAGS'
36333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36336
36337
36338 fi
36339
36340 fi
36341 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
36342 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
36343
36344 if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
36345
36346 for ac_func in fabsf
36347 do
36348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36349 echo "$as_me:$LINENO: checking for $ac_func" >&5
36350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36351 if eval "test \"\${$as_ac_var+set}\" = set"; then
36352 echo $ECHO_N "(cached) $ECHO_C" >&6
36353 else
36354 if test x$gcc_no_link = xyes; then
36355 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36357 { (exit 1); exit 1; }; }
36358 fi
36359 cat >conftest.$ac_ext <<_ACEOF
36360 /* confdefs.h. */
36361 _ACEOF
36362 cat confdefs.h >>conftest.$ac_ext
36363 cat >>conftest.$ac_ext <<_ACEOF
36364 /* end confdefs.h. */
36365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36367 #define $ac_func innocuous_$ac_func
36368
36369 /* System header to define __stub macros and hopefully few prototypes,
36370 which can conflict with char $ac_func (); below.
36371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36372 <limits.h> exists even on freestanding compilers. */
36373
36374 #ifdef __STDC__
36375 # include <limits.h>
36376 #else
36377 # include <assert.h>
36378 #endif
36379
36380 #undef $ac_func
36381
36382 /* Override any gcc2 internal prototype to avoid an error. */
36383 #ifdef __cplusplus
36384 extern "C"
36385 {
36386 #endif
36387 /* We use char because int might match the return type of a gcc2
36388 builtin and then its argument prototype would still apply. */
36389 char $ac_func ();
36390 /* The GNU C library defines this for functions which it implements
36391 to always fail with ENOSYS. Some functions are actually named
36392 something starting with __ and the normal name is an alias. */
36393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36394 choke me
36395 #else
36396 char (*f) () = $ac_func;
36397 #endif
36398 #ifdef __cplusplus
36399 }
36400 #endif
36401
36402 int
36403 main ()
36404 {
36405 return f != $ac_func;
36406 ;
36407 return 0;
36408 }
36409 _ACEOF
36410 rm -f conftest.$ac_objext conftest$ac_exeext
36411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36412 (eval $ac_link) 2>conftest.er1
36413 ac_status=$?
36414 grep -v '^ *+' conftest.er1 >conftest.err
36415 rm -f conftest.er1
36416 cat conftest.err >&5
36417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36418 (exit $ac_status); } &&
36419 { ac_try='test -z "$ac_c_werror_flag"
36420 || test ! -s conftest.err'
36421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36422 (eval $ac_try) 2>&5
36423 ac_status=$?
36424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425 (exit $ac_status); }; } &&
36426 { ac_try='test -s conftest$ac_exeext'
36427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36428 (eval $ac_try) 2>&5
36429 ac_status=$?
36430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36431 (exit $ac_status); }; }; then
36432 eval "$as_ac_var=yes"
36433 else
36434 echo "$as_me: failed program was:" >&5
36435 sed 's/^/| /' conftest.$ac_ext >&5
36436
36437 eval "$as_ac_var=no"
36438 fi
36439 rm -f conftest.err conftest.$ac_objext \
36440 conftest$ac_exeext conftest.$ac_ext
36441 fi
36442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36444 if test `eval echo '${'$as_ac_var'}'` = yes; then
36445 cat >>confdefs.h <<_ACEOF
36446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36447 _ACEOF
36448
36449 fi
36450 done
36451
36452 else
36453
36454 echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
36455 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
36456 if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
36457 if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
36458 echo $ECHO_N "(cached) $ECHO_C" >&6
36459 else
36460
36461
36462
36463 ac_ext=cc
36464 ac_cpp='$CXXCPP $CPPFLAGS'
36465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36468
36469 cat >conftest.$ac_ext <<_ACEOF
36470 /* confdefs.h. */
36471 _ACEOF
36472 cat confdefs.h >>conftest.$ac_ext
36473 cat >>conftest.$ac_ext <<_ACEOF
36474 /* end confdefs.h. */
36475 #include <math.h>
36476 #ifdef HAVE_IEEEFP_H
36477 #include <ieeefp.h>
36478 #endif
36479
36480 int
36481 main ()
36482 {
36483 _fabsf(0);
36484 ;
36485 return 0;
36486 }
36487 _ACEOF
36488 rm -f conftest.$ac_objext
36489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36490 (eval $ac_compile) 2>conftest.er1
36491 ac_status=$?
36492 grep -v '^ *+' conftest.er1 >conftest.err
36493 rm -f conftest.er1
36494 cat conftest.err >&5
36495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496 (exit $ac_status); } &&
36497 { ac_try='test -z "$ac_cxx_werror_flag"
36498 || test ! -s conftest.err'
36499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36500 (eval $ac_try) 2>&5
36501 ac_status=$?
36502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36503 (exit $ac_status); }; } &&
36504 { ac_try='test -s conftest.$ac_objext'
36505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36506 (eval $ac_try) 2>&5
36507 ac_status=$?
36508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36509 (exit $ac_status); }; }; then
36510 glibcxx_cv_func__fabsf_use=yes
36511 else
36512 echo "$as_me: failed program was:" >&5
36513 sed 's/^/| /' conftest.$ac_ext >&5
36514
36515 glibcxx_cv_func__fabsf_use=no
36516 fi
36517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36518 ac_ext=c
36519 ac_cpp='$CPP $CPPFLAGS'
36520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36523
36524
36525 fi
36526
36527 fi
36528 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
36529 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
36530
36531 if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
36532
36533 for ac_func in _fabsf
36534 do
36535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36536 echo "$as_me:$LINENO: checking for $ac_func" >&5
36537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36538 if eval "test \"\${$as_ac_var+set}\" = set"; then
36539 echo $ECHO_N "(cached) $ECHO_C" >&6
36540 else
36541 if test x$gcc_no_link = xyes; then
36542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36544 { (exit 1); exit 1; }; }
36545 fi
36546 cat >conftest.$ac_ext <<_ACEOF
36547 /* confdefs.h. */
36548 _ACEOF
36549 cat confdefs.h >>conftest.$ac_ext
36550 cat >>conftest.$ac_ext <<_ACEOF
36551 /* end confdefs.h. */
36552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36554 #define $ac_func innocuous_$ac_func
36555
36556 /* System header to define __stub macros and hopefully few prototypes,
36557 which can conflict with char $ac_func (); below.
36558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36559 <limits.h> exists even on freestanding compilers. */
36560
36561 #ifdef __STDC__
36562 # include <limits.h>
36563 #else
36564 # include <assert.h>
36565 #endif
36566
36567 #undef $ac_func
36568
36569 /* Override any gcc2 internal prototype to avoid an error. */
36570 #ifdef __cplusplus
36571 extern "C"
36572 {
36573 #endif
36574 /* We use char because int might match the return type of a gcc2
36575 builtin and then its argument prototype would still apply. */
36576 char $ac_func ();
36577 /* The GNU C library defines this for functions which it implements
36578 to always fail with ENOSYS. Some functions are actually named
36579 something starting with __ and the normal name is an alias. */
36580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36581 choke me
36582 #else
36583 char (*f) () = $ac_func;
36584 #endif
36585 #ifdef __cplusplus
36586 }
36587 #endif
36588
36589 int
36590 main ()
36591 {
36592 return f != $ac_func;
36593 ;
36594 return 0;
36595 }
36596 _ACEOF
36597 rm -f conftest.$ac_objext conftest$ac_exeext
36598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36599 (eval $ac_link) 2>conftest.er1
36600 ac_status=$?
36601 grep -v '^ *+' conftest.er1 >conftest.err
36602 rm -f conftest.er1
36603 cat conftest.err >&5
36604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605 (exit $ac_status); } &&
36606 { ac_try='test -z "$ac_c_werror_flag"
36607 || test ! -s conftest.err'
36608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36609 (eval $ac_try) 2>&5
36610 ac_status=$?
36611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36612 (exit $ac_status); }; } &&
36613 { ac_try='test -s conftest$ac_exeext'
36614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36615 (eval $ac_try) 2>&5
36616 ac_status=$?
36617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36618 (exit $ac_status); }; }; then
36619 eval "$as_ac_var=yes"
36620 else
36621 echo "$as_me: failed program was:" >&5
36622 sed 's/^/| /' conftest.$ac_ext >&5
36623
36624 eval "$as_ac_var=no"
36625 fi
36626 rm -f conftest.err conftest.$ac_objext \
36627 conftest$ac_exeext conftest.$ac_ext
36628 fi
36629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36631 if test `eval echo '${'$as_ac_var'}'` = yes; then
36632 cat >>confdefs.h <<_ACEOF
36633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36634 _ACEOF
36635
36636 fi
36637 done
36638
36639 fi
36640 fi
36641
36642
36643
36644 echo "$as_me:$LINENO: checking for fmodf declaration" >&5
36645 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
36646 if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
36647 if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
36648 echo $ECHO_N "(cached) $ECHO_C" >&6
36649 else
36650
36651
36652
36653 ac_ext=cc
36654 ac_cpp='$CXXCPP $CPPFLAGS'
36655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36658
36659 cat >conftest.$ac_ext <<_ACEOF
36660 /* confdefs.h. */
36661 _ACEOF
36662 cat confdefs.h >>conftest.$ac_ext
36663 cat >>conftest.$ac_ext <<_ACEOF
36664 /* end confdefs.h. */
36665 #include <math.h>
36666 int
36667 main ()
36668 {
36669 fmodf(0, 0);
36670 ;
36671 return 0;
36672 }
36673 _ACEOF
36674 rm -f conftest.$ac_objext
36675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36676 (eval $ac_compile) 2>conftest.er1
36677 ac_status=$?
36678 grep -v '^ *+' conftest.er1 >conftest.err
36679 rm -f conftest.er1
36680 cat conftest.err >&5
36681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36682 (exit $ac_status); } &&
36683 { ac_try='test -z "$ac_cxx_werror_flag"
36684 || test ! -s conftest.err'
36685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36686 (eval $ac_try) 2>&5
36687 ac_status=$?
36688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36689 (exit $ac_status); }; } &&
36690 { ac_try='test -s conftest.$ac_objext'
36691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36692 (eval $ac_try) 2>&5
36693 ac_status=$?
36694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36695 (exit $ac_status); }; }; then
36696 glibcxx_cv_func_fmodf_use=yes
36697 else
36698 echo "$as_me: failed program was:" >&5
36699 sed 's/^/| /' conftest.$ac_ext >&5
36700
36701 glibcxx_cv_func_fmodf_use=no
36702 fi
36703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36704 ac_ext=c
36705 ac_cpp='$CPP $CPPFLAGS'
36706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36709
36710
36711 fi
36712
36713 fi
36714 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
36715 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
36716
36717 if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
36718
36719 for ac_func in fmodf
36720 do
36721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36722 echo "$as_me:$LINENO: checking for $ac_func" >&5
36723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36724 if eval "test \"\${$as_ac_var+set}\" = set"; then
36725 echo $ECHO_N "(cached) $ECHO_C" >&6
36726 else
36727 if test x$gcc_no_link = xyes; then
36728 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36729 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36730 { (exit 1); exit 1; }; }
36731 fi
36732 cat >conftest.$ac_ext <<_ACEOF
36733 /* confdefs.h. */
36734 _ACEOF
36735 cat confdefs.h >>conftest.$ac_ext
36736 cat >>conftest.$ac_ext <<_ACEOF
36737 /* end confdefs.h. */
36738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36740 #define $ac_func innocuous_$ac_func
36741
36742 /* System header to define __stub macros and hopefully few prototypes,
36743 which can conflict with char $ac_func (); below.
36744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36745 <limits.h> exists even on freestanding compilers. */
36746
36747 #ifdef __STDC__
36748 # include <limits.h>
36749 #else
36750 # include <assert.h>
36751 #endif
36752
36753 #undef $ac_func
36754
36755 /* Override any gcc2 internal prototype to avoid an error. */
36756 #ifdef __cplusplus
36757 extern "C"
36758 {
36759 #endif
36760 /* We use char because int might match the return type of a gcc2
36761 builtin and then its argument prototype would still apply. */
36762 char $ac_func ();
36763 /* The GNU C library defines this for functions which it implements
36764 to always fail with ENOSYS. Some functions are actually named
36765 something starting with __ and the normal name is an alias. */
36766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36767 choke me
36768 #else
36769 char (*f) () = $ac_func;
36770 #endif
36771 #ifdef __cplusplus
36772 }
36773 #endif
36774
36775 int
36776 main ()
36777 {
36778 return f != $ac_func;
36779 ;
36780 return 0;
36781 }
36782 _ACEOF
36783 rm -f conftest.$ac_objext conftest$ac_exeext
36784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36785 (eval $ac_link) 2>conftest.er1
36786 ac_status=$?
36787 grep -v '^ *+' conftest.er1 >conftest.err
36788 rm -f conftest.er1
36789 cat conftest.err >&5
36790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791 (exit $ac_status); } &&
36792 { ac_try='test -z "$ac_c_werror_flag"
36793 || test ! -s conftest.err'
36794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36795 (eval $ac_try) 2>&5
36796 ac_status=$?
36797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36798 (exit $ac_status); }; } &&
36799 { ac_try='test -s conftest$ac_exeext'
36800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36801 (eval $ac_try) 2>&5
36802 ac_status=$?
36803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36804 (exit $ac_status); }; }; then
36805 eval "$as_ac_var=yes"
36806 else
36807 echo "$as_me: failed program was:" >&5
36808 sed 's/^/| /' conftest.$ac_ext >&5
36809
36810 eval "$as_ac_var=no"
36811 fi
36812 rm -f conftest.err conftest.$ac_objext \
36813 conftest$ac_exeext conftest.$ac_ext
36814 fi
36815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36817 if test `eval echo '${'$as_ac_var'}'` = yes; then
36818 cat >>confdefs.h <<_ACEOF
36819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36820 _ACEOF
36821
36822 fi
36823 done
36824
36825 else
36826
36827 echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
36828 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
36829 if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
36830 if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
36831 echo $ECHO_N "(cached) $ECHO_C" >&6
36832 else
36833
36834
36835
36836 ac_ext=cc
36837 ac_cpp='$CXXCPP $CPPFLAGS'
36838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36841
36842 cat >conftest.$ac_ext <<_ACEOF
36843 /* confdefs.h. */
36844 _ACEOF
36845 cat confdefs.h >>conftest.$ac_ext
36846 cat >>conftest.$ac_ext <<_ACEOF
36847 /* end confdefs.h. */
36848 #include <math.h>
36849 int
36850 main ()
36851 {
36852 _fmodf(0, 0);
36853 ;
36854 return 0;
36855 }
36856 _ACEOF
36857 rm -f conftest.$ac_objext
36858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36859 (eval $ac_compile) 2>conftest.er1
36860 ac_status=$?
36861 grep -v '^ *+' conftest.er1 >conftest.err
36862 rm -f conftest.er1
36863 cat conftest.err >&5
36864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36865 (exit $ac_status); } &&
36866 { ac_try='test -z "$ac_cxx_werror_flag"
36867 || test ! -s conftest.err'
36868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36869 (eval $ac_try) 2>&5
36870 ac_status=$?
36871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36872 (exit $ac_status); }; } &&
36873 { ac_try='test -s conftest.$ac_objext'
36874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36875 (eval $ac_try) 2>&5
36876 ac_status=$?
36877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36878 (exit $ac_status); }; }; then
36879 glibcxx_cv_func__fmodf_use=yes
36880 else
36881 echo "$as_me: failed program was:" >&5
36882 sed 's/^/| /' conftest.$ac_ext >&5
36883
36884 glibcxx_cv_func__fmodf_use=no
36885 fi
36886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36887 ac_ext=c
36888 ac_cpp='$CPP $CPPFLAGS'
36889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36892
36893
36894 fi
36895
36896 fi
36897 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
36898 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
36899
36900 if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
36901
36902 for ac_func in _fmodf
36903 do
36904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36905 echo "$as_me:$LINENO: checking for $ac_func" >&5
36906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36907 if eval "test \"\${$as_ac_var+set}\" = set"; then
36908 echo $ECHO_N "(cached) $ECHO_C" >&6
36909 else
36910 if test x$gcc_no_link = xyes; then
36911 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36912 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36913 { (exit 1); exit 1; }; }
36914 fi
36915 cat >conftest.$ac_ext <<_ACEOF
36916 /* confdefs.h. */
36917 _ACEOF
36918 cat confdefs.h >>conftest.$ac_ext
36919 cat >>conftest.$ac_ext <<_ACEOF
36920 /* end confdefs.h. */
36921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36923 #define $ac_func innocuous_$ac_func
36924
36925 /* System header to define __stub macros and hopefully few prototypes,
36926 which can conflict with char $ac_func (); below.
36927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36928 <limits.h> exists even on freestanding compilers. */
36929
36930 #ifdef __STDC__
36931 # include <limits.h>
36932 #else
36933 # include <assert.h>
36934 #endif
36935
36936 #undef $ac_func
36937
36938 /* Override any gcc2 internal prototype to avoid an error. */
36939 #ifdef __cplusplus
36940 extern "C"
36941 {
36942 #endif
36943 /* We use char because int might match the return type of a gcc2
36944 builtin and then its argument prototype would still apply. */
36945 char $ac_func ();
36946 /* The GNU C library defines this for functions which it implements
36947 to always fail with ENOSYS. Some functions are actually named
36948 something starting with __ and the normal name is an alias. */
36949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36950 choke me
36951 #else
36952 char (*f) () = $ac_func;
36953 #endif
36954 #ifdef __cplusplus
36955 }
36956 #endif
36957
36958 int
36959 main ()
36960 {
36961 return f != $ac_func;
36962 ;
36963 return 0;
36964 }
36965 _ACEOF
36966 rm -f conftest.$ac_objext conftest$ac_exeext
36967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36968 (eval $ac_link) 2>conftest.er1
36969 ac_status=$?
36970 grep -v '^ *+' conftest.er1 >conftest.err
36971 rm -f conftest.er1
36972 cat conftest.err >&5
36973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36974 (exit $ac_status); } &&
36975 { ac_try='test -z "$ac_c_werror_flag"
36976 || test ! -s conftest.err'
36977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36978 (eval $ac_try) 2>&5
36979 ac_status=$?
36980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981 (exit $ac_status); }; } &&
36982 { ac_try='test -s conftest$ac_exeext'
36983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36984 (eval $ac_try) 2>&5
36985 ac_status=$?
36986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987 (exit $ac_status); }; }; then
36988 eval "$as_ac_var=yes"
36989 else
36990 echo "$as_me: failed program was:" >&5
36991 sed 's/^/| /' conftest.$ac_ext >&5
36992
36993 eval "$as_ac_var=no"
36994 fi
36995 rm -f conftest.err conftest.$ac_objext \
36996 conftest$ac_exeext conftest.$ac_ext
36997 fi
36998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37000 if test `eval echo '${'$as_ac_var'}'` = yes; then
37001 cat >>confdefs.h <<_ACEOF
37002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37003 _ACEOF
37004
37005 fi
37006 done
37007
37008 fi
37009 fi
37010
37011
37012
37013 echo "$as_me:$LINENO: checking for frexpf declaration" >&5
37014 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
37015 if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
37016 if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
37017 echo $ECHO_N "(cached) $ECHO_C" >&6
37018 else
37019
37020
37021
37022 ac_ext=cc
37023 ac_cpp='$CXXCPP $CPPFLAGS'
37024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37027
37028 cat >conftest.$ac_ext <<_ACEOF
37029 /* confdefs.h. */
37030 _ACEOF
37031 cat confdefs.h >>conftest.$ac_ext
37032 cat >>conftest.$ac_ext <<_ACEOF
37033 /* end confdefs.h. */
37034 #include <math.h>
37035 int
37036 main ()
37037 {
37038 frexpf(0, 0);
37039 ;
37040 return 0;
37041 }
37042 _ACEOF
37043 rm -f conftest.$ac_objext
37044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37045 (eval $ac_compile) 2>conftest.er1
37046 ac_status=$?
37047 grep -v '^ *+' conftest.er1 >conftest.err
37048 rm -f conftest.er1
37049 cat conftest.err >&5
37050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37051 (exit $ac_status); } &&
37052 { ac_try='test -z "$ac_cxx_werror_flag"
37053 || test ! -s conftest.err'
37054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37055 (eval $ac_try) 2>&5
37056 ac_status=$?
37057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37058 (exit $ac_status); }; } &&
37059 { ac_try='test -s conftest.$ac_objext'
37060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37061 (eval $ac_try) 2>&5
37062 ac_status=$?
37063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37064 (exit $ac_status); }; }; then
37065 glibcxx_cv_func_frexpf_use=yes
37066 else
37067 echo "$as_me: failed program was:" >&5
37068 sed 's/^/| /' conftest.$ac_ext >&5
37069
37070 glibcxx_cv_func_frexpf_use=no
37071 fi
37072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37073 ac_ext=c
37074 ac_cpp='$CPP $CPPFLAGS'
37075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37078
37079
37080 fi
37081
37082 fi
37083 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
37084 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
37085
37086 if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
37087
37088 for ac_func in frexpf
37089 do
37090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37091 echo "$as_me:$LINENO: checking for $ac_func" >&5
37092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37093 if eval "test \"\${$as_ac_var+set}\" = set"; then
37094 echo $ECHO_N "(cached) $ECHO_C" >&6
37095 else
37096 if test x$gcc_no_link = xyes; then
37097 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37099 { (exit 1); exit 1; }; }
37100 fi
37101 cat >conftest.$ac_ext <<_ACEOF
37102 /* confdefs.h. */
37103 _ACEOF
37104 cat confdefs.h >>conftest.$ac_ext
37105 cat >>conftest.$ac_ext <<_ACEOF
37106 /* end confdefs.h. */
37107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37109 #define $ac_func innocuous_$ac_func
37110
37111 /* System header to define __stub macros and hopefully few prototypes,
37112 which can conflict with char $ac_func (); below.
37113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37114 <limits.h> exists even on freestanding compilers. */
37115
37116 #ifdef __STDC__
37117 # include <limits.h>
37118 #else
37119 # include <assert.h>
37120 #endif
37121
37122 #undef $ac_func
37123
37124 /* Override any gcc2 internal prototype to avoid an error. */
37125 #ifdef __cplusplus
37126 extern "C"
37127 {
37128 #endif
37129 /* We use char because int might match the return type of a gcc2
37130 builtin and then its argument prototype would still apply. */
37131 char $ac_func ();
37132 /* The GNU C library defines this for functions which it implements
37133 to always fail with ENOSYS. Some functions are actually named
37134 something starting with __ and the normal name is an alias. */
37135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37136 choke me
37137 #else
37138 char (*f) () = $ac_func;
37139 #endif
37140 #ifdef __cplusplus
37141 }
37142 #endif
37143
37144 int
37145 main ()
37146 {
37147 return f != $ac_func;
37148 ;
37149 return 0;
37150 }
37151 _ACEOF
37152 rm -f conftest.$ac_objext conftest$ac_exeext
37153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37154 (eval $ac_link) 2>conftest.er1
37155 ac_status=$?
37156 grep -v '^ *+' conftest.er1 >conftest.err
37157 rm -f conftest.er1
37158 cat conftest.err >&5
37159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37160 (exit $ac_status); } &&
37161 { ac_try='test -z "$ac_c_werror_flag"
37162 || test ! -s conftest.err'
37163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37164 (eval $ac_try) 2>&5
37165 ac_status=$?
37166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167 (exit $ac_status); }; } &&
37168 { ac_try='test -s conftest$ac_exeext'
37169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37170 (eval $ac_try) 2>&5
37171 ac_status=$?
37172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173 (exit $ac_status); }; }; then
37174 eval "$as_ac_var=yes"
37175 else
37176 echo "$as_me: failed program was:" >&5
37177 sed 's/^/| /' conftest.$ac_ext >&5
37178
37179 eval "$as_ac_var=no"
37180 fi
37181 rm -f conftest.err conftest.$ac_objext \
37182 conftest$ac_exeext conftest.$ac_ext
37183 fi
37184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37186 if test `eval echo '${'$as_ac_var'}'` = yes; then
37187 cat >>confdefs.h <<_ACEOF
37188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37189 _ACEOF
37190
37191 fi
37192 done
37193
37194 else
37195
37196 echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
37197 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
37198 if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
37199 if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
37200 echo $ECHO_N "(cached) $ECHO_C" >&6
37201 else
37202
37203
37204
37205 ac_ext=cc
37206 ac_cpp='$CXXCPP $CPPFLAGS'
37207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37210
37211 cat >conftest.$ac_ext <<_ACEOF
37212 /* confdefs.h. */
37213 _ACEOF
37214 cat confdefs.h >>conftest.$ac_ext
37215 cat >>conftest.$ac_ext <<_ACEOF
37216 /* end confdefs.h. */
37217 #include <math.h>
37218 int
37219 main ()
37220 {
37221 _frexpf(0, 0);
37222 ;
37223 return 0;
37224 }
37225 _ACEOF
37226 rm -f conftest.$ac_objext
37227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37228 (eval $ac_compile) 2>conftest.er1
37229 ac_status=$?
37230 grep -v '^ *+' conftest.er1 >conftest.err
37231 rm -f conftest.er1
37232 cat conftest.err >&5
37233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234 (exit $ac_status); } &&
37235 { ac_try='test -z "$ac_cxx_werror_flag"
37236 || test ! -s conftest.err'
37237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37238 (eval $ac_try) 2>&5
37239 ac_status=$?
37240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37241 (exit $ac_status); }; } &&
37242 { ac_try='test -s conftest.$ac_objext'
37243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244 (eval $ac_try) 2>&5
37245 ac_status=$?
37246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247 (exit $ac_status); }; }; then
37248 glibcxx_cv_func__frexpf_use=yes
37249 else
37250 echo "$as_me: failed program was:" >&5
37251 sed 's/^/| /' conftest.$ac_ext >&5
37252
37253 glibcxx_cv_func__frexpf_use=no
37254 fi
37255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37256 ac_ext=c
37257 ac_cpp='$CPP $CPPFLAGS'
37258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37261
37262
37263 fi
37264
37265 fi
37266 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
37267 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
37268
37269 if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
37270
37271 for ac_func in _frexpf
37272 do
37273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37274 echo "$as_me:$LINENO: checking for $ac_func" >&5
37275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37276 if eval "test \"\${$as_ac_var+set}\" = set"; then
37277 echo $ECHO_N "(cached) $ECHO_C" >&6
37278 else
37279 if test x$gcc_no_link = xyes; then
37280 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37281 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37282 { (exit 1); exit 1; }; }
37283 fi
37284 cat >conftest.$ac_ext <<_ACEOF
37285 /* confdefs.h. */
37286 _ACEOF
37287 cat confdefs.h >>conftest.$ac_ext
37288 cat >>conftest.$ac_ext <<_ACEOF
37289 /* end confdefs.h. */
37290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37292 #define $ac_func innocuous_$ac_func
37293
37294 /* System header to define __stub macros and hopefully few prototypes,
37295 which can conflict with char $ac_func (); below.
37296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37297 <limits.h> exists even on freestanding compilers. */
37298
37299 #ifdef __STDC__
37300 # include <limits.h>
37301 #else
37302 # include <assert.h>
37303 #endif
37304
37305 #undef $ac_func
37306
37307 /* Override any gcc2 internal prototype to avoid an error. */
37308 #ifdef __cplusplus
37309 extern "C"
37310 {
37311 #endif
37312 /* We use char because int might match the return type of a gcc2
37313 builtin and then its argument prototype would still apply. */
37314 char $ac_func ();
37315 /* The GNU C library defines this for functions which it implements
37316 to always fail with ENOSYS. Some functions are actually named
37317 something starting with __ and the normal name is an alias. */
37318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37319 choke me
37320 #else
37321 char (*f) () = $ac_func;
37322 #endif
37323 #ifdef __cplusplus
37324 }
37325 #endif
37326
37327 int
37328 main ()
37329 {
37330 return f != $ac_func;
37331 ;
37332 return 0;
37333 }
37334 _ACEOF
37335 rm -f conftest.$ac_objext conftest$ac_exeext
37336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37337 (eval $ac_link) 2>conftest.er1
37338 ac_status=$?
37339 grep -v '^ *+' conftest.er1 >conftest.err
37340 rm -f conftest.er1
37341 cat conftest.err >&5
37342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37343 (exit $ac_status); } &&
37344 { ac_try='test -z "$ac_c_werror_flag"
37345 || test ! -s conftest.err'
37346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37347 (eval $ac_try) 2>&5
37348 ac_status=$?
37349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37350 (exit $ac_status); }; } &&
37351 { ac_try='test -s conftest$ac_exeext'
37352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37353 (eval $ac_try) 2>&5
37354 ac_status=$?
37355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37356 (exit $ac_status); }; }; then
37357 eval "$as_ac_var=yes"
37358 else
37359 echo "$as_me: failed program was:" >&5
37360 sed 's/^/| /' conftest.$ac_ext >&5
37361
37362 eval "$as_ac_var=no"
37363 fi
37364 rm -f conftest.err conftest.$ac_objext \
37365 conftest$ac_exeext conftest.$ac_ext
37366 fi
37367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37369 if test `eval echo '${'$as_ac_var'}'` = yes; then
37370 cat >>confdefs.h <<_ACEOF
37371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37372 _ACEOF
37373
37374 fi
37375 done
37376
37377 fi
37378 fi
37379
37380
37381
37382 echo "$as_me:$LINENO: checking for hypotf declaration" >&5
37383 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
37384 if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
37385 if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
37386 echo $ECHO_N "(cached) $ECHO_C" >&6
37387 else
37388
37389
37390
37391 ac_ext=cc
37392 ac_cpp='$CXXCPP $CPPFLAGS'
37393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37396
37397 cat >conftest.$ac_ext <<_ACEOF
37398 /* confdefs.h. */
37399 _ACEOF
37400 cat confdefs.h >>conftest.$ac_ext
37401 cat >>conftest.$ac_ext <<_ACEOF
37402 /* end confdefs.h. */
37403 #include <math.h>
37404 int
37405 main ()
37406 {
37407 hypotf(0, 0);
37408 ;
37409 return 0;
37410 }
37411 _ACEOF
37412 rm -f conftest.$ac_objext
37413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37414 (eval $ac_compile) 2>conftest.er1
37415 ac_status=$?
37416 grep -v '^ *+' conftest.er1 >conftest.err
37417 rm -f conftest.er1
37418 cat conftest.err >&5
37419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420 (exit $ac_status); } &&
37421 { ac_try='test -z "$ac_cxx_werror_flag"
37422 || test ! -s conftest.err'
37423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37424 (eval $ac_try) 2>&5
37425 ac_status=$?
37426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37427 (exit $ac_status); }; } &&
37428 { ac_try='test -s conftest.$ac_objext'
37429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37430 (eval $ac_try) 2>&5
37431 ac_status=$?
37432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37433 (exit $ac_status); }; }; then
37434 glibcxx_cv_func_hypotf_use=yes
37435 else
37436 echo "$as_me: failed program was:" >&5
37437 sed 's/^/| /' conftest.$ac_ext >&5
37438
37439 glibcxx_cv_func_hypotf_use=no
37440 fi
37441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37442 ac_ext=c
37443 ac_cpp='$CPP $CPPFLAGS'
37444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37447
37448
37449 fi
37450
37451 fi
37452 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
37453 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
37454
37455 if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
37456
37457 for ac_func in hypotf
37458 do
37459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37460 echo "$as_me:$LINENO: checking for $ac_func" >&5
37461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37462 if eval "test \"\${$as_ac_var+set}\" = set"; then
37463 echo $ECHO_N "(cached) $ECHO_C" >&6
37464 else
37465 if test x$gcc_no_link = xyes; then
37466 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37467 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37468 { (exit 1); exit 1; }; }
37469 fi
37470 cat >conftest.$ac_ext <<_ACEOF
37471 /* confdefs.h. */
37472 _ACEOF
37473 cat confdefs.h >>conftest.$ac_ext
37474 cat >>conftest.$ac_ext <<_ACEOF
37475 /* end confdefs.h. */
37476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37478 #define $ac_func innocuous_$ac_func
37479
37480 /* System header to define __stub macros and hopefully few prototypes,
37481 which can conflict with char $ac_func (); below.
37482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37483 <limits.h> exists even on freestanding compilers. */
37484
37485 #ifdef __STDC__
37486 # include <limits.h>
37487 #else
37488 # include <assert.h>
37489 #endif
37490
37491 #undef $ac_func
37492
37493 /* Override any gcc2 internal prototype to avoid an error. */
37494 #ifdef __cplusplus
37495 extern "C"
37496 {
37497 #endif
37498 /* We use char because int might match the return type of a gcc2
37499 builtin and then its argument prototype would still apply. */
37500 char $ac_func ();
37501 /* The GNU C library defines this for functions which it implements
37502 to always fail with ENOSYS. Some functions are actually named
37503 something starting with __ and the normal name is an alias. */
37504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37505 choke me
37506 #else
37507 char (*f) () = $ac_func;
37508 #endif
37509 #ifdef __cplusplus
37510 }
37511 #endif
37512
37513 int
37514 main ()
37515 {
37516 return f != $ac_func;
37517 ;
37518 return 0;
37519 }
37520 _ACEOF
37521 rm -f conftest.$ac_objext conftest$ac_exeext
37522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37523 (eval $ac_link) 2>conftest.er1
37524 ac_status=$?
37525 grep -v '^ *+' conftest.er1 >conftest.err
37526 rm -f conftest.er1
37527 cat conftest.err >&5
37528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37529 (exit $ac_status); } &&
37530 { ac_try='test -z "$ac_c_werror_flag"
37531 || test ! -s conftest.err'
37532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37533 (eval $ac_try) 2>&5
37534 ac_status=$?
37535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37536 (exit $ac_status); }; } &&
37537 { ac_try='test -s conftest$ac_exeext'
37538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37539 (eval $ac_try) 2>&5
37540 ac_status=$?
37541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37542 (exit $ac_status); }; }; then
37543 eval "$as_ac_var=yes"
37544 else
37545 echo "$as_me: failed program was:" >&5
37546 sed 's/^/| /' conftest.$ac_ext >&5
37547
37548 eval "$as_ac_var=no"
37549 fi
37550 rm -f conftest.err conftest.$ac_objext \
37551 conftest$ac_exeext conftest.$ac_ext
37552 fi
37553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37554 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37555 if test `eval echo '${'$as_ac_var'}'` = yes; then
37556 cat >>confdefs.h <<_ACEOF
37557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37558 _ACEOF
37559
37560 fi
37561 done
37562
37563 else
37564
37565 echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
37566 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
37567 if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
37568 if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
37569 echo $ECHO_N "(cached) $ECHO_C" >&6
37570 else
37571
37572
37573
37574 ac_ext=cc
37575 ac_cpp='$CXXCPP $CPPFLAGS'
37576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37579
37580 cat >conftest.$ac_ext <<_ACEOF
37581 /* confdefs.h. */
37582 _ACEOF
37583 cat confdefs.h >>conftest.$ac_ext
37584 cat >>conftest.$ac_ext <<_ACEOF
37585 /* end confdefs.h. */
37586 #include <math.h>
37587 int
37588 main ()
37589 {
37590 _hypotf(0, 0);
37591 ;
37592 return 0;
37593 }
37594 _ACEOF
37595 rm -f conftest.$ac_objext
37596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37597 (eval $ac_compile) 2>conftest.er1
37598 ac_status=$?
37599 grep -v '^ *+' conftest.er1 >conftest.err
37600 rm -f conftest.er1
37601 cat conftest.err >&5
37602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37603 (exit $ac_status); } &&
37604 { ac_try='test -z "$ac_cxx_werror_flag"
37605 || test ! -s conftest.err'
37606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37607 (eval $ac_try) 2>&5
37608 ac_status=$?
37609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37610 (exit $ac_status); }; } &&
37611 { ac_try='test -s conftest.$ac_objext'
37612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37613 (eval $ac_try) 2>&5
37614 ac_status=$?
37615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616 (exit $ac_status); }; }; then
37617 glibcxx_cv_func__hypotf_use=yes
37618 else
37619 echo "$as_me: failed program was:" >&5
37620 sed 's/^/| /' conftest.$ac_ext >&5
37621
37622 glibcxx_cv_func__hypotf_use=no
37623 fi
37624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37625 ac_ext=c
37626 ac_cpp='$CPP $CPPFLAGS'
37627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37630
37631
37632 fi
37633
37634 fi
37635 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
37636 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
37637
37638 if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
37639
37640 for ac_func in _hypotf
37641 do
37642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37643 echo "$as_me:$LINENO: checking for $ac_func" >&5
37644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37645 if eval "test \"\${$as_ac_var+set}\" = set"; then
37646 echo $ECHO_N "(cached) $ECHO_C" >&6
37647 else
37648 if test x$gcc_no_link = xyes; then
37649 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37650 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37651 { (exit 1); exit 1; }; }
37652 fi
37653 cat >conftest.$ac_ext <<_ACEOF
37654 /* confdefs.h. */
37655 _ACEOF
37656 cat confdefs.h >>conftest.$ac_ext
37657 cat >>conftest.$ac_ext <<_ACEOF
37658 /* end confdefs.h. */
37659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37661 #define $ac_func innocuous_$ac_func
37662
37663 /* System header to define __stub macros and hopefully few prototypes,
37664 which can conflict with char $ac_func (); below.
37665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37666 <limits.h> exists even on freestanding compilers. */
37667
37668 #ifdef __STDC__
37669 # include <limits.h>
37670 #else
37671 # include <assert.h>
37672 #endif
37673
37674 #undef $ac_func
37675
37676 /* Override any gcc2 internal prototype to avoid an error. */
37677 #ifdef __cplusplus
37678 extern "C"
37679 {
37680 #endif
37681 /* We use char because int might match the return type of a gcc2
37682 builtin and then its argument prototype would still apply. */
37683 char $ac_func ();
37684 /* The GNU C library defines this for functions which it implements
37685 to always fail with ENOSYS. Some functions are actually named
37686 something starting with __ and the normal name is an alias. */
37687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37688 choke me
37689 #else
37690 char (*f) () = $ac_func;
37691 #endif
37692 #ifdef __cplusplus
37693 }
37694 #endif
37695
37696 int
37697 main ()
37698 {
37699 return f != $ac_func;
37700 ;
37701 return 0;
37702 }
37703 _ACEOF
37704 rm -f conftest.$ac_objext conftest$ac_exeext
37705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37706 (eval $ac_link) 2>conftest.er1
37707 ac_status=$?
37708 grep -v '^ *+' conftest.er1 >conftest.err
37709 rm -f conftest.er1
37710 cat conftest.err >&5
37711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37712 (exit $ac_status); } &&
37713 { ac_try='test -z "$ac_c_werror_flag"
37714 || test ! -s conftest.err'
37715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37716 (eval $ac_try) 2>&5
37717 ac_status=$?
37718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719 (exit $ac_status); }; } &&
37720 { ac_try='test -s conftest$ac_exeext'
37721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37722 (eval $ac_try) 2>&5
37723 ac_status=$?
37724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37725 (exit $ac_status); }; }; then
37726 eval "$as_ac_var=yes"
37727 else
37728 echo "$as_me: failed program was:" >&5
37729 sed 's/^/| /' conftest.$ac_ext >&5
37730
37731 eval "$as_ac_var=no"
37732 fi
37733 rm -f conftest.err conftest.$ac_objext \
37734 conftest$ac_exeext conftest.$ac_ext
37735 fi
37736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37738 if test `eval echo '${'$as_ac_var'}'` = yes; then
37739 cat >>confdefs.h <<_ACEOF
37740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37741 _ACEOF
37742
37743 fi
37744 done
37745
37746 fi
37747 fi
37748
37749
37750
37751 echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
37752 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
37753 if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
37754 if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
37755 echo $ECHO_N "(cached) $ECHO_C" >&6
37756 else
37757
37758
37759
37760 ac_ext=cc
37761 ac_cpp='$CXXCPP $CPPFLAGS'
37762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37765
37766 cat >conftest.$ac_ext <<_ACEOF
37767 /* confdefs.h. */
37768 _ACEOF
37769 cat confdefs.h >>conftest.$ac_ext
37770 cat >>conftest.$ac_ext <<_ACEOF
37771 /* end confdefs.h. */
37772 #include <math.h>
37773 int
37774 main ()
37775 {
37776 ldexpf(0, 0);
37777 ;
37778 return 0;
37779 }
37780 _ACEOF
37781 rm -f conftest.$ac_objext
37782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37783 (eval $ac_compile) 2>conftest.er1
37784 ac_status=$?
37785 grep -v '^ *+' conftest.er1 >conftest.err
37786 rm -f conftest.er1
37787 cat conftest.err >&5
37788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37789 (exit $ac_status); } &&
37790 { ac_try='test -z "$ac_cxx_werror_flag"
37791 || test ! -s conftest.err'
37792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37793 (eval $ac_try) 2>&5
37794 ac_status=$?
37795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37796 (exit $ac_status); }; } &&
37797 { ac_try='test -s conftest.$ac_objext'
37798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37799 (eval $ac_try) 2>&5
37800 ac_status=$?
37801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802 (exit $ac_status); }; }; then
37803 glibcxx_cv_func_ldexpf_use=yes
37804 else
37805 echo "$as_me: failed program was:" >&5
37806 sed 's/^/| /' conftest.$ac_ext >&5
37807
37808 glibcxx_cv_func_ldexpf_use=no
37809 fi
37810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37811 ac_ext=c
37812 ac_cpp='$CPP $CPPFLAGS'
37813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37816
37817
37818 fi
37819
37820 fi
37821 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
37822 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
37823
37824 if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
37825
37826 for ac_func in ldexpf
37827 do
37828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37829 echo "$as_me:$LINENO: checking for $ac_func" >&5
37830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37831 if eval "test \"\${$as_ac_var+set}\" = set"; then
37832 echo $ECHO_N "(cached) $ECHO_C" >&6
37833 else
37834 if test x$gcc_no_link = xyes; then
37835 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37837 { (exit 1); exit 1; }; }
37838 fi
37839 cat >conftest.$ac_ext <<_ACEOF
37840 /* confdefs.h. */
37841 _ACEOF
37842 cat confdefs.h >>conftest.$ac_ext
37843 cat >>conftest.$ac_ext <<_ACEOF
37844 /* end confdefs.h. */
37845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37847 #define $ac_func innocuous_$ac_func
37848
37849 /* System header to define __stub macros and hopefully few prototypes,
37850 which can conflict with char $ac_func (); below.
37851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37852 <limits.h> exists even on freestanding compilers. */
37853
37854 #ifdef __STDC__
37855 # include <limits.h>
37856 #else
37857 # include <assert.h>
37858 #endif
37859
37860 #undef $ac_func
37861
37862 /* Override any gcc2 internal prototype to avoid an error. */
37863 #ifdef __cplusplus
37864 extern "C"
37865 {
37866 #endif
37867 /* We use char because int might match the return type of a gcc2
37868 builtin and then its argument prototype would still apply. */
37869 char $ac_func ();
37870 /* The GNU C library defines this for functions which it implements
37871 to always fail with ENOSYS. Some functions are actually named
37872 something starting with __ and the normal name is an alias. */
37873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37874 choke me
37875 #else
37876 char (*f) () = $ac_func;
37877 #endif
37878 #ifdef __cplusplus
37879 }
37880 #endif
37881
37882 int
37883 main ()
37884 {
37885 return f != $ac_func;
37886 ;
37887 return 0;
37888 }
37889 _ACEOF
37890 rm -f conftest.$ac_objext conftest$ac_exeext
37891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37892 (eval $ac_link) 2>conftest.er1
37893 ac_status=$?
37894 grep -v '^ *+' conftest.er1 >conftest.err
37895 rm -f conftest.er1
37896 cat conftest.err >&5
37897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37898 (exit $ac_status); } &&
37899 { ac_try='test -z "$ac_c_werror_flag"
37900 || test ! -s conftest.err'
37901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37902 (eval $ac_try) 2>&5
37903 ac_status=$?
37904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37905 (exit $ac_status); }; } &&
37906 { ac_try='test -s conftest$ac_exeext'
37907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37908 (eval $ac_try) 2>&5
37909 ac_status=$?
37910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37911 (exit $ac_status); }; }; then
37912 eval "$as_ac_var=yes"
37913 else
37914 echo "$as_me: failed program was:" >&5
37915 sed 's/^/| /' conftest.$ac_ext >&5
37916
37917 eval "$as_ac_var=no"
37918 fi
37919 rm -f conftest.err conftest.$ac_objext \
37920 conftest$ac_exeext conftest.$ac_ext
37921 fi
37922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37924 if test `eval echo '${'$as_ac_var'}'` = yes; then
37925 cat >>confdefs.h <<_ACEOF
37926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37927 _ACEOF
37928
37929 fi
37930 done
37931
37932 else
37933
37934 echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
37935 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
37936 if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
37937 if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
37938 echo $ECHO_N "(cached) $ECHO_C" >&6
37939 else
37940
37941
37942
37943 ac_ext=cc
37944 ac_cpp='$CXXCPP $CPPFLAGS'
37945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37948
37949 cat >conftest.$ac_ext <<_ACEOF
37950 /* confdefs.h. */
37951 _ACEOF
37952 cat confdefs.h >>conftest.$ac_ext
37953 cat >>conftest.$ac_ext <<_ACEOF
37954 /* end confdefs.h. */
37955 #include <math.h>
37956 int
37957 main ()
37958 {
37959 _ldexpf(0, 0);
37960 ;
37961 return 0;
37962 }
37963 _ACEOF
37964 rm -f conftest.$ac_objext
37965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37966 (eval $ac_compile) 2>conftest.er1
37967 ac_status=$?
37968 grep -v '^ *+' conftest.er1 >conftest.err
37969 rm -f conftest.er1
37970 cat conftest.err >&5
37971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37972 (exit $ac_status); } &&
37973 { ac_try='test -z "$ac_cxx_werror_flag"
37974 || test ! -s conftest.err'
37975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37976 (eval $ac_try) 2>&5
37977 ac_status=$?
37978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37979 (exit $ac_status); }; } &&
37980 { ac_try='test -s conftest.$ac_objext'
37981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37982 (eval $ac_try) 2>&5
37983 ac_status=$?
37984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37985 (exit $ac_status); }; }; then
37986 glibcxx_cv_func__ldexpf_use=yes
37987 else
37988 echo "$as_me: failed program was:" >&5
37989 sed 's/^/| /' conftest.$ac_ext >&5
37990
37991 glibcxx_cv_func__ldexpf_use=no
37992 fi
37993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37994 ac_ext=c
37995 ac_cpp='$CPP $CPPFLAGS'
37996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37999
38000
38001 fi
38002
38003 fi
38004 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
38005 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
38006
38007 if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
38008
38009 for ac_func in _ldexpf
38010 do
38011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38012 echo "$as_me:$LINENO: checking for $ac_func" >&5
38013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38014 if eval "test \"\${$as_ac_var+set}\" = set"; then
38015 echo $ECHO_N "(cached) $ECHO_C" >&6
38016 else
38017 if test x$gcc_no_link = xyes; then
38018 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38019 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38020 { (exit 1); exit 1; }; }
38021 fi
38022 cat >conftest.$ac_ext <<_ACEOF
38023 /* confdefs.h. */
38024 _ACEOF
38025 cat confdefs.h >>conftest.$ac_ext
38026 cat >>conftest.$ac_ext <<_ACEOF
38027 /* end confdefs.h. */
38028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38030 #define $ac_func innocuous_$ac_func
38031
38032 /* System header to define __stub macros and hopefully few prototypes,
38033 which can conflict with char $ac_func (); below.
38034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38035 <limits.h> exists even on freestanding compilers. */
38036
38037 #ifdef __STDC__
38038 # include <limits.h>
38039 #else
38040 # include <assert.h>
38041 #endif
38042
38043 #undef $ac_func
38044
38045 /* Override any gcc2 internal prototype to avoid an error. */
38046 #ifdef __cplusplus
38047 extern "C"
38048 {
38049 #endif
38050 /* We use char because int might match the return type of a gcc2
38051 builtin and then its argument prototype would still apply. */
38052 char $ac_func ();
38053 /* The GNU C library defines this for functions which it implements
38054 to always fail with ENOSYS. Some functions are actually named
38055 something starting with __ and the normal name is an alias. */
38056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38057 choke me
38058 #else
38059 char (*f) () = $ac_func;
38060 #endif
38061 #ifdef __cplusplus
38062 }
38063 #endif
38064
38065 int
38066 main ()
38067 {
38068 return f != $ac_func;
38069 ;
38070 return 0;
38071 }
38072 _ACEOF
38073 rm -f conftest.$ac_objext conftest$ac_exeext
38074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38075 (eval $ac_link) 2>conftest.er1
38076 ac_status=$?
38077 grep -v '^ *+' conftest.er1 >conftest.err
38078 rm -f conftest.er1
38079 cat conftest.err >&5
38080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38081 (exit $ac_status); } &&
38082 { ac_try='test -z "$ac_c_werror_flag"
38083 || test ! -s conftest.err'
38084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38085 (eval $ac_try) 2>&5
38086 ac_status=$?
38087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38088 (exit $ac_status); }; } &&
38089 { ac_try='test -s conftest$ac_exeext'
38090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38091 (eval $ac_try) 2>&5
38092 ac_status=$?
38093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094 (exit $ac_status); }; }; then
38095 eval "$as_ac_var=yes"
38096 else
38097 echo "$as_me: failed program was:" >&5
38098 sed 's/^/| /' conftest.$ac_ext >&5
38099
38100 eval "$as_ac_var=no"
38101 fi
38102 rm -f conftest.err conftest.$ac_objext \
38103 conftest$ac_exeext conftest.$ac_ext
38104 fi
38105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38107 if test `eval echo '${'$as_ac_var'}'` = yes; then
38108 cat >>confdefs.h <<_ACEOF
38109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38110 _ACEOF
38111
38112 fi
38113 done
38114
38115 fi
38116 fi
38117
38118
38119
38120 echo "$as_me:$LINENO: checking for logf declaration" >&5
38121 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
38122 if test x${glibcxx_cv_func_logf_use+set} != xset; then
38123 if test "${glibcxx_cv_func_logf_use+set}" = set; then
38124 echo $ECHO_N "(cached) $ECHO_C" >&6
38125 else
38126
38127
38128
38129 ac_ext=cc
38130 ac_cpp='$CXXCPP $CPPFLAGS'
38131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38134
38135 cat >conftest.$ac_ext <<_ACEOF
38136 /* confdefs.h. */
38137 _ACEOF
38138 cat confdefs.h >>conftest.$ac_ext
38139 cat >>conftest.$ac_ext <<_ACEOF
38140 /* end confdefs.h. */
38141 #include <math.h>
38142 #ifdef HAVE_IEEEFP_H
38143 #include <ieeefp.h>
38144 #endif
38145
38146 int
38147 main ()
38148 {
38149 logf(0);
38150 ;
38151 return 0;
38152 }
38153 _ACEOF
38154 rm -f conftest.$ac_objext
38155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38156 (eval $ac_compile) 2>conftest.er1
38157 ac_status=$?
38158 grep -v '^ *+' conftest.er1 >conftest.err
38159 rm -f conftest.er1
38160 cat conftest.err >&5
38161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38162 (exit $ac_status); } &&
38163 { ac_try='test -z "$ac_cxx_werror_flag"
38164 || test ! -s conftest.err'
38165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38166 (eval $ac_try) 2>&5
38167 ac_status=$?
38168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38169 (exit $ac_status); }; } &&
38170 { ac_try='test -s conftest.$ac_objext'
38171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38172 (eval $ac_try) 2>&5
38173 ac_status=$?
38174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38175 (exit $ac_status); }; }; then
38176 glibcxx_cv_func_logf_use=yes
38177 else
38178 echo "$as_me: failed program was:" >&5
38179 sed 's/^/| /' conftest.$ac_ext >&5
38180
38181 glibcxx_cv_func_logf_use=no
38182 fi
38183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38184 ac_ext=c
38185 ac_cpp='$CPP $CPPFLAGS'
38186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38189
38190
38191 fi
38192
38193 fi
38194 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
38195 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
38196
38197 if test x$glibcxx_cv_func_logf_use = x"yes"; then
38198
38199 for ac_func in logf
38200 do
38201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38202 echo "$as_me:$LINENO: checking for $ac_func" >&5
38203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38204 if eval "test \"\${$as_ac_var+set}\" = set"; then
38205 echo $ECHO_N "(cached) $ECHO_C" >&6
38206 else
38207 if test x$gcc_no_link = xyes; then
38208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38209 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38210 { (exit 1); exit 1; }; }
38211 fi
38212 cat >conftest.$ac_ext <<_ACEOF
38213 /* confdefs.h. */
38214 _ACEOF
38215 cat confdefs.h >>conftest.$ac_ext
38216 cat >>conftest.$ac_ext <<_ACEOF
38217 /* end confdefs.h. */
38218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38220 #define $ac_func innocuous_$ac_func
38221
38222 /* System header to define __stub macros and hopefully few prototypes,
38223 which can conflict with char $ac_func (); below.
38224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38225 <limits.h> exists even on freestanding compilers. */
38226
38227 #ifdef __STDC__
38228 # include <limits.h>
38229 #else
38230 # include <assert.h>
38231 #endif
38232
38233 #undef $ac_func
38234
38235 /* Override any gcc2 internal prototype to avoid an error. */
38236 #ifdef __cplusplus
38237 extern "C"
38238 {
38239 #endif
38240 /* We use char because int might match the return type of a gcc2
38241 builtin and then its argument prototype would still apply. */
38242 char $ac_func ();
38243 /* The GNU C library defines this for functions which it implements
38244 to always fail with ENOSYS. Some functions are actually named
38245 something starting with __ and the normal name is an alias. */
38246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38247 choke me
38248 #else
38249 char (*f) () = $ac_func;
38250 #endif
38251 #ifdef __cplusplus
38252 }
38253 #endif
38254
38255 int
38256 main ()
38257 {
38258 return f != $ac_func;
38259 ;
38260 return 0;
38261 }
38262 _ACEOF
38263 rm -f conftest.$ac_objext conftest$ac_exeext
38264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38265 (eval $ac_link) 2>conftest.er1
38266 ac_status=$?
38267 grep -v '^ *+' conftest.er1 >conftest.err
38268 rm -f conftest.er1
38269 cat conftest.err >&5
38270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38271 (exit $ac_status); } &&
38272 { ac_try='test -z "$ac_c_werror_flag"
38273 || test ! -s conftest.err'
38274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38275 (eval $ac_try) 2>&5
38276 ac_status=$?
38277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38278 (exit $ac_status); }; } &&
38279 { ac_try='test -s conftest$ac_exeext'
38280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38281 (eval $ac_try) 2>&5
38282 ac_status=$?
38283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38284 (exit $ac_status); }; }; then
38285 eval "$as_ac_var=yes"
38286 else
38287 echo "$as_me: failed program was:" >&5
38288 sed 's/^/| /' conftest.$ac_ext >&5
38289
38290 eval "$as_ac_var=no"
38291 fi
38292 rm -f conftest.err conftest.$ac_objext \
38293 conftest$ac_exeext conftest.$ac_ext
38294 fi
38295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38297 if test `eval echo '${'$as_ac_var'}'` = yes; then
38298 cat >>confdefs.h <<_ACEOF
38299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38300 _ACEOF
38301
38302 fi
38303 done
38304
38305 else
38306
38307 echo "$as_me:$LINENO: checking for _logf declaration" >&5
38308 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
38309 if test x${glibcxx_cv_func__logf_use+set} != xset; then
38310 if test "${glibcxx_cv_func__logf_use+set}" = set; then
38311 echo $ECHO_N "(cached) $ECHO_C" >&6
38312 else
38313
38314
38315
38316 ac_ext=cc
38317 ac_cpp='$CXXCPP $CPPFLAGS'
38318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38321
38322 cat >conftest.$ac_ext <<_ACEOF
38323 /* confdefs.h. */
38324 _ACEOF
38325 cat confdefs.h >>conftest.$ac_ext
38326 cat >>conftest.$ac_ext <<_ACEOF
38327 /* end confdefs.h. */
38328 #include <math.h>
38329 #ifdef HAVE_IEEEFP_H
38330 #include <ieeefp.h>
38331 #endif
38332
38333 int
38334 main ()
38335 {
38336 _logf(0);
38337 ;
38338 return 0;
38339 }
38340 _ACEOF
38341 rm -f conftest.$ac_objext
38342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38343 (eval $ac_compile) 2>conftest.er1
38344 ac_status=$?
38345 grep -v '^ *+' conftest.er1 >conftest.err
38346 rm -f conftest.er1
38347 cat conftest.err >&5
38348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38349 (exit $ac_status); } &&
38350 { ac_try='test -z "$ac_cxx_werror_flag"
38351 || test ! -s conftest.err'
38352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38353 (eval $ac_try) 2>&5
38354 ac_status=$?
38355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38356 (exit $ac_status); }; } &&
38357 { ac_try='test -s conftest.$ac_objext'
38358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38359 (eval $ac_try) 2>&5
38360 ac_status=$?
38361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38362 (exit $ac_status); }; }; then
38363 glibcxx_cv_func__logf_use=yes
38364 else
38365 echo "$as_me: failed program was:" >&5
38366 sed 's/^/| /' conftest.$ac_ext >&5
38367
38368 glibcxx_cv_func__logf_use=no
38369 fi
38370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38371 ac_ext=c
38372 ac_cpp='$CPP $CPPFLAGS'
38373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38376
38377
38378 fi
38379
38380 fi
38381 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
38382 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
38383
38384 if test x$glibcxx_cv_func__logf_use = x"yes"; then
38385
38386 for ac_func in _logf
38387 do
38388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38389 echo "$as_me:$LINENO: checking for $ac_func" >&5
38390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38391 if eval "test \"\${$as_ac_var+set}\" = set"; then
38392 echo $ECHO_N "(cached) $ECHO_C" >&6
38393 else
38394 if test x$gcc_no_link = xyes; then
38395 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38396 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38397 { (exit 1); exit 1; }; }
38398 fi
38399 cat >conftest.$ac_ext <<_ACEOF
38400 /* confdefs.h. */
38401 _ACEOF
38402 cat confdefs.h >>conftest.$ac_ext
38403 cat >>conftest.$ac_ext <<_ACEOF
38404 /* end confdefs.h. */
38405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38407 #define $ac_func innocuous_$ac_func
38408
38409 /* System header to define __stub macros and hopefully few prototypes,
38410 which can conflict with char $ac_func (); below.
38411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38412 <limits.h> exists even on freestanding compilers. */
38413
38414 #ifdef __STDC__
38415 # include <limits.h>
38416 #else
38417 # include <assert.h>
38418 #endif
38419
38420 #undef $ac_func
38421
38422 /* Override any gcc2 internal prototype to avoid an error. */
38423 #ifdef __cplusplus
38424 extern "C"
38425 {
38426 #endif
38427 /* We use char because int might match the return type of a gcc2
38428 builtin and then its argument prototype would still apply. */
38429 char $ac_func ();
38430 /* The GNU C library defines this for functions which it implements
38431 to always fail with ENOSYS. Some functions are actually named
38432 something starting with __ and the normal name is an alias. */
38433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38434 choke me
38435 #else
38436 char (*f) () = $ac_func;
38437 #endif
38438 #ifdef __cplusplus
38439 }
38440 #endif
38441
38442 int
38443 main ()
38444 {
38445 return f != $ac_func;
38446 ;
38447 return 0;
38448 }
38449 _ACEOF
38450 rm -f conftest.$ac_objext conftest$ac_exeext
38451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38452 (eval $ac_link) 2>conftest.er1
38453 ac_status=$?
38454 grep -v '^ *+' conftest.er1 >conftest.err
38455 rm -f conftest.er1
38456 cat conftest.err >&5
38457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38458 (exit $ac_status); } &&
38459 { ac_try='test -z "$ac_c_werror_flag"
38460 || test ! -s conftest.err'
38461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38462 (eval $ac_try) 2>&5
38463 ac_status=$?
38464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465 (exit $ac_status); }; } &&
38466 { ac_try='test -s conftest$ac_exeext'
38467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38468 (eval $ac_try) 2>&5
38469 ac_status=$?
38470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38471 (exit $ac_status); }; }; then
38472 eval "$as_ac_var=yes"
38473 else
38474 echo "$as_me: failed program was:" >&5
38475 sed 's/^/| /' conftest.$ac_ext >&5
38476
38477 eval "$as_ac_var=no"
38478 fi
38479 rm -f conftest.err conftest.$ac_objext \
38480 conftest$ac_exeext conftest.$ac_ext
38481 fi
38482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38484 if test `eval echo '${'$as_ac_var'}'` = yes; then
38485 cat >>confdefs.h <<_ACEOF
38486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38487 _ACEOF
38488
38489 fi
38490 done
38491
38492 fi
38493 fi
38494
38495
38496
38497 echo "$as_me:$LINENO: checking for log10f declaration" >&5
38498 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
38499 if test x${glibcxx_cv_func_log10f_use+set} != xset; then
38500 if test "${glibcxx_cv_func_log10f_use+set}" = set; then
38501 echo $ECHO_N "(cached) $ECHO_C" >&6
38502 else
38503
38504
38505
38506 ac_ext=cc
38507 ac_cpp='$CXXCPP $CPPFLAGS'
38508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38511
38512 cat >conftest.$ac_ext <<_ACEOF
38513 /* confdefs.h. */
38514 _ACEOF
38515 cat confdefs.h >>conftest.$ac_ext
38516 cat >>conftest.$ac_ext <<_ACEOF
38517 /* end confdefs.h. */
38518 #include <math.h>
38519 #ifdef HAVE_IEEEFP_H
38520 #include <ieeefp.h>
38521 #endif
38522
38523 int
38524 main ()
38525 {
38526 log10f(0);
38527 ;
38528 return 0;
38529 }
38530 _ACEOF
38531 rm -f conftest.$ac_objext
38532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38533 (eval $ac_compile) 2>conftest.er1
38534 ac_status=$?
38535 grep -v '^ *+' conftest.er1 >conftest.err
38536 rm -f conftest.er1
38537 cat conftest.err >&5
38538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38539 (exit $ac_status); } &&
38540 { ac_try='test -z "$ac_cxx_werror_flag"
38541 || test ! -s conftest.err'
38542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38543 (eval $ac_try) 2>&5
38544 ac_status=$?
38545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38546 (exit $ac_status); }; } &&
38547 { ac_try='test -s conftest.$ac_objext'
38548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38549 (eval $ac_try) 2>&5
38550 ac_status=$?
38551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38552 (exit $ac_status); }; }; then
38553 glibcxx_cv_func_log10f_use=yes
38554 else
38555 echo "$as_me: failed program was:" >&5
38556 sed 's/^/| /' conftest.$ac_ext >&5
38557
38558 glibcxx_cv_func_log10f_use=no
38559 fi
38560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38561 ac_ext=c
38562 ac_cpp='$CPP $CPPFLAGS'
38563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38566
38567
38568 fi
38569
38570 fi
38571 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
38572 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
38573
38574 if test x$glibcxx_cv_func_log10f_use = x"yes"; then
38575
38576 for ac_func in log10f
38577 do
38578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38579 echo "$as_me:$LINENO: checking for $ac_func" >&5
38580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38581 if eval "test \"\${$as_ac_var+set}\" = set"; then
38582 echo $ECHO_N "(cached) $ECHO_C" >&6
38583 else
38584 if test x$gcc_no_link = xyes; then
38585 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38586 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38587 { (exit 1); exit 1; }; }
38588 fi
38589 cat >conftest.$ac_ext <<_ACEOF
38590 /* confdefs.h. */
38591 _ACEOF
38592 cat confdefs.h >>conftest.$ac_ext
38593 cat >>conftest.$ac_ext <<_ACEOF
38594 /* end confdefs.h. */
38595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38597 #define $ac_func innocuous_$ac_func
38598
38599 /* System header to define __stub macros and hopefully few prototypes,
38600 which can conflict with char $ac_func (); below.
38601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38602 <limits.h> exists even on freestanding compilers. */
38603
38604 #ifdef __STDC__
38605 # include <limits.h>
38606 #else
38607 # include <assert.h>
38608 #endif
38609
38610 #undef $ac_func
38611
38612 /* Override any gcc2 internal prototype to avoid an error. */
38613 #ifdef __cplusplus
38614 extern "C"
38615 {
38616 #endif
38617 /* We use char because int might match the return type of a gcc2
38618 builtin and then its argument prototype would still apply. */
38619 char $ac_func ();
38620 /* The GNU C library defines this for functions which it implements
38621 to always fail with ENOSYS. Some functions are actually named
38622 something starting with __ and the normal name is an alias. */
38623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38624 choke me
38625 #else
38626 char (*f) () = $ac_func;
38627 #endif
38628 #ifdef __cplusplus
38629 }
38630 #endif
38631
38632 int
38633 main ()
38634 {
38635 return f != $ac_func;
38636 ;
38637 return 0;
38638 }
38639 _ACEOF
38640 rm -f conftest.$ac_objext conftest$ac_exeext
38641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38642 (eval $ac_link) 2>conftest.er1
38643 ac_status=$?
38644 grep -v '^ *+' conftest.er1 >conftest.err
38645 rm -f conftest.er1
38646 cat conftest.err >&5
38647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38648 (exit $ac_status); } &&
38649 { ac_try='test -z "$ac_c_werror_flag"
38650 || test ! -s conftest.err'
38651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38652 (eval $ac_try) 2>&5
38653 ac_status=$?
38654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38655 (exit $ac_status); }; } &&
38656 { ac_try='test -s conftest$ac_exeext'
38657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38658 (eval $ac_try) 2>&5
38659 ac_status=$?
38660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38661 (exit $ac_status); }; }; then
38662 eval "$as_ac_var=yes"
38663 else
38664 echo "$as_me: failed program was:" >&5
38665 sed 's/^/| /' conftest.$ac_ext >&5
38666
38667 eval "$as_ac_var=no"
38668 fi
38669 rm -f conftest.err conftest.$ac_objext \
38670 conftest$ac_exeext conftest.$ac_ext
38671 fi
38672 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38673 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38674 if test `eval echo '${'$as_ac_var'}'` = yes; then
38675 cat >>confdefs.h <<_ACEOF
38676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38677 _ACEOF
38678
38679 fi
38680 done
38681
38682 else
38683
38684 echo "$as_me:$LINENO: checking for _log10f declaration" >&5
38685 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
38686 if test x${glibcxx_cv_func__log10f_use+set} != xset; then
38687 if test "${glibcxx_cv_func__log10f_use+set}" = set; then
38688 echo $ECHO_N "(cached) $ECHO_C" >&6
38689 else
38690
38691
38692
38693 ac_ext=cc
38694 ac_cpp='$CXXCPP $CPPFLAGS'
38695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38698
38699 cat >conftest.$ac_ext <<_ACEOF
38700 /* confdefs.h. */
38701 _ACEOF
38702 cat confdefs.h >>conftest.$ac_ext
38703 cat >>conftest.$ac_ext <<_ACEOF
38704 /* end confdefs.h. */
38705 #include <math.h>
38706 #ifdef HAVE_IEEEFP_H
38707 #include <ieeefp.h>
38708 #endif
38709
38710 int
38711 main ()
38712 {
38713 _log10f(0);
38714 ;
38715 return 0;
38716 }
38717 _ACEOF
38718 rm -f conftest.$ac_objext
38719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38720 (eval $ac_compile) 2>conftest.er1
38721 ac_status=$?
38722 grep -v '^ *+' conftest.er1 >conftest.err
38723 rm -f conftest.er1
38724 cat conftest.err >&5
38725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38726 (exit $ac_status); } &&
38727 { ac_try='test -z "$ac_cxx_werror_flag"
38728 || test ! -s conftest.err'
38729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38730 (eval $ac_try) 2>&5
38731 ac_status=$?
38732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38733 (exit $ac_status); }; } &&
38734 { ac_try='test -s conftest.$ac_objext'
38735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38736 (eval $ac_try) 2>&5
38737 ac_status=$?
38738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38739 (exit $ac_status); }; }; then
38740 glibcxx_cv_func__log10f_use=yes
38741 else
38742 echo "$as_me: failed program was:" >&5
38743 sed 's/^/| /' conftest.$ac_ext >&5
38744
38745 glibcxx_cv_func__log10f_use=no
38746 fi
38747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38748 ac_ext=c
38749 ac_cpp='$CPP $CPPFLAGS'
38750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38753
38754
38755 fi
38756
38757 fi
38758 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
38759 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
38760
38761 if test x$glibcxx_cv_func__log10f_use = x"yes"; then
38762
38763 for ac_func in _log10f
38764 do
38765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38766 echo "$as_me:$LINENO: checking for $ac_func" >&5
38767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38768 if eval "test \"\${$as_ac_var+set}\" = set"; then
38769 echo $ECHO_N "(cached) $ECHO_C" >&6
38770 else
38771 if test x$gcc_no_link = xyes; then
38772 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38773 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38774 { (exit 1); exit 1; }; }
38775 fi
38776 cat >conftest.$ac_ext <<_ACEOF
38777 /* confdefs.h. */
38778 _ACEOF
38779 cat confdefs.h >>conftest.$ac_ext
38780 cat >>conftest.$ac_ext <<_ACEOF
38781 /* end confdefs.h. */
38782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38784 #define $ac_func innocuous_$ac_func
38785
38786 /* System header to define __stub macros and hopefully few prototypes,
38787 which can conflict with char $ac_func (); below.
38788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38789 <limits.h> exists even on freestanding compilers. */
38790
38791 #ifdef __STDC__
38792 # include <limits.h>
38793 #else
38794 # include <assert.h>
38795 #endif
38796
38797 #undef $ac_func
38798
38799 /* Override any gcc2 internal prototype to avoid an error. */
38800 #ifdef __cplusplus
38801 extern "C"
38802 {
38803 #endif
38804 /* We use char because int might match the return type of a gcc2
38805 builtin and then its argument prototype would still apply. */
38806 char $ac_func ();
38807 /* The GNU C library defines this for functions which it implements
38808 to always fail with ENOSYS. Some functions are actually named
38809 something starting with __ and the normal name is an alias. */
38810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38811 choke me
38812 #else
38813 char (*f) () = $ac_func;
38814 #endif
38815 #ifdef __cplusplus
38816 }
38817 #endif
38818
38819 int
38820 main ()
38821 {
38822 return f != $ac_func;
38823 ;
38824 return 0;
38825 }
38826 _ACEOF
38827 rm -f conftest.$ac_objext conftest$ac_exeext
38828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38829 (eval $ac_link) 2>conftest.er1
38830 ac_status=$?
38831 grep -v '^ *+' conftest.er1 >conftest.err
38832 rm -f conftest.er1
38833 cat conftest.err >&5
38834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38835 (exit $ac_status); } &&
38836 { ac_try='test -z "$ac_c_werror_flag"
38837 || test ! -s conftest.err'
38838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38839 (eval $ac_try) 2>&5
38840 ac_status=$?
38841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842 (exit $ac_status); }; } &&
38843 { ac_try='test -s conftest$ac_exeext'
38844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38845 (eval $ac_try) 2>&5
38846 ac_status=$?
38847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848 (exit $ac_status); }; }; then
38849 eval "$as_ac_var=yes"
38850 else
38851 echo "$as_me: failed program was:" >&5
38852 sed 's/^/| /' conftest.$ac_ext >&5
38853
38854 eval "$as_ac_var=no"
38855 fi
38856 rm -f conftest.err conftest.$ac_objext \
38857 conftest$ac_exeext conftest.$ac_ext
38858 fi
38859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38861 if test `eval echo '${'$as_ac_var'}'` = yes; then
38862 cat >>confdefs.h <<_ACEOF
38863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38864 _ACEOF
38865
38866 fi
38867 done
38868
38869 fi
38870 fi
38871
38872
38873
38874 echo "$as_me:$LINENO: checking for modff declaration" >&5
38875 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
38876 if test x${glibcxx_cv_func_modff_use+set} != xset; then
38877 if test "${glibcxx_cv_func_modff_use+set}" = set; then
38878 echo $ECHO_N "(cached) $ECHO_C" >&6
38879 else
38880
38881
38882
38883 ac_ext=cc
38884 ac_cpp='$CXXCPP $CPPFLAGS'
38885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38888
38889 cat >conftest.$ac_ext <<_ACEOF
38890 /* confdefs.h. */
38891 _ACEOF
38892 cat confdefs.h >>conftest.$ac_ext
38893 cat >>conftest.$ac_ext <<_ACEOF
38894 /* end confdefs.h. */
38895 #include <math.h>
38896 int
38897 main ()
38898 {
38899 modff(0, 0);
38900 ;
38901 return 0;
38902 }
38903 _ACEOF
38904 rm -f conftest.$ac_objext
38905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38906 (eval $ac_compile) 2>conftest.er1
38907 ac_status=$?
38908 grep -v '^ *+' conftest.er1 >conftest.err
38909 rm -f conftest.er1
38910 cat conftest.err >&5
38911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38912 (exit $ac_status); } &&
38913 { ac_try='test -z "$ac_cxx_werror_flag"
38914 || test ! -s conftest.err'
38915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38916 (eval $ac_try) 2>&5
38917 ac_status=$?
38918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38919 (exit $ac_status); }; } &&
38920 { ac_try='test -s conftest.$ac_objext'
38921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38922 (eval $ac_try) 2>&5
38923 ac_status=$?
38924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38925 (exit $ac_status); }; }; then
38926 glibcxx_cv_func_modff_use=yes
38927 else
38928 echo "$as_me: failed program was:" >&5
38929 sed 's/^/| /' conftest.$ac_ext >&5
38930
38931 glibcxx_cv_func_modff_use=no
38932 fi
38933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38934 ac_ext=c
38935 ac_cpp='$CPP $CPPFLAGS'
38936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38939
38940
38941 fi
38942
38943 fi
38944 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
38945 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
38946
38947 if test x$glibcxx_cv_func_modff_use = x"yes"; then
38948
38949 for ac_func in modff
38950 do
38951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38952 echo "$as_me:$LINENO: checking for $ac_func" >&5
38953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38954 if eval "test \"\${$as_ac_var+set}\" = set"; then
38955 echo $ECHO_N "(cached) $ECHO_C" >&6
38956 else
38957 if test x$gcc_no_link = xyes; then
38958 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38959 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38960 { (exit 1); exit 1; }; }
38961 fi
38962 cat >conftest.$ac_ext <<_ACEOF
38963 /* confdefs.h. */
38964 _ACEOF
38965 cat confdefs.h >>conftest.$ac_ext
38966 cat >>conftest.$ac_ext <<_ACEOF
38967 /* end confdefs.h. */
38968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38970 #define $ac_func innocuous_$ac_func
38971
38972 /* System header to define __stub macros and hopefully few prototypes,
38973 which can conflict with char $ac_func (); below.
38974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38975 <limits.h> exists even on freestanding compilers. */
38976
38977 #ifdef __STDC__
38978 # include <limits.h>
38979 #else
38980 # include <assert.h>
38981 #endif
38982
38983 #undef $ac_func
38984
38985 /* Override any gcc2 internal prototype to avoid an error. */
38986 #ifdef __cplusplus
38987 extern "C"
38988 {
38989 #endif
38990 /* We use char because int might match the return type of a gcc2
38991 builtin and then its argument prototype would still apply. */
38992 char $ac_func ();
38993 /* The GNU C library defines this for functions which it implements
38994 to always fail with ENOSYS. Some functions are actually named
38995 something starting with __ and the normal name is an alias. */
38996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38997 choke me
38998 #else
38999 char (*f) () = $ac_func;
39000 #endif
39001 #ifdef __cplusplus
39002 }
39003 #endif
39004
39005 int
39006 main ()
39007 {
39008 return f != $ac_func;
39009 ;
39010 return 0;
39011 }
39012 _ACEOF
39013 rm -f conftest.$ac_objext conftest$ac_exeext
39014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39015 (eval $ac_link) 2>conftest.er1
39016 ac_status=$?
39017 grep -v '^ *+' conftest.er1 >conftest.err
39018 rm -f conftest.er1
39019 cat conftest.err >&5
39020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021 (exit $ac_status); } &&
39022 { ac_try='test -z "$ac_c_werror_flag"
39023 || test ! -s conftest.err'
39024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39025 (eval $ac_try) 2>&5
39026 ac_status=$?
39027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39028 (exit $ac_status); }; } &&
39029 { ac_try='test -s conftest$ac_exeext'
39030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39031 (eval $ac_try) 2>&5
39032 ac_status=$?
39033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39034 (exit $ac_status); }; }; then
39035 eval "$as_ac_var=yes"
39036 else
39037 echo "$as_me: failed program was:" >&5
39038 sed 's/^/| /' conftest.$ac_ext >&5
39039
39040 eval "$as_ac_var=no"
39041 fi
39042 rm -f conftest.err conftest.$ac_objext \
39043 conftest$ac_exeext conftest.$ac_ext
39044 fi
39045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39047 if test `eval echo '${'$as_ac_var'}'` = yes; then
39048 cat >>confdefs.h <<_ACEOF
39049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39050 _ACEOF
39051
39052 fi
39053 done
39054
39055 else
39056
39057 echo "$as_me:$LINENO: checking for _modff declaration" >&5
39058 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
39059 if test x${glibcxx_cv_func__modff_use+set} != xset; then
39060 if test "${glibcxx_cv_func__modff_use+set}" = set; then
39061 echo $ECHO_N "(cached) $ECHO_C" >&6
39062 else
39063
39064
39065
39066 ac_ext=cc
39067 ac_cpp='$CXXCPP $CPPFLAGS'
39068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39071
39072 cat >conftest.$ac_ext <<_ACEOF
39073 /* confdefs.h. */
39074 _ACEOF
39075 cat confdefs.h >>conftest.$ac_ext
39076 cat >>conftest.$ac_ext <<_ACEOF
39077 /* end confdefs.h. */
39078 #include <math.h>
39079 int
39080 main ()
39081 {
39082 _modff(0, 0);
39083 ;
39084 return 0;
39085 }
39086 _ACEOF
39087 rm -f conftest.$ac_objext
39088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39089 (eval $ac_compile) 2>conftest.er1
39090 ac_status=$?
39091 grep -v '^ *+' conftest.er1 >conftest.err
39092 rm -f conftest.er1
39093 cat conftest.err >&5
39094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39095 (exit $ac_status); } &&
39096 { ac_try='test -z "$ac_cxx_werror_flag"
39097 || test ! -s conftest.err'
39098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39099 (eval $ac_try) 2>&5
39100 ac_status=$?
39101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39102 (exit $ac_status); }; } &&
39103 { ac_try='test -s conftest.$ac_objext'
39104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39105 (eval $ac_try) 2>&5
39106 ac_status=$?
39107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39108 (exit $ac_status); }; }; then
39109 glibcxx_cv_func__modff_use=yes
39110 else
39111 echo "$as_me: failed program was:" >&5
39112 sed 's/^/| /' conftest.$ac_ext >&5
39113
39114 glibcxx_cv_func__modff_use=no
39115 fi
39116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39117 ac_ext=c
39118 ac_cpp='$CPP $CPPFLAGS'
39119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39122
39123
39124 fi
39125
39126 fi
39127 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
39128 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
39129
39130 if test x$glibcxx_cv_func__modff_use = x"yes"; then
39131
39132 for ac_func in _modff
39133 do
39134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39135 echo "$as_me:$LINENO: checking for $ac_func" >&5
39136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39137 if eval "test \"\${$as_ac_var+set}\" = set"; then
39138 echo $ECHO_N "(cached) $ECHO_C" >&6
39139 else
39140 if test x$gcc_no_link = xyes; then
39141 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39142 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39143 { (exit 1); exit 1; }; }
39144 fi
39145 cat >conftest.$ac_ext <<_ACEOF
39146 /* confdefs.h. */
39147 _ACEOF
39148 cat confdefs.h >>conftest.$ac_ext
39149 cat >>conftest.$ac_ext <<_ACEOF
39150 /* end confdefs.h. */
39151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39153 #define $ac_func innocuous_$ac_func
39154
39155 /* System header to define __stub macros and hopefully few prototypes,
39156 which can conflict with char $ac_func (); below.
39157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39158 <limits.h> exists even on freestanding compilers. */
39159
39160 #ifdef __STDC__
39161 # include <limits.h>
39162 #else
39163 # include <assert.h>
39164 #endif
39165
39166 #undef $ac_func
39167
39168 /* Override any gcc2 internal prototype to avoid an error. */
39169 #ifdef __cplusplus
39170 extern "C"
39171 {
39172 #endif
39173 /* We use char because int might match the return type of a gcc2
39174 builtin and then its argument prototype would still apply. */
39175 char $ac_func ();
39176 /* The GNU C library defines this for functions which it implements
39177 to always fail with ENOSYS. Some functions are actually named
39178 something starting with __ and the normal name is an alias. */
39179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39180 choke me
39181 #else
39182 char (*f) () = $ac_func;
39183 #endif
39184 #ifdef __cplusplus
39185 }
39186 #endif
39187
39188 int
39189 main ()
39190 {
39191 return f != $ac_func;
39192 ;
39193 return 0;
39194 }
39195 _ACEOF
39196 rm -f conftest.$ac_objext conftest$ac_exeext
39197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39198 (eval $ac_link) 2>conftest.er1
39199 ac_status=$?
39200 grep -v '^ *+' conftest.er1 >conftest.err
39201 rm -f conftest.er1
39202 cat conftest.err >&5
39203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39204 (exit $ac_status); } &&
39205 { ac_try='test -z "$ac_c_werror_flag"
39206 || test ! -s conftest.err'
39207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39208 (eval $ac_try) 2>&5
39209 ac_status=$?
39210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39211 (exit $ac_status); }; } &&
39212 { ac_try='test -s conftest$ac_exeext'
39213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39214 (eval $ac_try) 2>&5
39215 ac_status=$?
39216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39217 (exit $ac_status); }; }; then
39218 eval "$as_ac_var=yes"
39219 else
39220 echo "$as_me: failed program was:" >&5
39221 sed 's/^/| /' conftest.$ac_ext >&5
39222
39223 eval "$as_ac_var=no"
39224 fi
39225 rm -f conftest.err conftest.$ac_objext \
39226 conftest$ac_exeext conftest.$ac_ext
39227 fi
39228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39230 if test `eval echo '${'$as_ac_var'}'` = yes; then
39231 cat >>confdefs.h <<_ACEOF
39232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39233 _ACEOF
39234
39235 fi
39236 done
39237
39238 fi
39239 fi
39240
39241
39242
39243 echo "$as_me:$LINENO: checking for powf declaration" >&5
39244 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
39245 if test x${glibcxx_cv_func_powf_use+set} != xset; then
39246 if test "${glibcxx_cv_func_powf_use+set}" = set; then
39247 echo $ECHO_N "(cached) $ECHO_C" >&6
39248 else
39249
39250
39251
39252 ac_ext=cc
39253 ac_cpp='$CXXCPP $CPPFLAGS'
39254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39257
39258 cat >conftest.$ac_ext <<_ACEOF
39259 /* confdefs.h. */
39260 _ACEOF
39261 cat confdefs.h >>conftest.$ac_ext
39262 cat >>conftest.$ac_ext <<_ACEOF
39263 /* end confdefs.h. */
39264 #include <math.h>
39265 int
39266 main ()
39267 {
39268 powf(0, 0);
39269 ;
39270 return 0;
39271 }
39272 _ACEOF
39273 rm -f conftest.$ac_objext
39274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39275 (eval $ac_compile) 2>conftest.er1
39276 ac_status=$?
39277 grep -v '^ *+' conftest.er1 >conftest.err
39278 rm -f conftest.er1
39279 cat conftest.err >&5
39280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39281 (exit $ac_status); } &&
39282 { ac_try='test -z "$ac_cxx_werror_flag"
39283 || test ! -s conftest.err'
39284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39285 (eval $ac_try) 2>&5
39286 ac_status=$?
39287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39288 (exit $ac_status); }; } &&
39289 { ac_try='test -s conftest.$ac_objext'
39290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39291 (eval $ac_try) 2>&5
39292 ac_status=$?
39293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39294 (exit $ac_status); }; }; then
39295 glibcxx_cv_func_powf_use=yes
39296 else
39297 echo "$as_me: failed program was:" >&5
39298 sed 's/^/| /' conftest.$ac_ext >&5
39299
39300 glibcxx_cv_func_powf_use=no
39301 fi
39302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39303 ac_ext=c
39304 ac_cpp='$CPP $CPPFLAGS'
39305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39308
39309
39310 fi
39311
39312 fi
39313 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
39314 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
39315
39316 if test x$glibcxx_cv_func_powf_use = x"yes"; then
39317
39318 for ac_func in powf
39319 do
39320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39321 echo "$as_me:$LINENO: checking for $ac_func" >&5
39322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39323 if eval "test \"\${$as_ac_var+set}\" = set"; then
39324 echo $ECHO_N "(cached) $ECHO_C" >&6
39325 else
39326 if test x$gcc_no_link = xyes; then
39327 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39328 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39329 { (exit 1); exit 1; }; }
39330 fi
39331 cat >conftest.$ac_ext <<_ACEOF
39332 /* confdefs.h. */
39333 _ACEOF
39334 cat confdefs.h >>conftest.$ac_ext
39335 cat >>conftest.$ac_ext <<_ACEOF
39336 /* end confdefs.h. */
39337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39339 #define $ac_func innocuous_$ac_func
39340
39341 /* System header to define __stub macros and hopefully few prototypes,
39342 which can conflict with char $ac_func (); below.
39343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39344 <limits.h> exists even on freestanding compilers. */
39345
39346 #ifdef __STDC__
39347 # include <limits.h>
39348 #else
39349 # include <assert.h>
39350 #endif
39351
39352 #undef $ac_func
39353
39354 /* Override any gcc2 internal prototype to avoid an error. */
39355 #ifdef __cplusplus
39356 extern "C"
39357 {
39358 #endif
39359 /* We use char because int might match the return type of a gcc2
39360 builtin and then its argument prototype would still apply. */
39361 char $ac_func ();
39362 /* The GNU C library defines this for functions which it implements
39363 to always fail with ENOSYS. Some functions are actually named
39364 something starting with __ and the normal name is an alias. */
39365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39366 choke me
39367 #else
39368 char (*f) () = $ac_func;
39369 #endif
39370 #ifdef __cplusplus
39371 }
39372 #endif
39373
39374 int
39375 main ()
39376 {
39377 return f != $ac_func;
39378 ;
39379 return 0;
39380 }
39381 _ACEOF
39382 rm -f conftest.$ac_objext conftest$ac_exeext
39383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39384 (eval $ac_link) 2>conftest.er1
39385 ac_status=$?
39386 grep -v '^ *+' conftest.er1 >conftest.err
39387 rm -f conftest.er1
39388 cat conftest.err >&5
39389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39390 (exit $ac_status); } &&
39391 { ac_try='test -z "$ac_c_werror_flag"
39392 || test ! -s conftest.err'
39393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39394 (eval $ac_try) 2>&5
39395 ac_status=$?
39396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39397 (exit $ac_status); }; } &&
39398 { ac_try='test -s conftest$ac_exeext'
39399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39400 (eval $ac_try) 2>&5
39401 ac_status=$?
39402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39403 (exit $ac_status); }; }; then
39404 eval "$as_ac_var=yes"
39405 else
39406 echo "$as_me: failed program was:" >&5
39407 sed 's/^/| /' conftest.$ac_ext >&5
39408
39409 eval "$as_ac_var=no"
39410 fi
39411 rm -f conftest.err conftest.$ac_objext \
39412 conftest$ac_exeext conftest.$ac_ext
39413 fi
39414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39416 if test `eval echo '${'$as_ac_var'}'` = yes; then
39417 cat >>confdefs.h <<_ACEOF
39418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39419 _ACEOF
39420
39421 fi
39422 done
39423
39424 else
39425
39426 echo "$as_me:$LINENO: checking for _powf declaration" >&5
39427 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
39428 if test x${glibcxx_cv_func__powf_use+set} != xset; then
39429 if test "${glibcxx_cv_func__powf_use+set}" = set; then
39430 echo $ECHO_N "(cached) $ECHO_C" >&6
39431 else
39432
39433
39434
39435 ac_ext=cc
39436 ac_cpp='$CXXCPP $CPPFLAGS'
39437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39440
39441 cat >conftest.$ac_ext <<_ACEOF
39442 /* confdefs.h. */
39443 _ACEOF
39444 cat confdefs.h >>conftest.$ac_ext
39445 cat >>conftest.$ac_ext <<_ACEOF
39446 /* end confdefs.h. */
39447 #include <math.h>
39448 int
39449 main ()
39450 {
39451 _powf(0, 0);
39452 ;
39453 return 0;
39454 }
39455 _ACEOF
39456 rm -f conftest.$ac_objext
39457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39458 (eval $ac_compile) 2>conftest.er1
39459 ac_status=$?
39460 grep -v '^ *+' conftest.er1 >conftest.err
39461 rm -f conftest.er1
39462 cat conftest.err >&5
39463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39464 (exit $ac_status); } &&
39465 { ac_try='test -z "$ac_cxx_werror_flag"
39466 || test ! -s conftest.err'
39467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39468 (eval $ac_try) 2>&5
39469 ac_status=$?
39470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39471 (exit $ac_status); }; } &&
39472 { ac_try='test -s conftest.$ac_objext'
39473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39474 (eval $ac_try) 2>&5
39475 ac_status=$?
39476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477 (exit $ac_status); }; }; then
39478 glibcxx_cv_func__powf_use=yes
39479 else
39480 echo "$as_me: failed program was:" >&5
39481 sed 's/^/| /' conftest.$ac_ext >&5
39482
39483 glibcxx_cv_func__powf_use=no
39484 fi
39485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39486 ac_ext=c
39487 ac_cpp='$CPP $CPPFLAGS'
39488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39491
39492
39493 fi
39494
39495 fi
39496 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
39497 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
39498
39499 if test x$glibcxx_cv_func__powf_use = x"yes"; then
39500
39501 for ac_func in _powf
39502 do
39503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39504 echo "$as_me:$LINENO: checking for $ac_func" >&5
39505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39506 if eval "test \"\${$as_ac_var+set}\" = set"; then
39507 echo $ECHO_N "(cached) $ECHO_C" >&6
39508 else
39509 if test x$gcc_no_link = xyes; then
39510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39512 { (exit 1); exit 1; }; }
39513 fi
39514 cat >conftest.$ac_ext <<_ACEOF
39515 /* confdefs.h. */
39516 _ACEOF
39517 cat confdefs.h >>conftest.$ac_ext
39518 cat >>conftest.$ac_ext <<_ACEOF
39519 /* end confdefs.h. */
39520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39522 #define $ac_func innocuous_$ac_func
39523
39524 /* System header to define __stub macros and hopefully few prototypes,
39525 which can conflict with char $ac_func (); below.
39526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39527 <limits.h> exists even on freestanding compilers. */
39528
39529 #ifdef __STDC__
39530 # include <limits.h>
39531 #else
39532 # include <assert.h>
39533 #endif
39534
39535 #undef $ac_func
39536
39537 /* Override any gcc2 internal prototype to avoid an error. */
39538 #ifdef __cplusplus
39539 extern "C"
39540 {
39541 #endif
39542 /* We use char because int might match the return type of a gcc2
39543 builtin and then its argument prototype would still apply. */
39544 char $ac_func ();
39545 /* The GNU C library defines this for functions which it implements
39546 to always fail with ENOSYS. Some functions are actually named
39547 something starting with __ and the normal name is an alias. */
39548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39549 choke me
39550 #else
39551 char (*f) () = $ac_func;
39552 #endif
39553 #ifdef __cplusplus
39554 }
39555 #endif
39556
39557 int
39558 main ()
39559 {
39560 return f != $ac_func;
39561 ;
39562 return 0;
39563 }
39564 _ACEOF
39565 rm -f conftest.$ac_objext conftest$ac_exeext
39566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39567 (eval $ac_link) 2>conftest.er1
39568 ac_status=$?
39569 grep -v '^ *+' conftest.er1 >conftest.err
39570 rm -f conftest.er1
39571 cat conftest.err >&5
39572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39573 (exit $ac_status); } &&
39574 { ac_try='test -z "$ac_c_werror_flag"
39575 || test ! -s conftest.err'
39576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39577 (eval $ac_try) 2>&5
39578 ac_status=$?
39579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39580 (exit $ac_status); }; } &&
39581 { ac_try='test -s conftest$ac_exeext'
39582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39583 (eval $ac_try) 2>&5
39584 ac_status=$?
39585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39586 (exit $ac_status); }; }; then
39587 eval "$as_ac_var=yes"
39588 else
39589 echo "$as_me: failed program was:" >&5
39590 sed 's/^/| /' conftest.$ac_ext >&5
39591
39592 eval "$as_ac_var=no"
39593 fi
39594 rm -f conftest.err conftest.$ac_objext \
39595 conftest$ac_exeext conftest.$ac_ext
39596 fi
39597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39599 if test `eval echo '${'$as_ac_var'}'` = yes; then
39600 cat >>confdefs.h <<_ACEOF
39601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39602 _ACEOF
39603
39604 fi
39605 done
39606
39607 fi
39608 fi
39609
39610
39611
39612 echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
39613 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
39614 if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
39615 if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
39616 echo $ECHO_N "(cached) $ECHO_C" >&6
39617 else
39618
39619
39620
39621 ac_ext=cc
39622 ac_cpp='$CXXCPP $CPPFLAGS'
39623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39626
39627 cat >conftest.$ac_ext <<_ACEOF
39628 /* confdefs.h. */
39629 _ACEOF
39630 cat confdefs.h >>conftest.$ac_ext
39631 cat >>conftest.$ac_ext <<_ACEOF
39632 /* end confdefs.h. */
39633 #include <math.h>
39634 #ifdef HAVE_IEEEFP_H
39635 #include <ieeefp.h>
39636 #endif
39637
39638 int
39639 main ()
39640 {
39641 sqrtf(0);
39642 ;
39643 return 0;
39644 }
39645 _ACEOF
39646 rm -f conftest.$ac_objext
39647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39648 (eval $ac_compile) 2>conftest.er1
39649 ac_status=$?
39650 grep -v '^ *+' conftest.er1 >conftest.err
39651 rm -f conftest.er1
39652 cat conftest.err >&5
39653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39654 (exit $ac_status); } &&
39655 { ac_try='test -z "$ac_cxx_werror_flag"
39656 || test ! -s conftest.err'
39657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39658 (eval $ac_try) 2>&5
39659 ac_status=$?
39660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39661 (exit $ac_status); }; } &&
39662 { ac_try='test -s conftest.$ac_objext'
39663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39664 (eval $ac_try) 2>&5
39665 ac_status=$?
39666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39667 (exit $ac_status); }; }; then
39668 glibcxx_cv_func_sqrtf_use=yes
39669 else
39670 echo "$as_me: failed program was:" >&5
39671 sed 's/^/| /' conftest.$ac_ext >&5
39672
39673 glibcxx_cv_func_sqrtf_use=no
39674 fi
39675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39676 ac_ext=c
39677 ac_cpp='$CPP $CPPFLAGS'
39678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39681
39682
39683 fi
39684
39685 fi
39686 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
39687 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
39688
39689 if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
39690
39691 for ac_func in sqrtf
39692 do
39693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39694 echo "$as_me:$LINENO: checking for $ac_func" >&5
39695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39696 if eval "test \"\${$as_ac_var+set}\" = set"; then
39697 echo $ECHO_N "(cached) $ECHO_C" >&6
39698 else
39699 if test x$gcc_no_link = xyes; then
39700 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39701 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39702 { (exit 1); exit 1; }; }
39703 fi
39704 cat >conftest.$ac_ext <<_ACEOF
39705 /* confdefs.h. */
39706 _ACEOF
39707 cat confdefs.h >>conftest.$ac_ext
39708 cat >>conftest.$ac_ext <<_ACEOF
39709 /* end confdefs.h. */
39710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39712 #define $ac_func innocuous_$ac_func
39713
39714 /* System header to define __stub macros and hopefully few prototypes,
39715 which can conflict with char $ac_func (); below.
39716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39717 <limits.h> exists even on freestanding compilers. */
39718
39719 #ifdef __STDC__
39720 # include <limits.h>
39721 #else
39722 # include <assert.h>
39723 #endif
39724
39725 #undef $ac_func
39726
39727 /* Override any gcc2 internal prototype to avoid an error. */
39728 #ifdef __cplusplus
39729 extern "C"
39730 {
39731 #endif
39732 /* We use char because int might match the return type of a gcc2
39733 builtin and then its argument prototype would still apply. */
39734 char $ac_func ();
39735 /* The GNU C library defines this for functions which it implements
39736 to always fail with ENOSYS. Some functions are actually named
39737 something starting with __ and the normal name is an alias. */
39738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39739 choke me
39740 #else
39741 char (*f) () = $ac_func;
39742 #endif
39743 #ifdef __cplusplus
39744 }
39745 #endif
39746
39747 int
39748 main ()
39749 {
39750 return f != $ac_func;
39751 ;
39752 return 0;
39753 }
39754 _ACEOF
39755 rm -f conftest.$ac_objext conftest$ac_exeext
39756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39757 (eval $ac_link) 2>conftest.er1
39758 ac_status=$?
39759 grep -v '^ *+' conftest.er1 >conftest.err
39760 rm -f conftest.er1
39761 cat conftest.err >&5
39762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39763 (exit $ac_status); } &&
39764 { ac_try='test -z "$ac_c_werror_flag"
39765 || test ! -s conftest.err'
39766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39767 (eval $ac_try) 2>&5
39768 ac_status=$?
39769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39770 (exit $ac_status); }; } &&
39771 { ac_try='test -s conftest$ac_exeext'
39772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39773 (eval $ac_try) 2>&5
39774 ac_status=$?
39775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39776 (exit $ac_status); }; }; then
39777 eval "$as_ac_var=yes"
39778 else
39779 echo "$as_me: failed program was:" >&5
39780 sed 's/^/| /' conftest.$ac_ext >&5
39781
39782 eval "$as_ac_var=no"
39783 fi
39784 rm -f conftest.err conftest.$ac_objext \
39785 conftest$ac_exeext conftest.$ac_ext
39786 fi
39787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39789 if test `eval echo '${'$as_ac_var'}'` = yes; then
39790 cat >>confdefs.h <<_ACEOF
39791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39792 _ACEOF
39793
39794 fi
39795 done
39796
39797 else
39798
39799 echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
39800 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
39801 if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
39802 if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
39803 echo $ECHO_N "(cached) $ECHO_C" >&6
39804 else
39805
39806
39807
39808 ac_ext=cc
39809 ac_cpp='$CXXCPP $CPPFLAGS'
39810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39813
39814 cat >conftest.$ac_ext <<_ACEOF
39815 /* confdefs.h. */
39816 _ACEOF
39817 cat confdefs.h >>conftest.$ac_ext
39818 cat >>conftest.$ac_ext <<_ACEOF
39819 /* end confdefs.h. */
39820 #include <math.h>
39821 #ifdef HAVE_IEEEFP_H
39822 #include <ieeefp.h>
39823 #endif
39824
39825 int
39826 main ()
39827 {
39828 _sqrtf(0);
39829 ;
39830 return 0;
39831 }
39832 _ACEOF
39833 rm -f conftest.$ac_objext
39834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39835 (eval $ac_compile) 2>conftest.er1
39836 ac_status=$?
39837 grep -v '^ *+' conftest.er1 >conftest.err
39838 rm -f conftest.er1
39839 cat conftest.err >&5
39840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39841 (exit $ac_status); } &&
39842 { ac_try='test -z "$ac_cxx_werror_flag"
39843 || test ! -s conftest.err'
39844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39845 (eval $ac_try) 2>&5
39846 ac_status=$?
39847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39848 (exit $ac_status); }; } &&
39849 { ac_try='test -s conftest.$ac_objext'
39850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39851 (eval $ac_try) 2>&5
39852 ac_status=$?
39853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39854 (exit $ac_status); }; }; then
39855 glibcxx_cv_func__sqrtf_use=yes
39856 else
39857 echo "$as_me: failed program was:" >&5
39858 sed 's/^/| /' conftest.$ac_ext >&5
39859
39860 glibcxx_cv_func__sqrtf_use=no
39861 fi
39862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39863 ac_ext=c
39864 ac_cpp='$CPP $CPPFLAGS'
39865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39868
39869
39870 fi
39871
39872 fi
39873 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
39874 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
39875
39876 if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
39877
39878 for ac_func in _sqrtf
39879 do
39880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39881 echo "$as_me:$LINENO: checking for $ac_func" >&5
39882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39883 if eval "test \"\${$as_ac_var+set}\" = set"; then
39884 echo $ECHO_N "(cached) $ECHO_C" >&6
39885 else
39886 if test x$gcc_no_link = xyes; then
39887 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39888 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39889 { (exit 1); exit 1; }; }
39890 fi
39891 cat >conftest.$ac_ext <<_ACEOF
39892 /* confdefs.h. */
39893 _ACEOF
39894 cat confdefs.h >>conftest.$ac_ext
39895 cat >>conftest.$ac_ext <<_ACEOF
39896 /* end confdefs.h. */
39897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39899 #define $ac_func innocuous_$ac_func
39900
39901 /* System header to define __stub macros and hopefully few prototypes,
39902 which can conflict with char $ac_func (); below.
39903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39904 <limits.h> exists even on freestanding compilers. */
39905
39906 #ifdef __STDC__
39907 # include <limits.h>
39908 #else
39909 # include <assert.h>
39910 #endif
39911
39912 #undef $ac_func
39913
39914 /* Override any gcc2 internal prototype to avoid an error. */
39915 #ifdef __cplusplus
39916 extern "C"
39917 {
39918 #endif
39919 /* We use char because int might match the return type of a gcc2
39920 builtin and then its argument prototype would still apply. */
39921 char $ac_func ();
39922 /* The GNU C library defines this for functions which it implements
39923 to always fail with ENOSYS. Some functions are actually named
39924 something starting with __ and the normal name is an alias. */
39925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39926 choke me
39927 #else
39928 char (*f) () = $ac_func;
39929 #endif
39930 #ifdef __cplusplus
39931 }
39932 #endif
39933
39934 int
39935 main ()
39936 {
39937 return f != $ac_func;
39938 ;
39939 return 0;
39940 }
39941 _ACEOF
39942 rm -f conftest.$ac_objext conftest$ac_exeext
39943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39944 (eval $ac_link) 2>conftest.er1
39945 ac_status=$?
39946 grep -v '^ *+' conftest.er1 >conftest.err
39947 rm -f conftest.er1
39948 cat conftest.err >&5
39949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39950 (exit $ac_status); } &&
39951 { ac_try='test -z "$ac_c_werror_flag"
39952 || test ! -s conftest.err'
39953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39954 (eval $ac_try) 2>&5
39955 ac_status=$?
39956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39957 (exit $ac_status); }; } &&
39958 { ac_try='test -s conftest$ac_exeext'
39959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39960 (eval $ac_try) 2>&5
39961 ac_status=$?
39962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39963 (exit $ac_status); }; }; then
39964 eval "$as_ac_var=yes"
39965 else
39966 echo "$as_me: failed program was:" >&5
39967 sed 's/^/| /' conftest.$ac_ext >&5
39968
39969 eval "$as_ac_var=no"
39970 fi
39971 rm -f conftest.err conftest.$ac_objext \
39972 conftest$ac_exeext conftest.$ac_ext
39973 fi
39974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39976 if test `eval echo '${'$as_ac_var'}'` = yes; then
39977 cat >>confdefs.h <<_ACEOF
39978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39979 _ACEOF
39980
39981 fi
39982 done
39983
39984 fi
39985 fi
39986
39987
39988
39989 echo "$as_me:$LINENO: checking for sincosf declaration" >&5
39990 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
39991 if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
39992 if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
39993 echo $ECHO_N "(cached) $ECHO_C" >&6
39994 else
39995
39996
39997
39998 ac_ext=cc
39999 ac_cpp='$CXXCPP $CPPFLAGS'
40000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40003
40004 cat >conftest.$ac_ext <<_ACEOF
40005 /* confdefs.h. */
40006 _ACEOF
40007 cat confdefs.h >>conftest.$ac_ext
40008 cat >>conftest.$ac_ext <<_ACEOF
40009 /* end confdefs.h. */
40010 #include <math.h>
40011 int
40012 main ()
40013 {
40014 sincosf(0, 0, 0);
40015 ;
40016 return 0;
40017 }
40018 _ACEOF
40019 rm -f conftest.$ac_objext
40020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40021 (eval $ac_compile) 2>conftest.er1
40022 ac_status=$?
40023 grep -v '^ *+' conftest.er1 >conftest.err
40024 rm -f conftest.er1
40025 cat conftest.err >&5
40026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40027 (exit $ac_status); } &&
40028 { ac_try='test -z "$ac_cxx_werror_flag"
40029 || test ! -s conftest.err'
40030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40031 (eval $ac_try) 2>&5
40032 ac_status=$?
40033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40034 (exit $ac_status); }; } &&
40035 { ac_try='test -s conftest.$ac_objext'
40036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40037 (eval $ac_try) 2>&5
40038 ac_status=$?
40039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40040 (exit $ac_status); }; }; then
40041 glibcxx_cv_func_sincosf_use=yes
40042 else
40043 echo "$as_me: failed program was:" >&5
40044 sed 's/^/| /' conftest.$ac_ext >&5
40045
40046 glibcxx_cv_func_sincosf_use=no
40047 fi
40048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40049 ac_ext=c
40050 ac_cpp='$CPP $CPPFLAGS'
40051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40054
40055
40056 fi
40057
40058 fi
40059 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
40060 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
40061
40062 if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
40063
40064 for ac_func in sincosf
40065 do
40066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40067 echo "$as_me:$LINENO: checking for $ac_func" >&5
40068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40069 if eval "test \"\${$as_ac_var+set}\" = set"; then
40070 echo $ECHO_N "(cached) $ECHO_C" >&6
40071 else
40072 if test x$gcc_no_link = xyes; then
40073 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40075 { (exit 1); exit 1; }; }
40076 fi
40077 cat >conftest.$ac_ext <<_ACEOF
40078 /* confdefs.h. */
40079 _ACEOF
40080 cat confdefs.h >>conftest.$ac_ext
40081 cat >>conftest.$ac_ext <<_ACEOF
40082 /* end confdefs.h. */
40083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40085 #define $ac_func innocuous_$ac_func
40086
40087 /* System header to define __stub macros and hopefully few prototypes,
40088 which can conflict with char $ac_func (); below.
40089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40090 <limits.h> exists even on freestanding compilers. */
40091
40092 #ifdef __STDC__
40093 # include <limits.h>
40094 #else
40095 # include <assert.h>
40096 #endif
40097
40098 #undef $ac_func
40099
40100 /* Override any gcc2 internal prototype to avoid an error. */
40101 #ifdef __cplusplus
40102 extern "C"
40103 {
40104 #endif
40105 /* We use char because int might match the return type of a gcc2
40106 builtin and then its argument prototype would still apply. */
40107 char $ac_func ();
40108 /* The GNU C library defines this for functions which it implements
40109 to always fail with ENOSYS. Some functions are actually named
40110 something starting with __ and the normal name is an alias. */
40111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40112 choke me
40113 #else
40114 char (*f) () = $ac_func;
40115 #endif
40116 #ifdef __cplusplus
40117 }
40118 #endif
40119
40120 int
40121 main ()
40122 {
40123 return f != $ac_func;
40124 ;
40125 return 0;
40126 }
40127 _ACEOF
40128 rm -f conftest.$ac_objext conftest$ac_exeext
40129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40130 (eval $ac_link) 2>conftest.er1
40131 ac_status=$?
40132 grep -v '^ *+' conftest.er1 >conftest.err
40133 rm -f conftest.er1
40134 cat conftest.err >&5
40135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40136 (exit $ac_status); } &&
40137 { ac_try='test -z "$ac_c_werror_flag"
40138 || test ! -s conftest.err'
40139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40140 (eval $ac_try) 2>&5
40141 ac_status=$?
40142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40143 (exit $ac_status); }; } &&
40144 { ac_try='test -s conftest$ac_exeext'
40145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40146 (eval $ac_try) 2>&5
40147 ac_status=$?
40148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40149 (exit $ac_status); }; }; then
40150 eval "$as_ac_var=yes"
40151 else
40152 echo "$as_me: failed program was:" >&5
40153 sed 's/^/| /' conftest.$ac_ext >&5
40154
40155 eval "$as_ac_var=no"
40156 fi
40157 rm -f conftest.err conftest.$ac_objext \
40158 conftest$ac_exeext conftest.$ac_ext
40159 fi
40160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40162 if test `eval echo '${'$as_ac_var'}'` = yes; then
40163 cat >>confdefs.h <<_ACEOF
40164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40165 _ACEOF
40166
40167 fi
40168 done
40169
40170 else
40171
40172 echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
40173 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
40174 if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
40175 if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
40176 echo $ECHO_N "(cached) $ECHO_C" >&6
40177 else
40178
40179
40180
40181 ac_ext=cc
40182 ac_cpp='$CXXCPP $CPPFLAGS'
40183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40186
40187 cat >conftest.$ac_ext <<_ACEOF
40188 /* confdefs.h. */
40189 _ACEOF
40190 cat confdefs.h >>conftest.$ac_ext
40191 cat >>conftest.$ac_ext <<_ACEOF
40192 /* end confdefs.h. */
40193 #include <math.h>
40194 int
40195 main ()
40196 {
40197 _sincosf(0, 0, 0);
40198 ;
40199 return 0;
40200 }
40201 _ACEOF
40202 rm -f conftest.$ac_objext
40203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40204 (eval $ac_compile) 2>conftest.er1
40205 ac_status=$?
40206 grep -v '^ *+' conftest.er1 >conftest.err
40207 rm -f conftest.er1
40208 cat conftest.err >&5
40209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40210 (exit $ac_status); } &&
40211 { ac_try='test -z "$ac_cxx_werror_flag"
40212 || test ! -s conftest.err'
40213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40214 (eval $ac_try) 2>&5
40215 ac_status=$?
40216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40217 (exit $ac_status); }; } &&
40218 { ac_try='test -s conftest.$ac_objext'
40219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40220 (eval $ac_try) 2>&5
40221 ac_status=$?
40222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40223 (exit $ac_status); }; }; then
40224 glibcxx_cv_func__sincosf_use=yes
40225 else
40226 echo "$as_me: failed program was:" >&5
40227 sed 's/^/| /' conftest.$ac_ext >&5
40228
40229 glibcxx_cv_func__sincosf_use=no
40230 fi
40231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40232 ac_ext=c
40233 ac_cpp='$CPP $CPPFLAGS'
40234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40237
40238
40239 fi
40240
40241 fi
40242 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
40243 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
40244
40245 if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
40246
40247 for ac_func in _sincosf
40248 do
40249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40250 echo "$as_me:$LINENO: checking for $ac_func" >&5
40251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40252 if eval "test \"\${$as_ac_var+set}\" = set"; then
40253 echo $ECHO_N "(cached) $ECHO_C" >&6
40254 else
40255 if test x$gcc_no_link = xyes; then
40256 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40257 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40258 { (exit 1); exit 1; }; }
40259 fi
40260 cat >conftest.$ac_ext <<_ACEOF
40261 /* confdefs.h. */
40262 _ACEOF
40263 cat confdefs.h >>conftest.$ac_ext
40264 cat >>conftest.$ac_ext <<_ACEOF
40265 /* end confdefs.h. */
40266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40268 #define $ac_func innocuous_$ac_func
40269
40270 /* System header to define __stub macros and hopefully few prototypes,
40271 which can conflict with char $ac_func (); below.
40272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40273 <limits.h> exists even on freestanding compilers. */
40274
40275 #ifdef __STDC__
40276 # include <limits.h>
40277 #else
40278 # include <assert.h>
40279 #endif
40280
40281 #undef $ac_func
40282
40283 /* Override any gcc2 internal prototype to avoid an error. */
40284 #ifdef __cplusplus
40285 extern "C"
40286 {
40287 #endif
40288 /* We use char because int might match the return type of a gcc2
40289 builtin and then its argument prototype would still apply. */
40290 char $ac_func ();
40291 /* The GNU C library defines this for functions which it implements
40292 to always fail with ENOSYS. Some functions are actually named
40293 something starting with __ and the normal name is an alias. */
40294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40295 choke me
40296 #else
40297 char (*f) () = $ac_func;
40298 #endif
40299 #ifdef __cplusplus
40300 }
40301 #endif
40302
40303 int
40304 main ()
40305 {
40306 return f != $ac_func;
40307 ;
40308 return 0;
40309 }
40310 _ACEOF
40311 rm -f conftest.$ac_objext conftest$ac_exeext
40312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40313 (eval $ac_link) 2>conftest.er1
40314 ac_status=$?
40315 grep -v '^ *+' conftest.er1 >conftest.err
40316 rm -f conftest.er1
40317 cat conftest.err >&5
40318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40319 (exit $ac_status); } &&
40320 { ac_try='test -z "$ac_c_werror_flag"
40321 || test ! -s conftest.err'
40322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40323 (eval $ac_try) 2>&5
40324 ac_status=$?
40325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40326 (exit $ac_status); }; } &&
40327 { ac_try='test -s conftest$ac_exeext'
40328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40329 (eval $ac_try) 2>&5
40330 ac_status=$?
40331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40332 (exit $ac_status); }; }; then
40333 eval "$as_ac_var=yes"
40334 else
40335 echo "$as_me: failed program was:" >&5
40336 sed 's/^/| /' conftest.$ac_ext >&5
40337
40338 eval "$as_ac_var=no"
40339 fi
40340 rm -f conftest.err conftest.$ac_objext \
40341 conftest$ac_exeext conftest.$ac_ext
40342 fi
40343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40345 if test `eval echo '${'$as_ac_var'}'` = yes; then
40346 cat >>confdefs.h <<_ACEOF
40347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40348 _ACEOF
40349
40350 fi
40351 done
40352
40353 fi
40354 fi
40355
40356
40357
40358 echo "$as_me:$LINENO: checking for finitef declaration" >&5
40359 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
40360 if test x${glibcxx_cv_func_finitef_use+set} != xset; then
40361 if test "${glibcxx_cv_func_finitef_use+set}" = set; then
40362 echo $ECHO_N "(cached) $ECHO_C" >&6
40363 else
40364
40365
40366
40367 ac_ext=cc
40368 ac_cpp='$CXXCPP $CPPFLAGS'
40369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40372
40373 cat >conftest.$ac_ext <<_ACEOF
40374 /* confdefs.h. */
40375 _ACEOF
40376 cat confdefs.h >>conftest.$ac_ext
40377 cat >>conftest.$ac_ext <<_ACEOF
40378 /* end confdefs.h. */
40379 #include <math.h>
40380 #ifdef HAVE_IEEEFP_H
40381 #include <ieeefp.h>
40382 #endif
40383
40384 int
40385 main ()
40386 {
40387 finitef(0);
40388 ;
40389 return 0;
40390 }
40391 _ACEOF
40392 rm -f conftest.$ac_objext
40393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40394 (eval $ac_compile) 2>conftest.er1
40395 ac_status=$?
40396 grep -v '^ *+' conftest.er1 >conftest.err
40397 rm -f conftest.er1
40398 cat conftest.err >&5
40399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40400 (exit $ac_status); } &&
40401 { ac_try='test -z "$ac_cxx_werror_flag"
40402 || test ! -s conftest.err'
40403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40404 (eval $ac_try) 2>&5
40405 ac_status=$?
40406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40407 (exit $ac_status); }; } &&
40408 { ac_try='test -s conftest.$ac_objext'
40409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40410 (eval $ac_try) 2>&5
40411 ac_status=$?
40412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40413 (exit $ac_status); }; }; then
40414 glibcxx_cv_func_finitef_use=yes
40415 else
40416 echo "$as_me: failed program was:" >&5
40417 sed 's/^/| /' conftest.$ac_ext >&5
40418
40419 glibcxx_cv_func_finitef_use=no
40420 fi
40421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40422 ac_ext=c
40423 ac_cpp='$CPP $CPPFLAGS'
40424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40427
40428
40429 fi
40430
40431 fi
40432 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
40433 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
40434
40435 if test x$glibcxx_cv_func_finitef_use = x"yes"; then
40436
40437 for ac_func in finitef
40438 do
40439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40440 echo "$as_me:$LINENO: checking for $ac_func" >&5
40441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40442 if eval "test \"\${$as_ac_var+set}\" = set"; then
40443 echo $ECHO_N "(cached) $ECHO_C" >&6
40444 else
40445 if test x$gcc_no_link = xyes; then
40446 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40447 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40448 { (exit 1); exit 1; }; }
40449 fi
40450 cat >conftest.$ac_ext <<_ACEOF
40451 /* confdefs.h. */
40452 _ACEOF
40453 cat confdefs.h >>conftest.$ac_ext
40454 cat >>conftest.$ac_ext <<_ACEOF
40455 /* end confdefs.h. */
40456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40458 #define $ac_func innocuous_$ac_func
40459
40460 /* System header to define __stub macros and hopefully few prototypes,
40461 which can conflict with char $ac_func (); below.
40462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40463 <limits.h> exists even on freestanding compilers. */
40464
40465 #ifdef __STDC__
40466 # include <limits.h>
40467 #else
40468 # include <assert.h>
40469 #endif
40470
40471 #undef $ac_func
40472
40473 /* Override any gcc2 internal prototype to avoid an error. */
40474 #ifdef __cplusplus
40475 extern "C"
40476 {
40477 #endif
40478 /* We use char because int might match the return type of a gcc2
40479 builtin and then its argument prototype would still apply. */
40480 char $ac_func ();
40481 /* The GNU C library defines this for functions which it implements
40482 to always fail with ENOSYS. Some functions are actually named
40483 something starting with __ and the normal name is an alias. */
40484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40485 choke me
40486 #else
40487 char (*f) () = $ac_func;
40488 #endif
40489 #ifdef __cplusplus
40490 }
40491 #endif
40492
40493 int
40494 main ()
40495 {
40496 return f != $ac_func;
40497 ;
40498 return 0;
40499 }
40500 _ACEOF
40501 rm -f conftest.$ac_objext conftest$ac_exeext
40502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40503 (eval $ac_link) 2>conftest.er1
40504 ac_status=$?
40505 grep -v '^ *+' conftest.er1 >conftest.err
40506 rm -f conftest.er1
40507 cat conftest.err >&5
40508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40509 (exit $ac_status); } &&
40510 { ac_try='test -z "$ac_c_werror_flag"
40511 || test ! -s conftest.err'
40512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40513 (eval $ac_try) 2>&5
40514 ac_status=$?
40515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40516 (exit $ac_status); }; } &&
40517 { ac_try='test -s conftest$ac_exeext'
40518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40519 (eval $ac_try) 2>&5
40520 ac_status=$?
40521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40522 (exit $ac_status); }; }; then
40523 eval "$as_ac_var=yes"
40524 else
40525 echo "$as_me: failed program was:" >&5
40526 sed 's/^/| /' conftest.$ac_ext >&5
40527
40528 eval "$as_ac_var=no"
40529 fi
40530 rm -f conftest.err conftest.$ac_objext \
40531 conftest$ac_exeext conftest.$ac_ext
40532 fi
40533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40535 if test `eval echo '${'$as_ac_var'}'` = yes; then
40536 cat >>confdefs.h <<_ACEOF
40537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40538 _ACEOF
40539
40540 fi
40541 done
40542
40543 else
40544
40545 echo "$as_me:$LINENO: checking for _finitef declaration" >&5
40546 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
40547 if test x${glibcxx_cv_func__finitef_use+set} != xset; then
40548 if test "${glibcxx_cv_func__finitef_use+set}" = set; then
40549 echo $ECHO_N "(cached) $ECHO_C" >&6
40550 else
40551
40552
40553
40554 ac_ext=cc
40555 ac_cpp='$CXXCPP $CPPFLAGS'
40556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40559
40560 cat >conftest.$ac_ext <<_ACEOF
40561 /* confdefs.h. */
40562 _ACEOF
40563 cat confdefs.h >>conftest.$ac_ext
40564 cat >>conftest.$ac_ext <<_ACEOF
40565 /* end confdefs.h. */
40566 #include <math.h>
40567 #ifdef HAVE_IEEEFP_H
40568 #include <ieeefp.h>
40569 #endif
40570
40571 int
40572 main ()
40573 {
40574 _finitef(0);
40575 ;
40576 return 0;
40577 }
40578 _ACEOF
40579 rm -f conftest.$ac_objext
40580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40581 (eval $ac_compile) 2>conftest.er1
40582 ac_status=$?
40583 grep -v '^ *+' conftest.er1 >conftest.err
40584 rm -f conftest.er1
40585 cat conftest.err >&5
40586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40587 (exit $ac_status); } &&
40588 { ac_try='test -z "$ac_cxx_werror_flag"
40589 || test ! -s conftest.err'
40590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40591 (eval $ac_try) 2>&5
40592 ac_status=$?
40593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594 (exit $ac_status); }; } &&
40595 { ac_try='test -s conftest.$ac_objext'
40596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40597 (eval $ac_try) 2>&5
40598 ac_status=$?
40599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40600 (exit $ac_status); }; }; then
40601 glibcxx_cv_func__finitef_use=yes
40602 else
40603 echo "$as_me: failed program was:" >&5
40604 sed 's/^/| /' conftest.$ac_ext >&5
40605
40606 glibcxx_cv_func__finitef_use=no
40607 fi
40608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40609 ac_ext=c
40610 ac_cpp='$CPP $CPPFLAGS'
40611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40614
40615
40616 fi
40617
40618 fi
40619 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
40620 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
40621
40622 if test x$glibcxx_cv_func__finitef_use = x"yes"; then
40623
40624 for ac_func in _finitef
40625 do
40626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40627 echo "$as_me:$LINENO: checking for $ac_func" >&5
40628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40629 if eval "test \"\${$as_ac_var+set}\" = set"; then
40630 echo $ECHO_N "(cached) $ECHO_C" >&6
40631 else
40632 if test x$gcc_no_link = xyes; then
40633 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40634 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40635 { (exit 1); exit 1; }; }
40636 fi
40637 cat >conftest.$ac_ext <<_ACEOF
40638 /* confdefs.h. */
40639 _ACEOF
40640 cat confdefs.h >>conftest.$ac_ext
40641 cat >>conftest.$ac_ext <<_ACEOF
40642 /* end confdefs.h. */
40643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40645 #define $ac_func innocuous_$ac_func
40646
40647 /* System header to define __stub macros and hopefully few prototypes,
40648 which can conflict with char $ac_func (); below.
40649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40650 <limits.h> exists even on freestanding compilers. */
40651
40652 #ifdef __STDC__
40653 # include <limits.h>
40654 #else
40655 # include <assert.h>
40656 #endif
40657
40658 #undef $ac_func
40659
40660 /* Override any gcc2 internal prototype to avoid an error. */
40661 #ifdef __cplusplus
40662 extern "C"
40663 {
40664 #endif
40665 /* We use char because int might match the return type of a gcc2
40666 builtin and then its argument prototype would still apply. */
40667 char $ac_func ();
40668 /* The GNU C library defines this for functions which it implements
40669 to always fail with ENOSYS. Some functions are actually named
40670 something starting with __ and the normal name is an alias. */
40671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40672 choke me
40673 #else
40674 char (*f) () = $ac_func;
40675 #endif
40676 #ifdef __cplusplus
40677 }
40678 #endif
40679
40680 int
40681 main ()
40682 {
40683 return f != $ac_func;
40684 ;
40685 return 0;
40686 }
40687 _ACEOF
40688 rm -f conftest.$ac_objext conftest$ac_exeext
40689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40690 (eval $ac_link) 2>conftest.er1
40691 ac_status=$?
40692 grep -v '^ *+' conftest.er1 >conftest.err
40693 rm -f conftest.er1
40694 cat conftest.err >&5
40695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696 (exit $ac_status); } &&
40697 { ac_try='test -z "$ac_c_werror_flag"
40698 || test ! -s conftest.err'
40699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40700 (eval $ac_try) 2>&5
40701 ac_status=$?
40702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703 (exit $ac_status); }; } &&
40704 { ac_try='test -s conftest$ac_exeext'
40705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40706 (eval $ac_try) 2>&5
40707 ac_status=$?
40708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40709 (exit $ac_status); }; }; then
40710 eval "$as_ac_var=yes"
40711 else
40712 echo "$as_me: failed program was:" >&5
40713 sed 's/^/| /' conftest.$ac_ext >&5
40714
40715 eval "$as_ac_var=no"
40716 fi
40717 rm -f conftest.err conftest.$ac_objext \
40718 conftest$ac_exeext conftest.$ac_ext
40719 fi
40720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40722 if test `eval echo '${'$as_ac_var'}'` = yes; then
40723 cat >>confdefs.h <<_ACEOF
40724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40725 _ACEOF
40726
40727 fi
40728 done
40729
40730 fi
40731 fi
40732
40733
40734
40735 echo "$as_me:$LINENO: checking for long double trig functions" >&5
40736 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
40737 if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
40738 echo $ECHO_N "(cached) $ECHO_C" >&6
40739 else
40740
40741
40742
40743 ac_ext=cc
40744 ac_cpp='$CXXCPP $CPPFLAGS'
40745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40748
40749 cat >conftest.$ac_ext <<_ACEOF
40750 /* confdefs.h. */
40751 _ACEOF
40752 cat confdefs.h >>conftest.$ac_ext
40753 cat >>conftest.$ac_ext <<_ACEOF
40754 /* end confdefs.h. */
40755 #include <math.h>
40756 int
40757 main ()
40758 {
40759 `for x in acosl asinl atanl \
40760 cosl sinl tanl \
40761 coshl sinhl tanhl; do echo "$x (0);"; done`
40762 ;
40763 return 0;
40764 }
40765 _ACEOF
40766 rm -f conftest.$ac_objext
40767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40768 (eval $ac_compile) 2>conftest.er1
40769 ac_status=$?
40770 grep -v '^ *+' conftest.er1 >conftest.err
40771 rm -f conftest.er1
40772 cat conftest.err >&5
40773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40774 (exit $ac_status); } &&
40775 { ac_try='test -z "$ac_cxx_werror_flag"
40776 || test ! -s conftest.err'
40777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40778 (eval $ac_try) 2>&5
40779 ac_status=$?
40780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40781 (exit $ac_status); }; } &&
40782 { ac_try='test -s conftest.$ac_objext'
40783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40784 (eval $ac_try) 2>&5
40785 ac_status=$?
40786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40787 (exit $ac_status); }; }; then
40788 glibcxx_cv_func_long_double_trig_use=yes
40789 else
40790 echo "$as_me: failed program was:" >&5
40791 sed 's/^/| /' conftest.$ac_ext >&5
40792
40793 glibcxx_cv_func_long_double_trig_use=no
40794 fi
40795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40796 ac_ext=c
40797 ac_cpp='$CPP $CPPFLAGS'
40798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40801
40802 fi
40803
40804 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
40805 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
40806 if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
40807
40808
40809
40810
40811
40812
40813
40814
40815
40816 for ac_func in acosl asinl atanl \
40817 cosl sinl tanl \
40818 coshl sinhl tanhl
40819 do
40820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40821 echo "$as_me:$LINENO: checking for $ac_func" >&5
40822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40823 if eval "test \"\${$as_ac_var+set}\" = set"; then
40824 echo $ECHO_N "(cached) $ECHO_C" >&6
40825 else
40826 if test x$gcc_no_link = xyes; then
40827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40828 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40829 { (exit 1); exit 1; }; }
40830 fi
40831 cat >conftest.$ac_ext <<_ACEOF
40832 /* confdefs.h. */
40833 _ACEOF
40834 cat confdefs.h >>conftest.$ac_ext
40835 cat >>conftest.$ac_ext <<_ACEOF
40836 /* end confdefs.h. */
40837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40839 #define $ac_func innocuous_$ac_func
40840
40841 /* System header to define __stub macros and hopefully few prototypes,
40842 which can conflict with char $ac_func (); below.
40843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40844 <limits.h> exists even on freestanding compilers. */
40845
40846 #ifdef __STDC__
40847 # include <limits.h>
40848 #else
40849 # include <assert.h>
40850 #endif
40851
40852 #undef $ac_func
40853
40854 /* Override any gcc2 internal prototype to avoid an error. */
40855 #ifdef __cplusplus
40856 extern "C"
40857 {
40858 #endif
40859 /* We use char because int might match the return type of a gcc2
40860 builtin and then its argument prototype would still apply. */
40861 char $ac_func ();
40862 /* The GNU C library defines this for functions which it implements
40863 to always fail with ENOSYS. Some functions are actually named
40864 something starting with __ and the normal name is an alias. */
40865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40866 choke me
40867 #else
40868 char (*f) () = $ac_func;
40869 #endif
40870 #ifdef __cplusplus
40871 }
40872 #endif
40873
40874 int
40875 main ()
40876 {
40877 return f != $ac_func;
40878 ;
40879 return 0;
40880 }
40881 _ACEOF
40882 rm -f conftest.$ac_objext conftest$ac_exeext
40883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40884 (eval $ac_link) 2>conftest.er1
40885 ac_status=$?
40886 grep -v '^ *+' conftest.er1 >conftest.err
40887 rm -f conftest.er1
40888 cat conftest.err >&5
40889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40890 (exit $ac_status); } &&
40891 { ac_try='test -z "$ac_c_werror_flag"
40892 || test ! -s conftest.err'
40893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40894 (eval $ac_try) 2>&5
40895 ac_status=$?
40896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40897 (exit $ac_status); }; } &&
40898 { ac_try='test -s conftest$ac_exeext'
40899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40900 (eval $ac_try) 2>&5
40901 ac_status=$?
40902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40903 (exit $ac_status); }; }; then
40904 eval "$as_ac_var=yes"
40905 else
40906 echo "$as_me: failed program was:" >&5
40907 sed 's/^/| /' conftest.$ac_ext >&5
40908
40909 eval "$as_ac_var=no"
40910 fi
40911 rm -f conftest.err conftest.$ac_objext \
40912 conftest$ac_exeext conftest.$ac_ext
40913 fi
40914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40916 if test `eval echo '${'$as_ac_var'}'` = yes; then
40917 cat >>confdefs.h <<_ACEOF
40918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40919 _ACEOF
40920
40921 fi
40922 done
40923
40924 fi
40925
40926
40927 echo "$as_me:$LINENO: checking for long double round functions" >&5
40928 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
40929 if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
40930 echo $ECHO_N "(cached) $ECHO_C" >&6
40931 else
40932
40933
40934
40935 ac_ext=cc
40936 ac_cpp='$CXXCPP $CPPFLAGS'
40937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40940
40941 cat >conftest.$ac_ext <<_ACEOF
40942 /* confdefs.h. */
40943 _ACEOF
40944 cat confdefs.h >>conftest.$ac_ext
40945 cat >>conftest.$ac_ext <<_ACEOF
40946 /* end confdefs.h. */
40947 #include <math.h>
40948 int
40949 main ()
40950 {
40951 `for x in ceill floorl; do echo "$x (0);"; done`
40952 ;
40953 return 0;
40954 }
40955 _ACEOF
40956 rm -f conftest.$ac_objext
40957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40958 (eval $ac_compile) 2>conftest.er1
40959 ac_status=$?
40960 grep -v '^ *+' conftest.er1 >conftest.err
40961 rm -f conftest.er1
40962 cat conftest.err >&5
40963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40964 (exit $ac_status); } &&
40965 { ac_try='test -z "$ac_cxx_werror_flag"
40966 || test ! -s conftest.err'
40967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40968 (eval $ac_try) 2>&5
40969 ac_status=$?
40970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971 (exit $ac_status); }; } &&
40972 { ac_try='test -s conftest.$ac_objext'
40973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40974 (eval $ac_try) 2>&5
40975 ac_status=$?
40976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977 (exit $ac_status); }; }; then
40978 glibcxx_cv_func_long_double_round_use=yes
40979 else
40980 echo "$as_me: failed program was:" >&5
40981 sed 's/^/| /' conftest.$ac_ext >&5
40982
40983 glibcxx_cv_func_long_double_round_use=no
40984 fi
40985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40986 ac_ext=c
40987 ac_cpp='$CPP $CPPFLAGS'
40988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40991
40992 fi
40993
40994 echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
40995 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
40996 if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
40997
40998
40999 for ac_func in ceill floorl
41000 do
41001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41002 echo "$as_me:$LINENO: checking for $ac_func" >&5
41003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41004 if eval "test \"\${$as_ac_var+set}\" = set"; then
41005 echo $ECHO_N "(cached) $ECHO_C" >&6
41006 else
41007 if test x$gcc_no_link = xyes; then
41008 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41009 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41010 { (exit 1); exit 1; }; }
41011 fi
41012 cat >conftest.$ac_ext <<_ACEOF
41013 /* confdefs.h. */
41014 _ACEOF
41015 cat confdefs.h >>conftest.$ac_ext
41016 cat >>conftest.$ac_ext <<_ACEOF
41017 /* end confdefs.h. */
41018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41020 #define $ac_func innocuous_$ac_func
41021
41022 /* System header to define __stub macros and hopefully few prototypes,
41023 which can conflict with char $ac_func (); below.
41024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41025 <limits.h> exists even on freestanding compilers. */
41026
41027 #ifdef __STDC__
41028 # include <limits.h>
41029 #else
41030 # include <assert.h>
41031 #endif
41032
41033 #undef $ac_func
41034
41035 /* Override any gcc2 internal prototype to avoid an error. */
41036 #ifdef __cplusplus
41037 extern "C"
41038 {
41039 #endif
41040 /* We use char because int might match the return type of a gcc2
41041 builtin and then its argument prototype would still apply. */
41042 char $ac_func ();
41043 /* The GNU C library defines this for functions which it implements
41044 to always fail with ENOSYS. Some functions are actually named
41045 something starting with __ and the normal name is an alias. */
41046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41047 choke me
41048 #else
41049 char (*f) () = $ac_func;
41050 #endif
41051 #ifdef __cplusplus
41052 }
41053 #endif
41054
41055 int
41056 main ()
41057 {
41058 return f != $ac_func;
41059 ;
41060 return 0;
41061 }
41062 _ACEOF
41063 rm -f conftest.$ac_objext conftest$ac_exeext
41064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41065 (eval $ac_link) 2>conftest.er1
41066 ac_status=$?
41067 grep -v '^ *+' conftest.er1 >conftest.err
41068 rm -f conftest.er1
41069 cat conftest.err >&5
41070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071 (exit $ac_status); } &&
41072 { ac_try='test -z "$ac_c_werror_flag"
41073 || test ! -s conftest.err'
41074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41075 (eval $ac_try) 2>&5
41076 ac_status=$?
41077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078 (exit $ac_status); }; } &&
41079 { ac_try='test -s conftest$ac_exeext'
41080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41081 (eval $ac_try) 2>&5
41082 ac_status=$?
41083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41084 (exit $ac_status); }; }; then
41085 eval "$as_ac_var=yes"
41086 else
41087 echo "$as_me: failed program was:" >&5
41088 sed 's/^/| /' conftest.$ac_ext >&5
41089
41090 eval "$as_ac_var=no"
41091 fi
41092 rm -f conftest.err conftest.$ac_objext \
41093 conftest$ac_exeext conftest.$ac_ext
41094 fi
41095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41097 if test `eval echo '${'$as_ac_var'}'` = yes; then
41098 cat >>confdefs.h <<_ACEOF
41099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41100 _ACEOF
41101
41102 fi
41103 done
41104
41105 fi
41106
41107
41108
41109 echo "$as_me:$LINENO: checking for isnanl declaration" >&5
41110 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
41111 if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
41112 if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
41113 echo $ECHO_N "(cached) $ECHO_C" >&6
41114 else
41115
41116
41117
41118 ac_ext=cc
41119 ac_cpp='$CXXCPP $CPPFLAGS'
41120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41123
41124 cat >conftest.$ac_ext <<_ACEOF
41125 /* confdefs.h. */
41126 _ACEOF
41127 cat confdefs.h >>conftest.$ac_ext
41128 cat >>conftest.$ac_ext <<_ACEOF
41129 /* end confdefs.h. */
41130 #include <math.h>
41131 #ifdef HAVE_IEEEFP_H
41132 #include <ieeefp.h>
41133 #endif
41134
41135 int
41136 main ()
41137 {
41138 isnanl(0);
41139 ;
41140 return 0;
41141 }
41142 _ACEOF
41143 rm -f conftest.$ac_objext
41144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41145 (eval $ac_compile) 2>conftest.er1
41146 ac_status=$?
41147 grep -v '^ *+' conftest.er1 >conftest.err
41148 rm -f conftest.er1
41149 cat conftest.err >&5
41150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41151 (exit $ac_status); } &&
41152 { ac_try='test -z "$ac_cxx_werror_flag"
41153 || test ! -s conftest.err'
41154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41155 (eval $ac_try) 2>&5
41156 ac_status=$?
41157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41158 (exit $ac_status); }; } &&
41159 { ac_try='test -s conftest.$ac_objext'
41160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41161 (eval $ac_try) 2>&5
41162 ac_status=$?
41163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41164 (exit $ac_status); }; }; then
41165 glibcxx_cv_func_isnanl_use=yes
41166 else
41167 echo "$as_me: failed program was:" >&5
41168 sed 's/^/| /' conftest.$ac_ext >&5
41169
41170 glibcxx_cv_func_isnanl_use=no
41171 fi
41172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41173 ac_ext=c
41174 ac_cpp='$CPP $CPPFLAGS'
41175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41178
41179
41180 fi
41181
41182 fi
41183 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
41184 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
41185
41186 if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
41187
41188 for ac_func in isnanl
41189 do
41190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41191 echo "$as_me:$LINENO: checking for $ac_func" >&5
41192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41193 if eval "test \"\${$as_ac_var+set}\" = set"; then
41194 echo $ECHO_N "(cached) $ECHO_C" >&6
41195 else
41196 if test x$gcc_no_link = xyes; then
41197 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41198 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41199 { (exit 1); exit 1; }; }
41200 fi
41201 cat >conftest.$ac_ext <<_ACEOF
41202 /* confdefs.h. */
41203 _ACEOF
41204 cat confdefs.h >>conftest.$ac_ext
41205 cat >>conftest.$ac_ext <<_ACEOF
41206 /* end confdefs.h. */
41207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41209 #define $ac_func innocuous_$ac_func
41210
41211 /* System header to define __stub macros and hopefully few prototypes,
41212 which can conflict with char $ac_func (); below.
41213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41214 <limits.h> exists even on freestanding compilers. */
41215
41216 #ifdef __STDC__
41217 # include <limits.h>
41218 #else
41219 # include <assert.h>
41220 #endif
41221
41222 #undef $ac_func
41223
41224 /* Override any gcc2 internal prototype to avoid an error. */
41225 #ifdef __cplusplus
41226 extern "C"
41227 {
41228 #endif
41229 /* We use char because int might match the return type of a gcc2
41230 builtin and then its argument prototype would still apply. */
41231 char $ac_func ();
41232 /* The GNU C library defines this for functions which it implements
41233 to always fail with ENOSYS. Some functions are actually named
41234 something starting with __ and the normal name is an alias. */
41235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41236 choke me
41237 #else
41238 char (*f) () = $ac_func;
41239 #endif
41240 #ifdef __cplusplus
41241 }
41242 #endif
41243
41244 int
41245 main ()
41246 {
41247 return f != $ac_func;
41248 ;
41249 return 0;
41250 }
41251 _ACEOF
41252 rm -f conftest.$ac_objext conftest$ac_exeext
41253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41254 (eval $ac_link) 2>conftest.er1
41255 ac_status=$?
41256 grep -v '^ *+' conftest.er1 >conftest.err
41257 rm -f conftest.er1
41258 cat conftest.err >&5
41259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41260 (exit $ac_status); } &&
41261 { ac_try='test -z "$ac_c_werror_flag"
41262 || test ! -s conftest.err'
41263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41264 (eval $ac_try) 2>&5
41265 ac_status=$?
41266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41267 (exit $ac_status); }; } &&
41268 { ac_try='test -s conftest$ac_exeext'
41269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41270 (eval $ac_try) 2>&5
41271 ac_status=$?
41272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41273 (exit $ac_status); }; }; then
41274 eval "$as_ac_var=yes"
41275 else
41276 echo "$as_me: failed program was:" >&5
41277 sed 's/^/| /' conftest.$ac_ext >&5
41278
41279 eval "$as_ac_var=no"
41280 fi
41281 rm -f conftest.err conftest.$ac_objext \
41282 conftest$ac_exeext conftest.$ac_ext
41283 fi
41284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41286 if test `eval echo '${'$as_ac_var'}'` = yes; then
41287 cat >>confdefs.h <<_ACEOF
41288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41289 _ACEOF
41290
41291 fi
41292 done
41293
41294 else
41295
41296 echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
41297 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
41298 if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
41299 if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
41300 echo $ECHO_N "(cached) $ECHO_C" >&6
41301 else
41302
41303
41304
41305 ac_ext=cc
41306 ac_cpp='$CXXCPP $CPPFLAGS'
41307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41310
41311 cat >conftest.$ac_ext <<_ACEOF
41312 /* confdefs.h. */
41313 _ACEOF
41314 cat confdefs.h >>conftest.$ac_ext
41315 cat >>conftest.$ac_ext <<_ACEOF
41316 /* end confdefs.h. */
41317 #include <math.h>
41318 #ifdef HAVE_IEEEFP_H
41319 #include <ieeefp.h>
41320 #endif
41321
41322 int
41323 main ()
41324 {
41325 _isnanl(0);
41326 ;
41327 return 0;
41328 }
41329 _ACEOF
41330 rm -f conftest.$ac_objext
41331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41332 (eval $ac_compile) 2>conftest.er1
41333 ac_status=$?
41334 grep -v '^ *+' conftest.er1 >conftest.err
41335 rm -f conftest.er1
41336 cat conftest.err >&5
41337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41338 (exit $ac_status); } &&
41339 { ac_try='test -z "$ac_cxx_werror_flag"
41340 || test ! -s conftest.err'
41341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41342 (eval $ac_try) 2>&5
41343 ac_status=$?
41344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41345 (exit $ac_status); }; } &&
41346 { ac_try='test -s conftest.$ac_objext'
41347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41348 (eval $ac_try) 2>&5
41349 ac_status=$?
41350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41351 (exit $ac_status); }; }; then
41352 glibcxx_cv_func__isnanl_use=yes
41353 else
41354 echo "$as_me: failed program was:" >&5
41355 sed 's/^/| /' conftest.$ac_ext >&5
41356
41357 glibcxx_cv_func__isnanl_use=no
41358 fi
41359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41360 ac_ext=c
41361 ac_cpp='$CPP $CPPFLAGS'
41362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41365
41366
41367 fi
41368
41369 fi
41370 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
41371 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
41372
41373 if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
41374
41375 for ac_func in _isnanl
41376 do
41377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41378 echo "$as_me:$LINENO: checking for $ac_func" >&5
41379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41380 if eval "test \"\${$as_ac_var+set}\" = set"; then
41381 echo $ECHO_N "(cached) $ECHO_C" >&6
41382 else
41383 if test x$gcc_no_link = xyes; then
41384 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41385 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41386 { (exit 1); exit 1; }; }
41387 fi
41388 cat >conftest.$ac_ext <<_ACEOF
41389 /* confdefs.h. */
41390 _ACEOF
41391 cat confdefs.h >>conftest.$ac_ext
41392 cat >>conftest.$ac_ext <<_ACEOF
41393 /* end confdefs.h. */
41394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41396 #define $ac_func innocuous_$ac_func
41397
41398 /* System header to define __stub macros and hopefully few prototypes,
41399 which can conflict with char $ac_func (); below.
41400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41401 <limits.h> exists even on freestanding compilers. */
41402
41403 #ifdef __STDC__
41404 # include <limits.h>
41405 #else
41406 # include <assert.h>
41407 #endif
41408
41409 #undef $ac_func
41410
41411 /* Override any gcc2 internal prototype to avoid an error. */
41412 #ifdef __cplusplus
41413 extern "C"
41414 {
41415 #endif
41416 /* We use char because int might match the return type of a gcc2
41417 builtin and then its argument prototype would still apply. */
41418 char $ac_func ();
41419 /* The GNU C library defines this for functions which it implements
41420 to always fail with ENOSYS. Some functions are actually named
41421 something starting with __ and the normal name is an alias. */
41422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41423 choke me
41424 #else
41425 char (*f) () = $ac_func;
41426 #endif
41427 #ifdef __cplusplus
41428 }
41429 #endif
41430
41431 int
41432 main ()
41433 {
41434 return f != $ac_func;
41435 ;
41436 return 0;
41437 }
41438 _ACEOF
41439 rm -f conftest.$ac_objext conftest$ac_exeext
41440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41441 (eval $ac_link) 2>conftest.er1
41442 ac_status=$?
41443 grep -v '^ *+' conftest.er1 >conftest.err
41444 rm -f conftest.er1
41445 cat conftest.err >&5
41446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41447 (exit $ac_status); } &&
41448 { ac_try='test -z "$ac_c_werror_flag"
41449 || test ! -s conftest.err'
41450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41451 (eval $ac_try) 2>&5
41452 ac_status=$?
41453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41454 (exit $ac_status); }; } &&
41455 { ac_try='test -s conftest$ac_exeext'
41456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41457 (eval $ac_try) 2>&5
41458 ac_status=$?
41459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41460 (exit $ac_status); }; }; then
41461 eval "$as_ac_var=yes"
41462 else
41463 echo "$as_me: failed program was:" >&5
41464 sed 's/^/| /' conftest.$ac_ext >&5
41465
41466 eval "$as_ac_var=no"
41467 fi
41468 rm -f conftest.err conftest.$ac_objext \
41469 conftest$ac_exeext conftest.$ac_ext
41470 fi
41471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41473 if test `eval echo '${'$as_ac_var'}'` = yes; then
41474 cat >>confdefs.h <<_ACEOF
41475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41476 _ACEOF
41477
41478 fi
41479 done
41480
41481 fi
41482 fi
41483
41484
41485
41486 echo "$as_me:$LINENO: checking for isinfl declaration" >&5
41487 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
41488 if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
41489 if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
41490 echo $ECHO_N "(cached) $ECHO_C" >&6
41491 else
41492
41493
41494
41495 ac_ext=cc
41496 ac_cpp='$CXXCPP $CPPFLAGS'
41497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41498 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41500
41501 cat >conftest.$ac_ext <<_ACEOF
41502 /* confdefs.h. */
41503 _ACEOF
41504 cat confdefs.h >>conftest.$ac_ext
41505 cat >>conftest.$ac_ext <<_ACEOF
41506 /* end confdefs.h. */
41507 #include <math.h>
41508 #ifdef HAVE_IEEEFP_H
41509 #include <ieeefp.h>
41510 #endif
41511
41512 int
41513 main ()
41514 {
41515 isinfl(0);
41516 ;
41517 return 0;
41518 }
41519 _ACEOF
41520 rm -f conftest.$ac_objext
41521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41522 (eval $ac_compile) 2>conftest.er1
41523 ac_status=$?
41524 grep -v '^ *+' conftest.er1 >conftest.err
41525 rm -f conftest.er1
41526 cat conftest.err >&5
41527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41528 (exit $ac_status); } &&
41529 { ac_try='test -z "$ac_cxx_werror_flag"
41530 || test ! -s conftest.err'
41531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41532 (eval $ac_try) 2>&5
41533 ac_status=$?
41534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41535 (exit $ac_status); }; } &&
41536 { ac_try='test -s conftest.$ac_objext'
41537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41538 (eval $ac_try) 2>&5
41539 ac_status=$?
41540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41541 (exit $ac_status); }; }; then
41542 glibcxx_cv_func_isinfl_use=yes
41543 else
41544 echo "$as_me: failed program was:" >&5
41545 sed 's/^/| /' conftest.$ac_ext >&5
41546
41547 glibcxx_cv_func_isinfl_use=no
41548 fi
41549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41550 ac_ext=c
41551 ac_cpp='$CPP $CPPFLAGS'
41552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41555
41556
41557 fi
41558
41559 fi
41560 echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
41561 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
41562
41563 if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
41564
41565 for ac_func in isinfl
41566 do
41567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41568 echo "$as_me:$LINENO: checking for $ac_func" >&5
41569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41570 if eval "test \"\${$as_ac_var+set}\" = set"; then
41571 echo $ECHO_N "(cached) $ECHO_C" >&6
41572 else
41573 if test x$gcc_no_link = xyes; then
41574 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41576 { (exit 1); exit 1; }; }
41577 fi
41578 cat >conftest.$ac_ext <<_ACEOF
41579 /* confdefs.h. */
41580 _ACEOF
41581 cat confdefs.h >>conftest.$ac_ext
41582 cat >>conftest.$ac_ext <<_ACEOF
41583 /* end confdefs.h. */
41584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41586 #define $ac_func innocuous_$ac_func
41587
41588 /* System header to define __stub macros and hopefully few prototypes,
41589 which can conflict with char $ac_func (); below.
41590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41591 <limits.h> exists even on freestanding compilers. */
41592
41593 #ifdef __STDC__
41594 # include <limits.h>
41595 #else
41596 # include <assert.h>
41597 #endif
41598
41599 #undef $ac_func
41600
41601 /* Override any gcc2 internal prototype to avoid an error. */
41602 #ifdef __cplusplus
41603 extern "C"
41604 {
41605 #endif
41606 /* We use char because int might match the return type of a gcc2
41607 builtin and then its argument prototype would still apply. */
41608 char $ac_func ();
41609 /* The GNU C library defines this for functions which it implements
41610 to always fail with ENOSYS. Some functions are actually named
41611 something starting with __ and the normal name is an alias. */
41612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41613 choke me
41614 #else
41615 char (*f) () = $ac_func;
41616 #endif
41617 #ifdef __cplusplus
41618 }
41619 #endif
41620
41621 int
41622 main ()
41623 {
41624 return f != $ac_func;
41625 ;
41626 return 0;
41627 }
41628 _ACEOF
41629 rm -f conftest.$ac_objext conftest$ac_exeext
41630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41631 (eval $ac_link) 2>conftest.er1
41632 ac_status=$?
41633 grep -v '^ *+' conftest.er1 >conftest.err
41634 rm -f conftest.er1
41635 cat conftest.err >&5
41636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41637 (exit $ac_status); } &&
41638 { ac_try='test -z "$ac_c_werror_flag"
41639 || test ! -s conftest.err'
41640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41641 (eval $ac_try) 2>&5
41642 ac_status=$?
41643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41644 (exit $ac_status); }; } &&
41645 { ac_try='test -s conftest$ac_exeext'
41646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41647 (eval $ac_try) 2>&5
41648 ac_status=$?
41649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41650 (exit $ac_status); }; }; then
41651 eval "$as_ac_var=yes"
41652 else
41653 echo "$as_me: failed program was:" >&5
41654 sed 's/^/| /' conftest.$ac_ext >&5
41655
41656 eval "$as_ac_var=no"
41657 fi
41658 rm -f conftest.err conftest.$ac_objext \
41659 conftest$ac_exeext conftest.$ac_ext
41660 fi
41661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41663 if test `eval echo '${'$as_ac_var'}'` = yes; then
41664 cat >>confdefs.h <<_ACEOF
41665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41666 _ACEOF
41667
41668 fi
41669 done
41670
41671 else
41672
41673 echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
41674 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
41675 if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
41676 if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
41677 echo $ECHO_N "(cached) $ECHO_C" >&6
41678 else
41679
41680
41681
41682 ac_ext=cc
41683 ac_cpp='$CXXCPP $CPPFLAGS'
41684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41687
41688 cat >conftest.$ac_ext <<_ACEOF
41689 /* confdefs.h. */
41690 _ACEOF
41691 cat confdefs.h >>conftest.$ac_ext
41692 cat >>conftest.$ac_ext <<_ACEOF
41693 /* end confdefs.h. */
41694 #include <math.h>
41695 #ifdef HAVE_IEEEFP_H
41696 #include <ieeefp.h>
41697 #endif
41698
41699 int
41700 main ()
41701 {
41702 _isinfl(0);
41703 ;
41704 return 0;
41705 }
41706 _ACEOF
41707 rm -f conftest.$ac_objext
41708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41709 (eval $ac_compile) 2>conftest.er1
41710 ac_status=$?
41711 grep -v '^ *+' conftest.er1 >conftest.err
41712 rm -f conftest.er1
41713 cat conftest.err >&5
41714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715 (exit $ac_status); } &&
41716 { ac_try='test -z "$ac_cxx_werror_flag"
41717 || test ! -s conftest.err'
41718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41719 (eval $ac_try) 2>&5
41720 ac_status=$?
41721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41722 (exit $ac_status); }; } &&
41723 { ac_try='test -s conftest.$ac_objext'
41724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41725 (eval $ac_try) 2>&5
41726 ac_status=$?
41727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41728 (exit $ac_status); }; }; then
41729 glibcxx_cv_func__isinfl_use=yes
41730 else
41731 echo "$as_me: failed program was:" >&5
41732 sed 's/^/| /' conftest.$ac_ext >&5
41733
41734 glibcxx_cv_func__isinfl_use=no
41735 fi
41736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41737 ac_ext=c
41738 ac_cpp='$CPP $CPPFLAGS'
41739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41742
41743
41744 fi
41745
41746 fi
41747 echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
41748 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
41749
41750 if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
41751
41752 for ac_func in _isinfl
41753 do
41754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41755 echo "$as_me:$LINENO: checking for $ac_func" >&5
41756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41757 if eval "test \"\${$as_ac_var+set}\" = set"; then
41758 echo $ECHO_N "(cached) $ECHO_C" >&6
41759 else
41760 if test x$gcc_no_link = xyes; then
41761 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41762 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41763 { (exit 1); exit 1; }; }
41764 fi
41765 cat >conftest.$ac_ext <<_ACEOF
41766 /* confdefs.h. */
41767 _ACEOF
41768 cat confdefs.h >>conftest.$ac_ext
41769 cat >>conftest.$ac_ext <<_ACEOF
41770 /* end confdefs.h. */
41771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41773 #define $ac_func innocuous_$ac_func
41774
41775 /* System header to define __stub macros and hopefully few prototypes,
41776 which can conflict with char $ac_func (); below.
41777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41778 <limits.h> exists even on freestanding compilers. */
41779
41780 #ifdef __STDC__
41781 # include <limits.h>
41782 #else
41783 # include <assert.h>
41784 #endif
41785
41786 #undef $ac_func
41787
41788 /* Override any gcc2 internal prototype to avoid an error. */
41789 #ifdef __cplusplus
41790 extern "C"
41791 {
41792 #endif
41793 /* We use char because int might match the return type of a gcc2
41794 builtin and then its argument prototype would still apply. */
41795 char $ac_func ();
41796 /* The GNU C library defines this for functions which it implements
41797 to always fail with ENOSYS. Some functions are actually named
41798 something starting with __ and the normal name is an alias. */
41799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41800 choke me
41801 #else
41802 char (*f) () = $ac_func;
41803 #endif
41804 #ifdef __cplusplus
41805 }
41806 #endif
41807
41808 int
41809 main ()
41810 {
41811 return f != $ac_func;
41812 ;
41813 return 0;
41814 }
41815 _ACEOF
41816 rm -f conftest.$ac_objext conftest$ac_exeext
41817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41818 (eval $ac_link) 2>conftest.er1
41819 ac_status=$?
41820 grep -v '^ *+' conftest.er1 >conftest.err
41821 rm -f conftest.er1
41822 cat conftest.err >&5
41823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41824 (exit $ac_status); } &&
41825 { ac_try='test -z "$ac_c_werror_flag"
41826 || test ! -s conftest.err'
41827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41828 (eval $ac_try) 2>&5
41829 ac_status=$?
41830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41831 (exit $ac_status); }; } &&
41832 { ac_try='test -s conftest$ac_exeext'
41833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41834 (eval $ac_try) 2>&5
41835 ac_status=$?
41836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41837 (exit $ac_status); }; }; then
41838 eval "$as_ac_var=yes"
41839 else
41840 echo "$as_me: failed program was:" >&5
41841 sed 's/^/| /' conftest.$ac_ext >&5
41842
41843 eval "$as_ac_var=no"
41844 fi
41845 rm -f conftest.err conftest.$ac_objext \
41846 conftest$ac_exeext conftest.$ac_ext
41847 fi
41848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41850 if test `eval echo '${'$as_ac_var'}'` = yes; then
41851 cat >>confdefs.h <<_ACEOF
41852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41853 _ACEOF
41854
41855 fi
41856 done
41857
41858 fi
41859 fi
41860
41861
41862
41863 echo "$as_me:$LINENO: checking for copysignl declaration" >&5
41864 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
41865 if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
41866 if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
41867 echo $ECHO_N "(cached) $ECHO_C" >&6
41868 else
41869
41870
41871
41872 ac_ext=cc
41873 ac_cpp='$CXXCPP $CPPFLAGS'
41874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41877
41878 cat >conftest.$ac_ext <<_ACEOF
41879 /* confdefs.h. */
41880 _ACEOF
41881 cat confdefs.h >>conftest.$ac_ext
41882 cat >>conftest.$ac_ext <<_ACEOF
41883 /* end confdefs.h. */
41884 #include <math.h>
41885 int
41886 main ()
41887 {
41888 copysignl(0, 0);
41889 ;
41890 return 0;
41891 }
41892 _ACEOF
41893 rm -f conftest.$ac_objext
41894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41895 (eval $ac_compile) 2>conftest.er1
41896 ac_status=$?
41897 grep -v '^ *+' conftest.er1 >conftest.err
41898 rm -f conftest.er1
41899 cat conftest.err >&5
41900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41901 (exit $ac_status); } &&
41902 { ac_try='test -z "$ac_cxx_werror_flag"
41903 || test ! -s conftest.err'
41904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41905 (eval $ac_try) 2>&5
41906 ac_status=$?
41907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41908 (exit $ac_status); }; } &&
41909 { ac_try='test -s conftest.$ac_objext'
41910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41911 (eval $ac_try) 2>&5
41912 ac_status=$?
41913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41914 (exit $ac_status); }; }; then
41915 glibcxx_cv_func_copysignl_use=yes
41916 else
41917 echo "$as_me: failed program was:" >&5
41918 sed 's/^/| /' conftest.$ac_ext >&5
41919
41920 glibcxx_cv_func_copysignl_use=no
41921 fi
41922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41923 ac_ext=c
41924 ac_cpp='$CPP $CPPFLAGS'
41925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41928
41929
41930 fi
41931
41932 fi
41933 echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
41934 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
41935
41936 if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
41937
41938 for ac_func in copysignl
41939 do
41940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41941 echo "$as_me:$LINENO: checking for $ac_func" >&5
41942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41943 if eval "test \"\${$as_ac_var+set}\" = set"; then
41944 echo $ECHO_N "(cached) $ECHO_C" >&6
41945 else
41946 if test x$gcc_no_link = xyes; then
41947 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41948 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41949 { (exit 1); exit 1; }; }
41950 fi
41951 cat >conftest.$ac_ext <<_ACEOF
41952 /* confdefs.h. */
41953 _ACEOF
41954 cat confdefs.h >>conftest.$ac_ext
41955 cat >>conftest.$ac_ext <<_ACEOF
41956 /* end confdefs.h. */
41957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41959 #define $ac_func innocuous_$ac_func
41960
41961 /* System header to define __stub macros and hopefully few prototypes,
41962 which can conflict with char $ac_func (); below.
41963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41964 <limits.h> exists even on freestanding compilers. */
41965
41966 #ifdef __STDC__
41967 # include <limits.h>
41968 #else
41969 # include <assert.h>
41970 #endif
41971
41972 #undef $ac_func
41973
41974 /* Override any gcc2 internal prototype to avoid an error. */
41975 #ifdef __cplusplus
41976 extern "C"
41977 {
41978 #endif
41979 /* We use char because int might match the return type of a gcc2
41980 builtin and then its argument prototype would still apply. */
41981 char $ac_func ();
41982 /* The GNU C library defines this for functions which it implements
41983 to always fail with ENOSYS. Some functions are actually named
41984 something starting with __ and the normal name is an alias. */
41985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41986 choke me
41987 #else
41988 char (*f) () = $ac_func;
41989 #endif
41990 #ifdef __cplusplus
41991 }
41992 #endif
41993
41994 int
41995 main ()
41996 {
41997 return f != $ac_func;
41998 ;
41999 return 0;
42000 }
42001 _ACEOF
42002 rm -f conftest.$ac_objext conftest$ac_exeext
42003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42004 (eval $ac_link) 2>conftest.er1
42005 ac_status=$?
42006 grep -v '^ *+' conftest.er1 >conftest.err
42007 rm -f conftest.er1
42008 cat conftest.err >&5
42009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42010 (exit $ac_status); } &&
42011 { ac_try='test -z "$ac_c_werror_flag"
42012 || test ! -s conftest.err'
42013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42014 (eval $ac_try) 2>&5
42015 ac_status=$?
42016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42017 (exit $ac_status); }; } &&
42018 { ac_try='test -s conftest$ac_exeext'
42019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42020 (eval $ac_try) 2>&5
42021 ac_status=$?
42022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42023 (exit $ac_status); }; }; then
42024 eval "$as_ac_var=yes"
42025 else
42026 echo "$as_me: failed program was:" >&5
42027 sed 's/^/| /' conftest.$ac_ext >&5
42028
42029 eval "$as_ac_var=no"
42030 fi
42031 rm -f conftest.err conftest.$ac_objext \
42032 conftest$ac_exeext conftest.$ac_ext
42033 fi
42034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42036 if test `eval echo '${'$as_ac_var'}'` = yes; then
42037 cat >>confdefs.h <<_ACEOF
42038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42039 _ACEOF
42040
42041 fi
42042 done
42043
42044 else
42045
42046 echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
42047 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
42048 if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
42049 if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
42050 echo $ECHO_N "(cached) $ECHO_C" >&6
42051 else
42052
42053
42054
42055 ac_ext=cc
42056 ac_cpp='$CXXCPP $CPPFLAGS'
42057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42060
42061 cat >conftest.$ac_ext <<_ACEOF
42062 /* confdefs.h. */
42063 _ACEOF
42064 cat confdefs.h >>conftest.$ac_ext
42065 cat >>conftest.$ac_ext <<_ACEOF
42066 /* end confdefs.h. */
42067 #include <math.h>
42068 int
42069 main ()
42070 {
42071 _copysignl(0, 0);
42072 ;
42073 return 0;
42074 }
42075 _ACEOF
42076 rm -f conftest.$ac_objext
42077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42078 (eval $ac_compile) 2>conftest.er1
42079 ac_status=$?
42080 grep -v '^ *+' conftest.er1 >conftest.err
42081 rm -f conftest.er1
42082 cat conftest.err >&5
42083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42084 (exit $ac_status); } &&
42085 { ac_try='test -z "$ac_cxx_werror_flag"
42086 || test ! -s conftest.err'
42087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42088 (eval $ac_try) 2>&5
42089 ac_status=$?
42090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42091 (exit $ac_status); }; } &&
42092 { ac_try='test -s conftest.$ac_objext'
42093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42094 (eval $ac_try) 2>&5
42095 ac_status=$?
42096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42097 (exit $ac_status); }; }; then
42098 glibcxx_cv_func__copysignl_use=yes
42099 else
42100 echo "$as_me: failed program was:" >&5
42101 sed 's/^/| /' conftest.$ac_ext >&5
42102
42103 glibcxx_cv_func__copysignl_use=no
42104 fi
42105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42106 ac_ext=c
42107 ac_cpp='$CPP $CPPFLAGS'
42108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42111
42112
42113 fi
42114
42115 fi
42116 echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
42117 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
42118
42119 if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
42120
42121 for ac_func in _copysignl
42122 do
42123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42124 echo "$as_me:$LINENO: checking for $ac_func" >&5
42125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42126 if eval "test \"\${$as_ac_var+set}\" = set"; then
42127 echo $ECHO_N "(cached) $ECHO_C" >&6
42128 else
42129 if test x$gcc_no_link = xyes; then
42130 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42131 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42132 { (exit 1); exit 1; }; }
42133 fi
42134 cat >conftest.$ac_ext <<_ACEOF
42135 /* confdefs.h. */
42136 _ACEOF
42137 cat confdefs.h >>conftest.$ac_ext
42138 cat >>conftest.$ac_ext <<_ACEOF
42139 /* end confdefs.h. */
42140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42142 #define $ac_func innocuous_$ac_func
42143
42144 /* System header to define __stub macros and hopefully few prototypes,
42145 which can conflict with char $ac_func (); below.
42146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42147 <limits.h> exists even on freestanding compilers. */
42148
42149 #ifdef __STDC__
42150 # include <limits.h>
42151 #else
42152 # include <assert.h>
42153 #endif
42154
42155 #undef $ac_func
42156
42157 /* Override any gcc2 internal prototype to avoid an error. */
42158 #ifdef __cplusplus
42159 extern "C"
42160 {
42161 #endif
42162 /* We use char because int might match the return type of a gcc2
42163 builtin and then its argument prototype would still apply. */
42164 char $ac_func ();
42165 /* The GNU C library defines this for functions which it implements
42166 to always fail with ENOSYS. Some functions are actually named
42167 something starting with __ and the normal name is an alias. */
42168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42169 choke me
42170 #else
42171 char (*f) () = $ac_func;
42172 #endif
42173 #ifdef __cplusplus
42174 }
42175 #endif
42176
42177 int
42178 main ()
42179 {
42180 return f != $ac_func;
42181 ;
42182 return 0;
42183 }
42184 _ACEOF
42185 rm -f conftest.$ac_objext conftest$ac_exeext
42186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42187 (eval $ac_link) 2>conftest.er1
42188 ac_status=$?
42189 grep -v '^ *+' conftest.er1 >conftest.err
42190 rm -f conftest.er1
42191 cat conftest.err >&5
42192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42193 (exit $ac_status); } &&
42194 { ac_try='test -z "$ac_c_werror_flag"
42195 || test ! -s conftest.err'
42196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42197 (eval $ac_try) 2>&5
42198 ac_status=$?
42199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42200 (exit $ac_status); }; } &&
42201 { ac_try='test -s conftest$ac_exeext'
42202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42203 (eval $ac_try) 2>&5
42204 ac_status=$?
42205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42206 (exit $ac_status); }; }; then
42207 eval "$as_ac_var=yes"
42208 else
42209 echo "$as_me: failed program was:" >&5
42210 sed 's/^/| /' conftest.$ac_ext >&5
42211
42212 eval "$as_ac_var=no"
42213 fi
42214 rm -f conftest.err conftest.$ac_objext \
42215 conftest$ac_exeext conftest.$ac_ext
42216 fi
42217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42219 if test `eval echo '${'$as_ac_var'}'` = yes; then
42220 cat >>confdefs.h <<_ACEOF
42221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42222 _ACEOF
42223
42224 fi
42225 done
42226
42227 fi
42228 fi
42229
42230
42231
42232 echo "$as_me:$LINENO: checking for atan2l declaration" >&5
42233 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
42234 if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
42235 if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
42236 echo $ECHO_N "(cached) $ECHO_C" >&6
42237 else
42238
42239
42240
42241 ac_ext=cc
42242 ac_cpp='$CXXCPP $CPPFLAGS'
42243 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42244 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42245 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42246
42247 cat >conftest.$ac_ext <<_ACEOF
42248 /* confdefs.h. */
42249 _ACEOF
42250 cat confdefs.h >>conftest.$ac_ext
42251 cat >>conftest.$ac_ext <<_ACEOF
42252 /* end confdefs.h. */
42253 #include <math.h>
42254 int
42255 main ()
42256 {
42257 atan2l(0, 0);
42258 ;
42259 return 0;
42260 }
42261 _ACEOF
42262 rm -f conftest.$ac_objext
42263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42264 (eval $ac_compile) 2>conftest.er1
42265 ac_status=$?
42266 grep -v '^ *+' conftest.er1 >conftest.err
42267 rm -f conftest.er1
42268 cat conftest.err >&5
42269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42270 (exit $ac_status); } &&
42271 { ac_try='test -z "$ac_cxx_werror_flag"
42272 || test ! -s conftest.err'
42273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42274 (eval $ac_try) 2>&5
42275 ac_status=$?
42276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42277 (exit $ac_status); }; } &&
42278 { ac_try='test -s conftest.$ac_objext'
42279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42280 (eval $ac_try) 2>&5
42281 ac_status=$?
42282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42283 (exit $ac_status); }; }; then
42284 glibcxx_cv_func_atan2l_use=yes
42285 else
42286 echo "$as_me: failed program was:" >&5
42287 sed 's/^/| /' conftest.$ac_ext >&5
42288
42289 glibcxx_cv_func_atan2l_use=no
42290 fi
42291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42292 ac_ext=c
42293 ac_cpp='$CPP $CPPFLAGS'
42294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42297
42298
42299 fi
42300
42301 fi
42302 echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
42303 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
42304
42305 if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
42306
42307 for ac_func in atan2l
42308 do
42309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42310 echo "$as_me:$LINENO: checking for $ac_func" >&5
42311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42312 if eval "test \"\${$as_ac_var+set}\" = set"; then
42313 echo $ECHO_N "(cached) $ECHO_C" >&6
42314 else
42315 if test x$gcc_no_link = xyes; then
42316 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42317 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42318 { (exit 1); exit 1; }; }
42319 fi
42320 cat >conftest.$ac_ext <<_ACEOF
42321 /* confdefs.h. */
42322 _ACEOF
42323 cat confdefs.h >>conftest.$ac_ext
42324 cat >>conftest.$ac_ext <<_ACEOF
42325 /* end confdefs.h. */
42326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42328 #define $ac_func innocuous_$ac_func
42329
42330 /* System header to define __stub macros and hopefully few prototypes,
42331 which can conflict with char $ac_func (); below.
42332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42333 <limits.h> exists even on freestanding compilers. */
42334
42335 #ifdef __STDC__
42336 # include <limits.h>
42337 #else
42338 # include <assert.h>
42339 #endif
42340
42341 #undef $ac_func
42342
42343 /* Override any gcc2 internal prototype to avoid an error. */
42344 #ifdef __cplusplus
42345 extern "C"
42346 {
42347 #endif
42348 /* We use char because int might match the return type of a gcc2
42349 builtin and then its argument prototype would still apply. */
42350 char $ac_func ();
42351 /* The GNU C library defines this for functions which it implements
42352 to always fail with ENOSYS. Some functions are actually named
42353 something starting with __ and the normal name is an alias. */
42354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42355 choke me
42356 #else
42357 char (*f) () = $ac_func;
42358 #endif
42359 #ifdef __cplusplus
42360 }
42361 #endif
42362
42363 int
42364 main ()
42365 {
42366 return f != $ac_func;
42367 ;
42368 return 0;
42369 }
42370 _ACEOF
42371 rm -f conftest.$ac_objext conftest$ac_exeext
42372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42373 (eval $ac_link) 2>conftest.er1
42374 ac_status=$?
42375 grep -v '^ *+' conftest.er1 >conftest.err
42376 rm -f conftest.er1
42377 cat conftest.err >&5
42378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42379 (exit $ac_status); } &&
42380 { ac_try='test -z "$ac_c_werror_flag"
42381 || test ! -s conftest.err'
42382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42383 (eval $ac_try) 2>&5
42384 ac_status=$?
42385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42386 (exit $ac_status); }; } &&
42387 { ac_try='test -s conftest$ac_exeext'
42388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42389 (eval $ac_try) 2>&5
42390 ac_status=$?
42391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42392 (exit $ac_status); }; }; then
42393 eval "$as_ac_var=yes"
42394 else
42395 echo "$as_me: failed program was:" >&5
42396 sed 's/^/| /' conftest.$ac_ext >&5
42397
42398 eval "$as_ac_var=no"
42399 fi
42400 rm -f conftest.err conftest.$ac_objext \
42401 conftest$ac_exeext conftest.$ac_ext
42402 fi
42403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42405 if test `eval echo '${'$as_ac_var'}'` = yes; then
42406 cat >>confdefs.h <<_ACEOF
42407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42408 _ACEOF
42409
42410 fi
42411 done
42412
42413 else
42414
42415 echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
42416 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
42417 if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
42418 if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
42419 echo $ECHO_N "(cached) $ECHO_C" >&6
42420 else
42421
42422
42423
42424 ac_ext=cc
42425 ac_cpp='$CXXCPP $CPPFLAGS'
42426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42429
42430 cat >conftest.$ac_ext <<_ACEOF
42431 /* confdefs.h. */
42432 _ACEOF
42433 cat confdefs.h >>conftest.$ac_ext
42434 cat >>conftest.$ac_ext <<_ACEOF
42435 /* end confdefs.h. */
42436 #include <math.h>
42437 int
42438 main ()
42439 {
42440 _atan2l(0, 0);
42441 ;
42442 return 0;
42443 }
42444 _ACEOF
42445 rm -f conftest.$ac_objext
42446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42447 (eval $ac_compile) 2>conftest.er1
42448 ac_status=$?
42449 grep -v '^ *+' conftest.er1 >conftest.err
42450 rm -f conftest.er1
42451 cat conftest.err >&5
42452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42453 (exit $ac_status); } &&
42454 { ac_try='test -z "$ac_cxx_werror_flag"
42455 || test ! -s conftest.err'
42456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42457 (eval $ac_try) 2>&5
42458 ac_status=$?
42459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42460 (exit $ac_status); }; } &&
42461 { ac_try='test -s conftest.$ac_objext'
42462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42463 (eval $ac_try) 2>&5
42464 ac_status=$?
42465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42466 (exit $ac_status); }; }; then
42467 glibcxx_cv_func__atan2l_use=yes
42468 else
42469 echo "$as_me: failed program was:" >&5
42470 sed 's/^/| /' conftest.$ac_ext >&5
42471
42472 glibcxx_cv_func__atan2l_use=no
42473 fi
42474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42475 ac_ext=c
42476 ac_cpp='$CPP $CPPFLAGS'
42477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42480
42481
42482 fi
42483
42484 fi
42485 echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
42486 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
42487
42488 if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
42489
42490 for ac_func in _atan2l
42491 do
42492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42493 echo "$as_me:$LINENO: checking for $ac_func" >&5
42494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42495 if eval "test \"\${$as_ac_var+set}\" = set"; then
42496 echo $ECHO_N "(cached) $ECHO_C" >&6
42497 else
42498 if test x$gcc_no_link = xyes; then
42499 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42500 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42501 { (exit 1); exit 1; }; }
42502 fi
42503 cat >conftest.$ac_ext <<_ACEOF
42504 /* confdefs.h. */
42505 _ACEOF
42506 cat confdefs.h >>conftest.$ac_ext
42507 cat >>conftest.$ac_ext <<_ACEOF
42508 /* end confdefs.h. */
42509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42511 #define $ac_func innocuous_$ac_func
42512
42513 /* System header to define __stub macros and hopefully few prototypes,
42514 which can conflict with char $ac_func (); below.
42515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42516 <limits.h> exists even on freestanding compilers. */
42517
42518 #ifdef __STDC__
42519 # include <limits.h>
42520 #else
42521 # include <assert.h>
42522 #endif
42523
42524 #undef $ac_func
42525
42526 /* Override any gcc2 internal prototype to avoid an error. */
42527 #ifdef __cplusplus
42528 extern "C"
42529 {
42530 #endif
42531 /* We use char because int might match the return type of a gcc2
42532 builtin and then its argument prototype would still apply. */
42533 char $ac_func ();
42534 /* The GNU C library defines this for functions which it implements
42535 to always fail with ENOSYS. Some functions are actually named
42536 something starting with __ and the normal name is an alias. */
42537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42538 choke me
42539 #else
42540 char (*f) () = $ac_func;
42541 #endif
42542 #ifdef __cplusplus
42543 }
42544 #endif
42545
42546 int
42547 main ()
42548 {
42549 return f != $ac_func;
42550 ;
42551 return 0;
42552 }
42553 _ACEOF
42554 rm -f conftest.$ac_objext conftest$ac_exeext
42555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42556 (eval $ac_link) 2>conftest.er1
42557 ac_status=$?
42558 grep -v '^ *+' conftest.er1 >conftest.err
42559 rm -f conftest.er1
42560 cat conftest.err >&5
42561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42562 (exit $ac_status); } &&
42563 { ac_try='test -z "$ac_c_werror_flag"
42564 || test ! -s conftest.err'
42565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42566 (eval $ac_try) 2>&5
42567 ac_status=$?
42568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42569 (exit $ac_status); }; } &&
42570 { ac_try='test -s conftest$ac_exeext'
42571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42572 (eval $ac_try) 2>&5
42573 ac_status=$?
42574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42575 (exit $ac_status); }; }; then
42576 eval "$as_ac_var=yes"
42577 else
42578 echo "$as_me: failed program was:" >&5
42579 sed 's/^/| /' conftest.$ac_ext >&5
42580
42581 eval "$as_ac_var=no"
42582 fi
42583 rm -f conftest.err conftest.$ac_objext \
42584 conftest$ac_exeext conftest.$ac_ext
42585 fi
42586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42588 if test `eval echo '${'$as_ac_var'}'` = yes; then
42589 cat >>confdefs.h <<_ACEOF
42590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42591 _ACEOF
42592
42593 fi
42594 done
42595
42596 fi
42597 fi
42598
42599
42600
42601 echo "$as_me:$LINENO: checking for expl declaration" >&5
42602 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
42603 if test x${glibcxx_cv_func_expl_use+set} != xset; then
42604 if test "${glibcxx_cv_func_expl_use+set}" = set; then
42605 echo $ECHO_N "(cached) $ECHO_C" >&6
42606 else
42607
42608
42609
42610 ac_ext=cc
42611 ac_cpp='$CXXCPP $CPPFLAGS'
42612 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42613 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42614 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42615
42616 cat >conftest.$ac_ext <<_ACEOF
42617 /* confdefs.h. */
42618 _ACEOF
42619 cat confdefs.h >>conftest.$ac_ext
42620 cat >>conftest.$ac_ext <<_ACEOF
42621 /* end confdefs.h. */
42622 #include <math.h>
42623 #ifdef HAVE_IEEEFP_H
42624 #include <ieeefp.h>
42625 #endif
42626
42627 int
42628 main ()
42629 {
42630 expl(0);
42631 ;
42632 return 0;
42633 }
42634 _ACEOF
42635 rm -f conftest.$ac_objext
42636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42637 (eval $ac_compile) 2>conftest.er1
42638 ac_status=$?
42639 grep -v '^ *+' conftest.er1 >conftest.err
42640 rm -f conftest.er1
42641 cat conftest.err >&5
42642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42643 (exit $ac_status); } &&
42644 { ac_try='test -z "$ac_cxx_werror_flag"
42645 || test ! -s conftest.err'
42646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42647 (eval $ac_try) 2>&5
42648 ac_status=$?
42649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42650 (exit $ac_status); }; } &&
42651 { ac_try='test -s conftest.$ac_objext'
42652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42653 (eval $ac_try) 2>&5
42654 ac_status=$?
42655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42656 (exit $ac_status); }; }; then
42657 glibcxx_cv_func_expl_use=yes
42658 else
42659 echo "$as_me: failed program was:" >&5
42660 sed 's/^/| /' conftest.$ac_ext >&5
42661
42662 glibcxx_cv_func_expl_use=no
42663 fi
42664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42665 ac_ext=c
42666 ac_cpp='$CPP $CPPFLAGS'
42667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42670
42671
42672 fi
42673
42674 fi
42675 echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
42676 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
42677
42678 if test x$glibcxx_cv_func_expl_use = x"yes"; then
42679
42680 for ac_func in expl
42681 do
42682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42683 echo "$as_me:$LINENO: checking for $ac_func" >&5
42684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42685 if eval "test \"\${$as_ac_var+set}\" = set"; then
42686 echo $ECHO_N "(cached) $ECHO_C" >&6
42687 else
42688 if test x$gcc_no_link = xyes; then
42689 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42690 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42691 { (exit 1); exit 1; }; }
42692 fi
42693 cat >conftest.$ac_ext <<_ACEOF
42694 /* confdefs.h. */
42695 _ACEOF
42696 cat confdefs.h >>conftest.$ac_ext
42697 cat >>conftest.$ac_ext <<_ACEOF
42698 /* end confdefs.h. */
42699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42701 #define $ac_func innocuous_$ac_func
42702
42703 /* System header to define __stub macros and hopefully few prototypes,
42704 which can conflict with char $ac_func (); below.
42705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42706 <limits.h> exists even on freestanding compilers. */
42707
42708 #ifdef __STDC__
42709 # include <limits.h>
42710 #else
42711 # include <assert.h>
42712 #endif
42713
42714 #undef $ac_func
42715
42716 /* Override any gcc2 internal prototype to avoid an error. */
42717 #ifdef __cplusplus
42718 extern "C"
42719 {
42720 #endif
42721 /* We use char because int might match the return type of a gcc2
42722 builtin and then its argument prototype would still apply. */
42723 char $ac_func ();
42724 /* The GNU C library defines this for functions which it implements
42725 to always fail with ENOSYS. Some functions are actually named
42726 something starting with __ and the normal name is an alias. */
42727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42728 choke me
42729 #else
42730 char (*f) () = $ac_func;
42731 #endif
42732 #ifdef __cplusplus
42733 }
42734 #endif
42735
42736 int
42737 main ()
42738 {
42739 return f != $ac_func;
42740 ;
42741 return 0;
42742 }
42743 _ACEOF
42744 rm -f conftest.$ac_objext conftest$ac_exeext
42745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42746 (eval $ac_link) 2>conftest.er1
42747 ac_status=$?
42748 grep -v '^ *+' conftest.er1 >conftest.err
42749 rm -f conftest.er1
42750 cat conftest.err >&5
42751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42752 (exit $ac_status); } &&
42753 { ac_try='test -z "$ac_c_werror_flag"
42754 || test ! -s conftest.err'
42755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42756 (eval $ac_try) 2>&5
42757 ac_status=$?
42758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42759 (exit $ac_status); }; } &&
42760 { ac_try='test -s conftest$ac_exeext'
42761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42762 (eval $ac_try) 2>&5
42763 ac_status=$?
42764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42765 (exit $ac_status); }; }; then
42766 eval "$as_ac_var=yes"
42767 else
42768 echo "$as_me: failed program was:" >&5
42769 sed 's/^/| /' conftest.$ac_ext >&5
42770
42771 eval "$as_ac_var=no"
42772 fi
42773 rm -f conftest.err conftest.$ac_objext \
42774 conftest$ac_exeext conftest.$ac_ext
42775 fi
42776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42778 if test `eval echo '${'$as_ac_var'}'` = yes; then
42779 cat >>confdefs.h <<_ACEOF
42780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42781 _ACEOF
42782
42783 fi
42784 done
42785
42786 else
42787
42788 echo "$as_me:$LINENO: checking for _expl declaration" >&5
42789 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
42790 if test x${glibcxx_cv_func__expl_use+set} != xset; then
42791 if test "${glibcxx_cv_func__expl_use+set}" = set; then
42792 echo $ECHO_N "(cached) $ECHO_C" >&6
42793 else
42794
42795
42796
42797 ac_ext=cc
42798 ac_cpp='$CXXCPP $CPPFLAGS'
42799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42802
42803 cat >conftest.$ac_ext <<_ACEOF
42804 /* confdefs.h. */
42805 _ACEOF
42806 cat confdefs.h >>conftest.$ac_ext
42807 cat >>conftest.$ac_ext <<_ACEOF
42808 /* end confdefs.h. */
42809 #include <math.h>
42810 #ifdef HAVE_IEEEFP_H
42811 #include <ieeefp.h>
42812 #endif
42813
42814 int
42815 main ()
42816 {
42817 _expl(0);
42818 ;
42819 return 0;
42820 }
42821 _ACEOF
42822 rm -f conftest.$ac_objext
42823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42824 (eval $ac_compile) 2>conftest.er1
42825 ac_status=$?
42826 grep -v '^ *+' conftest.er1 >conftest.err
42827 rm -f conftest.er1
42828 cat conftest.err >&5
42829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42830 (exit $ac_status); } &&
42831 { ac_try='test -z "$ac_cxx_werror_flag"
42832 || test ! -s conftest.err'
42833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42834 (eval $ac_try) 2>&5
42835 ac_status=$?
42836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42837 (exit $ac_status); }; } &&
42838 { ac_try='test -s conftest.$ac_objext'
42839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42840 (eval $ac_try) 2>&5
42841 ac_status=$?
42842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42843 (exit $ac_status); }; }; then
42844 glibcxx_cv_func__expl_use=yes
42845 else
42846 echo "$as_me: failed program was:" >&5
42847 sed 's/^/| /' conftest.$ac_ext >&5
42848
42849 glibcxx_cv_func__expl_use=no
42850 fi
42851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42852 ac_ext=c
42853 ac_cpp='$CPP $CPPFLAGS'
42854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42857
42858
42859 fi
42860
42861 fi
42862 echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
42863 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
42864
42865 if test x$glibcxx_cv_func__expl_use = x"yes"; then
42866
42867 for ac_func in _expl
42868 do
42869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42870 echo "$as_me:$LINENO: checking for $ac_func" >&5
42871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42872 if eval "test \"\${$as_ac_var+set}\" = set"; then
42873 echo $ECHO_N "(cached) $ECHO_C" >&6
42874 else
42875 if test x$gcc_no_link = xyes; then
42876 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42877 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42878 { (exit 1); exit 1; }; }
42879 fi
42880 cat >conftest.$ac_ext <<_ACEOF
42881 /* confdefs.h. */
42882 _ACEOF
42883 cat confdefs.h >>conftest.$ac_ext
42884 cat >>conftest.$ac_ext <<_ACEOF
42885 /* end confdefs.h. */
42886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42888 #define $ac_func innocuous_$ac_func
42889
42890 /* System header to define __stub macros and hopefully few prototypes,
42891 which can conflict with char $ac_func (); below.
42892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42893 <limits.h> exists even on freestanding compilers. */
42894
42895 #ifdef __STDC__
42896 # include <limits.h>
42897 #else
42898 # include <assert.h>
42899 #endif
42900
42901 #undef $ac_func
42902
42903 /* Override any gcc2 internal prototype to avoid an error. */
42904 #ifdef __cplusplus
42905 extern "C"
42906 {
42907 #endif
42908 /* We use char because int might match the return type of a gcc2
42909 builtin and then its argument prototype would still apply. */
42910 char $ac_func ();
42911 /* The GNU C library defines this for functions which it implements
42912 to always fail with ENOSYS. Some functions are actually named
42913 something starting with __ and the normal name is an alias. */
42914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42915 choke me
42916 #else
42917 char (*f) () = $ac_func;
42918 #endif
42919 #ifdef __cplusplus
42920 }
42921 #endif
42922
42923 int
42924 main ()
42925 {
42926 return f != $ac_func;
42927 ;
42928 return 0;
42929 }
42930 _ACEOF
42931 rm -f conftest.$ac_objext conftest$ac_exeext
42932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42933 (eval $ac_link) 2>conftest.er1
42934 ac_status=$?
42935 grep -v '^ *+' conftest.er1 >conftest.err
42936 rm -f conftest.er1
42937 cat conftest.err >&5
42938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42939 (exit $ac_status); } &&
42940 { ac_try='test -z "$ac_c_werror_flag"
42941 || test ! -s conftest.err'
42942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42943 (eval $ac_try) 2>&5
42944 ac_status=$?
42945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42946 (exit $ac_status); }; } &&
42947 { ac_try='test -s conftest$ac_exeext'
42948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42949 (eval $ac_try) 2>&5
42950 ac_status=$?
42951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42952 (exit $ac_status); }; }; then
42953 eval "$as_ac_var=yes"
42954 else
42955 echo "$as_me: failed program was:" >&5
42956 sed 's/^/| /' conftest.$ac_ext >&5
42957
42958 eval "$as_ac_var=no"
42959 fi
42960 rm -f conftest.err conftest.$ac_objext \
42961 conftest$ac_exeext conftest.$ac_ext
42962 fi
42963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42965 if test `eval echo '${'$as_ac_var'}'` = yes; then
42966 cat >>confdefs.h <<_ACEOF
42967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42968 _ACEOF
42969
42970 fi
42971 done
42972
42973 fi
42974 fi
42975
42976
42977
42978 echo "$as_me:$LINENO: checking for fabsl declaration" >&5
42979 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
42980 if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
42981 if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
42982 echo $ECHO_N "(cached) $ECHO_C" >&6
42983 else
42984
42985
42986
42987 ac_ext=cc
42988 ac_cpp='$CXXCPP $CPPFLAGS'
42989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42992
42993 cat >conftest.$ac_ext <<_ACEOF
42994 /* confdefs.h. */
42995 _ACEOF
42996 cat confdefs.h >>conftest.$ac_ext
42997 cat >>conftest.$ac_ext <<_ACEOF
42998 /* end confdefs.h. */
42999 #include <math.h>
43000 #ifdef HAVE_IEEEFP_H
43001 #include <ieeefp.h>
43002 #endif
43003
43004 int
43005 main ()
43006 {
43007 fabsl(0);
43008 ;
43009 return 0;
43010 }
43011 _ACEOF
43012 rm -f conftest.$ac_objext
43013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43014 (eval $ac_compile) 2>conftest.er1
43015 ac_status=$?
43016 grep -v '^ *+' conftest.er1 >conftest.err
43017 rm -f conftest.er1
43018 cat conftest.err >&5
43019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43020 (exit $ac_status); } &&
43021 { ac_try='test -z "$ac_cxx_werror_flag"
43022 || test ! -s conftest.err'
43023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43024 (eval $ac_try) 2>&5
43025 ac_status=$?
43026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43027 (exit $ac_status); }; } &&
43028 { ac_try='test -s conftest.$ac_objext'
43029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43030 (eval $ac_try) 2>&5
43031 ac_status=$?
43032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43033 (exit $ac_status); }; }; then
43034 glibcxx_cv_func_fabsl_use=yes
43035 else
43036 echo "$as_me: failed program was:" >&5
43037 sed 's/^/| /' conftest.$ac_ext >&5
43038
43039 glibcxx_cv_func_fabsl_use=no
43040 fi
43041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43042 ac_ext=c
43043 ac_cpp='$CPP $CPPFLAGS'
43044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43047
43048
43049 fi
43050
43051 fi
43052 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
43053 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
43054
43055 if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
43056
43057 for ac_func in fabsl
43058 do
43059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43060 echo "$as_me:$LINENO: checking for $ac_func" >&5
43061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43062 if eval "test \"\${$as_ac_var+set}\" = set"; then
43063 echo $ECHO_N "(cached) $ECHO_C" >&6
43064 else
43065 if test x$gcc_no_link = xyes; then
43066 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43067 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43068 { (exit 1); exit 1; }; }
43069 fi
43070 cat >conftest.$ac_ext <<_ACEOF
43071 /* confdefs.h. */
43072 _ACEOF
43073 cat confdefs.h >>conftest.$ac_ext
43074 cat >>conftest.$ac_ext <<_ACEOF
43075 /* end confdefs.h. */
43076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43078 #define $ac_func innocuous_$ac_func
43079
43080 /* System header to define __stub macros and hopefully few prototypes,
43081 which can conflict with char $ac_func (); below.
43082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43083 <limits.h> exists even on freestanding compilers. */
43084
43085 #ifdef __STDC__
43086 # include <limits.h>
43087 #else
43088 # include <assert.h>
43089 #endif
43090
43091 #undef $ac_func
43092
43093 /* Override any gcc2 internal prototype to avoid an error. */
43094 #ifdef __cplusplus
43095 extern "C"
43096 {
43097 #endif
43098 /* We use char because int might match the return type of a gcc2
43099 builtin and then its argument prototype would still apply. */
43100 char $ac_func ();
43101 /* The GNU C library defines this for functions which it implements
43102 to always fail with ENOSYS. Some functions are actually named
43103 something starting with __ and the normal name is an alias. */
43104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43105 choke me
43106 #else
43107 char (*f) () = $ac_func;
43108 #endif
43109 #ifdef __cplusplus
43110 }
43111 #endif
43112
43113 int
43114 main ()
43115 {
43116 return f != $ac_func;
43117 ;
43118 return 0;
43119 }
43120 _ACEOF
43121 rm -f conftest.$ac_objext conftest$ac_exeext
43122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43123 (eval $ac_link) 2>conftest.er1
43124 ac_status=$?
43125 grep -v '^ *+' conftest.er1 >conftest.err
43126 rm -f conftest.er1
43127 cat conftest.err >&5
43128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43129 (exit $ac_status); } &&
43130 { ac_try='test -z "$ac_c_werror_flag"
43131 || test ! -s conftest.err'
43132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43133 (eval $ac_try) 2>&5
43134 ac_status=$?
43135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43136 (exit $ac_status); }; } &&
43137 { ac_try='test -s conftest$ac_exeext'
43138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43139 (eval $ac_try) 2>&5
43140 ac_status=$?
43141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43142 (exit $ac_status); }; }; then
43143 eval "$as_ac_var=yes"
43144 else
43145 echo "$as_me: failed program was:" >&5
43146 sed 's/^/| /' conftest.$ac_ext >&5
43147
43148 eval "$as_ac_var=no"
43149 fi
43150 rm -f conftest.err conftest.$ac_objext \
43151 conftest$ac_exeext conftest.$ac_ext
43152 fi
43153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43155 if test `eval echo '${'$as_ac_var'}'` = yes; then
43156 cat >>confdefs.h <<_ACEOF
43157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43158 _ACEOF
43159
43160 fi
43161 done
43162
43163 else
43164
43165 echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
43166 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
43167 if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
43168 if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
43169 echo $ECHO_N "(cached) $ECHO_C" >&6
43170 else
43171
43172
43173
43174 ac_ext=cc
43175 ac_cpp='$CXXCPP $CPPFLAGS'
43176 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43177 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43178 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43179
43180 cat >conftest.$ac_ext <<_ACEOF
43181 /* confdefs.h. */
43182 _ACEOF
43183 cat confdefs.h >>conftest.$ac_ext
43184 cat >>conftest.$ac_ext <<_ACEOF
43185 /* end confdefs.h. */
43186 #include <math.h>
43187 #ifdef HAVE_IEEEFP_H
43188 #include <ieeefp.h>
43189 #endif
43190
43191 int
43192 main ()
43193 {
43194 _fabsl(0);
43195 ;
43196 return 0;
43197 }
43198 _ACEOF
43199 rm -f conftest.$ac_objext
43200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43201 (eval $ac_compile) 2>conftest.er1
43202 ac_status=$?
43203 grep -v '^ *+' conftest.er1 >conftest.err
43204 rm -f conftest.er1
43205 cat conftest.err >&5
43206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43207 (exit $ac_status); } &&
43208 { ac_try='test -z "$ac_cxx_werror_flag"
43209 || test ! -s conftest.err'
43210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43211 (eval $ac_try) 2>&5
43212 ac_status=$?
43213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43214 (exit $ac_status); }; } &&
43215 { ac_try='test -s conftest.$ac_objext'
43216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43217 (eval $ac_try) 2>&5
43218 ac_status=$?
43219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43220 (exit $ac_status); }; }; then
43221 glibcxx_cv_func__fabsl_use=yes
43222 else
43223 echo "$as_me: failed program was:" >&5
43224 sed 's/^/| /' conftest.$ac_ext >&5
43225
43226 glibcxx_cv_func__fabsl_use=no
43227 fi
43228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43229 ac_ext=c
43230 ac_cpp='$CPP $CPPFLAGS'
43231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43234
43235
43236 fi
43237
43238 fi
43239 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
43240 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
43241
43242 if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
43243
43244 for ac_func in _fabsl
43245 do
43246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43247 echo "$as_me:$LINENO: checking for $ac_func" >&5
43248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43249 if eval "test \"\${$as_ac_var+set}\" = set"; then
43250 echo $ECHO_N "(cached) $ECHO_C" >&6
43251 else
43252 if test x$gcc_no_link = xyes; then
43253 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43254 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43255 { (exit 1); exit 1; }; }
43256 fi
43257 cat >conftest.$ac_ext <<_ACEOF
43258 /* confdefs.h. */
43259 _ACEOF
43260 cat confdefs.h >>conftest.$ac_ext
43261 cat >>conftest.$ac_ext <<_ACEOF
43262 /* end confdefs.h. */
43263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43265 #define $ac_func innocuous_$ac_func
43266
43267 /* System header to define __stub macros and hopefully few prototypes,
43268 which can conflict with char $ac_func (); below.
43269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43270 <limits.h> exists even on freestanding compilers. */
43271
43272 #ifdef __STDC__
43273 # include <limits.h>
43274 #else
43275 # include <assert.h>
43276 #endif
43277
43278 #undef $ac_func
43279
43280 /* Override any gcc2 internal prototype to avoid an error. */
43281 #ifdef __cplusplus
43282 extern "C"
43283 {
43284 #endif
43285 /* We use char because int might match the return type of a gcc2
43286 builtin and then its argument prototype would still apply. */
43287 char $ac_func ();
43288 /* The GNU C library defines this for functions which it implements
43289 to always fail with ENOSYS. Some functions are actually named
43290 something starting with __ and the normal name is an alias. */
43291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43292 choke me
43293 #else
43294 char (*f) () = $ac_func;
43295 #endif
43296 #ifdef __cplusplus
43297 }
43298 #endif
43299
43300 int
43301 main ()
43302 {
43303 return f != $ac_func;
43304 ;
43305 return 0;
43306 }
43307 _ACEOF
43308 rm -f conftest.$ac_objext conftest$ac_exeext
43309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43310 (eval $ac_link) 2>conftest.er1
43311 ac_status=$?
43312 grep -v '^ *+' conftest.er1 >conftest.err
43313 rm -f conftest.er1
43314 cat conftest.err >&5
43315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43316 (exit $ac_status); } &&
43317 { ac_try='test -z "$ac_c_werror_flag"
43318 || test ! -s conftest.err'
43319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43320 (eval $ac_try) 2>&5
43321 ac_status=$?
43322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43323 (exit $ac_status); }; } &&
43324 { ac_try='test -s conftest$ac_exeext'
43325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43326 (eval $ac_try) 2>&5
43327 ac_status=$?
43328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43329 (exit $ac_status); }; }; then
43330 eval "$as_ac_var=yes"
43331 else
43332 echo "$as_me: failed program was:" >&5
43333 sed 's/^/| /' conftest.$ac_ext >&5
43334
43335 eval "$as_ac_var=no"
43336 fi
43337 rm -f conftest.err conftest.$ac_objext \
43338 conftest$ac_exeext conftest.$ac_ext
43339 fi
43340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43342 if test `eval echo '${'$as_ac_var'}'` = yes; then
43343 cat >>confdefs.h <<_ACEOF
43344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43345 _ACEOF
43346
43347 fi
43348 done
43349
43350 fi
43351 fi
43352
43353
43354
43355 echo "$as_me:$LINENO: checking for fmodl declaration" >&5
43356 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
43357 if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
43358 if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
43359 echo $ECHO_N "(cached) $ECHO_C" >&6
43360 else
43361
43362
43363
43364 ac_ext=cc
43365 ac_cpp='$CXXCPP $CPPFLAGS'
43366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43369
43370 cat >conftest.$ac_ext <<_ACEOF
43371 /* confdefs.h. */
43372 _ACEOF
43373 cat confdefs.h >>conftest.$ac_ext
43374 cat >>conftest.$ac_ext <<_ACEOF
43375 /* end confdefs.h. */
43376 #include <math.h>
43377 int
43378 main ()
43379 {
43380 fmodl(0, 0);
43381 ;
43382 return 0;
43383 }
43384 _ACEOF
43385 rm -f conftest.$ac_objext
43386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43387 (eval $ac_compile) 2>conftest.er1
43388 ac_status=$?
43389 grep -v '^ *+' conftest.er1 >conftest.err
43390 rm -f conftest.er1
43391 cat conftest.err >&5
43392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43393 (exit $ac_status); } &&
43394 { ac_try='test -z "$ac_cxx_werror_flag"
43395 || test ! -s conftest.err'
43396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43397 (eval $ac_try) 2>&5
43398 ac_status=$?
43399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43400 (exit $ac_status); }; } &&
43401 { ac_try='test -s conftest.$ac_objext'
43402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43403 (eval $ac_try) 2>&5
43404 ac_status=$?
43405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43406 (exit $ac_status); }; }; then
43407 glibcxx_cv_func_fmodl_use=yes
43408 else
43409 echo "$as_me: failed program was:" >&5
43410 sed 's/^/| /' conftest.$ac_ext >&5
43411
43412 glibcxx_cv_func_fmodl_use=no
43413 fi
43414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43415 ac_ext=c
43416 ac_cpp='$CPP $CPPFLAGS'
43417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43420
43421
43422 fi
43423
43424 fi
43425 echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
43426 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
43427
43428 if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
43429
43430 for ac_func in fmodl
43431 do
43432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43433 echo "$as_me:$LINENO: checking for $ac_func" >&5
43434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43435 if eval "test \"\${$as_ac_var+set}\" = set"; then
43436 echo $ECHO_N "(cached) $ECHO_C" >&6
43437 else
43438 if test x$gcc_no_link = xyes; then
43439 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43440 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43441 { (exit 1); exit 1; }; }
43442 fi
43443 cat >conftest.$ac_ext <<_ACEOF
43444 /* confdefs.h. */
43445 _ACEOF
43446 cat confdefs.h >>conftest.$ac_ext
43447 cat >>conftest.$ac_ext <<_ACEOF
43448 /* end confdefs.h. */
43449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43451 #define $ac_func innocuous_$ac_func
43452
43453 /* System header to define __stub macros and hopefully few prototypes,
43454 which can conflict with char $ac_func (); below.
43455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43456 <limits.h> exists even on freestanding compilers. */
43457
43458 #ifdef __STDC__
43459 # include <limits.h>
43460 #else
43461 # include <assert.h>
43462 #endif
43463
43464 #undef $ac_func
43465
43466 /* Override any gcc2 internal prototype to avoid an error. */
43467 #ifdef __cplusplus
43468 extern "C"
43469 {
43470 #endif
43471 /* We use char because int might match the return type of a gcc2
43472 builtin and then its argument prototype would still apply. */
43473 char $ac_func ();
43474 /* The GNU C library defines this for functions which it implements
43475 to always fail with ENOSYS. Some functions are actually named
43476 something starting with __ and the normal name is an alias. */
43477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43478 choke me
43479 #else
43480 char (*f) () = $ac_func;
43481 #endif
43482 #ifdef __cplusplus
43483 }
43484 #endif
43485
43486 int
43487 main ()
43488 {
43489 return f != $ac_func;
43490 ;
43491 return 0;
43492 }
43493 _ACEOF
43494 rm -f conftest.$ac_objext conftest$ac_exeext
43495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43496 (eval $ac_link) 2>conftest.er1
43497 ac_status=$?
43498 grep -v '^ *+' conftest.er1 >conftest.err
43499 rm -f conftest.er1
43500 cat conftest.err >&5
43501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43502 (exit $ac_status); } &&
43503 { ac_try='test -z "$ac_c_werror_flag"
43504 || test ! -s conftest.err'
43505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43506 (eval $ac_try) 2>&5
43507 ac_status=$?
43508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43509 (exit $ac_status); }; } &&
43510 { ac_try='test -s conftest$ac_exeext'
43511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43512 (eval $ac_try) 2>&5
43513 ac_status=$?
43514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43515 (exit $ac_status); }; }; then
43516 eval "$as_ac_var=yes"
43517 else
43518 echo "$as_me: failed program was:" >&5
43519 sed 's/^/| /' conftest.$ac_ext >&5
43520
43521 eval "$as_ac_var=no"
43522 fi
43523 rm -f conftest.err conftest.$ac_objext \
43524 conftest$ac_exeext conftest.$ac_ext
43525 fi
43526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43528 if test `eval echo '${'$as_ac_var'}'` = yes; then
43529 cat >>confdefs.h <<_ACEOF
43530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43531 _ACEOF
43532
43533 fi
43534 done
43535
43536 else
43537
43538 echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
43539 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
43540 if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
43541 if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
43542 echo $ECHO_N "(cached) $ECHO_C" >&6
43543 else
43544
43545
43546
43547 ac_ext=cc
43548 ac_cpp='$CXXCPP $CPPFLAGS'
43549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43552
43553 cat >conftest.$ac_ext <<_ACEOF
43554 /* confdefs.h. */
43555 _ACEOF
43556 cat confdefs.h >>conftest.$ac_ext
43557 cat >>conftest.$ac_ext <<_ACEOF
43558 /* end confdefs.h. */
43559 #include <math.h>
43560 int
43561 main ()
43562 {
43563 _fmodl(0, 0);
43564 ;
43565 return 0;
43566 }
43567 _ACEOF
43568 rm -f conftest.$ac_objext
43569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43570 (eval $ac_compile) 2>conftest.er1
43571 ac_status=$?
43572 grep -v '^ *+' conftest.er1 >conftest.err
43573 rm -f conftest.er1
43574 cat conftest.err >&5
43575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43576 (exit $ac_status); } &&
43577 { ac_try='test -z "$ac_cxx_werror_flag"
43578 || test ! -s conftest.err'
43579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43580 (eval $ac_try) 2>&5
43581 ac_status=$?
43582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43583 (exit $ac_status); }; } &&
43584 { ac_try='test -s conftest.$ac_objext'
43585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43586 (eval $ac_try) 2>&5
43587 ac_status=$?
43588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43589 (exit $ac_status); }; }; then
43590 glibcxx_cv_func__fmodl_use=yes
43591 else
43592 echo "$as_me: failed program was:" >&5
43593 sed 's/^/| /' conftest.$ac_ext >&5
43594
43595 glibcxx_cv_func__fmodl_use=no
43596 fi
43597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43598 ac_ext=c
43599 ac_cpp='$CPP $CPPFLAGS'
43600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43603
43604
43605 fi
43606
43607 fi
43608 echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
43609 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
43610
43611 if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
43612
43613 for ac_func in _fmodl
43614 do
43615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43616 echo "$as_me:$LINENO: checking for $ac_func" >&5
43617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43618 if eval "test \"\${$as_ac_var+set}\" = set"; then
43619 echo $ECHO_N "(cached) $ECHO_C" >&6
43620 else
43621 if test x$gcc_no_link = xyes; then
43622 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43623 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43624 { (exit 1); exit 1; }; }
43625 fi
43626 cat >conftest.$ac_ext <<_ACEOF
43627 /* confdefs.h. */
43628 _ACEOF
43629 cat confdefs.h >>conftest.$ac_ext
43630 cat >>conftest.$ac_ext <<_ACEOF
43631 /* end confdefs.h. */
43632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43634 #define $ac_func innocuous_$ac_func
43635
43636 /* System header to define __stub macros and hopefully few prototypes,
43637 which can conflict with char $ac_func (); below.
43638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43639 <limits.h> exists even on freestanding compilers. */
43640
43641 #ifdef __STDC__
43642 # include <limits.h>
43643 #else
43644 # include <assert.h>
43645 #endif
43646
43647 #undef $ac_func
43648
43649 /* Override any gcc2 internal prototype to avoid an error. */
43650 #ifdef __cplusplus
43651 extern "C"
43652 {
43653 #endif
43654 /* We use char because int might match the return type of a gcc2
43655 builtin and then its argument prototype would still apply. */
43656 char $ac_func ();
43657 /* The GNU C library defines this for functions which it implements
43658 to always fail with ENOSYS. Some functions are actually named
43659 something starting with __ and the normal name is an alias. */
43660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43661 choke me
43662 #else
43663 char (*f) () = $ac_func;
43664 #endif
43665 #ifdef __cplusplus
43666 }
43667 #endif
43668
43669 int
43670 main ()
43671 {
43672 return f != $ac_func;
43673 ;
43674 return 0;
43675 }
43676 _ACEOF
43677 rm -f conftest.$ac_objext conftest$ac_exeext
43678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43679 (eval $ac_link) 2>conftest.er1
43680 ac_status=$?
43681 grep -v '^ *+' conftest.er1 >conftest.err
43682 rm -f conftest.er1
43683 cat conftest.err >&5
43684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43685 (exit $ac_status); } &&
43686 { ac_try='test -z "$ac_c_werror_flag"
43687 || test ! -s conftest.err'
43688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43689 (eval $ac_try) 2>&5
43690 ac_status=$?
43691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43692 (exit $ac_status); }; } &&
43693 { ac_try='test -s conftest$ac_exeext'
43694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43695 (eval $ac_try) 2>&5
43696 ac_status=$?
43697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43698 (exit $ac_status); }; }; then
43699 eval "$as_ac_var=yes"
43700 else
43701 echo "$as_me: failed program was:" >&5
43702 sed 's/^/| /' conftest.$ac_ext >&5
43703
43704 eval "$as_ac_var=no"
43705 fi
43706 rm -f conftest.err conftest.$ac_objext \
43707 conftest$ac_exeext conftest.$ac_ext
43708 fi
43709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43711 if test `eval echo '${'$as_ac_var'}'` = yes; then
43712 cat >>confdefs.h <<_ACEOF
43713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43714 _ACEOF
43715
43716 fi
43717 done
43718
43719 fi
43720 fi
43721
43722
43723
43724 echo "$as_me:$LINENO: checking for frexpl declaration" >&5
43725 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
43726 if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
43727 if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
43728 echo $ECHO_N "(cached) $ECHO_C" >&6
43729 else
43730
43731
43732
43733 ac_ext=cc
43734 ac_cpp='$CXXCPP $CPPFLAGS'
43735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43738
43739 cat >conftest.$ac_ext <<_ACEOF
43740 /* confdefs.h. */
43741 _ACEOF
43742 cat confdefs.h >>conftest.$ac_ext
43743 cat >>conftest.$ac_ext <<_ACEOF
43744 /* end confdefs.h. */
43745 #include <math.h>
43746 int
43747 main ()
43748 {
43749 frexpl(0, 0);
43750 ;
43751 return 0;
43752 }
43753 _ACEOF
43754 rm -f conftest.$ac_objext
43755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43756 (eval $ac_compile) 2>conftest.er1
43757 ac_status=$?
43758 grep -v '^ *+' conftest.er1 >conftest.err
43759 rm -f conftest.er1
43760 cat conftest.err >&5
43761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43762 (exit $ac_status); } &&
43763 { ac_try='test -z "$ac_cxx_werror_flag"
43764 || test ! -s conftest.err'
43765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43766 (eval $ac_try) 2>&5
43767 ac_status=$?
43768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43769 (exit $ac_status); }; } &&
43770 { ac_try='test -s conftest.$ac_objext'
43771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43772 (eval $ac_try) 2>&5
43773 ac_status=$?
43774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43775 (exit $ac_status); }; }; then
43776 glibcxx_cv_func_frexpl_use=yes
43777 else
43778 echo "$as_me: failed program was:" >&5
43779 sed 's/^/| /' conftest.$ac_ext >&5
43780
43781 glibcxx_cv_func_frexpl_use=no
43782 fi
43783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43784 ac_ext=c
43785 ac_cpp='$CPP $CPPFLAGS'
43786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43789
43790
43791 fi
43792
43793 fi
43794 echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
43795 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
43796
43797 if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
43798
43799 for ac_func in frexpl
43800 do
43801 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43802 echo "$as_me:$LINENO: checking for $ac_func" >&5
43803 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43804 if eval "test \"\${$as_ac_var+set}\" = set"; then
43805 echo $ECHO_N "(cached) $ECHO_C" >&6
43806 else
43807 if test x$gcc_no_link = xyes; then
43808 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43809 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43810 { (exit 1); exit 1; }; }
43811 fi
43812 cat >conftest.$ac_ext <<_ACEOF
43813 /* confdefs.h. */
43814 _ACEOF
43815 cat confdefs.h >>conftest.$ac_ext
43816 cat >>conftest.$ac_ext <<_ACEOF
43817 /* end confdefs.h. */
43818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43820 #define $ac_func innocuous_$ac_func
43821
43822 /* System header to define __stub macros and hopefully few prototypes,
43823 which can conflict with char $ac_func (); below.
43824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43825 <limits.h> exists even on freestanding compilers. */
43826
43827 #ifdef __STDC__
43828 # include <limits.h>
43829 #else
43830 # include <assert.h>
43831 #endif
43832
43833 #undef $ac_func
43834
43835 /* Override any gcc2 internal prototype to avoid an error. */
43836 #ifdef __cplusplus
43837 extern "C"
43838 {
43839 #endif
43840 /* We use char because int might match the return type of a gcc2
43841 builtin and then its argument prototype would still apply. */
43842 char $ac_func ();
43843 /* The GNU C library defines this for functions which it implements
43844 to always fail with ENOSYS. Some functions are actually named
43845 something starting with __ and the normal name is an alias. */
43846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43847 choke me
43848 #else
43849 char (*f) () = $ac_func;
43850 #endif
43851 #ifdef __cplusplus
43852 }
43853 #endif
43854
43855 int
43856 main ()
43857 {
43858 return f != $ac_func;
43859 ;
43860 return 0;
43861 }
43862 _ACEOF
43863 rm -f conftest.$ac_objext conftest$ac_exeext
43864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43865 (eval $ac_link) 2>conftest.er1
43866 ac_status=$?
43867 grep -v '^ *+' conftest.er1 >conftest.err
43868 rm -f conftest.er1
43869 cat conftest.err >&5
43870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43871 (exit $ac_status); } &&
43872 { ac_try='test -z "$ac_c_werror_flag"
43873 || test ! -s conftest.err'
43874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43875 (eval $ac_try) 2>&5
43876 ac_status=$?
43877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43878 (exit $ac_status); }; } &&
43879 { ac_try='test -s conftest$ac_exeext'
43880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43881 (eval $ac_try) 2>&5
43882 ac_status=$?
43883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43884 (exit $ac_status); }; }; then
43885 eval "$as_ac_var=yes"
43886 else
43887 echo "$as_me: failed program was:" >&5
43888 sed 's/^/| /' conftest.$ac_ext >&5
43889
43890 eval "$as_ac_var=no"
43891 fi
43892 rm -f conftest.err conftest.$ac_objext \
43893 conftest$ac_exeext conftest.$ac_ext
43894 fi
43895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43896 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43897 if test `eval echo '${'$as_ac_var'}'` = yes; then
43898 cat >>confdefs.h <<_ACEOF
43899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43900 _ACEOF
43901
43902 fi
43903 done
43904
43905 else
43906
43907 echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
43908 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
43909 if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
43910 if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
43911 echo $ECHO_N "(cached) $ECHO_C" >&6
43912 else
43913
43914
43915
43916 ac_ext=cc
43917 ac_cpp='$CXXCPP $CPPFLAGS'
43918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43921
43922 cat >conftest.$ac_ext <<_ACEOF
43923 /* confdefs.h. */
43924 _ACEOF
43925 cat confdefs.h >>conftest.$ac_ext
43926 cat >>conftest.$ac_ext <<_ACEOF
43927 /* end confdefs.h. */
43928 #include <math.h>
43929 int
43930 main ()
43931 {
43932 _frexpl(0, 0);
43933 ;
43934 return 0;
43935 }
43936 _ACEOF
43937 rm -f conftest.$ac_objext
43938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43939 (eval $ac_compile) 2>conftest.er1
43940 ac_status=$?
43941 grep -v '^ *+' conftest.er1 >conftest.err
43942 rm -f conftest.er1
43943 cat conftest.err >&5
43944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43945 (exit $ac_status); } &&
43946 { ac_try='test -z "$ac_cxx_werror_flag"
43947 || test ! -s conftest.err'
43948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43949 (eval $ac_try) 2>&5
43950 ac_status=$?
43951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43952 (exit $ac_status); }; } &&
43953 { ac_try='test -s conftest.$ac_objext'
43954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43955 (eval $ac_try) 2>&5
43956 ac_status=$?
43957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43958 (exit $ac_status); }; }; then
43959 glibcxx_cv_func__frexpl_use=yes
43960 else
43961 echo "$as_me: failed program was:" >&5
43962 sed 's/^/| /' conftest.$ac_ext >&5
43963
43964 glibcxx_cv_func__frexpl_use=no
43965 fi
43966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43967 ac_ext=c
43968 ac_cpp='$CPP $CPPFLAGS'
43969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43972
43973
43974 fi
43975
43976 fi
43977 echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
43978 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
43979
43980 if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
43981
43982 for ac_func in _frexpl
43983 do
43984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43985 echo "$as_me:$LINENO: checking for $ac_func" >&5
43986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43987 if eval "test \"\${$as_ac_var+set}\" = set"; then
43988 echo $ECHO_N "(cached) $ECHO_C" >&6
43989 else
43990 if test x$gcc_no_link = xyes; then
43991 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43992 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43993 { (exit 1); exit 1; }; }
43994 fi
43995 cat >conftest.$ac_ext <<_ACEOF
43996 /* confdefs.h. */
43997 _ACEOF
43998 cat confdefs.h >>conftest.$ac_ext
43999 cat >>conftest.$ac_ext <<_ACEOF
44000 /* end confdefs.h. */
44001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44003 #define $ac_func innocuous_$ac_func
44004
44005 /* System header to define __stub macros and hopefully few prototypes,
44006 which can conflict with char $ac_func (); below.
44007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44008 <limits.h> exists even on freestanding compilers. */
44009
44010 #ifdef __STDC__
44011 # include <limits.h>
44012 #else
44013 # include <assert.h>
44014 #endif
44015
44016 #undef $ac_func
44017
44018 /* Override any gcc2 internal prototype to avoid an error. */
44019 #ifdef __cplusplus
44020 extern "C"
44021 {
44022 #endif
44023 /* We use char because int might match the return type of a gcc2
44024 builtin and then its argument prototype would still apply. */
44025 char $ac_func ();
44026 /* The GNU C library defines this for functions which it implements
44027 to always fail with ENOSYS. Some functions are actually named
44028 something starting with __ and the normal name is an alias. */
44029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44030 choke me
44031 #else
44032 char (*f) () = $ac_func;
44033 #endif
44034 #ifdef __cplusplus
44035 }
44036 #endif
44037
44038 int
44039 main ()
44040 {
44041 return f != $ac_func;
44042 ;
44043 return 0;
44044 }
44045 _ACEOF
44046 rm -f conftest.$ac_objext conftest$ac_exeext
44047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44048 (eval $ac_link) 2>conftest.er1
44049 ac_status=$?
44050 grep -v '^ *+' conftest.er1 >conftest.err
44051 rm -f conftest.er1
44052 cat conftest.err >&5
44053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44054 (exit $ac_status); } &&
44055 { ac_try='test -z "$ac_c_werror_flag"
44056 || test ! -s conftest.err'
44057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44058 (eval $ac_try) 2>&5
44059 ac_status=$?
44060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44061 (exit $ac_status); }; } &&
44062 { ac_try='test -s conftest$ac_exeext'
44063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44064 (eval $ac_try) 2>&5
44065 ac_status=$?
44066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44067 (exit $ac_status); }; }; then
44068 eval "$as_ac_var=yes"
44069 else
44070 echo "$as_me: failed program was:" >&5
44071 sed 's/^/| /' conftest.$ac_ext >&5
44072
44073 eval "$as_ac_var=no"
44074 fi
44075 rm -f conftest.err conftest.$ac_objext \
44076 conftest$ac_exeext conftest.$ac_ext
44077 fi
44078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44080 if test `eval echo '${'$as_ac_var'}'` = yes; then
44081 cat >>confdefs.h <<_ACEOF
44082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44083 _ACEOF
44084
44085 fi
44086 done
44087
44088 fi
44089 fi
44090
44091
44092
44093 echo "$as_me:$LINENO: checking for hypotl declaration" >&5
44094 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
44095 if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
44096 if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
44097 echo $ECHO_N "(cached) $ECHO_C" >&6
44098 else
44099
44100
44101
44102 ac_ext=cc
44103 ac_cpp='$CXXCPP $CPPFLAGS'
44104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44107
44108 cat >conftest.$ac_ext <<_ACEOF
44109 /* confdefs.h. */
44110 _ACEOF
44111 cat confdefs.h >>conftest.$ac_ext
44112 cat >>conftest.$ac_ext <<_ACEOF
44113 /* end confdefs.h. */
44114 #include <math.h>
44115 int
44116 main ()
44117 {
44118 hypotl(0, 0);
44119 ;
44120 return 0;
44121 }
44122 _ACEOF
44123 rm -f conftest.$ac_objext
44124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44125 (eval $ac_compile) 2>conftest.er1
44126 ac_status=$?
44127 grep -v '^ *+' conftest.er1 >conftest.err
44128 rm -f conftest.er1
44129 cat conftest.err >&5
44130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44131 (exit $ac_status); } &&
44132 { ac_try='test -z "$ac_cxx_werror_flag"
44133 || test ! -s conftest.err'
44134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44135 (eval $ac_try) 2>&5
44136 ac_status=$?
44137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44138 (exit $ac_status); }; } &&
44139 { ac_try='test -s conftest.$ac_objext'
44140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44141 (eval $ac_try) 2>&5
44142 ac_status=$?
44143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44144 (exit $ac_status); }; }; then
44145 glibcxx_cv_func_hypotl_use=yes
44146 else
44147 echo "$as_me: failed program was:" >&5
44148 sed 's/^/| /' conftest.$ac_ext >&5
44149
44150 glibcxx_cv_func_hypotl_use=no
44151 fi
44152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44153 ac_ext=c
44154 ac_cpp='$CPP $CPPFLAGS'
44155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44158
44159
44160 fi
44161
44162 fi
44163 echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
44164 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
44165
44166 if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
44167
44168 for ac_func in hypotl
44169 do
44170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44171 echo "$as_me:$LINENO: checking for $ac_func" >&5
44172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44173 if eval "test \"\${$as_ac_var+set}\" = set"; then
44174 echo $ECHO_N "(cached) $ECHO_C" >&6
44175 else
44176 if test x$gcc_no_link = xyes; then
44177 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44178 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44179 { (exit 1); exit 1; }; }
44180 fi
44181 cat >conftest.$ac_ext <<_ACEOF
44182 /* confdefs.h. */
44183 _ACEOF
44184 cat confdefs.h >>conftest.$ac_ext
44185 cat >>conftest.$ac_ext <<_ACEOF
44186 /* end confdefs.h. */
44187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44189 #define $ac_func innocuous_$ac_func
44190
44191 /* System header to define __stub macros and hopefully few prototypes,
44192 which can conflict with char $ac_func (); below.
44193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44194 <limits.h> exists even on freestanding compilers. */
44195
44196 #ifdef __STDC__
44197 # include <limits.h>
44198 #else
44199 # include <assert.h>
44200 #endif
44201
44202 #undef $ac_func
44203
44204 /* Override any gcc2 internal prototype to avoid an error. */
44205 #ifdef __cplusplus
44206 extern "C"
44207 {
44208 #endif
44209 /* We use char because int might match the return type of a gcc2
44210 builtin and then its argument prototype would still apply. */
44211 char $ac_func ();
44212 /* The GNU C library defines this for functions which it implements
44213 to always fail with ENOSYS. Some functions are actually named
44214 something starting with __ and the normal name is an alias. */
44215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44216 choke me
44217 #else
44218 char (*f) () = $ac_func;
44219 #endif
44220 #ifdef __cplusplus
44221 }
44222 #endif
44223
44224 int
44225 main ()
44226 {
44227 return f != $ac_func;
44228 ;
44229 return 0;
44230 }
44231 _ACEOF
44232 rm -f conftest.$ac_objext conftest$ac_exeext
44233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44234 (eval $ac_link) 2>conftest.er1
44235 ac_status=$?
44236 grep -v '^ *+' conftest.er1 >conftest.err
44237 rm -f conftest.er1
44238 cat conftest.err >&5
44239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44240 (exit $ac_status); } &&
44241 { ac_try='test -z "$ac_c_werror_flag"
44242 || test ! -s conftest.err'
44243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44244 (eval $ac_try) 2>&5
44245 ac_status=$?
44246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44247 (exit $ac_status); }; } &&
44248 { ac_try='test -s conftest$ac_exeext'
44249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44250 (eval $ac_try) 2>&5
44251 ac_status=$?
44252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44253 (exit $ac_status); }; }; then
44254 eval "$as_ac_var=yes"
44255 else
44256 echo "$as_me: failed program was:" >&5
44257 sed 's/^/| /' conftest.$ac_ext >&5
44258
44259 eval "$as_ac_var=no"
44260 fi
44261 rm -f conftest.err conftest.$ac_objext \
44262 conftest$ac_exeext conftest.$ac_ext
44263 fi
44264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44266 if test `eval echo '${'$as_ac_var'}'` = yes; then
44267 cat >>confdefs.h <<_ACEOF
44268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44269 _ACEOF
44270
44271 fi
44272 done
44273
44274 else
44275
44276 echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
44277 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
44278 if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
44279 if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
44280 echo $ECHO_N "(cached) $ECHO_C" >&6
44281 else
44282
44283
44284
44285 ac_ext=cc
44286 ac_cpp='$CXXCPP $CPPFLAGS'
44287 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44288 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44289 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44290
44291 cat >conftest.$ac_ext <<_ACEOF
44292 /* confdefs.h. */
44293 _ACEOF
44294 cat confdefs.h >>conftest.$ac_ext
44295 cat >>conftest.$ac_ext <<_ACEOF
44296 /* end confdefs.h. */
44297 #include <math.h>
44298 int
44299 main ()
44300 {
44301 _hypotl(0, 0);
44302 ;
44303 return 0;
44304 }
44305 _ACEOF
44306 rm -f conftest.$ac_objext
44307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44308 (eval $ac_compile) 2>conftest.er1
44309 ac_status=$?
44310 grep -v '^ *+' conftest.er1 >conftest.err
44311 rm -f conftest.er1
44312 cat conftest.err >&5
44313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44314 (exit $ac_status); } &&
44315 { ac_try='test -z "$ac_cxx_werror_flag"
44316 || test ! -s conftest.err'
44317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44318 (eval $ac_try) 2>&5
44319 ac_status=$?
44320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44321 (exit $ac_status); }; } &&
44322 { ac_try='test -s conftest.$ac_objext'
44323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44324 (eval $ac_try) 2>&5
44325 ac_status=$?
44326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44327 (exit $ac_status); }; }; then
44328 glibcxx_cv_func__hypotl_use=yes
44329 else
44330 echo "$as_me: failed program was:" >&5
44331 sed 's/^/| /' conftest.$ac_ext >&5
44332
44333 glibcxx_cv_func__hypotl_use=no
44334 fi
44335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44336 ac_ext=c
44337 ac_cpp='$CPP $CPPFLAGS'
44338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44341
44342
44343 fi
44344
44345 fi
44346 echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
44347 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
44348
44349 if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
44350
44351 for ac_func in _hypotl
44352 do
44353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44354 echo "$as_me:$LINENO: checking for $ac_func" >&5
44355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44356 if eval "test \"\${$as_ac_var+set}\" = set"; then
44357 echo $ECHO_N "(cached) $ECHO_C" >&6
44358 else
44359 if test x$gcc_no_link = xyes; then
44360 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44362 { (exit 1); exit 1; }; }
44363 fi
44364 cat >conftest.$ac_ext <<_ACEOF
44365 /* confdefs.h. */
44366 _ACEOF
44367 cat confdefs.h >>conftest.$ac_ext
44368 cat >>conftest.$ac_ext <<_ACEOF
44369 /* end confdefs.h. */
44370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44372 #define $ac_func innocuous_$ac_func
44373
44374 /* System header to define __stub macros and hopefully few prototypes,
44375 which can conflict with char $ac_func (); below.
44376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44377 <limits.h> exists even on freestanding compilers. */
44378
44379 #ifdef __STDC__
44380 # include <limits.h>
44381 #else
44382 # include <assert.h>
44383 #endif
44384
44385 #undef $ac_func
44386
44387 /* Override any gcc2 internal prototype to avoid an error. */
44388 #ifdef __cplusplus
44389 extern "C"
44390 {
44391 #endif
44392 /* We use char because int might match the return type of a gcc2
44393 builtin and then its argument prototype would still apply. */
44394 char $ac_func ();
44395 /* The GNU C library defines this for functions which it implements
44396 to always fail with ENOSYS. Some functions are actually named
44397 something starting with __ and the normal name is an alias. */
44398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44399 choke me
44400 #else
44401 char (*f) () = $ac_func;
44402 #endif
44403 #ifdef __cplusplus
44404 }
44405 #endif
44406
44407 int
44408 main ()
44409 {
44410 return f != $ac_func;
44411 ;
44412 return 0;
44413 }
44414 _ACEOF
44415 rm -f conftest.$ac_objext conftest$ac_exeext
44416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44417 (eval $ac_link) 2>conftest.er1
44418 ac_status=$?
44419 grep -v '^ *+' conftest.er1 >conftest.err
44420 rm -f conftest.er1
44421 cat conftest.err >&5
44422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44423 (exit $ac_status); } &&
44424 { ac_try='test -z "$ac_c_werror_flag"
44425 || test ! -s conftest.err'
44426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44427 (eval $ac_try) 2>&5
44428 ac_status=$?
44429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44430 (exit $ac_status); }; } &&
44431 { ac_try='test -s conftest$ac_exeext'
44432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44433 (eval $ac_try) 2>&5
44434 ac_status=$?
44435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44436 (exit $ac_status); }; }; then
44437 eval "$as_ac_var=yes"
44438 else
44439 echo "$as_me: failed program was:" >&5
44440 sed 's/^/| /' conftest.$ac_ext >&5
44441
44442 eval "$as_ac_var=no"
44443 fi
44444 rm -f conftest.err conftest.$ac_objext \
44445 conftest$ac_exeext conftest.$ac_ext
44446 fi
44447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44449 if test `eval echo '${'$as_ac_var'}'` = yes; then
44450 cat >>confdefs.h <<_ACEOF
44451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44452 _ACEOF
44453
44454 fi
44455 done
44456
44457 fi
44458 fi
44459
44460
44461
44462 echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
44463 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
44464 if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
44465 if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
44466 echo $ECHO_N "(cached) $ECHO_C" >&6
44467 else
44468
44469
44470
44471 ac_ext=cc
44472 ac_cpp='$CXXCPP $CPPFLAGS'
44473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44476
44477 cat >conftest.$ac_ext <<_ACEOF
44478 /* confdefs.h. */
44479 _ACEOF
44480 cat confdefs.h >>conftest.$ac_ext
44481 cat >>conftest.$ac_ext <<_ACEOF
44482 /* end confdefs.h. */
44483 #include <math.h>
44484 int
44485 main ()
44486 {
44487 ldexpl(0, 0);
44488 ;
44489 return 0;
44490 }
44491 _ACEOF
44492 rm -f conftest.$ac_objext
44493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44494 (eval $ac_compile) 2>conftest.er1
44495 ac_status=$?
44496 grep -v '^ *+' conftest.er1 >conftest.err
44497 rm -f conftest.er1
44498 cat conftest.err >&5
44499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44500 (exit $ac_status); } &&
44501 { ac_try='test -z "$ac_cxx_werror_flag"
44502 || test ! -s conftest.err'
44503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44504 (eval $ac_try) 2>&5
44505 ac_status=$?
44506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44507 (exit $ac_status); }; } &&
44508 { ac_try='test -s conftest.$ac_objext'
44509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44510 (eval $ac_try) 2>&5
44511 ac_status=$?
44512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44513 (exit $ac_status); }; }; then
44514 glibcxx_cv_func_ldexpl_use=yes
44515 else
44516 echo "$as_me: failed program was:" >&5
44517 sed 's/^/| /' conftest.$ac_ext >&5
44518
44519 glibcxx_cv_func_ldexpl_use=no
44520 fi
44521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44522 ac_ext=c
44523 ac_cpp='$CPP $CPPFLAGS'
44524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44527
44528
44529 fi
44530
44531 fi
44532 echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
44533 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
44534
44535 if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
44536
44537 for ac_func in ldexpl
44538 do
44539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44540 echo "$as_me:$LINENO: checking for $ac_func" >&5
44541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44542 if eval "test \"\${$as_ac_var+set}\" = set"; then
44543 echo $ECHO_N "(cached) $ECHO_C" >&6
44544 else
44545 if test x$gcc_no_link = xyes; then
44546 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44547 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44548 { (exit 1); exit 1; }; }
44549 fi
44550 cat >conftest.$ac_ext <<_ACEOF
44551 /* confdefs.h. */
44552 _ACEOF
44553 cat confdefs.h >>conftest.$ac_ext
44554 cat >>conftest.$ac_ext <<_ACEOF
44555 /* end confdefs.h. */
44556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44558 #define $ac_func innocuous_$ac_func
44559
44560 /* System header to define __stub macros and hopefully few prototypes,
44561 which can conflict with char $ac_func (); below.
44562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44563 <limits.h> exists even on freestanding compilers. */
44564
44565 #ifdef __STDC__
44566 # include <limits.h>
44567 #else
44568 # include <assert.h>
44569 #endif
44570
44571 #undef $ac_func
44572
44573 /* Override any gcc2 internal prototype to avoid an error. */
44574 #ifdef __cplusplus
44575 extern "C"
44576 {
44577 #endif
44578 /* We use char because int might match the return type of a gcc2
44579 builtin and then its argument prototype would still apply. */
44580 char $ac_func ();
44581 /* The GNU C library defines this for functions which it implements
44582 to always fail with ENOSYS. Some functions are actually named
44583 something starting with __ and the normal name is an alias. */
44584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44585 choke me
44586 #else
44587 char (*f) () = $ac_func;
44588 #endif
44589 #ifdef __cplusplus
44590 }
44591 #endif
44592
44593 int
44594 main ()
44595 {
44596 return f != $ac_func;
44597 ;
44598 return 0;
44599 }
44600 _ACEOF
44601 rm -f conftest.$ac_objext conftest$ac_exeext
44602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44603 (eval $ac_link) 2>conftest.er1
44604 ac_status=$?
44605 grep -v '^ *+' conftest.er1 >conftest.err
44606 rm -f conftest.er1
44607 cat conftest.err >&5
44608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44609 (exit $ac_status); } &&
44610 { ac_try='test -z "$ac_c_werror_flag"
44611 || test ! -s conftest.err'
44612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44613 (eval $ac_try) 2>&5
44614 ac_status=$?
44615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44616 (exit $ac_status); }; } &&
44617 { ac_try='test -s conftest$ac_exeext'
44618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44619 (eval $ac_try) 2>&5
44620 ac_status=$?
44621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44622 (exit $ac_status); }; }; then
44623 eval "$as_ac_var=yes"
44624 else
44625 echo "$as_me: failed program was:" >&5
44626 sed 's/^/| /' conftest.$ac_ext >&5
44627
44628 eval "$as_ac_var=no"
44629 fi
44630 rm -f conftest.err conftest.$ac_objext \
44631 conftest$ac_exeext conftest.$ac_ext
44632 fi
44633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44635 if test `eval echo '${'$as_ac_var'}'` = yes; then
44636 cat >>confdefs.h <<_ACEOF
44637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44638 _ACEOF
44639
44640 fi
44641 done
44642
44643 else
44644
44645 echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
44646 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
44647 if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
44648 if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
44649 echo $ECHO_N "(cached) $ECHO_C" >&6
44650 else
44651
44652
44653
44654 ac_ext=cc
44655 ac_cpp='$CXXCPP $CPPFLAGS'
44656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44659
44660 cat >conftest.$ac_ext <<_ACEOF
44661 /* confdefs.h. */
44662 _ACEOF
44663 cat confdefs.h >>conftest.$ac_ext
44664 cat >>conftest.$ac_ext <<_ACEOF
44665 /* end confdefs.h. */
44666 #include <math.h>
44667 int
44668 main ()
44669 {
44670 _ldexpl(0, 0);
44671 ;
44672 return 0;
44673 }
44674 _ACEOF
44675 rm -f conftest.$ac_objext
44676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44677 (eval $ac_compile) 2>conftest.er1
44678 ac_status=$?
44679 grep -v '^ *+' conftest.er1 >conftest.err
44680 rm -f conftest.er1
44681 cat conftest.err >&5
44682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44683 (exit $ac_status); } &&
44684 { ac_try='test -z "$ac_cxx_werror_flag"
44685 || test ! -s conftest.err'
44686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44687 (eval $ac_try) 2>&5
44688 ac_status=$?
44689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44690 (exit $ac_status); }; } &&
44691 { ac_try='test -s conftest.$ac_objext'
44692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44693 (eval $ac_try) 2>&5
44694 ac_status=$?
44695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44696 (exit $ac_status); }; }; then
44697 glibcxx_cv_func__ldexpl_use=yes
44698 else
44699 echo "$as_me: failed program was:" >&5
44700 sed 's/^/| /' conftest.$ac_ext >&5
44701
44702 glibcxx_cv_func__ldexpl_use=no
44703 fi
44704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44705 ac_ext=c
44706 ac_cpp='$CPP $CPPFLAGS'
44707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44710
44711
44712 fi
44713
44714 fi
44715 echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
44716 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
44717
44718 if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
44719
44720 for ac_func in _ldexpl
44721 do
44722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44723 echo "$as_me:$LINENO: checking for $ac_func" >&5
44724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44725 if eval "test \"\${$as_ac_var+set}\" = set"; then
44726 echo $ECHO_N "(cached) $ECHO_C" >&6
44727 else
44728 if test x$gcc_no_link = xyes; then
44729 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44730 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44731 { (exit 1); exit 1; }; }
44732 fi
44733 cat >conftest.$ac_ext <<_ACEOF
44734 /* confdefs.h. */
44735 _ACEOF
44736 cat confdefs.h >>conftest.$ac_ext
44737 cat >>conftest.$ac_ext <<_ACEOF
44738 /* end confdefs.h. */
44739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44741 #define $ac_func innocuous_$ac_func
44742
44743 /* System header to define __stub macros and hopefully few prototypes,
44744 which can conflict with char $ac_func (); below.
44745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44746 <limits.h> exists even on freestanding compilers. */
44747
44748 #ifdef __STDC__
44749 # include <limits.h>
44750 #else
44751 # include <assert.h>
44752 #endif
44753
44754 #undef $ac_func
44755
44756 /* Override any gcc2 internal prototype to avoid an error. */
44757 #ifdef __cplusplus
44758 extern "C"
44759 {
44760 #endif
44761 /* We use char because int might match the return type of a gcc2
44762 builtin and then its argument prototype would still apply. */
44763 char $ac_func ();
44764 /* The GNU C library defines this for functions which it implements
44765 to always fail with ENOSYS. Some functions are actually named
44766 something starting with __ and the normal name is an alias. */
44767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44768 choke me
44769 #else
44770 char (*f) () = $ac_func;
44771 #endif
44772 #ifdef __cplusplus
44773 }
44774 #endif
44775
44776 int
44777 main ()
44778 {
44779 return f != $ac_func;
44780 ;
44781 return 0;
44782 }
44783 _ACEOF
44784 rm -f conftest.$ac_objext conftest$ac_exeext
44785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44786 (eval $ac_link) 2>conftest.er1
44787 ac_status=$?
44788 grep -v '^ *+' conftest.er1 >conftest.err
44789 rm -f conftest.er1
44790 cat conftest.err >&5
44791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44792 (exit $ac_status); } &&
44793 { ac_try='test -z "$ac_c_werror_flag"
44794 || test ! -s conftest.err'
44795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44796 (eval $ac_try) 2>&5
44797 ac_status=$?
44798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44799 (exit $ac_status); }; } &&
44800 { ac_try='test -s conftest$ac_exeext'
44801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44802 (eval $ac_try) 2>&5
44803 ac_status=$?
44804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44805 (exit $ac_status); }; }; then
44806 eval "$as_ac_var=yes"
44807 else
44808 echo "$as_me: failed program was:" >&5
44809 sed 's/^/| /' conftest.$ac_ext >&5
44810
44811 eval "$as_ac_var=no"
44812 fi
44813 rm -f conftest.err conftest.$ac_objext \
44814 conftest$ac_exeext conftest.$ac_ext
44815 fi
44816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44818 if test `eval echo '${'$as_ac_var'}'` = yes; then
44819 cat >>confdefs.h <<_ACEOF
44820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44821 _ACEOF
44822
44823 fi
44824 done
44825
44826 fi
44827 fi
44828
44829
44830
44831 echo "$as_me:$LINENO: checking for logl declaration" >&5
44832 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
44833 if test x${glibcxx_cv_func_logl_use+set} != xset; then
44834 if test "${glibcxx_cv_func_logl_use+set}" = set; then
44835 echo $ECHO_N "(cached) $ECHO_C" >&6
44836 else
44837
44838
44839
44840 ac_ext=cc
44841 ac_cpp='$CXXCPP $CPPFLAGS'
44842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44845
44846 cat >conftest.$ac_ext <<_ACEOF
44847 /* confdefs.h. */
44848 _ACEOF
44849 cat confdefs.h >>conftest.$ac_ext
44850 cat >>conftest.$ac_ext <<_ACEOF
44851 /* end confdefs.h. */
44852 #include <math.h>
44853 #ifdef HAVE_IEEEFP_H
44854 #include <ieeefp.h>
44855 #endif
44856
44857 int
44858 main ()
44859 {
44860 logl(0);
44861 ;
44862 return 0;
44863 }
44864 _ACEOF
44865 rm -f conftest.$ac_objext
44866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44867 (eval $ac_compile) 2>conftest.er1
44868 ac_status=$?
44869 grep -v '^ *+' conftest.er1 >conftest.err
44870 rm -f conftest.er1
44871 cat conftest.err >&5
44872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44873 (exit $ac_status); } &&
44874 { ac_try='test -z "$ac_cxx_werror_flag"
44875 || test ! -s conftest.err'
44876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44877 (eval $ac_try) 2>&5
44878 ac_status=$?
44879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44880 (exit $ac_status); }; } &&
44881 { ac_try='test -s conftest.$ac_objext'
44882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44883 (eval $ac_try) 2>&5
44884 ac_status=$?
44885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44886 (exit $ac_status); }; }; then
44887 glibcxx_cv_func_logl_use=yes
44888 else
44889 echo "$as_me: failed program was:" >&5
44890 sed 's/^/| /' conftest.$ac_ext >&5
44891
44892 glibcxx_cv_func_logl_use=no
44893 fi
44894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44895 ac_ext=c
44896 ac_cpp='$CPP $CPPFLAGS'
44897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44900
44901
44902 fi
44903
44904 fi
44905 echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
44906 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
44907
44908 if test x$glibcxx_cv_func_logl_use = x"yes"; then
44909
44910 for ac_func in logl
44911 do
44912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44913 echo "$as_me:$LINENO: checking for $ac_func" >&5
44914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44915 if eval "test \"\${$as_ac_var+set}\" = set"; then
44916 echo $ECHO_N "(cached) $ECHO_C" >&6
44917 else
44918 if test x$gcc_no_link = xyes; then
44919 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44920 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44921 { (exit 1); exit 1; }; }
44922 fi
44923 cat >conftest.$ac_ext <<_ACEOF
44924 /* confdefs.h. */
44925 _ACEOF
44926 cat confdefs.h >>conftest.$ac_ext
44927 cat >>conftest.$ac_ext <<_ACEOF
44928 /* end confdefs.h. */
44929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44931 #define $ac_func innocuous_$ac_func
44932
44933 /* System header to define __stub macros and hopefully few prototypes,
44934 which can conflict with char $ac_func (); below.
44935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44936 <limits.h> exists even on freestanding compilers. */
44937
44938 #ifdef __STDC__
44939 # include <limits.h>
44940 #else
44941 # include <assert.h>
44942 #endif
44943
44944 #undef $ac_func
44945
44946 /* Override any gcc2 internal prototype to avoid an error. */
44947 #ifdef __cplusplus
44948 extern "C"
44949 {
44950 #endif
44951 /* We use char because int might match the return type of a gcc2
44952 builtin and then its argument prototype would still apply. */
44953 char $ac_func ();
44954 /* The GNU C library defines this for functions which it implements
44955 to always fail with ENOSYS. Some functions are actually named
44956 something starting with __ and the normal name is an alias. */
44957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44958 choke me
44959 #else
44960 char (*f) () = $ac_func;
44961 #endif
44962 #ifdef __cplusplus
44963 }
44964 #endif
44965
44966 int
44967 main ()
44968 {
44969 return f != $ac_func;
44970 ;
44971 return 0;
44972 }
44973 _ACEOF
44974 rm -f conftest.$ac_objext conftest$ac_exeext
44975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44976 (eval $ac_link) 2>conftest.er1
44977 ac_status=$?
44978 grep -v '^ *+' conftest.er1 >conftest.err
44979 rm -f conftest.er1
44980 cat conftest.err >&5
44981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44982 (exit $ac_status); } &&
44983 { ac_try='test -z "$ac_c_werror_flag"
44984 || test ! -s conftest.err'
44985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44986 (eval $ac_try) 2>&5
44987 ac_status=$?
44988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44989 (exit $ac_status); }; } &&
44990 { ac_try='test -s conftest$ac_exeext'
44991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44992 (eval $ac_try) 2>&5
44993 ac_status=$?
44994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44995 (exit $ac_status); }; }; then
44996 eval "$as_ac_var=yes"
44997 else
44998 echo "$as_me: failed program was:" >&5
44999 sed 's/^/| /' conftest.$ac_ext >&5
45000
45001 eval "$as_ac_var=no"
45002 fi
45003 rm -f conftest.err conftest.$ac_objext \
45004 conftest$ac_exeext conftest.$ac_ext
45005 fi
45006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45008 if test `eval echo '${'$as_ac_var'}'` = yes; then
45009 cat >>confdefs.h <<_ACEOF
45010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45011 _ACEOF
45012
45013 fi
45014 done
45015
45016 else
45017
45018 echo "$as_me:$LINENO: checking for _logl declaration" >&5
45019 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
45020 if test x${glibcxx_cv_func__logl_use+set} != xset; then
45021 if test "${glibcxx_cv_func__logl_use+set}" = set; then
45022 echo $ECHO_N "(cached) $ECHO_C" >&6
45023 else
45024
45025
45026
45027 ac_ext=cc
45028 ac_cpp='$CXXCPP $CPPFLAGS'
45029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45032
45033 cat >conftest.$ac_ext <<_ACEOF
45034 /* confdefs.h. */
45035 _ACEOF
45036 cat confdefs.h >>conftest.$ac_ext
45037 cat >>conftest.$ac_ext <<_ACEOF
45038 /* end confdefs.h. */
45039 #include <math.h>
45040 #ifdef HAVE_IEEEFP_H
45041 #include <ieeefp.h>
45042 #endif
45043
45044 int
45045 main ()
45046 {
45047 _logl(0);
45048 ;
45049 return 0;
45050 }
45051 _ACEOF
45052 rm -f conftest.$ac_objext
45053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45054 (eval $ac_compile) 2>conftest.er1
45055 ac_status=$?
45056 grep -v '^ *+' conftest.er1 >conftest.err
45057 rm -f conftest.er1
45058 cat conftest.err >&5
45059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45060 (exit $ac_status); } &&
45061 { ac_try='test -z "$ac_cxx_werror_flag"
45062 || test ! -s conftest.err'
45063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45064 (eval $ac_try) 2>&5
45065 ac_status=$?
45066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45067 (exit $ac_status); }; } &&
45068 { ac_try='test -s conftest.$ac_objext'
45069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45070 (eval $ac_try) 2>&5
45071 ac_status=$?
45072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45073 (exit $ac_status); }; }; then
45074 glibcxx_cv_func__logl_use=yes
45075 else
45076 echo "$as_me: failed program was:" >&5
45077 sed 's/^/| /' conftest.$ac_ext >&5
45078
45079 glibcxx_cv_func__logl_use=no
45080 fi
45081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45082 ac_ext=c
45083 ac_cpp='$CPP $CPPFLAGS'
45084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45087
45088
45089 fi
45090
45091 fi
45092 echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
45093 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
45094
45095 if test x$glibcxx_cv_func__logl_use = x"yes"; then
45096
45097 for ac_func in _logl
45098 do
45099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45100 echo "$as_me:$LINENO: checking for $ac_func" >&5
45101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45102 if eval "test \"\${$as_ac_var+set}\" = set"; then
45103 echo $ECHO_N "(cached) $ECHO_C" >&6
45104 else
45105 if test x$gcc_no_link = xyes; then
45106 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45107 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45108 { (exit 1); exit 1; }; }
45109 fi
45110 cat >conftest.$ac_ext <<_ACEOF
45111 /* confdefs.h. */
45112 _ACEOF
45113 cat confdefs.h >>conftest.$ac_ext
45114 cat >>conftest.$ac_ext <<_ACEOF
45115 /* end confdefs.h. */
45116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45118 #define $ac_func innocuous_$ac_func
45119
45120 /* System header to define __stub macros and hopefully few prototypes,
45121 which can conflict with char $ac_func (); below.
45122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45123 <limits.h> exists even on freestanding compilers. */
45124
45125 #ifdef __STDC__
45126 # include <limits.h>
45127 #else
45128 # include <assert.h>
45129 #endif
45130
45131 #undef $ac_func
45132
45133 /* Override any gcc2 internal prototype to avoid an error. */
45134 #ifdef __cplusplus
45135 extern "C"
45136 {
45137 #endif
45138 /* We use char because int might match the return type of a gcc2
45139 builtin and then its argument prototype would still apply. */
45140 char $ac_func ();
45141 /* The GNU C library defines this for functions which it implements
45142 to always fail with ENOSYS. Some functions are actually named
45143 something starting with __ and the normal name is an alias. */
45144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45145 choke me
45146 #else
45147 char (*f) () = $ac_func;
45148 #endif
45149 #ifdef __cplusplus
45150 }
45151 #endif
45152
45153 int
45154 main ()
45155 {
45156 return f != $ac_func;
45157 ;
45158 return 0;
45159 }
45160 _ACEOF
45161 rm -f conftest.$ac_objext conftest$ac_exeext
45162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45163 (eval $ac_link) 2>conftest.er1
45164 ac_status=$?
45165 grep -v '^ *+' conftest.er1 >conftest.err
45166 rm -f conftest.er1
45167 cat conftest.err >&5
45168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45169 (exit $ac_status); } &&
45170 { ac_try='test -z "$ac_c_werror_flag"
45171 || test ! -s conftest.err'
45172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45173 (eval $ac_try) 2>&5
45174 ac_status=$?
45175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45176 (exit $ac_status); }; } &&
45177 { ac_try='test -s conftest$ac_exeext'
45178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45179 (eval $ac_try) 2>&5
45180 ac_status=$?
45181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45182 (exit $ac_status); }; }; then
45183 eval "$as_ac_var=yes"
45184 else
45185 echo "$as_me: failed program was:" >&5
45186 sed 's/^/| /' conftest.$ac_ext >&5
45187
45188 eval "$as_ac_var=no"
45189 fi
45190 rm -f conftest.err conftest.$ac_objext \
45191 conftest$ac_exeext conftest.$ac_ext
45192 fi
45193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45195 if test `eval echo '${'$as_ac_var'}'` = yes; then
45196 cat >>confdefs.h <<_ACEOF
45197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45198 _ACEOF
45199
45200 fi
45201 done
45202
45203 fi
45204 fi
45205
45206
45207
45208 echo "$as_me:$LINENO: checking for log10l declaration" >&5
45209 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
45210 if test x${glibcxx_cv_func_log10l_use+set} != xset; then
45211 if test "${glibcxx_cv_func_log10l_use+set}" = set; then
45212 echo $ECHO_N "(cached) $ECHO_C" >&6
45213 else
45214
45215
45216
45217 ac_ext=cc
45218 ac_cpp='$CXXCPP $CPPFLAGS'
45219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45222
45223 cat >conftest.$ac_ext <<_ACEOF
45224 /* confdefs.h. */
45225 _ACEOF
45226 cat confdefs.h >>conftest.$ac_ext
45227 cat >>conftest.$ac_ext <<_ACEOF
45228 /* end confdefs.h. */
45229 #include <math.h>
45230 #ifdef HAVE_IEEEFP_H
45231 #include <ieeefp.h>
45232 #endif
45233
45234 int
45235 main ()
45236 {
45237 log10l(0);
45238 ;
45239 return 0;
45240 }
45241 _ACEOF
45242 rm -f conftest.$ac_objext
45243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45244 (eval $ac_compile) 2>conftest.er1
45245 ac_status=$?
45246 grep -v '^ *+' conftest.er1 >conftest.err
45247 rm -f conftest.er1
45248 cat conftest.err >&5
45249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45250 (exit $ac_status); } &&
45251 { ac_try='test -z "$ac_cxx_werror_flag"
45252 || test ! -s conftest.err'
45253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45254 (eval $ac_try) 2>&5
45255 ac_status=$?
45256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45257 (exit $ac_status); }; } &&
45258 { ac_try='test -s conftest.$ac_objext'
45259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45260 (eval $ac_try) 2>&5
45261 ac_status=$?
45262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45263 (exit $ac_status); }; }; then
45264 glibcxx_cv_func_log10l_use=yes
45265 else
45266 echo "$as_me: failed program was:" >&5
45267 sed 's/^/| /' conftest.$ac_ext >&5
45268
45269 glibcxx_cv_func_log10l_use=no
45270 fi
45271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45272 ac_ext=c
45273 ac_cpp='$CPP $CPPFLAGS'
45274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45277
45278
45279 fi
45280
45281 fi
45282 echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
45283 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
45284
45285 if test x$glibcxx_cv_func_log10l_use = x"yes"; then
45286
45287 for ac_func in log10l
45288 do
45289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45290 echo "$as_me:$LINENO: checking for $ac_func" >&5
45291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45292 if eval "test \"\${$as_ac_var+set}\" = set"; then
45293 echo $ECHO_N "(cached) $ECHO_C" >&6
45294 else
45295 if test x$gcc_no_link = xyes; then
45296 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45297 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45298 { (exit 1); exit 1; }; }
45299 fi
45300 cat >conftest.$ac_ext <<_ACEOF
45301 /* confdefs.h. */
45302 _ACEOF
45303 cat confdefs.h >>conftest.$ac_ext
45304 cat >>conftest.$ac_ext <<_ACEOF
45305 /* end confdefs.h. */
45306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45308 #define $ac_func innocuous_$ac_func
45309
45310 /* System header to define __stub macros and hopefully few prototypes,
45311 which can conflict with char $ac_func (); below.
45312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45313 <limits.h> exists even on freestanding compilers. */
45314
45315 #ifdef __STDC__
45316 # include <limits.h>
45317 #else
45318 # include <assert.h>
45319 #endif
45320
45321 #undef $ac_func
45322
45323 /* Override any gcc2 internal prototype to avoid an error. */
45324 #ifdef __cplusplus
45325 extern "C"
45326 {
45327 #endif
45328 /* We use char because int might match the return type of a gcc2
45329 builtin and then its argument prototype would still apply. */
45330 char $ac_func ();
45331 /* The GNU C library defines this for functions which it implements
45332 to always fail with ENOSYS. Some functions are actually named
45333 something starting with __ and the normal name is an alias. */
45334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45335 choke me
45336 #else
45337 char (*f) () = $ac_func;
45338 #endif
45339 #ifdef __cplusplus
45340 }
45341 #endif
45342
45343 int
45344 main ()
45345 {
45346 return f != $ac_func;
45347 ;
45348 return 0;
45349 }
45350 _ACEOF
45351 rm -f conftest.$ac_objext conftest$ac_exeext
45352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45353 (eval $ac_link) 2>conftest.er1
45354 ac_status=$?
45355 grep -v '^ *+' conftest.er1 >conftest.err
45356 rm -f conftest.er1
45357 cat conftest.err >&5
45358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45359 (exit $ac_status); } &&
45360 { ac_try='test -z "$ac_c_werror_flag"
45361 || test ! -s conftest.err'
45362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45363 (eval $ac_try) 2>&5
45364 ac_status=$?
45365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45366 (exit $ac_status); }; } &&
45367 { ac_try='test -s conftest$ac_exeext'
45368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45369 (eval $ac_try) 2>&5
45370 ac_status=$?
45371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45372 (exit $ac_status); }; }; then
45373 eval "$as_ac_var=yes"
45374 else
45375 echo "$as_me: failed program was:" >&5
45376 sed 's/^/| /' conftest.$ac_ext >&5
45377
45378 eval "$as_ac_var=no"
45379 fi
45380 rm -f conftest.err conftest.$ac_objext \
45381 conftest$ac_exeext conftest.$ac_ext
45382 fi
45383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45385 if test `eval echo '${'$as_ac_var'}'` = yes; then
45386 cat >>confdefs.h <<_ACEOF
45387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45388 _ACEOF
45389
45390 fi
45391 done
45392
45393 else
45394
45395 echo "$as_me:$LINENO: checking for _log10l declaration" >&5
45396 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
45397 if test x${glibcxx_cv_func__log10l_use+set} != xset; then
45398 if test "${glibcxx_cv_func__log10l_use+set}" = set; then
45399 echo $ECHO_N "(cached) $ECHO_C" >&6
45400 else
45401
45402
45403
45404 ac_ext=cc
45405 ac_cpp='$CXXCPP $CPPFLAGS'
45406 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45407 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45408 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45409
45410 cat >conftest.$ac_ext <<_ACEOF
45411 /* confdefs.h. */
45412 _ACEOF
45413 cat confdefs.h >>conftest.$ac_ext
45414 cat >>conftest.$ac_ext <<_ACEOF
45415 /* end confdefs.h. */
45416 #include <math.h>
45417 #ifdef HAVE_IEEEFP_H
45418 #include <ieeefp.h>
45419 #endif
45420
45421 int
45422 main ()
45423 {
45424 _log10l(0);
45425 ;
45426 return 0;
45427 }
45428 _ACEOF
45429 rm -f conftest.$ac_objext
45430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45431 (eval $ac_compile) 2>conftest.er1
45432 ac_status=$?
45433 grep -v '^ *+' conftest.er1 >conftest.err
45434 rm -f conftest.er1
45435 cat conftest.err >&5
45436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45437 (exit $ac_status); } &&
45438 { ac_try='test -z "$ac_cxx_werror_flag"
45439 || test ! -s conftest.err'
45440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45441 (eval $ac_try) 2>&5
45442 ac_status=$?
45443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45444 (exit $ac_status); }; } &&
45445 { ac_try='test -s conftest.$ac_objext'
45446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45447 (eval $ac_try) 2>&5
45448 ac_status=$?
45449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45450 (exit $ac_status); }; }; then
45451 glibcxx_cv_func__log10l_use=yes
45452 else
45453 echo "$as_me: failed program was:" >&5
45454 sed 's/^/| /' conftest.$ac_ext >&5
45455
45456 glibcxx_cv_func__log10l_use=no
45457 fi
45458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45459 ac_ext=c
45460 ac_cpp='$CPP $CPPFLAGS'
45461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45464
45465
45466 fi
45467
45468 fi
45469 echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
45470 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
45471
45472 if test x$glibcxx_cv_func__log10l_use = x"yes"; then
45473
45474 for ac_func in _log10l
45475 do
45476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45477 echo "$as_me:$LINENO: checking for $ac_func" >&5
45478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45479 if eval "test \"\${$as_ac_var+set}\" = set"; then
45480 echo $ECHO_N "(cached) $ECHO_C" >&6
45481 else
45482 if test x$gcc_no_link = xyes; then
45483 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45484 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45485 { (exit 1); exit 1; }; }
45486 fi
45487 cat >conftest.$ac_ext <<_ACEOF
45488 /* confdefs.h. */
45489 _ACEOF
45490 cat confdefs.h >>conftest.$ac_ext
45491 cat >>conftest.$ac_ext <<_ACEOF
45492 /* end confdefs.h. */
45493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45495 #define $ac_func innocuous_$ac_func
45496
45497 /* System header to define __stub macros and hopefully few prototypes,
45498 which can conflict with char $ac_func (); below.
45499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45500 <limits.h> exists even on freestanding compilers. */
45501
45502 #ifdef __STDC__
45503 # include <limits.h>
45504 #else
45505 # include <assert.h>
45506 #endif
45507
45508 #undef $ac_func
45509
45510 /* Override any gcc2 internal prototype to avoid an error. */
45511 #ifdef __cplusplus
45512 extern "C"
45513 {
45514 #endif
45515 /* We use char because int might match the return type of a gcc2
45516 builtin and then its argument prototype would still apply. */
45517 char $ac_func ();
45518 /* The GNU C library defines this for functions which it implements
45519 to always fail with ENOSYS. Some functions are actually named
45520 something starting with __ and the normal name is an alias. */
45521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45522 choke me
45523 #else
45524 char (*f) () = $ac_func;
45525 #endif
45526 #ifdef __cplusplus
45527 }
45528 #endif
45529
45530 int
45531 main ()
45532 {
45533 return f != $ac_func;
45534 ;
45535 return 0;
45536 }
45537 _ACEOF
45538 rm -f conftest.$ac_objext conftest$ac_exeext
45539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45540 (eval $ac_link) 2>conftest.er1
45541 ac_status=$?
45542 grep -v '^ *+' conftest.er1 >conftest.err
45543 rm -f conftest.er1
45544 cat conftest.err >&5
45545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45546 (exit $ac_status); } &&
45547 { ac_try='test -z "$ac_c_werror_flag"
45548 || test ! -s conftest.err'
45549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45550 (eval $ac_try) 2>&5
45551 ac_status=$?
45552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45553 (exit $ac_status); }; } &&
45554 { ac_try='test -s conftest$ac_exeext'
45555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45556 (eval $ac_try) 2>&5
45557 ac_status=$?
45558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45559 (exit $ac_status); }; }; then
45560 eval "$as_ac_var=yes"
45561 else
45562 echo "$as_me: failed program was:" >&5
45563 sed 's/^/| /' conftest.$ac_ext >&5
45564
45565 eval "$as_ac_var=no"
45566 fi
45567 rm -f conftest.err conftest.$ac_objext \
45568 conftest$ac_exeext conftest.$ac_ext
45569 fi
45570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45572 if test `eval echo '${'$as_ac_var'}'` = yes; then
45573 cat >>confdefs.h <<_ACEOF
45574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45575 _ACEOF
45576
45577 fi
45578 done
45579
45580 fi
45581 fi
45582
45583
45584
45585 echo "$as_me:$LINENO: checking for modfl declaration" >&5
45586 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
45587 if test x${glibcxx_cv_func_modfl_use+set} != xset; then
45588 if test "${glibcxx_cv_func_modfl_use+set}" = set; then
45589 echo $ECHO_N "(cached) $ECHO_C" >&6
45590 else
45591
45592
45593
45594 ac_ext=cc
45595 ac_cpp='$CXXCPP $CPPFLAGS'
45596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45599
45600 cat >conftest.$ac_ext <<_ACEOF
45601 /* confdefs.h. */
45602 _ACEOF
45603 cat confdefs.h >>conftest.$ac_ext
45604 cat >>conftest.$ac_ext <<_ACEOF
45605 /* end confdefs.h. */
45606 #include <math.h>
45607 int
45608 main ()
45609 {
45610 modfl(0, 0);
45611 ;
45612 return 0;
45613 }
45614 _ACEOF
45615 rm -f conftest.$ac_objext
45616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45617 (eval $ac_compile) 2>conftest.er1
45618 ac_status=$?
45619 grep -v '^ *+' conftest.er1 >conftest.err
45620 rm -f conftest.er1
45621 cat conftest.err >&5
45622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45623 (exit $ac_status); } &&
45624 { ac_try='test -z "$ac_cxx_werror_flag"
45625 || test ! -s conftest.err'
45626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45627 (eval $ac_try) 2>&5
45628 ac_status=$?
45629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45630 (exit $ac_status); }; } &&
45631 { ac_try='test -s conftest.$ac_objext'
45632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45633 (eval $ac_try) 2>&5
45634 ac_status=$?
45635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45636 (exit $ac_status); }; }; then
45637 glibcxx_cv_func_modfl_use=yes
45638 else
45639 echo "$as_me: failed program was:" >&5
45640 sed 's/^/| /' conftest.$ac_ext >&5
45641
45642 glibcxx_cv_func_modfl_use=no
45643 fi
45644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45645 ac_ext=c
45646 ac_cpp='$CPP $CPPFLAGS'
45647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45650
45651
45652 fi
45653
45654 fi
45655 echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
45656 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
45657
45658 if test x$glibcxx_cv_func_modfl_use = x"yes"; then
45659
45660 for ac_func in modfl
45661 do
45662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45663 echo "$as_me:$LINENO: checking for $ac_func" >&5
45664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45665 if eval "test \"\${$as_ac_var+set}\" = set"; then
45666 echo $ECHO_N "(cached) $ECHO_C" >&6
45667 else
45668 if test x$gcc_no_link = xyes; then
45669 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45671 { (exit 1); exit 1; }; }
45672 fi
45673 cat >conftest.$ac_ext <<_ACEOF
45674 /* confdefs.h. */
45675 _ACEOF
45676 cat confdefs.h >>conftest.$ac_ext
45677 cat >>conftest.$ac_ext <<_ACEOF
45678 /* end confdefs.h. */
45679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45681 #define $ac_func innocuous_$ac_func
45682
45683 /* System header to define __stub macros and hopefully few prototypes,
45684 which can conflict with char $ac_func (); below.
45685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45686 <limits.h> exists even on freestanding compilers. */
45687
45688 #ifdef __STDC__
45689 # include <limits.h>
45690 #else
45691 # include <assert.h>
45692 #endif
45693
45694 #undef $ac_func
45695
45696 /* Override any gcc2 internal prototype to avoid an error. */
45697 #ifdef __cplusplus
45698 extern "C"
45699 {
45700 #endif
45701 /* We use char because int might match the return type of a gcc2
45702 builtin and then its argument prototype would still apply. */
45703 char $ac_func ();
45704 /* The GNU C library defines this for functions which it implements
45705 to always fail with ENOSYS. Some functions are actually named
45706 something starting with __ and the normal name is an alias. */
45707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45708 choke me
45709 #else
45710 char (*f) () = $ac_func;
45711 #endif
45712 #ifdef __cplusplus
45713 }
45714 #endif
45715
45716 int
45717 main ()
45718 {
45719 return f != $ac_func;
45720 ;
45721 return 0;
45722 }
45723 _ACEOF
45724 rm -f conftest.$ac_objext conftest$ac_exeext
45725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45726 (eval $ac_link) 2>conftest.er1
45727 ac_status=$?
45728 grep -v '^ *+' conftest.er1 >conftest.err
45729 rm -f conftest.er1
45730 cat conftest.err >&5
45731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45732 (exit $ac_status); } &&
45733 { ac_try='test -z "$ac_c_werror_flag"
45734 || test ! -s conftest.err'
45735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45736 (eval $ac_try) 2>&5
45737 ac_status=$?
45738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45739 (exit $ac_status); }; } &&
45740 { ac_try='test -s conftest$ac_exeext'
45741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45742 (eval $ac_try) 2>&5
45743 ac_status=$?
45744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45745 (exit $ac_status); }; }; then
45746 eval "$as_ac_var=yes"
45747 else
45748 echo "$as_me: failed program was:" >&5
45749 sed 's/^/| /' conftest.$ac_ext >&5
45750
45751 eval "$as_ac_var=no"
45752 fi
45753 rm -f conftest.err conftest.$ac_objext \
45754 conftest$ac_exeext conftest.$ac_ext
45755 fi
45756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45758 if test `eval echo '${'$as_ac_var'}'` = yes; then
45759 cat >>confdefs.h <<_ACEOF
45760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45761 _ACEOF
45762
45763 fi
45764 done
45765
45766 else
45767
45768 echo "$as_me:$LINENO: checking for _modfl declaration" >&5
45769 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
45770 if test x${glibcxx_cv_func__modfl_use+set} != xset; then
45771 if test "${glibcxx_cv_func__modfl_use+set}" = set; then
45772 echo $ECHO_N "(cached) $ECHO_C" >&6
45773 else
45774
45775
45776
45777 ac_ext=cc
45778 ac_cpp='$CXXCPP $CPPFLAGS'
45779 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45780 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45781 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45782
45783 cat >conftest.$ac_ext <<_ACEOF
45784 /* confdefs.h. */
45785 _ACEOF
45786 cat confdefs.h >>conftest.$ac_ext
45787 cat >>conftest.$ac_ext <<_ACEOF
45788 /* end confdefs.h. */
45789 #include <math.h>
45790 int
45791 main ()
45792 {
45793 _modfl(0, 0);
45794 ;
45795 return 0;
45796 }
45797 _ACEOF
45798 rm -f conftest.$ac_objext
45799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45800 (eval $ac_compile) 2>conftest.er1
45801 ac_status=$?
45802 grep -v '^ *+' conftest.er1 >conftest.err
45803 rm -f conftest.er1
45804 cat conftest.err >&5
45805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45806 (exit $ac_status); } &&
45807 { ac_try='test -z "$ac_cxx_werror_flag"
45808 || test ! -s conftest.err'
45809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45810 (eval $ac_try) 2>&5
45811 ac_status=$?
45812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45813 (exit $ac_status); }; } &&
45814 { ac_try='test -s conftest.$ac_objext'
45815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45816 (eval $ac_try) 2>&5
45817 ac_status=$?
45818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45819 (exit $ac_status); }; }; then
45820 glibcxx_cv_func__modfl_use=yes
45821 else
45822 echo "$as_me: failed program was:" >&5
45823 sed 's/^/| /' conftest.$ac_ext >&5
45824
45825 glibcxx_cv_func__modfl_use=no
45826 fi
45827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45828 ac_ext=c
45829 ac_cpp='$CPP $CPPFLAGS'
45830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45833
45834
45835 fi
45836
45837 fi
45838 echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
45839 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
45840
45841 if test x$glibcxx_cv_func__modfl_use = x"yes"; then
45842
45843 for ac_func in _modfl
45844 do
45845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45846 echo "$as_me:$LINENO: checking for $ac_func" >&5
45847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45848 if eval "test \"\${$as_ac_var+set}\" = set"; then
45849 echo $ECHO_N "(cached) $ECHO_C" >&6
45850 else
45851 if test x$gcc_no_link = xyes; then
45852 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45853 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45854 { (exit 1); exit 1; }; }
45855 fi
45856 cat >conftest.$ac_ext <<_ACEOF
45857 /* confdefs.h. */
45858 _ACEOF
45859 cat confdefs.h >>conftest.$ac_ext
45860 cat >>conftest.$ac_ext <<_ACEOF
45861 /* end confdefs.h. */
45862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45864 #define $ac_func innocuous_$ac_func
45865
45866 /* System header to define __stub macros and hopefully few prototypes,
45867 which can conflict with char $ac_func (); below.
45868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45869 <limits.h> exists even on freestanding compilers. */
45870
45871 #ifdef __STDC__
45872 # include <limits.h>
45873 #else
45874 # include <assert.h>
45875 #endif
45876
45877 #undef $ac_func
45878
45879 /* Override any gcc2 internal prototype to avoid an error. */
45880 #ifdef __cplusplus
45881 extern "C"
45882 {
45883 #endif
45884 /* We use char because int might match the return type of a gcc2
45885 builtin and then its argument prototype would still apply. */
45886 char $ac_func ();
45887 /* The GNU C library defines this for functions which it implements
45888 to always fail with ENOSYS. Some functions are actually named
45889 something starting with __ and the normal name is an alias. */
45890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45891 choke me
45892 #else
45893 char (*f) () = $ac_func;
45894 #endif
45895 #ifdef __cplusplus
45896 }
45897 #endif
45898
45899 int
45900 main ()
45901 {
45902 return f != $ac_func;
45903 ;
45904 return 0;
45905 }
45906 _ACEOF
45907 rm -f conftest.$ac_objext conftest$ac_exeext
45908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45909 (eval $ac_link) 2>conftest.er1
45910 ac_status=$?
45911 grep -v '^ *+' conftest.er1 >conftest.err
45912 rm -f conftest.er1
45913 cat conftest.err >&5
45914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45915 (exit $ac_status); } &&
45916 { ac_try='test -z "$ac_c_werror_flag"
45917 || test ! -s conftest.err'
45918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45919 (eval $ac_try) 2>&5
45920 ac_status=$?
45921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45922 (exit $ac_status); }; } &&
45923 { ac_try='test -s conftest$ac_exeext'
45924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45925 (eval $ac_try) 2>&5
45926 ac_status=$?
45927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45928 (exit $ac_status); }; }; then
45929 eval "$as_ac_var=yes"
45930 else
45931 echo "$as_me: failed program was:" >&5
45932 sed 's/^/| /' conftest.$ac_ext >&5
45933
45934 eval "$as_ac_var=no"
45935 fi
45936 rm -f conftest.err conftest.$ac_objext \
45937 conftest$ac_exeext conftest.$ac_ext
45938 fi
45939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45940 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45941 if test `eval echo '${'$as_ac_var'}'` = yes; then
45942 cat >>confdefs.h <<_ACEOF
45943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45944 _ACEOF
45945
45946 fi
45947 done
45948
45949 fi
45950 fi
45951
45952
45953
45954 echo "$as_me:$LINENO: checking for powl declaration" >&5
45955 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
45956 if test x${glibcxx_cv_func_powl_use+set} != xset; then
45957 if test "${glibcxx_cv_func_powl_use+set}" = set; then
45958 echo $ECHO_N "(cached) $ECHO_C" >&6
45959 else
45960
45961
45962
45963 ac_ext=cc
45964 ac_cpp='$CXXCPP $CPPFLAGS'
45965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45968
45969 cat >conftest.$ac_ext <<_ACEOF
45970 /* confdefs.h. */
45971 _ACEOF
45972 cat confdefs.h >>conftest.$ac_ext
45973 cat >>conftest.$ac_ext <<_ACEOF
45974 /* end confdefs.h. */
45975 #include <math.h>
45976 int
45977 main ()
45978 {
45979 powl(0, 0);
45980 ;
45981 return 0;
45982 }
45983 _ACEOF
45984 rm -f conftest.$ac_objext
45985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45986 (eval $ac_compile) 2>conftest.er1
45987 ac_status=$?
45988 grep -v '^ *+' conftest.er1 >conftest.err
45989 rm -f conftest.er1
45990 cat conftest.err >&5
45991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45992 (exit $ac_status); } &&
45993 { ac_try='test -z "$ac_cxx_werror_flag"
45994 || test ! -s conftest.err'
45995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45996 (eval $ac_try) 2>&5
45997 ac_status=$?
45998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45999 (exit $ac_status); }; } &&
46000 { ac_try='test -s conftest.$ac_objext'
46001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46002 (eval $ac_try) 2>&5
46003 ac_status=$?
46004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46005 (exit $ac_status); }; }; then
46006 glibcxx_cv_func_powl_use=yes
46007 else
46008 echo "$as_me: failed program was:" >&5
46009 sed 's/^/| /' conftest.$ac_ext >&5
46010
46011 glibcxx_cv_func_powl_use=no
46012 fi
46013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46014 ac_ext=c
46015 ac_cpp='$CPP $CPPFLAGS'
46016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46019
46020
46021 fi
46022
46023 fi
46024 echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
46025 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
46026
46027 if test x$glibcxx_cv_func_powl_use = x"yes"; then
46028
46029 for ac_func in powl
46030 do
46031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46032 echo "$as_me:$LINENO: checking for $ac_func" >&5
46033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46034 if eval "test \"\${$as_ac_var+set}\" = set"; then
46035 echo $ECHO_N "(cached) $ECHO_C" >&6
46036 else
46037 if test x$gcc_no_link = xyes; then
46038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46040 { (exit 1); exit 1; }; }
46041 fi
46042 cat >conftest.$ac_ext <<_ACEOF
46043 /* confdefs.h. */
46044 _ACEOF
46045 cat confdefs.h >>conftest.$ac_ext
46046 cat >>conftest.$ac_ext <<_ACEOF
46047 /* end confdefs.h. */
46048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46050 #define $ac_func innocuous_$ac_func
46051
46052 /* System header to define __stub macros and hopefully few prototypes,
46053 which can conflict with char $ac_func (); below.
46054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46055 <limits.h> exists even on freestanding compilers. */
46056
46057 #ifdef __STDC__
46058 # include <limits.h>
46059 #else
46060 # include <assert.h>
46061 #endif
46062
46063 #undef $ac_func
46064
46065 /* Override any gcc2 internal prototype to avoid an error. */
46066 #ifdef __cplusplus
46067 extern "C"
46068 {
46069 #endif
46070 /* We use char because int might match the return type of a gcc2
46071 builtin and then its argument prototype would still apply. */
46072 char $ac_func ();
46073 /* The GNU C library defines this for functions which it implements
46074 to always fail with ENOSYS. Some functions are actually named
46075 something starting with __ and the normal name is an alias. */
46076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46077 choke me
46078 #else
46079 char (*f) () = $ac_func;
46080 #endif
46081 #ifdef __cplusplus
46082 }
46083 #endif
46084
46085 int
46086 main ()
46087 {
46088 return f != $ac_func;
46089 ;
46090 return 0;
46091 }
46092 _ACEOF
46093 rm -f conftest.$ac_objext conftest$ac_exeext
46094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46095 (eval $ac_link) 2>conftest.er1
46096 ac_status=$?
46097 grep -v '^ *+' conftest.er1 >conftest.err
46098 rm -f conftest.er1
46099 cat conftest.err >&5
46100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46101 (exit $ac_status); } &&
46102 { ac_try='test -z "$ac_c_werror_flag"
46103 || test ! -s conftest.err'
46104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46105 (eval $ac_try) 2>&5
46106 ac_status=$?
46107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46108 (exit $ac_status); }; } &&
46109 { ac_try='test -s conftest$ac_exeext'
46110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46111 (eval $ac_try) 2>&5
46112 ac_status=$?
46113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46114 (exit $ac_status); }; }; then
46115 eval "$as_ac_var=yes"
46116 else
46117 echo "$as_me: failed program was:" >&5
46118 sed 's/^/| /' conftest.$ac_ext >&5
46119
46120 eval "$as_ac_var=no"
46121 fi
46122 rm -f conftest.err conftest.$ac_objext \
46123 conftest$ac_exeext conftest.$ac_ext
46124 fi
46125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46127 if test `eval echo '${'$as_ac_var'}'` = yes; then
46128 cat >>confdefs.h <<_ACEOF
46129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46130 _ACEOF
46131
46132 fi
46133 done
46134
46135 else
46136
46137 echo "$as_me:$LINENO: checking for _powl declaration" >&5
46138 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
46139 if test x${glibcxx_cv_func__powl_use+set} != xset; then
46140 if test "${glibcxx_cv_func__powl_use+set}" = set; then
46141 echo $ECHO_N "(cached) $ECHO_C" >&6
46142 else
46143
46144
46145
46146 ac_ext=cc
46147 ac_cpp='$CXXCPP $CPPFLAGS'
46148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46151
46152 cat >conftest.$ac_ext <<_ACEOF
46153 /* confdefs.h. */
46154 _ACEOF
46155 cat confdefs.h >>conftest.$ac_ext
46156 cat >>conftest.$ac_ext <<_ACEOF
46157 /* end confdefs.h. */
46158 #include <math.h>
46159 int
46160 main ()
46161 {
46162 _powl(0, 0);
46163 ;
46164 return 0;
46165 }
46166 _ACEOF
46167 rm -f conftest.$ac_objext
46168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46169 (eval $ac_compile) 2>conftest.er1
46170 ac_status=$?
46171 grep -v '^ *+' conftest.er1 >conftest.err
46172 rm -f conftest.er1
46173 cat conftest.err >&5
46174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46175 (exit $ac_status); } &&
46176 { ac_try='test -z "$ac_cxx_werror_flag"
46177 || test ! -s conftest.err'
46178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46179 (eval $ac_try) 2>&5
46180 ac_status=$?
46181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46182 (exit $ac_status); }; } &&
46183 { ac_try='test -s conftest.$ac_objext'
46184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46185 (eval $ac_try) 2>&5
46186 ac_status=$?
46187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46188 (exit $ac_status); }; }; then
46189 glibcxx_cv_func__powl_use=yes
46190 else
46191 echo "$as_me: failed program was:" >&5
46192 sed 's/^/| /' conftest.$ac_ext >&5
46193
46194 glibcxx_cv_func__powl_use=no
46195 fi
46196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46197 ac_ext=c
46198 ac_cpp='$CPP $CPPFLAGS'
46199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46202
46203
46204 fi
46205
46206 fi
46207 echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
46208 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
46209
46210 if test x$glibcxx_cv_func__powl_use = x"yes"; then
46211
46212 for ac_func in _powl
46213 do
46214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46215 echo "$as_me:$LINENO: checking for $ac_func" >&5
46216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46217 if eval "test \"\${$as_ac_var+set}\" = set"; then
46218 echo $ECHO_N "(cached) $ECHO_C" >&6
46219 else
46220 if test x$gcc_no_link = xyes; then
46221 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46222 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46223 { (exit 1); exit 1; }; }
46224 fi
46225 cat >conftest.$ac_ext <<_ACEOF
46226 /* confdefs.h. */
46227 _ACEOF
46228 cat confdefs.h >>conftest.$ac_ext
46229 cat >>conftest.$ac_ext <<_ACEOF
46230 /* end confdefs.h. */
46231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46233 #define $ac_func innocuous_$ac_func
46234
46235 /* System header to define __stub macros and hopefully few prototypes,
46236 which can conflict with char $ac_func (); below.
46237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46238 <limits.h> exists even on freestanding compilers. */
46239
46240 #ifdef __STDC__
46241 # include <limits.h>
46242 #else
46243 # include <assert.h>
46244 #endif
46245
46246 #undef $ac_func
46247
46248 /* Override any gcc2 internal prototype to avoid an error. */
46249 #ifdef __cplusplus
46250 extern "C"
46251 {
46252 #endif
46253 /* We use char because int might match the return type of a gcc2
46254 builtin and then its argument prototype would still apply. */
46255 char $ac_func ();
46256 /* The GNU C library defines this for functions which it implements
46257 to always fail with ENOSYS. Some functions are actually named
46258 something starting with __ and the normal name is an alias. */
46259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46260 choke me
46261 #else
46262 char (*f) () = $ac_func;
46263 #endif
46264 #ifdef __cplusplus
46265 }
46266 #endif
46267
46268 int
46269 main ()
46270 {
46271 return f != $ac_func;
46272 ;
46273 return 0;
46274 }
46275 _ACEOF
46276 rm -f conftest.$ac_objext conftest$ac_exeext
46277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46278 (eval $ac_link) 2>conftest.er1
46279 ac_status=$?
46280 grep -v '^ *+' conftest.er1 >conftest.err
46281 rm -f conftest.er1
46282 cat conftest.err >&5
46283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46284 (exit $ac_status); } &&
46285 { ac_try='test -z "$ac_c_werror_flag"
46286 || test ! -s conftest.err'
46287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46288 (eval $ac_try) 2>&5
46289 ac_status=$?
46290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46291 (exit $ac_status); }; } &&
46292 { ac_try='test -s conftest$ac_exeext'
46293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46294 (eval $ac_try) 2>&5
46295 ac_status=$?
46296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46297 (exit $ac_status); }; }; then
46298 eval "$as_ac_var=yes"
46299 else
46300 echo "$as_me: failed program was:" >&5
46301 sed 's/^/| /' conftest.$ac_ext >&5
46302
46303 eval "$as_ac_var=no"
46304 fi
46305 rm -f conftest.err conftest.$ac_objext \
46306 conftest$ac_exeext conftest.$ac_ext
46307 fi
46308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46310 if test `eval echo '${'$as_ac_var'}'` = yes; then
46311 cat >>confdefs.h <<_ACEOF
46312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46313 _ACEOF
46314
46315 fi
46316 done
46317
46318 fi
46319 fi
46320
46321
46322
46323 echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
46324 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
46325 if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
46326 if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
46327 echo $ECHO_N "(cached) $ECHO_C" >&6
46328 else
46329
46330
46331
46332 ac_ext=cc
46333 ac_cpp='$CXXCPP $CPPFLAGS'
46334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46337
46338 cat >conftest.$ac_ext <<_ACEOF
46339 /* confdefs.h. */
46340 _ACEOF
46341 cat confdefs.h >>conftest.$ac_ext
46342 cat >>conftest.$ac_ext <<_ACEOF
46343 /* end confdefs.h. */
46344 #include <math.h>
46345 #ifdef HAVE_IEEEFP_H
46346 #include <ieeefp.h>
46347 #endif
46348
46349 int
46350 main ()
46351 {
46352 sqrtl(0);
46353 ;
46354 return 0;
46355 }
46356 _ACEOF
46357 rm -f conftest.$ac_objext
46358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46359 (eval $ac_compile) 2>conftest.er1
46360 ac_status=$?
46361 grep -v '^ *+' conftest.er1 >conftest.err
46362 rm -f conftest.er1
46363 cat conftest.err >&5
46364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46365 (exit $ac_status); } &&
46366 { ac_try='test -z "$ac_cxx_werror_flag"
46367 || test ! -s conftest.err'
46368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46369 (eval $ac_try) 2>&5
46370 ac_status=$?
46371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46372 (exit $ac_status); }; } &&
46373 { ac_try='test -s conftest.$ac_objext'
46374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46375 (eval $ac_try) 2>&5
46376 ac_status=$?
46377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46378 (exit $ac_status); }; }; then
46379 glibcxx_cv_func_sqrtl_use=yes
46380 else
46381 echo "$as_me: failed program was:" >&5
46382 sed 's/^/| /' conftest.$ac_ext >&5
46383
46384 glibcxx_cv_func_sqrtl_use=no
46385 fi
46386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46387 ac_ext=c
46388 ac_cpp='$CPP $CPPFLAGS'
46389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46392
46393
46394 fi
46395
46396 fi
46397 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
46398 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
46399
46400 if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
46401
46402 for ac_func in sqrtl
46403 do
46404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46405 echo "$as_me:$LINENO: checking for $ac_func" >&5
46406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46407 if eval "test \"\${$as_ac_var+set}\" = set"; then
46408 echo $ECHO_N "(cached) $ECHO_C" >&6
46409 else
46410 if test x$gcc_no_link = xyes; then
46411 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46413 { (exit 1); exit 1; }; }
46414 fi
46415 cat >conftest.$ac_ext <<_ACEOF
46416 /* confdefs.h. */
46417 _ACEOF
46418 cat confdefs.h >>conftest.$ac_ext
46419 cat >>conftest.$ac_ext <<_ACEOF
46420 /* end confdefs.h. */
46421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46423 #define $ac_func innocuous_$ac_func
46424
46425 /* System header to define __stub macros and hopefully few prototypes,
46426 which can conflict with char $ac_func (); below.
46427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46428 <limits.h> exists even on freestanding compilers. */
46429
46430 #ifdef __STDC__
46431 # include <limits.h>
46432 #else
46433 # include <assert.h>
46434 #endif
46435
46436 #undef $ac_func
46437
46438 /* Override any gcc2 internal prototype to avoid an error. */
46439 #ifdef __cplusplus
46440 extern "C"
46441 {
46442 #endif
46443 /* We use char because int might match the return type of a gcc2
46444 builtin and then its argument prototype would still apply. */
46445 char $ac_func ();
46446 /* The GNU C library defines this for functions which it implements
46447 to always fail with ENOSYS. Some functions are actually named
46448 something starting with __ and the normal name is an alias. */
46449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46450 choke me
46451 #else
46452 char (*f) () = $ac_func;
46453 #endif
46454 #ifdef __cplusplus
46455 }
46456 #endif
46457
46458 int
46459 main ()
46460 {
46461 return f != $ac_func;
46462 ;
46463 return 0;
46464 }
46465 _ACEOF
46466 rm -f conftest.$ac_objext conftest$ac_exeext
46467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46468 (eval $ac_link) 2>conftest.er1
46469 ac_status=$?
46470 grep -v '^ *+' conftest.er1 >conftest.err
46471 rm -f conftest.er1
46472 cat conftest.err >&5
46473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46474 (exit $ac_status); } &&
46475 { ac_try='test -z "$ac_c_werror_flag"
46476 || test ! -s conftest.err'
46477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46478 (eval $ac_try) 2>&5
46479 ac_status=$?
46480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46481 (exit $ac_status); }; } &&
46482 { ac_try='test -s conftest$ac_exeext'
46483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46484 (eval $ac_try) 2>&5
46485 ac_status=$?
46486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46487 (exit $ac_status); }; }; then
46488 eval "$as_ac_var=yes"
46489 else
46490 echo "$as_me: failed program was:" >&5
46491 sed 's/^/| /' conftest.$ac_ext >&5
46492
46493 eval "$as_ac_var=no"
46494 fi
46495 rm -f conftest.err conftest.$ac_objext \
46496 conftest$ac_exeext conftest.$ac_ext
46497 fi
46498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46500 if test `eval echo '${'$as_ac_var'}'` = yes; then
46501 cat >>confdefs.h <<_ACEOF
46502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46503 _ACEOF
46504
46505 fi
46506 done
46507
46508 else
46509
46510 echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
46511 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
46512 if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
46513 if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
46514 echo $ECHO_N "(cached) $ECHO_C" >&6
46515 else
46516
46517
46518
46519 ac_ext=cc
46520 ac_cpp='$CXXCPP $CPPFLAGS'
46521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46524
46525 cat >conftest.$ac_ext <<_ACEOF
46526 /* confdefs.h. */
46527 _ACEOF
46528 cat confdefs.h >>conftest.$ac_ext
46529 cat >>conftest.$ac_ext <<_ACEOF
46530 /* end confdefs.h. */
46531 #include <math.h>
46532 #ifdef HAVE_IEEEFP_H
46533 #include <ieeefp.h>
46534 #endif
46535
46536 int
46537 main ()
46538 {
46539 _sqrtl(0);
46540 ;
46541 return 0;
46542 }
46543 _ACEOF
46544 rm -f conftest.$ac_objext
46545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46546 (eval $ac_compile) 2>conftest.er1
46547 ac_status=$?
46548 grep -v '^ *+' conftest.er1 >conftest.err
46549 rm -f conftest.er1
46550 cat conftest.err >&5
46551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46552 (exit $ac_status); } &&
46553 { ac_try='test -z "$ac_cxx_werror_flag"
46554 || test ! -s conftest.err'
46555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46556 (eval $ac_try) 2>&5
46557 ac_status=$?
46558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46559 (exit $ac_status); }; } &&
46560 { ac_try='test -s conftest.$ac_objext'
46561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46562 (eval $ac_try) 2>&5
46563 ac_status=$?
46564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46565 (exit $ac_status); }; }; then
46566 glibcxx_cv_func__sqrtl_use=yes
46567 else
46568 echo "$as_me: failed program was:" >&5
46569 sed 's/^/| /' conftest.$ac_ext >&5
46570
46571 glibcxx_cv_func__sqrtl_use=no
46572 fi
46573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46574 ac_ext=c
46575 ac_cpp='$CPP $CPPFLAGS'
46576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46579
46580
46581 fi
46582
46583 fi
46584 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
46585 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
46586
46587 if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
46588
46589 for ac_func in _sqrtl
46590 do
46591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46592 echo "$as_me:$LINENO: checking for $ac_func" >&5
46593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46594 if eval "test \"\${$as_ac_var+set}\" = set"; then
46595 echo $ECHO_N "(cached) $ECHO_C" >&6
46596 else
46597 if test x$gcc_no_link = xyes; then
46598 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46599 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46600 { (exit 1); exit 1; }; }
46601 fi
46602 cat >conftest.$ac_ext <<_ACEOF
46603 /* confdefs.h. */
46604 _ACEOF
46605 cat confdefs.h >>conftest.$ac_ext
46606 cat >>conftest.$ac_ext <<_ACEOF
46607 /* end confdefs.h. */
46608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46610 #define $ac_func innocuous_$ac_func
46611
46612 /* System header to define __stub macros and hopefully few prototypes,
46613 which can conflict with char $ac_func (); below.
46614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46615 <limits.h> exists even on freestanding compilers. */
46616
46617 #ifdef __STDC__
46618 # include <limits.h>
46619 #else
46620 # include <assert.h>
46621 #endif
46622
46623 #undef $ac_func
46624
46625 /* Override any gcc2 internal prototype to avoid an error. */
46626 #ifdef __cplusplus
46627 extern "C"
46628 {
46629 #endif
46630 /* We use char because int might match the return type of a gcc2
46631 builtin and then its argument prototype would still apply. */
46632 char $ac_func ();
46633 /* The GNU C library defines this for functions which it implements
46634 to always fail with ENOSYS. Some functions are actually named
46635 something starting with __ and the normal name is an alias. */
46636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46637 choke me
46638 #else
46639 char (*f) () = $ac_func;
46640 #endif
46641 #ifdef __cplusplus
46642 }
46643 #endif
46644
46645 int
46646 main ()
46647 {
46648 return f != $ac_func;
46649 ;
46650 return 0;
46651 }
46652 _ACEOF
46653 rm -f conftest.$ac_objext conftest$ac_exeext
46654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46655 (eval $ac_link) 2>conftest.er1
46656 ac_status=$?
46657 grep -v '^ *+' conftest.er1 >conftest.err
46658 rm -f conftest.er1
46659 cat conftest.err >&5
46660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46661 (exit $ac_status); } &&
46662 { ac_try='test -z "$ac_c_werror_flag"
46663 || test ! -s conftest.err'
46664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46665 (eval $ac_try) 2>&5
46666 ac_status=$?
46667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46668 (exit $ac_status); }; } &&
46669 { ac_try='test -s conftest$ac_exeext'
46670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46671 (eval $ac_try) 2>&5
46672 ac_status=$?
46673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46674 (exit $ac_status); }; }; then
46675 eval "$as_ac_var=yes"
46676 else
46677 echo "$as_me: failed program was:" >&5
46678 sed 's/^/| /' conftest.$ac_ext >&5
46679
46680 eval "$as_ac_var=no"
46681 fi
46682 rm -f conftest.err conftest.$ac_objext \
46683 conftest$ac_exeext conftest.$ac_ext
46684 fi
46685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46687 if test `eval echo '${'$as_ac_var'}'` = yes; then
46688 cat >>confdefs.h <<_ACEOF
46689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46690 _ACEOF
46691
46692 fi
46693 done
46694
46695 fi
46696 fi
46697
46698
46699
46700 echo "$as_me:$LINENO: checking for sincosl declaration" >&5
46701 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
46702 if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
46703 if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
46704 echo $ECHO_N "(cached) $ECHO_C" >&6
46705 else
46706
46707
46708
46709 ac_ext=cc
46710 ac_cpp='$CXXCPP $CPPFLAGS'
46711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46714
46715 cat >conftest.$ac_ext <<_ACEOF
46716 /* confdefs.h. */
46717 _ACEOF
46718 cat confdefs.h >>conftest.$ac_ext
46719 cat >>conftest.$ac_ext <<_ACEOF
46720 /* end confdefs.h. */
46721 #include <math.h>
46722 int
46723 main ()
46724 {
46725 sincosl(0, 0, 0);
46726 ;
46727 return 0;
46728 }
46729 _ACEOF
46730 rm -f conftest.$ac_objext
46731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46732 (eval $ac_compile) 2>conftest.er1
46733 ac_status=$?
46734 grep -v '^ *+' conftest.er1 >conftest.err
46735 rm -f conftest.er1
46736 cat conftest.err >&5
46737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46738 (exit $ac_status); } &&
46739 { ac_try='test -z "$ac_cxx_werror_flag"
46740 || test ! -s conftest.err'
46741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46742 (eval $ac_try) 2>&5
46743 ac_status=$?
46744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46745 (exit $ac_status); }; } &&
46746 { ac_try='test -s conftest.$ac_objext'
46747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46748 (eval $ac_try) 2>&5
46749 ac_status=$?
46750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46751 (exit $ac_status); }; }; then
46752 glibcxx_cv_func_sincosl_use=yes
46753 else
46754 echo "$as_me: failed program was:" >&5
46755 sed 's/^/| /' conftest.$ac_ext >&5
46756
46757 glibcxx_cv_func_sincosl_use=no
46758 fi
46759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46760 ac_ext=c
46761 ac_cpp='$CPP $CPPFLAGS'
46762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46765
46766
46767 fi
46768
46769 fi
46770 echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
46771 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
46772
46773 if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
46774
46775 for ac_func in sincosl
46776 do
46777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46778 echo "$as_me:$LINENO: checking for $ac_func" >&5
46779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46780 if eval "test \"\${$as_ac_var+set}\" = set"; then
46781 echo $ECHO_N "(cached) $ECHO_C" >&6
46782 else
46783 if test x$gcc_no_link = xyes; then
46784 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46785 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46786 { (exit 1); exit 1; }; }
46787 fi
46788 cat >conftest.$ac_ext <<_ACEOF
46789 /* confdefs.h. */
46790 _ACEOF
46791 cat confdefs.h >>conftest.$ac_ext
46792 cat >>conftest.$ac_ext <<_ACEOF
46793 /* end confdefs.h. */
46794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46796 #define $ac_func innocuous_$ac_func
46797
46798 /* System header to define __stub macros and hopefully few prototypes,
46799 which can conflict with char $ac_func (); below.
46800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46801 <limits.h> exists even on freestanding compilers. */
46802
46803 #ifdef __STDC__
46804 # include <limits.h>
46805 #else
46806 # include <assert.h>
46807 #endif
46808
46809 #undef $ac_func
46810
46811 /* Override any gcc2 internal prototype to avoid an error. */
46812 #ifdef __cplusplus
46813 extern "C"
46814 {
46815 #endif
46816 /* We use char because int might match the return type of a gcc2
46817 builtin and then its argument prototype would still apply. */
46818 char $ac_func ();
46819 /* The GNU C library defines this for functions which it implements
46820 to always fail with ENOSYS. Some functions are actually named
46821 something starting with __ and the normal name is an alias. */
46822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46823 choke me
46824 #else
46825 char (*f) () = $ac_func;
46826 #endif
46827 #ifdef __cplusplus
46828 }
46829 #endif
46830
46831 int
46832 main ()
46833 {
46834 return f != $ac_func;
46835 ;
46836 return 0;
46837 }
46838 _ACEOF
46839 rm -f conftest.$ac_objext conftest$ac_exeext
46840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46841 (eval $ac_link) 2>conftest.er1
46842 ac_status=$?
46843 grep -v '^ *+' conftest.er1 >conftest.err
46844 rm -f conftest.er1
46845 cat conftest.err >&5
46846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46847 (exit $ac_status); } &&
46848 { ac_try='test -z "$ac_c_werror_flag"
46849 || test ! -s conftest.err'
46850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46851 (eval $ac_try) 2>&5
46852 ac_status=$?
46853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46854 (exit $ac_status); }; } &&
46855 { ac_try='test -s conftest$ac_exeext'
46856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46857 (eval $ac_try) 2>&5
46858 ac_status=$?
46859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46860 (exit $ac_status); }; }; then
46861 eval "$as_ac_var=yes"
46862 else
46863 echo "$as_me: failed program was:" >&5
46864 sed 's/^/| /' conftest.$ac_ext >&5
46865
46866 eval "$as_ac_var=no"
46867 fi
46868 rm -f conftest.err conftest.$ac_objext \
46869 conftest$ac_exeext conftest.$ac_ext
46870 fi
46871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46873 if test `eval echo '${'$as_ac_var'}'` = yes; then
46874 cat >>confdefs.h <<_ACEOF
46875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46876 _ACEOF
46877
46878 fi
46879 done
46880
46881 else
46882
46883 echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
46884 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
46885 if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
46886 if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
46887 echo $ECHO_N "(cached) $ECHO_C" >&6
46888 else
46889
46890
46891
46892 ac_ext=cc
46893 ac_cpp='$CXXCPP $CPPFLAGS'
46894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46897
46898 cat >conftest.$ac_ext <<_ACEOF
46899 /* confdefs.h. */
46900 _ACEOF
46901 cat confdefs.h >>conftest.$ac_ext
46902 cat >>conftest.$ac_ext <<_ACEOF
46903 /* end confdefs.h. */
46904 #include <math.h>
46905 int
46906 main ()
46907 {
46908 _sincosl(0, 0, 0);
46909 ;
46910 return 0;
46911 }
46912 _ACEOF
46913 rm -f conftest.$ac_objext
46914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46915 (eval $ac_compile) 2>conftest.er1
46916 ac_status=$?
46917 grep -v '^ *+' conftest.er1 >conftest.err
46918 rm -f conftest.er1
46919 cat conftest.err >&5
46920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46921 (exit $ac_status); } &&
46922 { ac_try='test -z "$ac_cxx_werror_flag"
46923 || test ! -s conftest.err'
46924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46925 (eval $ac_try) 2>&5
46926 ac_status=$?
46927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46928 (exit $ac_status); }; } &&
46929 { ac_try='test -s conftest.$ac_objext'
46930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46931 (eval $ac_try) 2>&5
46932 ac_status=$?
46933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46934 (exit $ac_status); }; }; then
46935 glibcxx_cv_func__sincosl_use=yes
46936 else
46937 echo "$as_me: failed program was:" >&5
46938 sed 's/^/| /' conftest.$ac_ext >&5
46939
46940 glibcxx_cv_func__sincosl_use=no
46941 fi
46942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46943 ac_ext=c
46944 ac_cpp='$CPP $CPPFLAGS'
46945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46948
46949
46950 fi
46951
46952 fi
46953 echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
46954 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
46955
46956 if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
46957
46958 for ac_func in _sincosl
46959 do
46960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46961 echo "$as_me:$LINENO: checking for $ac_func" >&5
46962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46963 if eval "test \"\${$as_ac_var+set}\" = set"; then
46964 echo $ECHO_N "(cached) $ECHO_C" >&6
46965 else
46966 if test x$gcc_no_link = xyes; then
46967 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46968 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46969 { (exit 1); exit 1; }; }
46970 fi
46971 cat >conftest.$ac_ext <<_ACEOF
46972 /* confdefs.h. */
46973 _ACEOF
46974 cat confdefs.h >>conftest.$ac_ext
46975 cat >>conftest.$ac_ext <<_ACEOF
46976 /* end confdefs.h. */
46977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
46979 #define $ac_func innocuous_$ac_func
46980
46981 /* System header to define __stub macros and hopefully few prototypes,
46982 which can conflict with char $ac_func (); below.
46983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46984 <limits.h> exists even on freestanding compilers. */
46985
46986 #ifdef __STDC__
46987 # include <limits.h>
46988 #else
46989 # include <assert.h>
46990 #endif
46991
46992 #undef $ac_func
46993
46994 /* Override any gcc2 internal prototype to avoid an error. */
46995 #ifdef __cplusplus
46996 extern "C"
46997 {
46998 #endif
46999 /* We use char because int might match the return type of a gcc2
47000 builtin and then its argument prototype would still apply. */
47001 char $ac_func ();
47002 /* The GNU C library defines this for functions which it implements
47003 to always fail with ENOSYS. Some functions are actually named
47004 something starting with __ and the normal name is an alias. */
47005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47006 choke me
47007 #else
47008 char (*f) () = $ac_func;
47009 #endif
47010 #ifdef __cplusplus
47011 }
47012 #endif
47013
47014 int
47015 main ()
47016 {
47017 return f != $ac_func;
47018 ;
47019 return 0;
47020 }
47021 _ACEOF
47022 rm -f conftest.$ac_objext conftest$ac_exeext
47023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47024 (eval $ac_link) 2>conftest.er1
47025 ac_status=$?
47026 grep -v '^ *+' conftest.er1 >conftest.err
47027 rm -f conftest.er1
47028 cat conftest.err >&5
47029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47030 (exit $ac_status); } &&
47031 { ac_try='test -z "$ac_c_werror_flag"
47032 || test ! -s conftest.err'
47033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47034 (eval $ac_try) 2>&5
47035 ac_status=$?
47036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47037 (exit $ac_status); }; } &&
47038 { ac_try='test -s conftest$ac_exeext'
47039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47040 (eval $ac_try) 2>&5
47041 ac_status=$?
47042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47043 (exit $ac_status); }; }; then
47044 eval "$as_ac_var=yes"
47045 else
47046 echo "$as_me: failed program was:" >&5
47047 sed 's/^/| /' conftest.$ac_ext >&5
47048
47049 eval "$as_ac_var=no"
47050 fi
47051 rm -f conftest.err conftest.$ac_objext \
47052 conftest$ac_exeext conftest.$ac_ext
47053 fi
47054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47056 if test `eval echo '${'$as_ac_var'}'` = yes; then
47057 cat >>confdefs.h <<_ACEOF
47058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47059 _ACEOF
47060
47061 fi
47062 done
47063
47064 fi
47065 fi
47066
47067
47068
47069 echo "$as_me:$LINENO: checking for finitel declaration" >&5
47070 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
47071 if test x${glibcxx_cv_func_finitel_use+set} != xset; then
47072 if test "${glibcxx_cv_func_finitel_use+set}" = set; then
47073 echo $ECHO_N "(cached) $ECHO_C" >&6
47074 else
47075
47076
47077
47078 ac_ext=cc
47079 ac_cpp='$CXXCPP $CPPFLAGS'
47080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47083
47084 cat >conftest.$ac_ext <<_ACEOF
47085 /* confdefs.h. */
47086 _ACEOF
47087 cat confdefs.h >>conftest.$ac_ext
47088 cat >>conftest.$ac_ext <<_ACEOF
47089 /* end confdefs.h. */
47090 #include <math.h>
47091 #ifdef HAVE_IEEEFP_H
47092 #include <ieeefp.h>
47093 #endif
47094
47095 int
47096 main ()
47097 {
47098 finitel(0);
47099 ;
47100 return 0;
47101 }
47102 _ACEOF
47103 rm -f conftest.$ac_objext
47104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47105 (eval $ac_compile) 2>conftest.er1
47106 ac_status=$?
47107 grep -v '^ *+' conftest.er1 >conftest.err
47108 rm -f conftest.er1
47109 cat conftest.err >&5
47110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47111 (exit $ac_status); } &&
47112 { ac_try='test -z "$ac_cxx_werror_flag"
47113 || test ! -s conftest.err'
47114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47115 (eval $ac_try) 2>&5
47116 ac_status=$?
47117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47118 (exit $ac_status); }; } &&
47119 { ac_try='test -s conftest.$ac_objext'
47120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47121 (eval $ac_try) 2>&5
47122 ac_status=$?
47123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47124 (exit $ac_status); }; }; then
47125 glibcxx_cv_func_finitel_use=yes
47126 else
47127 echo "$as_me: failed program was:" >&5
47128 sed 's/^/| /' conftest.$ac_ext >&5
47129
47130 glibcxx_cv_func_finitel_use=no
47131 fi
47132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47133 ac_ext=c
47134 ac_cpp='$CPP $CPPFLAGS'
47135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47138
47139
47140 fi
47141
47142 fi
47143 echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
47144 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
47145
47146 if test x$glibcxx_cv_func_finitel_use = x"yes"; then
47147
47148 for ac_func in finitel
47149 do
47150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47151 echo "$as_me:$LINENO: checking for $ac_func" >&5
47152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47153 if eval "test \"\${$as_ac_var+set}\" = set"; then
47154 echo $ECHO_N "(cached) $ECHO_C" >&6
47155 else
47156 if test x$gcc_no_link = xyes; then
47157 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47158 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47159 { (exit 1); exit 1; }; }
47160 fi
47161 cat >conftest.$ac_ext <<_ACEOF
47162 /* confdefs.h. */
47163 _ACEOF
47164 cat confdefs.h >>conftest.$ac_ext
47165 cat >>conftest.$ac_ext <<_ACEOF
47166 /* end confdefs.h. */
47167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47169 #define $ac_func innocuous_$ac_func
47170
47171 /* System header to define __stub macros and hopefully few prototypes,
47172 which can conflict with char $ac_func (); below.
47173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47174 <limits.h> exists even on freestanding compilers. */
47175
47176 #ifdef __STDC__
47177 # include <limits.h>
47178 #else
47179 # include <assert.h>
47180 #endif
47181
47182 #undef $ac_func
47183
47184 /* Override any gcc2 internal prototype to avoid an error. */
47185 #ifdef __cplusplus
47186 extern "C"
47187 {
47188 #endif
47189 /* We use char because int might match the return type of a gcc2
47190 builtin and then its argument prototype would still apply. */
47191 char $ac_func ();
47192 /* The GNU C library defines this for functions which it implements
47193 to always fail with ENOSYS. Some functions are actually named
47194 something starting with __ and the normal name is an alias. */
47195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47196 choke me
47197 #else
47198 char (*f) () = $ac_func;
47199 #endif
47200 #ifdef __cplusplus
47201 }
47202 #endif
47203
47204 int
47205 main ()
47206 {
47207 return f != $ac_func;
47208 ;
47209 return 0;
47210 }
47211 _ACEOF
47212 rm -f conftest.$ac_objext conftest$ac_exeext
47213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47214 (eval $ac_link) 2>conftest.er1
47215 ac_status=$?
47216 grep -v '^ *+' conftest.er1 >conftest.err
47217 rm -f conftest.er1
47218 cat conftest.err >&5
47219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47220 (exit $ac_status); } &&
47221 { ac_try='test -z "$ac_c_werror_flag"
47222 || test ! -s conftest.err'
47223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47224 (eval $ac_try) 2>&5
47225 ac_status=$?
47226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47227 (exit $ac_status); }; } &&
47228 { ac_try='test -s conftest$ac_exeext'
47229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47230 (eval $ac_try) 2>&5
47231 ac_status=$?
47232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47233 (exit $ac_status); }; }; then
47234 eval "$as_ac_var=yes"
47235 else
47236 echo "$as_me: failed program was:" >&5
47237 sed 's/^/| /' conftest.$ac_ext >&5
47238
47239 eval "$as_ac_var=no"
47240 fi
47241 rm -f conftest.err conftest.$ac_objext \
47242 conftest$ac_exeext conftest.$ac_ext
47243 fi
47244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47245 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47246 if test `eval echo '${'$as_ac_var'}'` = yes; then
47247 cat >>confdefs.h <<_ACEOF
47248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47249 _ACEOF
47250
47251 fi
47252 done
47253
47254 else
47255
47256 echo "$as_me:$LINENO: checking for _finitel declaration" >&5
47257 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
47258 if test x${glibcxx_cv_func__finitel_use+set} != xset; then
47259 if test "${glibcxx_cv_func__finitel_use+set}" = set; then
47260 echo $ECHO_N "(cached) $ECHO_C" >&6
47261 else
47262
47263
47264
47265 ac_ext=cc
47266 ac_cpp='$CXXCPP $CPPFLAGS'
47267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47270
47271 cat >conftest.$ac_ext <<_ACEOF
47272 /* confdefs.h. */
47273 _ACEOF
47274 cat confdefs.h >>conftest.$ac_ext
47275 cat >>conftest.$ac_ext <<_ACEOF
47276 /* end confdefs.h. */
47277 #include <math.h>
47278 #ifdef HAVE_IEEEFP_H
47279 #include <ieeefp.h>
47280 #endif
47281
47282 int
47283 main ()
47284 {
47285 _finitel(0);
47286 ;
47287 return 0;
47288 }
47289 _ACEOF
47290 rm -f conftest.$ac_objext
47291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47292 (eval $ac_compile) 2>conftest.er1
47293 ac_status=$?
47294 grep -v '^ *+' conftest.er1 >conftest.err
47295 rm -f conftest.er1
47296 cat conftest.err >&5
47297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47298 (exit $ac_status); } &&
47299 { ac_try='test -z "$ac_cxx_werror_flag"
47300 || test ! -s conftest.err'
47301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47302 (eval $ac_try) 2>&5
47303 ac_status=$?
47304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47305 (exit $ac_status); }; } &&
47306 { ac_try='test -s conftest.$ac_objext'
47307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47308 (eval $ac_try) 2>&5
47309 ac_status=$?
47310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47311 (exit $ac_status); }; }; then
47312 glibcxx_cv_func__finitel_use=yes
47313 else
47314 echo "$as_me: failed program was:" >&5
47315 sed 's/^/| /' conftest.$ac_ext >&5
47316
47317 glibcxx_cv_func__finitel_use=no
47318 fi
47319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47320 ac_ext=c
47321 ac_cpp='$CPP $CPPFLAGS'
47322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47325
47326
47327 fi
47328
47329 fi
47330 echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
47331 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
47332
47333 if test x$glibcxx_cv_func__finitel_use = x"yes"; then
47334
47335 for ac_func in _finitel
47336 do
47337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47338 echo "$as_me:$LINENO: checking for $ac_func" >&5
47339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47340 if eval "test \"\${$as_ac_var+set}\" = set"; then
47341 echo $ECHO_N "(cached) $ECHO_C" >&6
47342 else
47343 if test x$gcc_no_link = xyes; then
47344 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47345 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47346 { (exit 1); exit 1; }; }
47347 fi
47348 cat >conftest.$ac_ext <<_ACEOF
47349 /* confdefs.h. */
47350 _ACEOF
47351 cat confdefs.h >>conftest.$ac_ext
47352 cat >>conftest.$ac_ext <<_ACEOF
47353 /* end confdefs.h. */
47354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47356 #define $ac_func innocuous_$ac_func
47357
47358 /* System header to define __stub macros and hopefully few prototypes,
47359 which can conflict with char $ac_func (); below.
47360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47361 <limits.h> exists even on freestanding compilers. */
47362
47363 #ifdef __STDC__
47364 # include <limits.h>
47365 #else
47366 # include <assert.h>
47367 #endif
47368
47369 #undef $ac_func
47370
47371 /* Override any gcc2 internal prototype to avoid an error. */
47372 #ifdef __cplusplus
47373 extern "C"
47374 {
47375 #endif
47376 /* We use char because int might match the return type of a gcc2
47377 builtin and then its argument prototype would still apply. */
47378 char $ac_func ();
47379 /* The GNU C library defines this for functions which it implements
47380 to always fail with ENOSYS. Some functions are actually named
47381 something starting with __ and the normal name is an alias. */
47382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47383 choke me
47384 #else
47385 char (*f) () = $ac_func;
47386 #endif
47387 #ifdef __cplusplus
47388 }
47389 #endif
47390
47391 int
47392 main ()
47393 {
47394 return f != $ac_func;
47395 ;
47396 return 0;
47397 }
47398 _ACEOF
47399 rm -f conftest.$ac_objext conftest$ac_exeext
47400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47401 (eval $ac_link) 2>conftest.er1
47402 ac_status=$?
47403 grep -v '^ *+' conftest.er1 >conftest.err
47404 rm -f conftest.er1
47405 cat conftest.err >&5
47406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47407 (exit $ac_status); } &&
47408 { ac_try='test -z "$ac_c_werror_flag"
47409 || test ! -s conftest.err'
47410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47411 (eval $ac_try) 2>&5
47412 ac_status=$?
47413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47414 (exit $ac_status); }; } &&
47415 { ac_try='test -s conftest$ac_exeext'
47416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47417 (eval $ac_try) 2>&5
47418 ac_status=$?
47419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47420 (exit $ac_status); }; }; then
47421 eval "$as_ac_var=yes"
47422 else
47423 echo "$as_me: failed program was:" >&5
47424 sed 's/^/| /' conftest.$ac_ext >&5
47425
47426 eval "$as_ac_var=no"
47427 fi
47428 rm -f conftest.err conftest.$ac_objext \
47429 conftest$ac_exeext conftest.$ac_ext
47430 fi
47431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47433 if test `eval echo '${'$as_ac_var'}'` = yes; then
47434 cat >>confdefs.h <<_ACEOF
47435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47436 _ACEOF
47437
47438 fi
47439 done
47440
47441 fi
47442 fi
47443
47444
47445
47446
47447 echo "$as_me:$LINENO: checking for _float trig functions" >&5
47448 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
47449 if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
47450 echo $ECHO_N "(cached) $ECHO_C" >&6
47451 else
47452
47453
47454
47455 ac_ext=cc
47456 ac_cpp='$CXXCPP $CPPFLAGS'
47457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47460
47461 cat >conftest.$ac_ext <<_ACEOF
47462 /* confdefs.h. */
47463 _ACEOF
47464 cat confdefs.h >>conftest.$ac_ext
47465 cat >>conftest.$ac_ext <<_ACEOF
47466 /* end confdefs.h. */
47467 #include <math.h>
47468 int
47469 main ()
47470 {
47471 `for x in _acosf _asinf _atanf \
47472 _cosf _sinf _tanf \
47473 _coshf _sinhf _tanhf; do echo "$x (0);"; done`
47474 ;
47475 return 0;
47476 }
47477 _ACEOF
47478 rm -f conftest.$ac_objext
47479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47480 (eval $ac_compile) 2>conftest.er1
47481 ac_status=$?
47482 grep -v '^ *+' conftest.er1 >conftest.err
47483 rm -f conftest.er1
47484 cat conftest.err >&5
47485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47486 (exit $ac_status); } &&
47487 { ac_try='test -z "$ac_cxx_werror_flag"
47488 || test ! -s conftest.err'
47489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47490 (eval $ac_try) 2>&5
47491 ac_status=$?
47492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47493 (exit $ac_status); }; } &&
47494 { ac_try='test -s conftest.$ac_objext'
47495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47496 (eval $ac_try) 2>&5
47497 ac_status=$?
47498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47499 (exit $ac_status); }; }; then
47500 glibcxx_cv_func__float_trig_use=yes
47501 else
47502 echo "$as_me: failed program was:" >&5
47503 sed 's/^/| /' conftest.$ac_ext >&5
47504
47505 glibcxx_cv_func__float_trig_use=no
47506 fi
47507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47508 ac_ext=c
47509 ac_cpp='$CPP $CPPFLAGS'
47510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47513
47514 fi
47515
47516 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
47517 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
47518 if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
47519
47520
47521
47522
47523
47524
47525
47526
47527
47528 for ac_func in _acosf _asinf _atanf \
47529 _cosf _sinf _tanf \
47530 _coshf _sinhf _tanhf
47531 do
47532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47533 echo "$as_me:$LINENO: checking for $ac_func" >&5
47534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47535 if eval "test \"\${$as_ac_var+set}\" = set"; then
47536 echo $ECHO_N "(cached) $ECHO_C" >&6
47537 else
47538 if test x$gcc_no_link = xyes; then
47539 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47540 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47541 { (exit 1); exit 1; }; }
47542 fi
47543 cat >conftest.$ac_ext <<_ACEOF
47544 /* confdefs.h. */
47545 _ACEOF
47546 cat confdefs.h >>conftest.$ac_ext
47547 cat >>conftest.$ac_ext <<_ACEOF
47548 /* end confdefs.h. */
47549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47551 #define $ac_func innocuous_$ac_func
47552
47553 /* System header to define __stub macros and hopefully few prototypes,
47554 which can conflict with char $ac_func (); below.
47555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47556 <limits.h> exists even on freestanding compilers. */
47557
47558 #ifdef __STDC__
47559 # include <limits.h>
47560 #else
47561 # include <assert.h>
47562 #endif
47563
47564 #undef $ac_func
47565
47566 /* Override any gcc2 internal prototype to avoid an error. */
47567 #ifdef __cplusplus
47568 extern "C"
47569 {
47570 #endif
47571 /* We use char because int might match the return type of a gcc2
47572 builtin and then its argument prototype would still apply. */
47573 char $ac_func ();
47574 /* The GNU C library defines this for functions which it implements
47575 to always fail with ENOSYS. Some functions are actually named
47576 something starting with __ and the normal name is an alias. */
47577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47578 choke me
47579 #else
47580 char (*f) () = $ac_func;
47581 #endif
47582 #ifdef __cplusplus
47583 }
47584 #endif
47585
47586 int
47587 main ()
47588 {
47589 return f != $ac_func;
47590 ;
47591 return 0;
47592 }
47593 _ACEOF
47594 rm -f conftest.$ac_objext conftest$ac_exeext
47595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47596 (eval $ac_link) 2>conftest.er1
47597 ac_status=$?
47598 grep -v '^ *+' conftest.er1 >conftest.err
47599 rm -f conftest.er1
47600 cat conftest.err >&5
47601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47602 (exit $ac_status); } &&
47603 { ac_try='test -z "$ac_c_werror_flag"
47604 || test ! -s conftest.err'
47605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47606 (eval $ac_try) 2>&5
47607 ac_status=$?
47608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47609 (exit $ac_status); }; } &&
47610 { ac_try='test -s conftest$ac_exeext'
47611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47612 (eval $ac_try) 2>&5
47613 ac_status=$?
47614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47615 (exit $ac_status); }; }; then
47616 eval "$as_ac_var=yes"
47617 else
47618 echo "$as_me: failed program was:" >&5
47619 sed 's/^/| /' conftest.$ac_ext >&5
47620
47621 eval "$as_ac_var=no"
47622 fi
47623 rm -f conftest.err conftest.$ac_objext \
47624 conftest$ac_exeext conftest.$ac_ext
47625 fi
47626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47628 if test `eval echo '${'$as_ac_var'}'` = yes; then
47629 cat >>confdefs.h <<_ACEOF
47630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47631 _ACEOF
47632
47633 fi
47634 done
47635
47636 fi
47637
47638
47639 echo "$as_me:$LINENO: checking for _float round functions" >&5
47640 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
47641 if test "${glibcxx_cv_func__float_round_use+set}" = set; then
47642 echo $ECHO_N "(cached) $ECHO_C" >&6
47643 else
47644
47645
47646
47647 ac_ext=cc
47648 ac_cpp='$CXXCPP $CPPFLAGS'
47649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47652
47653 cat >conftest.$ac_ext <<_ACEOF
47654 /* confdefs.h. */
47655 _ACEOF
47656 cat confdefs.h >>conftest.$ac_ext
47657 cat >>conftest.$ac_ext <<_ACEOF
47658 /* end confdefs.h. */
47659 #include <math.h>
47660 int
47661 main ()
47662 {
47663 `for x in _ceilf _floorf; do echo "$x (0);"; done`
47664 ;
47665 return 0;
47666 }
47667 _ACEOF
47668 rm -f conftest.$ac_objext
47669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47670 (eval $ac_compile) 2>conftest.er1
47671 ac_status=$?
47672 grep -v '^ *+' conftest.er1 >conftest.err
47673 rm -f conftest.er1
47674 cat conftest.err >&5
47675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47676 (exit $ac_status); } &&
47677 { ac_try='test -z "$ac_cxx_werror_flag"
47678 || test ! -s conftest.err'
47679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47680 (eval $ac_try) 2>&5
47681 ac_status=$?
47682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47683 (exit $ac_status); }; } &&
47684 { ac_try='test -s conftest.$ac_objext'
47685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47686 (eval $ac_try) 2>&5
47687 ac_status=$?
47688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47689 (exit $ac_status); }; }; then
47690 glibcxx_cv_func__float_round_use=yes
47691 else
47692 echo "$as_me: failed program was:" >&5
47693 sed 's/^/| /' conftest.$ac_ext >&5
47694
47695 glibcxx_cv_func__float_round_use=no
47696 fi
47697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47698 ac_ext=c
47699 ac_cpp='$CPP $CPPFLAGS'
47700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47703
47704 fi
47705
47706 echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
47707 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
47708 if test x$glibcxx_cv_func__float_round_use = x"yes"; then
47709
47710
47711 for ac_func in _ceilf _floorf
47712 do
47713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47714 echo "$as_me:$LINENO: checking for $ac_func" >&5
47715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47716 if eval "test \"\${$as_ac_var+set}\" = set"; then
47717 echo $ECHO_N "(cached) $ECHO_C" >&6
47718 else
47719 if test x$gcc_no_link = xyes; then
47720 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47721 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47722 { (exit 1); exit 1; }; }
47723 fi
47724 cat >conftest.$ac_ext <<_ACEOF
47725 /* confdefs.h. */
47726 _ACEOF
47727 cat confdefs.h >>conftest.$ac_ext
47728 cat >>conftest.$ac_ext <<_ACEOF
47729 /* end confdefs.h. */
47730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47732 #define $ac_func innocuous_$ac_func
47733
47734 /* System header to define __stub macros and hopefully few prototypes,
47735 which can conflict with char $ac_func (); below.
47736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47737 <limits.h> exists even on freestanding compilers. */
47738
47739 #ifdef __STDC__
47740 # include <limits.h>
47741 #else
47742 # include <assert.h>
47743 #endif
47744
47745 #undef $ac_func
47746
47747 /* Override any gcc2 internal prototype to avoid an error. */
47748 #ifdef __cplusplus
47749 extern "C"
47750 {
47751 #endif
47752 /* We use char because int might match the return type of a gcc2
47753 builtin and then its argument prototype would still apply. */
47754 char $ac_func ();
47755 /* The GNU C library defines this for functions which it implements
47756 to always fail with ENOSYS. Some functions are actually named
47757 something starting with __ and the normal name is an alias. */
47758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47759 choke me
47760 #else
47761 char (*f) () = $ac_func;
47762 #endif
47763 #ifdef __cplusplus
47764 }
47765 #endif
47766
47767 int
47768 main ()
47769 {
47770 return f != $ac_func;
47771 ;
47772 return 0;
47773 }
47774 _ACEOF
47775 rm -f conftest.$ac_objext conftest$ac_exeext
47776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47777 (eval $ac_link) 2>conftest.er1
47778 ac_status=$?
47779 grep -v '^ *+' conftest.er1 >conftest.err
47780 rm -f conftest.er1
47781 cat conftest.err >&5
47782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47783 (exit $ac_status); } &&
47784 { ac_try='test -z "$ac_c_werror_flag"
47785 || test ! -s conftest.err'
47786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47787 (eval $ac_try) 2>&5
47788 ac_status=$?
47789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47790 (exit $ac_status); }; } &&
47791 { ac_try='test -s conftest$ac_exeext'
47792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47793 (eval $ac_try) 2>&5
47794 ac_status=$?
47795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47796 (exit $ac_status); }; }; then
47797 eval "$as_ac_var=yes"
47798 else
47799 echo "$as_me: failed program was:" >&5
47800 sed 's/^/| /' conftest.$ac_ext >&5
47801
47802 eval "$as_ac_var=no"
47803 fi
47804 rm -f conftest.err conftest.$ac_objext \
47805 conftest$ac_exeext conftest.$ac_ext
47806 fi
47807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47809 if test `eval echo '${'$as_ac_var'}'` = yes; then
47810 cat >>confdefs.h <<_ACEOF
47811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47812 _ACEOF
47813
47814 fi
47815 done
47816
47817 fi
47818
47819
47820
47821 echo "$as_me:$LINENO: checking for _long double trig functions" >&5
47822 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
47823 if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
47824 echo $ECHO_N "(cached) $ECHO_C" >&6
47825 else
47826
47827
47828
47829 ac_ext=cc
47830 ac_cpp='$CXXCPP $CPPFLAGS'
47831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47834
47835 cat >conftest.$ac_ext <<_ACEOF
47836 /* confdefs.h. */
47837 _ACEOF
47838 cat confdefs.h >>conftest.$ac_ext
47839 cat >>conftest.$ac_ext <<_ACEOF
47840 /* end confdefs.h. */
47841 #include <math.h>
47842 int
47843 main ()
47844 {
47845 `for x in _acosl _asinl _atanl \
47846 _cosl _sinl _tanl \
47847 _coshl _sinhl _tanhl; do echo "$x (0);"; done`
47848 ;
47849 return 0;
47850 }
47851 _ACEOF
47852 rm -f conftest.$ac_objext
47853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47854 (eval $ac_compile) 2>conftest.er1
47855 ac_status=$?
47856 grep -v '^ *+' conftest.er1 >conftest.err
47857 rm -f conftest.er1
47858 cat conftest.err >&5
47859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47860 (exit $ac_status); } &&
47861 { ac_try='test -z "$ac_cxx_werror_flag"
47862 || test ! -s conftest.err'
47863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47864 (eval $ac_try) 2>&5
47865 ac_status=$?
47866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47867 (exit $ac_status); }; } &&
47868 { ac_try='test -s conftest.$ac_objext'
47869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47870 (eval $ac_try) 2>&5
47871 ac_status=$?
47872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47873 (exit $ac_status); }; }; then
47874 glibcxx_cv_func__long_double_trig_use=yes
47875 else
47876 echo "$as_me: failed program was:" >&5
47877 sed 's/^/| /' conftest.$ac_ext >&5
47878
47879 glibcxx_cv_func__long_double_trig_use=no
47880 fi
47881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47882 ac_ext=c
47883 ac_cpp='$CPP $CPPFLAGS'
47884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47887
47888 fi
47889
47890 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
47891 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
47892 if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
47893
47894
47895
47896
47897
47898
47899
47900
47901
47902 for ac_func in _acosl _asinl _atanl \
47903 _cosl _sinl _tanl \
47904 _coshl _sinhl _tanhl
47905 do
47906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47907 echo "$as_me:$LINENO: checking for $ac_func" >&5
47908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47909 if eval "test \"\${$as_ac_var+set}\" = set"; then
47910 echo $ECHO_N "(cached) $ECHO_C" >&6
47911 else
47912 if test x$gcc_no_link = xyes; then
47913 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47914 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47915 { (exit 1); exit 1; }; }
47916 fi
47917 cat >conftest.$ac_ext <<_ACEOF
47918 /* confdefs.h. */
47919 _ACEOF
47920 cat confdefs.h >>conftest.$ac_ext
47921 cat >>conftest.$ac_ext <<_ACEOF
47922 /* end confdefs.h. */
47923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
47925 #define $ac_func innocuous_$ac_func
47926
47927 /* System header to define __stub macros and hopefully few prototypes,
47928 which can conflict with char $ac_func (); below.
47929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47930 <limits.h> exists even on freestanding compilers. */
47931
47932 #ifdef __STDC__
47933 # include <limits.h>
47934 #else
47935 # include <assert.h>
47936 #endif
47937
47938 #undef $ac_func
47939
47940 /* Override any gcc2 internal prototype to avoid an error. */
47941 #ifdef __cplusplus
47942 extern "C"
47943 {
47944 #endif
47945 /* We use char because int might match the return type of a gcc2
47946 builtin and then its argument prototype would still apply. */
47947 char $ac_func ();
47948 /* The GNU C library defines this for functions which it implements
47949 to always fail with ENOSYS. Some functions are actually named
47950 something starting with __ and the normal name is an alias. */
47951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47952 choke me
47953 #else
47954 char (*f) () = $ac_func;
47955 #endif
47956 #ifdef __cplusplus
47957 }
47958 #endif
47959
47960 int
47961 main ()
47962 {
47963 return f != $ac_func;
47964 ;
47965 return 0;
47966 }
47967 _ACEOF
47968 rm -f conftest.$ac_objext conftest$ac_exeext
47969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47970 (eval $ac_link) 2>conftest.er1
47971 ac_status=$?
47972 grep -v '^ *+' conftest.er1 >conftest.err
47973 rm -f conftest.er1
47974 cat conftest.err >&5
47975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47976 (exit $ac_status); } &&
47977 { ac_try='test -z "$ac_c_werror_flag"
47978 || test ! -s conftest.err'
47979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47980 (eval $ac_try) 2>&5
47981 ac_status=$?
47982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47983 (exit $ac_status); }; } &&
47984 { ac_try='test -s conftest$ac_exeext'
47985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47986 (eval $ac_try) 2>&5
47987 ac_status=$?
47988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47989 (exit $ac_status); }; }; then
47990 eval "$as_ac_var=yes"
47991 else
47992 echo "$as_me: failed program was:" >&5
47993 sed 's/^/| /' conftest.$ac_ext >&5
47994
47995 eval "$as_ac_var=no"
47996 fi
47997 rm -f conftest.err conftest.$ac_objext \
47998 conftest$ac_exeext conftest.$ac_ext
47999 fi
48000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48002 if test `eval echo '${'$as_ac_var'}'` = yes; then
48003 cat >>confdefs.h <<_ACEOF
48004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48005 _ACEOF
48006
48007 fi
48008 done
48009
48010 fi
48011
48012
48013 echo "$as_me:$LINENO: checking for _long double round functions" >&5
48014 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
48015 if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
48016 echo $ECHO_N "(cached) $ECHO_C" >&6
48017 else
48018
48019
48020
48021 ac_ext=cc
48022 ac_cpp='$CXXCPP $CPPFLAGS'
48023 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48024 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48025 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48026
48027 cat >conftest.$ac_ext <<_ACEOF
48028 /* confdefs.h. */
48029 _ACEOF
48030 cat confdefs.h >>conftest.$ac_ext
48031 cat >>conftest.$ac_ext <<_ACEOF
48032 /* end confdefs.h. */
48033 #include <math.h>
48034 int
48035 main ()
48036 {
48037 `for x in _ceill _floorl; do echo "$x (0);"; done`
48038 ;
48039 return 0;
48040 }
48041 _ACEOF
48042 rm -f conftest.$ac_objext
48043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48044 (eval $ac_compile) 2>conftest.er1
48045 ac_status=$?
48046 grep -v '^ *+' conftest.er1 >conftest.err
48047 rm -f conftest.er1
48048 cat conftest.err >&5
48049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48050 (exit $ac_status); } &&
48051 { ac_try='test -z "$ac_cxx_werror_flag"
48052 || test ! -s conftest.err'
48053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48054 (eval $ac_try) 2>&5
48055 ac_status=$?
48056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48057 (exit $ac_status); }; } &&
48058 { ac_try='test -s conftest.$ac_objext'
48059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48060 (eval $ac_try) 2>&5
48061 ac_status=$?
48062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48063 (exit $ac_status); }; }; then
48064 glibcxx_cv_func__long_double_round_use=yes
48065 else
48066 echo "$as_me: failed program was:" >&5
48067 sed 's/^/| /' conftest.$ac_ext >&5
48068
48069 glibcxx_cv_func__long_double_round_use=no
48070 fi
48071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48072 ac_ext=c
48073 ac_cpp='$CPP $CPPFLAGS'
48074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48077
48078 fi
48079
48080 echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
48081 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
48082 if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
48083
48084
48085 for ac_func in _ceill _floorl
48086 do
48087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48088 echo "$as_me:$LINENO: checking for $ac_func" >&5
48089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48090 if eval "test \"\${$as_ac_var+set}\" = set"; then
48091 echo $ECHO_N "(cached) $ECHO_C" >&6
48092 else
48093 if test x$gcc_no_link = xyes; then
48094 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48095 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48096 { (exit 1); exit 1; }; }
48097 fi
48098 cat >conftest.$ac_ext <<_ACEOF
48099 /* confdefs.h. */
48100 _ACEOF
48101 cat confdefs.h >>conftest.$ac_ext
48102 cat >>conftest.$ac_ext <<_ACEOF
48103 /* end confdefs.h. */
48104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48106 #define $ac_func innocuous_$ac_func
48107
48108 /* System header to define __stub macros and hopefully few prototypes,
48109 which can conflict with char $ac_func (); below.
48110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48111 <limits.h> exists even on freestanding compilers. */
48112
48113 #ifdef __STDC__
48114 # include <limits.h>
48115 #else
48116 # include <assert.h>
48117 #endif
48118
48119 #undef $ac_func
48120
48121 /* Override any gcc2 internal prototype to avoid an error. */
48122 #ifdef __cplusplus
48123 extern "C"
48124 {
48125 #endif
48126 /* We use char because int might match the return type of a gcc2
48127 builtin and then its argument prototype would still apply. */
48128 char $ac_func ();
48129 /* The GNU C library defines this for functions which it implements
48130 to always fail with ENOSYS. Some functions are actually named
48131 something starting with __ and the normal name is an alias. */
48132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48133 choke me
48134 #else
48135 char (*f) () = $ac_func;
48136 #endif
48137 #ifdef __cplusplus
48138 }
48139 #endif
48140
48141 int
48142 main ()
48143 {
48144 return f != $ac_func;
48145 ;
48146 return 0;
48147 }
48148 _ACEOF
48149 rm -f conftest.$ac_objext conftest$ac_exeext
48150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48151 (eval $ac_link) 2>conftest.er1
48152 ac_status=$?
48153 grep -v '^ *+' conftest.er1 >conftest.err
48154 rm -f conftest.er1
48155 cat conftest.err >&5
48156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48157 (exit $ac_status); } &&
48158 { ac_try='test -z "$ac_c_werror_flag"
48159 || test ! -s conftest.err'
48160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48161 (eval $ac_try) 2>&5
48162 ac_status=$?
48163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48164 (exit $ac_status); }; } &&
48165 { ac_try='test -s conftest$ac_exeext'
48166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48167 (eval $ac_try) 2>&5
48168 ac_status=$?
48169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48170 (exit $ac_status); }; }; then
48171 eval "$as_ac_var=yes"
48172 else
48173 echo "$as_me: failed program was:" >&5
48174 sed 's/^/| /' conftest.$ac_ext >&5
48175
48176 eval "$as_ac_var=no"
48177 fi
48178 rm -f conftest.err conftest.$ac_objext \
48179 conftest$ac_exeext conftest.$ac_ext
48180 fi
48181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48183 if test `eval echo '${'$as_ac_var'}'` = yes; then
48184 cat >>confdefs.h <<_ACEOF
48185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48186 _ACEOF
48187
48188 fi
48189 done
48190
48191 fi
48192
48193
48194 LIBS="$ac_save_LIBS"
48195 CXXFLAGS="$ac_save_CXXFLAGS"
48196
48197
48198
48199 echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
48200 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
48201 if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
48202 if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
48203 echo $ECHO_N "(cached) $ECHO_C" >&6
48204 else
48205
48206
48207
48208 ac_ext=cc
48209 ac_cpp='$CXXCPP $CPPFLAGS'
48210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48213
48214 cat >conftest.$ac_ext <<_ACEOF
48215 /* confdefs.h. */
48216 _ACEOF
48217 cat confdefs.h >>conftest.$ac_ext
48218 cat >>conftest.$ac_ext <<_ACEOF
48219 /* end confdefs.h. */
48220 #include <math.h>
48221 int
48222 main ()
48223 {
48224 __builtin_abs(0);
48225 ;
48226 return 0;
48227 }
48228 _ACEOF
48229 rm -f conftest.$ac_objext
48230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48231 (eval $ac_compile) 2>conftest.er1
48232 ac_status=$?
48233 grep -v '^ *+' conftest.er1 >conftest.err
48234 rm -f conftest.er1
48235 cat conftest.err >&5
48236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48237 (exit $ac_status); } &&
48238 { ac_try='test -z "$ac_cxx_werror_flag"
48239 || test ! -s conftest.err'
48240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48241 (eval $ac_try) 2>&5
48242 ac_status=$?
48243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48244 (exit $ac_status); }; } &&
48245 { ac_try='test -s conftest.$ac_objext'
48246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48247 (eval $ac_try) 2>&5
48248 ac_status=$?
48249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48250 (exit $ac_status); }; }; then
48251 glibcxx_cv_func___builtin_abs_use=yes
48252 else
48253 echo "$as_me: failed program was:" >&5
48254 sed 's/^/| /' conftest.$ac_ext >&5
48255
48256 glibcxx_cv_func___builtin_abs_use=no
48257 fi
48258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48259 ac_ext=c
48260 ac_cpp='$CPP $CPPFLAGS'
48261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48264
48265
48266 fi
48267
48268 fi
48269 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
48270 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
48271 if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
48272 echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
48273 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
48274 if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
48275 if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
48276 echo $ECHO_N "(cached) $ECHO_C" >&6
48277 else
48278
48279 if test x$gcc_no_link = xyes; then
48280 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48281 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48282 { (exit 1); exit 1; }; }
48283 fi
48284 cat >conftest.$ac_ext <<_ACEOF
48285 /* confdefs.h. */
48286 _ACEOF
48287 cat confdefs.h >>conftest.$ac_ext
48288 cat >>conftest.$ac_ext <<_ACEOF
48289 /* end confdefs.h. */
48290 #include <math.h>
48291 int
48292 main ()
48293 {
48294 __builtin_abs(0);
48295 ;
48296 return 0;
48297 }
48298 _ACEOF
48299 rm -f conftest.$ac_objext conftest$ac_exeext
48300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48301 (eval $ac_link) 2>conftest.er1
48302 ac_status=$?
48303 grep -v '^ *+' conftest.er1 >conftest.err
48304 rm -f conftest.er1
48305 cat conftest.err >&5
48306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48307 (exit $ac_status); } &&
48308 { ac_try='test -z "$ac_c_werror_flag"
48309 || test ! -s conftest.err'
48310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48311 (eval $ac_try) 2>&5
48312 ac_status=$?
48313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48314 (exit $ac_status); }; } &&
48315 { ac_try='test -s conftest$ac_exeext'
48316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48317 (eval $ac_try) 2>&5
48318 ac_status=$?
48319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48320 (exit $ac_status); }; }; then
48321 glibcxx_cv_func___builtin_abs_link=yes
48322 else
48323 echo "$as_me: failed program was:" >&5
48324 sed 's/^/| /' conftest.$ac_ext >&5
48325
48326 glibcxx_cv_func___builtin_abs_link=no
48327 fi
48328 rm -f conftest.err conftest.$ac_objext \
48329 conftest$ac_exeext conftest.$ac_ext
48330
48331 fi
48332
48333 fi
48334 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
48335 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
48336 if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
48337 ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48338
48339 cat >>confdefs.h <<_ACEOF
48340 #define ${ac_tr_func} 1
48341 _ACEOF
48342
48343 fi
48344 fi
48345
48346
48347 echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
48348 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
48349 if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
48350 if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
48351 echo $ECHO_N "(cached) $ECHO_C" >&6
48352 else
48353
48354
48355
48356 ac_ext=cc
48357 ac_cpp='$CXXCPP $CPPFLAGS'
48358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48361
48362 cat >conftest.$ac_ext <<_ACEOF
48363 /* confdefs.h. */
48364 _ACEOF
48365 cat confdefs.h >>conftest.$ac_ext
48366 cat >>conftest.$ac_ext <<_ACEOF
48367 /* end confdefs.h. */
48368 #include <math.h>
48369 int
48370 main ()
48371 {
48372 __builtin_fabsf(0);
48373 ;
48374 return 0;
48375 }
48376 _ACEOF
48377 rm -f conftest.$ac_objext
48378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48379 (eval $ac_compile) 2>conftest.er1
48380 ac_status=$?
48381 grep -v '^ *+' conftest.er1 >conftest.err
48382 rm -f conftest.er1
48383 cat conftest.err >&5
48384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48385 (exit $ac_status); } &&
48386 { ac_try='test -z "$ac_cxx_werror_flag"
48387 || test ! -s conftest.err'
48388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48389 (eval $ac_try) 2>&5
48390 ac_status=$?
48391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48392 (exit $ac_status); }; } &&
48393 { ac_try='test -s conftest.$ac_objext'
48394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48395 (eval $ac_try) 2>&5
48396 ac_status=$?
48397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48398 (exit $ac_status); }; }; then
48399 glibcxx_cv_func___builtin_fabsf_use=yes
48400 else
48401 echo "$as_me: failed program was:" >&5
48402 sed 's/^/| /' conftest.$ac_ext >&5
48403
48404 glibcxx_cv_func___builtin_fabsf_use=no
48405 fi
48406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48407 ac_ext=c
48408 ac_cpp='$CPP $CPPFLAGS'
48409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48412
48413
48414 fi
48415
48416 fi
48417 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
48418 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
48419 if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
48420 echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
48421 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
48422 if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
48423 if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
48424 echo $ECHO_N "(cached) $ECHO_C" >&6
48425 else
48426
48427 if test x$gcc_no_link = xyes; then
48428 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48429 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48430 { (exit 1); exit 1; }; }
48431 fi
48432 cat >conftest.$ac_ext <<_ACEOF
48433 /* confdefs.h. */
48434 _ACEOF
48435 cat confdefs.h >>conftest.$ac_ext
48436 cat >>conftest.$ac_ext <<_ACEOF
48437 /* end confdefs.h. */
48438 #include <math.h>
48439 int
48440 main ()
48441 {
48442 __builtin_fabsf(0);
48443 ;
48444 return 0;
48445 }
48446 _ACEOF
48447 rm -f conftest.$ac_objext conftest$ac_exeext
48448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48449 (eval $ac_link) 2>conftest.er1
48450 ac_status=$?
48451 grep -v '^ *+' conftest.er1 >conftest.err
48452 rm -f conftest.er1
48453 cat conftest.err >&5
48454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48455 (exit $ac_status); } &&
48456 { ac_try='test -z "$ac_c_werror_flag"
48457 || test ! -s conftest.err'
48458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48459 (eval $ac_try) 2>&5
48460 ac_status=$?
48461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48462 (exit $ac_status); }; } &&
48463 { ac_try='test -s conftest$ac_exeext'
48464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48465 (eval $ac_try) 2>&5
48466 ac_status=$?
48467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48468 (exit $ac_status); }; }; then
48469 glibcxx_cv_func___builtin_fabsf_link=yes
48470 else
48471 echo "$as_me: failed program was:" >&5
48472 sed 's/^/| /' conftest.$ac_ext >&5
48473
48474 glibcxx_cv_func___builtin_fabsf_link=no
48475 fi
48476 rm -f conftest.err conftest.$ac_objext \
48477 conftest$ac_exeext conftest.$ac_ext
48478
48479 fi
48480
48481 fi
48482 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
48483 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
48484 if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
48485 ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48486
48487 cat >>confdefs.h <<_ACEOF
48488 #define ${ac_tr_func} 1
48489 _ACEOF
48490
48491 fi
48492 fi
48493
48494
48495 echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
48496 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
48497 if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
48498 if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
48499 echo $ECHO_N "(cached) $ECHO_C" >&6
48500 else
48501
48502
48503
48504 ac_ext=cc
48505 ac_cpp='$CXXCPP $CPPFLAGS'
48506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48509
48510 cat >conftest.$ac_ext <<_ACEOF
48511 /* confdefs.h. */
48512 _ACEOF
48513 cat confdefs.h >>conftest.$ac_ext
48514 cat >>conftest.$ac_ext <<_ACEOF
48515 /* end confdefs.h. */
48516 #include <math.h>
48517 int
48518 main ()
48519 {
48520 __builtin_fabs(0);
48521 ;
48522 return 0;
48523 }
48524 _ACEOF
48525 rm -f conftest.$ac_objext
48526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48527 (eval $ac_compile) 2>conftest.er1
48528 ac_status=$?
48529 grep -v '^ *+' conftest.er1 >conftest.err
48530 rm -f conftest.er1
48531 cat conftest.err >&5
48532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48533 (exit $ac_status); } &&
48534 { ac_try='test -z "$ac_cxx_werror_flag"
48535 || test ! -s conftest.err'
48536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48537 (eval $ac_try) 2>&5
48538 ac_status=$?
48539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48540 (exit $ac_status); }; } &&
48541 { ac_try='test -s conftest.$ac_objext'
48542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48543 (eval $ac_try) 2>&5
48544 ac_status=$?
48545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48546 (exit $ac_status); }; }; then
48547 glibcxx_cv_func___builtin_fabs_use=yes
48548 else
48549 echo "$as_me: failed program was:" >&5
48550 sed 's/^/| /' conftest.$ac_ext >&5
48551
48552 glibcxx_cv_func___builtin_fabs_use=no
48553 fi
48554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48555 ac_ext=c
48556 ac_cpp='$CPP $CPPFLAGS'
48557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48560
48561
48562 fi
48563
48564 fi
48565 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
48566 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
48567 if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
48568 echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
48569 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
48570 if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
48571 if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
48572 echo $ECHO_N "(cached) $ECHO_C" >&6
48573 else
48574
48575 if test x$gcc_no_link = xyes; then
48576 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48577 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48578 { (exit 1); exit 1; }; }
48579 fi
48580 cat >conftest.$ac_ext <<_ACEOF
48581 /* confdefs.h. */
48582 _ACEOF
48583 cat confdefs.h >>conftest.$ac_ext
48584 cat >>conftest.$ac_ext <<_ACEOF
48585 /* end confdefs.h. */
48586 #include <math.h>
48587 int
48588 main ()
48589 {
48590 __builtin_fabs(0);
48591 ;
48592 return 0;
48593 }
48594 _ACEOF
48595 rm -f conftest.$ac_objext conftest$ac_exeext
48596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48597 (eval $ac_link) 2>conftest.er1
48598 ac_status=$?
48599 grep -v '^ *+' conftest.er1 >conftest.err
48600 rm -f conftest.er1
48601 cat conftest.err >&5
48602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48603 (exit $ac_status); } &&
48604 { ac_try='test -z "$ac_c_werror_flag"
48605 || test ! -s conftest.err'
48606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48607 (eval $ac_try) 2>&5
48608 ac_status=$?
48609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48610 (exit $ac_status); }; } &&
48611 { ac_try='test -s conftest$ac_exeext'
48612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48613 (eval $ac_try) 2>&5
48614 ac_status=$?
48615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48616 (exit $ac_status); }; }; then
48617 glibcxx_cv_func___builtin_fabs_link=yes
48618 else
48619 echo "$as_me: failed program was:" >&5
48620 sed 's/^/| /' conftest.$ac_ext >&5
48621
48622 glibcxx_cv_func___builtin_fabs_link=no
48623 fi
48624 rm -f conftest.err conftest.$ac_objext \
48625 conftest$ac_exeext conftest.$ac_ext
48626
48627 fi
48628
48629 fi
48630 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
48631 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
48632 if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
48633 ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48634
48635 cat >>confdefs.h <<_ACEOF
48636 #define ${ac_tr_func} 1
48637 _ACEOF
48638
48639 fi
48640 fi
48641
48642
48643 echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
48644 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
48645 if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
48646 if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
48647 echo $ECHO_N "(cached) $ECHO_C" >&6
48648 else
48649
48650
48651
48652 ac_ext=cc
48653 ac_cpp='$CXXCPP $CPPFLAGS'
48654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48657
48658 cat >conftest.$ac_ext <<_ACEOF
48659 /* confdefs.h. */
48660 _ACEOF
48661 cat confdefs.h >>conftest.$ac_ext
48662 cat >>conftest.$ac_ext <<_ACEOF
48663 /* end confdefs.h. */
48664 #include <math.h>
48665 int
48666 main ()
48667 {
48668 __builtin_fabsl(0);
48669 ;
48670 return 0;
48671 }
48672 _ACEOF
48673 rm -f conftest.$ac_objext
48674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48675 (eval $ac_compile) 2>conftest.er1
48676 ac_status=$?
48677 grep -v '^ *+' conftest.er1 >conftest.err
48678 rm -f conftest.er1
48679 cat conftest.err >&5
48680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48681 (exit $ac_status); } &&
48682 { ac_try='test -z "$ac_cxx_werror_flag"
48683 || test ! -s conftest.err'
48684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48685 (eval $ac_try) 2>&5
48686 ac_status=$?
48687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48688 (exit $ac_status); }; } &&
48689 { ac_try='test -s conftest.$ac_objext'
48690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48691 (eval $ac_try) 2>&5
48692 ac_status=$?
48693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48694 (exit $ac_status); }; }; then
48695 glibcxx_cv_func___builtin_fabsl_use=yes
48696 else
48697 echo "$as_me: failed program was:" >&5
48698 sed 's/^/| /' conftest.$ac_ext >&5
48699
48700 glibcxx_cv_func___builtin_fabsl_use=no
48701 fi
48702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48703 ac_ext=c
48704 ac_cpp='$CPP $CPPFLAGS'
48705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48708
48709
48710 fi
48711
48712 fi
48713 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
48714 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
48715 if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
48716 echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
48717 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
48718 if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
48719 if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
48720 echo $ECHO_N "(cached) $ECHO_C" >&6
48721 else
48722
48723 if test x$gcc_no_link = xyes; then
48724 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48725 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48726 { (exit 1); exit 1; }; }
48727 fi
48728 cat >conftest.$ac_ext <<_ACEOF
48729 /* confdefs.h. */
48730 _ACEOF
48731 cat confdefs.h >>conftest.$ac_ext
48732 cat >>conftest.$ac_ext <<_ACEOF
48733 /* end confdefs.h. */
48734 #include <math.h>
48735 int
48736 main ()
48737 {
48738 __builtin_fabsl(0);
48739 ;
48740 return 0;
48741 }
48742 _ACEOF
48743 rm -f conftest.$ac_objext conftest$ac_exeext
48744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48745 (eval $ac_link) 2>conftest.er1
48746 ac_status=$?
48747 grep -v '^ *+' conftest.er1 >conftest.err
48748 rm -f conftest.er1
48749 cat conftest.err >&5
48750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48751 (exit $ac_status); } &&
48752 { ac_try='test -z "$ac_c_werror_flag"
48753 || test ! -s conftest.err'
48754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48755 (eval $ac_try) 2>&5
48756 ac_status=$?
48757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48758 (exit $ac_status); }; } &&
48759 { ac_try='test -s conftest$ac_exeext'
48760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48761 (eval $ac_try) 2>&5
48762 ac_status=$?
48763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48764 (exit $ac_status); }; }; then
48765 glibcxx_cv_func___builtin_fabsl_link=yes
48766 else
48767 echo "$as_me: failed program was:" >&5
48768 sed 's/^/| /' conftest.$ac_ext >&5
48769
48770 glibcxx_cv_func___builtin_fabsl_link=no
48771 fi
48772 rm -f conftest.err conftest.$ac_objext \
48773 conftest$ac_exeext conftest.$ac_ext
48774
48775 fi
48776
48777 fi
48778 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
48779 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
48780 if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
48781 ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48782
48783 cat >>confdefs.h <<_ACEOF
48784 #define ${ac_tr_func} 1
48785 _ACEOF
48786
48787 fi
48788 fi
48789
48790
48791 echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
48792 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
48793 if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
48794 if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
48795 echo $ECHO_N "(cached) $ECHO_C" >&6
48796 else
48797
48798
48799
48800 ac_ext=cc
48801 ac_cpp='$CXXCPP $CPPFLAGS'
48802 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48803 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48804 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48805
48806 cat >conftest.$ac_ext <<_ACEOF
48807 /* confdefs.h. */
48808 _ACEOF
48809 cat confdefs.h >>conftest.$ac_ext
48810 cat >>conftest.$ac_ext <<_ACEOF
48811 /* end confdefs.h. */
48812 #include <math.h>
48813 int
48814 main ()
48815 {
48816 __builtin_labs(0);
48817 ;
48818 return 0;
48819 }
48820 _ACEOF
48821 rm -f conftest.$ac_objext
48822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48823 (eval $ac_compile) 2>conftest.er1
48824 ac_status=$?
48825 grep -v '^ *+' conftest.er1 >conftest.err
48826 rm -f conftest.er1
48827 cat conftest.err >&5
48828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48829 (exit $ac_status); } &&
48830 { ac_try='test -z "$ac_cxx_werror_flag"
48831 || test ! -s conftest.err'
48832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48833 (eval $ac_try) 2>&5
48834 ac_status=$?
48835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48836 (exit $ac_status); }; } &&
48837 { ac_try='test -s conftest.$ac_objext'
48838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48839 (eval $ac_try) 2>&5
48840 ac_status=$?
48841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48842 (exit $ac_status); }; }; then
48843 glibcxx_cv_func___builtin_labs_use=yes
48844 else
48845 echo "$as_me: failed program was:" >&5
48846 sed 's/^/| /' conftest.$ac_ext >&5
48847
48848 glibcxx_cv_func___builtin_labs_use=no
48849 fi
48850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48851 ac_ext=c
48852 ac_cpp='$CPP $CPPFLAGS'
48853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48856
48857
48858 fi
48859
48860 fi
48861 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
48862 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
48863 if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
48864 echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
48865 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
48866 if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
48867 if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
48868 echo $ECHO_N "(cached) $ECHO_C" >&6
48869 else
48870
48871 if test x$gcc_no_link = xyes; then
48872 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48873 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48874 { (exit 1); exit 1; }; }
48875 fi
48876 cat >conftest.$ac_ext <<_ACEOF
48877 /* confdefs.h. */
48878 _ACEOF
48879 cat confdefs.h >>conftest.$ac_ext
48880 cat >>conftest.$ac_ext <<_ACEOF
48881 /* end confdefs.h. */
48882 #include <math.h>
48883 int
48884 main ()
48885 {
48886 __builtin_labs(0);
48887 ;
48888 return 0;
48889 }
48890 _ACEOF
48891 rm -f conftest.$ac_objext conftest$ac_exeext
48892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48893 (eval $ac_link) 2>conftest.er1
48894 ac_status=$?
48895 grep -v '^ *+' conftest.er1 >conftest.err
48896 rm -f conftest.er1
48897 cat conftest.err >&5
48898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48899 (exit $ac_status); } &&
48900 { ac_try='test -z "$ac_c_werror_flag"
48901 || test ! -s conftest.err'
48902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48903 (eval $ac_try) 2>&5
48904 ac_status=$?
48905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48906 (exit $ac_status); }; } &&
48907 { ac_try='test -s conftest$ac_exeext'
48908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48909 (eval $ac_try) 2>&5
48910 ac_status=$?
48911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48912 (exit $ac_status); }; }; then
48913 glibcxx_cv_func___builtin_labs_link=yes
48914 else
48915 echo "$as_me: failed program was:" >&5
48916 sed 's/^/| /' conftest.$ac_ext >&5
48917
48918 glibcxx_cv_func___builtin_labs_link=no
48919 fi
48920 rm -f conftest.err conftest.$ac_objext \
48921 conftest$ac_exeext conftest.$ac_ext
48922
48923 fi
48924
48925 fi
48926 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
48927 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
48928 if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
48929 ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48930
48931 cat >>confdefs.h <<_ACEOF
48932 #define ${ac_tr_func} 1
48933 _ACEOF
48934
48935 fi
48936 fi
48937
48938
48939
48940 echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
48941 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
48942 if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
48943 if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
48944 echo $ECHO_N "(cached) $ECHO_C" >&6
48945 else
48946
48947
48948
48949 ac_ext=cc
48950 ac_cpp='$CXXCPP $CPPFLAGS'
48951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48954
48955 cat >conftest.$ac_ext <<_ACEOF
48956 /* confdefs.h. */
48957 _ACEOF
48958 cat confdefs.h >>conftest.$ac_ext
48959 cat >>conftest.$ac_ext <<_ACEOF
48960 /* end confdefs.h. */
48961 #include <math.h>
48962 int
48963 main ()
48964 {
48965 __builtin_sqrtf(0);
48966 ;
48967 return 0;
48968 }
48969 _ACEOF
48970 rm -f conftest.$ac_objext
48971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48972 (eval $ac_compile) 2>conftest.er1
48973 ac_status=$?
48974 grep -v '^ *+' conftest.er1 >conftest.err
48975 rm -f conftest.er1
48976 cat conftest.err >&5
48977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48978 (exit $ac_status); } &&
48979 { ac_try='test -z "$ac_cxx_werror_flag"
48980 || test ! -s conftest.err'
48981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48982 (eval $ac_try) 2>&5
48983 ac_status=$?
48984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48985 (exit $ac_status); }; } &&
48986 { ac_try='test -s conftest.$ac_objext'
48987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48988 (eval $ac_try) 2>&5
48989 ac_status=$?
48990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48991 (exit $ac_status); }; }; then
48992 glibcxx_cv_func___builtin_sqrtf_use=yes
48993 else
48994 echo "$as_me: failed program was:" >&5
48995 sed 's/^/| /' conftest.$ac_ext >&5
48996
48997 glibcxx_cv_func___builtin_sqrtf_use=no
48998 fi
48999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49000 ac_ext=c
49001 ac_cpp='$CPP $CPPFLAGS'
49002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49005
49006
49007 fi
49008
49009 fi
49010 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
49011 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
49012 if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
49013 echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
49014 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
49015 if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
49016 if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
49017 echo $ECHO_N "(cached) $ECHO_C" >&6
49018 else
49019
49020 if test x$gcc_no_link = xyes; then
49021 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49022 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49023 { (exit 1); exit 1; }; }
49024 fi
49025 cat >conftest.$ac_ext <<_ACEOF
49026 /* confdefs.h. */
49027 _ACEOF
49028 cat confdefs.h >>conftest.$ac_ext
49029 cat >>conftest.$ac_ext <<_ACEOF
49030 /* end confdefs.h. */
49031 #include <math.h>
49032 int
49033 main ()
49034 {
49035 __builtin_sqrtf(0);
49036 ;
49037 return 0;
49038 }
49039 _ACEOF
49040 rm -f conftest.$ac_objext conftest$ac_exeext
49041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49042 (eval $ac_link) 2>conftest.er1
49043 ac_status=$?
49044 grep -v '^ *+' conftest.er1 >conftest.err
49045 rm -f conftest.er1
49046 cat conftest.err >&5
49047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49048 (exit $ac_status); } &&
49049 { ac_try='test -z "$ac_c_werror_flag"
49050 || test ! -s conftest.err'
49051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49052 (eval $ac_try) 2>&5
49053 ac_status=$?
49054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49055 (exit $ac_status); }; } &&
49056 { ac_try='test -s conftest$ac_exeext'
49057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49058 (eval $ac_try) 2>&5
49059 ac_status=$?
49060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49061 (exit $ac_status); }; }; then
49062 glibcxx_cv_func___builtin_sqrtf_link=yes
49063 else
49064 echo "$as_me: failed program was:" >&5
49065 sed 's/^/| /' conftest.$ac_ext >&5
49066
49067 glibcxx_cv_func___builtin_sqrtf_link=no
49068 fi
49069 rm -f conftest.err conftest.$ac_objext \
49070 conftest$ac_exeext conftest.$ac_ext
49071
49072 fi
49073
49074 fi
49075 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
49076 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
49077 if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
49078 ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49079
49080 cat >>confdefs.h <<_ACEOF
49081 #define ${ac_tr_func} 1
49082 _ACEOF
49083
49084 fi
49085 fi
49086
49087
49088 echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
49089 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
49090 if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
49091 if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
49092 echo $ECHO_N "(cached) $ECHO_C" >&6
49093 else
49094
49095
49096
49097 ac_ext=cc
49098 ac_cpp='$CXXCPP $CPPFLAGS'
49099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49102
49103 cat >conftest.$ac_ext <<_ACEOF
49104 /* confdefs.h. */
49105 _ACEOF
49106 cat confdefs.h >>conftest.$ac_ext
49107 cat >>conftest.$ac_ext <<_ACEOF
49108 /* end confdefs.h. */
49109 #include <math.h>
49110 int
49111 main ()
49112 {
49113 __builtin_sqrt(0);
49114 ;
49115 return 0;
49116 }
49117 _ACEOF
49118 rm -f conftest.$ac_objext
49119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49120 (eval $ac_compile) 2>conftest.er1
49121 ac_status=$?
49122 grep -v '^ *+' conftest.er1 >conftest.err
49123 rm -f conftest.er1
49124 cat conftest.err >&5
49125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49126 (exit $ac_status); } &&
49127 { ac_try='test -z "$ac_cxx_werror_flag"
49128 || test ! -s conftest.err'
49129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49130 (eval $ac_try) 2>&5
49131 ac_status=$?
49132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49133 (exit $ac_status); }; } &&
49134 { ac_try='test -s conftest.$ac_objext'
49135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49136 (eval $ac_try) 2>&5
49137 ac_status=$?
49138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49139 (exit $ac_status); }; }; then
49140 glibcxx_cv_func___builtin_sqrt_use=yes
49141 else
49142 echo "$as_me: failed program was:" >&5
49143 sed 's/^/| /' conftest.$ac_ext >&5
49144
49145 glibcxx_cv_func___builtin_sqrt_use=no
49146 fi
49147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49148 ac_ext=c
49149 ac_cpp='$CPP $CPPFLAGS'
49150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49153
49154
49155 fi
49156
49157 fi
49158 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
49159 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
49160 if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
49161 echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
49162 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
49163 if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
49164 if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
49165 echo $ECHO_N "(cached) $ECHO_C" >&6
49166 else
49167
49168 if test x$gcc_no_link = xyes; then
49169 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49171 { (exit 1); exit 1; }; }
49172 fi
49173 cat >conftest.$ac_ext <<_ACEOF
49174 /* confdefs.h. */
49175 _ACEOF
49176 cat confdefs.h >>conftest.$ac_ext
49177 cat >>conftest.$ac_ext <<_ACEOF
49178 /* end confdefs.h. */
49179 #include <math.h>
49180 int
49181 main ()
49182 {
49183 __builtin_sqrt(0);
49184 ;
49185 return 0;
49186 }
49187 _ACEOF
49188 rm -f conftest.$ac_objext conftest$ac_exeext
49189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49190 (eval $ac_link) 2>conftest.er1
49191 ac_status=$?
49192 grep -v '^ *+' conftest.er1 >conftest.err
49193 rm -f conftest.er1
49194 cat conftest.err >&5
49195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49196 (exit $ac_status); } &&
49197 { ac_try='test -z "$ac_c_werror_flag"
49198 || test ! -s conftest.err'
49199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49200 (eval $ac_try) 2>&5
49201 ac_status=$?
49202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49203 (exit $ac_status); }; } &&
49204 { ac_try='test -s conftest$ac_exeext'
49205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49206 (eval $ac_try) 2>&5
49207 ac_status=$?
49208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49209 (exit $ac_status); }; }; then
49210 glibcxx_cv_func___builtin_sqrt_link=yes
49211 else
49212 echo "$as_me: failed program was:" >&5
49213 sed 's/^/| /' conftest.$ac_ext >&5
49214
49215 glibcxx_cv_func___builtin_sqrt_link=no
49216 fi
49217 rm -f conftest.err conftest.$ac_objext \
49218 conftest$ac_exeext conftest.$ac_ext
49219
49220 fi
49221
49222 fi
49223 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
49224 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
49225 if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
49226 ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49227
49228 cat >>confdefs.h <<_ACEOF
49229 #define ${ac_tr_func} 1
49230 _ACEOF
49231
49232 fi
49233 fi
49234
49235
49236 echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
49237 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
49238 if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
49239 if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
49240 echo $ECHO_N "(cached) $ECHO_C" >&6
49241 else
49242
49243
49244
49245 ac_ext=cc
49246 ac_cpp='$CXXCPP $CPPFLAGS'
49247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49250
49251 cat >conftest.$ac_ext <<_ACEOF
49252 /* confdefs.h. */
49253 _ACEOF
49254 cat confdefs.h >>conftest.$ac_ext
49255 cat >>conftest.$ac_ext <<_ACEOF
49256 /* end confdefs.h. */
49257 #include <math.h>
49258 int
49259 main ()
49260 {
49261 __builtin_sqrtl(0);
49262 ;
49263 return 0;
49264 }
49265 _ACEOF
49266 rm -f conftest.$ac_objext
49267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49268 (eval $ac_compile) 2>conftest.er1
49269 ac_status=$?
49270 grep -v '^ *+' conftest.er1 >conftest.err
49271 rm -f conftest.er1
49272 cat conftest.err >&5
49273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49274 (exit $ac_status); } &&
49275 { ac_try='test -z "$ac_cxx_werror_flag"
49276 || test ! -s conftest.err'
49277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49278 (eval $ac_try) 2>&5
49279 ac_status=$?
49280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49281 (exit $ac_status); }; } &&
49282 { ac_try='test -s conftest.$ac_objext'
49283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49284 (eval $ac_try) 2>&5
49285 ac_status=$?
49286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49287 (exit $ac_status); }; }; then
49288 glibcxx_cv_func___builtin_sqrtl_use=yes
49289 else
49290 echo "$as_me: failed program was:" >&5
49291 sed 's/^/| /' conftest.$ac_ext >&5
49292
49293 glibcxx_cv_func___builtin_sqrtl_use=no
49294 fi
49295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49296 ac_ext=c
49297 ac_cpp='$CPP $CPPFLAGS'
49298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49301
49302
49303 fi
49304
49305 fi
49306 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
49307 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
49308 if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
49309 echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
49310 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
49311 if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
49312 if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
49313 echo $ECHO_N "(cached) $ECHO_C" >&6
49314 else
49315
49316 if test x$gcc_no_link = xyes; then
49317 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49318 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49319 { (exit 1); exit 1; }; }
49320 fi
49321 cat >conftest.$ac_ext <<_ACEOF
49322 /* confdefs.h. */
49323 _ACEOF
49324 cat confdefs.h >>conftest.$ac_ext
49325 cat >>conftest.$ac_ext <<_ACEOF
49326 /* end confdefs.h. */
49327 #include <math.h>
49328 int
49329 main ()
49330 {
49331 __builtin_sqrtl(0);
49332 ;
49333 return 0;
49334 }
49335 _ACEOF
49336 rm -f conftest.$ac_objext conftest$ac_exeext
49337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49338 (eval $ac_link) 2>conftest.er1
49339 ac_status=$?
49340 grep -v '^ *+' conftest.er1 >conftest.err
49341 rm -f conftest.er1
49342 cat conftest.err >&5
49343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49344 (exit $ac_status); } &&
49345 { ac_try='test -z "$ac_c_werror_flag"
49346 || test ! -s conftest.err'
49347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49348 (eval $ac_try) 2>&5
49349 ac_status=$?
49350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49351 (exit $ac_status); }; } &&
49352 { ac_try='test -s conftest$ac_exeext'
49353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49354 (eval $ac_try) 2>&5
49355 ac_status=$?
49356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49357 (exit $ac_status); }; }; then
49358 glibcxx_cv_func___builtin_sqrtl_link=yes
49359 else
49360 echo "$as_me: failed program was:" >&5
49361 sed 's/^/| /' conftest.$ac_ext >&5
49362
49363 glibcxx_cv_func___builtin_sqrtl_link=no
49364 fi
49365 rm -f conftest.err conftest.$ac_objext \
49366 conftest$ac_exeext conftest.$ac_ext
49367
49368 fi
49369
49370 fi
49371 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
49372 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
49373 if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
49374 ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49375
49376 cat >>confdefs.h <<_ACEOF
49377 #define ${ac_tr_func} 1
49378 _ACEOF
49379
49380 fi
49381 fi
49382
49383
49384
49385 echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
49386 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
49387 if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
49388 if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
49389 echo $ECHO_N "(cached) $ECHO_C" >&6
49390 else
49391
49392
49393
49394 ac_ext=cc
49395 ac_cpp='$CXXCPP $CPPFLAGS'
49396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49399
49400 cat >conftest.$ac_ext <<_ACEOF
49401 /* confdefs.h. */
49402 _ACEOF
49403 cat confdefs.h >>conftest.$ac_ext
49404 cat >>conftest.$ac_ext <<_ACEOF
49405 /* end confdefs.h. */
49406 #include <math.h>
49407 int
49408 main ()
49409 {
49410 __builtin_sinf(0);
49411 ;
49412 return 0;
49413 }
49414 _ACEOF
49415 rm -f conftest.$ac_objext
49416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49417 (eval $ac_compile) 2>conftest.er1
49418 ac_status=$?
49419 grep -v '^ *+' conftest.er1 >conftest.err
49420 rm -f conftest.er1
49421 cat conftest.err >&5
49422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49423 (exit $ac_status); } &&
49424 { ac_try='test -z "$ac_cxx_werror_flag"
49425 || test ! -s conftest.err'
49426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49427 (eval $ac_try) 2>&5
49428 ac_status=$?
49429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49430 (exit $ac_status); }; } &&
49431 { ac_try='test -s conftest.$ac_objext'
49432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49433 (eval $ac_try) 2>&5
49434 ac_status=$?
49435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49436 (exit $ac_status); }; }; then
49437 glibcxx_cv_func___builtin_sinf_use=yes
49438 else
49439 echo "$as_me: failed program was:" >&5
49440 sed 's/^/| /' conftest.$ac_ext >&5
49441
49442 glibcxx_cv_func___builtin_sinf_use=no
49443 fi
49444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49445 ac_ext=c
49446 ac_cpp='$CPP $CPPFLAGS'
49447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49450
49451
49452 fi
49453
49454 fi
49455 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
49456 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
49457 if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
49458 echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
49459 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
49460 if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
49461 if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
49462 echo $ECHO_N "(cached) $ECHO_C" >&6
49463 else
49464
49465 if test x$gcc_no_link = xyes; then
49466 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49467 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49468 { (exit 1); exit 1; }; }
49469 fi
49470 cat >conftest.$ac_ext <<_ACEOF
49471 /* confdefs.h. */
49472 _ACEOF
49473 cat confdefs.h >>conftest.$ac_ext
49474 cat >>conftest.$ac_ext <<_ACEOF
49475 /* end confdefs.h. */
49476 #include <math.h>
49477 int
49478 main ()
49479 {
49480 __builtin_sinf(0);
49481 ;
49482 return 0;
49483 }
49484 _ACEOF
49485 rm -f conftest.$ac_objext conftest$ac_exeext
49486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49487 (eval $ac_link) 2>conftest.er1
49488 ac_status=$?
49489 grep -v '^ *+' conftest.er1 >conftest.err
49490 rm -f conftest.er1
49491 cat conftest.err >&5
49492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49493 (exit $ac_status); } &&
49494 { ac_try='test -z "$ac_c_werror_flag"
49495 || test ! -s conftest.err'
49496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49497 (eval $ac_try) 2>&5
49498 ac_status=$?
49499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49500 (exit $ac_status); }; } &&
49501 { ac_try='test -s conftest$ac_exeext'
49502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49503 (eval $ac_try) 2>&5
49504 ac_status=$?
49505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49506 (exit $ac_status); }; }; then
49507 glibcxx_cv_func___builtin_sinf_link=yes
49508 else
49509 echo "$as_me: failed program was:" >&5
49510 sed 's/^/| /' conftest.$ac_ext >&5
49511
49512 glibcxx_cv_func___builtin_sinf_link=no
49513 fi
49514 rm -f conftest.err conftest.$ac_objext \
49515 conftest$ac_exeext conftest.$ac_ext
49516
49517 fi
49518
49519 fi
49520 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
49521 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
49522 if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
49523 ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49524
49525 cat >>confdefs.h <<_ACEOF
49526 #define ${ac_tr_func} 1
49527 _ACEOF
49528
49529 fi
49530 fi
49531
49532
49533 echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
49534 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
49535 if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
49536 if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
49537 echo $ECHO_N "(cached) $ECHO_C" >&6
49538 else
49539
49540
49541
49542 ac_ext=cc
49543 ac_cpp='$CXXCPP $CPPFLAGS'
49544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49547
49548 cat >conftest.$ac_ext <<_ACEOF
49549 /* confdefs.h. */
49550 _ACEOF
49551 cat confdefs.h >>conftest.$ac_ext
49552 cat >>conftest.$ac_ext <<_ACEOF
49553 /* end confdefs.h. */
49554 #include <math.h>
49555 int
49556 main ()
49557 {
49558 __builtin_sin(0);
49559 ;
49560 return 0;
49561 }
49562 _ACEOF
49563 rm -f conftest.$ac_objext
49564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49565 (eval $ac_compile) 2>conftest.er1
49566 ac_status=$?
49567 grep -v '^ *+' conftest.er1 >conftest.err
49568 rm -f conftest.er1
49569 cat conftest.err >&5
49570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49571 (exit $ac_status); } &&
49572 { ac_try='test -z "$ac_cxx_werror_flag"
49573 || test ! -s conftest.err'
49574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49575 (eval $ac_try) 2>&5
49576 ac_status=$?
49577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49578 (exit $ac_status); }; } &&
49579 { ac_try='test -s conftest.$ac_objext'
49580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49581 (eval $ac_try) 2>&5
49582 ac_status=$?
49583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49584 (exit $ac_status); }; }; then
49585 glibcxx_cv_func___builtin_sin_use=yes
49586 else
49587 echo "$as_me: failed program was:" >&5
49588 sed 's/^/| /' conftest.$ac_ext >&5
49589
49590 glibcxx_cv_func___builtin_sin_use=no
49591 fi
49592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49593 ac_ext=c
49594 ac_cpp='$CPP $CPPFLAGS'
49595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49598
49599
49600 fi
49601
49602 fi
49603 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
49604 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
49605 if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
49606 echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
49607 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
49608 if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
49609 if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
49610 echo $ECHO_N "(cached) $ECHO_C" >&6
49611 else
49612
49613 if test x$gcc_no_link = xyes; then
49614 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49616 { (exit 1); exit 1; }; }
49617 fi
49618 cat >conftest.$ac_ext <<_ACEOF
49619 /* confdefs.h. */
49620 _ACEOF
49621 cat confdefs.h >>conftest.$ac_ext
49622 cat >>conftest.$ac_ext <<_ACEOF
49623 /* end confdefs.h. */
49624 #include <math.h>
49625 int
49626 main ()
49627 {
49628 __builtin_sin(0);
49629 ;
49630 return 0;
49631 }
49632 _ACEOF
49633 rm -f conftest.$ac_objext conftest$ac_exeext
49634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49635 (eval $ac_link) 2>conftest.er1
49636 ac_status=$?
49637 grep -v '^ *+' conftest.er1 >conftest.err
49638 rm -f conftest.er1
49639 cat conftest.err >&5
49640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49641 (exit $ac_status); } &&
49642 { ac_try='test -z "$ac_c_werror_flag"
49643 || test ! -s conftest.err'
49644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49645 (eval $ac_try) 2>&5
49646 ac_status=$?
49647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49648 (exit $ac_status); }; } &&
49649 { ac_try='test -s conftest$ac_exeext'
49650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49651 (eval $ac_try) 2>&5
49652 ac_status=$?
49653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49654 (exit $ac_status); }; }; then
49655 glibcxx_cv_func___builtin_sin_link=yes
49656 else
49657 echo "$as_me: failed program was:" >&5
49658 sed 's/^/| /' conftest.$ac_ext >&5
49659
49660 glibcxx_cv_func___builtin_sin_link=no
49661 fi
49662 rm -f conftest.err conftest.$ac_objext \
49663 conftest$ac_exeext conftest.$ac_ext
49664
49665 fi
49666
49667 fi
49668 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
49669 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
49670 if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
49671 ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49672
49673 cat >>confdefs.h <<_ACEOF
49674 #define ${ac_tr_func} 1
49675 _ACEOF
49676
49677 fi
49678 fi
49679
49680
49681 echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
49682 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
49683 if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
49684 if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
49685 echo $ECHO_N "(cached) $ECHO_C" >&6
49686 else
49687
49688
49689
49690 ac_ext=cc
49691 ac_cpp='$CXXCPP $CPPFLAGS'
49692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49695
49696 cat >conftest.$ac_ext <<_ACEOF
49697 /* confdefs.h. */
49698 _ACEOF
49699 cat confdefs.h >>conftest.$ac_ext
49700 cat >>conftest.$ac_ext <<_ACEOF
49701 /* end confdefs.h. */
49702 #include <math.h>
49703 int
49704 main ()
49705 {
49706 __builtin_sinl(0);
49707 ;
49708 return 0;
49709 }
49710 _ACEOF
49711 rm -f conftest.$ac_objext
49712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49713 (eval $ac_compile) 2>conftest.er1
49714 ac_status=$?
49715 grep -v '^ *+' conftest.er1 >conftest.err
49716 rm -f conftest.er1
49717 cat conftest.err >&5
49718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49719 (exit $ac_status); } &&
49720 { ac_try='test -z "$ac_cxx_werror_flag"
49721 || test ! -s conftest.err'
49722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49723 (eval $ac_try) 2>&5
49724 ac_status=$?
49725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49726 (exit $ac_status); }; } &&
49727 { ac_try='test -s conftest.$ac_objext'
49728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49729 (eval $ac_try) 2>&5
49730 ac_status=$?
49731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49732 (exit $ac_status); }; }; then
49733 glibcxx_cv_func___builtin_sinl_use=yes
49734 else
49735 echo "$as_me: failed program was:" >&5
49736 sed 's/^/| /' conftest.$ac_ext >&5
49737
49738 glibcxx_cv_func___builtin_sinl_use=no
49739 fi
49740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49741 ac_ext=c
49742 ac_cpp='$CPP $CPPFLAGS'
49743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49746
49747
49748 fi
49749
49750 fi
49751 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
49752 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
49753 if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
49754 echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
49755 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
49756 if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
49757 if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
49758 echo $ECHO_N "(cached) $ECHO_C" >&6
49759 else
49760
49761 if test x$gcc_no_link = xyes; then
49762 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49763 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49764 { (exit 1); exit 1; }; }
49765 fi
49766 cat >conftest.$ac_ext <<_ACEOF
49767 /* confdefs.h. */
49768 _ACEOF
49769 cat confdefs.h >>conftest.$ac_ext
49770 cat >>conftest.$ac_ext <<_ACEOF
49771 /* end confdefs.h. */
49772 #include <math.h>
49773 int
49774 main ()
49775 {
49776 __builtin_sinl(0);
49777 ;
49778 return 0;
49779 }
49780 _ACEOF
49781 rm -f conftest.$ac_objext conftest$ac_exeext
49782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49783 (eval $ac_link) 2>conftest.er1
49784 ac_status=$?
49785 grep -v '^ *+' conftest.er1 >conftest.err
49786 rm -f conftest.er1
49787 cat conftest.err >&5
49788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49789 (exit $ac_status); } &&
49790 { ac_try='test -z "$ac_c_werror_flag"
49791 || test ! -s conftest.err'
49792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49793 (eval $ac_try) 2>&5
49794 ac_status=$?
49795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49796 (exit $ac_status); }; } &&
49797 { ac_try='test -s conftest$ac_exeext'
49798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49799 (eval $ac_try) 2>&5
49800 ac_status=$?
49801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49802 (exit $ac_status); }; }; then
49803 glibcxx_cv_func___builtin_sinl_link=yes
49804 else
49805 echo "$as_me: failed program was:" >&5
49806 sed 's/^/| /' conftest.$ac_ext >&5
49807
49808 glibcxx_cv_func___builtin_sinl_link=no
49809 fi
49810 rm -f conftest.err conftest.$ac_objext \
49811 conftest$ac_exeext conftest.$ac_ext
49812
49813 fi
49814
49815 fi
49816 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
49817 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
49818 if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
49819 ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49820
49821 cat >>confdefs.h <<_ACEOF
49822 #define ${ac_tr_func} 1
49823 _ACEOF
49824
49825 fi
49826 fi
49827
49828
49829
49830 echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
49831 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
49832 if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
49833 if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
49834 echo $ECHO_N "(cached) $ECHO_C" >&6
49835 else
49836
49837
49838
49839 ac_ext=cc
49840 ac_cpp='$CXXCPP $CPPFLAGS'
49841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49844
49845 cat >conftest.$ac_ext <<_ACEOF
49846 /* confdefs.h. */
49847 _ACEOF
49848 cat confdefs.h >>conftest.$ac_ext
49849 cat >>conftest.$ac_ext <<_ACEOF
49850 /* end confdefs.h. */
49851 #include <math.h>
49852 int
49853 main ()
49854 {
49855 __builtin_cosf(0);
49856 ;
49857 return 0;
49858 }
49859 _ACEOF
49860 rm -f conftest.$ac_objext
49861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49862 (eval $ac_compile) 2>conftest.er1
49863 ac_status=$?
49864 grep -v '^ *+' conftest.er1 >conftest.err
49865 rm -f conftest.er1
49866 cat conftest.err >&5
49867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49868 (exit $ac_status); } &&
49869 { ac_try='test -z "$ac_cxx_werror_flag"
49870 || test ! -s conftest.err'
49871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49872 (eval $ac_try) 2>&5
49873 ac_status=$?
49874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49875 (exit $ac_status); }; } &&
49876 { ac_try='test -s conftest.$ac_objext'
49877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49878 (eval $ac_try) 2>&5
49879 ac_status=$?
49880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49881 (exit $ac_status); }; }; then
49882 glibcxx_cv_func___builtin_cosf_use=yes
49883 else
49884 echo "$as_me: failed program was:" >&5
49885 sed 's/^/| /' conftest.$ac_ext >&5
49886
49887 glibcxx_cv_func___builtin_cosf_use=no
49888 fi
49889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49890 ac_ext=c
49891 ac_cpp='$CPP $CPPFLAGS'
49892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49895
49896
49897 fi
49898
49899 fi
49900 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
49901 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
49902 if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
49903 echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
49904 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
49905 if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
49906 if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
49907 echo $ECHO_N "(cached) $ECHO_C" >&6
49908 else
49909
49910 if test x$gcc_no_link = xyes; then
49911 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49912 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49913 { (exit 1); exit 1; }; }
49914 fi
49915 cat >conftest.$ac_ext <<_ACEOF
49916 /* confdefs.h. */
49917 _ACEOF
49918 cat confdefs.h >>conftest.$ac_ext
49919 cat >>conftest.$ac_ext <<_ACEOF
49920 /* end confdefs.h. */
49921 #include <math.h>
49922 int
49923 main ()
49924 {
49925 __builtin_cosf(0);
49926 ;
49927 return 0;
49928 }
49929 _ACEOF
49930 rm -f conftest.$ac_objext conftest$ac_exeext
49931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49932 (eval $ac_link) 2>conftest.er1
49933 ac_status=$?
49934 grep -v '^ *+' conftest.er1 >conftest.err
49935 rm -f conftest.er1
49936 cat conftest.err >&5
49937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49938 (exit $ac_status); } &&
49939 { ac_try='test -z "$ac_c_werror_flag"
49940 || test ! -s conftest.err'
49941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49942 (eval $ac_try) 2>&5
49943 ac_status=$?
49944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49945 (exit $ac_status); }; } &&
49946 { ac_try='test -s conftest$ac_exeext'
49947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49948 (eval $ac_try) 2>&5
49949 ac_status=$?
49950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49951 (exit $ac_status); }; }; then
49952 glibcxx_cv_func___builtin_cosf_link=yes
49953 else
49954 echo "$as_me: failed program was:" >&5
49955 sed 's/^/| /' conftest.$ac_ext >&5
49956
49957 glibcxx_cv_func___builtin_cosf_link=no
49958 fi
49959 rm -f conftest.err conftest.$ac_objext \
49960 conftest$ac_exeext conftest.$ac_ext
49961
49962 fi
49963
49964 fi
49965 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
49966 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
49967 if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
49968 ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49969
49970 cat >>confdefs.h <<_ACEOF
49971 #define ${ac_tr_func} 1
49972 _ACEOF
49973
49974 fi
49975 fi
49976
49977
49978 echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
49979 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
49980 if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
49981 if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
49982 echo $ECHO_N "(cached) $ECHO_C" >&6
49983 else
49984
49985
49986
49987 ac_ext=cc
49988 ac_cpp='$CXXCPP $CPPFLAGS'
49989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49992
49993 cat >conftest.$ac_ext <<_ACEOF
49994 /* confdefs.h. */
49995 _ACEOF
49996 cat confdefs.h >>conftest.$ac_ext
49997 cat >>conftest.$ac_ext <<_ACEOF
49998 /* end confdefs.h. */
49999 #include <math.h>
50000 int
50001 main ()
50002 {
50003 __builtin_cos(0);
50004 ;
50005 return 0;
50006 }
50007 _ACEOF
50008 rm -f conftest.$ac_objext
50009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50010 (eval $ac_compile) 2>conftest.er1
50011 ac_status=$?
50012 grep -v '^ *+' conftest.er1 >conftest.err
50013 rm -f conftest.er1
50014 cat conftest.err >&5
50015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50016 (exit $ac_status); } &&
50017 { ac_try='test -z "$ac_cxx_werror_flag"
50018 || test ! -s conftest.err'
50019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50020 (eval $ac_try) 2>&5
50021 ac_status=$?
50022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50023 (exit $ac_status); }; } &&
50024 { ac_try='test -s conftest.$ac_objext'
50025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50026 (eval $ac_try) 2>&5
50027 ac_status=$?
50028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50029 (exit $ac_status); }; }; then
50030 glibcxx_cv_func___builtin_cos_use=yes
50031 else
50032 echo "$as_me: failed program was:" >&5
50033 sed 's/^/| /' conftest.$ac_ext >&5
50034
50035 glibcxx_cv_func___builtin_cos_use=no
50036 fi
50037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50038 ac_ext=c
50039 ac_cpp='$CPP $CPPFLAGS'
50040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50043
50044
50045 fi
50046
50047 fi
50048 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
50049 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
50050 if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
50051 echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
50052 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
50053 if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
50054 if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
50055 echo $ECHO_N "(cached) $ECHO_C" >&6
50056 else
50057
50058 if test x$gcc_no_link = xyes; then
50059 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50060 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50061 { (exit 1); exit 1; }; }
50062 fi
50063 cat >conftest.$ac_ext <<_ACEOF
50064 /* confdefs.h. */
50065 _ACEOF
50066 cat confdefs.h >>conftest.$ac_ext
50067 cat >>conftest.$ac_ext <<_ACEOF
50068 /* end confdefs.h. */
50069 #include <math.h>
50070 int
50071 main ()
50072 {
50073 __builtin_cos(0);
50074 ;
50075 return 0;
50076 }
50077 _ACEOF
50078 rm -f conftest.$ac_objext conftest$ac_exeext
50079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50080 (eval $ac_link) 2>conftest.er1
50081 ac_status=$?
50082 grep -v '^ *+' conftest.er1 >conftest.err
50083 rm -f conftest.er1
50084 cat conftest.err >&5
50085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50086 (exit $ac_status); } &&
50087 { ac_try='test -z "$ac_c_werror_flag"
50088 || test ! -s conftest.err'
50089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50090 (eval $ac_try) 2>&5
50091 ac_status=$?
50092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50093 (exit $ac_status); }; } &&
50094 { ac_try='test -s conftest$ac_exeext'
50095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50096 (eval $ac_try) 2>&5
50097 ac_status=$?
50098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50099 (exit $ac_status); }; }; then
50100 glibcxx_cv_func___builtin_cos_link=yes
50101 else
50102 echo "$as_me: failed program was:" >&5
50103 sed 's/^/| /' conftest.$ac_ext >&5
50104
50105 glibcxx_cv_func___builtin_cos_link=no
50106 fi
50107 rm -f conftest.err conftest.$ac_objext \
50108 conftest$ac_exeext conftest.$ac_ext
50109
50110 fi
50111
50112 fi
50113 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
50114 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
50115 if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
50116 ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50117
50118 cat >>confdefs.h <<_ACEOF
50119 #define ${ac_tr_func} 1
50120 _ACEOF
50121
50122 fi
50123 fi
50124
50125
50126 echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
50127 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
50128 if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
50129 if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
50130 echo $ECHO_N "(cached) $ECHO_C" >&6
50131 else
50132
50133
50134
50135 ac_ext=cc
50136 ac_cpp='$CXXCPP $CPPFLAGS'
50137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50140
50141 cat >conftest.$ac_ext <<_ACEOF
50142 /* confdefs.h. */
50143 _ACEOF
50144 cat confdefs.h >>conftest.$ac_ext
50145 cat >>conftest.$ac_ext <<_ACEOF
50146 /* end confdefs.h. */
50147 #include <math.h>
50148 int
50149 main ()
50150 {
50151 __builtin_cosl(0);
50152 ;
50153 return 0;
50154 }
50155 _ACEOF
50156 rm -f conftest.$ac_objext
50157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50158 (eval $ac_compile) 2>conftest.er1
50159 ac_status=$?
50160 grep -v '^ *+' conftest.er1 >conftest.err
50161 rm -f conftest.er1
50162 cat conftest.err >&5
50163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50164 (exit $ac_status); } &&
50165 { ac_try='test -z "$ac_cxx_werror_flag"
50166 || test ! -s conftest.err'
50167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50168 (eval $ac_try) 2>&5
50169 ac_status=$?
50170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50171 (exit $ac_status); }; } &&
50172 { ac_try='test -s conftest.$ac_objext'
50173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50174 (eval $ac_try) 2>&5
50175 ac_status=$?
50176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50177 (exit $ac_status); }; }; then
50178 glibcxx_cv_func___builtin_cosl_use=yes
50179 else
50180 echo "$as_me: failed program was:" >&5
50181 sed 's/^/| /' conftest.$ac_ext >&5
50182
50183 glibcxx_cv_func___builtin_cosl_use=no
50184 fi
50185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50186 ac_ext=c
50187 ac_cpp='$CPP $CPPFLAGS'
50188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50191
50192
50193 fi
50194
50195 fi
50196 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
50197 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
50198 if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
50199 echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
50200 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
50201 if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
50202 if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
50203 echo $ECHO_N "(cached) $ECHO_C" >&6
50204 else
50205
50206 if test x$gcc_no_link = xyes; then
50207 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50208 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50209 { (exit 1); exit 1; }; }
50210 fi
50211 cat >conftest.$ac_ext <<_ACEOF
50212 /* confdefs.h. */
50213 _ACEOF
50214 cat confdefs.h >>conftest.$ac_ext
50215 cat >>conftest.$ac_ext <<_ACEOF
50216 /* end confdefs.h. */
50217 #include <math.h>
50218 int
50219 main ()
50220 {
50221 __builtin_cosl(0);
50222 ;
50223 return 0;
50224 }
50225 _ACEOF
50226 rm -f conftest.$ac_objext conftest$ac_exeext
50227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50228 (eval $ac_link) 2>conftest.er1
50229 ac_status=$?
50230 grep -v '^ *+' conftest.er1 >conftest.err
50231 rm -f conftest.er1
50232 cat conftest.err >&5
50233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50234 (exit $ac_status); } &&
50235 { ac_try='test -z "$ac_c_werror_flag"
50236 || test ! -s conftest.err'
50237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50238 (eval $ac_try) 2>&5
50239 ac_status=$?
50240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50241 (exit $ac_status); }; } &&
50242 { ac_try='test -s conftest$ac_exeext'
50243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50244 (eval $ac_try) 2>&5
50245 ac_status=$?
50246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50247 (exit $ac_status); }; }; then
50248 glibcxx_cv_func___builtin_cosl_link=yes
50249 else
50250 echo "$as_me: failed program was:" >&5
50251 sed 's/^/| /' conftest.$ac_ext >&5
50252
50253 glibcxx_cv_func___builtin_cosl_link=no
50254 fi
50255 rm -f conftest.err conftest.$ac_objext \
50256 conftest$ac_exeext conftest.$ac_ext
50257
50258 fi
50259
50260 fi
50261 echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
50262 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
50263 if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
50264 ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50265
50266 cat >>confdefs.h <<_ACEOF
50267 #define ${ac_tr_func} 1
50268 _ACEOF
50269
50270 fi
50271 fi
50272
50273
50274
50275
50276 echo "$as_me:$LINENO: checking for main in -lm" >&5
50277 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
50278 if test "${ac_cv_lib_m_main+set}" = set; then
50279 echo $ECHO_N "(cached) $ECHO_C" >&6
50280 else
50281 ac_check_lib_save_LIBS=$LIBS
50282 LIBS="-lm $LIBS"
50283 if test x$gcc_no_link = xyes; then
50284 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50285 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50286 { (exit 1); exit 1; }; }
50287 fi
50288 cat >conftest.$ac_ext <<_ACEOF
50289 /* confdefs.h. */
50290 _ACEOF
50291 cat confdefs.h >>conftest.$ac_ext
50292 cat >>conftest.$ac_ext <<_ACEOF
50293 /* end confdefs.h. */
50294
50295
50296 int
50297 main ()
50298 {
50299 main ();
50300 ;
50301 return 0;
50302 }
50303 _ACEOF
50304 rm -f conftest.$ac_objext conftest$ac_exeext
50305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50306 (eval $ac_link) 2>conftest.er1
50307 ac_status=$?
50308 grep -v '^ *+' conftest.er1 >conftest.err
50309 rm -f conftest.er1
50310 cat conftest.err >&5
50311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50312 (exit $ac_status); } &&
50313 { ac_try='test -z "$ac_c_werror_flag"
50314 || test ! -s conftest.err'
50315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50316 (eval $ac_try) 2>&5
50317 ac_status=$?
50318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50319 (exit $ac_status); }; } &&
50320 { ac_try='test -s conftest$ac_exeext'
50321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50322 (eval $ac_try) 2>&5
50323 ac_status=$?
50324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50325 (exit $ac_status); }; }; then
50326 ac_cv_lib_m_main=yes
50327 else
50328 echo "$as_me: failed program was:" >&5
50329 sed 's/^/| /' conftest.$ac_ext >&5
50330
50331 ac_cv_lib_m_main=no
50332 fi
50333 rm -f conftest.err conftest.$ac_objext \
50334 conftest$ac_exeext conftest.$ac_ext
50335 LIBS=$ac_check_lib_save_LIBS
50336 fi
50337 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
50338 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
50339 if test $ac_cv_lib_m_main = yes; then
50340 cat >>confdefs.h <<_ACEOF
50341 #define HAVE_LIBM 1
50342 _ACEOF
50343
50344 LIBS="-lm $LIBS"
50345
50346 fi
50347
50348
50349 for ac_func in copysignf
50350 do
50351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50352 echo "$as_me:$LINENO: checking for $ac_func" >&5
50353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50354 if eval "test \"\${$as_ac_var+set}\" = set"; then
50355 echo $ECHO_N "(cached) $ECHO_C" >&6
50356 else
50357 if test x$gcc_no_link = xyes; then
50358 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50359 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50360 { (exit 1); exit 1; }; }
50361 fi
50362 cat >conftest.$ac_ext <<_ACEOF
50363 /* confdefs.h. */
50364 _ACEOF
50365 cat confdefs.h >>conftest.$ac_ext
50366 cat >>conftest.$ac_ext <<_ACEOF
50367 /* end confdefs.h. */
50368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50370 #define $ac_func innocuous_$ac_func
50371
50372 /* System header to define __stub macros and hopefully few prototypes,
50373 which can conflict with char $ac_func (); below.
50374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50375 <limits.h> exists even on freestanding compilers. */
50376
50377 #ifdef __STDC__
50378 # include <limits.h>
50379 #else
50380 # include <assert.h>
50381 #endif
50382
50383 #undef $ac_func
50384
50385 /* Override any gcc2 internal prototype to avoid an error. */
50386 #ifdef __cplusplus
50387 extern "C"
50388 {
50389 #endif
50390 /* We use char because int might match the return type of a gcc2
50391 builtin and then its argument prototype would still apply. */
50392 char $ac_func ();
50393 /* The GNU C library defines this for functions which it implements
50394 to always fail with ENOSYS. Some functions are actually named
50395 something starting with __ and the normal name is an alias. */
50396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50397 choke me
50398 #else
50399 char (*f) () = $ac_func;
50400 #endif
50401 #ifdef __cplusplus
50402 }
50403 #endif
50404
50405 int
50406 main ()
50407 {
50408 return f != $ac_func;
50409 ;
50410 return 0;
50411 }
50412 _ACEOF
50413 rm -f conftest.$ac_objext conftest$ac_exeext
50414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50415 (eval $ac_link) 2>conftest.er1
50416 ac_status=$?
50417 grep -v '^ *+' conftest.er1 >conftest.err
50418 rm -f conftest.er1
50419 cat conftest.err >&5
50420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50421 (exit $ac_status); } &&
50422 { ac_try='test -z "$ac_c_werror_flag"
50423 || test ! -s conftest.err'
50424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50425 (eval $ac_try) 2>&5
50426 ac_status=$?
50427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50428 (exit $ac_status); }; } &&
50429 { ac_try='test -s conftest$ac_exeext'
50430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50431 (eval $ac_try) 2>&5
50432 ac_status=$?
50433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50434 (exit $ac_status); }; }; then
50435 eval "$as_ac_var=yes"
50436 else
50437 echo "$as_me: failed program was:" >&5
50438 sed 's/^/| /' conftest.$ac_ext >&5
50439
50440 eval "$as_ac_var=no"
50441 fi
50442 rm -f conftest.err conftest.$ac_objext \
50443 conftest$ac_exeext conftest.$ac_ext
50444 fi
50445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50447 if test `eval echo '${'$as_ac_var'}'` = yes; then
50448 cat >>confdefs.h <<_ACEOF
50449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50450 _ACEOF
50451
50452 else
50453 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
50454 fi
50455 done
50456
50457
50458
50459 for ac_func in __signbit
50460 do
50461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50462 echo "$as_me:$LINENO: checking for $ac_func" >&5
50463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50464 if eval "test \"\${$as_ac_var+set}\" = set"; then
50465 echo $ECHO_N "(cached) $ECHO_C" >&6
50466 else
50467 if test x$gcc_no_link = xyes; then
50468 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50469 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50470 { (exit 1); exit 1; }; }
50471 fi
50472 cat >conftest.$ac_ext <<_ACEOF
50473 /* confdefs.h. */
50474 _ACEOF
50475 cat confdefs.h >>conftest.$ac_ext
50476 cat >>conftest.$ac_ext <<_ACEOF
50477 /* end confdefs.h. */
50478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50480 #define $ac_func innocuous_$ac_func
50481
50482 /* System header to define __stub macros and hopefully few prototypes,
50483 which can conflict with char $ac_func (); below.
50484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50485 <limits.h> exists even on freestanding compilers. */
50486
50487 #ifdef __STDC__
50488 # include <limits.h>
50489 #else
50490 # include <assert.h>
50491 #endif
50492
50493 #undef $ac_func
50494
50495 /* Override any gcc2 internal prototype to avoid an error. */
50496 #ifdef __cplusplus
50497 extern "C"
50498 {
50499 #endif
50500 /* We use char because int might match the return type of a gcc2
50501 builtin and then its argument prototype would still apply. */
50502 char $ac_func ();
50503 /* The GNU C library defines this for functions which it implements
50504 to always fail with ENOSYS. Some functions are actually named
50505 something starting with __ and the normal name is an alias. */
50506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50507 choke me
50508 #else
50509 char (*f) () = $ac_func;
50510 #endif
50511 #ifdef __cplusplus
50512 }
50513 #endif
50514
50515 int
50516 main ()
50517 {
50518 return f != $ac_func;
50519 ;
50520 return 0;
50521 }
50522 _ACEOF
50523 rm -f conftest.$ac_objext conftest$ac_exeext
50524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50525 (eval $ac_link) 2>conftest.er1
50526 ac_status=$?
50527 grep -v '^ *+' conftest.er1 >conftest.err
50528 rm -f conftest.er1
50529 cat conftest.err >&5
50530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50531 (exit $ac_status); } &&
50532 { ac_try='test -z "$ac_c_werror_flag"
50533 || test ! -s conftest.err'
50534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50535 (eval $ac_try) 2>&5
50536 ac_status=$?
50537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50538 (exit $ac_status); }; } &&
50539 { ac_try='test -s conftest$ac_exeext'
50540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50541 (eval $ac_try) 2>&5
50542 ac_status=$?
50543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50544 (exit $ac_status); }; }; then
50545 eval "$as_ac_var=yes"
50546 else
50547 echo "$as_me: failed program was:" >&5
50548 sed 's/^/| /' conftest.$ac_ext >&5
50549
50550 eval "$as_ac_var=no"
50551 fi
50552 rm -f conftest.err conftest.$ac_objext \
50553 conftest$ac_exeext conftest.$ac_ext
50554 fi
50555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50557 if test `eval echo '${'$as_ac_var'}'` = yes; then
50558 cat >>confdefs.h <<_ACEOF
50559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50560 _ACEOF
50561
50562 else
50563 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
50564 fi
50565 done
50566
50567
50568
50569 for ac_func in __signbitf
50570 do
50571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50572 echo "$as_me:$LINENO: checking for $ac_func" >&5
50573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50574 if eval "test \"\${$as_ac_var+set}\" = set"; then
50575 echo $ECHO_N "(cached) $ECHO_C" >&6
50576 else
50577 if test x$gcc_no_link = xyes; then
50578 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50579 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50580 { (exit 1); exit 1; }; }
50581 fi
50582 cat >conftest.$ac_ext <<_ACEOF
50583 /* confdefs.h. */
50584 _ACEOF
50585 cat confdefs.h >>conftest.$ac_ext
50586 cat >>conftest.$ac_ext <<_ACEOF
50587 /* end confdefs.h. */
50588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50590 #define $ac_func innocuous_$ac_func
50591
50592 /* System header to define __stub macros and hopefully few prototypes,
50593 which can conflict with char $ac_func (); below.
50594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50595 <limits.h> exists even on freestanding compilers. */
50596
50597 #ifdef __STDC__
50598 # include <limits.h>
50599 #else
50600 # include <assert.h>
50601 #endif
50602
50603 #undef $ac_func
50604
50605 /* Override any gcc2 internal prototype to avoid an error. */
50606 #ifdef __cplusplus
50607 extern "C"
50608 {
50609 #endif
50610 /* We use char because int might match the return type of a gcc2
50611 builtin and then its argument prototype would still apply. */
50612 char $ac_func ();
50613 /* The GNU C library defines this for functions which it implements
50614 to always fail with ENOSYS. Some functions are actually named
50615 something starting with __ and the normal name is an alias. */
50616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50617 choke me
50618 #else
50619 char (*f) () = $ac_func;
50620 #endif
50621 #ifdef __cplusplus
50622 }
50623 #endif
50624
50625 int
50626 main ()
50627 {
50628 return f != $ac_func;
50629 ;
50630 return 0;
50631 }
50632 _ACEOF
50633 rm -f conftest.$ac_objext conftest$ac_exeext
50634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50635 (eval $ac_link) 2>conftest.er1
50636 ac_status=$?
50637 grep -v '^ *+' conftest.er1 >conftest.err
50638 rm -f conftest.er1
50639 cat conftest.err >&5
50640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50641 (exit $ac_status); } &&
50642 { ac_try='test -z "$ac_c_werror_flag"
50643 || test ! -s conftest.err'
50644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50645 (eval $ac_try) 2>&5
50646 ac_status=$?
50647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50648 (exit $ac_status); }; } &&
50649 { ac_try='test -s conftest$ac_exeext'
50650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50651 (eval $ac_try) 2>&5
50652 ac_status=$?
50653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50654 (exit $ac_status); }; }; then
50655 eval "$as_ac_var=yes"
50656 else
50657 echo "$as_me: failed program was:" >&5
50658 sed 's/^/| /' conftest.$ac_ext >&5
50659
50660 eval "$as_ac_var=no"
50661 fi
50662 rm -f conftest.err conftest.$ac_objext \
50663 conftest$ac_exeext conftest.$ac_ext
50664 fi
50665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50667 if test `eval echo '${'$as_ac_var'}'` = yes; then
50668 cat >>confdefs.h <<_ACEOF
50669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50670 _ACEOF
50671
50672 else
50673 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
50674 fi
50675 done
50676
50677
50678 if test x$ac_cv_func_copysignl = x"yes"; then
50679
50680 for ac_func in __signbitl
50681 do
50682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50683 echo "$as_me:$LINENO: checking for $ac_func" >&5
50684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50685 if eval "test \"\${$as_ac_var+set}\" = set"; then
50686 echo $ECHO_N "(cached) $ECHO_C" >&6
50687 else
50688 if test x$gcc_no_link = xyes; then
50689 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50690 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50691 { (exit 1); exit 1; }; }
50692 fi
50693 cat >conftest.$ac_ext <<_ACEOF
50694 /* confdefs.h. */
50695 _ACEOF
50696 cat confdefs.h >>conftest.$ac_ext
50697 cat >>conftest.$ac_ext <<_ACEOF
50698 /* end confdefs.h. */
50699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50701 #define $ac_func innocuous_$ac_func
50702
50703 /* System header to define __stub macros and hopefully few prototypes,
50704 which can conflict with char $ac_func (); below.
50705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50706 <limits.h> exists even on freestanding compilers. */
50707
50708 #ifdef __STDC__
50709 # include <limits.h>
50710 #else
50711 # include <assert.h>
50712 #endif
50713
50714 #undef $ac_func
50715
50716 /* Override any gcc2 internal prototype to avoid an error. */
50717 #ifdef __cplusplus
50718 extern "C"
50719 {
50720 #endif
50721 /* We use char because int might match the return type of a gcc2
50722 builtin and then its argument prototype would still apply. */
50723 char $ac_func ();
50724 /* The GNU C library defines this for functions which it implements
50725 to always fail with ENOSYS. Some functions are actually named
50726 something starting with __ and the normal name is an alias. */
50727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50728 choke me
50729 #else
50730 char (*f) () = $ac_func;
50731 #endif
50732 #ifdef __cplusplus
50733 }
50734 #endif
50735
50736 int
50737 main ()
50738 {
50739 return f != $ac_func;
50740 ;
50741 return 0;
50742 }
50743 _ACEOF
50744 rm -f conftest.$ac_objext conftest$ac_exeext
50745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50746 (eval $ac_link) 2>conftest.er1
50747 ac_status=$?
50748 grep -v '^ *+' conftest.er1 >conftest.err
50749 rm -f conftest.er1
50750 cat conftest.err >&5
50751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50752 (exit $ac_status); } &&
50753 { ac_try='test -z "$ac_c_werror_flag"
50754 || test ! -s conftest.err'
50755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50756 (eval $ac_try) 2>&5
50757 ac_status=$?
50758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50759 (exit $ac_status); }; } &&
50760 { ac_try='test -s conftest$ac_exeext'
50761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50762 (eval $ac_try) 2>&5
50763 ac_status=$?
50764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50765 (exit $ac_status); }; }; then
50766 eval "$as_ac_var=yes"
50767 else
50768 echo "$as_me: failed program was:" >&5
50769 sed 's/^/| /' conftest.$ac_ext >&5
50770
50771 eval "$as_ac_var=no"
50772 fi
50773 rm -f conftest.err conftest.$ac_objext \
50774 conftest$ac_exeext conftest.$ac_ext
50775 fi
50776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50778 if test `eval echo '${'$as_ac_var'}'` = yes; then
50779 cat >>confdefs.h <<_ACEOF
50780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50781 _ACEOF
50782
50783 else
50784 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
50785 fi
50786 done
50787
50788 fi
50789
50790 # Used in libmath/Makefile.am.
50791 if test -n "$LIBMATHOBJS"; then
50792 need_libmath=yes
50793 fi
50794
50795
50796
50797 # Test wchar.h for mbstate_t, which is needed for char_traits and
50798 # others even if wchar_t support is not on.
50799 echo "$as_me:$LINENO: checking for mbstate_t" >&5
50800 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
50801 cat >conftest.$ac_ext <<_ACEOF
50802 /* confdefs.h. */
50803 _ACEOF
50804 cat confdefs.h >>conftest.$ac_ext
50805 cat >>conftest.$ac_ext <<_ACEOF
50806 /* end confdefs.h. */
50807 #include <wchar.h>
50808 int
50809 main ()
50810 {
50811 mbstate_t teststate;
50812 ;
50813 return 0;
50814 }
50815 _ACEOF
50816 rm -f conftest.$ac_objext
50817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50818 (eval $ac_compile) 2>conftest.er1
50819 ac_status=$?
50820 grep -v '^ *+' conftest.er1 >conftest.err
50821 rm -f conftest.er1
50822 cat conftest.err >&5
50823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50824 (exit $ac_status); } &&
50825 { ac_try='test -z "$ac_c_werror_flag"
50826 || test ! -s conftest.err'
50827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50828 (eval $ac_try) 2>&5
50829 ac_status=$?
50830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50831 (exit $ac_status); }; } &&
50832 { ac_try='test -s conftest.$ac_objext'
50833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50834 (eval $ac_try) 2>&5
50835 ac_status=$?
50836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50837 (exit $ac_status); }; }; then
50838 have_mbstate_t=yes
50839 else
50840 echo "$as_me: failed program was:" >&5
50841 sed 's/^/| /' conftest.$ac_ext >&5
50842
50843 have_mbstate_t=no
50844 fi
50845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50846 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
50847 echo "${ECHO_T}$have_mbstate_t" >&6
50848 if test x"$have_mbstate_t" = xyes; then
50849 cat >>confdefs.h <<\_ACEOF
50850 #define HAVE_MBSTATE_T 1
50851 _ACEOF
50852
50853 fi
50854
50855 # Sanity check for existence of ISO C99 headers for extended encoding.
50856
50857 for ac_header in wchar.h
50858 do
50859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50861 echo "$as_me:$LINENO: checking for $ac_header" >&5
50862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50864 echo $ECHO_N "(cached) $ECHO_C" >&6
50865 fi
50866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50868 else
50869 # Is the header compilable?
50870 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50872 cat >conftest.$ac_ext <<_ACEOF
50873 /* confdefs.h. */
50874 _ACEOF
50875 cat confdefs.h >>conftest.$ac_ext
50876 cat >>conftest.$ac_ext <<_ACEOF
50877 /* end confdefs.h. */
50878 $ac_includes_default
50879 #include <$ac_header>
50880 _ACEOF
50881 rm -f conftest.$ac_objext
50882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50883 (eval $ac_compile) 2>conftest.er1
50884 ac_status=$?
50885 grep -v '^ *+' conftest.er1 >conftest.err
50886 rm -f conftest.er1
50887 cat conftest.err >&5
50888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50889 (exit $ac_status); } &&
50890 { ac_try='test -z "$ac_c_werror_flag"
50891 || test ! -s conftest.err'
50892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50893 (eval $ac_try) 2>&5
50894 ac_status=$?
50895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50896 (exit $ac_status); }; } &&
50897 { ac_try='test -s conftest.$ac_objext'
50898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50899 (eval $ac_try) 2>&5
50900 ac_status=$?
50901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50902 (exit $ac_status); }; }; then
50903 ac_header_compiler=yes
50904 else
50905 echo "$as_me: failed program was:" >&5
50906 sed 's/^/| /' conftest.$ac_ext >&5
50907
50908 ac_header_compiler=no
50909 fi
50910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50912 echo "${ECHO_T}$ac_header_compiler" >&6
50913
50914 # Is the header present?
50915 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50917 cat >conftest.$ac_ext <<_ACEOF
50918 /* confdefs.h. */
50919 _ACEOF
50920 cat confdefs.h >>conftest.$ac_ext
50921 cat >>conftest.$ac_ext <<_ACEOF
50922 /* end confdefs.h. */
50923 #include <$ac_header>
50924 _ACEOF
50925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50927 ac_status=$?
50928 grep -v '^ *+' conftest.er1 >conftest.err
50929 rm -f conftest.er1
50930 cat conftest.err >&5
50931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50932 (exit $ac_status); } >/dev/null; then
50933 if test -s conftest.err; then
50934 ac_cpp_err=$ac_c_preproc_warn_flag
50935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50936 else
50937 ac_cpp_err=
50938 fi
50939 else
50940 ac_cpp_err=yes
50941 fi
50942 if test -z "$ac_cpp_err"; then
50943 ac_header_preproc=yes
50944 else
50945 echo "$as_me: failed program was:" >&5
50946 sed 's/^/| /' conftest.$ac_ext >&5
50947
50948 ac_header_preproc=no
50949 fi
50950 rm -f conftest.err conftest.$ac_ext
50951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50952 echo "${ECHO_T}$ac_header_preproc" >&6
50953
50954 # So? What about this header?
50955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50956 yes:no: )
50957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50961 ac_header_preproc=yes
50962 ;;
50963 no:yes:* )
50964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
50971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
50972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50976 (
50977 cat <<\_ASBOX
50978 ## ----------------------------------------- ##
50979 ## Report this to the package-unused lists. ##
50980 ## ----------------------------------------- ##
50981 _ASBOX
50982 ) |
50983 sed "s/^/$as_me: WARNING: /" >&2
50984 ;;
50985 esac
50986 echo "$as_me:$LINENO: checking for $ac_header" >&5
50987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50989 echo $ECHO_N "(cached) $ECHO_C" >&6
50990 else
50991 eval "$as_ac_Header=\$ac_header_preproc"
50992 fi
50993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50995
50996 fi
50997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50998 cat >>confdefs.h <<_ACEOF
50999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51000 _ACEOF
51001 ac_has_wchar_h=yes
51002 else
51003 ac_has_wchar_h=no
51004 fi
51005
51006 done
51007
51008
51009 for ac_header in wctype.h
51010 do
51011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51013 echo "$as_me:$LINENO: checking for $ac_header" >&5
51014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51016 echo $ECHO_N "(cached) $ECHO_C" >&6
51017 fi
51018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51020 else
51021 # Is the header compilable?
51022 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51024 cat >conftest.$ac_ext <<_ACEOF
51025 /* confdefs.h. */
51026 _ACEOF
51027 cat confdefs.h >>conftest.$ac_ext
51028 cat >>conftest.$ac_ext <<_ACEOF
51029 /* end confdefs.h. */
51030 $ac_includes_default
51031 #include <$ac_header>
51032 _ACEOF
51033 rm -f conftest.$ac_objext
51034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51035 (eval $ac_compile) 2>conftest.er1
51036 ac_status=$?
51037 grep -v '^ *+' conftest.er1 >conftest.err
51038 rm -f conftest.er1
51039 cat conftest.err >&5
51040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51041 (exit $ac_status); } &&
51042 { ac_try='test -z "$ac_c_werror_flag"
51043 || test ! -s conftest.err'
51044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51045 (eval $ac_try) 2>&5
51046 ac_status=$?
51047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51048 (exit $ac_status); }; } &&
51049 { ac_try='test -s conftest.$ac_objext'
51050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51051 (eval $ac_try) 2>&5
51052 ac_status=$?
51053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51054 (exit $ac_status); }; }; then
51055 ac_header_compiler=yes
51056 else
51057 echo "$as_me: failed program was:" >&5
51058 sed 's/^/| /' conftest.$ac_ext >&5
51059
51060 ac_header_compiler=no
51061 fi
51062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51064 echo "${ECHO_T}$ac_header_compiler" >&6
51065
51066 # Is the header present?
51067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51069 cat >conftest.$ac_ext <<_ACEOF
51070 /* confdefs.h. */
51071 _ACEOF
51072 cat confdefs.h >>conftest.$ac_ext
51073 cat >>conftest.$ac_ext <<_ACEOF
51074 /* end confdefs.h. */
51075 #include <$ac_header>
51076 _ACEOF
51077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51079 ac_status=$?
51080 grep -v '^ *+' conftest.er1 >conftest.err
51081 rm -f conftest.er1
51082 cat conftest.err >&5
51083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51084 (exit $ac_status); } >/dev/null; then
51085 if test -s conftest.err; then
51086 ac_cpp_err=$ac_c_preproc_warn_flag
51087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51088 else
51089 ac_cpp_err=
51090 fi
51091 else
51092 ac_cpp_err=yes
51093 fi
51094 if test -z "$ac_cpp_err"; then
51095 ac_header_preproc=yes
51096 else
51097 echo "$as_me: failed program was:" >&5
51098 sed 's/^/| /' conftest.$ac_ext >&5
51099
51100 ac_header_preproc=no
51101 fi
51102 rm -f conftest.err conftest.$ac_ext
51103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51104 echo "${ECHO_T}$ac_header_preproc" >&6
51105
51106 # So? What about this header?
51107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51108 yes:no: )
51109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51113 ac_header_preproc=yes
51114 ;;
51115 no:yes:* )
51116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51128 (
51129 cat <<\_ASBOX
51130 ## ----------------------------------------- ##
51131 ## Report this to the package-unused lists. ##
51132 ## ----------------------------------------- ##
51133 _ASBOX
51134 ) |
51135 sed "s/^/$as_me: WARNING: /" >&2
51136 ;;
51137 esac
51138 echo "$as_me:$LINENO: checking for $ac_header" >&5
51139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51141 echo $ECHO_N "(cached) $ECHO_C" >&6
51142 else
51143 eval "$as_ac_Header=\$ac_header_preproc"
51144 fi
51145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51147
51148 fi
51149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51150 cat >>confdefs.h <<_ACEOF
51151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51152 _ACEOF
51153 ac_has_wctype_h=yes
51154 else
51155 ac_has_wctype_h=no
51156 fi
51157
51158 done
51159
51160
51161 # Only continue checking if the ISO C99 headers exist and support is on.
51162 if test x"$ac_has_wchar_h" = xyes &&
51163 test x"$ac_has_wctype_h" = xyes &&
51164 test x"$enable_c_mbchar" != xno; then
51165
51166 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
51167 # numeric_limits can instantiate type_traits<wchar_t>
51168 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
51169 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
51170 cat >conftest.$ac_ext <<_ACEOF
51171 /* confdefs.h. */
51172 _ACEOF
51173 cat confdefs.h >>conftest.$ac_ext
51174 cat >>conftest.$ac_ext <<_ACEOF
51175 /* end confdefs.h. */
51176 #include <wchar.h>
51177 int
51178 main ()
51179 {
51180 int i = WCHAR_MIN; int j = WCHAR_MAX;
51181 ;
51182 return 0;
51183 }
51184 _ACEOF
51185 rm -f conftest.$ac_objext
51186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51187 (eval $ac_compile) 2>conftest.er1
51188 ac_status=$?
51189 grep -v '^ *+' conftest.er1 >conftest.err
51190 rm -f conftest.er1
51191 cat conftest.err >&5
51192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51193 (exit $ac_status); } &&
51194 { ac_try='test -z "$ac_c_werror_flag"
51195 || test ! -s conftest.err'
51196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51197 (eval $ac_try) 2>&5
51198 ac_status=$?
51199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51200 (exit $ac_status); }; } &&
51201 { ac_try='test -s conftest.$ac_objext'
51202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51203 (eval $ac_try) 2>&5
51204 ac_status=$?
51205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51206 (exit $ac_status); }; }; then
51207 has_wchar_minmax=yes
51208 else
51209 echo "$as_me: failed program was:" >&5
51210 sed 's/^/| /' conftest.$ac_ext >&5
51211
51212 has_wchar_minmax=no
51213 fi
51214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51215 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
51216 echo "${ECHO_T}$has_wchar_minmax" >&6
51217
51218 # Test wchar.h for WEOF, which is what we use to determine whether
51219 # to specialize for char_traits<wchar_t> or not.
51220 echo "$as_me:$LINENO: checking for WEOF" >&5
51221 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
51222 cat >conftest.$ac_ext <<_ACEOF
51223 /* confdefs.h. */
51224 _ACEOF
51225 cat confdefs.h >>conftest.$ac_ext
51226 cat >>conftest.$ac_ext <<_ACEOF
51227 /* end confdefs.h. */
51228
51229 #include <wchar.h>
51230 #include <stddef.h>
51231 int
51232 main ()
51233 {
51234 wint_t i = WEOF;
51235 ;
51236 return 0;
51237 }
51238 _ACEOF
51239 rm -f conftest.$ac_objext
51240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51241 (eval $ac_compile) 2>conftest.er1
51242 ac_status=$?
51243 grep -v '^ *+' conftest.er1 >conftest.err
51244 rm -f conftest.er1
51245 cat conftest.err >&5
51246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51247 (exit $ac_status); } &&
51248 { ac_try='test -z "$ac_c_werror_flag"
51249 || test ! -s conftest.err'
51250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51251 (eval $ac_try) 2>&5
51252 ac_status=$?
51253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51254 (exit $ac_status); }; } &&
51255 { ac_try='test -s conftest.$ac_objext'
51256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51257 (eval $ac_try) 2>&5
51258 ac_status=$?
51259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51260 (exit $ac_status); }; }; then
51261 has_weof=yes
51262 else
51263 echo "$as_me: failed program was:" >&5
51264 sed 's/^/| /' conftest.$ac_ext >&5
51265
51266 has_weof=no
51267 fi
51268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51269 echo "$as_me:$LINENO: result: $has_weof" >&5
51270 echo "${ECHO_T}$has_weof" >&6
51271
51272 # Tests for wide character functions used in char_traits<wchar_t>.
51273 ac_wfuncs=yes
51274
51275
51276
51277
51278
51279
51280 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
51281 do
51282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51283 echo "$as_me:$LINENO: checking for $ac_func" >&5
51284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51285 if eval "test \"\${$as_ac_var+set}\" = set"; then
51286 echo $ECHO_N "(cached) $ECHO_C" >&6
51287 else
51288 if test x$gcc_no_link = xyes; then
51289 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51290 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51291 { (exit 1); exit 1; }; }
51292 fi
51293 cat >conftest.$ac_ext <<_ACEOF
51294 /* confdefs.h. */
51295 _ACEOF
51296 cat confdefs.h >>conftest.$ac_ext
51297 cat >>conftest.$ac_ext <<_ACEOF
51298 /* end confdefs.h. */
51299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51301 #define $ac_func innocuous_$ac_func
51302
51303 /* System header to define __stub macros and hopefully few prototypes,
51304 which can conflict with char $ac_func (); below.
51305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51306 <limits.h> exists even on freestanding compilers. */
51307
51308 #ifdef __STDC__
51309 # include <limits.h>
51310 #else
51311 # include <assert.h>
51312 #endif
51313
51314 #undef $ac_func
51315
51316 /* Override any gcc2 internal prototype to avoid an error. */
51317 #ifdef __cplusplus
51318 extern "C"
51319 {
51320 #endif
51321 /* We use char because int might match the return type of a gcc2
51322 builtin and then its argument prototype would still apply. */
51323 char $ac_func ();
51324 /* The GNU C library defines this for functions which it implements
51325 to always fail with ENOSYS. Some functions are actually named
51326 something starting with __ and the normal name is an alias. */
51327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51328 choke me
51329 #else
51330 char (*f) () = $ac_func;
51331 #endif
51332 #ifdef __cplusplus
51333 }
51334 #endif
51335
51336 int
51337 main ()
51338 {
51339 return f != $ac_func;
51340 ;
51341 return 0;
51342 }
51343 _ACEOF
51344 rm -f conftest.$ac_objext conftest$ac_exeext
51345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51346 (eval $ac_link) 2>conftest.er1
51347 ac_status=$?
51348 grep -v '^ *+' conftest.er1 >conftest.err
51349 rm -f conftest.er1
51350 cat conftest.err >&5
51351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51352 (exit $ac_status); } &&
51353 { ac_try='test -z "$ac_c_werror_flag"
51354 || test ! -s conftest.err'
51355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51356 (eval $ac_try) 2>&5
51357 ac_status=$?
51358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51359 (exit $ac_status); }; } &&
51360 { ac_try='test -s conftest$ac_exeext'
51361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51362 (eval $ac_try) 2>&5
51363 ac_status=$?
51364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51365 (exit $ac_status); }; }; then
51366 eval "$as_ac_var=yes"
51367 else
51368 echo "$as_me: failed program was:" >&5
51369 sed 's/^/| /' conftest.$ac_ext >&5
51370
51371 eval "$as_ac_var=no"
51372 fi
51373 rm -f conftest.err conftest.$ac_objext \
51374 conftest$ac_exeext conftest.$ac_ext
51375 fi
51376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51378 if test `eval echo '${'$as_ac_var'}'` = yes; then
51379 cat >>confdefs.h <<_ACEOF
51380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51381 _ACEOF
51382
51383 else
51384 ac_wfuncs=no
51385 fi
51386 done
51387
51388
51389 # Checks for names injected into std:: by the c_std headers.
51390
51391
51392
51393
51394
51395
51396
51397
51398
51399
51400
51401
51402
51403
51404
51405
51406
51407
51408
51409
51410
51411
51412
51413
51414
51415
51416
51417
51418
51419
51420
51421
51422
51423
51424
51425
51426
51427
51428
51429
51430
51431
51432
51433
51434
51435
51436 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
51437 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
51438 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
51439 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
51440 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
51441 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
51442 do
51443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51444 echo "$as_me:$LINENO: checking for $ac_func" >&5
51445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51446 if eval "test \"\${$as_ac_var+set}\" = set"; then
51447 echo $ECHO_N "(cached) $ECHO_C" >&6
51448 else
51449 if test x$gcc_no_link = xyes; then
51450 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51451 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51452 { (exit 1); exit 1; }; }
51453 fi
51454 cat >conftest.$ac_ext <<_ACEOF
51455 /* confdefs.h. */
51456 _ACEOF
51457 cat confdefs.h >>conftest.$ac_ext
51458 cat >>conftest.$ac_ext <<_ACEOF
51459 /* end confdefs.h. */
51460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51462 #define $ac_func innocuous_$ac_func
51463
51464 /* System header to define __stub macros and hopefully few prototypes,
51465 which can conflict with char $ac_func (); below.
51466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51467 <limits.h> exists even on freestanding compilers. */
51468
51469 #ifdef __STDC__
51470 # include <limits.h>
51471 #else
51472 # include <assert.h>
51473 #endif
51474
51475 #undef $ac_func
51476
51477 /* Override any gcc2 internal prototype to avoid an error. */
51478 #ifdef __cplusplus
51479 extern "C"
51480 {
51481 #endif
51482 /* We use char because int might match the return type of a gcc2
51483 builtin and then its argument prototype would still apply. */
51484 char $ac_func ();
51485 /* The GNU C library defines this for functions which it implements
51486 to always fail with ENOSYS. Some functions are actually named
51487 something starting with __ and the normal name is an alias. */
51488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51489 choke me
51490 #else
51491 char (*f) () = $ac_func;
51492 #endif
51493 #ifdef __cplusplus
51494 }
51495 #endif
51496
51497 int
51498 main ()
51499 {
51500 return f != $ac_func;
51501 ;
51502 return 0;
51503 }
51504 _ACEOF
51505 rm -f conftest.$ac_objext conftest$ac_exeext
51506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51507 (eval $ac_link) 2>conftest.er1
51508 ac_status=$?
51509 grep -v '^ *+' conftest.er1 >conftest.err
51510 rm -f conftest.er1
51511 cat conftest.err >&5
51512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51513 (exit $ac_status); } &&
51514 { ac_try='test -z "$ac_c_werror_flag"
51515 || test ! -s conftest.err'
51516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51517 (eval $ac_try) 2>&5
51518 ac_status=$?
51519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51520 (exit $ac_status); }; } &&
51521 { ac_try='test -s conftest$ac_exeext'
51522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51523 (eval $ac_try) 2>&5
51524 ac_status=$?
51525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51526 (exit $ac_status); }; }; then
51527 eval "$as_ac_var=yes"
51528 else
51529 echo "$as_me: failed program was:" >&5
51530 sed 's/^/| /' conftest.$ac_ext >&5
51531
51532 eval "$as_ac_var=no"
51533 fi
51534 rm -f conftest.err conftest.$ac_objext \
51535 conftest$ac_exeext conftest.$ac_ext
51536 fi
51537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51539 if test `eval echo '${'$as_ac_var'}'` = yes; then
51540 cat >>confdefs.h <<_ACEOF
51541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51542 _ACEOF
51543
51544 else
51545 ac_wfuncs=no
51546 fi
51547 done
51548
51549
51550 # Checks for wide character functions that are not required
51551 # for basic wchar_t support. Don't disable support if they are missing.
51552 # Injection of these is wrapped with guard macros.
51553
51554
51555
51556
51557
51558 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
51559 do
51560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51561 echo "$as_me:$LINENO: checking for $ac_func" >&5
51562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51563 if eval "test \"\${$as_ac_var+set}\" = set"; then
51564 echo $ECHO_N "(cached) $ECHO_C" >&6
51565 else
51566 if test x$gcc_no_link = xyes; then
51567 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51568 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51569 { (exit 1); exit 1; }; }
51570 fi
51571 cat >conftest.$ac_ext <<_ACEOF
51572 /* confdefs.h. */
51573 _ACEOF
51574 cat confdefs.h >>conftest.$ac_ext
51575 cat >>conftest.$ac_ext <<_ACEOF
51576 /* end confdefs.h. */
51577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51579 #define $ac_func innocuous_$ac_func
51580
51581 /* System header to define __stub macros and hopefully few prototypes,
51582 which can conflict with char $ac_func (); below.
51583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51584 <limits.h> exists even on freestanding compilers. */
51585
51586 #ifdef __STDC__
51587 # include <limits.h>
51588 #else
51589 # include <assert.h>
51590 #endif
51591
51592 #undef $ac_func
51593
51594 /* Override any gcc2 internal prototype to avoid an error. */
51595 #ifdef __cplusplus
51596 extern "C"
51597 {
51598 #endif
51599 /* We use char because int might match the return type of a gcc2
51600 builtin and then its argument prototype would still apply. */
51601 char $ac_func ();
51602 /* The GNU C library defines this for functions which it implements
51603 to always fail with ENOSYS. Some functions are actually named
51604 something starting with __ and the normal name is an alias. */
51605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51606 choke me
51607 #else
51608 char (*f) () = $ac_func;
51609 #endif
51610 #ifdef __cplusplus
51611 }
51612 #endif
51613
51614 int
51615 main ()
51616 {
51617 return f != $ac_func;
51618 ;
51619 return 0;
51620 }
51621 _ACEOF
51622 rm -f conftest.$ac_objext conftest$ac_exeext
51623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51624 (eval $ac_link) 2>conftest.er1
51625 ac_status=$?
51626 grep -v '^ *+' conftest.er1 >conftest.err
51627 rm -f conftest.er1
51628 cat conftest.err >&5
51629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51630 (exit $ac_status); } &&
51631 { ac_try='test -z "$ac_c_werror_flag"
51632 || test ! -s conftest.err'
51633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51634 (eval $ac_try) 2>&5
51635 ac_status=$?
51636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51637 (exit $ac_status); }; } &&
51638 { ac_try='test -s conftest$ac_exeext'
51639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51640 (eval $ac_try) 2>&5
51641 ac_status=$?
51642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51643 (exit $ac_status); }; }; then
51644 eval "$as_ac_var=yes"
51645 else
51646 echo "$as_me: failed program was:" >&5
51647 sed 's/^/| /' conftest.$ac_ext >&5
51648
51649 eval "$as_ac_var=no"
51650 fi
51651 rm -f conftest.err conftest.$ac_objext \
51652 conftest$ac_exeext conftest.$ac_ext
51653 fi
51654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51656 if test `eval echo '${'$as_ac_var'}'` = yes; then
51657 cat >>confdefs.h <<_ACEOF
51658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51659 _ACEOF
51660
51661 fi
51662 done
51663
51664
51665 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
51666 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
51667 if test x"$has_weof" = xyes &&
51668 test x"$has_wchar_minmax" = xyes &&
51669 test x"$ac_wfuncs" = xyes;
51670 then
51671 ac_isoC99_wchar_t=yes
51672 else
51673 ac_isoC99_wchar_t=no
51674 fi
51675 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
51676 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
51677
51678 # Use iconv for wchar_t to char conversions. As such, check for
51679 # X/Open Portability Guide, version 2 features (XPG2).
51680 if test "${ac_cv_header_iconv_h+set}" = set; then
51681 echo "$as_me:$LINENO: checking for iconv.h" >&5
51682 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
51683 if test "${ac_cv_header_iconv_h+set}" = set; then
51684 echo $ECHO_N "(cached) $ECHO_C" >&6
51685 fi
51686 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
51687 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
51688 else
51689 # Is the header compilable?
51690 echo "$as_me:$LINENO: checking iconv.h usability" >&5
51691 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
51692 cat >conftest.$ac_ext <<_ACEOF
51693 /* confdefs.h. */
51694 _ACEOF
51695 cat confdefs.h >>conftest.$ac_ext
51696 cat >>conftest.$ac_ext <<_ACEOF
51697 /* end confdefs.h. */
51698 $ac_includes_default
51699 #include <iconv.h>
51700 _ACEOF
51701 rm -f conftest.$ac_objext
51702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51703 (eval $ac_compile) 2>conftest.er1
51704 ac_status=$?
51705 grep -v '^ *+' conftest.er1 >conftest.err
51706 rm -f conftest.er1
51707 cat conftest.err >&5
51708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51709 (exit $ac_status); } &&
51710 { ac_try='test -z "$ac_c_werror_flag"
51711 || test ! -s conftest.err'
51712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51713 (eval $ac_try) 2>&5
51714 ac_status=$?
51715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51716 (exit $ac_status); }; } &&
51717 { ac_try='test -s conftest.$ac_objext'
51718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51719 (eval $ac_try) 2>&5
51720 ac_status=$?
51721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51722 (exit $ac_status); }; }; then
51723 ac_header_compiler=yes
51724 else
51725 echo "$as_me: failed program was:" >&5
51726 sed 's/^/| /' conftest.$ac_ext >&5
51727
51728 ac_header_compiler=no
51729 fi
51730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51732 echo "${ECHO_T}$ac_header_compiler" >&6
51733
51734 # Is the header present?
51735 echo "$as_me:$LINENO: checking iconv.h presence" >&5
51736 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
51737 cat >conftest.$ac_ext <<_ACEOF
51738 /* confdefs.h. */
51739 _ACEOF
51740 cat confdefs.h >>conftest.$ac_ext
51741 cat >>conftest.$ac_ext <<_ACEOF
51742 /* end confdefs.h. */
51743 #include <iconv.h>
51744 _ACEOF
51745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51747 ac_status=$?
51748 grep -v '^ *+' conftest.er1 >conftest.err
51749 rm -f conftest.er1
51750 cat conftest.err >&5
51751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51752 (exit $ac_status); } >/dev/null; then
51753 if test -s conftest.err; then
51754 ac_cpp_err=$ac_c_preproc_warn_flag
51755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51756 else
51757 ac_cpp_err=
51758 fi
51759 else
51760 ac_cpp_err=yes
51761 fi
51762 if test -z "$ac_cpp_err"; then
51763 ac_header_preproc=yes
51764 else
51765 echo "$as_me: failed program was:" >&5
51766 sed 's/^/| /' conftest.$ac_ext >&5
51767
51768 ac_header_preproc=no
51769 fi
51770 rm -f conftest.err conftest.$ac_ext
51771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51772 echo "${ECHO_T}$ac_header_preproc" >&6
51773
51774 # So? What about this header?
51775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51776 yes:no: )
51777 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
51778 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
51779 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
51780 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
51781 ac_header_preproc=yes
51782 ;;
51783 no:yes:* )
51784 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
51785 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
51786 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
51787 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
51788 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
51789 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
51790 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
51791 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
51792 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
51793 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
51794 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
51795 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
51796 (
51797 cat <<\_ASBOX
51798 ## ----------------------------------------- ##
51799 ## Report this to the package-unused lists. ##
51800 ## ----------------------------------------- ##
51801 _ASBOX
51802 ) |
51803 sed "s/^/$as_me: WARNING: /" >&2
51804 ;;
51805 esac
51806 echo "$as_me:$LINENO: checking for iconv.h" >&5
51807 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
51808 if test "${ac_cv_header_iconv_h+set}" = set; then
51809 echo $ECHO_N "(cached) $ECHO_C" >&6
51810 else
51811 ac_cv_header_iconv_h=$ac_header_preproc
51812 fi
51813 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
51814 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
51815
51816 fi
51817 if test $ac_cv_header_iconv_h = yes; then
51818 ac_has_iconv_h=yes
51819 else
51820 ac_has_iconv_h=no
51821 fi
51822
51823
51824 if test "${ac_cv_header_langinfo_h+set}" = set; then
51825 echo "$as_me:$LINENO: checking for langinfo.h" >&5
51826 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
51827 if test "${ac_cv_header_langinfo_h+set}" = set; then
51828 echo $ECHO_N "(cached) $ECHO_C" >&6
51829 fi
51830 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
51831 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
51832 else
51833 # Is the header compilable?
51834 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
51835 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
51836 cat >conftest.$ac_ext <<_ACEOF
51837 /* confdefs.h. */
51838 _ACEOF
51839 cat confdefs.h >>conftest.$ac_ext
51840 cat >>conftest.$ac_ext <<_ACEOF
51841 /* end confdefs.h. */
51842 $ac_includes_default
51843 #include <langinfo.h>
51844 _ACEOF
51845 rm -f conftest.$ac_objext
51846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51847 (eval $ac_compile) 2>conftest.er1
51848 ac_status=$?
51849 grep -v '^ *+' conftest.er1 >conftest.err
51850 rm -f conftest.er1
51851 cat conftest.err >&5
51852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51853 (exit $ac_status); } &&
51854 { ac_try='test -z "$ac_c_werror_flag"
51855 || test ! -s conftest.err'
51856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51857 (eval $ac_try) 2>&5
51858 ac_status=$?
51859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51860 (exit $ac_status); }; } &&
51861 { ac_try='test -s conftest.$ac_objext'
51862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51863 (eval $ac_try) 2>&5
51864 ac_status=$?
51865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51866 (exit $ac_status); }; }; then
51867 ac_header_compiler=yes
51868 else
51869 echo "$as_me: failed program was:" >&5
51870 sed 's/^/| /' conftest.$ac_ext >&5
51871
51872 ac_header_compiler=no
51873 fi
51874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51875 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51876 echo "${ECHO_T}$ac_header_compiler" >&6
51877
51878 # Is the header present?
51879 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
51880 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
51881 cat >conftest.$ac_ext <<_ACEOF
51882 /* confdefs.h. */
51883 _ACEOF
51884 cat confdefs.h >>conftest.$ac_ext
51885 cat >>conftest.$ac_ext <<_ACEOF
51886 /* end confdefs.h. */
51887 #include <langinfo.h>
51888 _ACEOF
51889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51891 ac_status=$?
51892 grep -v '^ *+' conftest.er1 >conftest.err
51893 rm -f conftest.er1
51894 cat conftest.err >&5
51895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51896 (exit $ac_status); } >/dev/null; then
51897 if test -s conftest.err; then
51898 ac_cpp_err=$ac_c_preproc_warn_flag
51899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51900 else
51901 ac_cpp_err=
51902 fi
51903 else
51904 ac_cpp_err=yes
51905 fi
51906 if test -z "$ac_cpp_err"; then
51907 ac_header_preproc=yes
51908 else
51909 echo "$as_me: failed program was:" >&5
51910 sed 's/^/| /' conftest.$ac_ext >&5
51911
51912 ac_header_preproc=no
51913 fi
51914 rm -f conftest.err conftest.$ac_ext
51915 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51916 echo "${ECHO_T}$ac_header_preproc" >&6
51917
51918 # So? What about this header?
51919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51920 yes:no: )
51921 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
51922 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
51923 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
51924 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
51925 ac_header_preproc=yes
51926 ;;
51927 no:yes:* )
51928 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
51929 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
51930 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
51931 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
51932 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
51933 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
51934 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
51935 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
51936 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
51937 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
51938 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
51939 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
51940 (
51941 cat <<\_ASBOX
51942 ## ----------------------------------------- ##
51943 ## Report this to the package-unused lists. ##
51944 ## ----------------------------------------- ##
51945 _ASBOX
51946 ) |
51947 sed "s/^/$as_me: WARNING: /" >&2
51948 ;;
51949 esac
51950 echo "$as_me:$LINENO: checking for langinfo.h" >&5
51951 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
51952 if test "${ac_cv_header_langinfo_h+set}" = set; then
51953 echo $ECHO_N "(cached) $ECHO_C" >&6
51954 else
51955 ac_cv_header_langinfo_h=$ac_header_preproc
51956 fi
51957 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
51958 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
51959
51960 fi
51961 if test $ac_cv_header_langinfo_h = yes; then
51962 ac_has_langinfo_h=yes
51963 else
51964 ac_has_langinfo_h=no
51965 fi
51966
51967
51968
51969 # Check for existence of libiconv.a providing XPG2 wchar_t support.
51970 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
51971 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
51972 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
51973 echo $ECHO_N "(cached) $ECHO_C" >&6
51974 else
51975 ac_check_lib_save_LIBS=$LIBS
51976 LIBS="-liconv $LIBS"
51977 if test x$gcc_no_link = xyes; then
51978 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51980 { (exit 1); exit 1; }; }
51981 fi
51982 cat >conftest.$ac_ext <<_ACEOF
51983 /* confdefs.h. */
51984 _ACEOF
51985 cat confdefs.h >>conftest.$ac_ext
51986 cat >>conftest.$ac_ext <<_ACEOF
51987 /* end confdefs.h. */
51988
51989 /* Override any gcc2 internal prototype to avoid an error. */
51990 #ifdef __cplusplus
51991 extern "C"
51992 #endif
51993 /* We use char because int might match the return type of a gcc2
51994 builtin and then its argument prototype would still apply. */
51995 char iconv ();
51996 int
51997 main ()
51998 {
51999 iconv ();
52000 ;
52001 return 0;
52002 }
52003 _ACEOF
52004 rm -f conftest.$ac_objext conftest$ac_exeext
52005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52006 (eval $ac_link) 2>conftest.er1
52007 ac_status=$?
52008 grep -v '^ *+' conftest.er1 >conftest.err
52009 rm -f conftest.er1
52010 cat conftest.err >&5
52011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52012 (exit $ac_status); } &&
52013 { ac_try='test -z "$ac_c_werror_flag"
52014 || test ! -s conftest.err'
52015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52016 (eval $ac_try) 2>&5
52017 ac_status=$?
52018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52019 (exit $ac_status); }; } &&
52020 { ac_try='test -s conftest$ac_exeext'
52021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52022 (eval $ac_try) 2>&5
52023 ac_status=$?
52024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52025 (exit $ac_status); }; }; then
52026 ac_cv_lib_iconv_iconv=yes
52027 else
52028 echo "$as_me: failed program was:" >&5
52029 sed 's/^/| /' conftest.$ac_ext >&5
52030
52031 ac_cv_lib_iconv_iconv=no
52032 fi
52033 rm -f conftest.err conftest.$ac_objext \
52034 conftest$ac_exeext conftest.$ac_ext
52035 LIBS=$ac_check_lib_save_LIBS
52036 fi
52037 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
52038 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
52039 if test $ac_cv_lib_iconv_iconv = yes; then
52040 LIBICONV="-liconv"
52041 fi
52042
52043 ac_save_LIBS="$LIBS"
52044 LIBS="$LIBS $LIBICONV"
52045
52046
52047
52048
52049
52050
52051 for ac_func in iconv_open iconv_close iconv nl_langinfo
52052 do
52053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52054 echo "$as_me:$LINENO: checking for $ac_func" >&5
52055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52056 if eval "test \"\${$as_ac_var+set}\" = set"; then
52057 echo $ECHO_N "(cached) $ECHO_C" >&6
52058 else
52059 if test x$gcc_no_link = xyes; then
52060 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52061 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52062 { (exit 1); exit 1; }; }
52063 fi
52064 cat >conftest.$ac_ext <<_ACEOF
52065 /* confdefs.h. */
52066 _ACEOF
52067 cat confdefs.h >>conftest.$ac_ext
52068 cat >>conftest.$ac_ext <<_ACEOF
52069 /* end confdefs.h. */
52070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52072 #define $ac_func innocuous_$ac_func
52073
52074 /* System header to define __stub macros and hopefully few prototypes,
52075 which can conflict with char $ac_func (); below.
52076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52077 <limits.h> exists even on freestanding compilers. */
52078
52079 #ifdef __STDC__
52080 # include <limits.h>
52081 #else
52082 # include <assert.h>
52083 #endif
52084
52085 #undef $ac_func
52086
52087 /* Override any gcc2 internal prototype to avoid an error. */
52088 #ifdef __cplusplus
52089 extern "C"
52090 {
52091 #endif
52092 /* We use char because int might match the return type of a gcc2
52093 builtin and then its argument prototype would still apply. */
52094 char $ac_func ();
52095 /* The GNU C library defines this for functions which it implements
52096 to always fail with ENOSYS. Some functions are actually named
52097 something starting with __ and the normal name is an alias. */
52098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52099 choke me
52100 #else
52101 char (*f) () = $ac_func;
52102 #endif
52103 #ifdef __cplusplus
52104 }
52105 #endif
52106
52107 int
52108 main ()
52109 {
52110 return f != $ac_func;
52111 ;
52112 return 0;
52113 }
52114 _ACEOF
52115 rm -f conftest.$ac_objext conftest$ac_exeext
52116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52117 (eval $ac_link) 2>conftest.er1
52118 ac_status=$?
52119 grep -v '^ *+' conftest.er1 >conftest.err
52120 rm -f conftest.er1
52121 cat conftest.err >&5
52122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52123 (exit $ac_status); } &&
52124 { ac_try='test -z "$ac_c_werror_flag"
52125 || test ! -s conftest.err'
52126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52127 (eval $ac_try) 2>&5
52128 ac_status=$?
52129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52130 (exit $ac_status); }; } &&
52131 { ac_try='test -s conftest$ac_exeext'
52132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52133 (eval $ac_try) 2>&5
52134 ac_status=$?
52135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52136 (exit $ac_status); }; }; then
52137 eval "$as_ac_var=yes"
52138 else
52139 echo "$as_me: failed program was:" >&5
52140 sed 's/^/| /' conftest.$ac_ext >&5
52141
52142 eval "$as_ac_var=no"
52143 fi
52144 rm -f conftest.err conftest.$ac_objext \
52145 conftest$ac_exeext conftest.$ac_ext
52146 fi
52147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52149 if test `eval echo '${'$as_ac_var'}'` = yes; then
52150 cat >>confdefs.h <<_ACEOF
52151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52152 _ACEOF
52153 ac_XPG2funcs=yes
52154 else
52155 ac_XPG2funcs=no
52156 fi
52157 done
52158
52159
52160 LIBS="$ac_save_LIBS"
52161
52162 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
52163 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
52164 if test x"$ac_has_iconv_h" = xyes &&
52165 test x"$ac_has_langinfo_h" = xyes &&
52166 test x"$ac_XPG2funcs" = xyes;
52167 then
52168 ac_XPG2_wchar_t=yes
52169 else
52170 ac_XPG2_wchar_t=no
52171 fi
52172 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
52173 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
52174
52175 # At the moment, only enable wchar_t specializations if all the
52176 # above support is present.
52177 if test x"$ac_isoC99_wchar_t" = xyes &&
52178 test x"$ac_XPG2_wchar_t" = xyes;
52179 then
52180 cat >>confdefs.h <<\_ACEOF
52181 #define _GLIBCXX_USE_WCHAR_T 1
52182 _ACEOF
52183
52184 enable_wchar_t=yes
52185 fi
52186 fi
52187 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
52188 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
52189 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
52190 echo "${ECHO_T}$enable_wchar_t" >&6
52191
52192
52193 ac_test_CXXFLAGS="${CXXFLAGS+set}"
52194 ac_save_CXXFLAGS="$CXXFLAGS"
52195 CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
52196
52197
52198 echo "$as_me:$LINENO: checking for strtold declaration" >&5
52199 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
52200 if test x${glibcxx_cv_func_strtold_use+set} != xset; then
52201 if test "${glibcxx_cv_func_strtold_use+set}" = set; then
52202 echo $ECHO_N "(cached) $ECHO_C" >&6
52203 else
52204
52205
52206
52207 ac_ext=cc
52208 ac_cpp='$CXXCPP $CPPFLAGS'
52209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52212
52213 cat >conftest.$ac_ext <<_ACEOF
52214 /* confdefs.h. */
52215 _ACEOF
52216 cat confdefs.h >>conftest.$ac_ext
52217 cat >>conftest.$ac_ext <<_ACEOF
52218 /* end confdefs.h. */
52219 #include <stdlib.h>
52220 int
52221 main ()
52222 {
52223 strtold(0, 0);
52224 ;
52225 return 0;
52226 }
52227 _ACEOF
52228 rm -f conftest.$ac_objext
52229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52230 (eval $ac_compile) 2>conftest.er1
52231 ac_status=$?
52232 grep -v '^ *+' conftest.er1 >conftest.err
52233 rm -f conftest.er1
52234 cat conftest.err >&5
52235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52236 (exit $ac_status); } &&
52237 { ac_try='test -z "$ac_cxx_werror_flag"
52238 || test ! -s conftest.err'
52239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52240 (eval $ac_try) 2>&5
52241 ac_status=$?
52242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52243 (exit $ac_status); }; } &&
52244 { ac_try='test -s conftest.$ac_objext'
52245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52246 (eval $ac_try) 2>&5
52247 ac_status=$?
52248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52249 (exit $ac_status); }; }; then
52250 glibcxx_cv_func_strtold_use=yes
52251 else
52252 echo "$as_me: failed program was:" >&5
52253 sed 's/^/| /' conftest.$ac_ext >&5
52254
52255 glibcxx_cv_func_strtold_use=no
52256 fi
52257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52258 ac_ext=c
52259 ac_cpp='$CPP $CPPFLAGS'
52260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52263
52264
52265 fi
52266
52267 fi
52268 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
52269 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
52270 if test x$glibcxx_cv_func_strtold_use = x"yes"; then
52271
52272 for ac_func in strtold
52273 do
52274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52275 echo "$as_me:$LINENO: checking for $ac_func" >&5
52276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52277 if eval "test \"\${$as_ac_var+set}\" = set"; then
52278 echo $ECHO_N "(cached) $ECHO_C" >&6
52279 else
52280 if test x$gcc_no_link = xyes; then
52281 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52282 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52283 { (exit 1); exit 1; }; }
52284 fi
52285 cat >conftest.$ac_ext <<_ACEOF
52286 /* confdefs.h. */
52287 _ACEOF
52288 cat confdefs.h >>conftest.$ac_ext
52289 cat >>conftest.$ac_ext <<_ACEOF
52290 /* end confdefs.h. */
52291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52293 #define $ac_func innocuous_$ac_func
52294
52295 /* System header to define __stub macros and hopefully few prototypes,
52296 which can conflict with char $ac_func (); below.
52297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52298 <limits.h> exists even on freestanding compilers. */
52299
52300 #ifdef __STDC__
52301 # include <limits.h>
52302 #else
52303 # include <assert.h>
52304 #endif
52305
52306 #undef $ac_func
52307
52308 /* Override any gcc2 internal prototype to avoid an error. */
52309 #ifdef __cplusplus
52310 extern "C"
52311 {
52312 #endif
52313 /* We use char because int might match the return type of a gcc2
52314 builtin and then its argument prototype would still apply. */
52315 char $ac_func ();
52316 /* The GNU C library defines this for functions which it implements
52317 to always fail with ENOSYS. Some functions are actually named
52318 something starting with __ and the normal name is an alias. */
52319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52320 choke me
52321 #else
52322 char (*f) () = $ac_func;
52323 #endif
52324 #ifdef __cplusplus
52325 }
52326 #endif
52327
52328 int
52329 main ()
52330 {
52331 return f != $ac_func;
52332 ;
52333 return 0;
52334 }
52335 _ACEOF
52336 rm -f conftest.$ac_objext conftest$ac_exeext
52337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52338 (eval $ac_link) 2>conftest.er1
52339 ac_status=$?
52340 grep -v '^ *+' conftest.er1 >conftest.err
52341 rm -f conftest.er1
52342 cat conftest.err >&5
52343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52344 (exit $ac_status); } &&
52345 { ac_try='test -z "$ac_c_werror_flag"
52346 || test ! -s conftest.err'
52347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52348 (eval $ac_try) 2>&5
52349 ac_status=$?
52350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52351 (exit $ac_status); }; } &&
52352 { ac_try='test -s conftest$ac_exeext'
52353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52354 (eval $ac_try) 2>&5
52355 ac_status=$?
52356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52357 (exit $ac_status); }; }; then
52358 eval "$as_ac_var=yes"
52359 else
52360 echo "$as_me: failed program was:" >&5
52361 sed 's/^/| /' conftest.$ac_ext >&5
52362
52363 eval "$as_ac_var=no"
52364 fi
52365 rm -f conftest.err conftest.$ac_objext \
52366 conftest$ac_exeext conftest.$ac_ext
52367 fi
52368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52370 if test `eval echo '${'$as_ac_var'}'` = yes; then
52371 cat >>confdefs.h <<_ACEOF
52372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52373 _ACEOF
52374
52375 fi
52376 done
52377
52378 fi
52379
52380
52381 echo "$as_me:$LINENO: checking for strtof declaration" >&5
52382 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
52383 if test x${glibcxx_cv_func_strtof_use+set} != xset; then
52384 if test "${glibcxx_cv_func_strtof_use+set}" = set; then
52385 echo $ECHO_N "(cached) $ECHO_C" >&6
52386 else
52387
52388
52389
52390 ac_ext=cc
52391 ac_cpp='$CXXCPP $CPPFLAGS'
52392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52395
52396 cat >conftest.$ac_ext <<_ACEOF
52397 /* confdefs.h. */
52398 _ACEOF
52399 cat confdefs.h >>conftest.$ac_ext
52400 cat >>conftest.$ac_ext <<_ACEOF
52401 /* end confdefs.h. */
52402 #include <stdlib.h>
52403 int
52404 main ()
52405 {
52406 strtof(0, 0);
52407 ;
52408 return 0;
52409 }
52410 _ACEOF
52411 rm -f conftest.$ac_objext
52412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52413 (eval $ac_compile) 2>conftest.er1
52414 ac_status=$?
52415 grep -v '^ *+' conftest.er1 >conftest.err
52416 rm -f conftest.er1
52417 cat conftest.err >&5
52418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52419 (exit $ac_status); } &&
52420 { ac_try='test -z "$ac_cxx_werror_flag"
52421 || test ! -s conftest.err'
52422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52423 (eval $ac_try) 2>&5
52424 ac_status=$?
52425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52426 (exit $ac_status); }; } &&
52427 { ac_try='test -s conftest.$ac_objext'
52428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52429 (eval $ac_try) 2>&5
52430 ac_status=$?
52431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52432 (exit $ac_status); }; }; then
52433 glibcxx_cv_func_strtof_use=yes
52434 else
52435 echo "$as_me: failed program was:" >&5
52436 sed 's/^/| /' conftest.$ac_ext >&5
52437
52438 glibcxx_cv_func_strtof_use=no
52439 fi
52440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52441 ac_ext=c
52442 ac_cpp='$CPP $CPPFLAGS'
52443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52446
52447
52448 fi
52449
52450 fi
52451 echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
52452 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
52453 if test x$glibcxx_cv_func_strtof_use = x"yes"; then
52454
52455 for ac_func in strtof
52456 do
52457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52458 echo "$as_me:$LINENO: checking for $ac_func" >&5
52459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52460 if eval "test \"\${$as_ac_var+set}\" = set"; then
52461 echo $ECHO_N "(cached) $ECHO_C" >&6
52462 else
52463 if test x$gcc_no_link = xyes; then
52464 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52465 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52466 { (exit 1); exit 1; }; }
52467 fi
52468 cat >conftest.$ac_ext <<_ACEOF
52469 /* confdefs.h. */
52470 _ACEOF
52471 cat confdefs.h >>conftest.$ac_ext
52472 cat >>conftest.$ac_ext <<_ACEOF
52473 /* end confdefs.h. */
52474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
52476 #define $ac_func innocuous_$ac_func
52477
52478 /* System header to define __stub macros and hopefully few prototypes,
52479 which can conflict with char $ac_func (); below.
52480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52481 <limits.h> exists even on freestanding compilers. */
52482
52483 #ifdef __STDC__
52484 # include <limits.h>
52485 #else
52486 # include <assert.h>
52487 #endif
52488
52489 #undef $ac_func
52490
52491 /* Override any gcc2 internal prototype to avoid an error. */
52492 #ifdef __cplusplus
52493 extern "C"
52494 {
52495 #endif
52496 /* We use char because int might match the return type of a gcc2
52497 builtin and then its argument prototype would still apply. */
52498 char $ac_func ();
52499 /* The GNU C library defines this for functions which it implements
52500 to always fail with ENOSYS. Some functions are actually named
52501 something starting with __ and the normal name is an alias. */
52502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52503 choke me
52504 #else
52505 char (*f) () = $ac_func;
52506 #endif
52507 #ifdef __cplusplus
52508 }
52509 #endif
52510
52511 int
52512 main ()
52513 {
52514 return f != $ac_func;
52515 ;
52516 return 0;
52517 }
52518 _ACEOF
52519 rm -f conftest.$ac_objext conftest$ac_exeext
52520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52521 (eval $ac_link) 2>conftest.er1
52522 ac_status=$?
52523 grep -v '^ *+' conftest.er1 >conftest.err
52524 rm -f conftest.er1
52525 cat conftest.err >&5
52526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52527 (exit $ac_status); } &&
52528 { ac_try='test -z "$ac_c_werror_flag"
52529 || test ! -s conftest.err'
52530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52531 (eval $ac_try) 2>&5
52532 ac_status=$?
52533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52534 (exit $ac_status); }; } &&
52535 { ac_try='test -s conftest$ac_exeext'
52536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52537 (eval $ac_try) 2>&5
52538 ac_status=$?
52539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52540 (exit $ac_status); }; }; then
52541 eval "$as_ac_var=yes"
52542 else
52543 echo "$as_me: failed program was:" >&5
52544 sed 's/^/| /' conftest.$ac_ext >&5
52545
52546 eval "$as_ac_var=no"
52547 fi
52548 rm -f conftest.err conftest.$ac_objext \
52549 conftest$ac_exeext conftest.$ac_ext
52550 fi
52551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52553 if test `eval echo '${'$as_ac_var'}'` = yes; then
52554 cat >>confdefs.h <<_ACEOF
52555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52556 _ACEOF
52557
52558 fi
52559 done
52560
52561 fi
52562
52563
52564 CXXFLAGS="$ac_save_CXXFLAGS"
52565
52566
52567 # For showmanyc_helper().
52568
52569
52570 for ac_header in sys/ioctl.h sys/filio.h
52571 do
52572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52574 echo "$as_me:$LINENO: checking for $ac_header" >&5
52575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52577 echo $ECHO_N "(cached) $ECHO_C" >&6
52578 fi
52579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52581 else
52582 # Is the header compilable?
52583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52585 cat >conftest.$ac_ext <<_ACEOF
52586 /* confdefs.h. */
52587 _ACEOF
52588 cat confdefs.h >>conftest.$ac_ext
52589 cat >>conftest.$ac_ext <<_ACEOF
52590 /* end confdefs.h. */
52591 $ac_includes_default
52592 #include <$ac_header>
52593 _ACEOF
52594 rm -f conftest.$ac_objext
52595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52596 (eval $ac_compile) 2>conftest.er1
52597 ac_status=$?
52598 grep -v '^ *+' conftest.er1 >conftest.err
52599 rm -f conftest.er1
52600 cat conftest.err >&5
52601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52602 (exit $ac_status); } &&
52603 { ac_try='test -z "$ac_c_werror_flag"
52604 || test ! -s conftest.err'
52605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52606 (eval $ac_try) 2>&5
52607 ac_status=$?
52608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52609 (exit $ac_status); }; } &&
52610 { ac_try='test -s conftest.$ac_objext'
52611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52612 (eval $ac_try) 2>&5
52613 ac_status=$?
52614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52615 (exit $ac_status); }; }; then
52616 ac_header_compiler=yes
52617 else
52618 echo "$as_me: failed program was:" >&5
52619 sed 's/^/| /' conftest.$ac_ext >&5
52620
52621 ac_header_compiler=no
52622 fi
52623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52624 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52625 echo "${ECHO_T}$ac_header_compiler" >&6
52626
52627 # Is the header present?
52628 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52630 cat >conftest.$ac_ext <<_ACEOF
52631 /* confdefs.h. */
52632 _ACEOF
52633 cat confdefs.h >>conftest.$ac_ext
52634 cat >>conftest.$ac_ext <<_ACEOF
52635 /* end confdefs.h. */
52636 #include <$ac_header>
52637 _ACEOF
52638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52640 ac_status=$?
52641 grep -v '^ *+' conftest.er1 >conftest.err
52642 rm -f conftest.er1
52643 cat conftest.err >&5
52644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52645 (exit $ac_status); } >/dev/null; then
52646 if test -s conftest.err; then
52647 ac_cpp_err=$ac_c_preproc_warn_flag
52648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52649 else
52650 ac_cpp_err=
52651 fi
52652 else
52653 ac_cpp_err=yes
52654 fi
52655 if test -z "$ac_cpp_err"; then
52656 ac_header_preproc=yes
52657 else
52658 echo "$as_me: failed program was:" >&5
52659 sed 's/^/| /' conftest.$ac_ext >&5
52660
52661 ac_header_preproc=no
52662 fi
52663 rm -f conftest.err conftest.$ac_ext
52664 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52665 echo "${ECHO_T}$ac_header_preproc" >&6
52666
52667 # So? What about this header?
52668 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52669 yes:no: )
52670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52671 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52673 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52674 ac_header_preproc=yes
52675 ;;
52676 no:yes:* )
52677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52678 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52680 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52682 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
52684 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
52685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52688 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52689 (
52690 cat <<\_ASBOX
52691 ## ----------------------------------------- ##
52692 ## Report this to the package-unused lists. ##
52693 ## ----------------------------------------- ##
52694 _ASBOX
52695 ) |
52696 sed "s/^/$as_me: WARNING: /" >&2
52697 ;;
52698 esac
52699 echo "$as_me:$LINENO: checking for $ac_header" >&5
52700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52702 echo $ECHO_N "(cached) $ECHO_C" >&6
52703 else
52704 eval "$as_ac_Header=\$ac_header_preproc"
52705 fi
52706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52708
52709 fi
52710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52711 cat >>confdefs.h <<_ACEOF
52712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52713 _ACEOF
52714
52715 fi
52716
52717 done
52718
52719
52720 if test "${glibcxx_cv_POLL+set}" = set; then
52721 echo $ECHO_N "(cached) $ECHO_C" >&6
52722 else
52723
52724 if test x$gcc_no_link = xyes; then
52725 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52726 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52727 { (exit 1); exit 1; }; }
52728 fi
52729 cat >conftest.$ac_ext <<_ACEOF
52730 /* confdefs.h. */
52731 _ACEOF
52732 cat confdefs.h >>conftest.$ac_ext
52733 cat >>conftest.$ac_ext <<_ACEOF
52734 /* end confdefs.h. */
52735 #include <poll.h>
52736 int
52737 main ()
52738 {
52739 struct pollfd pfd[1];
52740 pfd[0].events = POLLIN;
52741 poll(pfd, 1, 0);
52742 ;
52743 return 0;
52744 }
52745 _ACEOF
52746 rm -f conftest.$ac_objext conftest$ac_exeext
52747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52748 (eval $ac_link) 2>conftest.er1
52749 ac_status=$?
52750 grep -v '^ *+' conftest.er1 >conftest.err
52751 rm -f conftest.er1
52752 cat conftest.err >&5
52753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52754 (exit $ac_status); } &&
52755 { ac_try='test -z "$ac_c_werror_flag"
52756 || test ! -s conftest.err'
52757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52758 (eval $ac_try) 2>&5
52759 ac_status=$?
52760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52761 (exit $ac_status); }; } &&
52762 { ac_try='test -s conftest$ac_exeext'
52763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52764 (eval $ac_try) 2>&5
52765 ac_status=$?
52766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52767 (exit $ac_status); }; }; then
52768 glibcxx_cv_POLL=yes
52769 else
52770 echo "$as_me: failed program was:" >&5
52771 sed 's/^/| /' conftest.$ac_ext >&5
52772
52773 glibcxx_cv_POLL=no
52774 fi
52775 rm -f conftest.err conftest.$ac_objext \
52776 conftest$ac_exeext conftest.$ac_ext
52777
52778 fi
52779
52780 if test $glibcxx_cv_POLL = yes; then
52781 cat >>confdefs.h <<\_ACEOF
52782 #define HAVE_POLL 1
52783 _ACEOF
52784
52785 fi
52786
52787
52788 if test "${glibcxx_cv_S_ISREG+set}" = set; then
52789 echo $ECHO_N "(cached) $ECHO_C" >&6
52790 else
52791
52792 if test x$gcc_no_link = xyes; then
52793 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52794 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52795 { (exit 1); exit 1; }; }
52796 fi
52797 cat >conftest.$ac_ext <<_ACEOF
52798 /* confdefs.h. */
52799 _ACEOF
52800 cat confdefs.h >>conftest.$ac_ext
52801 cat >>conftest.$ac_ext <<_ACEOF
52802 /* end confdefs.h. */
52803 #include <sys/stat.h>
52804 int
52805 main ()
52806 {
52807 struct stat buffer;
52808 fstat(0, &buffer);
52809 S_ISREG(buffer.st_mode);
52810 ;
52811 return 0;
52812 }
52813 _ACEOF
52814 rm -f conftest.$ac_objext conftest$ac_exeext
52815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52816 (eval $ac_link) 2>conftest.er1
52817 ac_status=$?
52818 grep -v '^ *+' conftest.er1 >conftest.err
52819 rm -f conftest.er1
52820 cat conftest.err >&5
52821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52822 (exit $ac_status); } &&
52823 { ac_try='test -z "$ac_c_werror_flag"
52824 || test ! -s conftest.err'
52825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52826 (eval $ac_try) 2>&5
52827 ac_status=$?
52828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52829 (exit $ac_status); }; } &&
52830 { ac_try='test -s conftest$ac_exeext'
52831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52832 (eval $ac_try) 2>&5
52833 ac_status=$?
52834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52835 (exit $ac_status); }; }; then
52836 glibcxx_cv_S_ISREG=yes
52837 else
52838 echo "$as_me: failed program was:" >&5
52839 sed 's/^/| /' conftest.$ac_ext >&5
52840
52841 glibcxx_cv_S_ISREG=no
52842 fi
52843 rm -f conftest.err conftest.$ac_objext \
52844 conftest$ac_exeext conftest.$ac_ext
52845
52846 fi
52847
52848 if test "${glibcxx_cv_S_IFREG+set}" = set; then
52849 echo $ECHO_N "(cached) $ECHO_C" >&6
52850 else
52851
52852 if test x$gcc_no_link = xyes; then
52853 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52855 { (exit 1); exit 1; }; }
52856 fi
52857 cat >conftest.$ac_ext <<_ACEOF
52858 /* confdefs.h. */
52859 _ACEOF
52860 cat confdefs.h >>conftest.$ac_ext
52861 cat >>conftest.$ac_ext <<_ACEOF
52862 /* end confdefs.h. */
52863 #include <sys/stat.h>
52864 int
52865 main ()
52866 {
52867 struct stat buffer;
52868 fstat(0, &buffer);
52869 S_IFREG & buffer.st_mode;
52870 ;
52871 return 0;
52872 }
52873 _ACEOF
52874 rm -f conftest.$ac_objext conftest$ac_exeext
52875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52876 (eval $ac_link) 2>conftest.er1
52877 ac_status=$?
52878 grep -v '^ *+' conftest.er1 >conftest.err
52879 rm -f conftest.er1
52880 cat conftest.err >&5
52881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52882 (exit $ac_status); } &&
52883 { ac_try='test -z "$ac_c_werror_flag"
52884 || test ! -s conftest.err'
52885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52886 (eval $ac_try) 2>&5
52887 ac_status=$?
52888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52889 (exit $ac_status); }; } &&
52890 { ac_try='test -s conftest$ac_exeext'
52891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52892 (eval $ac_try) 2>&5
52893 ac_status=$?
52894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52895 (exit $ac_status); }; }; then
52896 glibcxx_cv_S_IFREG=yes
52897 else
52898 echo "$as_me: failed program was:" >&5
52899 sed 's/^/| /' conftest.$ac_ext >&5
52900
52901 glibcxx_cv_S_IFREG=no
52902 fi
52903 rm -f conftest.err conftest.$ac_objext \
52904 conftest$ac_exeext conftest.$ac_ext
52905
52906 fi
52907
52908 if test $glibcxx_cv_S_ISREG = yes; then
52909 cat >>confdefs.h <<\_ACEOF
52910 #define HAVE_S_ISREG 1
52911 _ACEOF
52912
52913 elif test $glibcxx_cv_S_IFREG = yes; then
52914 cat >>confdefs.h <<\_ACEOF
52915 #define HAVE_S_IFREG 1
52916 _ACEOF
52917
52918 fi
52919
52920
52921 # For xsputn_2().
52922
52923 for ac_header in sys/uio.h
52924 do
52925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52927 echo "$as_me:$LINENO: checking for $ac_header" >&5
52928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52930 echo $ECHO_N "(cached) $ECHO_C" >&6
52931 fi
52932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52934 else
52935 # Is the header compilable?
52936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52938 cat >conftest.$ac_ext <<_ACEOF
52939 /* confdefs.h. */
52940 _ACEOF
52941 cat confdefs.h >>conftest.$ac_ext
52942 cat >>conftest.$ac_ext <<_ACEOF
52943 /* end confdefs.h. */
52944 $ac_includes_default
52945 #include <$ac_header>
52946 _ACEOF
52947 rm -f conftest.$ac_objext
52948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52949 (eval $ac_compile) 2>conftest.er1
52950 ac_status=$?
52951 grep -v '^ *+' conftest.er1 >conftest.err
52952 rm -f conftest.er1
52953 cat conftest.err >&5
52954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52955 (exit $ac_status); } &&
52956 { ac_try='test -z "$ac_c_werror_flag"
52957 || test ! -s conftest.err'
52958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52959 (eval $ac_try) 2>&5
52960 ac_status=$?
52961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52962 (exit $ac_status); }; } &&
52963 { ac_try='test -s conftest.$ac_objext'
52964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52965 (eval $ac_try) 2>&5
52966 ac_status=$?
52967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52968 (exit $ac_status); }; }; then
52969 ac_header_compiler=yes
52970 else
52971 echo "$as_me: failed program was:" >&5
52972 sed 's/^/| /' conftest.$ac_ext >&5
52973
52974 ac_header_compiler=no
52975 fi
52976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52978 echo "${ECHO_T}$ac_header_compiler" >&6
52979
52980 # Is the header present?
52981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52983 cat >conftest.$ac_ext <<_ACEOF
52984 /* confdefs.h. */
52985 _ACEOF
52986 cat confdefs.h >>conftest.$ac_ext
52987 cat >>conftest.$ac_ext <<_ACEOF
52988 /* end confdefs.h. */
52989 #include <$ac_header>
52990 _ACEOF
52991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52993 ac_status=$?
52994 grep -v '^ *+' conftest.er1 >conftest.err
52995 rm -f conftest.er1
52996 cat conftest.err >&5
52997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
52998 (exit $ac_status); } >/dev/null; then
52999 if test -s conftest.err; then
53000 ac_cpp_err=$ac_c_preproc_warn_flag
53001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53002 else
53003 ac_cpp_err=
53004 fi
53005 else
53006 ac_cpp_err=yes
53007 fi
53008 if test -z "$ac_cpp_err"; then
53009 ac_header_preproc=yes
53010 else
53011 echo "$as_me: failed program was:" >&5
53012 sed 's/^/| /' conftest.$ac_ext >&5
53013
53014 ac_header_preproc=no
53015 fi
53016 rm -f conftest.err conftest.$ac_ext
53017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53018 echo "${ECHO_T}$ac_header_preproc" >&6
53019
53020 # So? What about this header?
53021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53022 yes:no: )
53023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53027 ac_header_preproc=yes
53028 ;;
53029 no:yes:* )
53030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53042 (
53043 cat <<\_ASBOX
53044 ## ----------------------------------------- ##
53045 ## Report this to the package-unused lists. ##
53046 ## ----------------------------------------- ##
53047 _ASBOX
53048 ) |
53049 sed "s/^/$as_me: WARNING: /" >&2
53050 ;;
53051 esac
53052 echo "$as_me:$LINENO: checking for $ac_header" >&5
53053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53055 echo $ECHO_N "(cached) $ECHO_C" >&6
53056 else
53057 eval "$as_ac_Header=\$ac_header_preproc"
53058 fi
53059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53061
53062 fi
53063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53064 cat >>confdefs.h <<_ACEOF
53065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53066 _ACEOF
53067
53068 fi
53069
53070 done
53071
53072
53073 if test "${glibcxx_cv_WRITEV+set}" = set; then
53074 echo $ECHO_N "(cached) $ECHO_C" >&6
53075 else
53076
53077 if test x$gcc_no_link = xyes; then
53078 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53079 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53080 { (exit 1); exit 1; }; }
53081 fi
53082 cat >conftest.$ac_ext <<_ACEOF
53083 /* confdefs.h. */
53084 _ACEOF
53085 cat confdefs.h >>conftest.$ac_ext
53086 cat >>conftest.$ac_ext <<_ACEOF
53087 /* end confdefs.h. */
53088 #include <sys/uio.h>
53089 int
53090 main ()
53091 {
53092 struct iovec iov[2];
53093 writev(0, iov, 0);
53094 ;
53095 return 0;
53096 }
53097 _ACEOF
53098 rm -f conftest.$ac_objext conftest$ac_exeext
53099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53100 (eval $ac_link) 2>conftest.er1
53101 ac_status=$?
53102 grep -v '^ *+' conftest.er1 >conftest.err
53103 rm -f conftest.er1
53104 cat conftest.err >&5
53105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53106 (exit $ac_status); } &&
53107 { ac_try='test -z "$ac_c_werror_flag"
53108 || test ! -s conftest.err'
53109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53110 (eval $ac_try) 2>&5
53111 ac_status=$?
53112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53113 (exit $ac_status); }; } &&
53114 { ac_try='test -s conftest$ac_exeext'
53115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53116 (eval $ac_try) 2>&5
53117 ac_status=$?
53118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53119 (exit $ac_status); }; }; then
53120 glibcxx_cv_WRITEV=yes
53121 else
53122 echo "$as_me: failed program was:" >&5
53123 sed 's/^/| /' conftest.$ac_ext >&5
53124
53125 glibcxx_cv_WRITEV=no
53126 fi
53127 rm -f conftest.err conftest.$ac_objext \
53128 conftest$ac_exeext conftest.$ac_ext
53129
53130 fi
53131
53132 if test $glibcxx_cv_WRITEV = yes; then
53133 cat >>confdefs.h <<\_ACEOF
53134 #define HAVE_WRITEV 1
53135 _ACEOF
53136
53137 fi
53138
53139
53140 cat >>confdefs.h <<\_ACEOF
53141 #define HAVE_LC_MESSAGES 1
53142 _ACEOF
53143
53144
53145 cat >conftest.$ac_ext <<_ACEOF
53146 /* confdefs.h. */
53147 _ACEOF
53148 cat confdefs.h >>conftest.$ac_ext
53149 cat >>conftest.$ac_ext <<_ACEOF
53150 /* end confdefs.h. */
53151 #include <setjmp.h>
53152 int
53153 main ()
53154 {
53155 sigjmp_buf env;
53156 while (! sigsetjmp (env, 1))
53157 siglongjmp (env, 1);
53158
53159 ;
53160 return 0;
53161 }
53162 _ACEOF
53163 rm -f conftest.$ac_objext
53164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53165 (eval $ac_compile) 2>conftest.er1
53166 ac_status=$?
53167 grep -v '^ *+' conftest.er1 >conftest.err
53168 rm -f conftest.er1
53169 cat conftest.err >&5
53170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53171 (exit $ac_status); } &&
53172 { ac_try='test -z "$ac_c_werror_flag"
53173 || test ! -s conftest.err'
53174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53175 (eval $ac_try) 2>&5
53176 ac_status=$?
53177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53178 (exit $ac_status); }; } &&
53179 { ac_try='test -s conftest.$ac_objext'
53180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53181 (eval $ac_try) 2>&5
53182 ac_status=$?
53183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53184 (exit $ac_status); }; }; then
53185
53186 cat >>confdefs.h <<\_ACEOF
53187 #define HAVE_SIGSETJMP 1
53188 _ACEOF
53189
53190 else
53191 echo "$as_me: failed program was:" >&5
53192 sed 's/^/| /' conftest.$ac_ext >&5
53193
53194 fi
53195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53196
53197 cat >>confdefs.h <<\_ACEOF
53198 #define HAVE_MMAP 1
53199 _ACEOF
53200
53201 ;;
53202
53203 *-freebsd*)
53204
53205
53206
53207
53208
53209
53210
53211
53212
53213
53214
53215
53216
53217
53218
53219
53220 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
53221 machine/endian.h machine/param.h sys/machine.h sys/types.h \
53222 fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
53223 sys/time.h unistd.h
53224 do
53225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53227 echo "$as_me:$LINENO: checking for $ac_header" >&5
53228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53230 echo $ECHO_N "(cached) $ECHO_C" >&6
53231 fi
53232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53234 else
53235 # Is the header compilable?
53236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53238 cat >conftest.$ac_ext <<_ACEOF
53239 /* confdefs.h. */
53240 _ACEOF
53241 cat confdefs.h >>conftest.$ac_ext
53242 cat >>conftest.$ac_ext <<_ACEOF
53243 /* end confdefs.h. */
53244 $ac_includes_default
53245 #include <$ac_header>
53246 _ACEOF
53247 rm -f conftest.$ac_objext
53248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53249 (eval $ac_compile) 2>conftest.er1
53250 ac_status=$?
53251 grep -v '^ *+' conftest.er1 >conftest.err
53252 rm -f conftest.er1
53253 cat conftest.err >&5
53254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53255 (exit $ac_status); } &&
53256 { ac_try='test -z "$ac_c_werror_flag"
53257 || test ! -s conftest.err'
53258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53259 (eval $ac_try) 2>&5
53260 ac_status=$?
53261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53262 (exit $ac_status); }; } &&
53263 { ac_try='test -s conftest.$ac_objext'
53264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53265 (eval $ac_try) 2>&5
53266 ac_status=$?
53267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53268 (exit $ac_status); }; }; then
53269 ac_header_compiler=yes
53270 else
53271 echo "$as_me: failed program was:" >&5
53272 sed 's/^/| /' conftest.$ac_ext >&5
53273
53274 ac_header_compiler=no
53275 fi
53276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53278 echo "${ECHO_T}$ac_header_compiler" >&6
53279
53280 # Is the header present?
53281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53283 cat >conftest.$ac_ext <<_ACEOF
53284 /* confdefs.h. */
53285 _ACEOF
53286 cat confdefs.h >>conftest.$ac_ext
53287 cat >>conftest.$ac_ext <<_ACEOF
53288 /* end confdefs.h. */
53289 #include <$ac_header>
53290 _ACEOF
53291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53293 ac_status=$?
53294 grep -v '^ *+' conftest.er1 >conftest.err
53295 rm -f conftest.er1
53296 cat conftest.err >&5
53297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53298 (exit $ac_status); } >/dev/null; then
53299 if test -s conftest.err; then
53300 ac_cpp_err=$ac_c_preproc_warn_flag
53301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53302 else
53303 ac_cpp_err=
53304 fi
53305 else
53306 ac_cpp_err=yes
53307 fi
53308 if test -z "$ac_cpp_err"; then
53309 ac_header_preproc=yes
53310 else
53311 echo "$as_me: failed program was:" >&5
53312 sed 's/^/| /' conftest.$ac_ext >&5
53313
53314 ac_header_preproc=no
53315 fi
53316 rm -f conftest.err conftest.$ac_ext
53317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53318 echo "${ECHO_T}$ac_header_preproc" >&6
53319
53320 # So? What about this header?
53321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53322 yes:no: )
53323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53327 ac_header_preproc=yes
53328 ;;
53329 no:yes:* )
53330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53333 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
53337 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
53338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53342 (
53343 cat <<\_ASBOX
53344 ## ----------------------------------------- ##
53345 ## Report this to the package-unused lists. ##
53346 ## ----------------------------------------- ##
53347 _ASBOX
53348 ) |
53349 sed "s/^/$as_me: WARNING: /" >&2
53350 ;;
53351 esac
53352 echo "$as_me:$LINENO: checking for $ac_header" >&5
53353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53355 echo $ECHO_N "(cached) $ECHO_C" >&6
53356 else
53357 eval "$as_ac_Header=\$ac_header_preproc"
53358 fi
53359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53361
53362 fi
53363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53364 cat >>confdefs.h <<_ACEOF
53365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53366 _ACEOF
53367
53368 fi
53369
53370 done
53371
53372 SECTION_FLAGS='-ffunction-sections -fdata-sections'
53373
53374
53375 # If we're not using GNU ld, then there's no point in even trying these
53376 # tests. Check for that first. We should have already tested for gld
53377 # by now (in libtool), but require it now just to be safe...
53378 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
53379 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
53380
53381
53382
53383 # The name set by libtool depends on the version of libtool. Shame on us
53384 # for depending on an impl detail, but c'est la vie. Older versions used
53385 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
53386 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
53387 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
53388 # set (hence we're using an older libtool), then set it.
53389 if test x${with_gnu_ld+set} != xset; then
53390 if test x${ac_cv_prog_gnu_ld+set} != xset; then
53391 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
53392 with_gnu_ld=no
53393 else
53394 with_gnu_ld=$ac_cv_prog_gnu_ld
53395 fi
53396 fi
53397
53398 # Start by getting the version number. I think the libtool test already
53399 # does some of this, but throws away the result.
53400
53401 ldver=`$LD --version 2>/dev/null | head -1 | \
53402 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
53403
53404 glibcxx_gnu_ld_version=`echo $ldver | \
53405 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
53406
53407 # Set --gc-sections.
53408 if test "$with_gnu_ld" = "notbroken"; then
53409 # GNU ld it is! Joy and bunny rabbits!
53410
53411 # All these tests are for C++; save the language and the compiler flags.
53412 # Need to do this so that g++ won't try to link in libstdc++
53413 ac_test_CFLAGS="${CFLAGS+set}"
53414 ac_save_CFLAGS="$CFLAGS"
53415 CFLAGS='-x c++ -Wl,--gc-sections'
53416
53417 # Check for -Wl,--gc-sections
53418 # XXX This test is broken at the moment, as symbols required for linking
53419 # are now in libsupc++ (not built yet). In addition, this test has
53420 # cored on solaris in the past. In addition, --gc-sections doesn't
53421 # really work at the moment (keeps on discarding used sections, first
53422 # .eh_frame and now some of the glibc sections for iconv).
53423 # Bzzzzt. Thanks for playing, maybe next time.
53424 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
53425 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
53426 if test "$cross_compiling" = yes; then
53427 ac_sectionLDflags=yes
53428 else
53429 cat >conftest.$ac_ext <<_ACEOF
53430 /* confdefs.h. */
53431 _ACEOF
53432 cat confdefs.h >>conftest.$ac_ext
53433 cat >>conftest.$ac_ext <<_ACEOF
53434 /* end confdefs.h. */
53435
53436 int main(void)
53437 {
53438 try { throw 1; }
53439 catch (...) { };
53440 return 0;
53441 }
53442
53443 _ACEOF
53444 rm -f conftest$ac_exeext
53445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53446 (eval $ac_link) 2>&5
53447 ac_status=$?
53448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53451 (eval $ac_try) 2>&5
53452 ac_status=$?
53453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53454 (exit $ac_status); }; }; then
53455 ac_sectionLDflags=yes
53456 else
53457 echo "$as_me: program exited with status $ac_status" >&5
53458 echo "$as_me: failed program was:" >&5
53459 sed 's/^/| /' conftest.$ac_ext >&5
53460
53461 ( exit $ac_status )
53462 ac_sectionLDflags=no
53463 fi
53464 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53465 fi
53466 if test "$ac_test_CFLAGS" = set; then
53467 CFLAGS="$ac_save_CFLAGS"
53468 else
53469 # this is the suspicious part
53470 CFLAGS=''
53471 fi
53472 if test "$ac_sectionLDflags" = "yes"; then
53473 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
53474 fi
53475 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
53476 echo "${ECHO_T}$ac_sectionLDflags" >&6
53477 fi
53478
53479 # Set linker optimization flags.
53480 if test x"$with_gnu_ld" = x"yes"; then
53481 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
53482 fi
53483
53484
53485
53486
53487
53488
53489 echo "$as_me:$LINENO: checking for main in -lm" >&5
53490 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
53491 if test "${ac_cv_lib_m_main+set}" = set; then
53492 echo $ECHO_N "(cached) $ECHO_C" >&6
53493 else
53494 ac_check_lib_save_LIBS=$LIBS
53495 LIBS="-lm $LIBS"
53496 if test x$gcc_no_link = xyes; then
53497 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53498 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53499 { (exit 1); exit 1; }; }
53500 fi
53501 cat >conftest.$ac_ext <<_ACEOF
53502 /* confdefs.h. */
53503 _ACEOF
53504 cat confdefs.h >>conftest.$ac_ext
53505 cat >>conftest.$ac_ext <<_ACEOF
53506 /* end confdefs.h. */
53507
53508
53509 int
53510 main ()
53511 {
53512 main ();
53513 ;
53514 return 0;
53515 }
53516 _ACEOF
53517 rm -f conftest.$ac_objext conftest$ac_exeext
53518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53519 (eval $ac_link) 2>conftest.er1
53520 ac_status=$?
53521 grep -v '^ *+' conftest.er1 >conftest.err
53522 rm -f conftest.er1
53523 cat conftest.err >&5
53524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53525 (exit $ac_status); } &&
53526 { ac_try='test -z "$ac_c_werror_flag"
53527 || test ! -s conftest.err'
53528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53529 (eval $ac_try) 2>&5
53530 ac_status=$?
53531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53532 (exit $ac_status); }; } &&
53533 { ac_try='test -s conftest$ac_exeext'
53534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53535 (eval $ac_try) 2>&5
53536 ac_status=$?
53537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53538 (exit $ac_status); }; }; then
53539 ac_cv_lib_m_main=yes
53540 else
53541 echo "$as_me: failed program was:" >&5
53542 sed 's/^/| /' conftest.$ac_ext >&5
53543
53544 ac_cv_lib_m_main=no
53545 fi
53546 rm -f conftest.err conftest.$ac_objext \
53547 conftest$ac_exeext conftest.$ac_ext
53548 LIBS=$ac_check_lib_save_LIBS
53549 fi
53550 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
53551 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
53552 if test $ac_cv_lib_m_main = yes; then
53553 cat >>confdefs.h <<_ACEOF
53554 #define HAVE_LIBM 1
53555 _ACEOF
53556
53557 LIBS="-lm $LIBS"
53558
53559 fi
53560
53561
53562 for ac_func in copysignf
53563 do
53564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53565 echo "$as_me:$LINENO: checking for $ac_func" >&5
53566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53567 if eval "test \"\${$as_ac_var+set}\" = set"; then
53568 echo $ECHO_N "(cached) $ECHO_C" >&6
53569 else
53570 if test x$gcc_no_link = xyes; then
53571 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53572 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53573 { (exit 1); exit 1; }; }
53574 fi
53575 cat >conftest.$ac_ext <<_ACEOF
53576 /* confdefs.h. */
53577 _ACEOF
53578 cat confdefs.h >>conftest.$ac_ext
53579 cat >>conftest.$ac_ext <<_ACEOF
53580 /* end confdefs.h. */
53581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53583 #define $ac_func innocuous_$ac_func
53584
53585 /* System header to define __stub macros and hopefully few prototypes,
53586 which can conflict with char $ac_func (); below.
53587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53588 <limits.h> exists even on freestanding compilers. */
53589
53590 #ifdef __STDC__
53591 # include <limits.h>
53592 #else
53593 # include <assert.h>
53594 #endif
53595
53596 #undef $ac_func
53597
53598 /* Override any gcc2 internal prototype to avoid an error. */
53599 #ifdef __cplusplus
53600 extern "C"
53601 {
53602 #endif
53603 /* We use char because int might match the return type of a gcc2
53604 builtin and then its argument prototype would still apply. */
53605 char $ac_func ();
53606 /* The GNU C library defines this for functions which it implements
53607 to always fail with ENOSYS. Some functions are actually named
53608 something starting with __ and the normal name is an alias. */
53609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53610 choke me
53611 #else
53612 char (*f) () = $ac_func;
53613 #endif
53614 #ifdef __cplusplus
53615 }
53616 #endif
53617
53618 int
53619 main ()
53620 {
53621 return f != $ac_func;
53622 ;
53623 return 0;
53624 }
53625 _ACEOF
53626 rm -f conftest.$ac_objext conftest$ac_exeext
53627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53628 (eval $ac_link) 2>conftest.er1
53629 ac_status=$?
53630 grep -v '^ *+' conftest.er1 >conftest.err
53631 rm -f conftest.er1
53632 cat conftest.err >&5
53633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53634 (exit $ac_status); } &&
53635 { ac_try='test -z "$ac_c_werror_flag"
53636 || test ! -s conftest.err'
53637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53638 (eval $ac_try) 2>&5
53639 ac_status=$?
53640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53641 (exit $ac_status); }; } &&
53642 { ac_try='test -s conftest$ac_exeext'
53643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53644 (eval $ac_try) 2>&5
53645 ac_status=$?
53646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53647 (exit $ac_status); }; }; then
53648 eval "$as_ac_var=yes"
53649 else
53650 echo "$as_me: failed program was:" >&5
53651 sed 's/^/| /' conftest.$ac_ext >&5
53652
53653 eval "$as_ac_var=no"
53654 fi
53655 rm -f conftest.err conftest.$ac_objext \
53656 conftest$ac_exeext conftest.$ac_ext
53657 fi
53658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53660 if test `eval echo '${'$as_ac_var'}'` = yes; then
53661 cat >>confdefs.h <<_ACEOF
53662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53663 _ACEOF
53664
53665 else
53666 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
53667 fi
53668 done
53669
53670
53671
53672 for ac_func in __signbit
53673 do
53674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53675 echo "$as_me:$LINENO: checking for $ac_func" >&5
53676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53677 if eval "test \"\${$as_ac_var+set}\" = set"; then
53678 echo $ECHO_N "(cached) $ECHO_C" >&6
53679 else
53680 if test x$gcc_no_link = xyes; then
53681 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53682 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53683 { (exit 1); exit 1; }; }
53684 fi
53685 cat >conftest.$ac_ext <<_ACEOF
53686 /* confdefs.h. */
53687 _ACEOF
53688 cat confdefs.h >>conftest.$ac_ext
53689 cat >>conftest.$ac_ext <<_ACEOF
53690 /* end confdefs.h. */
53691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53693 #define $ac_func innocuous_$ac_func
53694
53695 /* System header to define __stub macros and hopefully few prototypes,
53696 which can conflict with char $ac_func (); below.
53697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53698 <limits.h> exists even on freestanding compilers. */
53699
53700 #ifdef __STDC__
53701 # include <limits.h>
53702 #else
53703 # include <assert.h>
53704 #endif
53705
53706 #undef $ac_func
53707
53708 /* Override any gcc2 internal prototype to avoid an error. */
53709 #ifdef __cplusplus
53710 extern "C"
53711 {
53712 #endif
53713 /* We use char because int might match the return type of a gcc2
53714 builtin and then its argument prototype would still apply. */
53715 char $ac_func ();
53716 /* The GNU C library defines this for functions which it implements
53717 to always fail with ENOSYS. Some functions are actually named
53718 something starting with __ and the normal name is an alias. */
53719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53720 choke me
53721 #else
53722 char (*f) () = $ac_func;
53723 #endif
53724 #ifdef __cplusplus
53725 }
53726 #endif
53727
53728 int
53729 main ()
53730 {
53731 return f != $ac_func;
53732 ;
53733 return 0;
53734 }
53735 _ACEOF
53736 rm -f conftest.$ac_objext conftest$ac_exeext
53737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53738 (eval $ac_link) 2>conftest.er1
53739 ac_status=$?
53740 grep -v '^ *+' conftest.er1 >conftest.err
53741 rm -f conftest.er1
53742 cat conftest.err >&5
53743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53744 (exit $ac_status); } &&
53745 { ac_try='test -z "$ac_c_werror_flag"
53746 || test ! -s conftest.err'
53747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53748 (eval $ac_try) 2>&5
53749 ac_status=$?
53750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53751 (exit $ac_status); }; } &&
53752 { ac_try='test -s conftest$ac_exeext'
53753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53754 (eval $ac_try) 2>&5
53755 ac_status=$?
53756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53757 (exit $ac_status); }; }; then
53758 eval "$as_ac_var=yes"
53759 else
53760 echo "$as_me: failed program was:" >&5
53761 sed 's/^/| /' conftest.$ac_ext >&5
53762
53763 eval "$as_ac_var=no"
53764 fi
53765 rm -f conftest.err conftest.$ac_objext \
53766 conftest$ac_exeext conftest.$ac_ext
53767 fi
53768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53770 if test `eval echo '${'$as_ac_var'}'` = yes; then
53771 cat >>confdefs.h <<_ACEOF
53772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53773 _ACEOF
53774
53775 else
53776 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
53777 fi
53778 done
53779
53780
53781
53782 for ac_func in __signbitf
53783 do
53784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53785 echo "$as_me:$LINENO: checking for $ac_func" >&5
53786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53787 if eval "test \"\${$as_ac_var+set}\" = set"; then
53788 echo $ECHO_N "(cached) $ECHO_C" >&6
53789 else
53790 if test x$gcc_no_link = xyes; then
53791 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53792 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53793 { (exit 1); exit 1; }; }
53794 fi
53795 cat >conftest.$ac_ext <<_ACEOF
53796 /* confdefs.h. */
53797 _ACEOF
53798 cat confdefs.h >>conftest.$ac_ext
53799 cat >>conftest.$ac_ext <<_ACEOF
53800 /* end confdefs.h. */
53801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53803 #define $ac_func innocuous_$ac_func
53804
53805 /* System header to define __stub macros and hopefully few prototypes,
53806 which can conflict with char $ac_func (); below.
53807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53808 <limits.h> exists even on freestanding compilers. */
53809
53810 #ifdef __STDC__
53811 # include <limits.h>
53812 #else
53813 # include <assert.h>
53814 #endif
53815
53816 #undef $ac_func
53817
53818 /* Override any gcc2 internal prototype to avoid an error. */
53819 #ifdef __cplusplus
53820 extern "C"
53821 {
53822 #endif
53823 /* We use char because int might match the return type of a gcc2
53824 builtin and then its argument prototype would still apply. */
53825 char $ac_func ();
53826 /* The GNU C library defines this for functions which it implements
53827 to always fail with ENOSYS. Some functions are actually named
53828 something starting with __ and the normal name is an alias. */
53829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53830 choke me
53831 #else
53832 char (*f) () = $ac_func;
53833 #endif
53834 #ifdef __cplusplus
53835 }
53836 #endif
53837
53838 int
53839 main ()
53840 {
53841 return f != $ac_func;
53842 ;
53843 return 0;
53844 }
53845 _ACEOF
53846 rm -f conftest.$ac_objext conftest$ac_exeext
53847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53848 (eval $ac_link) 2>conftest.er1
53849 ac_status=$?
53850 grep -v '^ *+' conftest.er1 >conftest.err
53851 rm -f conftest.er1
53852 cat conftest.err >&5
53853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53854 (exit $ac_status); } &&
53855 { ac_try='test -z "$ac_c_werror_flag"
53856 || test ! -s conftest.err'
53857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53858 (eval $ac_try) 2>&5
53859 ac_status=$?
53860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53861 (exit $ac_status); }; } &&
53862 { ac_try='test -s conftest$ac_exeext'
53863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53864 (eval $ac_try) 2>&5
53865 ac_status=$?
53866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53867 (exit $ac_status); }; }; then
53868 eval "$as_ac_var=yes"
53869 else
53870 echo "$as_me: failed program was:" >&5
53871 sed 's/^/| /' conftest.$ac_ext >&5
53872
53873 eval "$as_ac_var=no"
53874 fi
53875 rm -f conftest.err conftest.$ac_objext \
53876 conftest$ac_exeext conftest.$ac_ext
53877 fi
53878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53880 if test `eval echo '${'$as_ac_var'}'` = yes; then
53881 cat >>confdefs.h <<_ACEOF
53882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53883 _ACEOF
53884
53885 else
53886 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
53887 fi
53888 done
53889
53890
53891 if test x$ac_cv_func_copysignl = x"yes"; then
53892
53893 for ac_func in __signbitl
53894 do
53895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53896 echo "$as_me:$LINENO: checking for $ac_func" >&5
53897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53898 if eval "test \"\${$as_ac_var+set}\" = set"; then
53899 echo $ECHO_N "(cached) $ECHO_C" >&6
53900 else
53901 if test x$gcc_no_link = xyes; then
53902 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53903 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53904 { (exit 1); exit 1; }; }
53905 fi
53906 cat >conftest.$ac_ext <<_ACEOF
53907 /* confdefs.h. */
53908 _ACEOF
53909 cat confdefs.h >>conftest.$ac_ext
53910 cat >>conftest.$ac_ext <<_ACEOF
53911 /* end confdefs.h. */
53912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
53914 #define $ac_func innocuous_$ac_func
53915
53916 /* System header to define __stub macros and hopefully few prototypes,
53917 which can conflict with char $ac_func (); below.
53918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53919 <limits.h> exists even on freestanding compilers. */
53920
53921 #ifdef __STDC__
53922 # include <limits.h>
53923 #else
53924 # include <assert.h>
53925 #endif
53926
53927 #undef $ac_func
53928
53929 /* Override any gcc2 internal prototype to avoid an error. */
53930 #ifdef __cplusplus
53931 extern "C"
53932 {
53933 #endif
53934 /* We use char because int might match the return type of a gcc2
53935 builtin and then its argument prototype would still apply. */
53936 char $ac_func ();
53937 /* The GNU C library defines this for functions which it implements
53938 to always fail with ENOSYS. Some functions are actually named
53939 something starting with __ and the normal name is an alias. */
53940 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53941 choke me
53942 #else
53943 char (*f) () = $ac_func;
53944 #endif
53945 #ifdef __cplusplus
53946 }
53947 #endif
53948
53949 int
53950 main ()
53951 {
53952 return f != $ac_func;
53953 ;
53954 return 0;
53955 }
53956 _ACEOF
53957 rm -f conftest.$ac_objext conftest$ac_exeext
53958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53959 (eval $ac_link) 2>conftest.er1
53960 ac_status=$?
53961 grep -v '^ *+' conftest.er1 >conftest.err
53962 rm -f conftest.er1
53963 cat conftest.err >&5
53964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53965 (exit $ac_status); } &&
53966 { ac_try='test -z "$ac_c_werror_flag"
53967 || test ! -s conftest.err'
53968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53969 (eval $ac_try) 2>&5
53970 ac_status=$?
53971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53972 (exit $ac_status); }; } &&
53973 { ac_try='test -s conftest$ac_exeext'
53974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53975 (eval $ac_try) 2>&5
53976 ac_status=$?
53977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
53978 (exit $ac_status); }; }; then
53979 eval "$as_ac_var=yes"
53980 else
53981 echo "$as_me: failed program was:" >&5
53982 sed 's/^/| /' conftest.$ac_ext >&5
53983
53984 eval "$as_ac_var=no"
53985 fi
53986 rm -f conftest.err conftest.$ac_objext \
53987 conftest$ac_exeext conftest.$ac_ext
53988 fi
53989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53991 if test `eval echo '${'$as_ac_var'}'` = yes; then
53992 cat >>confdefs.h <<_ACEOF
53993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53994 _ACEOF
53995
53996 else
53997 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
53998 fi
53999 done
54000
54001 fi
54002
54003 # Used in libmath/Makefile.am.
54004 if test -n "$LIBMATHOBJS"; then
54005 need_libmath=yes
54006 fi
54007
54008
54009
54010 # Test wchar.h for mbstate_t, which is needed for char_traits and
54011 # others even if wchar_t support is not on.
54012 echo "$as_me:$LINENO: checking for mbstate_t" >&5
54013 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
54014 cat >conftest.$ac_ext <<_ACEOF
54015 /* confdefs.h. */
54016 _ACEOF
54017 cat confdefs.h >>conftest.$ac_ext
54018 cat >>conftest.$ac_ext <<_ACEOF
54019 /* end confdefs.h. */
54020 #include <wchar.h>
54021 int
54022 main ()
54023 {
54024 mbstate_t teststate;
54025 ;
54026 return 0;
54027 }
54028 _ACEOF
54029 rm -f conftest.$ac_objext
54030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54031 (eval $ac_compile) 2>conftest.er1
54032 ac_status=$?
54033 grep -v '^ *+' conftest.er1 >conftest.err
54034 rm -f conftest.er1
54035 cat conftest.err >&5
54036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54037 (exit $ac_status); } &&
54038 { ac_try='test -z "$ac_c_werror_flag"
54039 || test ! -s conftest.err'
54040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54041 (eval $ac_try) 2>&5
54042 ac_status=$?
54043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54044 (exit $ac_status); }; } &&
54045 { ac_try='test -s conftest.$ac_objext'
54046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54047 (eval $ac_try) 2>&5
54048 ac_status=$?
54049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54050 (exit $ac_status); }; }; then
54051 have_mbstate_t=yes
54052 else
54053 echo "$as_me: failed program was:" >&5
54054 sed 's/^/| /' conftest.$ac_ext >&5
54055
54056 have_mbstate_t=no
54057 fi
54058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54059 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
54060 echo "${ECHO_T}$have_mbstate_t" >&6
54061 if test x"$have_mbstate_t" = xyes; then
54062 cat >>confdefs.h <<\_ACEOF
54063 #define HAVE_MBSTATE_T 1
54064 _ACEOF
54065
54066 fi
54067
54068 # Sanity check for existence of ISO C99 headers for extended encoding.
54069
54070 for ac_header in wchar.h
54071 do
54072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54074 echo "$as_me:$LINENO: checking for $ac_header" >&5
54075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54077 echo $ECHO_N "(cached) $ECHO_C" >&6
54078 fi
54079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54081 else
54082 # Is the header compilable?
54083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54085 cat >conftest.$ac_ext <<_ACEOF
54086 /* confdefs.h. */
54087 _ACEOF
54088 cat confdefs.h >>conftest.$ac_ext
54089 cat >>conftest.$ac_ext <<_ACEOF
54090 /* end confdefs.h. */
54091 $ac_includes_default
54092 #include <$ac_header>
54093 _ACEOF
54094 rm -f conftest.$ac_objext
54095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54096 (eval $ac_compile) 2>conftest.er1
54097 ac_status=$?
54098 grep -v '^ *+' conftest.er1 >conftest.err
54099 rm -f conftest.er1
54100 cat conftest.err >&5
54101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54102 (exit $ac_status); } &&
54103 { ac_try='test -z "$ac_c_werror_flag"
54104 || test ! -s conftest.err'
54105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54106 (eval $ac_try) 2>&5
54107 ac_status=$?
54108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54109 (exit $ac_status); }; } &&
54110 { ac_try='test -s conftest.$ac_objext'
54111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54112 (eval $ac_try) 2>&5
54113 ac_status=$?
54114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54115 (exit $ac_status); }; }; then
54116 ac_header_compiler=yes
54117 else
54118 echo "$as_me: failed program was:" >&5
54119 sed 's/^/| /' conftest.$ac_ext >&5
54120
54121 ac_header_compiler=no
54122 fi
54123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54125 echo "${ECHO_T}$ac_header_compiler" >&6
54126
54127 # Is the header present?
54128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54130 cat >conftest.$ac_ext <<_ACEOF
54131 /* confdefs.h. */
54132 _ACEOF
54133 cat confdefs.h >>conftest.$ac_ext
54134 cat >>conftest.$ac_ext <<_ACEOF
54135 /* end confdefs.h. */
54136 #include <$ac_header>
54137 _ACEOF
54138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54140 ac_status=$?
54141 grep -v '^ *+' conftest.er1 >conftest.err
54142 rm -f conftest.er1
54143 cat conftest.err >&5
54144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54145 (exit $ac_status); } >/dev/null; then
54146 if test -s conftest.err; then
54147 ac_cpp_err=$ac_c_preproc_warn_flag
54148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54149 else
54150 ac_cpp_err=
54151 fi
54152 else
54153 ac_cpp_err=yes
54154 fi
54155 if test -z "$ac_cpp_err"; then
54156 ac_header_preproc=yes
54157 else
54158 echo "$as_me: failed program was:" >&5
54159 sed 's/^/| /' conftest.$ac_ext >&5
54160
54161 ac_header_preproc=no
54162 fi
54163 rm -f conftest.err conftest.$ac_ext
54164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54165 echo "${ECHO_T}$ac_header_preproc" >&6
54166
54167 # So? What about this header?
54168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54169 yes:no: )
54170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54174 ac_header_preproc=yes
54175 ;;
54176 no:yes:* )
54177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
54184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
54185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54189 (
54190 cat <<\_ASBOX
54191 ## ----------------------------------------- ##
54192 ## Report this to the package-unused lists. ##
54193 ## ----------------------------------------- ##
54194 _ASBOX
54195 ) |
54196 sed "s/^/$as_me: WARNING: /" >&2
54197 ;;
54198 esac
54199 echo "$as_me:$LINENO: checking for $ac_header" >&5
54200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54202 echo $ECHO_N "(cached) $ECHO_C" >&6
54203 else
54204 eval "$as_ac_Header=\$ac_header_preproc"
54205 fi
54206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54208
54209 fi
54210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54211 cat >>confdefs.h <<_ACEOF
54212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54213 _ACEOF
54214 ac_has_wchar_h=yes
54215 else
54216 ac_has_wchar_h=no
54217 fi
54218
54219 done
54220
54221
54222 for ac_header in wctype.h
54223 do
54224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54226 echo "$as_me:$LINENO: checking for $ac_header" >&5
54227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54229 echo $ECHO_N "(cached) $ECHO_C" >&6
54230 fi
54231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54233 else
54234 # Is the header compilable?
54235 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54236 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54237 cat >conftest.$ac_ext <<_ACEOF
54238 /* confdefs.h. */
54239 _ACEOF
54240 cat confdefs.h >>conftest.$ac_ext
54241 cat >>conftest.$ac_ext <<_ACEOF
54242 /* end confdefs.h. */
54243 $ac_includes_default
54244 #include <$ac_header>
54245 _ACEOF
54246 rm -f conftest.$ac_objext
54247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54248 (eval $ac_compile) 2>conftest.er1
54249 ac_status=$?
54250 grep -v '^ *+' conftest.er1 >conftest.err
54251 rm -f conftest.er1
54252 cat conftest.err >&5
54253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54254 (exit $ac_status); } &&
54255 { ac_try='test -z "$ac_c_werror_flag"
54256 || test ! -s conftest.err'
54257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54258 (eval $ac_try) 2>&5
54259 ac_status=$?
54260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54261 (exit $ac_status); }; } &&
54262 { ac_try='test -s conftest.$ac_objext'
54263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54264 (eval $ac_try) 2>&5
54265 ac_status=$?
54266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54267 (exit $ac_status); }; }; then
54268 ac_header_compiler=yes
54269 else
54270 echo "$as_me: failed program was:" >&5
54271 sed 's/^/| /' conftest.$ac_ext >&5
54272
54273 ac_header_compiler=no
54274 fi
54275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54277 echo "${ECHO_T}$ac_header_compiler" >&6
54278
54279 # Is the header present?
54280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54282 cat >conftest.$ac_ext <<_ACEOF
54283 /* confdefs.h. */
54284 _ACEOF
54285 cat confdefs.h >>conftest.$ac_ext
54286 cat >>conftest.$ac_ext <<_ACEOF
54287 /* end confdefs.h. */
54288 #include <$ac_header>
54289 _ACEOF
54290 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54292 ac_status=$?
54293 grep -v '^ *+' conftest.er1 >conftest.err
54294 rm -f conftest.er1
54295 cat conftest.err >&5
54296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54297 (exit $ac_status); } >/dev/null; then
54298 if test -s conftest.err; then
54299 ac_cpp_err=$ac_c_preproc_warn_flag
54300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54301 else
54302 ac_cpp_err=
54303 fi
54304 else
54305 ac_cpp_err=yes
54306 fi
54307 if test -z "$ac_cpp_err"; then
54308 ac_header_preproc=yes
54309 else
54310 echo "$as_me: failed program was:" >&5
54311 sed 's/^/| /' conftest.$ac_ext >&5
54312
54313 ac_header_preproc=no
54314 fi
54315 rm -f conftest.err conftest.$ac_ext
54316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54317 echo "${ECHO_T}$ac_header_preproc" >&6
54318
54319 # So? What about this header?
54320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54321 yes:no: )
54322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54326 ac_header_preproc=yes
54327 ;;
54328 no:yes:* )
54329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
54332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
54333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
54336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
54337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54341 (
54342 cat <<\_ASBOX
54343 ## ----------------------------------------- ##
54344 ## Report this to the package-unused lists. ##
54345 ## ----------------------------------------- ##
54346 _ASBOX
54347 ) |
54348 sed "s/^/$as_me: WARNING: /" >&2
54349 ;;
54350 esac
54351 echo "$as_me:$LINENO: checking for $ac_header" >&5
54352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54354 echo $ECHO_N "(cached) $ECHO_C" >&6
54355 else
54356 eval "$as_ac_Header=\$ac_header_preproc"
54357 fi
54358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54360
54361 fi
54362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54363 cat >>confdefs.h <<_ACEOF
54364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54365 _ACEOF
54366 ac_has_wctype_h=yes
54367 else
54368 ac_has_wctype_h=no
54369 fi
54370
54371 done
54372
54373
54374 # Only continue checking if the ISO C99 headers exist and support is on.
54375 if test x"$ac_has_wchar_h" = xyes &&
54376 test x"$ac_has_wctype_h" = xyes &&
54377 test x"$enable_c_mbchar" != xno; then
54378
54379 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
54380 # numeric_limits can instantiate type_traits<wchar_t>
54381 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
54382 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
54383 cat >conftest.$ac_ext <<_ACEOF
54384 /* confdefs.h. */
54385 _ACEOF
54386 cat confdefs.h >>conftest.$ac_ext
54387 cat >>conftest.$ac_ext <<_ACEOF
54388 /* end confdefs.h. */
54389 #include <wchar.h>
54390 int
54391 main ()
54392 {
54393 int i = WCHAR_MIN; int j = WCHAR_MAX;
54394 ;
54395 return 0;
54396 }
54397 _ACEOF
54398 rm -f conftest.$ac_objext
54399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54400 (eval $ac_compile) 2>conftest.er1
54401 ac_status=$?
54402 grep -v '^ *+' conftest.er1 >conftest.err
54403 rm -f conftest.er1
54404 cat conftest.err >&5
54405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54406 (exit $ac_status); } &&
54407 { ac_try='test -z "$ac_c_werror_flag"
54408 || test ! -s conftest.err'
54409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54410 (eval $ac_try) 2>&5
54411 ac_status=$?
54412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54413 (exit $ac_status); }; } &&
54414 { ac_try='test -s conftest.$ac_objext'
54415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54416 (eval $ac_try) 2>&5
54417 ac_status=$?
54418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54419 (exit $ac_status); }; }; then
54420 has_wchar_minmax=yes
54421 else
54422 echo "$as_me: failed program was:" >&5
54423 sed 's/^/| /' conftest.$ac_ext >&5
54424
54425 has_wchar_minmax=no
54426 fi
54427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54428 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
54429 echo "${ECHO_T}$has_wchar_minmax" >&6
54430
54431 # Test wchar.h for WEOF, which is what we use to determine whether
54432 # to specialize for char_traits<wchar_t> or not.
54433 echo "$as_me:$LINENO: checking for WEOF" >&5
54434 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
54435 cat >conftest.$ac_ext <<_ACEOF
54436 /* confdefs.h. */
54437 _ACEOF
54438 cat confdefs.h >>conftest.$ac_ext
54439 cat >>conftest.$ac_ext <<_ACEOF
54440 /* end confdefs.h. */
54441
54442 #include <wchar.h>
54443 #include <stddef.h>
54444 int
54445 main ()
54446 {
54447 wint_t i = WEOF;
54448 ;
54449 return 0;
54450 }
54451 _ACEOF
54452 rm -f conftest.$ac_objext
54453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54454 (eval $ac_compile) 2>conftest.er1
54455 ac_status=$?
54456 grep -v '^ *+' conftest.er1 >conftest.err
54457 rm -f conftest.er1
54458 cat conftest.err >&5
54459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54460 (exit $ac_status); } &&
54461 { ac_try='test -z "$ac_c_werror_flag"
54462 || test ! -s conftest.err'
54463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54464 (eval $ac_try) 2>&5
54465 ac_status=$?
54466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54467 (exit $ac_status); }; } &&
54468 { ac_try='test -s conftest.$ac_objext'
54469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54470 (eval $ac_try) 2>&5
54471 ac_status=$?
54472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54473 (exit $ac_status); }; }; then
54474 has_weof=yes
54475 else
54476 echo "$as_me: failed program was:" >&5
54477 sed 's/^/| /' conftest.$ac_ext >&5
54478
54479 has_weof=no
54480 fi
54481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54482 echo "$as_me:$LINENO: result: $has_weof" >&5
54483 echo "${ECHO_T}$has_weof" >&6
54484
54485 # Tests for wide character functions used in char_traits<wchar_t>.
54486 ac_wfuncs=yes
54487
54488
54489
54490
54491
54492
54493 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
54494 do
54495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54496 echo "$as_me:$LINENO: checking for $ac_func" >&5
54497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54498 if eval "test \"\${$as_ac_var+set}\" = set"; then
54499 echo $ECHO_N "(cached) $ECHO_C" >&6
54500 else
54501 if test x$gcc_no_link = xyes; then
54502 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54503 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54504 { (exit 1); exit 1; }; }
54505 fi
54506 cat >conftest.$ac_ext <<_ACEOF
54507 /* confdefs.h. */
54508 _ACEOF
54509 cat confdefs.h >>conftest.$ac_ext
54510 cat >>conftest.$ac_ext <<_ACEOF
54511 /* end confdefs.h. */
54512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54514 #define $ac_func innocuous_$ac_func
54515
54516 /* System header to define __stub macros and hopefully few prototypes,
54517 which can conflict with char $ac_func (); below.
54518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54519 <limits.h> exists even on freestanding compilers. */
54520
54521 #ifdef __STDC__
54522 # include <limits.h>
54523 #else
54524 # include <assert.h>
54525 #endif
54526
54527 #undef $ac_func
54528
54529 /* Override any gcc2 internal prototype to avoid an error. */
54530 #ifdef __cplusplus
54531 extern "C"
54532 {
54533 #endif
54534 /* We use char because int might match the return type of a gcc2
54535 builtin and then its argument prototype would still apply. */
54536 char $ac_func ();
54537 /* The GNU C library defines this for functions which it implements
54538 to always fail with ENOSYS. Some functions are actually named
54539 something starting with __ and the normal name is an alias. */
54540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54541 choke me
54542 #else
54543 char (*f) () = $ac_func;
54544 #endif
54545 #ifdef __cplusplus
54546 }
54547 #endif
54548
54549 int
54550 main ()
54551 {
54552 return f != $ac_func;
54553 ;
54554 return 0;
54555 }
54556 _ACEOF
54557 rm -f conftest.$ac_objext conftest$ac_exeext
54558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54559 (eval $ac_link) 2>conftest.er1
54560 ac_status=$?
54561 grep -v '^ *+' conftest.er1 >conftest.err
54562 rm -f conftest.er1
54563 cat conftest.err >&5
54564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54565 (exit $ac_status); } &&
54566 { ac_try='test -z "$ac_c_werror_flag"
54567 || test ! -s conftest.err'
54568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54569 (eval $ac_try) 2>&5
54570 ac_status=$?
54571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54572 (exit $ac_status); }; } &&
54573 { ac_try='test -s conftest$ac_exeext'
54574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54575 (eval $ac_try) 2>&5
54576 ac_status=$?
54577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54578 (exit $ac_status); }; }; then
54579 eval "$as_ac_var=yes"
54580 else
54581 echo "$as_me: failed program was:" >&5
54582 sed 's/^/| /' conftest.$ac_ext >&5
54583
54584 eval "$as_ac_var=no"
54585 fi
54586 rm -f conftest.err conftest.$ac_objext \
54587 conftest$ac_exeext conftest.$ac_ext
54588 fi
54589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54591 if test `eval echo '${'$as_ac_var'}'` = yes; then
54592 cat >>confdefs.h <<_ACEOF
54593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54594 _ACEOF
54595
54596 else
54597 ac_wfuncs=no
54598 fi
54599 done
54600
54601
54602 # Checks for names injected into std:: by the c_std headers.
54603
54604
54605
54606
54607
54608
54609
54610
54611
54612
54613
54614
54615
54616
54617
54618
54619
54620
54621
54622
54623
54624
54625
54626
54627
54628
54629
54630
54631
54632
54633
54634
54635
54636
54637
54638
54639
54640
54641
54642
54643
54644
54645
54646
54647
54648
54649 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
54650 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
54651 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
54652 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
54653 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
54654 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
54655 do
54656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54657 echo "$as_me:$LINENO: checking for $ac_func" >&5
54658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54659 if eval "test \"\${$as_ac_var+set}\" = set"; then
54660 echo $ECHO_N "(cached) $ECHO_C" >&6
54661 else
54662 if test x$gcc_no_link = xyes; then
54663 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54665 { (exit 1); exit 1; }; }
54666 fi
54667 cat >conftest.$ac_ext <<_ACEOF
54668 /* confdefs.h. */
54669 _ACEOF
54670 cat confdefs.h >>conftest.$ac_ext
54671 cat >>conftest.$ac_ext <<_ACEOF
54672 /* end confdefs.h. */
54673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54675 #define $ac_func innocuous_$ac_func
54676
54677 /* System header to define __stub macros and hopefully few prototypes,
54678 which can conflict with char $ac_func (); below.
54679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54680 <limits.h> exists even on freestanding compilers. */
54681
54682 #ifdef __STDC__
54683 # include <limits.h>
54684 #else
54685 # include <assert.h>
54686 #endif
54687
54688 #undef $ac_func
54689
54690 /* Override any gcc2 internal prototype to avoid an error. */
54691 #ifdef __cplusplus
54692 extern "C"
54693 {
54694 #endif
54695 /* We use char because int might match the return type of a gcc2
54696 builtin and then its argument prototype would still apply. */
54697 char $ac_func ();
54698 /* The GNU C library defines this for functions which it implements
54699 to always fail with ENOSYS. Some functions are actually named
54700 something starting with __ and the normal name is an alias. */
54701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54702 choke me
54703 #else
54704 char (*f) () = $ac_func;
54705 #endif
54706 #ifdef __cplusplus
54707 }
54708 #endif
54709
54710 int
54711 main ()
54712 {
54713 return f != $ac_func;
54714 ;
54715 return 0;
54716 }
54717 _ACEOF
54718 rm -f conftest.$ac_objext conftest$ac_exeext
54719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54720 (eval $ac_link) 2>conftest.er1
54721 ac_status=$?
54722 grep -v '^ *+' conftest.er1 >conftest.err
54723 rm -f conftest.er1
54724 cat conftest.err >&5
54725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54726 (exit $ac_status); } &&
54727 { ac_try='test -z "$ac_c_werror_flag"
54728 || test ! -s conftest.err'
54729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54730 (eval $ac_try) 2>&5
54731 ac_status=$?
54732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54733 (exit $ac_status); }; } &&
54734 { ac_try='test -s conftest$ac_exeext'
54735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54736 (eval $ac_try) 2>&5
54737 ac_status=$?
54738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54739 (exit $ac_status); }; }; then
54740 eval "$as_ac_var=yes"
54741 else
54742 echo "$as_me: failed program was:" >&5
54743 sed 's/^/| /' conftest.$ac_ext >&5
54744
54745 eval "$as_ac_var=no"
54746 fi
54747 rm -f conftest.err conftest.$ac_objext \
54748 conftest$ac_exeext conftest.$ac_ext
54749 fi
54750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54751 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54752 if test `eval echo '${'$as_ac_var'}'` = yes; then
54753 cat >>confdefs.h <<_ACEOF
54754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54755 _ACEOF
54756
54757 else
54758 ac_wfuncs=no
54759 fi
54760 done
54761
54762
54763 # Checks for wide character functions that are not required
54764 # for basic wchar_t support. Don't disable support if they are missing.
54765 # Injection of these is wrapped with guard macros.
54766
54767
54768
54769
54770
54771 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
54772 do
54773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54774 echo "$as_me:$LINENO: checking for $ac_func" >&5
54775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54776 if eval "test \"\${$as_ac_var+set}\" = set"; then
54777 echo $ECHO_N "(cached) $ECHO_C" >&6
54778 else
54779 if test x$gcc_no_link = xyes; then
54780 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54781 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54782 { (exit 1); exit 1; }; }
54783 fi
54784 cat >conftest.$ac_ext <<_ACEOF
54785 /* confdefs.h. */
54786 _ACEOF
54787 cat confdefs.h >>conftest.$ac_ext
54788 cat >>conftest.$ac_ext <<_ACEOF
54789 /* end confdefs.h. */
54790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
54792 #define $ac_func innocuous_$ac_func
54793
54794 /* System header to define __stub macros and hopefully few prototypes,
54795 which can conflict with char $ac_func (); below.
54796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54797 <limits.h> exists even on freestanding compilers. */
54798
54799 #ifdef __STDC__
54800 # include <limits.h>
54801 #else
54802 # include <assert.h>
54803 #endif
54804
54805 #undef $ac_func
54806
54807 /* Override any gcc2 internal prototype to avoid an error. */
54808 #ifdef __cplusplus
54809 extern "C"
54810 {
54811 #endif
54812 /* We use char because int might match the return type of a gcc2
54813 builtin and then its argument prototype would still apply. */
54814 char $ac_func ();
54815 /* The GNU C library defines this for functions which it implements
54816 to always fail with ENOSYS. Some functions are actually named
54817 something starting with __ and the normal name is an alias. */
54818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54819 choke me
54820 #else
54821 char (*f) () = $ac_func;
54822 #endif
54823 #ifdef __cplusplus
54824 }
54825 #endif
54826
54827 int
54828 main ()
54829 {
54830 return f != $ac_func;
54831 ;
54832 return 0;
54833 }
54834 _ACEOF
54835 rm -f conftest.$ac_objext conftest$ac_exeext
54836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54837 (eval $ac_link) 2>conftest.er1
54838 ac_status=$?
54839 grep -v '^ *+' conftest.er1 >conftest.err
54840 rm -f conftest.er1
54841 cat conftest.err >&5
54842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54843 (exit $ac_status); } &&
54844 { ac_try='test -z "$ac_c_werror_flag"
54845 || test ! -s conftest.err'
54846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54847 (eval $ac_try) 2>&5
54848 ac_status=$?
54849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54850 (exit $ac_status); }; } &&
54851 { ac_try='test -s conftest$ac_exeext'
54852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54853 (eval $ac_try) 2>&5
54854 ac_status=$?
54855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54856 (exit $ac_status); }; }; then
54857 eval "$as_ac_var=yes"
54858 else
54859 echo "$as_me: failed program was:" >&5
54860 sed 's/^/| /' conftest.$ac_ext >&5
54861
54862 eval "$as_ac_var=no"
54863 fi
54864 rm -f conftest.err conftest.$ac_objext \
54865 conftest$ac_exeext conftest.$ac_ext
54866 fi
54867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54869 if test `eval echo '${'$as_ac_var'}'` = yes; then
54870 cat >>confdefs.h <<_ACEOF
54871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54872 _ACEOF
54873
54874 fi
54875 done
54876
54877
54878 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
54879 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
54880 if test x"$has_weof" = xyes &&
54881 test x"$has_wchar_minmax" = xyes &&
54882 test x"$ac_wfuncs" = xyes;
54883 then
54884 ac_isoC99_wchar_t=yes
54885 else
54886 ac_isoC99_wchar_t=no
54887 fi
54888 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
54889 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
54890
54891 # Use iconv for wchar_t to char conversions. As such, check for
54892 # X/Open Portability Guide, version 2 features (XPG2).
54893 if test "${ac_cv_header_iconv_h+set}" = set; then
54894 echo "$as_me:$LINENO: checking for iconv.h" >&5
54895 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
54896 if test "${ac_cv_header_iconv_h+set}" = set; then
54897 echo $ECHO_N "(cached) $ECHO_C" >&6
54898 fi
54899 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
54900 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
54901 else
54902 # Is the header compilable?
54903 echo "$as_me:$LINENO: checking iconv.h usability" >&5
54904 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
54905 cat >conftest.$ac_ext <<_ACEOF
54906 /* confdefs.h. */
54907 _ACEOF
54908 cat confdefs.h >>conftest.$ac_ext
54909 cat >>conftest.$ac_ext <<_ACEOF
54910 /* end confdefs.h. */
54911 $ac_includes_default
54912 #include <iconv.h>
54913 _ACEOF
54914 rm -f conftest.$ac_objext
54915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54916 (eval $ac_compile) 2>conftest.er1
54917 ac_status=$?
54918 grep -v '^ *+' conftest.er1 >conftest.err
54919 rm -f conftest.er1
54920 cat conftest.err >&5
54921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54922 (exit $ac_status); } &&
54923 { ac_try='test -z "$ac_c_werror_flag"
54924 || test ! -s conftest.err'
54925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54926 (eval $ac_try) 2>&5
54927 ac_status=$?
54928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54929 (exit $ac_status); }; } &&
54930 { ac_try='test -s conftest.$ac_objext'
54931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54932 (eval $ac_try) 2>&5
54933 ac_status=$?
54934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54935 (exit $ac_status); }; }; then
54936 ac_header_compiler=yes
54937 else
54938 echo "$as_me: failed program was:" >&5
54939 sed 's/^/| /' conftest.$ac_ext >&5
54940
54941 ac_header_compiler=no
54942 fi
54943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54944 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54945 echo "${ECHO_T}$ac_header_compiler" >&6
54946
54947 # Is the header present?
54948 echo "$as_me:$LINENO: checking iconv.h presence" >&5
54949 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
54950 cat >conftest.$ac_ext <<_ACEOF
54951 /* confdefs.h. */
54952 _ACEOF
54953 cat confdefs.h >>conftest.$ac_ext
54954 cat >>conftest.$ac_ext <<_ACEOF
54955 /* end confdefs.h. */
54956 #include <iconv.h>
54957 _ACEOF
54958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54960 ac_status=$?
54961 grep -v '^ *+' conftest.er1 >conftest.err
54962 rm -f conftest.er1
54963 cat conftest.err >&5
54964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
54965 (exit $ac_status); } >/dev/null; then
54966 if test -s conftest.err; then
54967 ac_cpp_err=$ac_c_preproc_warn_flag
54968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54969 else
54970 ac_cpp_err=
54971 fi
54972 else
54973 ac_cpp_err=yes
54974 fi
54975 if test -z "$ac_cpp_err"; then
54976 ac_header_preproc=yes
54977 else
54978 echo "$as_me: failed program was:" >&5
54979 sed 's/^/| /' conftest.$ac_ext >&5
54980
54981 ac_header_preproc=no
54982 fi
54983 rm -f conftest.err conftest.$ac_ext
54984 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54985 echo "${ECHO_T}$ac_header_preproc" >&6
54986
54987 # So? What about this header?
54988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54989 yes:no: )
54990 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
54991 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54992 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
54993 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
54994 ac_header_preproc=yes
54995 ;;
54996 no:yes:* )
54997 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
54998 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
54999 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
55000 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
55001 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
55002 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
55003 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
55004 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
55005 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55006 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55007 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
55008 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
55009 (
55010 cat <<\_ASBOX
55011 ## ----------------------------------------- ##
55012 ## Report this to the package-unused lists. ##
55013 ## ----------------------------------------- ##
55014 _ASBOX
55015 ) |
55016 sed "s/^/$as_me: WARNING: /" >&2
55017 ;;
55018 esac
55019 echo "$as_me:$LINENO: checking for iconv.h" >&5
55020 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55021 if test "${ac_cv_header_iconv_h+set}" = set; then
55022 echo $ECHO_N "(cached) $ECHO_C" >&6
55023 else
55024 ac_cv_header_iconv_h=$ac_header_preproc
55025 fi
55026 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55027 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55028
55029 fi
55030 if test $ac_cv_header_iconv_h = yes; then
55031 ac_has_iconv_h=yes
55032 else
55033 ac_has_iconv_h=no
55034 fi
55035
55036
55037 if test "${ac_cv_header_langinfo_h+set}" = set; then
55038 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55039 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55040 if test "${ac_cv_header_langinfo_h+set}" = set; then
55041 echo $ECHO_N "(cached) $ECHO_C" >&6
55042 fi
55043 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55044 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55045 else
55046 # Is the header compilable?
55047 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
55048 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
55049 cat >conftest.$ac_ext <<_ACEOF
55050 /* confdefs.h. */
55051 _ACEOF
55052 cat confdefs.h >>conftest.$ac_ext
55053 cat >>conftest.$ac_ext <<_ACEOF
55054 /* end confdefs.h. */
55055 $ac_includes_default
55056 #include <langinfo.h>
55057 _ACEOF
55058 rm -f conftest.$ac_objext
55059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55060 (eval $ac_compile) 2>conftest.er1
55061 ac_status=$?
55062 grep -v '^ *+' conftest.er1 >conftest.err
55063 rm -f conftest.er1
55064 cat conftest.err >&5
55065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55066 (exit $ac_status); } &&
55067 { ac_try='test -z "$ac_c_werror_flag"
55068 || test ! -s conftest.err'
55069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55070 (eval $ac_try) 2>&5
55071 ac_status=$?
55072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55073 (exit $ac_status); }; } &&
55074 { ac_try='test -s conftest.$ac_objext'
55075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55076 (eval $ac_try) 2>&5
55077 ac_status=$?
55078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55079 (exit $ac_status); }; }; then
55080 ac_header_compiler=yes
55081 else
55082 echo "$as_me: failed program was:" >&5
55083 sed 's/^/| /' conftest.$ac_ext >&5
55084
55085 ac_header_compiler=no
55086 fi
55087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55088 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55089 echo "${ECHO_T}$ac_header_compiler" >&6
55090
55091 # Is the header present?
55092 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
55093 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
55094 cat >conftest.$ac_ext <<_ACEOF
55095 /* confdefs.h. */
55096 _ACEOF
55097 cat confdefs.h >>conftest.$ac_ext
55098 cat >>conftest.$ac_ext <<_ACEOF
55099 /* end confdefs.h. */
55100 #include <langinfo.h>
55101 _ACEOF
55102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55104 ac_status=$?
55105 grep -v '^ *+' conftest.er1 >conftest.err
55106 rm -f conftest.er1
55107 cat conftest.err >&5
55108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55109 (exit $ac_status); } >/dev/null; then
55110 if test -s conftest.err; then
55111 ac_cpp_err=$ac_c_preproc_warn_flag
55112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55113 else
55114 ac_cpp_err=
55115 fi
55116 else
55117 ac_cpp_err=yes
55118 fi
55119 if test -z "$ac_cpp_err"; then
55120 ac_header_preproc=yes
55121 else
55122 echo "$as_me: failed program was:" >&5
55123 sed 's/^/| /' conftest.$ac_ext >&5
55124
55125 ac_header_preproc=no
55126 fi
55127 rm -f conftest.err conftest.$ac_ext
55128 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55129 echo "${ECHO_T}$ac_header_preproc" >&6
55130
55131 # So? What about this header?
55132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55133 yes:no: )
55134 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
55135 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55136 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
55137 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
55138 ac_header_preproc=yes
55139 ;;
55140 no:yes:* )
55141 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
55142 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
55143 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
55144 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
55145 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
55146 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
55147 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
55148 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
55149 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55150 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55151 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
55152 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
55153 (
55154 cat <<\_ASBOX
55155 ## ----------------------------------------- ##
55156 ## Report this to the package-unused lists. ##
55157 ## ----------------------------------------- ##
55158 _ASBOX
55159 ) |
55160 sed "s/^/$as_me: WARNING: /" >&2
55161 ;;
55162 esac
55163 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55164 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55165 if test "${ac_cv_header_langinfo_h+set}" = set; then
55166 echo $ECHO_N "(cached) $ECHO_C" >&6
55167 else
55168 ac_cv_header_langinfo_h=$ac_header_preproc
55169 fi
55170 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55171 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55172
55173 fi
55174 if test $ac_cv_header_langinfo_h = yes; then
55175 ac_has_langinfo_h=yes
55176 else
55177 ac_has_langinfo_h=no
55178 fi
55179
55180
55181
55182 # Check for existence of libiconv.a providing XPG2 wchar_t support.
55183 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
55184 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
55185 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
55186 echo $ECHO_N "(cached) $ECHO_C" >&6
55187 else
55188 ac_check_lib_save_LIBS=$LIBS
55189 LIBS="-liconv $LIBS"
55190 if test x$gcc_no_link = xyes; then
55191 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55192 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55193 { (exit 1); exit 1; }; }
55194 fi
55195 cat >conftest.$ac_ext <<_ACEOF
55196 /* confdefs.h. */
55197 _ACEOF
55198 cat confdefs.h >>conftest.$ac_ext
55199 cat >>conftest.$ac_ext <<_ACEOF
55200 /* end confdefs.h. */
55201
55202 /* Override any gcc2 internal prototype to avoid an error. */
55203 #ifdef __cplusplus
55204 extern "C"
55205 #endif
55206 /* We use char because int might match the return type of a gcc2
55207 builtin and then its argument prototype would still apply. */
55208 char iconv ();
55209 int
55210 main ()
55211 {
55212 iconv ();
55213 ;
55214 return 0;
55215 }
55216 _ACEOF
55217 rm -f conftest.$ac_objext conftest$ac_exeext
55218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55219 (eval $ac_link) 2>conftest.er1
55220 ac_status=$?
55221 grep -v '^ *+' conftest.er1 >conftest.err
55222 rm -f conftest.er1
55223 cat conftest.err >&5
55224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55225 (exit $ac_status); } &&
55226 { ac_try='test -z "$ac_c_werror_flag"
55227 || test ! -s conftest.err'
55228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55229 (eval $ac_try) 2>&5
55230 ac_status=$?
55231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55232 (exit $ac_status); }; } &&
55233 { ac_try='test -s conftest$ac_exeext'
55234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55235 (eval $ac_try) 2>&5
55236 ac_status=$?
55237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55238 (exit $ac_status); }; }; then
55239 ac_cv_lib_iconv_iconv=yes
55240 else
55241 echo "$as_me: failed program was:" >&5
55242 sed 's/^/| /' conftest.$ac_ext >&5
55243
55244 ac_cv_lib_iconv_iconv=no
55245 fi
55246 rm -f conftest.err conftest.$ac_objext \
55247 conftest$ac_exeext conftest.$ac_ext
55248 LIBS=$ac_check_lib_save_LIBS
55249 fi
55250 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
55251 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
55252 if test $ac_cv_lib_iconv_iconv = yes; then
55253 LIBICONV="-liconv"
55254 fi
55255
55256 ac_save_LIBS="$LIBS"
55257 LIBS="$LIBS $LIBICONV"
55258
55259
55260
55261
55262
55263
55264 for ac_func in iconv_open iconv_close iconv nl_langinfo
55265 do
55266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55267 echo "$as_me:$LINENO: checking for $ac_func" >&5
55268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55269 if eval "test \"\${$as_ac_var+set}\" = set"; then
55270 echo $ECHO_N "(cached) $ECHO_C" >&6
55271 else
55272 if test x$gcc_no_link = xyes; then
55273 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55274 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55275 { (exit 1); exit 1; }; }
55276 fi
55277 cat >conftest.$ac_ext <<_ACEOF
55278 /* confdefs.h. */
55279 _ACEOF
55280 cat confdefs.h >>conftest.$ac_ext
55281 cat >>conftest.$ac_ext <<_ACEOF
55282 /* end confdefs.h. */
55283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55285 #define $ac_func innocuous_$ac_func
55286
55287 /* System header to define __stub macros and hopefully few prototypes,
55288 which can conflict with char $ac_func (); below.
55289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55290 <limits.h> exists even on freestanding compilers. */
55291
55292 #ifdef __STDC__
55293 # include <limits.h>
55294 #else
55295 # include <assert.h>
55296 #endif
55297
55298 #undef $ac_func
55299
55300 /* Override any gcc2 internal prototype to avoid an error. */
55301 #ifdef __cplusplus
55302 extern "C"
55303 {
55304 #endif
55305 /* We use char because int might match the return type of a gcc2
55306 builtin and then its argument prototype would still apply. */
55307 char $ac_func ();
55308 /* The GNU C library defines this for functions which it implements
55309 to always fail with ENOSYS. Some functions are actually named
55310 something starting with __ and the normal name is an alias. */
55311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55312 choke me
55313 #else
55314 char (*f) () = $ac_func;
55315 #endif
55316 #ifdef __cplusplus
55317 }
55318 #endif
55319
55320 int
55321 main ()
55322 {
55323 return f != $ac_func;
55324 ;
55325 return 0;
55326 }
55327 _ACEOF
55328 rm -f conftest.$ac_objext conftest$ac_exeext
55329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55330 (eval $ac_link) 2>conftest.er1
55331 ac_status=$?
55332 grep -v '^ *+' conftest.er1 >conftest.err
55333 rm -f conftest.er1
55334 cat conftest.err >&5
55335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55336 (exit $ac_status); } &&
55337 { ac_try='test -z "$ac_c_werror_flag"
55338 || test ! -s conftest.err'
55339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55340 (eval $ac_try) 2>&5
55341 ac_status=$?
55342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55343 (exit $ac_status); }; } &&
55344 { ac_try='test -s conftest$ac_exeext'
55345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55346 (eval $ac_try) 2>&5
55347 ac_status=$?
55348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55349 (exit $ac_status); }; }; then
55350 eval "$as_ac_var=yes"
55351 else
55352 echo "$as_me: failed program was:" >&5
55353 sed 's/^/| /' conftest.$ac_ext >&5
55354
55355 eval "$as_ac_var=no"
55356 fi
55357 rm -f conftest.err conftest.$ac_objext \
55358 conftest$ac_exeext conftest.$ac_ext
55359 fi
55360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55362 if test `eval echo '${'$as_ac_var'}'` = yes; then
55363 cat >>confdefs.h <<_ACEOF
55364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55365 _ACEOF
55366 ac_XPG2funcs=yes
55367 else
55368 ac_XPG2funcs=no
55369 fi
55370 done
55371
55372
55373 LIBS="$ac_save_LIBS"
55374
55375 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
55376 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
55377 if test x"$ac_has_iconv_h" = xyes &&
55378 test x"$ac_has_langinfo_h" = xyes &&
55379 test x"$ac_XPG2funcs" = xyes;
55380 then
55381 ac_XPG2_wchar_t=yes
55382 else
55383 ac_XPG2_wchar_t=no
55384 fi
55385 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
55386 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
55387
55388 # At the moment, only enable wchar_t specializations if all the
55389 # above support is present.
55390 if test x"$ac_isoC99_wchar_t" = xyes &&
55391 test x"$ac_XPG2_wchar_t" = xyes;
55392 then
55393 cat >>confdefs.h <<\_ACEOF
55394 #define _GLIBCXX_USE_WCHAR_T 1
55395 _ACEOF
55396
55397 enable_wchar_t=yes
55398 fi
55399 fi
55400 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
55401 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
55402 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
55403 echo "${ECHO_T}$enable_wchar_t" >&6
55404
55405 cat >>confdefs.h <<\_ACEOF
55406 #define HAVE_LC_MESSAGES 1
55407 _ACEOF
55408
55409 cat >>confdefs.h <<\_ACEOF
55410 #define HAVE_GETPAGESIZE 1
55411 _ACEOF
55412
55413 cat >>confdefs.h <<\_ACEOF
55414 #define HAVE_SETENV 1
55415 _ACEOF
55416
55417 cat >>confdefs.h <<\_ACEOF
55418 #define HAVE_SIGSETJMP 1
55419 _ACEOF
55420
55421 cat >>confdefs.h <<\_ACEOF
55422 #define HAVE_COPYSIGN 1
55423 _ACEOF
55424
55425 cat >>confdefs.h <<\_ACEOF
55426 #define HAVE_COPYSIGNF 1
55427 _ACEOF
55428
55429 cat >>confdefs.h <<\_ACEOF
55430 #define HAVE_FINITEF 1
55431 _ACEOF
55432
55433 cat >>confdefs.h <<\_ACEOF
55434 #define HAVE_FINITE 1
55435 _ACEOF
55436
55437 cat >>confdefs.h <<\_ACEOF
55438 #define HAVE_FREXPF 1
55439 _ACEOF
55440
55441 cat >>confdefs.h <<\_ACEOF
55442 #define HAVE_HYPOT 1
55443 _ACEOF
55444
55445 cat >>confdefs.h <<\_ACEOF
55446 #define HAVE_HYPOTF 1
55447 _ACEOF
55448
55449 cat >>confdefs.h <<\_ACEOF
55450 #define HAVE_ISINF 1
55451 _ACEOF
55452
55453 cat >>confdefs.h <<\_ACEOF
55454 #define HAVE_ISNAN 1
55455 _ACEOF
55456
55457 cat >>confdefs.h <<\_ACEOF
55458 #define HAVE_ISNANF 1
55459 _ACEOF
55460
55461
55462 cat >>confdefs.h <<\_ACEOF
55463 #define HAVE_MMAP 1
55464 _ACEOF
55465
55466 cat >>confdefs.h <<\_ACEOF
55467 #define HAVE_ACOSF 1
55468 _ACEOF
55469
55470 cat >>confdefs.h <<\_ACEOF
55471 #define HAVE_ASINF 1
55472 _ACEOF
55473
55474 cat >>confdefs.h <<\_ACEOF
55475 #define HAVE_ATAN2F 1
55476 _ACEOF
55477
55478 cat >>confdefs.h <<\_ACEOF
55479 #define HAVE_ATANF 1
55480 _ACEOF
55481
55482 cat >>confdefs.h <<\_ACEOF
55483 #define HAVE_CEILF 1
55484 _ACEOF
55485
55486 cat >>confdefs.h <<\_ACEOF
55487 #define HAVE_COPYSIGN 1
55488 _ACEOF
55489
55490 cat >>confdefs.h <<\_ACEOF
55491 #define HAVE_COPYSIGNF 1
55492 _ACEOF
55493
55494 cat >>confdefs.h <<\_ACEOF
55495 #define HAVE_COSF 1
55496 _ACEOF
55497
55498 cat >>confdefs.h <<\_ACEOF
55499 #define HAVE_COSHF 1
55500 _ACEOF
55501
55502 cat >>confdefs.h <<\_ACEOF
55503 #define HAVE_EXPF 1
55504 _ACEOF
55505
55506 cat >>confdefs.h <<\_ACEOF
55507 #define HAVE_FABSF 1
55508 _ACEOF
55509
55510 cat >>confdefs.h <<\_ACEOF
55511 #define HAVE_FLOORF 1
55512 _ACEOF
55513
55514 cat >>confdefs.h <<\_ACEOF
55515 #define HAVE_FMODF 1
55516 _ACEOF
55517
55518 cat >>confdefs.h <<\_ACEOF
55519 #define HAVE_FREXPF 1
55520 _ACEOF
55521
55522 cat >>confdefs.h <<\_ACEOF
55523 #define HAVE_LDEXPF 1
55524 _ACEOF
55525
55526 cat >>confdefs.h <<\_ACEOF
55527 #define HAVE_LOG10F 1
55528 _ACEOF
55529
55530 cat >>confdefs.h <<\_ACEOF
55531 #define HAVE_LOGF 1
55532 _ACEOF
55533
55534 cat >>confdefs.h <<\_ACEOF
55535 #define HAVE_MODFF 1
55536 _ACEOF
55537
55538 cat >>confdefs.h <<\_ACEOF
55539 #define HAVE_POWF 1
55540 _ACEOF
55541
55542 cat >>confdefs.h <<\_ACEOF
55543 #define HAVE_SINF 1
55544 _ACEOF
55545
55546 cat >>confdefs.h <<\_ACEOF
55547 #define HAVE_SINHF 1
55548 _ACEOF
55549
55550 cat >>confdefs.h <<\_ACEOF
55551 #define HAVE_SQRTF 1
55552 _ACEOF
55553
55554 cat >>confdefs.h <<\_ACEOF
55555 #define HAVE_TANF 1
55556 _ACEOF
55557
55558 cat >>confdefs.h <<\_ACEOF
55559 #define HAVE_TANHF 1
55560 _ACEOF
55561
55562 if test x"long_double_math_on_this_cpu" = x"yes"; then
55563 cat >>confdefs.h <<\_ACEOF
55564 #define HAVE_FINITEL 1
55565 _ACEOF
55566
55567 cat >>confdefs.h <<\_ACEOF
55568 #define HAVE_ISINFL 1
55569 _ACEOF
55570
55571 cat >>confdefs.h <<\_ACEOF
55572 #define HAVE_ISNANL 1
55573 _ACEOF
55574
55575 fi
55576 ;;
55577 *-hpux*)
55578
55579
55580
55581
55582
55583
55584
55585
55586
55587
55588
55589
55590 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
55591 machine/endian.h machine/param.h sys/machine.h sys/types.h \
55592 fp.h locale.h float.h inttypes.h
55593 do
55594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55596 echo "$as_me:$LINENO: checking for $ac_header" >&5
55597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55599 echo $ECHO_N "(cached) $ECHO_C" >&6
55600 fi
55601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55603 else
55604 # Is the header compilable?
55605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55607 cat >conftest.$ac_ext <<_ACEOF
55608 /* confdefs.h. */
55609 _ACEOF
55610 cat confdefs.h >>conftest.$ac_ext
55611 cat >>conftest.$ac_ext <<_ACEOF
55612 /* end confdefs.h. */
55613 $ac_includes_default
55614 #include <$ac_header>
55615 _ACEOF
55616 rm -f conftest.$ac_objext
55617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55618 (eval $ac_compile) 2>conftest.er1
55619 ac_status=$?
55620 grep -v '^ *+' conftest.er1 >conftest.err
55621 rm -f conftest.er1
55622 cat conftest.err >&5
55623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55624 (exit $ac_status); } &&
55625 { ac_try='test -z "$ac_c_werror_flag"
55626 || test ! -s conftest.err'
55627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55628 (eval $ac_try) 2>&5
55629 ac_status=$?
55630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55631 (exit $ac_status); }; } &&
55632 { ac_try='test -s conftest.$ac_objext'
55633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55634 (eval $ac_try) 2>&5
55635 ac_status=$?
55636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55637 (exit $ac_status); }; }; then
55638 ac_header_compiler=yes
55639 else
55640 echo "$as_me: failed program was:" >&5
55641 sed 's/^/| /' conftest.$ac_ext >&5
55642
55643 ac_header_compiler=no
55644 fi
55645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55647 echo "${ECHO_T}$ac_header_compiler" >&6
55648
55649 # Is the header present?
55650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55652 cat >conftest.$ac_ext <<_ACEOF
55653 /* confdefs.h. */
55654 _ACEOF
55655 cat confdefs.h >>conftest.$ac_ext
55656 cat >>conftest.$ac_ext <<_ACEOF
55657 /* end confdefs.h. */
55658 #include <$ac_header>
55659 _ACEOF
55660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55662 ac_status=$?
55663 grep -v '^ *+' conftest.er1 >conftest.err
55664 rm -f conftest.er1
55665 cat conftest.err >&5
55666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55667 (exit $ac_status); } >/dev/null; then
55668 if test -s conftest.err; then
55669 ac_cpp_err=$ac_c_preproc_warn_flag
55670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55671 else
55672 ac_cpp_err=
55673 fi
55674 else
55675 ac_cpp_err=yes
55676 fi
55677 if test -z "$ac_cpp_err"; then
55678 ac_header_preproc=yes
55679 else
55680 echo "$as_me: failed program was:" >&5
55681 sed 's/^/| /' conftest.$ac_ext >&5
55682
55683 ac_header_preproc=no
55684 fi
55685 rm -f conftest.err conftest.$ac_ext
55686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55687 echo "${ECHO_T}$ac_header_preproc" >&6
55688
55689 # So? What about this header?
55690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55691 yes:no: )
55692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
55695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
55696 ac_header_preproc=yes
55697 ;;
55698 no:yes:* )
55699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
55704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
55705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
55706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
55707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
55710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
55711 (
55712 cat <<\_ASBOX
55713 ## ----------------------------------------- ##
55714 ## Report this to the package-unused lists. ##
55715 ## ----------------------------------------- ##
55716 _ASBOX
55717 ) |
55718 sed "s/^/$as_me: WARNING: /" >&2
55719 ;;
55720 esac
55721 echo "$as_me:$LINENO: checking for $ac_header" >&5
55722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55724 echo $ECHO_N "(cached) $ECHO_C" >&6
55725 else
55726 eval "$as_ac_Header=\$ac_header_preproc"
55727 fi
55728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55730
55731 fi
55732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55733 cat >>confdefs.h <<_ACEOF
55734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55735 _ACEOF
55736
55737 fi
55738
55739 done
55740
55741 SECTION_FLAGS='-ffunction-sections -fdata-sections'
55742
55743
55744 # If we're not using GNU ld, then there's no point in even trying these
55745 # tests. Check for that first. We should have already tested for gld
55746 # by now (in libtool), but require it now just to be safe...
55747 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
55748 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
55749
55750
55751
55752 # The name set by libtool depends on the version of libtool. Shame on us
55753 # for depending on an impl detail, but c'est la vie. Older versions used
55754 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
55755 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
55756 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
55757 # set (hence we're using an older libtool), then set it.
55758 if test x${with_gnu_ld+set} != xset; then
55759 if test x${ac_cv_prog_gnu_ld+set} != xset; then
55760 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
55761 with_gnu_ld=no
55762 else
55763 with_gnu_ld=$ac_cv_prog_gnu_ld
55764 fi
55765 fi
55766
55767 # Start by getting the version number. I think the libtool test already
55768 # does some of this, but throws away the result.
55769
55770 ldver=`$LD --version 2>/dev/null | head -1 | \
55771 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
55772
55773 glibcxx_gnu_ld_version=`echo $ldver | \
55774 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
55775
55776 # Set --gc-sections.
55777 if test "$with_gnu_ld" = "notbroken"; then
55778 # GNU ld it is! Joy and bunny rabbits!
55779
55780 # All these tests are for C++; save the language and the compiler flags.
55781 # Need to do this so that g++ won't try to link in libstdc++
55782 ac_test_CFLAGS="${CFLAGS+set}"
55783 ac_save_CFLAGS="$CFLAGS"
55784 CFLAGS='-x c++ -Wl,--gc-sections'
55785
55786 # Check for -Wl,--gc-sections
55787 # XXX This test is broken at the moment, as symbols required for linking
55788 # are now in libsupc++ (not built yet). In addition, this test has
55789 # cored on solaris in the past. In addition, --gc-sections doesn't
55790 # really work at the moment (keeps on discarding used sections, first
55791 # .eh_frame and now some of the glibc sections for iconv).
55792 # Bzzzzt. Thanks for playing, maybe next time.
55793 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
55794 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
55795 if test "$cross_compiling" = yes; then
55796 ac_sectionLDflags=yes
55797 else
55798 cat >conftest.$ac_ext <<_ACEOF
55799 /* confdefs.h. */
55800 _ACEOF
55801 cat confdefs.h >>conftest.$ac_ext
55802 cat >>conftest.$ac_ext <<_ACEOF
55803 /* end confdefs.h. */
55804
55805 int main(void)
55806 {
55807 try { throw 1; }
55808 catch (...) { };
55809 return 0;
55810 }
55811
55812 _ACEOF
55813 rm -f conftest$ac_exeext
55814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55815 (eval $ac_link) 2>&5
55816 ac_status=$?
55817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55820 (eval $ac_try) 2>&5
55821 ac_status=$?
55822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55823 (exit $ac_status); }; }; then
55824 ac_sectionLDflags=yes
55825 else
55826 echo "$as_me: program exited with status $ac_status" >&5
55827 echo "$as_me: failed program was:" >&5
55828 sed 's/^/| /' conftest.$ac_ext >&5
55829
55830 ( exit $ac_status )
55831 ac_sectionLDflags=no
55832 fi
55833 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55834 fi
55835 if test "$ac_test_CFLAGS" = set; then
55836 CFLAGS="$ac_save_CFLAGS"
55837 else
55838 # this is the suspicious part
55839 CFLAGS=''
55840 fi
55841 if test "$ac_sectionLDflags" = "yes"; then
55842 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
55843 fi
55844 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
55845 echo "${ECHO_T}$ac_sectionLDflags" >&6
55846 fi
55847
55848 # Set linker optimization flags.
55849 if test x"$with_gnu_ld" = x"yes"; then
55850 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
55851 fi
55852
55853
55854
55855
55856
55857
55858 echo "$as_me:$LINENO: checking for main in -lm" >&5
55859 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
55860 if test "${ac_cv_lib_m_main+set}" = set; then
55861 echo $ECHO_N "(cached) $ECHO_C" >&6
55862 else
55863 ac_check_lib_save_LIBS=$LIBS
55864 LIBS="-lm $LIBS"
55865 if test x$gcc_no_link = xyes; then
55866 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55867 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55868 { (exit 1); exit 1; }; }
55869 fi
55870 cat >conftest.$ac_ext <<_ACEOF
55871 /* confdefs.h. */
55872 _ACEOF
55873 cat confdefs.h >>conftest.$ac_ext
55874 cat >>conftest.$ac_ext <<_ACEOF
55875 /* end confdefs.h. */
55876
55877
55878 int
55879 main ()
55880 {
55881 main ();
55882 ;
55883 return 0;
55884 }
55885 _ACEOF
55886 rm -f conftest.$ac_objext conftest$ac_exeext
55887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55888 (eval $ac_link) 2>conftest.er1
55889 ac_status=$?
55890 grep -v '^ *+' conftest.er1 >conftest.err
55891 rm -f conftest.er1
55892 cat conftest.err >&5
55893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55894 (exit $ac_status); } &&
55895 { ac_try='test -z "$ac_c_werror_flag"
55896 || test ! -s conftest.err'
55897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55898 (eval $ac_try) 2>&5
55899 ac_status=$?
55900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55901 (exit $ac_status); }; } &&
55902 { ac_try='test -s conftest$ac_exeext'
55903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55904 (eval $ac_try) 2>&5
55905 ac_status=$?
55906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
55907 (exit $ac_status); }; }; then
55908 ac_cv_lib_m_main=yes
55909 else
55910 echo "$as_me: failed program was:" >&5
55911 sed 's/^/| /' conftest.$ac_ext >&5
55912
55913 ac_cv_lib_m_main=no
55914 fi
55915 rm -f conftest.err conftest.$ac_objext \
55916 conftest$ac_exeext conftest.$ac_ext
55917 LIBS=$ac_check_lib_save_LIBS
55918 fi
55919 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
55920 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
55921 if test $ac_cv_lib_m_main = yes; then
55922 cat >>confdefs.h <<_ACEOF
55923 #define HAVE_LIBM 1
55924 _ACEOF
55925
55926 LIBS="-lm $LIBS"
55927
55928 fi
55929
55930
55931 for ac_func in copysignf
55932 do
55933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55934 echo "$as_me:$LINENO: checking for $ac_func" >&5
55935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55936 if eval "test \"\${$as_ac_var+set}\" = set"; then
55937 echo $ECHO_N "(cached) $ECHO_C" >&6
55938 else
55939 if test x$gcc_no_link = xyes; then
55940 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55941 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55942 { (exit 1); exit 1; }; }
55943 fi
55944 cat >conftest.$ac_ext <<_ACEOF
55945 /* confdefs.h. */
55946 _ACEOF
55947 cat confdefs.h >>conftest.$ac_ext
55948 cat >>conftest.$ac_ext <<_ACEOF
55949 /* end confdefs.h. */
55950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
55952 #define $ac_func innocuous_$ac_func
55953
55954 /* System header to define __stub macros and hopefully few prototypes,
55955 which can conflict with char $ac_func (); below.
55956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55957 <limits.h> exists even on freestanding compilers. */
55958
55959 #ifdef __STDC__
55960 # include <limits.h>
55961 #else
55962 # include <assert.h>
55963 #endif
55964
55965 #undef $ac_func
55966
55967 /* Override any gcc2 internal prototype to avoid an error. */
55968 #ifdef __cplusplus
55969 extern "C"
55970 {
55971 #endif
55972 /* We use char because int might match the return type of a gcc2
55973 builtin and then its argument prototype would still apply. */
55974 char $ac_func ();
55975 /* The GNU C library defines this for functions which it implements
55976 to always fail with ENOSYS. Some functions are actually named
55977 something starting with __ and the normal name is an alias. */
55978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55979 choke me
55980 #else
55981 char (*f) () = $ac_func;
55982 #endif
55983 #ifdef __cplusplus
55984 }
55985 #endif
55986
55987 int
55988 main ()
55989 {
55990 return f != $ac_func;
55991 ;
55992 return 0;
55993 }
55994 _ACEOF
55995 rm -f conftest.$ac_objext conftest$ac_exeext
55996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55997 (eval $ac_link) 2>conftest.er1
55998 ac_status=$?
55999 grep -v '^ *+' conftest.er1 >conftest.err
56000 rm -f conftest.er1
56001 cat conftest.err >&5
56002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56003 (exit $ac_status); } &&
56004 { ac_try='test -z "$ac_c_werror_flag"
56005 || test ! -s conftest.err'
56006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56007 (eval $ac_try) 2>&5
56008 ac_status=$?
56009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56010 (exit $ac_status); }; } &&
56011 { ac_try='test -s conftest$ac_exeext'
56012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56013 (eval $ac_try) 2>&5
56014 ac_status=$?
56015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56016 (exit $ac_status); }; }; then
56017 eval "$as_ac_var=yes"
56018 else
56019 echo "$as_me: failed program was:" >&5
56020 sed 's/^/| /' conftest.$ac_ext >&5
56021
56022 eval "$as_ac_var=no"
56023 fi
56024 rm -f conftest.err conftest.$ac_objext \
56025 conftest$ac_exeext conftest.$ac_ext
56026 fi
56027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56029 if test `eval echo '${'$as_ac_var'}'` = yes; then
56030 cat >>confdefs.h <<_ACEOF
56031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56032 _ACEOF
56033
56034 else
56035 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
56036 fi
56037 done
56038
56039
56040
56041 for ac_func in __signbit
56042 do
56043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56044 echo "$as_me:$LINENO: checking for $ac_func" >&5
56045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56046 if eval "test \"\${$as_ac_var+set}\" = set"; then
56047 echo $ECHO_N "(cached) $ECHO_C" >&6
56048 else
56049 if test x$gcc_no_link = xyes; then
56050 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56051 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56052 { (exit 1); exit 1; }; }
56053 fi
56054 cat >conftest.$ac_ext <<_ACEOF
56055 /* confdefs.h. */
56056 _ACEOF
56057 cat confdefs.h >>conftest.$ac_ext
56058 cat >>conftest.$ac_ext <<_ACEOF
56059 /* end confdefs.h. */
56060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56062 #define $ac_func innocuous_$ac_func
56063
56064 /* System header to define __stub macros and hopefully few prototypes,
56065 which can conflict with char $ac_func (); below.
56066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56067 <limits.h> exists even on freestanding compilers. */
56068
56069 #ifdef __STDC__
56070 # include <limits.h>
56071 #else
56072 # include <assert.h>
56073 #endif
56074
56075 #undef $ac_func
56076
56077 /* Override any gcc2 internal prototype to avoid an error. */
56078 #ifdef __cplusplus
56079 extern "C"
56080 {
56081 #endif
56082 /* We use char because int might match the return type of a gcc2
56083 builtin and then its argument prototype would still apply. */
56084 char $ac_func ();
56085 /* The GNU C library defines this for functions which it implements
56086 to always fail with ENOSYS. Some functions are actually named
56087 something starting with __ and the normal name is an alias. */
56088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56089 choke me
56090 #else
56091 char (*f) () = $ac_func;
56092 #endif
56093 #ifdef __cplusplus
56094 }
56095 #endif
56096
56097 int
56098 main ()
56099 {
56100 return f != $ac_func;
56101 ;
56102 return 0;
56103 }
56104 _ACEOF
56105 rm -f conftest.$ac_objext conftest$ac_exeext
56106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56107 (eval $ac_link) 2>conftest.er1
56108 ac_status=$?
56109 grep -v '^ *+' conftest.er1 >conftest.err
56110 rm -f conftest.er1
56111 cat conftest.err >&5
56112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56113 (exit $ac_status); } &&
56114 { ac_try='test -z "$ac_c_werror_flag"
56115 || test ! -s conftest.err'
56116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56117 (eval $ac_try) 2>&5
56118 ac_status=$?
56119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56120 (exit $ac_status); }; } &&
56121 { ac_try='test -s conftest$ac_exeext'
56122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56123 (eval $ac_try) 2>&5
56124 ac_status=$?
56125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56126 (exit $ac_status); }; }; then
56127 eval "$as_ac_var=yes"
56128 else
56129 echo "$as_me: failed program was:" >&5
56130 sed 's/^/| /' conftest.$ac_ext >&5
56131
56132 eval "$as_ac_var=no"
56133 fi
56134 rm -f conftest.err conftest.$ac_objext \
56135 conftest$ac_exeext conftest.$ac_ext
56136 fi
56137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56139 if test `eval echo '${'$as_ac_var'}'` = yes; then
56140 cat >>confdefs.h <<_ACEOF
56141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56142 _ACEOF
56143
56144 else
56145 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
56146 fi
56147 done
56148
56149
56150
56151 for ac_func in __signbitf
56152 do
56153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56154 echo "$as_me:$LINENO: checking for $ac_func" >&5
56155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56156 if eval "test \"\${$as_ac_var+set}\" = set"; then
56157 echo $ECHO_N "(cached) $ECHO_C" >&6
56158 else
56159 if test x$gcc_no_link = xyes; then
56160 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56161 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56162 { (exit 1); exit 1; }; }
56163 fi
56164 cat >conftest.$ac_ext <<_ACEOF
56165 /* confdefs.h. */
56166 _ACEOF
56167 cat confdefs.h >>conftest.$ac_ext
56168 cat >>conftest.$ac_ext <<_ACEOF
56169 /* end confdefs.h. */
56170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56172 #define $ac_func innocuous_$ac_func
56173
56174 /* System header to define __stub macros and hopefully few prototypes,
56175 which can conflict with char $ac_func (); below.
56176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56177 <limits.h> exists even on freestanding compilers. */
56178
56179 #ifdef __STDC__
56180 # include <limits.h>
56181 #else
56182 # include <assert.h>
56183 #endif
56184
56185 #undef $ac_func
56186
56187 /* Override any gcc2 internal prototype to avoid an error. */
56188 #ifdef __cplusplus
56189 extern "C"
56190 {
56191 #endif
56192 /* We use char because int might match the return type of a gcc2
56193 builtin and then its argument prototype would still apply. */
56194 char $ac_func ();
56195 /* The GNU C library defines this for functions which it implements
56196 to always fail with ENOSYS. Some functions are actually named
56197 something starting with __ and the normal name is an alias. */
56198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56199 choke me
56200 #else
56201 char (*f) () = $ac_func;
56202 #endif
56203 #ifdef __cplusplus
56204 }
56205 #endif
56206
56207 int
56208 main ()
56209 {
56210 return f != $ac_func;
56211 ;
56212 return 0;
56213 }
56214 _ACEOF
56215 rm -f conftest.$ac_objext conftest$ac_exeext
56216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56217 (eval $ac_link) 2>conftest.er1
56218 ac_status=$?
56219 grep -v '^ *+' conftest.er1 >conftest.err
56220 rm -f conftest.er1
56221 cat conftest.err >&5
56222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56223 (exit $ac_status); } &&
56224 { ac_try='test -z "$ac_c_werror_flag"
56225 || test ! -s conftest.err'
56226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56227 (eval $ac_try) 2>&5
56228 ac_status=$?
56229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56230 (exit $ac_status); }; } &&
56231 { ac_try='test -s conftest$ac_exeext'
56232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56233 (eval $ac_try) 2>&5
56234 ac_status=$?
56235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56236 (exit $ac_status); }; }; then
56237 eval "$as_ac_var=yes"
56238 else
56239 echo "$as_me: failed program was:" >&5
56240 sed 's/^/| /' conftest.$ac_ext >&5
56241
56242 eval "$as_ac_var=no"
56243 fi
56244 rm -f conftest.err conftest.$ac_objext \
56245 conftest$ac_exeext conftest.$ac_ext
56246 fi
56247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56249 if test `eval echo '${'$as_ac_var'}'` = yes; then
56250 cat >>confdefs.h <<_ACEOF
56251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56252 _ACEOF
56253
56254 else
56255 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
56256 fi
56257 done
56258
56259
56260 if test x$ac_cv_func_copysignl = x"yes"; then
56261
56262 for ac_func in __signbitl
56263 do
56264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56265 echo "$as_me:$LINENO: checking for $ac_func" >&5
56266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56267 if eval "test \"\${$as_ac_var+set}\" = set"; then
56268 echo $ECHO_N "(cached) $ECHO_C" >&6
56269 else
56270 if test x$gcc_no_link = xyes; then
56271 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56272 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56273 { (exit 1); exit 1; }; }
56274 fi
56275 cat >conftest.$ac_ext <<_ACEOF
56276 /* confdefs.h. */
56277 _ACEOF
56278 cat confdefs.h >>conftest.$ac_ext
56279 cat >>conftest.$ac_ext <<_ACEOF
56280 /* end confdefs.h. */
56281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56283 #define $ac_func innocuous_$ac_func
56284
56285 /* System header to define __stub macros and hopefully few prototypes,
56286 which can conflict with char $ac_func (); below.
56287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56288 <limits.h> exists even on freestanding compilers. */
56289
56290 #ifdef __STDC__
56291 # include <limits.h>
56292 #else
56293 # include <assert.h>
56294 #endif
56295
56296 #undef $ac_func
56297
56298 /* Override any gcc2 internal prototype to avoid an error. */
56299 #ifdef __cplusplus
56300 extern "C"
56301 {
56302 #endif
56303 /* We use char because int might match the return type of a gcc2
56304 builtin and then its argument prototype would still apply. */
56305 char $ac_func ();
56306 /* The GNU C library defines this for functions which it implements
56307 to always fail with ENOSYS. Some functions are actually named
56308 something starting with __ and the normal name is an alias. */
56309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56310 choke me
56311 #else
56312 char (*f) () = $ac_func;
56313 #endif
56314 #ifdef __cplusplus
56315 }
56316 #endif
56317
56318 int
56319 main ()
56320 {
56321 return f != $ac_func;
56322 ;
56323 return 0;
56324 }
56325 _ACEOF
56326 rm -f conftest.$ac_objext conftest$ac_exeext
56327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56328 (eval $ac_link) 2>conftest.er1
56329 ac_status=$?
56330 grep -v '^ *+' conftest.er1 >conftest.err
56331 rm -f conftest.er1
56332 cat conftest.err >&5
56333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56334 (exit $ac_status); } &&
56335 { ac_try='test -z "$ac_c_werror_flag"
56336 || test ! -s conftest.err'
56337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56338 (eval $ac_try) 2>&5
56339 ac_status=$?
56340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56341 (exit $ac_status); }; } &&
56342 { ac_try='test -s conftest$ac_exeext'
56343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56344 (eval $ac_try) 2>&5
56345 ac_status=$?
56346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56347 (exit $ac_status); }; }; then
56348 eval "$as_ac_var=yes"
56349 else
56350 echo "$as_me: failed program was:" >&5
56351 sed 's/^/| /' conftest.$ac_ext >&5
56352
56353 eval "$as_ac_var=no"
56354 fi
56355 rm -f conftest.err conftest.$ac_objext \
56356 conftest$ac_exeext conftest.$ac_ext
56357 fi
56358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56360 if test `eval echo '${'$as_ac_var'}'` = yes; then
56361 cat >>confdefs.h <<_ACEOF
56362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56363 _ACEOF
56364
56365 else
56366 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
56367 fi
56368 done
56369
56370 fi
56371
56372 # Used in libmath/Makefile.am.
56373 if test -n "$LIBMATHOBJS"; then
56374 need_libmath=yes
56375 fi
56376
56377
56378
56379 # Test wchar.h for mbstate_t, which is needed for char_traits and
56380 # others even if wchar_t support is not on.
56381 echo "$as_me:$LINENO: checking for mbstate_t" >&5
56382 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
56383 cat >conftest.$ac_ext <<_ACEOF
56384 /* confdefs.h. */
56385 _ACEOF
56386 cat confdefs.h >>conftest.$ac_ext
56387 cat >>conftest.$ac_ext <<_ACEOF
56388 /* end confdefs.h. */
56389 #include <wchar.h>
56390 int
56391 main ()
56392 {
56393 mbstate_t teststate;
56394 ;
56395 return 0;
56396 }
56397 _ACEOF
56398 rm -f conftest.$ac_objext
56399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56400 (eval $ac_compile) 2>conftest.er1
56401 ac_status=$?
56402 grep -v '^ *+' conftest.er1 >conftest.err
56403 rm -f conftest.er1
56404 cat conftest.err >&5
56405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56406 (exit $ac_status); } &&
56407 { ac_try='test -z "$ac_c_werror_flag"
56408 || test ! -s conftest.err'
56409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56410 (eval $ac_try) 2>&5
56411 ac_status=$?
56412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56413 (exit $ac_status); }; } &&
56414 { ac_try='test -s conftest.$ac_objext'
56415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56416 (eval $ac_try) 2>&5
56417 ac_status=$?
56418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56419 (exit $ac_status); }; }; then
56420 have_mbstate_t=yes
56421 else
56422 echo "$as_me: failed program was:" >&5
56423 sed 's/^/| /' conftest.$ac_ext >&5
56424
56425 have_mbstate_t=no
56426 fi
56427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56428 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
56429 echo "${ECHO_T}$have_mbstate_t" >&6
56430 if test x"$have_mbstate_t" = xyes; then
56431 cat >>confdefs.h <<\_ACEOF
56432 #define HAVE_MBSTATE_T 1
56433 _ACEOF
56434
56435 fi
56436
56437 # Sanity check for existence of ISO C99 headers for extended encoding.
56438
56439 for ac_header in wchar.h
56440 do
56441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56443 echo "$as_me:$LINENO: checking for $ac_header" >&5
56444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56446 echo $ECHO_N "(cached) $ECHO_C" >&6
56447 fi
56448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56450 else
56451 # Is the header compilable?
56452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56454 cat >conftest.$ac_ext <<_ACEOF
56455 /* confdefs.h. */
56456 _ACEOF
56457 cat confdefs.h >>conftest.$ac_ext
56458 cat >>conftest.$ac_ext <<_ACEOF
56459 /* end confdefs.h. */
56460 $ac_includes_default
56461 #include <$ac_header>
56462 _ACEOF
56463 rm -f conftest.$ac_objext
56464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56465 (eval $ac_compile) 2>conftest.er1
56466 ac_status=$?
56467 grep -v '^ *+' conftest.er1 >conftest.err
56468 rm -f conftest.er1
56469 cat conftest.err >&5
56470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56471 (exit $ac_status); } &&
56472 { ac_try='test -z "$ac_c_werror_flag"
56473 || test ! -s conftest.err'
56474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56475 (eval $ac_try) 2>&5
56476 ac_status=$?
56477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56478 (exit $ac_status); }; } &&
56479 { ac_try='test -s conftest.$ac_objext'
56480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56481 (eval $ac_try) 2>&5
56482 ac_status=$?
56483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56484 (exit $ac_status); }; }; then
56485 ac_header_compiler=yes
56486 else
56487 echo "$as_me: failed program was:" >&5
56488 sed 's/^/| /' conftest.$ac_ext >&5
56489
56490 ac_header_compiler=no
56491 fi
56492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56494 echo "${ECHO_T}$ac_header_compiler" >&6
56495
56496 # Is the header present?
56497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56499 cat >conftest.$ac_ext <<_ACEOF
56500 /* confdefs.h. */
56501 _ACEOF
56502 cat confdefs.h >>conftest.$ac_ext
56503 cat >>conftest.$ac_ext <<_ACEOF
56504 /* end confdefs.h. */
56505 #include <$ac_header>
56506 _ACEOF
56507 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56509 ac_status=$?
56510 grep -v '^ *+' conftest.er1 >conftest.err
56511 rm -f conftest.er1
56512 cat conftest.err >&5
56513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56514 (exit $ac_status); } >/dev/null; then
56515 if test -s conftest.err; then
56516 ac_cpp_err=$ac_c_preproc_warn_flag
56517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56518 else
56519 ac_cpp_err=
56520 fi
56521 else
56522 ac_cpp_err=yes
56523 fi
56524 if test -z "$ac_cpp_err"; then
56525 ac_header_preproc=yes
56526 else
56527 echo "$as_me: failed program was:" >&5
56528 sed 's/^/| /' conftest.$ac_ext >&5
56529
56530 ac_header_preproc=no
56531 fi
56532 rm -f conftest.err conftest.$ac_ext
56533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56534 echo "${ECHO_T}$ac_header_preproc" >&6
56535
56536 # So? What about this header?
56537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56538 yes:no: )
56539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56543 ac_header_preproc=yes
56544 ;;
56545 no:yes:* )
56546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
56553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
56554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56558 (
56559 cat <<\_ASBOX
56560 ## ----------------------------------------- ##
56561 ## Report this to the package-unused lists. ##
56562 ## ----------------------------------------- ##
56563 _ASBOX
56564 ) |
56565 sed "s/^/$as_me: WARNING: /" >&2
56566 ;;
56567 esac
56568 echo "$as_me:$LINENO: checking for $ac_header" >&5
56569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56571 echo $ECHO_N "(cached) $ECHO_C" >&6
56572 else
56573 eval "$as_ac_Header=\$ac_header_preproc"
56574 fi
56575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56577
56578 fi
56579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56580 cat >>confdefs.h <<_ACEOF
56581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56582 _ACEOF
56583 ac_has_wchar_h=yes
56584 else
56585 ac_has_wchar_h=no
56586 fi
56587
56588 done
56589
56590
56591 for ac_header in wctype.h
56592 do
56593 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56595 echo "$as_me:$LINENO: checking for $ac_header" >&5
56596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56598 echo $ECHO_N "(cached) $ECHO_C" >&6
56599 fi
56600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56602 else
56603 # Is the header compilable?
56604 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56606 cat >conftest.$ac_ext <<_ACEOF
56607 /* confdefs.h. */
56608 _ACEOF
56609 cat confdefs.h >>conftest.$ac_ext
56610 cat >>conftest.$ac_ext <<_ACEOF
56611 /* end confdefs.h. */
56612 $ac_includes_default
56613 #include <$ac_header>
56614 _ACEOF
56615 rm -f conftest.$ac_objext
56616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56617 (eval $ac_compile) 2>conftest.er1
56618 ac_status=$?
56619 grep -v '^ *+' conftest.er1 >conftest.err
56620 rm -f conftest.er1
56621 cat conftest.err >&5
56622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56623 (exit $ac_status); } &&
56624 { ac_try='test -z "$ac_c_werror_flag"
56625 || test ! -s conftest.err'
56626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56627 (eval $ac_try) 2>&5
56628 ac_status=$?
56629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56630 (exit $ac_status); }; } &&
56631 { ac_try='test -s conftest.$ac_objext'
56632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56633 (eval $ac_try) 2>&5
56634 ac_status=$?
56635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56636 (exit $ac_status); }; }; then
56637 ac_header_compiler=yes
56638 else
56639 echo "$as_me: failed program was:" >&5
56640 sed 's/^/| /' conftest.$ac_ext >&5
56641
56642 ac_header_compiler=no
56643 fi
56644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56646 echo "${ECHO_T}$ac_header_compiler" >&6
56647
56648 # Is the header present?
56649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56651 cat >conftest.$ac_ext <<_ACEOF
56652 /* confdefs.h. */
56653 _ACEOF
56654 cat confdefs.h >>conftest.$ac_ext
56655 cat >>conftest.$ac_ext <<_ACEOF
56656 /* end confdefs.h. */
56657 #include <$ac_header>
56658 _ACEOF
56659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56661 ac_status=$?
56662 grep -v '^ *+' conftest.er1 >conftest.err
56663 rm -f conftest.er1
56664 cat conftest.err >&5
56665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56666 (exit $ac_status); } >/dev/null; then
56667 if test -s conftest.err; then
56668 ac_cpp_err=$ac_c_preproc_warn_flag
56669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56670 else
56671 ac_cpp_err=
56672 fi
56673 else
56674 ac_cpp_err=yes
56675 fi
56676 if test -z "$ac_cpp_err"; then
56677 ac_header_preproc=yes
56678 else
56679 echo "$as_me: failed program was:" >&5
56680 sed 's/^/| /' conftest.$ac_ext >&5
56681
56682 ac_header_preproc=no
56683 fi
56684 rm -f conftest.err conftest.$ac_ext
56685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56686 echo "${ECHO_T}$ac_header_preproc" >&6
56687
56688 # So? What about this header?
56689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56690 yes:no: )
56691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56694 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56695 ac_header_preproc=yes
56696 ;;
56697 no:yes:* )
56698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56699 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
56701 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
56702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56703 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
56705 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
56706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56707 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56709 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56710 (
56711 cat <<\_ASBOX
56712 ## ----------------------------------------- ##
56713 ## Report this to the package-unused lists. ##
56714 ## ----------------------------------------- ##
56715 _ASBOX
56716 ) |
56717 sed "s/^/$as_me: WARNING: /" >&2
56718 ;;
56719 esac
56720 echo "$as_me:$LINENO: checking for $ac_header" >&5
56721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56723 echo $ECHO_N "(cached) $ECHO_C" >&6
56724 else
56725 eval "$as_ac_Header=\$ac_header_preproc"
56726 fi
56727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56729
56730 fi
56731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56732 cat >>confdefs.h <<_ACEOF
56733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56734 _ACEOF
56735 ac_has_wctype_h=yes
56736 else
56737 ac_has_wctype_h=no
56738 fi
56739
56740 done
56741
56742
56743 # Only continue checking if the ISO C99 headers exist and support is on.
56744 if test x"$ac_has_wchar_h" = xyes &&
56745 test x"$ac_has_wctype_h" = xyes &&
56746 test x"$enable_c_mbchar" != xno; then
56747
56748 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
56749 # numeric_limits can instantiate type_traits<wchar_t>
56750 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
56751 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
56752 cat >conftest.$ac_ext <<_ACEOF
56753 /* confdefs.h. */
56754 _ACEOF
56755 cat confdefs.h >>conftest.$ac_ext
56756 cat >>conftest.$ac_ext <<_ACEOF
56757 /* end confdefs.h. */
56758 #include <wchar.h>
56759 int
56760 main ()
56761 {
56762 int i = WCHAR_MIN; int j = WCHAR_MAX;
56763 ;
56764 return 0;
56765 }
56766 _ACEOF
56767 rm -f conftest.$ac_objext
56768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56769 (eval $ac_compile) 2>conftest.er1
56770 ac_status=$?
56771 grep -v '^ *+' conftest.er1 >conftest.err
56772 rm -f conftest.er1
56773 cat conftest.err >&5
56774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56775 (exit $ac_status); } &&
56776 { ac_try='test -z "$ac_c_werror_flag"
56777 || test ! -s conftest.err'
56778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56779 (eval $ac_try) 2>&5
56780 ac_status=$?
56781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56782 (exit $ac_status); }; } &&
56783 { ac_try='test -s conftest.$ac_objext'
56784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56785 (eval $ac_try) 2>&5
56786 ac_status=$?
56787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56788 (exit $ac_status); }; }; then
56789 has_wchar_minmax=yes
56790 else
56791 echo "$as_me: failed program was:" >&5
56792 sed 's/^/| /' conftest.$ac_ext >&5
56793
56794 has_wchar_minmax=no
56795 fi
56796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56797 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
56798 echo "${ECHO_T}$has_wchar_minmax" >&6
56799
56800 # Test wchar.h for WEOF, which is what we use to determine whether
56801 # to specialize for char_traits<wchar_t> or not.
56802 echo "$as_me:$LINENO: checking for WEOF" >&5
56803 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
56804 cat >conftest.$ac_ext <<_ACEOF
56805 /* confdefs.h. */
56806 _ACEOF
56807 cat confdefs.h >>conftest.$ac_ext
56808 cat >>conftest.$ac_ext <<_ACEOF
56809 /* end confdefs.h. */
56810
56811 #include <wchar.h>
56812 #include <stddef.h>
56813 int
56814 main ()
56815 {
56816 wint_t i = WEOF;
56817 ;
56818 return 0;
56819 }
56820 _ACEOF
56821 rm -f conftest.$ac_objext
56822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56823 (eval $ac_compile) 2>conftest.er1
56824 ac_status=$?
56825 grep -v '^ *+' conftest.er1 >conftest.err
56826 rm -f conftest.er1
56827 cat conftest.err >&5
56828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56829 (exit $ac_status); } &&
56830 { ac_try='test -z "$ac_c_werror_flag"
56831 || test ! -s conftest.err'
56832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56833 (eval $ac_try) 2>&5
56834 ac_status=$?
56835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56836 (exit $ac_status); }; } &&
56837 { ac_try='test -s conftest.$ac_objext'
56838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56839 (eval $ac_try) 2>&5
56840 ac_status=$?
56841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56842 (exit $ac_status); }; }; then
56843 has_weof=yes
56844 else
56845 echo "$as_me: failed program was:" >&5
56846 sed 's/^/| /' conftest.$ac_ext >&5
56847
56848 has_weof=no
56849 fi
56850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56851 echo "$as_me:$LINENO: result: $has_weof" >&5
56852 echo "${ECHO_T}$has_weof" >&6
56853
56854 # Tests for wide character functions used in char_traits<wchar_t>.
56855 ac_wfuncs=yes
56856
56857
56858
56859
56860
56861
56862 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
56863 do
56864 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56865 echo "$as_me:$LINENO: checking for $ac_func" >&5
56866 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56867 if eval "test \"\${$as_ac_var+set}\" = set"; then
56868 echo $ECHO_N "(cached) $ECHO_C" >&6
56869 else
56870 if test x$gcc_no_link = xyes; then
56871 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56872 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56873 { (exit 1); exit 1; }; }
56874 fi
56875 cat >conftest.$ac_ext <<_ACEOF
56876 /* confdefs.h. */
56877 _ACEOF
56878 cat confdefs.h >>conftest.$ac_ext
56879 cat >>conftest.$ac_ext <<_ACEOF
56880 /* end confdefs.h. */
56881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
56883 #define $ac_func innocuous_$ac_func
56884
56885 /* System header to define __stub macros and hopefully few prototypes,
56886 which can conflict with char $ac_func (); below.
56887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56888 <limits.h> exists even on freestanding compilers. */
56889
56890 #ifdef __STDC__
56891 # include <limits.h>
56892 #else
56893 # include <assert.h>
56894 #endif
56895
56896 #undef $ac_func
56897
56898 /* Override any gcc2 internal prototype to avoid an error. */
56899 #ifdef __cplusplus
56900 extern "C"
56901 {
56902 #endif
56903 /* We use char because int might match the return type of a gcc2
56904 builtin and then its argument prototype would still apply. */
56905 char $ac_func ();
56906 /* The GNU C library defines this for functions which it implements
56907 to always fail with ENOSYS. Some functions are actually named
56908 something starting with __ and the normal name is an alias. */
56909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56910 choke me
56911 #else
56912 char (*f) () = $ac_func;
56913 #endif
56914 #ifdef __cplusplus
56915 }
56916 #endif
56917
56918 int
56919 main ()
56920 {
56921 return f != $ac_func;
56922 ;
56923 return 0;
56924 }
56925 _ACEOF
56926 rm -f conftest.$ac_objext conftest$ac_exeext
56927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56928 (eval $ac_link) 2>conftest.er1
56929 ac_status=$?
56930 grep -v '^ *+' conftest.er1 >conftest.err
56931 rm -f conftest.er1
56932 cat conftest.err >&5
56933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56934 (exit $ac_status); } &&
56935 { ac_try='test -z "$ac_c_werror_flag"
56936 || test ! -s conftest.err'
56937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56938 (eval $ac_try) 2>&5
56939 ac_status=$?
56940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56941 (exit $ac_status); }; } &&
56942 { ac_try='test -s conftest$ac_exeext'
56943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56944 (eval $ac_try) 2>&5
56945 ac_status=$?
56946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
56947 (exit $ac_status); }; }; then
56948 eval "$as_ac_var=yes"
56949 else
56950 echo "$as_me: failed program was:" >&5
56951 sed 's/^/| /' conftest.$ac_ext >&5
56952
56953 eval "$as_ac_var=no"
56954 fi
56955 rm -f conftest.err conftest.$ac_objext \
56956 conftest$ac_exeext conftest.$ac_ext
56957 fi
56958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56960 if test `eval echo '${'$as_ac_var'}'` = yes; then
56961 cat >>confdefs.h <<_ACEOF
56962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56963 _ACEOF
56964
56965 else
56966 ac_wfuncs=no
56967 fi
56968 done
56969
56970
56971 # Checks for names injected into std:: by the c_std headers.
56972
56973
56974
56975
56976
56977
56978
56979
56980
56981
56982
56983
56984
56985
56986
56987
56988
56989
56990
56991
56992
56993
56994
56995
56996
56997
56998
56999
57000
57001
57002
57003
57004
57005
57006
57007
57008
57009
57010
57011
57012
57013
57014
57015
57016
57017
57018 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
57019 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
57020 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
57021 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
57022 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
57023 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
57024 do
57025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57026 echo "$as_me:$LINENO: checking for $ac_func" >&5
57027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57028 if eval "test \"\${$as_ac_var+set}\" = set"; then
57029 echo $ECHO_N "(cached) $ECHO_C" >&6
57030 else
57031 if test x$gcc_no_link = xyes; then
57032 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57033 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57034 { (exit 1); exit 1; }; }
57035 fi
57036 cat >conftest.$ac_ext <<_ACEOF
57037 /* confdefs.h. */
57038 _ACEOF
57039 cat confdefs.h >>conftest.$ac_ext
57040 cat >>conftest.$ac_ext <<_ACEOF
57041 /* end confdefs.h. */
57042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57044 #define $ac_func innocuous_$ac_func
57045
57046 /* System header to define __stub macros and hopefully few prototypes,
57047 which can conflict with char $ac_func (); below.
57048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57049 <limits.h> exists even on freestanding compilers. */
57050
57051 #ifdef __STDC__
57052 # include <limits.h>
57053 #else
57054 # include <assert.h>
57055 #endif
57056
57057 #undef $ac_func
57058
57059 /* Override any gcc2 internal prototype to avoid an error. */
57060 #ifdef __cplusplus
57061 extern "C"
57062 {
57063 #endif
57064 /* We use char because int might match the return type of a gcc2
57065 builtin and then its argument prototype would still apply. */
57066 char $ac_func ();
57067 /* The GNU C library defines this for functions which it implements
57068 to always fail with ENOSYS. Some functions are actually named
57069 something starting with __ and the normal name is an alias. */
57070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57071 choke me
57072 #else
57073 char (*f) () = $ac_func;
57074 #endif
57075 #ifdef __cplusplus
57076 }
57077 #endif
57078
57079 int
57080 main ()
57081 {
57082 return f != $ac_func;
57083 ;
57084 return 0;
57085 }
57086 _ACEOF
57087 rm -f conftest.$ac_objext conftest$ac_exeext
57088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57089 (eval $ac_link) 2>conftest.er1
57090 ac_status=$?
57091 grep -v '^ *+' conftest.er1 >conftest.err
57092 rm -f conftest.er1
57093 cat conftest.err >&5
57094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57095 (exit $ac_status); } &&
57096 { ac_try='test -z "$ac_c_werror_flag"
57097 || test ! -s conftest.err'
57098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57099 (eval $ac_try) 2>&5
57100 ac_status=$?
57101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57102 (exit $ac_status); }; } &&
57103 { ac_try='test -s conftest$ac_exeext'
57104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57105 (eval $ac_try) 2>&5
57106 ac_status=$?
57107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57108 (exit $ac_status); }; }; then
57109 eval "$as_ac_var=yes"
57110 else
57111 echo "$as_me: failed program was:" >&5
57112 sed 's/^/| /' conftest.$ac_ext >&5
57113
57114 eval "$as_ac_var=no"
57115 fi
57116 rm -f conftest.err conftest.$ac_objext \
57117 conftest$ac_exeext conftest.$ac_ext
57118 fi
57119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57121 if test `eval echo '${'$as_ac_var'}'` = yes; then
57122 cat >>confdefs.h <<_ACEOF
57123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57124 _ACEOF
57125
57126 else
57127 ac_wfuncs=no
57128 fi
57129 done
57130
57131
57132 # Checks for wide character functions that are not required
57133 # for basic wchar_t support. Don't disable support if they are missing.
57134 # Injection of these is wrapped with guard macros.
57135
57136
57137
57138
57139
57140 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
57141 do
57142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57143 echo "$as_me:$LINENO: checking for $ac_func" >&5
57144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57145 if eval "test \"\${$as_ac_var+set}\" = set"; then
57146 echo $ECHO_N "(cached) $ECHO_C" >&6
57147 else
57148 if test x$gcc_no_link = xyes; then
57149 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57150 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57151 { (exit 1); exit 1; }; }
57152 fi
57153 cat >conftest.$ac_ext <<_ACEOF
57154 /* confdefs.h. */
57155 _ACEOF
57156 cat confdefs.h >>conftest.$ac_ext
57157 cat >>conftest.$ac_ext <<_ACEOF
57158 /* end confdefs.h. */
57159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57161 #define $ac_func innocuous_$ac_func
57162
57163 /* System header to define __stub macros and hopefully few prototypes,
57164 which can conflict with char $ac_func (); below.
57165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57166 <limits.h> exists even on freestanding compilers. */
57167
57168 #ifdef __STDC__
57169 # include <limits.h>
57170 #else
57171 # include <assert.h>
57172 #endif
57173
57174 #undef $ac_func
57175
57176 /* Override any gcc2 internal prototype to avoid an error. */
57177 #ifdef __cplusplus
57178 extern "C"
57179 {
57180 #endif
57181 /* We use char because int might match the return type of a gcc2
57182 builtin and then its argument prototype would still apply. */
57183 char $ac_func ();
57184 /* The GNU C library defines this for functions which it implements
57185 to always fail with ENOSYS. Some functions are actually named
57186 something starting with __ and the normal name is an alias. */
57187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57188 choke me
57189 #else
57190 char (*f) () = $ac_func;
57191 #endif
57192 #ifdef __cplusplus
57193 }
57194 #endif
57195
57196 int
57197 main ()
57198 {
57199 return f != $ac_func;
57200 ;
57201 return 0;
57202 }
57203 _ACEOF
57204 rm -f conftest.$ac_objext conftest$ac_exeext
57205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57206 (eval $ac_link) 2>conftest.er1
57207 ac_status=$?
57208 grep -v '^ *+' conftest.er1 >conftest.err
57209 rm -f conftest.er1
57210 cat conftest.err >&5
57211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57212 (exit $ac_status); } &&
57213 { ac_try='test -z "$ac_c_werror_flag"
57214 || test ! -s conftest.err'
57215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57216 (eval $ac_try) 2>&5
57217 ac_status=$?
57218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57219 (exit $ac_status); }; } &&
57220 { ac_try='test -s conftest$ac_exeext'
57221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57222 (eval $ac_try) 2>&5
57223 ac_status=$?
57224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57225 (exit $ac_status); }; }; then
57226 eval "$as_ac_var=yes"
57227 else
57228 echo "$as_me: failed program was:" >&5
57229 sed 's/^/| /' conftest.$ac_ext >&5
57230
57231 eval "$as_ac_var=no"
57232 fi
57233 rm -f conftest.err conftest.$ac_objext \
57234 conftest$ac_exeext conftest.$ac_ext
57235 fi
57236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57238 if test `eval echo '${'$as_ac_var'}'` = yes; then
57239 cat >>confdefs.h <<_ACEOF
57240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57241 _ACEOF
57242
57243 fi
57244 done
57245
57246
57247 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
57248 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
57249 if test x"$has_weof" = xyes &&
57250 test x"$has_wchar_minmax" = xyes &&
57251 test x"$ac_wfuncs" = xyes;
57252 then
57253 ac_isoC99_wchar_t=yes
57254 else
57255 ac_isoC99_wchar_t=no
57256 fi
57257 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
57258 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
57259
57260 # Use iconv for wchar_t to char conversions. As such, check for
57261 # X/Open Portability Guide, version 2 features (XPG2).
57262 if test "${ac_cv_header_iconv_h+set}" = set; then
57263 echo "$as_me:$LINENO: checking for iconv.h" >&5
57264 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57265 if test "${ac_cv_header_iconv_h+set}" = set; then
57266 echo $ECHO_N "(cached) $ECHO_C" >&6
57267 fi
57268 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57269 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57270 else
57271 # Is the header compilable?
57272 echo "$as_me:$LINENO: checking iconv.h usability" >&5
57273 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
57274 cat >conftest.$ac_ext <<_ACEOF
57275 /* confdefs.h. */
57276 _ACEOF
57277 cat confdefs.h >>conftest.$ac_ext
57278 cat >>conftest.$ac_ext <<_ACEOF
57279 /* end confdefs.h. */
57280 $ac_includes_default
57281 #include <iconv.h>
57282 _ACEOF
57283 rm -f conftest.$ac_objext
57284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57285 (eval $ac_compile) 2>conftest.er1
57286 ac_status=$?
57287 grep -v '^ *+' conftest.er1 >conftest.err
57288 rm -f conftest.er1
57289 cat conftest.err >&5
57290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57291 (exit $ac_status); } &&
57292 { ac_try='test -z "$ac_c_werror_flag"
57293 || test ! -s conftest.err'
57294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57295 (eval $ac_try) 2>&5
57296 ac_status=$?
57297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57298 (exit $ac_status); }; } &&
57299 { ac_try='test -s conftest.$ac_objext'
57300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57301 (eval $ac_try) 2>&5
57302 ac_status=$?
57303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57304 (exit $ac_status); }; }; then
57305 ac_header_compiler=yes
57306 else
57307 echo "$as_me: failed program was:" >&5
57308 sed 's/^/| /' conftest.$ac_ext >&5
57309
57310 ac_header_compiler=no
57311 fi
57312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57314 echo "${ECHO_T}$ac_header_compiler" >&6
57315
57316 # Is the header present?
57317 echo "$as_me:$LINENO: checking iconv.h presence" >&5
57318 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
57319 cat >conftest.$ac_ext <<_ACEOF
57320 /* confdefs.h. */
57321 _ACEOF
57322 cat confdefs.h >>conftest.$ac_ext
57323 cat >>conftest.$ac_ext <<_ACEOF
57324 /* end confdefs.h. */
57325 #include <iconv.h>
57326 _ACEOF
57327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57329 ac_status=$?
57330 grep -v '^ *+' conftest.er1 >conftest.err
57331 rm -f conftest.er1
57332 cat conftest.err >&5
57333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57334 (exit $ac_status); } >/dev/null; then
57335 if test -s conftest.err; then
57336 ac_cpp_err=$ac_c_preproc_warn_flag
57337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57338 else
57339 ac_cpp_err=
57340 fi
57341 else
57342 ac_cpp_err=yes
57343 fi
57344 if test -z "$ac_cpp_err"; then
57345 ac_header_preproc=yes
57346 else
57347 echo "$as_me: failed program was:" >&5
57348 sed 's/^/| /' conftest.$ac_ext >&5
57349
57350 ac_header_preproc=no
57351 fi
57352 rm -f conftest.err conftest.$ac_ext
57353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57354 echo "${ECHO_T}$ac_header_preproc" >&6
57355
57356 # So? What about this header?
57357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57358 yes:no: )
57359 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
57360 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57361 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
57362 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
57363 ac_header_preproc=yes
57364 ;;
57365 no:yes:* )
57366 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
57367 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
57368 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
57369 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
57370 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
57371 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
57372 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
57373 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
57374 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
57375 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
57376 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
57377 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
57378 (
57379 cat <<\_ASBOX
57380 ## ----------------------------------------- ##
57381 ## Report this to the package-unused lists. ##
57382 ## ----------------------------------------- ##
57383 _ASBOX
57384 ) |
57385 sed "s/^/$as_me: WARNING: /" >&2
57386 ;;
57387 esac
57388 echo "$as_me:$LINENO: checking for iconv.h" >&5
57389 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57390 if test "${ac_cv_header_iconv_h+set}" = set; then
57391 echo $ECHO_N "(cached) $ECHO_C" >&6
57392 else
57393 ac_cv_header_iconv_h=$ac_header_preproc
57394 fi
57395 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57396 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57397
57398 fi
57399 if test $ac_cv_header_iconv_h = yes; then
57400 ac_has_iconv_h=yes
57401 else
57402 ac_has_iconv_h=no
57403 fi
57404
57405
57406 if test "${ac_cv_header_langinfo_h+set}" = set; then
57407 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57408 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57409 if test "${ac_cv_header_langinfo_h+set}" = set; then
57410 echo $ECHO_N "(cached) $ECHO_C" >&6
57411 fi
57412 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57413 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57414 else
57415 # Is the header compilable?
57416 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
57417 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
57418 cat >conftest.$ac_ext <<_ACEOF
57419 /* confdefs.h. */
57420 _ACEOF
57421 cat confdefs.h >>conftest.$ac_ext
57422 cat >>conftest.$ac_ext <<_ACEOF
57423 /* end confdefs.h. */
57424 $ac_includes_default
57425 #include <langinfo.h>
57426 _ACEOF
57427 rm -f conftest.$ac_objext
57428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57429 (eval $ac_compile) 2>conftest.er1
57430 ac_status=$?
57431 grep -v '^ *+' conftest.er1 >conftest.err
57432 rm -f conftest.er1
57433 cat conftest.err >&5
57434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57435 (exit $ac_status); } &&
57436 { ac_try='test -z "$ac_c_werror_flag"
57437 || test ! -s conftest.err'
57438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57439 (eval $ac_try) 2>&5
57440 ac_status=$?
57441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57442 (exit $ac_status); }; } &&
57443 { ac_try='test -s conftest.$ac_objext'
57444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57445 (eval $ac_try) 2>&5
57446 ac_status=$?
57447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57448 (exit $ac_status); }; }; then
57449 ac_header_compiler=yes
57450 else
57451 echo "$as_me: failed program was:" >&5
57452 sed 's/^/| /' conftest.$ac_ext >&5
57453
57454 ac_header_compiler=no
57455 fi
57456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57458 echo "${ECHO_T}$ac_header_compiler" >&6
57459
57460 # Is the header present?
57461 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
57462 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
57463 cat >conftest.$ac_ext <<_ACEOF
57464 /* confdefs.h. */
57465 _ACEOF
57466 cat confdefs.h >>conftest.$ac_ext
57467 cat >>conftest.$ac_ext <<_ACEOF
57468 /* end confdefs.h. */
57469 #include <langinfo.h>
57470 _ACEOF
57471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57473 ac_status=$?
57474 grep -v '^ *+' conftest.er1 >conftest.err
57475 rm -f conftest.er1
57476 cat conftest.err >&5
57477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57478 (exit $ac_status); } >/dev/null; then
57479 if test -s conftest.err; then
57480 ac_cpp_err=$ac_c_preproc_warn_flag
57481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57482 else
57483 ac_cpp_err=
57484 fi
57485 else
57486 ac_cpp_err=yes
57487 fi
57488 if test -z "$ac_cpp_err"; then
57489 ac_header_preproc=yes
57490 else
57491 echo "$as_me: failed program was:" >&5
57492 sed 's/^/| /' conftest.$ac_ext >&5
57493
57494 ac_header_preproc=no
57495 fi
57496 rm -f conftest.err conftest.$ac_ext
57497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57498 echo "${ECHO_T}$ac_header_preproc" >&6
57499
57500 # So? What about this header?
57501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57502 yes:no: )
57503 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57504 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57505 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
57506 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
57507 ac_header_preproc=yes
57508 ;;
57509 no:yes:* )
57510 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
57511 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
57512 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
57513 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
57514 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
57515 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
57516 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
57517 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
57518 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57519 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57520 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
57521 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
57522 (
57523 cat <<\_ASBOX
57524 ## ----------------------------------------- ##
57525 ## Report this to the package-unused lists. ##
57526 ## ----------------------------------------- ##
57527 _ASBOX
57528 ) |
57529 sed "s/^/$as_me: WARNING: /" >&2
57530 ;;
57531 esac
57532 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57533 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57534 if test "${ac_cv_header_langinfo_h+set}" = set; then
57535 echo $ECHO_N "(cached) $ECHO_C" >&6
57536 else
57537 ac_cv_header_langinfo_h=$ac_header_preproc
57538 fi
57539 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57540 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57541
57542 fi
57543 if test $ac_cv_header_langinfo_h = yes; then
57544 ac_has_langinfo_h=yes
57545 else
57546 ac_has_langinfo_h=no
57547 fi
57548
57549
57550
57551 # Check for existence of libiconv.a providing XPG2 wchar_t support.
57552 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
57553 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
57554 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
57555 echo $ECHO_N "(cached) $ECHO_C" >&6
57556 else
57557 ac_check_lib_save_LIBS=$LIBS
57558 LIBS="-liconv $LIBS"
57559 if test x$gcc_no_link = xyes; then
57560 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57562 { (exit 1); exit 1; }; }
57563 fi
57564 cat >conftest.$ac_ext <<_ACEOF
57565 /* confdefs.h. */
57566 _ACEOF
57567 cat confdefs.h >>conftest.$ac_ext
57568 cat >>conftest.$ac_ext <<_ACEOF
57569 /* end confdefs.h. */
57570
57571 /* Override any gcc2 internal prototype to avoid an error. */
57572 #ifdef __cplusplus
57573 extern "C"
57574 #endif
57575 /* We use char because int might match the return type of a gcc2
57576 builtin and then its argument prototype would still apply. */
57577 char iconv ();
57578 int
57579 main ()
57580 {
57581 iconv ();
57582 ;
57583 return 0;
57584 }
57585 _ACEOF
57586 rm -f conftest.$ac_objext conftest$ac_exeext
57587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57588 (eval $ac_link) 2>conftest.er1
57589 ac_status=$?
57590 grep -v '^ *+' conftest.er1 >conftest.err
57591 rm -f conftest.er1
57592 cat conftest.err >&5
57593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57594 (exit $ac_status); } &&
57595 { ac_try='test -z "$ac_c_werror_flag"
57596 || test ! -s conftest.err'
57597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57598 (eval $ac_try) 2>&5
57599 ac_status=$?
57600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57601 (exit $ac_status); }; } &&
57602 { ac_try='test -s conftest$ac_exeext'
57603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57604 (eval $ac_try) 2>&5
57605 ac_status=$?
57606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57607 (exit $ac_status); }; }; then
57608 ac_cv_lib_iconv_iconv=yes
57609 else
57610 echo "$as_me: failed program was:" >&5
57611 sed 's/^/| /' conftest.$ac_ext >&5
57612
57613 ac_cv_lib_iconv_iconv=no
57614 fi
57615 rm -f conftest.err conftest.$ac_objext \
57616 conftest$ac_exeext conftest.$ac_ext
57617 LIBS=$ac_check_lib_save_LIBS
57618 fi
57619 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
57620 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
57621 if test $ac_cv_lib_iconv_iconv = yes; then
57622 LIBICONV="-liconv"
57623 fi
57624
57625 ac_save_LIBS="$LIBS"
57626 LIBS="$LIBS $LIBICONV"
57627
57628
57629
57630
57631
57632
57633 for ac_func in iconv_open iconv_close iconv nl_langinfo
57634 do
57635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57636 echo "$as_me:$LINENO: checking for $ac_func" >&5
57637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57638 if eval "test \"\${$as_ac_var+set}\" = set"; then
57639 echo $ECHO_N "(cached) $ECHO_C" >&6
57640 else
57641 if test x$gcc_no_link = xyes; then
57642 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57643 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57644 { (exit 1); exit 1; }; }
57645 fi
57646 cat >conftest.$ac_ext <<_ACEOF
57647 /* confdefs.h. */
57648 _ACEOF
57649 cat confdefs.h >>conftest.$ac_ext
57650 cat >>conftest.$ac_ext <<_ACEOF
57651 /* end confdefs.h. */
57652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
57654 #define $ac_func innocuous_$ac_func
57655
57656 /* System header to define __stub macros and hopefully few prototypes,
57657 which can conflict with char $ac_func (); below.
57658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57659 <limits.h> exists even on freestanding compilers. */
57660
57661 #ifdef __STDC__
57662 # include <limits.h>
57663 #else
57664 # include <assert.h>
57665 #endif
57666
57667 #undef $ac_func
57668
57669 /* Override any gcc2 internal prototype to avoid an error. */
57670 #ifdef __cplusplus
57671 extern "C"
57672 {
57673 #endif
57674 /* We use char because int might match the return type of a gcc2
57675 builtin and then its argument prototype would still apply. */
57676 char $ac_func ();
57677 /* The GNU C library defines this for functions which it implements
57678 to always fail with ENOSYS. Some functions are actually named
57679 something starting with __ and the normal name is an alias. */
57680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57681 choke me
57682 #else
57683 char (*f) () = $ac_func;
57684 #endif
57685 #ifdef __cplusplus
57686 }
57687 #endif
57688
57689 int
57690 main ()
57691 {
57692 return f != $ac_func;
57693 ;
57694 return 0;
57695 }
57696 _ACEOF
57697 rm -f conftest.$ac_objext conftest$ac_exeext
57698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57699 (eval $ac_link) 2>conftest.er1
57700 ac_status=$?
57701 grep -v '^ *+' conftest.er1 >conftest.err
57702 rm -f conftest.er1
57703 cat conftest.err >&5
57704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57705 (exit $ac_status); } &&
57706 { ac_try='test -z "$ac_c_werror_flag"
57707 || test ! -s conftest.err'
57708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57709 (eval $ac_try) 2>&5
57710 ac_status=$?
57711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57712 (exit $ac_status); }; } &&
57713 { ac_try='test -s conftest$ac_exeext'
57714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57715 (eval $ac_try) 2>&5
57716 ac_status=$?
57717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57718 (exit $ac_status); }; }; then
57719 eval "$as_ac_var=yes"
57720 else
57721 echo "$as_me: failed program was:" >&5
57722 sed 's/^/| /' conftest.$ac_ext >&5
57723
57724 eval "$as_ac_var=no"
57725 fi
57726 rm -f conftest.err conftest.$ac_objext \
57727 conftest$ac_exeext conftest.$ac_ext
57728 fi
57729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57730 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57731 if test `eval echo '${'$as_ac_var'}'` = yes; then
57732 cat >>confdefs.h <<_ACEOF
57733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57734 _ACEOF
57735 ac_XPG2funcs=yes
57736 else
57737 ac_XPG2funcs=no
57738 fi
57739 done
57740
57741
57742 LIBS="$ac_save_LIBS"
57743
57744 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
57745 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
57746 if test x"$ac_has_iconv_h" = xyes &&
57747 test x"$ac_has_langinfo_h" = xyes &&
57748 test x"$ac_XPG2funcs" = xyes;
57749 then
57750 ac_XPG2_wchar_t=yes
57751 else
57752 ac_XPG2_wchar_t=no
57753 fi
57754 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
57755 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
57756
57757 # At the moment, only enable wchar_t specializations if all the
57758 # above support is present.
57759 if test x"$ac_isoC99_wchar_t" = xyes &&
57760 test x"$ac_XPG2_wchar_t" = xyes;
57761 then
57762 cat >>confdefs.h <<\_ACEOF
57763 #define _GLIBCXX_USE_WCHAR_T 1
57764 _ACEOF
57765
57766 enable_wchar_t=yes
57767 fi
57768 fi
57769 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
57770 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
57771 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
57772 echo "${ECHO_T}$enable_wchar_t" >&6
57773
57774 cat >>confdefs.h <<\_ACEOF
57775 #define HAVE_COPYSIGN 1
57776 _ACEOF
57777
57778 cat >>confdefs.h <<\_ACEOF
57779 #define HAVE_COPYSIGNF 1
57780 _ACEOF
57781
57782 cat >>confdefs.h <<\_ACEOF
57783 #define HAVE_FREXPF 1
57784 _ACEOF
57785
57786 cat >>confdefs.h <<\_ACEOF
57787 #define HAVE_HYPOT 1
57788 _ACEOF
57789
57790 case "$target" in
57791 *-hpux10*)
57792 cat >>confdefs.h <<\_ACEOF
57793 #define HAVE_FINITE 1
57794 _ACEOF
57795
57796 cat >>confdefs.h <<\_ACEOF
57797 #define HAVE_FINITEF 1
57798 _ACEOF
57799
57800 cat >>confdefs.h <<\_ACEOF
57801 #define HAVE_ISINF 1
57802 _ACEOF
57803
57804 cat >>confdefs.h <<\_ACEOF
57805 #define HAVE_ISINFF 1
57806 _ACEOF
57807
57808 cat >>confdefs.h <<\_ACEOF
57809 #define HAVE_ISNAN 1
57810 _ACEOF
57811
57812 cat >>confdefs.h <<\_ACEOF
57813 #define HAVE_ISNANF 1
57814 _ACEOF
57815
57816 ;;
57817 esac
57818 ;;
57819 *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
57820
57821
57822
57823
57824
57825
57826
57827
57828
57829
57830
57831
57832
57833
57834
57835 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
57836 machine/endian.h machine/param.h sys/machine.h sys/types.h \
57837 fp.h float.h endian.h inttypes.h locale.h float.h stdint.h
57838 do
57839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
57840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57841 echo "$as_me:$LINENO: checking for $ac_header" >&5
57842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57844 echo $ECHO_N "(cached) $ECHO_C" >&6
57845 fi
57846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57848 else
57849 # Is the header compilable?
57850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
57851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
57852 cat >conftest.$ac_ext <<_ACEOF
57853 /* confdefs.h. */
57854 _ACEOF
57855 cat confdefs.h >>conftest.$ac_ext
57856 cat >>conftest.$ac_ext <<_ACEOF
57857 /* end confdefs.h. */
57858 $ac_includes_default
57859 #include <$ac_header>
57860 _ACEOF
57861 rm -f conftest.$ac_objext
57862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57863 (eval $ac_compile) 2>conftest.er1
57864 ac_status=$?
57865 grep -v '^ *+' conftest.er1 >conftest.err
57866 rm -f conftest.er1
57867 cat conftest.err >&5
57868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57869 (exit $ac_status); } &&
57870 { ac_try='test -z "$ac_c_werror_flag"
57871 || test ! -s conftest.err'
57872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57873 (eval $ac_try) 2>&5
57874 ac_status=$?
57875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57876 (exit $ac_status); }; } &&
57877 { ac_try='test -s conftest.$ac_objext'
57878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57879 (eval $ac_try) 2>&5
57880 ac_status=$?
57881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57882 (exit $ac_status); }; }; then
57883 ac_header_compiler=yes
57884 else
57885 echo "$as_me: failed program was:" >&5
57886 sed 's/^/| /' conftest.$ac_ext >&5
57887
57888 ac_header_compiler=no
57889 fi
57890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57892 echo "${ECHO_T}$ac_header_compiler" >&6
57893
57894 # Is the header present?
57895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
57896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
57897 cat >conftest.$ac_ext <<_ACEOF
57898 /* confdefs.h. */
57899 _ACEOF
57900 cat confdefs.h >>conftest.$ac_ext
57901 cat >>conftest.$ac_ext <<_ACEOF
57902 /* end confdefs.h. */
57903 #include <$ac_header>
57904 _ACEOF
57905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57907 ac_status=$?
57908 grep -v '^ *+' conftest.er1 >conftest.err
57909 rm -f conftest.er1
57910 cat conftest.err >&5
57911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
57912 (exit $ac_status); } >/dev/null; then
57913 if test -s conftest.err; then
57914 ac_cpp_err=$ac_c_preproc_warn_flag
57915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57916 else
57917 ac_cpp_err=
57918 fi
57919 else
57920 ac_cpp_err=yes
57921 fi
57922 if test -z "$ac_cpp_err"; then
57923 ac_header_preproc=yes
57924 else
57925 echo "$as_me: failed program was:" >&5
57926 sed 's/^/| /' conftest.$ac_ext >&5
57927
57928 ac_header_preproc=no
57929 fi
57930 rm -f conftest.err conftest.$ac_ext
57931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57932 echo "${ECHO_T}$ac_header_preproc" >&6
57933
57934 # So? What about this header?
57935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57936 yes:no: )
57937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57941 ac_header_preproc=yes
57942 ;;
57943 no:yes:* )
57944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
57947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
57948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
57951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
57952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57956 (
57957 cat <<\_ASBOX
57958 ## ----------------------------------------- ##
57959 ## Report this to the package-unused lists. ##
57960 ## ----------------------------------------- ##
57961 _ASBOX
57962 ) |
57963 sed "s/^/$as_me: WARNING: /" >&2
57964 ;;
57965 esac
57966 echo "$as_me:$LINENO: checking for $ac_header" >&5
57967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57969 echo $ECHO_N "(cached) $ECHO_C" >&6
57970 else
57971 eval "$as_ac_Header=\$ac_header_preproc"
57972 fi
57973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57975
57976 fi
57977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57978 cat >>confdefs.h <<_ACEOF
57979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57980 _ACEOF
57981
57982 fi
57983
57984 done
57985
57986 SECTION_FLAGS='-ffunction-sections -fdata-sections'
57987
57988
57989 # If we're not using GNU ld, then there's no point in even trying these
57990 # tests. Check for that first. We should have already tested for gld
57991 # by now (in libtool), but require it now just to be safe...
57992 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
57993 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
57994
57995
57996
57997 # The name set by libtool depends on the version of libtool. Shame on us
57998 # for depending on an impl detail, but c'est la vie. Older versions used
57999 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
58000 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
58001 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
58002 # set (hence we're using an older libtool), then set it.
58003 if test x${with_gnu_ld+set} != xset; then
58004 if test x${ac_cv_prog_gnu_ld+set} != xset; then
58005 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
58006 with_gnu_ld=no
58007 else
58008 with_gnu_ld=$ac_cv_prog_gnu_ld
58009 fi
58010 fi
58011
58012 # Start by getting the version number. I think the libtool test already
58013 # does some of this, but throws away the result.
58014
58015 ldver=`$LD --version 2>/dev/null | head -1 | \
58016 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
58017
58018 glibcxx_gnu_ld_version=`echo $ldver | \
58019 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
58020
58021 # Set --gc-sections.
58022 if test "$with_gnu_ld" = "notbroken"; then
58023 # GNU ld it is! Joy and bunny rabbits!
58024
58025 # All these tests are for C++; save the language and the compiler flags.
58026 # Need to do this so that g++ won't try to link in libstdc++
58027 ac_test_CFLAGS="${CFLAGS+set}"
58028 ac_save_CFLAGS="$CFLAGS"
58029 CFLAGS='-x c++ -Wl,--gc-sections'
58030
58031 # Check for -Wl,--gc-sections
58032 # XXX This test is broken at the moment, as symbols required for linking
58033 # are now in libsupc++ (not built yet). In addition, this test has
58034 # cored on solaris in the past. In addition, --gc-sections doesn't
58035 # really work at the moment (keeps on discarding used sections, first
58036 # .eh_frame and now some of the glibc sections for iconv).
58037 # Bzzzzt. Thanks for playing, maybe next time.
58038 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
58039 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
58040 if test "$cross_compiling" = yes; then
58041 ac_sectionLDflags=yes
58042 else
58043 cat >conftest.$ac_ext <<_ACEOF
58044 /* confdefs.h. */
58045 _ACEOF
58046 cat confdefs.h >>conftest.$ac_ext
58047 cat >>conftest.$ac_ext <<_ACEOF
58048 /* end confdefs.h. */
58049
58050 int main(void)
58051 {
58052 try { throw 1; }
58053 catch (...) { };
58054 return 0;
58055 }
58056
58057 _ACEOF
58058 rm -f conftest$ac_exeext
58059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58060 (eval $ac_link) 2>&5
58061 ac_status=$?
58062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58065 (eval $ac_try) 2>&5
58066 ac_status=$?
58067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58068 (exit $ac_status); }; }; then
58069 ac_sectionLDflags=yes
58070 else
58071 echo "$as_me: program exited with status $ac_status" >&5
58072 echo "$as_me: failed program was:" >&5
58073 sed 's/^/| /' conftest.$ac_ext >&5
58074
58075 ( exit $ac_status )
58076 ac_sectionLDflags=no
58077 fi
58078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58079 fi
58080 if test "$ac_test_CFLAGS" = set; then
58081 CFLAGS="$ac_save_CFLAGS"
58082 else
58083 # this is the suspicious part
58084 CFLAGS=''
58085 fi
58086 if test "$ac_sectionLDflags" = "yes"; then
58087 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
58088 fi
58089 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
58090 echo "${ECHO_T}$ac_sectionLDflags" >&6
58091 fi
58092
58093 # Set linker optimization flags.
58094 if test x"$with_gnu_ld" = x"yes"; then
58095 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
58096 fi
58097
58098
58099
58100
58101
58102
58103 echo "$as_me:$LINENO: checking for main in -lm" >&5
58104 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
58105 if test "${ac_cv_lib_m_main+set}" = set; then
58106 echo $ECHO_N "(cached) $ECHO_C" >&6
58107 else
58108 ac_check_lib_save_LIBS=$LIBS
58109 LIBS="-lm $LIBS"
58110 if test x$gcc_no_link = xyes; then
58111 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58112 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58113 { (exit 1); exit 1; }; }
58114 fi
58115 cat >conftest.$ac_ext <<_ACEOF
58116 /* confdefs.h. */
58117 _ACEOF
58118 cat confdefs.h >>conftest.$ac_ext
58119 cat >>conftest.$ac_ext <<_ACEOF
58120 /* end confdefs.h. */
58121
58122
58123 int
58124 main ()
58125 {
58126 main ();
58127 ;
58128 return 0;
58129 }
58130 _ACEOF
58131 rm -f conftest.$ac_objext conftest$ac_exeext
58132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58133 (eval $ac_link) 2>conftest.er1
58134 ac_status=$?
58135 grep -v '^ *+' conftest.er1 >conftest.err
58136 rm -f conftest.er1
58137 cat conftest.err >&5
58138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58139 (exit $ac_status); } &&
58140 { ac_try='test -z "$ac_c_werror_flag"
58141 || test ! -s conftest.err'
58142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58143 (eval $ac_try) 2>&5
58144 ac_status=$?
58145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58146 (exit $ac_status); }; } &&
58147 { ac_try='test -s conftest$ac_exeext'
58148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58149 (eval $ac_try) 2>&5
58150 ac_status=$?
58151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58152 (exit $ac_status); }; }; then
58153 ac_cv_lib_m_main=yes
58154 else
58155 echo "$as_me: failed program was:" >&5
58156 sed 's/^/| /' conftest.$ac_ext >&5
58157
58158 ac_cv_lib_m_main=no
58159 fi
58160 rm -f conftest.err conftest.$ac_objext \
58161 conftest$ac_exeext conftest.$ac_ext
58162 LIBS=$ac_check_lib_save_LIBS
58163 fi
58164 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
58165 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
58166 if test $ac_cv_lib_m_main = yes; then
58167 cat >>confdefs.h <<_ACEOF
58168 #define HAVE_LIBM 1
58169 _ACEOF
58170
58171 LIBS="-lm $LIBS"
58172
58173 fi
58174
58175
58176 for ac_func in copysignf
58177 do
58178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58179 echo "$as_me:$LINENO: checking for $ac_func" >&5
58180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58181 if eval "test \"\${$as_ac_var+set}\" = set"; then
58182 echo $ECHO_N "(cached) $ECHO_C" >&6
58183 else
58184 if test x$gcc_no_link = xyes; then
58185 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58186 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58187 { (exit 1); exit 1; }; }
58188 fi
58189 cat >conftest.$ac_ext <<_ACEOF
58190 /* confdefs.h. */
58191 _ACEOF
58192 cat confdefs.h >>conftest.$ac_ext
58193 cat >>conftest.$ac_ext <<_ACEOF
58194 /* end confdefs.h. */
58195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58197 #define $ac_func innocuous_$ac_func
58198
58199 /* System header to define __stub macros and hopefully few prototypes,
58200 which can conflict with char $ac_func (); below.
58201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58202 <limits.h> exists even on freestanding compilers. */
58203
58204 #ifdef __STDC__
58205 # include <limits.h>
58206 #else
58207 # include <assert.h>
58208 #endif
58209
58210 #undef $ac_func
58211
58212 /* Override any gcc2 internal prototype to avoid an error. */
58213 #ifdef __cplusplus
58214 extern "C"
58215 {
58216 #endif
58217 /* We use char because int might match the return type of a gcc2
58218 builtin and then its argument prototype would still apply. */
58219 char $ac_func ();
58220 /* The GNU C library defines this for functions which it implements
58221 to always fail with ENOSYS. Some functions are actually named
58222 something starting with __ and the normal name is an alias. */
58223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58224 choke me
58225 #else
58226 char (*f) () = $ac_func;
58227 #endif
58228 #ifdef __cplusplus
58229 }
58230 #endif
58231
58232 int
58233 main ()
58234 {
58235 return f != $ac_func;
58236 ;
58237 return 0;
58238 }
58239 _ACEOF
58240 rm -f conftest.$ac_objext conftest$ac_exeext
58241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58242 (eval $ac_link) 2>conftest.er1
58243 ac_status=$?
58244 grep -v '^ *+' conftest.er1 >conftest.err
58245 rm -f conftest.er1
58246 cat conftest.err >&5
58247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58248 (exit $ac_status); } &&
58249 { ac_try='test -z "$ac_c_werror_flag"
58250 || test ! -s conftest.err'
58251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58252 (eval $ac_try) 2>&5
58253 ac_status=$?
58254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58255 (exit $ac_status); }; } &&
58256 { ac_try='test -s conftest$ac_exeext'
58257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58258 (eval $ac_try) 2>&5
58259 ac_status=$?
58260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58261 (exit $ac_status); }; }; then
58262 eval "$as_ac_var=yes"
58263 else
58264 echo "$as_me: failed program was:" >&5
58265 sed 's/^/| /' conftest.$ac_ext >&5
58266
58267 eval "$as_ac_var=no"
58268 fi
58269 rm -f conftest.err conftest.$ac_objext \
58270 conftest$ac_exeext conftest.$ac_ext
58271 fi
58272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58274 if test `eval echo '${'$as_ac_var'}'` = yes; then
58275 cat >>confdefs.h <<_ACEOF
58276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58277 _ACEOF
58278
58279 else
58280 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
58281 fi
58282 done
58283
58284
58285
58286 for ac_func in __signbit
58287 do
58288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58289 echo "$as_me:$LINENO: checking for $ac_func" >&5
58290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58291 if eval "test \"\${$as_ac_var+set}\" = set"; then
58292 echo $ECHO_N "(cached) $ECHO_C" >&6
58293 else
58294 if test x$gcc_no_link = xyes; then
58295 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58296 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58297 { (exit 1); exit 1; }; }
58298 fi
58299 cat >conftest.$ac_ext <<_ACEOF
58300 /* confdefs.h. */
58301 _ACEOF
58302 cat confdefs.h >>conftest.$ac_ext
58303 cat >>conftest.$ac_ext <<_ACEOF
58304 /* end confdefs.h. */
58305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58307 #define $ac_func innocuous_$ac_func
58308
58309 /* System header to define __stub macros and hopefully few prototypes,
58310 which can conflict with char $ac_func (); below.
58311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58312 <limits.h> exists even on freestanding compilers. */
58313
58314 #ifdef __STDC__
58315 # include <limits.h>
58316 #else
58317 # include <assert.h>
58318 #endif
58319
58320 #undef $ac_func
58321
58322 /* Override any gcc2 internal prototype to avoid an error. */
58323 #ifdef __cplusplus
58324 extern "C"
58325 {
58326 #endif
58327 /* We use char because int might match the return type of a gcc2
58328 builtin and then its argument prototype would still apply. */
58329 char $ac_func ();
58330 /* The GNU C library defines this for functions which it implements
58331 to always fail with ENOSYS. Some functions are actually named
58332 something starting with __ and the normal name is an alias. */
58333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58334 choke me
58335 #else
58336 char (*f) () = $ac_func;
58337 #endif
58338 #ifdef __cplusplus
58339 }
58340 #endif
58341
58342 int
58343 main ()
58344 {
58345 return f != $ac_func;
58346 ;
58347 return 0;
58348 }
58349 _ACEOF
58350 rm -f conftest.$ac_objext conftest$ac_exeext
58351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58352 (eval $ac_link) 2>conftest.er1
58353 ac_status=$?
58354 grep -v '^ *+' conftest.er1 >conftest.err
58355 rm -f conftest.er1
58356 cat conftest.err >&5
58357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58358 (exit $ac_status); } &&
58359 { ac_try='test -z "$ac_c_werror_flag"
58360 || test ! -s conftest.err'
58361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58362 (eval $ac_try) 2>&5
58363 ac_status=$?
58364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58365 (exit $ac_status); }; } &&
58366 { ac_try='test -s conftest$ac_exeext'
58367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58368 (eval $ac_try) 2>&5
58369 ac_status=$?
58370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58371 (exit $ac_status); }; }; then
58372 eval "$as_ac_var=yes"
58373 else
58374 echo "$as_me: failed program was:" >&5
58375 sed 's/^/| /' conftest.$ac_ext >&5
58376
58377 eval "$as_ac_var=no"
58378 fi
58379 rm -f conftest.err conftest.$ac_objext \
58380 conftest$ac_exeext conftest.$ac_ext
58381 fi
58382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58383 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58384 if test `eval echo '${'$as_ac_var'}'` = yes; then
58385 cat >>confdefs.h <<_ACEOF
58386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58387 _ACEOF
58388
58389 else
58390 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
58391 fi
58392 done
58393
58394
58395
58396 for ac_func in __signbitf
58397 do
58398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58399 echo "$as_me:$LINENO: checking for $ac_func" >&5
58400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58401 if eval "test \"\${$as_ac_var+set}\" = set"; then
58402 echo $ECHO_N "(cached) $ECHO_C" >&6
58403 else
58404 if test x$gcc_no_link = xyes; then
58405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58407 { (exit 1); exit 1; }; }
58408 fi
58409 cat >conftest.$ac_ext <<_ACEOF
58410 /* confdefs.h. */
58411 _ACEOF
58412 cat confdefs.h >>conftest.$ac_ext
58413 cat >>conftest.$ac_ext <<_ACEOF
58414 /* end confdefs.h. */
58415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58417 #define $ac_func innocuous_$ac_func
58418
58419 /* System header to define __stub macros and hopefully few prototypes,
58420 which can conflict with char $ac_func (); below.
58421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58422 <limits.h> exists even on freestanding compilers. */
58423
58424 #ifdef __STDC__
58425 # include <limits.h>
58426 #else
58427 # include <assert.h>
58428 #endif
58429
58430 #undef $ac_func
58431
58432 /* Override any gcc2 internal prototype to avoid an error. */
58433 #ifdef __cplusplus
58434 extern "C"
58435 {
58436 #endif
58437 /* We use char because int might match the return type of a gcc2
58438 builtin and then its argument prototype would still apply. */
58439 char $ac_func ();
58440 /* The GNU C library defines this for functions which it implements
58441 to always fail with ENOSYS. Some functions are actually named
58442 something starting with __ and the normal name is an alias. */
58443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58444 choke me
58445 #else
58446 char (*f) () = $ac_func;
58447 #endif
58448 #ifdef __cplusplus
58449 }
58450 #endif
58451
58452 int
58453 main ()
58454 {
58455 return f != $ac_func;
58456 ;
58457 return 0;
58458 }
58459 _ACEOF
58460 rm -f conftest.$ac_objext conftest$ac_exeext
58461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58462 (eval $ac_link) 2>conftest.er1
58463 ac_status=$?
58464 grep -v '^ *+' conftest.er1 >conftest.err
58465 rm -f conftest.er1
58466 cat conftest.err >&5
58467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58468 (exit $ac_status); } &&
58469 { ac_try='test -z "$ac_c_werror_flag"
58470 || test ! -s conftest.err'
58471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58472 (eval $ac_try) 2>&5
58473 ac_status=$?
58474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58475 (exit $ac_status); }; } &&
58476 { ac_try='test -s conftest$ac_exeext'
58477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58478 (eval $ac_try) 2>&5
58479 ac_status=$?
58480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58481 (exit $ac_status); }; }; then
58482 eval "$as_ac_var=yes"
58483 else
58484 echo "$as_me: failed program was:" >&5
58485 sed 's/^/| /' conftest.$ac_ext >&5
58486
58487 eval "$as_ac_var=no"
58488 fi
58489 rm -f conftest.err conftest.$ac_objext \
58490 conftest$ac_exeext conftest.$ac_ext
58491 fi
58492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58494 if test `eval echo '${'$as_ac_var'}'` = yes; then
58495 cat >>confdefs.h <<_ACEOF
58496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58497 _ACEOF
58498
58499 else
58500 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
58501 fi
58502 done
58503
58504
58505 if test x$ac_cv_func_copysignl = x"yes"; then
58506
58507 for ac_func in __signbitl
58508 do
58509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58510 echo "$as_me:$LINENO: checking for $ac_func" >&5
58511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58512 if eval "test \"\${$as_ac_var+set}\" = set"; then
58513 echo $ECHO_N "(cached) $ECHO_C" >&6
58514 else
58515 if test x$gcc_no_link = xyes; then
58516 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58517 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58518 { (exit 1); exit 1; }; }
58519 fi
58520 cat >conftest.$ac_ext <<_ACEOF
58521 /* confdefs.h. */
58522 _ACEOF
58523 cat confdefs.h >>conftest.$ac_ext
58524 cat >>conftest.$ac_ext <<_ACEOF
58525 /* end confdefs.h. */
58526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58527 For example, HP-UX 11i <limits.h> declares gettimeofday. */
58528 #define $ac_func innocuous_$ac_func
58529
58530 /* System header to define __stub macros and hopefully few prototypes,
58531 which can conflict with char $ac_func (); below.
58532 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58533 <limits.h> exists even on freestanding compilers. */
58534
58535 #ifdef __STDC__
58536 # include <limits.h>
58537 #else
58538 # include <assert.h>
58539 #endif
58540
58541 #undef $ac_func
58542
58543 /* Override any gcc2 internal prototype to avoid an error. */
58544 #ifdef __cplusplus
58545 extern "C"
58546 {
58547 #endif
58548 /* We use char because int might match the return type of a gcc2
58549 builtin and then its argument prototype would still apply. */
58550 char $ac_func ();
58551 /* The GNU C library defines this for functions which it implements
58552 to always fail with ENOSYS. Some functions are actually named
58553 something starting with __ and the normal name is an alias. */
58554 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58555 choke me
58556 #else
58557 char (*f) () = $ac_func;
58558 #endif
58559 #ifdef __cplusplus
58560 }
58561 #endif
58562
58563 int
58564 main ()
58565 {
58566 return f != $ac_func;
58567 ;
58568 return 0;
58569 }
58570 _ACEOF
58571 rm -f conftest.$ac_objext conftest$ac_exeext
58572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58573 (eval $ac_link) 2>conftest.er1
58574 ac_status=$?
58575 grep -v '^ *+' conftest.er1 >conftest.err
58576 rm -f conftest.er1
58577 cat conftest.err >&5
58578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58579 (exit $ac_status); } &&
58580 { ac_try='test -z "$ac_c_werror_flag"
58581 || test ! -s conftest.err'
58582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58583 (eval $ac_try) 2>&5
58584 ac_status=$?
58585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58586 (exit $ac_status); }; } &&
58587 { ac_try='test -s conftest$ac_exeext'
58588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58589 (eval $ac_try) 2>&5
58590 ac_status=$?
58591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58592 (exit $ac_status); }; }; then
58593 eval "$as_ac_var=yes"
58594 else
58595 echo "$as_me: failed program was:" >&5
58596 sed 's/^/| /' conftest.$ac_ext >&5
58597
58598 eval "$as_ac_var=no"
58599 fi
58600 rm -f conftest.err conftest.$ac_objext \
58601 conftest$ac_exeext conftest.$ac_ext
58602 fi
58603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58605 if test `eval echo '${'$as_ac_var'}'` = yes; then
58606 cat >>confdefs.h <<_ACEOF
58607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58608 _ACEOF
58609
58610 else
58611 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
58612 fi
58613 done
58614
58615 fi
58616
58617 # Used in libmath/Makefile.am.
58618 if test -n "$LIBMATHOBJS"; then
58619 need_libmath=yes
58620 fi
58621
58622
58623
58624 # Test wchar.h for mbstate_t, which is needed for char_traits and
58625 # others even if wchar_t support is not on.
58626 echo "$as_me:$LINENO: checking for mbstate_t" >&5
58627 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
58628 cat >conftest.$ac_ext <<_ACEOF
58629 /* confdefs.h. */
58630 _ACEOF
58631 cat confdefs.h >>conftest.$ac_ext
58632 cat >>conftest.$ac_ext <<_ACEOF
58633 /* end confdefs.h. */
58634 #include <wchar.h>
58635 int
58636 main ()
58637 {
58638 mbstate_t teststate;
58639 ;
58640 return 0;
58641 }
58642 _ACEOF
58643 rm -f conftest.$ac_objext
58644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58645 (eval $ac_compile) 2>conftest.er1
58646 ac_status=$?
58647 grep -v '^ *+' conftest.er1 >conftest.err
58648 rm -f conftest.er1
58649 cat conftest.err >&5
58650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58651 (exit $ac_status); } &&
58652 { ac_try='test -z "$ac_c_werror_flag"
58653 || test ! -s conftest.err'
58654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58655 (eval $ac_try) 2>&5
58656 ac_status=$?
58657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58658 (exit $ac_status); }; } &&
58659 { ac_try='test -s conftest.$ac_objext'
58660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58661 (eval $ac_try) 2>&5
58662 ac_status=$?
58663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58664 (exit $ac_status); }; }; then
58665 have_mbstate_t=yes
58666 else
58667 echo "$as_me: failed program was:" >&5
58668 sed 's/^/| /' conftest.$ac_ext >&5
58669
58670 have_mbstate_t=no
58671 fi
58672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58673 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
58674 echo "${ECHO_T}$have_mbstate_t" >&6
58675 if test x"$have_mbstate_t" = xyes; then
58676 cat >>confdefs.h <<\_ACEOF
58677 #define HAVE_MBSTATE_T 1
58678 _ACEOF
58679
58680 fi
58681
58682 # Sanity check for existence of ISO C99 headers for extended encoding.
58683
58684 for ac_header in wchar.h
58685 do
58686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58688 echo "$as_me:$LINENO: checking for $ac_header" >&5
58689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58691 echo $ECHO_N "(cached) $ECHO_C" >&6
58692 fi
58693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58695 else
58696 # Is the header compilable?
58697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58699 cat >conftest.$ac_ext <<_ACEOF
58700 /* confdefs.h. */
58701 _ACEOF
58702 cat confdefs.h >>conftest.$ac_ext
58703 cat >>conftest.$ac_ext <<_ACEOF
58704 /* end confdefs.h. */
58705 $ac_includes_default
58706 #include <$ac_header>
58707 _ACEOF
58708 rm -f conftest.$ac_objext
58709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58710 (eval $ac_compile) 2>conftest.er1
58711 ac_status=$?
58712 grep -v '^ *+' conftest.er1 >conftest.err
58713 rm -f conftest.er1
58714 cat conftest.err >&5
58715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58716 (exit $ac_status); } &&
58717 { ac_try='test -z "$ac_c_werror_flag"
58718 || test ! -s conftest.err'
58719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58720 (eval $ac_try) 2>&5
58721 ac_status=$?
58722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58723 (exit $ac_status); }; } &&
58724 { ac_try='test -s conftest.$ac_objext'
58725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58726 (eval $ac_try) 2>&5
58727 ac_status=$?
58728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58729 (exit $ac_status); }; }; then
58730 ac_header_compiler=yes
58731 else
58732 echo "$as_me: failed program was:" >&5
58733 sed 's/^/| /' conftest.$ac_ext >&5
58734
58735 ac_header_compiler=no
58736 fi
58737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58739 echo "${ECHO_T}$ac_header_compiler" >&6
58740
58741 # Is the header present?
58742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58744 cat >conftest.$ac_ext <<_ACEOF
58745 /* confdefs.h. */
58746 _ACEOF
58747 cat confdefs.h >>conftest.$ac_ext
58748 cat >>conftest.$ac_ext <<_ACEOF
58749 /* end confdefs.h. */
58750 #include <$ac_header>
58751 _ACEOF
58752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58754 ac_status=$?
58755 grep -v '^ *+' conftest.er1 >conftest.err
58756 rm -f conftest.er1
58757 cat conftest.err >&5
58758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58759 (exit $ac_status); } >/dev/null; then
58760 if test -s conftest.err; then
58761 ac_cpp_err=$ac_c_preproc_warn_flag
58762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
58763 else
58764 ac_cpp_err=
58765 fi
58766 else
58767 ac_cpp_err=yes
58768 fi
58769 if test -z "$ac_cpp_err"; then
58770 ac_header_preproc=yes
58771 else
58772 echo "$as_me: failed program was:" >&5
58773 sed 's/^/| /' conftest.$ac_ext >&5
58774
58775 ac_header_preproc=no
58776 fi
58777 rm -f conftest.err conftest.$ac_ext
58778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58779 echo "${ECHO_T}$ac_header_preproc" >&6
58780
58781 # So? What about this header?
58782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58783 yes:no: )
58784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58788 ac_header_preproc=yes
58789 ;;
58790 no:yes:* )
58791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
58798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
58799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58803 (
58804 cat <<\_ASBOX
58805 ## ----------------------------------------- ##
58806 ## Report this to the package-unused lists. ##
58807 ## ----------------------------------------- ##
58808 _ASBOX
58809 ) |
58810 sed "s/^/$as_me: WARNING: /" >&2
58811 ;;
58812 esac
58813 echo "$as_me:$LINENO: checking for $ac_header" >&5
58814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58816 echo $ECHO_N "(cached) $ECHO_C" >&6
58817 else
58818 eval "$as_ac_Header=\$ac_header_preproc"
58819 fi
58820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58822
58823 fi
58824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58825 cat >>confdefs.h <<_ACEOF
58826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58827 _ACEOF
58828 ac_has_wchar_h=yes
58829 else
58830 ac_has_wchar_h=no
58831 fi
58832
58833 done
58834
58835
58836 for ac_header in wctype.h
58837 do
58838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58840 echo "$as_me:$LINENO: checking for $ac_header" >&5
58841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58843 echo $ECHO_N "(cached) $ECHO_C" >&6
58844 fi
58845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58847 else
58848 # Is the header compilable?
58849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58851 cat >conftest.$ac_ext <<_ACEOF
58852 /* confdefs.h. */
58853 _ACEOF
58854 cat confdefs.h >>conftest.$ac_ext
58855 cat >>conftest.$ac_ext <<_ACEOF
58856 /* end confdefs.h. */
58857 $ac_includes_default
58858 #include <$ac_header>
58859 _ACEOF
58860 rm -f conftest.$ac_objext
58861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58862 (eval $ac_compile) 2>conftest.er1
58863 ac_status=$?
58864 grep -v '^ *+' conftest.er1 >conftest.err
58865 rm -f conftest.er1
58866 cat conftest.err >&5
58867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58868 (exit $ac_status); } &&
58869 { ac_try='test -z "$ac_c_werror_flag"
58870 || test ! -s conftest.err'
58871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58872 (eval $ac_try) 2>&5
58873 ac_status=$?
58874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58875 (exit $ac_status); }; } &&
58876 { ac_try='test -s conftest.$ac_objext'
58877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58878 (eval $ac_try) 2>&5
58879 ac_status=$?
58880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58881 (exit $ac_status); }; }; then
58882 ac_header_compiler=yes
58883 else
58884 echo "$as_me: failed program was:" >&5
58885 sed 's/^/| /' conftest.$ac_ext >&5
58886
58887 ac_header_compiler=no
58888 fi
58889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58891 echo "${ECHO_T}$ac_header_compiler" >&6
58892
58893 # Is the header present?
58894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58896 cat >conftest.$ac_ext <<_ACEOF
58897 /* confdefs.h. */
58898 _ACEOF
58899 cat confdefs.h >>conftest.$ac_ext
58900 cat >>conftest.$ac_ext <<_ACEOF
58901 /* end confdefs.h. */
58902 #include <$ac_header>
58903 _ACEOF
58904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58906 ac_status=$?
58907 grep -v '^ *+' conftest.er1 >conftest.err
58908 rm -f conftest.er1
58909 cat conftest.err >&5
58910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
58911 (exit $ac_status); } >/dev/null; then
58912 if test -s conftest.err; then
58913 ac_cpp_err=$ac_c_preproc_warn_flag
58914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
58915 else
58916 ac_cpp_err=
58917 fi
58918 else
58919 ac_cpp_err=yes
58920 fi
58921 if test -z "$ac_cpp_err"; then
58922 ac_header_preproc=yes
58923 else
58924 echo "$as_me: failed program was:" >&5
58925 sed 's/^/| /' conftest.$ac_ext >&5
58926
58927 ac_header_preproc=no
58928 fi
58929 rm -f conftest.err conftest.$ac_ext
58930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58931 echo "${ECHO_T}$ac_header_preproc" >&6
58932
58933 # So? What about this header?
58934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58935 yes:no: )
58936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58939 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58940 ac_header_preproc=yes
58941 ;;
58942 no:yes:* )
58943 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58944 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58945 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
58946 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
58947 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58948 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58949 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
58950 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
58951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58952 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58953 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58954 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58955 (
58956 cat <<\_ASBOX
58957 ## ----------------------------------------- ##
58958 ## Report this to the package-unused lists. ##
58959 ## ----------------------------------------- ##
58960 _ASBOX
58961 ) |
58962 sed "s/^/$as_me: WARNING: /" >&2
58963 ;;
58964 esac
58965 echo "$as_me:$LINENO: checking for $ac_header" >&5
58966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58968 echo $ECHO_N "(cached) $ECHO_C" >&6
58969 else
58970 eval "$as_ac_Header=\$ac_header_preproc"
58971 fi
58972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58974
58975 fi
58976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58977 cat >>confdefs.h <<_ACEOF
58978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58979 _ACEOF
58980 ac_has_wctype_h=yes
58981 else
58982 ac_has_wctype_h=no
58983 fi
58984
58985 done
58986
58987
58988 # Only continue checking if the ISO C99 headers exist and support is on.
58989 if test x"$ac_has_wchar_h" = xyes &&
58990 test x"$ac_has_wctype_h" = xyes &&
58991 test x"$enable_c_mbchar" != xno; then
58992
58993 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
58994 # numeric_limits can instantiate type_traits<wchar_t>
58995 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
58996 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
58997 cat >conftest.$ac_ext <<_ACEOF
58998 /* confdefs.h. */
58999 _ACEOF
59000 cat confdefs.h >>conftest.$ac_ext
59001 cat >>conftest.$ac_ext <<_ACEOF
59002 /* end confdefs.h. */
59003 #include <wchar.h>
59004 int
59005 main ()
59006 {
59007 int i = WCHAR_MIN; int j = WCHAR_MAX;
59008 ;
59009 return 0;
59010 }
59011 _ACEOF
59012 rm -f conftest.$ac_objext
59013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59014 (eval $ac_compile) 2>conftest.er1
59015 ac_status=$?
59016 grep -v '^ *+' conftest.er1 >conftest.err
59017 rm -f conftest.er1
59018 cat conftest.err >&5
59019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59020 (exit $ac_status); } &&
59021 { ac_try='test -z "$ac_c_werror_flag"
59022 || test ! -s conftest.err'
59023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59024 (eval $ac_try) 2>&5
59025 ac_status=$?
59026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59027 (exit $ac_status); }; } &&
59028 { ac_try='test -s conftest.$ac_objext'
59029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59030 (eval $ac_try) 2>&5
59031 ac_status=$?
59032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59033 (exit $ac_status); }; }; then
59034 has_wchar_minmax=yes
59035 else
59036 echo "$as_me: failed program was:" >&5
59037 sed 's/^/| /' conftest.$ac_ext >&5
59038
59039 has_wchar_minmax=no
59040 fi
59041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59042 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
59043 echo "${ECHO_T}$has_wchar_minmax" >&6
59044
59045 # Test wchar.h for WEOF, which is what we use to determine whether
59046 # to specialize for char_traits<wchar_t> or not.
59047 echo "$as_me:$LINENO: checking for WEOF" >&5
59048 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
59049 cat >conftest.$ac_ext <<_ACEOF
59050 /* confdefs.h. */
59051 _ACEOF
59052 cat confdefs.h >>conftest.$ac_ext
59053 cat >>conftest.$ac_ext <<_ACEOF
59054 /* end confdefs.h. */
59055
59056 #include <wchar.h>
59057 #include <stddef.h>
59058 int
59059 main ()
59060 {
59061 wint_t i = WEOF;
59062 ;
59063 return 0;
59064 }
59065 _ACEOF
59066 rm -f conftest.$ac_objext
59067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59068 (eval $ac_compile) 2>conftest.er1
59069 ac_status=$?
59070 grep -v '^ *+' conftest.er1 >conftest.err
59071 rm -f conftest.er1
59072 cat conftest.err >&5
59073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59074 (exit $ac_status); } &&
59075 { ac_try='test -z "$ac_c_werror_flag"
59076 || test ! -s conftest.err'
59077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59078 (eval $ac_try) 2>&5
59079 ac_status=$?
59080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59081 (exit $ac_status); }; } &&
59082 { ac_try='test -s conftest.$ac_objext'
59083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59084 (eval $ac_try) 2>&5
59085 ac_status=$?
59086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59087 (exit $ac_status); }; }; then
59088 has_weof=yes
59089 else
59090 echo "$as_me: failed program was:" >&5
59091 sed 's/^/| /' conftest.$ac_ext >&5
59092
59093 has_weof=no
59094 fi
59095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59096 echo "$as_me:$LINENO: result: $has_weof" >&5
59097 echo "${ECHO_T}$has_weof" >&6
59098
59099 # Tests for wide character functions used in char_traits<wchar_t>.
59100 ac_wfuncs=yes
59101
59102
59103
59104
59105
59106
59107 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
59108 do
59109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59110 echo "$as_me:$LINENO: checking for $ac_func" >&5
59111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59112 if eval "test \"\${$as_ac_var+set}\" = set"; then
59113 echo $ECHO_N "(cached) $ECHO_C" >&6
59114 else
59115 if test x$gcc_no_link = xyes; then
59116 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59117 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59118 { (exit 1); exit 1; }; }
59119 fi
59120 cat >conftest.$ac_ext <<_ACEOF
59121 /* confdefs.h. */
59122 _ACEOF
59123 cat confdefs.h >>conftest.$ac_ext
59124 cat >>conftest.$ac_ext <<_ACEOF
59125 /* end confdefs.h. */
59126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59128 #define $ac_func innocuous_$ac_func
59129
59130 /* System header to define __stub macros and hopefully few prototypes,
59131 which can conflict with char $ac_func (); below.
59132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59133 <limits.h> exists even on freestanding compilers. */
59134
59135 #ifdef __STDC__
59136 # include <limits.h>
59137 #else
59138 # include <assert.h>
59139 #endif
59140
59141 #undef $ac_func
59142
59143 /* Override any gcc2 internal prototype to avoid an error. */
59144 #ifdef __cplusplus
59145 extern "C"
59146 {
59147 #endif
59148 /* We use char because int might match the return type of a gcc2
59149 builtin and then its argument prototype would still apply. */
59150 char $ac_func ();
59151 /* The GNU C library defines this for functions which it implements
59152 to always fail with ENOSYS. Some functions are actually named
59153 something starting with __ and the normal name is an alias. */
59154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59155 choke me
59156 #else
59157 char (*f) () = $ac_func;
59158 #endif
59159 #ifdef __cplusplus
59160 }
59161 #endif
59162
59163 int
59164 main ()
59165 {
59166 return f != $ac_func;
59167 ;
59168 return 0;
59169 }
59170 _ACEOF
59171 rm -f conftest.$ac_objext conftest$ac_exeext
59172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59173 (eval $ac_link) 2>conftest.er1
59174 ac_status=$?
59175 grep -v '^ *+' conftest.er1 >conftest.err
59176 rm -f conftest.er1
59177 cat conftest.err >&5
59178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59179 (exit $ac_status); } &&
59180 { ac_try='test -z "$ac_c_werror_flag"
59181 || test ! -s conftest.err'
59182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59183 (eval $ac_try) 2>&5
59184 ac_status=$?
59185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59186 (exit $ac_status); }; } &&
59187 { ac_try='test -s conftest$ac_exeext'
59188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59189 (eval $ac_try) 2>&5
59190 ac_status=$?
59191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59192 (exit $ac_status); }; }; then
59193 eval "$as_ac_var=yes"
59194 else
59195 echo "$as_me: failed program was:" >&5
59196 sed 's/^/| /' conftest.$ac_ext >&5
59197
59198 eval "$as_ac_var=no"
59199 fi
59200 rm -f conftest.err conftest.$ac_objext \
59201 conftest$ac_exeext conftest.$ac_ext
59202 fi
59203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59205 if test `eval echo '${'$as_ac_var'}'` = yes; then
59206 cat >>confdefs.h <<_ACEOF
59207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59208 _ACEOF
59209
59210 else
59211 ac_wfuncs=no
59212 fi
59213 done
59214
59215
59216 # Checks for names injected into std:: by the c_std headers.
59217
59218
59219
59220
59221
59222
59223
59224
59225
59226
59227
59228
59229
59230
59231
59232
59233
59234
59235
59236
59237
59238
59239
59240
59241
59242
59243
59244
59245
59246
59247
59248
59249
59250
59251
59252
59253
59254
59255
59256
59257
59258
59259
59260
59261
59262
59263 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
59264 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
59265 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
59266 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
59267 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
59268 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
59269 do
59270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59271 echo "$as_me:$LINENO: checking for $ac_func" >&5
59272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59273 if eval "test \"\${$as_ac_var+set}\" = set"; then
59274 echo $ECHO_N "(cached) $ECHO_C" >&6
59275 else
59276 if test x$gcc_no_link = xyes; then
59277 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59278 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59279 { (exit 1); exit 1; }; }
59280 fi
59281 cat >conftest.$ac_ext <<_ACEOF
59282 /* confdefs.h. */
59283 _ACEOF
59284 cat confdefs.h >>conftest.$ac_ext
59285 cat >>conftest.$ac_ext <<_ACEOF
59286 /* end confdefs.h. */
59287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59289 #define $ac_func innocuous_$ac_func
59290
59291 /* System header to define __stub macros and hopefully few prototypes,
59292 which can conflict with char $ac_func (); below.
59293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59294 <limits.h> exists even on freestanding compilers. */
59295
59296 #ifdef __STDC__
59297 # include <limits.h>
59298 #else
59299 # include <assert.h>
59300 #endif
59301
59302 #undef $ac_func
59303
59304 /* Override any gcc2 internal prototype to avoid an error. */
59305 #ifdef __cplusplus
59306 extern "C"
59307 {
59308 #endif
59309 /* We use char because int might match the return type of a gcc2
59310 builtin and then its argument prototype would still apply. */
59311 char $ac_func ();
59312 /* The GNU C library defines this for functions which it implements
59313 to always fail with ENOSYS. Some functions are actually named
59314 something starting with __ and the normal name is an alias. */
59315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59316 choke me
59317 #else
59318 char (*f) () = $ac_func;
59319 #endif
59320 #ifdef __cplusplus
59321 }
59322 #endif
59323
59324 int
59325 main ()
59326 {
59327 return f != $ac_func;
59328 ;
59329 return 0;
59330 }
59331 _ACEOF
59332 rm -f conftest.$ac_objext conftest$ac_exeext
59333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59334 (eval $ac_link) 2>conftest.er1
59335 ac_status=$?
59336 grep -v '^ *+' conftest.er1 >conftest.err
59337 rm -f conftest.er1
59338 cat conftest.err >&5
59339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59340 (exit $ac_status); } &&
59341 { ac_try='test -z "$ac_c_werror_flag"
59342 || test ! -s conftest.err'
59343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59344 (eval $ac_try) 2>&5
59345 ac_status=$?
59346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59347 (exit $ac_status); }; } &&
59348 { ac_try='test -s conftest$ac_exeext'
59349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59350 (eval $ac_try) 2>&5
59351 ac_status=$?
59352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59353 (exit $ac_status); }; }; then
59354 eval "$as_ac_var=yes"
59355 else
59356 echo "$as_me: failed program was:" >&5
59357 sed 's/^/| /' conftest.$ac_ext >&5
59358
59359 eval "$as_ac_var=no"
59360 fi
59361 rm -f conftest.err conftest.$ac_objext \
59362 conftest$ac_exeext conftest.$ac_ext
59363 fi
59364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59366 if test `eval echo '${'$as_ac_var'}'` = yes; then
59367 cat >>confdefs.h <<_ACEOF
59368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59369 _ACEOF
59370
59371 else
59372 ac_wfuncs=no
59373 fi
59374 done
59375
59376
59377 # Checks for wide character functions that are not required
59378 # for basic wchar_t support. Don't disable support if they are missing.
59379 # Injection of these is wrapped with guard macros.
59380
59381
59382
59383
59384
59385 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
59386 do
59387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59388 echo "$as_me:$LINENO: checking for $ac_func" >&5
59389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59390 if eval "test \"\${$as_ac_var+set}\" = set"; then
59391 echo $ECHO_N "(cached) $ECHO_C" >&6
59392 else
59393 if test x$gcc_no_link = xyes; then
59394 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59395 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59396 { (exit 1); exit 1; }; }
59397 fi
59398 cat >conftest.$ac_ext <<_ACEOF
59399 /* confdefs.h. */
59400 _ACEOF
59401 cat confdefs.h >>conftest.$ac_ext
59402 cat >>conftest.$ac_ext <<_ACEOF
59403 /* end confdefs.h. */
59404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59406 #define $ac_func innocuous_$ac_func
59407
59408 /* System header to define __stub macros and hopefully few prototypes,
59409 which can conflict with char $ac_func (); below.
59410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59411 <limits.h> exists even on freestanding compilers. */
59412
59413 #ifdef __STDC__
59414 # include <limits.h>
59415 #else
59416 # include <assert.h>
59417 #endif
59418
59419 #undef $ac_func
59420
59421 /* Override any gcc2 internal prototype to avoid an error. */
59422 #ifdef __cplusplus
59423 extern "C"
59424 {
59425 #endif
59426 /* We use char because int might match the return type of a gcc2
59427 builtin and then its argument prototype would still apply. */
59428 char $ac_func ();
59429 /* The GNU C library defines this for functions which it implements
59430 to always fail with ENOSYS. Some functions are actually named
59431 something starting with __ and the normal name is an alias. */
59432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59433 choke me
59434 #else
59435 char (*f) () = $ac_func;
59436 #endif
59437 #ifdef __cplusplus
59438 }
59439 #endif
59440
59441 int
59442 main ()
59443 {
59444 return f != $ac_func;
59445 ;
59446 return 0;
59447 }
59448 _ACEOF
59449 rm -f conftest.$ac_objext conftest$ac_exeext
59450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59451 (eval $ac_link) 2>conftest.er1
59452 ac_status=$?
59453 grep -v '^ *+' conftest.er1 >conftest.err
59454 rm -f conftest.er1
59455 cat conftest.err >&5
59456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59457 (exit $ac_status); } &&
59458 { ac_try='test -z "$ac_c_werror_flag"
59459 || test ! -s conftest.err'
59460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59461 (eval $ac_try) 2>&5
59462 ac_status=$?
59463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59464 (exit $ac_status); }; } &&
59465 { ac_try='test -s conftest$ac_exeext'
59466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59467 (eval $ac_try) 2>&5
59468 ac_status=$?
59469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59470 (exit $ac_status); }; }; then
59471 eval "$as_ac_var=yes"
59472 else
59473 echo "$as_me: failed program was:" >&5
59474 sed 's/^/| /' conftest.$ac_ext >&5
59475
59476 eval "$as_ac_var=no"
59477 fi
59478 rm -f conftest.err conftest.$ac_objext \
59479 conftest$ac_exeext conftest.$ac_ext
59480 fi
59481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59483 if test `eval echo '${'$as_ac_var'}'` = yes; then
59484 cat >>confdefs.h <<_ACEOF
59485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59486 _ACEOF
59487
59488 fi
59489 done
59490
59491
59492 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
59493 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
59494 if test x"$has_weof" = xyes &&
59495 test x"$has_wchar_minmax" = xyes &&
59496 test x"$ac_wfuncs" = xyes;
59497 then
59498 ac_isoC99_wchar_t=yes
59499 else
59500 ac_isoC99_wchar_t=no
59501 fi
59502 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
59503 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
59504
59505 # Use iconv for wchar_t to char conversions. As such, check for
59506 # X/Open Portability Guide, version 2 features (XPG2).
59507 if test "${ac_cv_header_iconv_h+set}" = set; then
59508 echo "$as_me:$LINENO: checking for iconv.h" >&5
59509 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59510 if test "${ac_cv_header_iconv_h+set}" = set; then
59511 echo $ECHO_N "(cached) $ECHO_C" >&6
59512 fi
59513 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59514 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59515 else
59516 # Is the header compilable?
59517 echo "$as_me:$LINENO: checking iconv.h usability" >&5
59518 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
59519 cat >conftest.$ac_ext <<_ACEOF
59520 /* confdefs.h. */
59521 _ACEOF
59522 cat confdefs.h >>conftest.$ac_ext
59523 cat >>conftest.$ac_ext <<_ACEOF
59524 /* end confdefs.h. */
59525 $ac_includes_default
59526 #include <iconv.h>
59527 _ACEOF
59528 rm -f conftest.$ac_objext
59529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59530 (eval $ac_compile) 2>conftest.er1
59531 ac_status=$?
59532 grep -v '^ *+' conftest.er1 >conftest.err
59533 rm -f conftest.er1
59534 cat conftest.err >&5
59535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59536 (exit $ac_status); } &&
59537 { ac_try='test -z "$ac_c_werror_flag"
59538 || test ! -s conftest.err'
59539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59540 (eval $ac_try) 2>&5
59541 ac_status=$?
59542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59543 (exit $ac_status); }; } &&
59544 { ac_try='test -s conftest.$ac_objext'
59545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59546 (eval $ac_try) 2>&5
59547 ac_status=$?
59548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59549 (exit $ac_status); }; }; then
59550 ac_header_compiler=yes
59551 else
59552 echo "$as_me: failed program was:" >&5
59553 sed 's/^/| /' conftest.$ac_ext >&5
59554
59555 ac_header_compiler=no
59556 fi
59557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59558 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59559 echo "${ECHO_T}$ac_header_compiler" >&6
59560
59561 # Is the header present?
59562 echo "$as_me:$LINENO: checking iconv.h presence" >&5
59563 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
59564 cat >conftest.$ac_ext <<_ACEOF
59565 /* confdefs.h. */
59566 _ACEOF
59567 cat confdefs.h >>conftest.$ac_ext
59568 cat >>conftest.$ac_ext <<_ACEOF
59569 /* end confdefs.h. */
59570 #include <iconv.h>
59571 _ACEOF
59572 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59573 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59574 ac_status=$?
59575 grep -v '^ *+' conftest.er1 >conftest.err
59576 rm -f conftest.er1
59577 cat conftest.err >&5
59578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59579 (exit $ac_status); } >/dev/null; then
59580 if test -s conftest.err; then
59581 ac_cpp_err=$ac_c_preproc_warn_flag
59582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59583 else
59584 ac_cpp_err=
59585 fi
59586 else
59587 ac_cpp_err=yes
59588 fi
59589 if test -z "$ac_cpp_err"; then
59590 ac_header_preproc=yes
59591 else
59592 echo "$as_me: failed program was:" >&5
59593 sed 's/^/| /' conftest.$ac_ext >&5
59594
59595 ac_header_preproc=no
59596 fi
59597 rm -f conftest.err conftest.$ac_ext
59598 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59599 echo "${ECHO_T}$ac_header_preproc" >&6
59600
59601 # So? What about this header?
59602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59603 yes:no: )
59604 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
59605 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59606 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
59607 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
59608 ac_header_preproc=yes
59609 ;;
59610 no:yes:* )
59611 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
59612 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
59613 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
59614 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
59615 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
59616 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
59617 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
59618 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
59619 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
59620 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
59621 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
59622 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
59623 (
59624 cat <<\_ASBOX
59625 ## ----------------------------------------- ##
59626 ## Report this to the package-unused lists. ##
59627 ## ----------------------------------------- ##
59628 _ASBOX
59629 ) |
59630 sed "s/^/$as_me: WARNING: /" >&2
59631 ;;
59632 esac
59633 echo "$as_me:$LINENO: checking for iconv.h" >&5
59634 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59635 if test "${ac_cv_header_iconv_h+set}" = set; then
59636 echo $ECHO_N "(cached) $ECHO_C" >&6
59637 else
59638 ac_cv_header_iconv_h=$ac_header_preproc
59639 fi
59640 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59641 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59642
59643 fi
59644 if test $ac_cv_header_iconv_h = yes; then
59645 ac_has_iconv_h=yes
59646 else
59647 ac_has_iconv_h=no
59648 fi
59649
59650
59651 if test "${ac_cv_header_langinfo_h+set}" = set; then
59652 echo "$as_me:$LINENO: checking for langinfo.h" >&5
59653 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
59654 if test "${ac_cv_header_langinfo_h+set}" = set; then
59655 echo $ECHO_N "(cached) $ECHO_C" >&6
59656 fi
59657 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
59658 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
59659 else
59660 # Is the header compilable?
59661 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
59662 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
59663 cat >conftest.$ac_ext <<_ACEOF
59664 /* confdefs.h. */
59665 _ACEOF
59666 cat confdefs.h >>conftest.$ac_ext
59667 cat >>conftest.$ac_ext <<_ACEOF
59668 /* end confdefs.h. */
59669 $ac_includes_default
59670 #include <langinfo.h>
59671 _ACEOF
59672 rm -f conftest.$ac_objext
59673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59674 (eval $ac_compile) 2>conftest.er1
59675 ac_status=$?
59676 grep -v '^ *+' conftest.er1 >conftest.err
59677 rm -f conftest.er1
59678 cat conftest.err >&5
59679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59680 (exit $ac_status); } &&
59681 { ac_try='test -z "$ac_c_werror_flag"
59682 || test ! -s conftest.err'
59683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59684 (eval $ac_try) 2>&5
59685 ac_status=$?
59686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59687 (exit $ac_status); }; } &&
59688 { ac_try='test -s conftest.$ac_objext'
59689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59690 (eval $ac_try) 2>&5
59691 ac_status=$?
59692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59693 (exit $ac_status); }; }; then
59694 ac_header_compiler=yes
59695 else
59696 echo "$as_me: failed program was:" >&5
59697 sed 's/^/| /' conftest.$ac_ext >&5
59698
59699 ac_header_compiler=no
59700 fi
59701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59703 echo "${ECHO_T}$ac_header_compiler" >&6
59704
59705 # Is the header present?
59706 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
59707 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
59708 cat >conftest.$ac_ext <<_ACEOF
59709 /* confdefs.h. */
59710 _ACEOF
59711 cat confdefs.h >>conftest.$ac_ext
59712 cat >>conftest.$ac_ext <<_ACEOF
59713 /* end confdefs.h. */
59714 #include <langinfo.h>
59715 _ACEOF
59716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59718 ac_status=$?
59719 grep -v '^ *+' conftest.er1 >conftest.err
59720 rm -f conftest.er1
59721 cat conftest.err >&5
59722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59723 (exit $ac_status); } >/dev/null; then
59724 if test -s conftest.err; then
59725 ac_cpp_err=$ac_c_preproc_warn_flag
59726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59727 else
59728 ac_cpp_err=
59729 fi
59730 else
59731 ac_cpp_err=yes
59732 fi
59733 if test -z "$ac_cpp_err"; then
59734 ac_header_preproc=yes
59735 else
59736 echo "$as_me: failed program was:" >&5
59737 sed 's/^/| /' conftest.$ac_ext >&5
59738
59739 ac_header_preproc=no
59740 fi
59741 rm -f conftest.err conftest.$ac_ext
59742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59743 echo "${ECHO_T}$ac_header_preproc" >&6
59744
59745 # So? What about this header?
59746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59747 yes:no: )
59748 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
59749 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
59750 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
59751 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
59752 ac_header_preproc=yes
59753 ;;
59754 no:yes:* )
59755 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
59756 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
59757 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
59758 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
59759 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
59760 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
59761 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
59762 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
59763 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
59764 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
59765 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
59766 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
59767 (
59768 cat <<\_ASBOX
59769 ## ----------------------------------------- ##
59770 ## Report this to the package-unused lists. ##
59771 ## ----------------------------------------- ##
59772 _ASBOX
59773 ) |
59774 sed "s/^/$as_me: WARNING: /" >&2
59775 ;;
59776 esac
59777 echo "$as_me:$LINENO: checking for langinfo.h" >&5
59778 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
59779 if test "${ac_cv_header_langinfo_h+set}" = set; then
59780 echo $ECHO_N "(cached) $ECHO_C" >&6
59781 else
59782 ac_cv_header_langinfo_h=$ac_header_preproc
59783 fi
59784 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
59785 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
59786
59787 fi
59788 if test $ac_cv_header_langinfo_h = yes; then
59789 ac_has_langinfo_h=yes
59790 else
59791 ac_has_langinfo_h=no
59792 fi
59793
59794
59795
59796 # Check for existence of libiconv.a providing XPG2 wchar_t support.
59797 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
59798 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
59799 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
59800 echo $ECHO_N "(cached) $ECHO_C" >&6
59801 else
59802 ac_check_lib_save_LIBS=$LIBS
59803 LIBS="-liconv $LIBS"
59804 if test x$gcc_no_link = xyes; then
59805 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59806 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59807 { (exit 1); exit 1; }; }
59808 fi
59809 cat >conftest.$ac_ext <<_ACEOF
59810 /* confdefs.h. */
59811 _ACEOF
59812 cat confdefs.h >>conftest.$ac_ext
59813 cat >>conftest.$ac_ext <<_ACEOF
59814 /* end confdefs.h. */
59815
59816 /* Override any gcc2 internal prototype to avoid an error. */
59817 #ifdef __cplusplus
59818 extern "C"
59819 #endif
59820 /* We use char because int might match the return type of a gcc2
59821 builtin and then its argument prototype would still apply. */
59822 char iconv ();
59823 int
59824 main ()
59825 {
59826 iconv ();
59827 ;
59828 return 0;
59829 }
59830 _ACEOF
59831 rm -f conftest.$ac_objext conftest$ac_exeext
59832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59833 (eval $ac_link) 2>conftest.er1
59834 ac_status=$?
59835 grep -v '^ *+' conftest.er1 >conftest.err
59836 rm -f conftest.er1
59837 cat conftest.err >&5
59838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59839 (exit $ac_status); } &&
59840 { ac_try='test -z "$ac_c_werror_flag"
59841 || test ! -s conftest.err'
59842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59843 (eval $ac_try) 2>&5
59844 ac_status=$?
59845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59846 (exit $ac_status); }; } &&
59847 { ac_try='test -s conftest$ac_exeext'
59848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59849 (eval $ac_try) 2>&5
59850 ac_status=$?
59851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59852 (exit $ac_status); }; }; then
59853 ac_cv_lib_iconv_iconv=yes
59854 else
59855 echo "$as_me: failed program was:" >&5
59856 sed 's/^/| /' conftest.$ac_ext >&5
59857
59858 ac_cv_lib_iconv_iconv=no
59859 fi
59860 rm -f conftest.err conftest.$ac_objext \
59861 conftest$ac_exeext conftest.$ac_ext
59862 LIBS=$ac_check_lib_save_LIBS
59863 fi
59864 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
59865 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
59866 if test $ac_cv_lib_iconv_iconv = yes; then
59867 LIBICONV="-liconv"
59868 fi
59869
59870 ac_save_LIBS="$LIBS"
59871 LIBS="$LIBS $LIBICONV"
59872
59873
59874
59875
59876
59877
59878 for ac_func in iconv_open iconv_close iconv nl_langinfo
59879 do
59880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59881 echo "$as_me:$LINENO: checking for $ac_func" >&5
59882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59883 if eval "test \"\${$as_ac_var+set}\" = set"; then
59884 echo $ECHO_N "(cached) $ECHO_C" >&6
59885 else
59886 if test x$gcc_no_link = xyes; then
59887 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59888 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59889 { (exit 1); exit 1; }; }
59890 fi
59891 cat >conftest.$ac_ext <<_ACEOF
59892 /* confdefs.h. */
59893 _ACEOF
59894 cat confdefs.h >>conftest.$ac_ext
59895 cat >>conftest.$ac_ext <<_ACEOF
59896 /* end confdefs.h. */
59897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
59899 #define $ac_func innocuous_$ac_func
59900
59901 /* System header to define __stub macros and hopefully few prototypes,
59902 which can conflict with char $ac_func (); below.
59903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59904 <limits.h> exists even on freestanding compilers. */
59905
59906 #ifdef __STDC__
59907 # include <limits.h>
59908 #else
59909 # include <assert.h>
59910 #endif
59911
59912 #undef $ac_func
59913
59914 /* Override any gcc2 internal prototype to avoid an error. */
59915 #ifdef __cplusplus
59916 extern "C"
59917 {
59918 #endif
59919 /* We use char because int might match the return type of a gcc2
59920 builtin and then its argument prototype would still apply. */
59921 char $ac_func ();
59922 /* The GNU C library defines this for functions which it implements
59923 to always fail with ENOSYS. Some functions are actually named
59924 something starting with __ and the normal name is an alias. */
59925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59926 choke me
59927 #else
59928 char (*f) () = $ac_func;
59929 #endif
59930 #ifdef __cplusplus
59931 }
59932 #endif
59933
59934 int
59935 main ()
59936 {
59937 return f != $ac_func;
59938 ;
59939 return 0;
59940 }
59941 _ACEOF
59942 rm -f conftest.$ac_objext conftest$ac_exeext
59943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59944 (eval $ac_link) 2>conftest.er1
59945 ac_status=$?
59946 grep -v '^ *+' conftest.er1 >conftest.err
59947 rm -f conftest.er1
59948 cat conftest.err >&5
59949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59950 (exit $ac_status); } &&
59951 { ac_try='test -z "$ac_c_werror_flag"
59952 || test ! -s conftest.err'
59953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59954 (eval $ac_try) 2>&5
59955 ac_status=$?
59956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59957 (exit $ac_status); }; } &&
59958 { ac_try='test -s conftest$ac_exeext'
59959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59960 (eval $ac_try) 2>&5
59961 ac_status=$?
59962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
59963 (exit $ac_status); }; }; then
59964 eval "$as_ac_var=yes"
59965 else
59966 echo "$as_me: failed program was:" >&5
59967 sed 's/^/| /' conftest.$ac_ext >&5
59968
59969 eval "$as_ac_var=no"
59970 fi
59971 rm -f conftest.err conftest.$ac_objext \
59972 conftest$ac_exeext conftest.$ac_ext
59973 fi
59974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59976 if test `eval echo '${'$as_ac_var'}'` = yes; then
59977 cat >>confdefs.h <<_ACEOF
59978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59979 _ACEOF
59980 ac_XPG2funcs=yes
59981 else
59982 ac_XPG2funcs=no
59983 fi
59984 done
59985
59986
59987 LIBS="$ac_save_LIBS"
59988
59989 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
59990 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
59991 if test x"$ac_has_iconv_h" = xyes &&
59992 test x"$ac_has_langinfo_h" = xyes &&
59993 test x"$ac_XPG2funcs" = xyes;
59994 then
59995 ac_XPG2_wchar_t=yes
59996 else
59997 ac_XPG2_wchar_t=no
59998 fi
59999 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
60000 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
60001
60002 # At the moment, only enable wchar_t specializations if all the
60003 # above support is present.
60004 if test x"$ac_isoC99_wchar_t" = xyes &&
60005 test x"$ac_XPG2_wchar_t" = xyes;
60006 then
60007 cat >>confdefs.h <<\_ACEOF
60008 #define _GLIBCXX_USE_WCHAR_T 1
60009 _ACEOF
60010
60011 enable_wchar_t=yes
60012 fi
60013 fi
60014 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
60015 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
60016 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
60017 echo "${ECHO_T}$enable_wchar_t" >&6
60018
60019
60020 # For LFS.
60021 cat >>confdefs.h <<\_ACEOF
60022 #define HAVE_INT64_T 1
60023 _ACEOF
60024
60025 case "$target" in
60026 *-uclinux*)
60027 # Don't enable LFS with uClibc
60028 ;;
60029 *)
60030 cat >>confdefs.h <<\_ACEOF
60031 #define _GLIBCXX_USE_LFS 1
60032 _ACEOF
60033
60034 esac
60035
60036 # For showmanyc_helper().
60037
60038
60039 for ac_header in sys/ioctl.h sys/filio.h
60040 do
60041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60043 echo "$as_me:$LINENO: checking for $ac_header" >&5
60044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60046 echo $ECHO_N "(cached) $ECHO_C" >&6
60047 fi
60048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60050 else
60051 # Is the header compilable?
60052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60054 cat >conftest.$ac_ext <<_ACEOF
60055 /* confdefs.h. */
60056 _ACEOF
60057 cat confdefs.h >>conftest.$ac_ext
60058 cat >>conftest.$ac_ext <<_ACEOF
60059 /* end confdefs.h. */
60060 $ac_includes_default
60061 #include <$ac_header>
60062 _ACEOF
60063 rm -f conftest.$ac_objext
60064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60065 (eval $ac_compile) 2>conftest.er1
60066 ac_status=$?
60067 grep -v '^ *+' conftest.er1 >conftest.err
60068 rm -f conftest.er1
60069 cat conftest.err >&5
60070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60071 (exit $ac_status); } &&
60072 { ac_try='test -z "$ac_c_werror_flag"
60073 || test ! -s conftest.err'
60074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60075 (eval $ac_try) 2>&5
60076 ac_status=$?
60077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60078 (exit $ac_status); }; } &&
60079 { ac_try='test -s conftest.$ac_objext'
60080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60081 (eval $ac_try) 2>&5
60082 ac_status=$?
60083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60084 (exit $ac_status); }; }; then
60085 ac_header_compiler=yes
60086 else
60087 echo "$as_me: failed program was:" >&5
60088 sed 's/^/| /' conftest.$ac_ext >&5
60089
60090 ac_header_compiler=no
60091 fi
60092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60094 echo "${ECHO_T}$ac_header_compiler" >&6
60095
60096 # Is the header present?
60097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60099 cat >conftest.$ac_ext <<_ACEOF
60100 /* confdefs.h. */
60101 _ACEOF
60102 cat confdefs.h >>conftest.$ac_ext
60103 cat >>conftest.$ac_ext <<_ACEOF
60104 /* end confdefs.h. */
60105 #include <$ac_header>
60106 _ACEOF
60107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60109 ac_status=$?
60110 grep -v '^ *+' conftest.er1 >conftest.err
60111 rm -f conftest.er1
60112 cat conftest.err >&5
60113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60114 (exit $ac_status); } >/dev/null; then
60115 if test -s conftest.err; then
60116 ac_cpp_err=$ac_c_preproc_warn_flag
60117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60118 else
60119 ac_cpp_err=
60120 fi
60121 else
60122 ac_cpp_err=yes
60123 fi
60124 if test -z "$ac_cpp_err"; then
60125 ac_header_preproc=yes
60126 else
60127 echo "$as_me: failed program was:" >&5
60128 sed 's/^/| /' conftest.$ac_ext >&5
60129
60130 ac_header_preproc=no
60131 fi
60132 rm -f conftest.err conftest.$ac_ext
60133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60134 echo "${ECHO_T}$ac_header_preproc" >&6
60135
60136 # So? What about this header?
60137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60138 yes:no: )
60139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60143 ac_header_preproc=yes
60144 ;;
60145 no:yes:* )
60146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60158 (
60159 cat <<\_ASBOX
60160 ## ----------------------------------------- ##
60161 ## Report this to the package-unused lists. ##
60162 ## ----------------------------------------- ##
60163 _ASBOX
60164 ) |
60165 sed "s/^/$as_me: WARNING: /" >&2
60166 ;;
60167 esac
60168 echo "$as_me:$LINENO: checking for $ac_header" >&5
60169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60171 echo $ECHO_N "(cached) $ECHO_C" >&6
60172 else
60173 eval "$as_ac_Header=\$ac_header_preproc"
60174 fi
60175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60177
60178 fi
60179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60180 cat >>confdefs.h <<_ACEOF
60181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60182 _ACEOF
60183
60184 fi
60185
60186 done
60187
60188
60189 if test "${glibcxx_cv_POLL+set}" = set; then
60190 echo $ECHO_N "(cached) $ECHO_C" >&6
60191 else
60192
60193 if test x$gcc_no_link = xyes; then
60194 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60195 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60196 { (exit 1); exit 1; }; }
60197 fi
60198 cat >conftest.$ac_ext <<_ACEOF
60199 /* confdefs.h. */
60200 _ACEOF
60201 cat confdefs.h >>conftest.$ac_ext
60202 cat >>conftest.$ac_ext <<_ACEOF
60203 /* end confdefs.h. */
60204 #include <poll.h>
60205 int
60206 main ()
60207 {
60208 struct pollfd pfd[1];
60209 pfd[0].events = POLLIN;
60210 poll(pfd, 1, 0);
60211 ;
60212 return 0;
60213 }
60214 _ACEOF
60215 rm -f conftest.$ac_objext conftest$ac_exeext
60216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60217 (eval $ac_link) 2>conftest.er1
60218 ac_status=$?
60219 grep -v '^ *+' conftest.er1 >conftest.err
60220 rm -f conftest.er1
60221 cat conftest.err >&5
60222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60223 (exit $ac_status); } &&
60224 { ac_try='test -z "$ac_c_werror_flag"
60225 || test ! -s conftest.err'
60226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60227 (eval $ac_try) 2>&5
60228 ac_status=$?
60229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60230 (exit $ac_status); }; } &&
60231 { ac_try='test -s conftest$ac_exeext'
60232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60233 (eval $ac_try) 2>&5
60234 ac_status=$?
60235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60236 (exit $ac_status); }; }; then
60237 glibcxx_cv_POLL=yes
60238 else
60239 echo "$as_me: failed program was:" >&5
60240 sed 's/^/| /' conftest.$ac_ext >&5
60241
60242 glibcxx_cv_POLL=no
60243 fi
60244 rm -f conftest.err conftest.$ac_objext \
60245 conftest$ac_exeext conftest.$ac_ext
60246
60247 fi
60248
60249 if test $glibcxx_cv_POLL = yes; then
60250 cat >>confdefs.h <<\_ACEOF
60251 #define HAVE_POLL 1
60252 _ACEOF
60253
60254 fi
60255
60256
60257 if test "${glibcxx_cv_S_ISREG+set}" = set; then
60258 echo $ECHO_N "(cached) $ECHO_C" >&6
60259 else
60260
60261 if test x$gcc_no_link = xyes; then
60262 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60263 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60264 { (exit 1); exit 1; }; }
60265 fi
60266 cat >conftest.$ac_ext <<_ACEOF
60267 /* confdefs.h. */
60268 _ACEOF
60269 cat confdefs.h >>conftest.$ac_ext
60270 cat >>conftest.$ac_ext <<_ACEOF
60271 /* end confdefs.h. */
60272 #include <sys/stat.h>
60273 int
60274 main ()
60275 {
60276 struct stat buffer;
60277 fstat(0, &buffer);
60278 S_ISREG(buffer.st_mode);
60279 ;
60280 return 0;
60281 }
60282 _ACEOF
60283 rm -f conftest.$ac_objext conftest$ac_exeext
60284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60285 (eval $ac_link) 2>conftest.er1
60286 ac_status=$?
60287 grep -v '^ *+' conftest.er1 >conftest.err
60288 rm -f conftest.er1
60289 cat conftest.err >&5
60290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60291 (exit $ac_status); } &&
60292 { ac_try='test -z "$ac_c_werror_flag"
60293 || test ! -s conftest.err'
60294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60295 (eval $ac_try) 2>&5
60296 ac_status=$?
60297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60298 (exit $ac_status); }; } &&
60299 { ac_try='test -s conftest$ac_exeext'
60300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60301 (eval $ac_try) 2>&5
60302 ac_status=$?
60303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60304 (exit $ac_status); }; }; then
60305 glibcxx_cv_S_ISREG=yes
60306 else
60307 echo "$as_me: failed program was:" >&5
60308 sed 's/^/| /' conftest.$ac_ext >&5
60309
60310 glibcxx_cv_S_ISREG=no
60311 fi
60312 rm -f conftest.err conftest.$ac_objext \
60313 conftest$ac_exeext conftest.$ac_ext
60314
60315 fi
60316
60317 if test "${glibcxx_cv_S_IFREG+set}" = set; then
60318 echo $ECHO_N "(cached) $ECHO_C" >&6
60319 else
60320
60321 if test x$gcc_no_link = xyes; then
60322 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60323 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60324 { (exit 1); exit 1; }; }
60325 fi
60326 cat >conftest.$ac_ext <<_ACEOF
60327 /* confdefs.h. */
60328 _ACEOF
60329 cat confdefs.h >>conftest.$ac_ext
60330 cat >>conftest.$ac_ext <<_ACEOF
60331 /* end confdefs.h. */
60332 #include <sys/stat.h>
60333 int
60334 main ()
60335 {
60336 struct stat buffer;
60337 fstat(0, &buffer);
60338 S_IFREG & buffer.st_mode;
60339 ;
60340 return 0;
60341 }
60342 _ACEOF
60343 rm -f conftest.$ac_objext conftest$ac_exeext
60344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60345 (eval $ac_link) 2>conftest.er1
60346 ac_status=$?
60347 grep -v '^ *+' conftest.er1 >conftest.err
60348 rm -f conftest.er1
60349 cat conftest.err >&5
60350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60351 (exit $ac_status); } &&
60352 { ac_try='test -z "$ac_c_werror_flag"
60353 || test ! -s conftest.err'
60354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60355 (eval $ac_try) 2>&5
60356 ac_status=$?
60357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60358 (exit $ac_status); }; } &&
60359 { ac_try='test -s conftest$ac_exeext'
60360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60361 (eval $ac_try) 2>&5
60362 ac_status=$?
60363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60364 (exit $ac_status); }; }; then
60365 glibcxx_cv_S_IFREG=yes
60366 else
60367 echo "$as_me: failed program was:" >&5
60368 sed 's/^/| /' conftest.$ac_ext >&5
60369
60370 glibcxx_cv_S_IFREG=no
60371 fi
60372 rm -f conftest.err conftest.$ac_objext \
60373 conftest$ac_exeext conftest.$ac_ext
60374
60375 fi
60376
60377 if test $glibcxx_cv_S_ISREG = yes; then
60378 cat >>confdefs.h <<\_ACEOF
60379 #define HAVE_S_ISREG 1
60380 _ACEOF
60381
60382 elif test $glibcxx_cv_S_IFREG = yes; then
60383 cat >>confdefs.h <<\_ACEOF
60384 #define HAVE_S_IFREG 1
60385 _ACEOF
60386
60387 fi
60388
60389
60390 # For xsputn_2().
60391
60392 for ac_header in sys/uio.h
60393 do
60394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60396 echo "$as_me:$LINENO: checking for $ac_header" >&5
60397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60399 echo $ECHO_N "(cached) $ECHO_C" >&6
60400 fi
60401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60403 else
60404 # Is the header compilable?
60405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60407 cat >conftest.$ac_ext <<_ACEOF
60408 /* confdefs.h. */
60409 _ACEOF
60410 cat confdefs.h >>conftest.$ac_ext
60411 cat >>conftest.$ac_ext <<_ACEOF
60412 /* end confdefs.h. */
60413 $ac_includes_default
60414 #include <$ac_header>
60415 _ACEOF
60416 rm -f conftest.$ac_objext
60417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60418 (eval $ac_compile) 2>conftest.er1
60419 ac_status=$?
60420 grep -v '^ *+' conftest.er1 >conftest.err
60421 rm -f conftest.er1
60422 cat conftest.err >&5
60423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60424 (exit $ac_status); } &&
60425 { ac_try='test -z "$ac_c_werror_flag"
60426 || test ! -s conftest.err'
60427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60428 (eval $ac_try) 2>&5
60429 ac_status=$?
60430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60431 (exit $ac_status); }; } &&
60432 { ac_try='test -s conftest.$ac_objext'
60433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60434 (eval $ac_try) 2>&5
60435 ac_status=$?
60436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60437 (exit $ac_status); }; }; then
60438 ac_header_compiler=yes
60439 else
60440 echo "$as_me: failed program was:" >&5
60441 sed 's/^/| /' conftest.$ac_ext >&5
60442
60443 ac_header_compiler=no
60444 fi
60445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60447 echo "${ECHO_T}$ac_header_compiler" >&6
60448
60449 # Is the header present?
60450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60452 cat >conftest.$ac_ext <<_ACEOF
60453 /* confdefs.h. */
60454 _ACEOF
60455 cat confdefs.h >>conftest.$ac_ext
60456 cat >>conftest.$ac_ext <<_ACEOF
60457 /* end confdefs.h. */
60458 #include <$ac_header>
60459 _ACEOF
60460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60462 ac_status=$?
60463 grep -v '^ *+' conftest.er1 >conftest.err
60464 rm -f conftest.er1
60465 cat conftest.err >&5
60466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60467 (exit $ac_status); } >/dev/null; then
60468 if test -s conftest.err; then
60469 ac_cpp_err=$ac_c_preproc_warn_flag
60470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60471 else
60472 ac_cpp_err=
60473 fi
60474 else
60475 ac_cpp_err=yes
60476 fi
60477 if test -z "$ac_cpp_err"; then
60478 ac_header_preproc=yes
60479 else
60480 echo "$as_me: failed program was:" >&5
60481 sed 's/^/| /' conftest.$ac_ext >&5
60482
60483 ac_header_preproc=no
60484 fi
60485 rm -f conftest.err conftest.$ac_ext
60486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60487 echo "${ECHO_T}$ac_header_preproc" >&6
60488
60489 # So? What about this header?
60490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60491 yes:no: )
60492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60496 ac_header_preproc=yes
60497 ;;
60498 no:yes:* )
60499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60511 (
60512 cat <<\_ASBOX
60513 ## ----------------------------------------- ##
60514 ## Report this to the package-unused lists. ##
60515 ## ----------------------------------------- ##
60516 _ASBOX
60517 ) |
60518 sed "s/^/$as_me: WARNING: /" >&2
60519 ;;
60520 esac
60521 echo "$as_me:$LINENO: checking for $ac_header" >&5
60522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60524 echo $ECHO_N "(cached) $ECHO_C" >&6
60525 else
60526 eval "$as_ac_Header=\$ac_header_preproc"
60527 fi
60528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60530
60531 fi
60532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60533 cat >>confdefs.h <<_ACEOF
60534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60535 _ACEOF
60536
60537 fi
60538
60539 done
60540
60541
60542 if test "${glibcxx_cv_WRITEV+set}" = set; then
60543 echo $ECHO_N "(cached) $ECHO_C" >&6
60544 else
60545
60546 if test x$gcc_no_link = xyes; then
60547 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60548 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60549 { (exit 1); exit 1; }; }
60550 fi
60551 cat >conftest.$ac_ext <<_ACEOF
60552 /* confdefs.h. */
60553 _ACEOF
60554 cat confdefs.h >>conftest.$ac_ext
60555 cat >>conftest.$ac_ext <<_ACEOF
60556 /* end confdefs.h. */
60557 #include <sys/uio.h>
60558 int
60559 main ()
60560 {
60561 struct iovec iov[2];
60562 writev(0, iov, 0);
60563 ;
60564 return 0;
60565 }
60566 _ACEOF
60567 rm -f conftest.$ac_objext conftest$ac_exeext
60568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60569 (eval $ac_link) 2>conftest.er1
60570 ac_status=$?
60571 grep -v '^ *+' conftest.er1 >conftest.err
60572 rm -f conftest.er1
60573 cat conftest.err >&5
60574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60575 (exit $ac_status); } &&
60576 { ac_try='test -z "$ac_c_werror_flag"
60577 || test ! -s conftest.err'
60578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60579 (eval $ac_try) 2>&5
60580 ac_status=$?
60581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60582 (exit $ac_status); }; } &&
60583 { ac_try='test -s conftest$ac_exeext'
60584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60585 (eval $ac_try) 2>&5
60586 ac_status=$?
60587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60588 (exit $ac_status); }; }; then
60589 glibcxx_cv_WRITEV=yes
60590 else
60591 echo "$as_me: failed program was:" >&5
60592 sed 's/^/| /' conftest.$ac_ext >&5
60593
60594 glibcxx_cv_WRITEV=no
60595 fi
60596 rm -f conftest.err conftest.$ac_objext \
60597 conftest$ac_exeext conftest.$ac_ext
60598
60599 fi
60600
60601 if test $glibcxx_cv_WRITEV = yes; then
60602 cat >>confdefs.h <<\_ACEOF
60603 #define HAVE_WRITEV 1
60604 _ACEOF
60605
60606 fi
60607
60608
60609 cat >>confdefs.h <<\_ACEOF
60610 #define HAVE_ACOSF 1
60611 _ACEOF
60612
60613 cat >>confdefs.h <<\_ACEOF
60614 #define HAVE_ASINF 1
60615 _ACEOF
60616
60617 cat >>confdefs.h <<\_ACEOF
60618 #define HAVE_ATANF 1
60619 _ACEOF
60620
60621 cat >>confdefs.h <<\_ACEOF
60622 #define HAVE_ATAN2F 1
60623 _ACEOF
60624
60625 cat >>confdefs.h <<\_ACEOF
60626 #define HAVE_CEILF 1
60627 _ACEOF
60628
60629 cat >>confdefs.h <<\_ACEOF
60630 #define HAVE_COPYSIGN 1
60631 _ACEOF
60632
60633 cat >>confdefs.h <<\_ACEOF
60634 #define HAVE_COPYSIGNF 1
60635 _ACEOF
60636
60637 cat >>confdefs.h <<\_ACEOF
60638 #define HAVE_COSF 1
60639 _ACEOF
60640
60641 cat >>confdefs.h <<\_ACEOF
60642 #define HAVE_COSHF 1
60643 _ACEOF
60644
60645 cat >>confdefs.h <<\_ACEOF
60646 #define HAVE_EXPF 1
60647 _ACEOF
60648
60649 cat >>confdefs.h <<\_ACEOF
60650 #define HAVE_FABSF 1
60651 _ACEOF
60652
60653 cat >>confdefs.h <<\_ACEOF
60654 #define HAVE_FINITE 1
60655 _ACEOF
60656
60657 cat >>confdefs.h <<\_ACEOF
60658 #define HAVE_FINITEF 1
60659 _ACEOF
60660
60661 cat >>confdefs.h <<\_ACEOF
60662 #define HAVE_FLOORF 1
60663 _ACEOF
60664
60665 cat >>confdefs.h <<\_ACEOF
60666 #define HAVE_FMODF 1
60667 _ACEOF
60668
60669 cat >>confdefs.h <<\_ACEOF
60670 #define HAVE_FREXPF 1
60671 _ACEOF
60672
60673 cat >>confdefs.h <<\_ACEOF
60674 #define HAVE_HYPOT 1
60675 _ACEOF
60676
60677 cat >>confdefs.h <<\_ACEOF
60678 #define HAVE_HYPOTF 1
60679 _ACEOF
60680
60681 cat >>confdefs.h <<\_ACEOF
60682 #define HAVE_ISINF 1
60683 _ACEOF
60684
60685 cat >>confdefs.h <<\_ACEOF
60686 #define HAVE_ISINFF 1
60687 _ACEOF
60688
60689 cat >>confdefs.h <<\_ACEOF
60690 #define HAVE_ISNAN 1
60691 _ACEOF
60692
60693 cat >>confdefs.h <<\_ACEOF
60694 #define HAVE_ISNANF 1
60695 _ACEOF
60696
60697 cat >>confdefs.h <<\_ACEOF
60698 #define HAVE_LOGF 1
60699 _ACEOF
60700
60701 cat >>confdefs.h <<\_ACEOF
60702 #define HAVE_LOG10F 1
60703 _ACEOF
60704
60705 cat >>confdefs.h <<\_ACEOF
60706 #define HAVE_MODFF 1
60707 _ACEOF
60708
60709 cat >>confdefs.h <<\_ACEOF
60710 #define HAVE_SINF 1
60711 _ACEOF
60712
60713 cat >>confdefs.h <<\_ACEOF
60714 #define HAVE_SINHF 1
60715 _ACEOF
60716
60717 cat >>confdefs.h <<\_ACEOF
60718 #define HAVE_SINCOS 1
60719 _ACEOF
60720
60721 cat >>confdefs.h <<\_ACEOF
60722 #define HAVE_SINCOSF 1
60723 _ACEOF
60724
60725 cat >>confdefs.h <<\_ACEOF
60726 #define HAVE_SQRTF 1
60727 _ACEOF
60728
60729 cat >>confdefs.h <<\_ACEOF
60730 #define HAVE_TANF 1
60731 _ACEOF
60732
60733 cat >>confdefs.h <<\_ACEOF
60734 #define HAVE_TANHF 1
60735 _ACEOF
60736
60737 if test x"long_double_math_on_this_cpu" = x"yes"; then
60738 cat >>confdefs.h <<\_ACEOF
60739 #define HAVE_ACOSL 1
60740 _ACEOF
60741
60742 cat >>confdefs.h <<\_ACEOF
60743 #define HAVE_ASINL 1
60744 _ACEOF
60745
60746 cat >>confdefs.h <<\_ACEOF
60747 #define HAVE_ATANL 1
60748 _ACEOF
60749
60750 cat >>confdefs.h <<\_ACEOF
60751 #define HAVE_ATAN2L 1
60752 _ACEOF
60753
60754 cat >>confdefs.h <<\_ACEOF
60755 #define HAVE_CEILL 1
60756 _ACEOF
60757
60758 cat >>confdefs.h <<\_ACEOF
60759 #define HAVE_COPYSIGNL 1
60760 _ACEOF
60761
60762 cat >>confdefs.h <<\_ACEOF
60763 #define HAVE_COSL 1
60764 _ACEOF
60765
60766 cat >>confdefs.h <<\_ACEOF
60767 #define HAVE_COSHL 1
60768 _ACEOF
60769
60770 cat >>confdefs.h <<\_ACEOF
60771 #define HAVE_EXPL 1
60772 _ACEOF
60773
60774 cat >>confdefs.h <<\_ACEOF
60775 #define HAVE_FABSL 1
60776 _ACEOF
60777
60778 cat >>confdefs.h <<\_ACEOF
60779 #define HAVE_FINITEL 1
60780 _ACEOF
60781
60782 cat >>confdefs.h <<\_ACEOF
60783 #define HAVE_FLOORL 1
60784 _ACEOF
60785
60786 cat >>confdefs.h <<\_ACEOF
60787 #define HAVE_FMODL 1
60788 _ACEOF
60789
60790 cat >>confdefs.h <<\_ACEOF
60791 #define HAVE_FREXPL 1
60792 _ACEOF
60793
60794 cat >>confdefs.h <<\_ACEOF
60795 #define HAVE_HYPOTL 1
60796 _ACEOF
60797
60798 cat >>confdefs.h <<\_ACEOF
60799 #define HAVE_ISINFL 1
60800 _ACEOF
60801
60802 cat >>confdefs.h <<\_ACEOF
60803 #define HAVE_ISNANL 1
60804 _ACEOF
60805
60806 cat >>confdefs.h <<\_ACEOF
60807 #define HAVE_LOGL 1
60808 _ACEOF
60809
60810 cat >>confdefs.h <<\_ACEOF
60811 #define HAVE_LOG10L 1
60812 _ACEOF
60813
60814 cat >>confdefs.h <<\_ACEOF
60815 #define HAVE_MODFL 1
60816 _ACEOF
60817
60818 cat >>confdefs.h <<\_ACEOF
60819 #define HAVE_POWL 1
60820 _ACEOF
60821
60822 cat >>confdefs.h <<\_ACEOF
60823 #define HAVE_SINL 1
60824 _ACEOF
60825
60826 cat >>confdefs.h <<\_ACEOF
60827 #define HAVE_SINHL 1
60828 _ACEOF
60829
60830 cat >>confdefs.h <<\_ACEOF
60831 #define HAVE_SINCOSL 1
60832 _ACEOF
60833
60834 cat >>confdefs.h <<\_ACEOF
60835 #define HAVE_SQRTL 1
60836 _ACEOF
60837
60838 cat >>confdefs.h <<\_ACEOF
60839 #define HAVE_TANL 1
60840 _ACEOF
60841
60842 cat >>confdefs.h <<\_ACEOF
60843 #define HAVE_TANHL 1
60844 _ACEOF
60845
60846 fi
60847 ;;
60848 *-mingw32*)
60849
60850
60851
60852 for ac_header in sys/types.h locale.h float.h
60853 do
60854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60856 echo "$as_me:$LINENO: checking for $ac_header" >&5
60857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60859 echo $ECHO_N "(cached) $ECHO_C" >&6
60860 fi
60861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60863 else
60864 # Is the header compilable?
60865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60867 cat >conftest.$ac_ext <<_ACEOF
60868 /* confdefs.h. */
60869 _ACEOF
60870 cat confdefs.h >>conftest.$ac_ext
60871 cat >>conftest.$ac_ext <<_ACEOF
60872 /* end confdefs.h. */
60873 $ac_includes_default
60874 #include <$ac_header>
60875 _ACEOF
60876 rm -f conftest.$ac_objext
60877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60878 (eval $ac_compile) 2>conftest.er1
60879 ac_status=$?
60880 grep -v '^ *+' conftest.er1 >conftest.err
60881 rm -f conftest.er1
60882 cat conftest.err >&5
60883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60884 (exit $ac_status); } &&
60885 { ac_try='test -z "$ac_c_werror_flag"
60886 || test ! -s conftest.err'
60887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60888 (eval $ac_try) 2>&5
60889 ac_status=$?
60890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60891 (exit $ac_status); }; } &&
60892 { ac_try='test -s conftest.$ac_objext'
60893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60894 (eval $ac_try) 2>&5
60895 ac_status=$?
60896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60897 (exit $ac_status); }; }; then
60898 ac_header_compiler=yes
60899 else
60900 echo "$as_me: failed program was:" >&5
60901 sed 's/^/| /' conftest.$ac_ext >&5
60902
60903 ac_header_compiler=no
60904 fi
60905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60907 echo "${ECHO_T}$ac_header_compiler" >&6
60908
60909 # Is the header present?
60910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60912 cat >conftest.$ac_ext <<_ACEOF
60913 /* confdefs.h. */
60914 _ACEOF
60915 cat confdefs.h >>conftest.$ac_ext
60916 cat >>conftest.$ac_ext <<_ACEOF
60917 /* end confdefs.h. */
60918 #include <$ac_header>
60919 _ACEOF
60920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60922 ac_status=$?
60923 grep -v '^ *+' conftest.er1 >conftest.err
60924 rm -f conftest.er1
60925 cat conftest.err >&5
60926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
60927 (exit $ac_status); } >/dev/null; then
60928 if test -s conftest.err; then
60929 ac_cpp_err=$ac_c_preproc_warn_flag
60930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60931 else
60932 ac_cpp_err=
60933 fi
60934 else
60935 ac_cpp_err=yes
60936 fi
60937 if test -z "$ac_cpp_err"; then
60938 ac_header_preproc=yes
60939 else
60940 echo "$as_me: failed program was:" >&5
60941 sed 's/^/| /' conftest.$ac_ext >&5
60942
60943 ac_header_preproc=no
60944 fi
60945 rm -f conftest.err conftest.$ac_ext
60946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60947 echo "${ECHO_T}$ac_header_preproc" >&6
60948
60949 # So? What about this header?
60950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60951 yes:no: )
60952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60956 ac_header_preproc=yes
60957 ;;
60958 no:yes:* )
60959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
60962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
60963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
60966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
60967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60971 (
60972 cat <<\_ASBOX
60973 ## ----------------------------------------- ##
60974 ## Report this to the package-unused lists. ##
60975 ## ----------------------------------------- ##
60976 _ASBOX
60977 ) |
60978 sed "s/^/$as_me: WARNING: /" >&2
60979 ;;
60980 esac
60981 echo "$as_me:$LINENO: checking for $ac_header" >&5
60982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60984 echo $ECHO_N "(cached) $ECHO_C" >&6
60985 else
60986 eval "$as_ac_Header=\$ac_header_preproc"
60987 fi
60988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60990
60991 fi
60992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60993 cat >>confdefs.h <<_ACEOF
60994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60995 _ACEOF
60996
60997 fi
60998
60999 done
61000
61001
61002 # If we're not using GNU ld, then there's no point in even trying these
61003 # tests. Check for that first. We should have already tested for gld
61004 # by now (in libtool), but require it now just to be safe...
61005 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
61006 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
61007
61008
61009
61010 # The name set by libtool depends on the version of libtool. Shame on us
61011 # for depending on an impl detail, but c'est la vie. Older versions used
61012 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
61013 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
61014 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
61015 # set (hence we're using an older libtool), then set it.
61016 if test x${with_gnu_ld+set} != xset; then
61017 if test x${ac_cv_prog_gnu_ld+set} != xset; then
61018 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
61019 with_gnu_ld=no
61020 else
61021 with_gnu_ld=$ac_cv_prog_gnu_ld
61022 fi
61023 fi
61024
61025 # Start by getting the version number. I think the libtool test already
61026 # does some of this, but throws away the result.
61027
61028 ldver=`$LD --version 2>/dev/null | head -1 | \
61029 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
61030
61031 glibcxx_gnu_ld_version=`echo $ldver | \
61032 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
61033
61034 # Set --gc-sections.
61035 if test "$with_gnu_ld" = "notbroken"; then
61036 # GNU ld it is! Joy and bunny rabbits!
61037
61038 # All these tests are for C++; save the language and the compiler flags.
61039 # Need to do this so that g++ won't try to link in libstdc++
61040 ac_test_CFLAGS="${CFLAGS+set}"
61041 ac_save_CFLAGS="$CFLAGS"
61042 CFLAGS='-x c++ -Wl,--gc-sections'
61043
61044 # Check for -Wl,--gc-sections
61045 # XXX This test is broken at the moment, as symbols required for linking
61046 # are now in libsupc++ (not built yet). In addition, this test has
61047 # cored on solaris in the past. In addition, --gc-sections doesn't
61048 # really work at the moment (keeps on discarding used sections, first
61049 # .eh_frame and now some of the glibc sections for iconv).
61050 # Bzzzzt. Thanks for playing, maybe next time.
61051 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
61052 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
61053 if test "$cross_compiling" = yes; then
61054 ac_sectionLDflags=yes
61055 else
61056 cat >conftest.$ac_ext <<_ACEOF
61057 /* confdefs.h. */
61058 _ACEOF
61059 cat confdefs.h >>conftest.$ac_ext
61060 cat >>conftest.$ac_ext <<_ACEOF
61061 /* end confdefs.h. */
61062
61063 int main(void)
61064 {
61065 try { throw 1; }
61066 catch (...) { };
61067 return 0;
61068 }
61069
61070 _ACEOF
61071 rm -f conftest$ac_exeext
61072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61073 (eval $ac_link) 2>&5
61074 ac_status=$?
61075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61078 (eval $ac_try) 2>&5
61079 ac_status=$?
61080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61081 (exit $ac_status); }; }; then
61082 ac_sectionLDflags=yes
61083 else
61084 echo "$as_me: program exited with status $ac_status" >&5
61085 echo "$as_me: failed program was:" >&5
61086 sed 's/^/| /' conftest.$ac_ext >&5
61087
61088 ( exit $ac_status )
61089 ac_sectionLDflags=no
61090 fi
61091 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61092 fi
61093 if test "$ac_test_CFLAGS" = set; then
61094 CFLAGS="$ac_save_CFLAGS"
61095 else
61096 # this is the suspicious part
61097 CFLAGS=''
61098 fi
61099 if test "$ac_sectionLDflags" = "yes"; then
61100 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
61101 fi
61102 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
61103 echo "${ECHO_T}$ac_sectionLDflags" >&6
61104 fi
61105
61106 # Set linker optimization flags.
61107 if test x"$with_gnu_ld" = x"yes"; then
61108 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
61109 fi
61110
61111
61112
61113
61114
61115
61116 echo "$as_me:$LINENO: checking for main in -lm" >&5
61117 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
61118 if test "${ac_cv_lib_m_main+set}" = set; then
61119 echo $ECHO_N "(cached) $ECHO_C" >&6
61120 else
61121 ac_check_lib_save_LIBS=$LIBS
61122 LIBS="-lm $LIBS"
61123 if test x$gcc_no_link = xyes; then
61124 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61125 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61126 { (exit 1); exit 1; }; }
61127 fi
61128 cat >conftest.$ac_ext <<_ACEOF
61129 /* confdefs.h. */
61130 _ACEOF
61131 cat confdefs.h >>conftest.$ac_ext
61132 cat >>conftest.$ac_ext <<_ACEOF
61133 /* end confdefs.h. */
61134
61135
61136 int
61137 main ()
61138 {
61139 main ();
61140 ;
61141 return 0;
61142 }
61143 _ACEOF
61144 rm -f conftest.$ac_objext conftest$ac_exeext
61145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61146 (eval $ac_link) 2>conftest.er1
61147 ac_status=$?
61148 grep -v '^ *+' conftest.er1 >conftest.err
61149 rm -f conftest.er1
61150 cat conftest.err >&5
61151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61152 (exit $ac_status); } &&
61153 { ac_try='test -z "$ac_c_werror_flag"
61154 || test ! -s conftest.err'
61155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61156 (eval $ac_try) 2>&5
61157 ac_status=$?
61158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61159 (exit $ac_status); }; } &&
61160 { ac_try='test -s conftest$ac_exeext'
61161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61162 (eval $ac_try) 2>&5
61163 ac_status=$?
61164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61165 (exit $ac_status); }; }; then
61166 ac_cv_lib_m_main=yes
61167 else
61168 echo "$as_me: failed program was:" >&5
61169 sed 's/^/| /' conftest.$ac_ext >&5
61170
61171 ac_cv_lib_m_main=no
61172 fi
61173 rm -f conftest.err conftest.$ac_objext \
61174 conftest$ac_exeext conftest.$ac_ext
61175 LIBS=$ac_check_lib_save_LIBS
61176 fi
61177 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
61178 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
61179 if test $ac_cv_lib_m_main = yes; then
61180 cat >>confdefs.h <<_ACEOF
61181 #define HAVE_LIBM 1
61182 _ACEOF
61183
61184 LIBS="-lm $LIBS"
61185
61186 fi
61187
61188
61189 for ac_func in copysignf
61190 do
61191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61192 echo "$as_me:$LINENO: checking for $ac_func" >&5
61193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61194 if eval "test \"\${$as_ac_var+set}\" = set"; then
61195 echo $ECHO_N "(cached) $ECHO_C" >&6
61196 else
61197 if test x$gcc_no_link = xyes; then
61198 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61199 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61200 { (exit 1); exit 1; }; }
61201 fi
61202 cat >conftest.$ac_ext <<_ACEOF
61203 /* confdefs.h. */
61204 _ACEOF
61205 cat confdefs.h >>conftest.$ac_ext
61206 cat >>conftest.$ac_ext <<_ACEOF
61207 /* end confdefs.h. */
61208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61210 #define $ac_func innocuous_$ac_func
61211
61212 /* System header to define __stub macros and hopefully few prototypes,
61213 which can conflict with char $ac_func (); below.
61214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61215 <limits.h> exists even on freestanding compilers. */
61216
61217 #ifdef __STDC__
61218 # include <limits.h>
61219 #else
61220 # include <assert.h>
61221 #endif
61222
61223 #undef $ac_func
61224
61225 /* Override any gcc2 internal prototype to avoid an error. */
61226 #ifdef __cplusplus
61227 extern "C"
61228 {
61229 #endif
61230 /* We use char because int might match the return type of a gcc2
61231 builtin and then its argument prototype would still apply. */
61232 char $ac_func ();
61233 /* The GNU C library defines this for functions which it implements
61234 to always fail with ENOSYS. Some functions are actually named
61235 something starting with __ and the normal name is an alias. */
61236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61237 choke me
61238 #else
61239 char (*f) () = $ac_func;
61240 #endif
61241 #ifdef __cplusplus
61242 }
61243 #endif
61244
61245 int
61246 main ()
61247 {
61248 return f != $ac_func;
61249 ;
61250 return 0;
61251 }
61252 _ACEOF
61253 rm -f conftest.$ac_objext conftest$ac_exeext
61254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61255 (eval $ac_link) 2>conftest.er1
61256 ac_status=$?
61257 grep -v '^ *+' conftest.er1 >conftest.err
61258 rm -f conftest.er1
61259 cat conftest.err >&5
61260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61261 (exit $ac_status); } &&
61262 { ac_try='test -z "$ac_c_werror_flag"
61263 || test ! -s conftest.err'
61264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61265 (eval $ac_try) 2>&5
61266 ac_status=$?
61267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61268 (exit $ac_status); }; } &&
61269 { ac_try='test -s conftest$ac_exeext'
61270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61271 (eval $ac_try) 2>&5
61272 ac_status=$?
61273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61274 (exit $ac_status); }; }; then
61275 eval "$as_ac_var=yes"
61276 else
61277 echo "$as_me: failed program was:" >&5
61278 sed 's/^/| /' conftest.$ac_ext >&5
61279
61280 eval "$as_ac_var=no"
61281 fi
61282 rm -f conftest.err conftest.$ac_objext \
61283 conftest$ac_exeext conftest.$ac_ext
61284 fi
61285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61287 if test `eval echo '${'$as_ac_var'}'` = yes; then
61288 cat >>confdefs.h <<_ACEOF
61289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61290 _ACEOF
61291
61292 else
61293 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
61294 fi
61295 done
61296
61297
61298
61299 for ac_func in __signbit
61300 do
61301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61302 echo "$as_me:$LINENO: checking for $ac_func" >&5
61303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61304 if eval "test \"\${$as_ac_var+set}\" = set"; then
61305 echo $ECHO_N "(cached) $ECHO_C" >&6
61306 else
61307 if test x$gcc_no_link = xyes; then
61308 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61309 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61310 { (exit 1); exit 1; }; }
61311 fi
61312 cat >conftest.$ac_ext <<_ACEOF
61313 /* confdefs.h. */
61314 _ACEOF
61315 cat confdefs.h >>conftest.$ac_ext
61316 cat >>conftest.$ac_ext <<_ACEOF
61317 /* end confdefs.h. */
61318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61320 #define $ac_func innocuous_$ac_func
61321
61322 /* System header to define __stub macros and hopefully few prototypes,
61323 which can conflict with char $ac_func (); below.
61324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61325 <limits.h> exists even on freestanding compilers. */
61326
61327 #ifdef __STDC__
61328 # include <limits.h>
61329 #else
61330 # include <assert.h>
61331 #endif
61332
61333 #undef $ac_func
61334
61335 /* Override any gcc2 internal prototype to avoid an error. */
61336 #ifdef __cplusplus
61337 extern "C"
61338 {
61339 #endif
61340 /* We use char because int might match the return type of a gcc2
61341 builtin and then its argument prototype would still apply. */
61342 char $ac_func ();
61343 /* The GNU C library defines this for functions which it implements
61344 to always fail with ENOSYS. Some functions are actually named
61345 something starting with __ and the normal name is an alias. */
61346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61347 choke me
61348 #else
61349 char (*f) () = $ac_func;
61350 #endif
61351 #ifdef __cplusplus
61352 }
61353 #endif
61354
61355 int
61356 main ()
61357 {
61358 return f != $ac_func;
61359 ;
61360 return 0;
61361 }
61362 _ACEOF
61363 rm -f conftest.$ac_objext conftest$ac_exeext
61364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61365 (eval $ac_link) 2>conftest.er1
61366 ac_status=$?
61367 grep -v '^ *+' conftest.er1 >conftest.err
61368 rm -f conftest.er1
61369 cat conftest.err >&5
61370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61371 (exit $ac_status); } &&
61372 { ac_try='test -z "$ac_c_werror_flag"
61373 || test ! -s conftest.err'
61374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61375 (eval $ac_try) 2>&5
61376 ac_status=$?
61377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61378 (exit $ac_status); }; } &&
61379 { ac_try='test -s conftest$ac_exeext'
61380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61381 (eval $ac_try) 2>&5
61382 ac_status=$?
61383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61384 (exit $ac_status); }; }; then
61385 eval "$as_ac_var=yes"
61386 else
61387 echo "$as_me: failed program was:" >&5
61388 sed 's/^/| /' conftest.$ac_ext >&5
61389
61390 eval "$as_ac_var=no"
61391 fi
61392 rm -f conftest.err conftest.$ac_objext \
61393 conftest$ac_exeext conftest.$ac_ext
61394 fi
61395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61397 if test `eval echo '${'$as_ac_var'}'` = yes; then
61398 cat >>confdefs.h <<_ACEOF
61399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61400 _ACEOF
61401
61402 else
61403 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
61404 fi
61405 done
61406
61407
61408
61409 for ac_func in __signbitf
61410 do
61411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61412 echo "$as_me:$LINENO: checking for $ac_func" >&5
61413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61414 if eval "test \"\${$as_ac_var+set}\" = set"; then
61415 echo $ECHO_N "(cached) $ECHO_C" >&6
61416 else
61417 if test x$gcc_no_link = xyes; then
61418 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61420 { (exit 1); exit 1; }; }
61421 fi
61422 cat >conftest.$ac_ext <<_ACEOF
61423 /* confdefs.h. */
61424 _ACEOF
61425 cat confdefs.h >>conftest.$ac_ext
61426 cat >>conftest.$ac_ext <<_ACEOF
61427 /* end confdefs.h. */
61428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61430 #define $ac_func innocuous_$ac_func
61431
61432 /* System header to define __stub macros and hopefully few prototypes,
61433 which can conflict with char $ac_func (); below.
61434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61435 <limits.h> exists even on freestanding compilers. */
61436
61437 #ifdef __STDC__
61438 # include <limits.h>
61439 #else
61440 # include <assert.h>
61441 #endif
61442
61443 #undef $ac_func
61444
61445 /* Override any gcc2 internal prototype to avoid an error. */
61446 #ifdef __cplusplus
61447 extern "C"
61448 {
61449 #endif
61450 /* We use char because int might match the return type of a gcc2
61451 builtin and then its argument prototype would still apply. */
61452 char $ac_func ();
61453 /* The GNU C library defines this for functions which it implements
61454 to always fail with ENOSYS. Some functions are actually named
61455 something starting with __ and the normal name is an alias. */
61456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61457 choke me
61458 #else
61459 char (*f) () = $ac_func;
61460 #endif
61461 #ifdef __cplusplus
61462 }
61463 #endif
61464
61465 int
61466 main ()
61467 {
61468 return f != $ac_func;
61469 ;
61470 return 0;
61471 }
61472 _ACEOF
61473 rm -f conftest.$ac_objext conftest$ac_exeext
61474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61475 (eval $ac_link) 2>conftest.er1
61476 ac_status=$?
61477 grep -v '^ *+' conftest.er1 >conftest.err
61478 rm -f conftest.er1
61479 cat conftest.err >&5
61480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61481 (exit $ac_status); } &&
61482 { ac_try='test -z "$ac_c_werror_flag"
61483 || test ! -s conftest.err'
61484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61485 (eval $ac_try) 2>&5
61486 ac_status=$?
61487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61488 (exit $ac_status); }; } &&
61489 { ac_try='test -s conftest$ac_exeext'
61490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61491 (eval $ac_try) 2>&5
61492 ac_status=$?
61493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61494 (exit $ac_status); }; }; then
61495 eval "$as_ac_var=yes"
61496 else
61497 echo "$as_me: failed program was:" >&5
61498 sed 's/^/| /' conftest.$ac_ext >&5
61499
61500 eval "$as_ac_var=no"
61501 fi
61502 rm -f conftest.err conftest.$ac_objext \
61503 conftest$ac_exeext conftest.$ac_ext
61504 fi
61505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61507 if test `eval echo '${'$as_ac_var'}'` = yes; then
61508 cat >>confdefs.h <<_ACEOF
61509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61510 _ACEOF
61511
61512 else
61513 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
61514 fi
61515 done
61516
61517
61518 if test x$ac_cv_func_copysignl = x"yes"; then
61519
61520 for ac_func in __signbitl
61521 do
61522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61523 echo "$as_me:$LINENO: checking for $ac_func" >&5
61524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61525 if eval "test \"\${$as_ac_var+set}\" = set"; then
61526 echo $ECHO_N "(cached) $ECHO_C" >&6
61527 else
61528 if test x$gcc_no_link = xyes; then
61529 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61530 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61531 { (exit 1); exit 1; }; }
61532 fi
61533 cat >conftest.$ac_ext <<_ACEOF
61534 /* confdefs.h. */
61535 _ACEOF
61536 cat confdefs.h >>conftest.$ac_ext
61537 cat >>conftest.$ac_ext <<_ACEOF
61538 /* end confdefs.h. */
61539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
61541 #define $ac_func innocuous_$ac_func
61542
61543 /* System header to define __stub macros and hopefully few prototypes,
61544 which can conflict with char $ac_func (); below.
61545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61546 <limits.h> exists even on freestanding compilers. */
61547
61548 #ifdef __STDC__
61549 # include <limits.h>
61550 #else
61551 # include <assert.h>
61552 #endif
61553
61554 #undef $ac_func
61555
61556 /* Override any gcc2 internal prototype to avoid an error. */
61557 #ifdef __cplusplus
61558 extern "C"
61559 {
61560 #endif
61561 /* We use char because int might match the return type of a gcc2
61562 builtin and then its argument prototype would still apply. */
61563 char $ac_func ();
61564 /* The GNU C library defines this for functions which it implements
61565 to always fail with ENOSYS. Some functions are actually named
61566 something starting with __ and the normal name is an alias. */
61567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61568 choke me
61569 #else
61570 char (*f) () = $ac_func;
61571 #endif
61572 #ifdef __cplusplus
61573 }
61574 #endif
61575
61576 int
61577 main ()
61578 {
61579 return f != $ac_func;
61580 ;
61581 return 0;
61582 }
61583 _ACEOF
61584 rm -f conftest.$ac_objext conftest$ac_exeext
61585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61586 (eval $ac_link) 2>conftest.er1
61587 ac_status=$?
61588 grep -v '^ *+' conftest.er1 >conftest.err
61589 rm -f conftest.er1
61590 cat conftest.err >&5
61591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61592 (exit $ac_status); } &&
61593 { ac_try='test -z "$ac_c_werror_flag"
61594 || test ! -s conftest.err'
61595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61596 (eval $ac_try) 2>&5
61597 ac_status=$?
61598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61599 (exit $ac_status); }; } &&
61600 { ac_try='test -s conftest$ac_exeext'
61601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61602 (eval $ac_try) 2>&5
61603 ac_status=$?
61604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61605 (exit $ac_status); }; }; then
61606 eval "$as_ac_var=yes"
61607 else
61608 echo "$as_me: failed program was:" >&5
61609 sed 's/^/| /' conftest.$ac_ext >&5
61610
61611 eval "$as_ac_var=no"
61612 fi
61613 rm -f conftest.err conftest.$ac_objext \
61614 conftest$ac_exeext conftest.$ac_ext
61615 fi
61616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61618 if test `eval echo '${'$as_ac_var'}'` = yes; then
61619 cat >>confdefs.h <<_ACEOF
61620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61621 _ACEOF
61622
61623 else
61624 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
61625 fi
61626 done
61627
61628 fi
61629
61630 # Used in libmath/Makefile.am.
61631 if test -n "$LIBMATHOBJS"; then
61632 need_libmath=yes
61633 fi
61634
61635
61636
61637 # Test wchar.h for mbstate_t, which is needed for char_traits and
61638 # others even if wchar_t support is not on.
61639 echo "$as_me:$LINENO: checking for mbstate_t" >&5
61640 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
61641 cat >conftest.$ac_ext <<_ACEOF
61642 /* confdefs.h. */
61643 _ACEOF
61644 cat confdefs.h >>conftest.$ac_ext
61645 cat >>conftest.$ac_ext <<_ACEOF
61646 /* end confdefs.h. */
61647 #include <wchar.h>
61648 int
61649 main ()
61650 {
61651 mbstate_t teststate;
61652 ;
61653 return 0;
61654 }
61655 _ACEOF
61656 rm -f conftest.$ac_objext
61657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61658 (eval $ac_compile) 2>conftest.er1
61659 ac_status=$?
61660 grep -v '^ *+' conftest.er1 >conftest.err
61661 rm -f conftest.er1
61662 cat conftest.err >&5
61663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61664 (exit $ac_status); } &&
61665 { ac_try='test -z "$ac_c_werror_flag"
61666 || test ! -s conftest.err'
61667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61668 (eval $ac_try) 2>&5
61669 ac_status=$?
61670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61671 (exit $ac_status); }; } &&
61672 { ac_try='test -s conftest.$ac_objext'
61673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61674 (eval $ac_try) 2>&5
61675 ac_status=$?
61676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61677 (exit $ac_status); }; }; then
61678 have_mbstate_t=yes
61679 else
61680 echo "$as_me: failed program was:" >&5
61681 sed 's/^/| /' conftest.$ac_ext >&5
61682
61683 have_mbstate_t=no
61684 fi
61685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61686 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
61687 echo "${ECHO_T}$have_mbstate_t" >&6
61688 if test x"$have_mbstate_t" = xyes; then
61689 cat >>confdefs.h <<\_ACEOF
61690 #define HAVE_MBSTATE_T 1
61691 _ACEOF
61692
61693 fi
61694
61695 # Sanity check for existence of ISO C99 headers for extended encoding.
61696
61697 for ac_header in wchar.h
61698 do
61699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61701 echo "$as_me:$LINENO: checking for $ac_header" >&5
61702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61704 echo $ECHO_N "(cached) $ECHO_C" >&6
61705 fi
61706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61708 else
61709 # Is the header compilable?
61710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61712 cat >conftest.$ac_ext <<_ACEOF
61713 /* confdefs.h. */
61714 _ACEOF
61715 cat confdefs.h >>conftest.$ac_ext
61716 cat >>conftest.$ac_ext <<_ACEOF
61717 /* end confdefs.h. */
61718 $ac_includes_default
61719 #include <$ac_header>
61720 _ACEOF
61721 rm -f conftest.$ac_objext
61722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61723 (eval $ac_compile) 2>conftest.er1
61724 ac_status=$?
61725 grep -v '^ *+' conftest.er1 >conftest.err
61726 rm -f conftest.er1
61727 cat conftest.err >&5
61728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61729 (exit $ac_status); } &&
61730 { ac_try='test -z "$ac_c_werror_flag"
61731 || test ! -s conftest.err'
61732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61733 (eval $ac_try) 2>&5
61734 ac_status=$?
61735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61736 (exit $ac_status); }; } &&
61737 { ac_try='test -s conftest.$ac_objext'
61738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61739 (eval $ac_try) 2>&5
61740 ac_status=$?
61741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61742 (exit $ac_status); }; }; then
61743 ac_header_compiler=yes
61744 else
61745 echo "$as_me: failed program was:" >&5
61746 sed 's/^/| /' conftest.$ac_ext >&5
61747
61748 ac_header_compiler=no
61749 fi
61750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61752 echo "${ECHO_T}$ac_header_compiler" >&6
61753
61754 # Is the header present?
61755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61757 cat >conftest.$ac_ext <<_ACEOF
61758 /* confdefs.h. */
61759 _ACEOF
61760 cat confdefs.h >>conftest.$ac_ext
61761 cat >>conftest.$ac_ext <<_ACEOF
61762 /* end confdefs.h. */
61763 #include <$ac_header>
61764 _ACEOF
61765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61767 ac_status=$?
61768 grep -v '^ *+' conftest.er1 >conftest.err
61769 rm -f conftest.er1
61770 cat conftest.err >&5
61771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61772 (exit $ac_status); } >/dev/null; then
61773 if test -s conftest.err; then
61774 ac_cpp_err=$ac_c_preproc_warn_flag
61775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61776 else
61777 ac_cpp_err=
61778 fi
61779 else
61780 ac_cpp_err=yes
61781 fi
61782 if test -z "$ac_cpp_err"; then
61783 ac_header_preproc=yes
61784 else
61785 echo "$as_me: failed program was:" >&5
61786 sed 's/^/| /' conftest.$ac_ext >&5
61787
61788 ac_header_preproc=no
61789 fi
61790 rm -f conftest.err conftest.$ac_ext
61791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61792 echo "${ECHO_T}$ac_header_preproc" >&6
61793
61794 # So? What about this header?
61795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61796 yes:no: )
61797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
61800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
61801 ac_header_preproc=yes
61802 ;;
61803 no:yes:* )
61804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
61809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
61810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
61811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
61812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
61815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
61816 (
61817 cat <<\_ASBOX
61818 ## ----------------------------------------- ##
61819 ## Report this to the package-unused lists. ##
61820 ## ----------------------------------------- ##
61821 _ASBOX
61822 ) |
61823 sed "s/^/$as_me: WARNING: /" >&2
61824 ;;
61825 esac
61826 echo "$as_me:$LINENO: checking for $ac_header" >&5
61827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61829 echo $ECHO_N "(cached) $ECHO_C" >&6
61830 else
61831 eval "$as_ac_Header=\$ac_header_preproc"
61832 fi
61833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61835
61836 fi
61837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61838 cat >>confdefs.h <<_ACEOF
61839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61840 _ACEOF
61841 ac_has_wchar_h=yes
61842 else
61843 ac_has_wchar_h=no
61844 fi
61845
61846 done
61847
61848
61849 for ac_header in wctype.h
61850 do
61851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61853 echo "$as_me:$LINENO: checking for $ac_header" >&5
61854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61856 echo $ECHO_N "(cached) $ECHO_C" >&6
61857 fi
61858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61860 else
61861 # Is the header compilable?
61862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61864 cat >conftest.$ac_ext <<_ACEOF
61865 /* confdefs.h. */
61866 _ACEOF
61867 cat confdefs.h >>conftest.$ac_ext
61868 cat >>conftest.$ac_ext <<_ACEOF
61869 /* end confdefs.h. */
61870 $ac_includes_default
61871 #include <$ac_header>
61872 _ACEOF
61873 rm -f conftest.$ac_objext
61874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61875 (eval $ac_compile) 2>conftest.er1
61876 ac_status=$?
61877 grep -v '^ *+' conftest.er1 >conftest.err
61878 rm -f conftest.er1
61879 cat conftest.err >&5
61880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61881 (exit $ac_status); } &&
61882 { ac_try='test -z "$ac_c_werror_flag"
61883 || test ! -s conftest.err'
61884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61885 (eval $ac_try) 2>&5
61886 ac_status=$?
61887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61888 (exit $ac_status); }; } &&
61889 { ac_try='test -s conftest.$ac_objext'
61890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61891 (eval $ac_try) 2>&5
61892 ac_status=$?
61893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61894 (exit $ac_status); }; }; then
61895 ac_header_compiler=yes
61896 else
61897 echo "$as_me: failed program was:" >&5
61898 sed 's/^/| /' conftest.$ac_ext >&5
61899
61900 ac_header_compiler=no
61901 fi
61902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61903 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61904 echo "${ECHO_T}$ac_header_compiler" >&6
61905
61906 # Is the header present?
61907 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61909 cat >conftest.$ac_ext <<_ACEOF
61910 /* confdefs.h. */
61911 _ACEOF
61912 cat confdefs.h >>conftest.$ac_ext
61913 cat >>conftest.$ac_ext <<_ACEOF
61914 /* end confdefs.h. */
61915 #include <$ac_header>
61916 _ACEOF
61917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61919 ac_status=$?
61920 grep -v '^ *+' conftest.er1 >conftest.err
61921 rm -f conftest.er1
61922 cat conftest.err >&5
61923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
61924 (exit $ac_status); } >/dev/null; then
61925 if test -s conftest.err; then
61926 ac_cpp_err=$ac_c_preproc_warn_flag
61927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61928 else
61929 ac_cpp_err=
61930 fi
61931 else
61932 ac_cpp_err=yes
61933 fi
61934 if test -z "$ac_cpp_err"; then
61935 ac_header_preproc=yes
61936 else
61937 echo "$as_me: failed program was:" >&5
61938 sed 's/^/| /' conftest.$ac_ext >&5
61939
61940 ac_header_preproc=no
61941 fi
61942 rm -f conftest.err conftest.$ac_ext
61943 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61944 echo "${ECHO_T}$ac_header_preproc" >&6
61945
61946 # So? What about this header?
61947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61948 yes:no: )
61949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
61952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
61953 ac_header_preproc=yes
61954 ;;
61955 no:yes:* )
61956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
61959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
61960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
61961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
61962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
61963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
61964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
61967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
61968 (
61969 cat <<\_ASBOX
61970 ## ----------------------------------------- ##
61971 ## Report this to the package-unused lists. ##
61972 ## ----------------------------------------- ##
61973 _ASBOX
61974 ) |
61975 sed "s/^/$as_me: WARNING: /" >&2
61976 ;;
61977 esac
61978 echo "$as_me:$LINENO: checking for $ac_header" >&5
61979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61981 echo $ECHO_N "(cached) $ECHO_C" >&6
61982 else
61983 eval "$as_ac_Header=\$ac_header_preproc"
61984 fi
61985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61987
61988 fi
61989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61990 cat >>confdefs.h <<_ACEOF
61991 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61992 _ACEOF
61993 ac_has_wctype_h=yes
61994 else
61995 ac_has_wctype_h=no
61996 fi
61997
61998 done
61999
62000
62001 # Only continue checking if the ISO C99 headers exist and support is on.
62002 if test x"$ac_has_wchar_h" = xyes &&
62003 test x"$ac_has_wctype_h" = xyes &&
62004 test x"$enable_c_mbchar" != xno; then
62005
62006 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
62007 # numeric_limits can instantiate type_traits<wchar_t>
62008 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
62009 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
62010 cat >conftest.$ac_ext <<_ACEOF
62011 /* confdefs.h. */
62012 _ACEOF
62013 cat confdefs.h >>conftest.$ac_ext
62014 cat >>conftest.$ac_ext <<_ACEOF
62015 /* end confdefs.h. */
62016 #include <wchar.h>
62017 int
62018 main ()
62019 {
62020 int i = WCHAR_MIN; int j = WCHAR_MAX;
62021 ;
62022 return 0;
62023 }
62024 _ACEOF
62025 rm -f conftest.$ac_objext
62026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62027 (eval $ac_compile) 2>conftest.er1
62028 ac_status=$?
62029 grep -v '^ *+' conftest.er1 >conftest.err
62030 rm -f conftest.er1
62031 cat conftest.err >&5
62032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62033 (exit $ac_status); } &&
62034 { ac_try='test -z "$ac_c_werror_flag"
62035 || test ! -s conftest.err'
62036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62037 (eval $ac_try) 2>&5
62038 ac_status=$?
62039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62040 (exit $ac_status); }; } &&
62041 { ac_try='test -s conftest.$ac_objext'
62042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62043 (eval $ac_try) 2>&5
62044 ac_status=$?
62045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62046 (exit $ac_status); }; }; then
62047 has_wchar_minmax=yes
62048 else
62049 echo "$as_me: failed program was:" >&5
62050 sed 's/^/| /' conftest.$ac_ext >&5
62051
62052 has_wchar_minmax=no
62053 fi
62054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62055 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
62056 echo "${ECHO_T}$has_wchar_minmax" >&6
62057
62058 # Test wchar.h for WEOF, which is what we use to determine whether
62059 # to specialize for char_traits<wchar_t> or not.
62060 echo "$as_me:$LINENO: checking for WEOF" >&5
62061 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
62062 cat >conftest.$ac_ext <<_ACEOF
62063 /* confdefs.h. */
62064 _ACEOF
62065 cat confdefs.h >>conftest.$ac_ext
62066 cat >>conftest.$ac_ext <<_ACEOF
62067 /* end confdefs.h. */
62068
62069 #include <wchar.h>
62070 #include <stddef.h>
62071 int
62072 main ()
62073 {
62074 wint_t i = WEOF;
62075 ;
62076 return 0;
62077 }
62078 _ACEOF
62079 rm -f conftest.$ac_objext
62080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62081 (eval $ac_compile) 2>conftest.er1
62082 ac_status=$?
62083 grep -v '^ *+' conftest.er1 >conftest.err
62084 rm -f conftest.er1
62085 cat conftest.err >&5
62086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62087 (exit $ac_status); } &&
62088 { ac_try='test -z "$ac_c_werror_flag"
62089 || test ! -s conftest.err'
62090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62091 (eval $ac_try) 2>&5
62092 ac_status=$?
62093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62094 (exit $ac_status); }; } &&
62095 { ac_try='test -s conftest.$ac_objext'
62096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62097 (eval $ac_try) 2>&5
62098 ac_status=$?
62099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62100 (exit $ac_status); }; }; then
62101 has_weof=yes
62102 else
62103 echo "$as_me: failed program was:" >&5
62104 sed 's/^/| /' conftest.$ac_ext >&5
62105
62106 has_weof=no
62107 fi
62108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62109 echo "$as_me:$LINENO: result: $has_weof" >&5
62110 echo "${ECHO_T}$has_weof" >&6
62111
62112 # Tests for wide character functions used in char_traits<wchar_t>.
62113 ac_wfuncs=yes
62114
62115
62116
62117
62118
62119
62120 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
62121 do
62122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62123 echo "$as_me:$LINENO: checking for $ac_func" >&5
62124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62125 if eval "test \"\${$as_ac_var+set}\" = set"; then
62126 echo $ECHO_N "(cached) $ECHO_C" >&6
62127 else
62128 if test x$gcc_no_link = xyes; then
62129 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62130 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62131 { (exit 1); exit 1; }; }
62132 fi
62133 cat >conftest.$ac_ext <<_ACEOF
62134 /* confdefs.h. */
62135 _ACEOF
62136 cat confdefs.h >>conftest.$ac_ext
62137 cat >>conftest.$ac_ext <<_ACEOF
62138 /* end confdefs.h. */
62139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62141 #define $ac_func innocuous_$ac_func
62142
62143 /* System header to define __stub macros and hopefully few prototypes,
62144 which can conflict with char $ac_func (); below.
62145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62146 <limits.h> exists even on freestanding compilers. */
62147
62148 #ifdef __STDC__
62149 # include <limits.h>
62150 #else
62151 # include <assert.h>
62152 #endif
62153
62154 #undef $ac_func
62155
62156 /* Override any gcc2 internal prototype to avoid an error. */
62157 #ifdef __cplusplus
62158 extern "C"
62159 {
62160 #endif
62161 /* We use char because int might match the return type of a gcc2
62162 builtin and then its argument prototype would still apply. */
62163 char $ac_func ();
62164 /* The GNU C library defines this for functions which it implements
62165 to always fail with ENOSYS. Some functions are actually named
62166 something starting with __ and the normal name is an alias. */
62167 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62168 choke me
62169 #else
62170 char (*f) () = $ac_func;
62171 #endif
62172 #ifdef __cplusplus
62173 }
62174 #endif
62175
62176 int
62177 main ()
62178 {
62179 return f != $ac_func;
62180 ;
62181 return 0;
62182 }
62183 _ACEOF
62184 rm -f conftest.$ac_objext conftest$ac_exeext
62185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62186 (eval $ac_link) 2>conftest.er1
62187 ac_status=$?
62188 grep -v '^ *+' conftest.er1 >conftest.err
62189 rm -f conftest.er1
62190 cat conftest.err >&5
62191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62192 (exit $ac_status); } &&
62193 { ac_try='test -z "$ac_c_werror_flag"
62194 || test ! -s conftest.err'
62195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62196 (eval $ac_try) 2>&5
62197 ac_status=$?
62198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62199 (exit $ac_status); }; } &&
62200 { ac_try='test -s conftest$ac_exeext'
62201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62202 (eval $ac_try) 2>&5
62203 ac_status=$?
62204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62205 (exit $ac_status); }; }; then
62206 eval "$as_ac_var=yes"
62207 else
62208 echo "$as_me: failed program was:" >&5
62209 sed 's/^/| /' conftest.$ac_ext >&5
62210
62211 eval "$as_ac_var=no"
62212 fi
62213 rm -f conftest.err conftest.$ac_objext \
62214 conftest$ac_exeext conftest.$ac_ext
62215 fi
62216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62218 if test `eval echo '${'$as_ac_var'}'` = yes; then
62219 cat >>confdefs.h <<_ACEOF
62220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62221 _ACEOF
62222
62223 else
62224 ac_wfuncs=no
62225 fi
62226 done
62227
62228
62229 # Checks for names injected into std:: by the c_std headers.
62230
62231
62232
62233
62234
62235
62236
62237
62238
62239
62240
62241
62242
62243
62244
62245
62246
62247
62248
62249
62250
62251
62252
62253
62254
62255
62256
62257
62258
62259
62260
62261
62262
62263
62264
62265
62266
62267
62268
62269
62270
62271
62272
62273
62274
62275
62276 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
62277 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
62278 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
62279 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
62280 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
62281 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
62282 do
62283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62284 echo "$as_me:$LINENO: checking for $ac_func" >&5
62285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62286 if eval "test \"\${$as_ac_var+set}\" = set"; then
62287 echo $ECHO_N "(cached) $ECHO_C" >&6
62288 else
62289 if test x$gcc_no_link = xyes; then
62290 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62291 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62292 { (exit 1); exit 1; }; }
62293 fi
62294 cat >conftest.$ac_ext <<_ACEOF
62295 /* confdefs.h. */
62296 _ACEOF
62297 cat confdefs.h >>conftest.$ac_ext
62298 cat >>conftest.$ac_ext <<_ACEOF
62299 /* end confdefs.h. */
62300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62302 #define $ac_func innocuous_$ac_func
62303
62304 /* System header to define __stub macros and hopefully few prototypes,
62305 which can conflict with char $ac_func (); below.
62306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62307 <limits.h> exists even on freestanding compilers. */
62308
62309 #ifdef __STDC__
62310 # include <limits.h>
62311 #else
62312 # include <assert.h>
62313 #endif
62314
62315 #undef $ac_func
62316
62317 /* Override any gcc2 internal prototype to avoid an error. */
62318 #ifdef __cplusplus
62319 extern "C"
62320 {
62321 #endif
62322 /* We use char because int might match the return type of a gcc2
62323 builtin and then its argument prototype would still apply. */
62324 char $ac_func ();
62325 /* The GNU C library defines this for functions which it implements
62326 to always fail with ENOSYS. Some functions are actually named
62327 something starting with __ and the normal name is an alias. */
62328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62329 choke me
62330 #else
62331 char (*f) () = $ac_func;
62332 #endif
62333 #ifdef __cplusplus
62334 }
62335 #endif
62336
62337 int
62338 main ()
62339 {
62340 return f != $ac_func;
62341 ;
62342 return 0;
62343 }
62344 _ACEOF
62345 rm -f conftest.$ac_objext conftest$ac_exeext
62346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62347 (eval $ac_link) 2>conftest.er1
62348 ac_status=$?
62349 grep -v '^ *+' conftest.er1 >conftest.err
62350 rm -f conftest.er1
62351 cat conftest.err >&5
62352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62353 (exit $ac_status); } &&
62354 { ac_try='test -z "$ac_c_werror_flag"
62355 || test ! -s conftest.err'
62356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62357 (eval $ac_try) 2>&5
62358 ac_status=$?
62359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62360 (exit $ac_status); }; } &&
62361 { ac_try='test -s conftest$ac_exeext'
62362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62363 (eval $ac_try) 2>&5
62364 ac_status=$?
62365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62366 (exit $ac_status); }; }; then
62367 eval "$as_ac_var=yes"
62368 else
62369 echo "$as_me: failed program was:" >&5
62370 sed 's/^/| /' conftest.$ac_ext >&5
62371
62372 eval "$as_ac_var=no"
62373 fi
62374 rm -f conftest.err conftest.$ac_objext \
62375 conftest$ac_exeext conftest.$ac_ext
62376 fi
62377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62379 if test `eval echo '${'$as_ac_var'}'` = yes; then
62380 cat >>confdefs.h <<_ACEOF
62381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62382 _ACEOF
62383
62384 else
62385 ac_wfuncs=no
62386 fi
62387 done
62388
62389
62390 # Checks for wide character functions that are not required
62391 # for basic wchar_t support. Don't disable support if they are missing.
62392 # Injection of these is wrapped with guard macros.
62393
62394
62395
62396
62397
62398 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
62399 do
62400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62401 echo "$as_me:$LINENO: checking for $ac_func" >&5
62402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62403 if eval "test \"\${$as_ac_var+set}\" = set"; then
62404 echo $ECHO_N "(cached) $ECHO_C" >&6
62405 else
62406 if test x$gcc_no_link = xyes; then
62407 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62408 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62409 { (exit 1); exit 1; }; }
62410 fi
62411 cat >conftest.$ac_ext <<_ACEOF
62412 /* confdefs.h. */
62413 _ACEOF
62414 cat confdefs.h >>conftest.$ac_ext
62415 cat >>conftest.$ac_ext <<_ACEOF
62416 /* end confdefs.h. */
62417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62419 #define $ac_func innocuous_$ac_func
62420
62421 /* System header to define __stub macros and hopefully few prototypes,
62422 which can conflict with char $ac_func (); below.
62423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62424 <limits.h> exists even on freestanding compilers. */
62425
62426 #ifdef __STDC__
62427 # include <limits.h>
62428 #else
62429 # include <assert.h>
62430 #endif
62431
62432 #undef $ac_func
62433
62434 /* Override any gcc2 internal prototype to avoid an error. */
62435 #ifdef __cplusplus
62436 extern "C"
62437 {
62438 #endif
62439 /* We use char because int might match the return type of a gcc2
62440 builtin and then its argument prototype would still apply. */
62441 char $ac_func ();
62442 /* The GNU C library defines this for functions which it implements
62443 to always fail with ENOSYS. Some functions are actually named
62444 something starting with __ and the normal name is an alias. */
62445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62446 choke me
62447 #else
62448 char (*f) () = $ac_func;
62449 #endif
62450 #ifdef __cplusplus
62451 }
62452 #endif
62453
62454 int
62455 main ()
62456 {
62457 return f != $ac_func;
62458 ;
62459 return 0;
62460 }
62461 _ACEOF
62462 rm -f conftest.$ac_objext conftest$ac_exeext
62463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62464 (eval $ac_link) 2>conftest.er1
62465 ac_status=$?
62466 grep -v '^ *+' conftest.er1 >conftest.err
62467 rm -f conftest.er1
62468 cat conftest.err >&5
62469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62470 (exit $ac_status); } &&
62471 { ac_try='test -z "$ac_c_werror_flag"
62472 || test ! -s conftest.err'
62473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62474 (eval $ac_try) 2>&5
62475 ac_status=$?
62476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62477 (exit $ac_status); }; } &&
62478 { ac_try='test -s conftest$ac_exeext'
62479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62480 (eval $ac_try) 2>&5
62481 ac_status=$?
62482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62483 (exit $ac_status); }; }; then
62484 eval "$as_ac_var=yes"
62485 else
62486 echo "$as_me: failed program was:" >&5
62487 sed 's/^/| /' conftest.$ac_ext >&5
62488
62489 eval "$as_ac_var=no"
62490 fi
62491 rm -f conftest.err conftest.$ac_objext \
62492 conftest$ac_exeext conftest.$ac_ext
62493 fi
62494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62496 if test `eval echo '${'$as_ac_var'}'` = yes; then
62497 cat >>confdefs.h <<_ACEOF
62498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62499 _ACEOF
62500
62501 fi
62502 done
62503
62504
62505 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
62506 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
62507 if test x"$has_weof" = xyes &&
62508 test x"$has_wchar_minmax" = xyes &&
62509 test x"$ac_wfuncs" = xyes;
62510 then
62511 ac_isoC99_wchar_t=yes
62512 else
62513 ac_isoC99_wchar_t=no
62514 fi
62515 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
62516 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
62517
62518 # Use iconv for wchar_t to char conversions. As such, check for
62519 # X/Open Portability Guide, version 2 features (XPG2).
62520 if test "${ac_cv_header_iconv_h+set}" = set; then
62521 echo "$as_me:$LINENO: checking for iconv.h" >&5
62522 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62523 if test "${ac_cv_header_iconv_h+set}" = set; then
62524 echo $ECHO_N "(cached) $ECHO_C" >&6
62525 fi
62526 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62527 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62528 else
62529 # Is the header compilable?
62530 echo "$as_me:$LINENO: checking iconv.h usability" >&5
62531 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
62532 cat >conftest.$ac_ext <<_ACEOF
62533 /* confdefs.h. */
62534 _ACEOF
62535 cat confdefs.h >>conftest.$ac_ext
62536 cat >>conftest.$ac_ext <<_ACEOF
62537 /* end confdefs.h. */
62538 $ac_includes_default
62539 #include <iconv.h>
62540 _ACEOF
62541 rm -f conftest.$ac_objext
62542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62543 (eval $ac_compile) 2>conftest.er1
62544 ac_status=$?
62545 grep -v '^ *+' conftest.er1 >conftest.err
62546 rm -f conftest.er1
62547 cat conftest.err >&5
62548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62549 (exit $ac_status); } &&
62550 { ac_try='test -z "$ac_c_werror_flag"
62551 || test ! -s conftest.err'
62552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62553 (eval $ac_try) 2>&5
62554 ac_status=$?
62555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62556 (exit $ac_status); }; } &&
62557 { ac_try='test -s conftest.$ac_objext'
62558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62559 (eval $ac_try) 2>&5
62560 ac_status=$?
62561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62562 (exit $ac_status); }; }; then
62563 ac_header_compiler=yes
62564 else
62565 echo "$as_me: failed program was:" >&5
62566 sed 's/^/| /' conftest.$ac_ext >&5
62567
62568 ac_header_compiler=no
62569 fi
62570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62572 echo "${ECHO_T}$ac_header_compiler" >&6
62573
62574 # Is the header present?
62575 echo "$as_me:$LINENO: checking iconv.h presence" >&5
62576 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
62577 cat >conftest.$ac_ext <<_ACEOF
62578 /* confdefs.h. */
62579 _ACEOF
62580 cat confdefs.h >>conftest.$ac_ext
62581 cat >>conftest.$ac_ext <<_ACEOF
62582 /* end confdefs.h. */
62583 #include <iconv.h>
62584 _ACEOF
62585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62587 ac_status=$?
62588 grep -v '^ *+' conftest.er1 >conftest.err
62589 rm -f conftest.er1
62590 cat conftest.err >&5
62591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62592 (exit $ac_status); } >/dev/null; then
62593 if test -s conftest.err; then
62594 ac_cpp_err=$ac_c_preproc_warn_flag
62595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62596 else
62597 ac_cpp_err=
62598 fi
62599 else
62600 ac_cpp_err=yes
62601 fi
62602 if test -z "$ac_cpp_err"; then
62603 ac_header_preproc=yes
62604 else
62605 echo "$as_me: failed program was:" >&5
62606 sed 's/^/| /' conftest.$ac_ext >&5
62607
62608 ac_header_preproc=no
62609 fi
62610 rm -f conftest.err conftest.$ac_ext
62611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62612 echo "${ECHO_T}$ac_header_preproc" >&6
62613
62614 # So? What about this header?
62615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62616 yes:no: )
62617 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
62618 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
62619 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
62620 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
62621 ac_header_preproc=yes
62622 ;;
62623 no:yes:* )
62624 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
62625 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
62626 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
62627 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
62628 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
62629 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
62630 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
62631 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
62632 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
62633 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
62634 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
62635 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
62636 (
62637 cat <<\_ASBOX
62638 ## ----------------------------------------- ##
62639 ## Report this to the package-unused lists. ##
62640 ## ----------------------------------------- ##
62641 _ASBOX
62642 ) |
62643 sed "s/^/$as_me: WARNING: /" >&2
62644 ;;
62645 esac
62646 echo "$as_me:$LINENO: checking for iconv.h" >&5
62647 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62648 if test "${ac_cv_header_iconv_h+set}" = set; then
62649 echo $ECHO_N "(cached) $ECHO_C" >&6
62650 else
62651 ac_cv_header_iconv_h=$ac_header_preproc
62652 fi
62653 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62654 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62655
62656 fi
62657 if test $ac_cv_header_iconv_h = yes; then
62658 ac_has_iconv_h=yes
62659 else
62660 ac_has_iconv_h=no
62661 fi
62662
62663
62664 if test "${ac_cv_header_langinfo_h+set}" = set; then
62665 echo "$as_me:$LINENO: checking for langinfo.h" >&5
62666 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
62667 if test "${ac_cv_header_langinfo_h+set}" = set; then
62668 echo $ECHO_N "(cached) $ECHO_C" >&6
62669 fi
62670 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
62671 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
62672 else
62673 # Is the header compilable?
62674 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
62675 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
62676 cat >conftest.$ac_ext <<_ACEOF
62677 /* confdefs.h. */
62678 _ACEOF
62679 cat confdefs.h >>conftest.$ac_ext
62680 cat >>conftest.$ac_ext <<_ACEOF
62681 /* end confdefs.h. */
62682 $ac_includes_default
62683 #include <langinfo.h>
62684 _ACEOF
62685 rm -f conftest.$ac_objext
62686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62687 (eval $ac_compile) 2>conftest.er1
62688 ac_status=$?
62689 grep -v '^ *+' conftest.er1 >conftest.err
62690 rm -f conftest.er1
62691 cat conftest.err >&5
62692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62693 (exit $ac_status); } &&
62694 { ac_try='test -z "$ac_c_werror_flag"
62695 || test ! -s conftest.err'
62696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62697 (eval $ac_try) 2>&5
62698 ac_status=$?
62699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62700 (exit $ac_status); }; } &&
62701 { ac_try='test -s conftest.$ac_objext'
62702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62703 (eval $ac_try) 2>&5
62704 ac_status=$?
62705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62706 (exit $ac_status); }; }; then
62707 ac_header_compiler=yes
62708 else
62709 echo "$as_me: failed program was:" >&5
62710 sed 's/^/| /' conftest.$ac_ext >&5
62711
62712 ac_header_compiler=no
62713 fi
62714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62716 echo "${ECHO_T}$ac_header_compiler" >&6
62717
62718 # Is the header present?
62719 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
62720 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
62721 cat >conftest.$ac_ext <<_ACEOF
62722 /* confdefs.h. */
62723 _ACEOF
62724 cat confdefs.h >>conftest.$ac_ext
62725 cat >>conftest.$ac_ext <<_ACEOF
62726 /* end confdefs.h. */
62727 #include <langinfo.h>
62728 _ACEOF
62729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62731 ac_status=$?
62732 grep -v '^ *+' conftest.er1 >conftest.err
62733 rm -f conftest.er1
62734 cat conftest.err >&5
62735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62736 (exit $ac_status); } >/dev/null; then
62737 if test -s conftest.err; then
62738 ac_cpp_err=$ac_c_preproc_warn_flag
62739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62740 else
62741 ac_cpp_err=
62742 fi
62743 else
62744 ac_cpp_err=yes
62745 fi
62746 if test -z "$ac_cpp_err"; then
62747 ac_header_preproc=yes
62748 else
62749 echo "$as_me: failed program was:" >&5
62750 sed 's/^/| /' conftest.$ac_ext >&5
62751
62752 ac_header_preproc=no
62753 fi
62754 rm -f conftest.err conftest.$ac_ext
62755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62756 echo "${ECHO_T}$ac_header_preproc" >&6
62757
62758 # So? What about this header?
62759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62760 yes:no: )
62761 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
62762 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
62763 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
62764 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
62765 ac_header_preproc=yes
62766 ;;
62767 no:yes:* )
62768 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
62769 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
62770 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
62771 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
62772 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
62773 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
62774 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
62775 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
62776 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
62777 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
62778 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
62779 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
62780 (
62781 cat <<\_ASBOX
62782 ## ----------------------------------------- ##
62783 ## Report this to the package-unused lists. ##
62784 ## ----------------------------------------- ##
62785 _ASBOX
62786 ) |
62787 sed "s/^/$as_me: WARNING: /" >&2
62788 ;;
62789 esac
62790 echo "$as_me:$LINENO: checking for langinfo.h" >&5
62791 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
62792 if test "${ac_cv_header_langinfo_h+set}" = set; then
62793 echo $ECHO_N "(cached) $ECHO_C" >&6
62794 else
62795 ac_cv_header_langinfo_h=$ac_header_preproc
62796 fi
62797 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
62798 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
62799
62800 fi
62801 if test $ac_cv_header_langinfo_h = yes; then
62802 ac_has_langinfo_h=yes
62803 else
62804 ac_has_langinfo_h=no
62805 fi
62806
62807
62808
62809 # Check for existence of libiconv.a providing XPG2 wchar_t support.
62810 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
62811 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
62812 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
62813 echo $ECHO_N "(cached) $ECHO_C" >&6
62814 else
62815 ac_check_lib_save_LIBS=$LIBS
62816 LIBS="-liconv $LIBS"
62817 if test x$gcc_no_link = xyes; then
62818 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62819 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62820 { (exit 1); exit 1; }; }
62821 fi
62822 cat >conftest.$ac_ext <<_ACEOF
62823 /* confdefs.h. */
62824 _ACEOF
62825 cat confdefs.h >>conftest.$ac_ext
62826 cat >>conftest.$ac_ext <<_ACEOF
62827 /* end confdefs.h. */
62828
62829 /* Override any gcc2 internal prototype to avoid an error. */
62830 #ifdef __cplusplus
62831 extern "C"
62832 #endif
62833 /* We use char because int might match the return type of a gcc2
62834 builtin and then its argument prototype would still apply. */
62835 char iconv ();
62836 int
62837 main ()
62838 {
62839 iconv ();
62840 ;
62841 return 0;
62842 }
62843 _ACEOF
62844 rm -f conftest.$ac_objext conftest$ac_exeext
62845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62846 (eval $ac_link) 2>conftest.er1
62847 ac_status=$?
62848 grep -v '^ *+' conftest.er1 >conftest.err
62849 rm -f conftest.er1
62850 cat conftest.err >&5
62851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62852 (exit $ac_status); } &&
62853 { ac_try='test -z "$ac_c_werror_flag"
62854 || test ! -s conftest.err'
62855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62856 (eval $ac_try) 2>&5
62857 ac_status=$?
62858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62859 (exit $ac_status); }; } &&
62860 { ac_try='test -s conftest$ac_exeext'
62861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62862 (eval $ac_try) 2>&5
62863 ac_status=$?
62864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62865 (exit $ac_status); }; }; then
62866 ac_cv_lib_iconv_iconv=yes
62867 else
62868 echo "$as_me: failed program was:" >&5
62869 sed 's/^/| /' conftest.$ac_ext >&5
62870
62871 ac_cv_lib_iconv_iconv=no
62872 fi
62873 rm -f conftest.err conftest.$ac_objext \
62874 conftest$ac_exeext conftest.$ac_ext
62875 LIBS=$ac_check_lib_save_LIBS
62876 fi
62877 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
62878 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
62879 if test $ac_cv_lib_iconv_iconv = yes; then
62880 LIBICONV="-liconv"
62881 fi
62882
62883 ac_save_LIBS="$LIBS"
62884 LIBS="$LIBS $LIBICONV"
62885
62886
62887
62888
62889
62890
62891 for ac_func in iconv_open iconv_close iconv nl_langinfo
62892 do
62893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62894 echo "$as_me:$LINENO: checking for $ac_func" >&5
62895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62896 if eval "test \"\${$as_ac_var+set}\" = set"; then
62897 echo $ECHO_N "(cached) $ECHO_C" >&6
62898 else
62899 if test x$gcc_no_link = xyes; then
62900 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62901 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62902 { (exit 1); exit 1; }; }
62903 fi
62904 cat >conftest.$ac_ext <<_ACEOF
62905 /* confdefs.h. */
62906 _ACEOF
62907 cat confdefs.h >>conftest.$ac_ext
62908 cat >>conftest.$ac_ext <<_ACEOF
62909 /* end confdefs.h. */
62910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
62912 #define $ac_func innocuous_$ac_func
62913
62914 /* System header to define __stub macros and hopefully few prototypes,
62915 which can conflict with char $ac_func (); below.
62916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62917 <limits.h> exists even on freestanding compilers. */
62918
62919 #ifdef __STDC__
62920 # include <limits.h>
62921 #else
62922 # include <assert.h>
62923 #endif
62924
62925 #undef $ac_func
62926
62927 /* Override any gcc2 internal prototype to avoid an error. */
62928 #ifdef __cplusplus
62929 extern "C"
62930 {
62931 #endif
62932 /* We use char because int might match the return type of a gcc2
62933 builtin and then its argument prototype would still apply. */
62934 char $ac_func ();
62935 /* The GNU C library defines this for functions which it implements
62936 to always fail with ENOSYS. Some functions are actually named
62937 something starting with __ and the normal name is an alias. */
62938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62939 choke me
62940 #else
62941 char (*f) () = $ac_func;
62942 #endif
62943 #ifdef __cplusplus
62944 }
62945 #endif
62946
62947 int
62948 main ()
62949 {
62950 return f != $ac_func;
62951 ;
62952 return 0;
62953 }
62954 _ACEOF
62955 rm -f conftest.$ac_objext conftest$ac_exeext
62956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62957 (eval $ac_link) 2>conftest.er1
62958 ac_status=$?
62959 grep -v '^ *+' conftest.er1 >conftest.err
62960 rm -f conftest.er1
62961 cat conftest.err >&5
62962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62963 (exit $ac_status); } &&
62964 { ac_try='test -z "$ac_c_werror_flag"
62965 || test ! -s conftest.err'
62966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62967 (eval $ac_try) 2>&5
62968 ac_status=$?
62969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62970 (exit $ac_status); }; } &&
62971 { ac_try='test -s conftest$ac_exeext'
62972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62973 (eval $ac_try) 2>&5
62974 ac_status=$?
62975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
62976 (exit $ac_status); }; }; then
62977 eval "$as_ac_var=yes"
62978 else
62979 echo "$as_me: failed program was:" >&5
62980 sed 's/^/| /' conftest.$ac_ext >&5
62981
62982 eval "$as_ac_var=no"
62983 fi
62984 rm -f conftest.err conftest.$ac_objext \
62985 conftest$ac_exeext conftest.$ac_ext
62986 fi
62987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62989 if test `eval echo '${'$as_ac_var'}'` = yes; then
62990 cat >>confdefs.h <<_ACEOF
62991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62992 _ACEOF
62993 ac_XPG2funcs=yes
62994 else
62995 ac_XPG2funcs=no
62996 fi
62997 done
62998
62999
63000 LIBS="$ac_save_LIBS"
63001
63002 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
63003 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
63004 if test x"$ac_has_iconv_h" = xyes &&
63005 test x"$ac_has_langinfo_h" = xyes &&
63006 test x"$ac_XPG2funcs" = xyes;
63007 then
63008 ac_XPG2_wchar_t=yes
63009 else
63010 ac_XPG2_wchar_t=no
63011 fi
63012 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
63013 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
63014
63015 # At the moment, only enable wchar_t specializations if all the
63016 # above support is present.
63017 if test x"$ac_isoC99_wchar_t" = xyes &&
63018 test x"$ac_XPG2_wchar_t" = xyes;
63019 then
63020 cat >>confdefs.h <<\_ACEOF
63021 #define _GLIBCXX_USE_WCHAR_T 1
63022 _ACEOF
63023
63024 enable_wchar_t=yes
63025 fi
63026 fi
63027 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
63028 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
63029 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
63030 echo "${ECHO_T}$enable_wchar_t" >&6
63031
63032 ;;
63033 *-netbsd*)
63034
63035
63036
63037
63038
63039
63040
63041
63042
63043
63044
63045
63046 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
63047 machine/endian.h machine/param.h sys/machine.h sys/types.h \
63048 fp.h locale.h float.h inttypes.h
63049 do
63050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63052 echo "$as_me:$LINENO: checking for $ac_header" >&5
63053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63055 echo $ECHO_N "(cached) $ECHO_C" >&6
63056 fi
63057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63059 else
63060 # Is the header compilable?
63061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
63062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
63063 cat >conftest.$ac_ext <<_ACEOF
63064 /* confdefs.h. */
63065 _ACEOF
63066 cat confdefs.h >>conftest.$ac_ext
63067 cat >>conftest.$ac_ext <<_ACEOF
63068 /* end confdefs.h. */
63069 $ac_includes_default
63070 #include <$ac_header>
63071 _ACEOF
63072 rm -f conftest.$ac_objext
63073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63074 (eval $ac_compile) 2>conftest.er1
63075 ac_status=$?
63076 grep -v '^ *+' conftest.er1 >conftest.err
63077 rm -f conftest.er1
63078 cat conftest.err >&5
63079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63080 (exit $ac_status); } &&
63081 { ac_try='test -z "$ac_c_werror_flag"
63082 || test ! -s conftest.err'
63083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63084 (eval $ac_try) 2>&5
63085 ac_status=$?
63086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63087 (exit $ac_status); }; } &&
63088 { ac_try='test -s conftest.$ac_objext'
63089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63090 (eval $ac_try) 2>&5
63091 ac_status=$?
63092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63093 (exit $ac_status); }; }; then
63094 ac_header_compiler=yes
63095 else
63096 echo "$as_me: failed program was:" >&5
63097 sed 's/^/| /' conftest.$ac_ext >&5
63098
63099 ac_header_compiler=no
63100 fi
63101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63102 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63103 echo "${ECHO_T}$ac_header_compiler" >&6
63104
63105 # Is the header present?
63106 echo "$as_me:$LINENO: checking $ac_header presence" >&5
63107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
63108 cat >conftest.$ac_ext <<_ACEOF
63109 /* confdefs.h. */
63110 _ACEOF
63111 cat confdefs.h >>conftest.$ac_ext
63112 cat >>conftest.$ac_ext <<_ACEOF
63113 /* end confdefs.h. */
63114 #include <$ac_header>
63115 _ACEOF
63116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63118 ac_status=$?
63119 grep -v '^ *+' conftest.er1 >conftest.err
63120 rm -f conftest.er1
63121 cat conftest.err >&5
63122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63123 (exit $ac_status); } >/dev/null; then
63124 if test -s conftest.err; then
63125 ac_cpp_err=$ac_c_preproc_warn_flag
63126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63127 else
63128 ac_cpp_err=
63129 fi
63130 else
63131 ac_cpp_err=yes
63132 fi
63133 if test -z "$ac_cpp_err"; then
63134 ac_header_preproc=yes
63135 else
63136 echo "$as_me: failed program was:" >&5
63137 sed 's/^/| /' conftest.$ac_ext >&5
63138
63139 ac_header_preproc=no
63140 fi
63141 rm -f conftest.err conftest.$ac_ext
63142 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63143 echo "${ECHO_T}$ac_header_preproc" >&6
63144
63145 # So? What about this header?
63146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63147 yes:no: )
63148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63152 ac_header_preproc=yes
63153 ;;
63154 no:yes:* )
63155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
63158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
63159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
63160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
63161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
63162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
63163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63167 (
63168 cat <<\_ASBOX
63169 ## ----------------------------------------- ##
63170 ## Report this to the package-unused lists. ##
63171 ## ----------------------------------------- ##
63172 _ASBOX
63173 ) |
63174 sed "s/^/$as_me: WARNING: /" >&2
63175 ;;
63176 esac
63177 echo "$as_me:$LINENO: checking for $ac_header" >&5
63178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63180 echo $ECHO_N "(cached) $ECHO_C" >&6
63181 else
63182 eval "$as_ac_Header=\$ac_header_preproc"
63183 fi
63184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63186
63187 fi
63188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
63189 cat >>confdefs.h <<_ACEOF
63190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
63191 _ACEOF
63192
63193 fi
63194
63195 done
63196
63197 SECTION_FLAGS='-ffunction-sections -fdata-sections'
63198
63199
63200 # If we're not using GNU ld, then there's no point in even trying these
63201 # tests. Check for that first. We should have already tested for gld
63202 # by now (in libtool), but require it now just to be safe...
63203 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
63204 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
63205
63206
63207
63208 # The name set by libtool depends on the version of libtool. Shame on us
63209 # for depending on an impl detail, but c'est la vie. Older versions used
63210 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
63211 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
63212 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
63213 # set (hence we're using an older libtool), then set it.
63214 if test x${with_gnu_ld+set} != xset; then
63215 if test x${ac_cv_prog_gnu_ld+set} != xset; then
63216 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
63217 with_gnu_ld=no
63218 else
63219 with_gnu_ld=$ac_cv_prog_gnu_ld
63220 fi
63221 fi
63222
63223 # Start by getting the version number. I think the libtool test already
63224 # does some of this, but throws away the result.
63225
63226 ldver=`$LD --version 2>/dev/null | head -1 | \
63227 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
63228
63229 glibcxx_gnu_ld_version=`echo $ldver | \
63230 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
63231
63232 # Set --gc-sections.
63233 if test "$with_gnu_ld" = "notbroken"; then
63234 # GNU ld it is! Joy and bunny rabbits!
63235
63236 # All these tests are for C++; save the language and the compiler flags.
63237 # Need to do this so that g++ won't try to link in libstdc++
63238 ac_test_CFLAGS="${CFLAGS+set}"
63239 ac_save_CFLAGS="$CFLAGS"
63240 CFLAGS='-x c++ -Wl,--gc-sections'
63241
63242 # Check for -Wl,--gc-sections
63243 # XXX This test is broken at the moment, as symbols required for linking
63244 # are now in libsupc++ (not built yet). In addition, this test has
63245 # cored on solaris in the past. In addition, --gc-sections doesn't
63246 # really work at the moment (keeps on discarding used sections, first
63247 # .eh_frame and now some of the glibc sections for iconv).
63248 # Bzzzzt. Thanks for playing, maybe next time.
63249 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
63250 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
63251 if test "$cross_compiling" = yes; then
63252 ac_sectionLDflags=yes
63253 else
63254 cat >conftest.$ac_ext <<_ACEOF
63255 /* confdefs.h. */
63256 _ACEOF
63257 cat confdefs.h >>conftest.$ac_ext
63258 cat >>conftest.$ac_ext <<_ACEOF
63259 /* end confdefs.h. */
63260
63261 int main(void)
63262 {
63263 try { throw 1; }
63264 catch (...) { };
63265 return 0;
63266 }
63267
63268 _ACEOF
63269 rm -f conftest$ac_exeext
63270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63271 (eval $ac_link) 2>&5
63272 ac_status=$?
63273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
63275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63276 (eval $ac_try) 2>&5
63277 ac_status=$?
63278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63279 (exit $ac_status); }; }; then
63280 ac_sectionLDflags=yes
63281 else
63282 echo "$as_me: program exited with status $ac_status" >&5
63283 echo "$as_me: failed program was:" >&5
63284 sed 's/^/| /' conftest.$ac_ext >&5
63285
63286 ( exit $ac_status )
63287 ac_sectionLDflags=no
63288 fi
63289 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63290 fi
63291 if test "$ac_test_CFLAGS" = set; then
63292 CFLAGS="$ac_save_CFLAGS"
63293 else
63294 # this is the suspicious part
63295 CFLAGS=''
63296 fi
63297 if test "$ac_sectionLDflags" = "yes"; then
63298 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
63299 fi
63300 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
63301 echo "${ECHO_T}$ac_sectionLDflags" >&6
63302 fi
63303
63304 # Set linker optimization flags.
63305 if test x"$with_gnu_ld" = x"yes"; then
63306 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
63307 fi
63308
63309
63310
63311
63312
63313
63314 echo "$as_me:$LINENO: checking for main in -lm" >&5
63315 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
63316 if test "${ac_cv_lib_m_main+set}" = set; then
63317 echo $ECHO_N "(cached) $ECHO_C" >&6
63318 else
63319 ac_check_lib_save_LIBS=$LIBS
63320 LIBS="-lm $LIBS"
63321 if test x$gcc_no_link = xyes; then
63322 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63323 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63324 { (exit 1); exit 1; }; }
63325 fi
63326 cat >conftest.$ac_ext <<_ACEOF
63327 /* confdefs.h. */
63328 _ACEOF
63329 cat confdefs.h >>conftest.$ac_ext
63330 cat >>conftest.$ac_ext <<_ACEOF
63331 /* end confdefs.h. */
63332
63333
63334 int
63335 main ()
63336 {
63337 main ();
63338 ;
63339 return 0;
63340 }
63341 _ACEOF
63342 rm -f conftest.$ac_objext conftest$ac_exeext
63343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63344 (eval $ac_link) 2>conftest.er1
63345 ac_status=$?
63346 grep -v '^ *+' conftest.er1 >conftest.err
63347 rm -f conftest.er1
63348 cat conftest.err >&5
63349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63350 (exit $ac_status); } &&
63351 { ac_try='test -z "$ac_c_werror_flag"
63352 || test ! -s conftest.err'
63353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63354 (eval $ac_try) 2>&5
63355 ac_status=$?
63356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63357 (exit $ac_status); }; } &&
63358 { ac_try='test -s conftest$ac_exeext'
63359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63360 (eval $ac_try) 2>&5
63361 ac_status=$?
63362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63363 (exit $ac_status); }; }; then
63364 ac_cv_lib_m_main=yes
63365 else
63366 echo "$as_me: failed program was:" >&5
63367 sed 's/^/| /' conftest.$ac_ext >&5
63368
63369 ac_cv_lib_m_main=no
63370 fi
63371 rm -f conftest.err conftest.$ac_objext \
63372 conftest$ac_exeext conftest.$ac_ext
63373 LIBS=$ac_check_lib_save_LIBS
63374 fi
63375 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
63376 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
63377 if test $ac_cv_lib_m_main = yes; then
63378 cat >>confdefs.h <<_ACEOF
63379 #define HAVE_LIBM 1
63380 _ACEOF
63381
63382 LIBS="-lm $LIBS"
63383
63384 fi
63385
63386
63387 for ac_func in copysignf
63388 do
63389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63390 echo "$as_me:$LINENO: checking for $ac_func" >&5
63391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63392 if eval "test \"\${$as_ac_var+set}\" = set"; then
63393 echo $ECHO_N "(cached) $ECHO_C" >&6
63394 else
63395 if test x$gcc_no_link = xyes; then
63396 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63397 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63398 { (exit 1); exit 1; }; }
63399 fi
63400 cat >conftest.$ac_ext <<_ACEOF
63401 /* confdefs.h. */
63402 _ACEOF
63403 cat confdefs.h >>conftest.$ac_ext
63404 cat >>conftest.$ac_ext <<_ACEOF
63405 /* end confdefs.h. */
63406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63408 #define $ac_func innocuous_$ac_func
63409
63410 /* System header to define __stub macros and hopefully few prototypes,
63411 which can conflict with char $ac_func (); below.
63412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63413 <limits.h> exists even on freestanding compilers. */
63414
63415 #ifdef __STDC__
63416 # include <limits.h>
63417 #else
63418 # include <assert.h>
63419 #endif
63420
63421 #undef $ac_func
63422
63423 /* Override any gcc2 internal prototype to avoid an error. */
63424 #ifdef __cplusplus
63425 extern "C"
63426 {
63427 #endif
63428 /* We use char because int might match the return type of a gcc2
63429 builtin and then its argument prototype would still apply. */
63430 char $ac_func ();
63431 /* The GNU C library defines this for functions which it implements
63432 to always fail with ENOSYS. Some functions are actually named
63433 something starting with __ and the normal name is an alias. */
63434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63435 choke me
63436 #else
63437 char (*f) () = $ac_func;
63438 #endif
63439 #ifdef __cplusplus
63440 }
63441 #endif
63442
63443 int
63444 main ()
63445 {
63446 return f != $ac_func;
63447 ;
63448 return 0;
63449 }
63450 _ACEOF
63451 rm -f conftest.$ac_objext conftest$ac_exeext
63452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63453 (eval $ac_link) 2>conftest.er1
63454 ac_status=$?
63455 grep -v '^ *+' conftest.er1 >conftest.err
63456 rm -f conftest.er1
63457 cat conftest.err >&5
63458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63459 (exit $ac_status); } &&
63460 { ac_try='test -z "$ac_c_werror_flag"
63461 || test ! -s conftest.err'
63462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63463 (eval $ac_try) 2>&5
63464 ac_status=$?
63465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63466 (exit $ac_status); }; } &&
63467 { ac_try='test -s conftest$ac_exeext'
63468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63469 (eval $ac_try) 2>&5
63470 ac_status=$?
63471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63472 (exit $ac_status); }; }; then
63473 eval "$as_ac_var=yes"
63474 else
63475 echo "$as_me: failed program was:" >&5
63476 sed 's/^/| /' conftest.$ac_ext >&5
63477
63478 eval "$as_ac_var=no"
63479 fi
63480 rm -f conftest.err conftest.$ac_objext \
63481 conftest$ac_exeext conftest.$ac_ext
63482 fi
63483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63485 if test `eval echo '${'$as_ac_var'}'` = yes; then
63486 cat >>confdefs.h <<_ACEOF
63487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63488 _ACEOF
63489
63490 else
63491 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
63492 fi
63493 done
63494
63495
63496
63497 for ac_func in __signbit
63498 do
63499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63500 echo "$as_me:$LINENO: checking for $ac_func" >&5
63501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63502 if eval "test \"\${$as_ac_var+set}\" = set"; then
63503 echo $ECHO_N "(cached) $ECHO_C" >&6
63504 else
63505 if test x$gcc_no_link = xyes; then
63506 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63507 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63508 { (exit 1); exit 1; }; }
63509 fi
63510 cat >conftest.$ac_ext <<_ACEOF
63511 /* confdefs.h. */
63512 _ACEOF
63513 cat confdefs.h >>conftest.$ac_ext
63514 cat >>conftest.$ac_ext <<_ACEOF
63515 /* end confdefs.h. */
63516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63518 #define $ac_func innocuous_$ac_func
63519
63520 /* System header to define __stub macros and hopefully few prototypes,
63521 which can conflict with char $ac_func (); below.
63522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63523 <limits.h> exists even on freestanding compilers. */
63524
63525 #ifdef __STDC__
63526 # include <limits.h>
63527 #else
63528 # include <assert.h>
63529 #endif
63530
63531 #undef $ac_func
63532
63533 /* Override any gcc2 internal prototype to avoid an error. */
63534 #ifdef __cplusplus
63535 extern "C"
63536 {
63537 #endif
63538 /* We use char because int might match the return type of a gcc2
63539 builtin and then its argument prototype would still apply. */
63540 char $ac_func ();
63541 /* The GNU C library defines this for functions which it implements
63542 to always fail with ENOSYS. Some functions are actually named
63543 something starting with __ and the normal name is an alias. */
63544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63545 choke me
63546 #else
63547 char (*f) () = $ac_func;
63548 #endif
63549 #ifdef __cplusplus
63550 }
63551 #endif
63552
63553 int
63554 main ()
63555 {
63556 return f != $ac_func;
63557 ;
63558 return 0;
63559 }
63560 _ACEOF
63561 rm -f conftest.$ac_objext conftest$ac_exeext
63562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63563 (eval $ac_link) 2>conftest.er1
63564 ac_status=$?
63565 grep -v '^ *+' conftest.er1 >conftest.err
63566 rm -f conftest.er1
63567 cat conftest.err >&5
63568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63569 (exit $ac_status); } &&
63570 { ac_try='test -z "$ac_c_werror_flag"
63571 || test ! -s conftest.err'
63572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63573 (eval $ac_try) 2>&5
63574 ac_status=$?
63575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63576 (exit $ac_status); }; } &&
63577 { ac_try='test -s conftest$ac_exeext'
63578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63579 (eval $ac_try) 2>&5
63580 ac_status=$?
63581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63582 (exit $ac_status); }; }; then
63583 eval "$as_ac_var=yes"
63584 else
63585 echo "$as_me: failed program was:" >&5
63586 sed 's/^/| /' conftest.$ac_ext >&5
63587
63588 eval "$as_ac_var=no"
63589 fi
63590 rm -f conftest.err conftest.$ac_objext \
63591 conftest$ac_exeext conftest.$ac_ext
63592 fi
63593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63595 if test `eval echo '${'$as_ac_var'}'` = yes; then
63596 cat >>confdefs.h <<_ACEOF
63597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63598 _ACEOF
63599
63600 else
63601 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
63602 fi
63603 done
63604
63605
63606
63607 for ac_func in __signbitf
63608 do
63609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63610 echo "$as_me:$LINENO: checking for $ac_func" >&5
63611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63612 if eval "test \"\${$as_ac_var+set}\" = set"; then
63613 echo $ECHO_N "(cached) $ECHO_C" >&6
63614 else
63615 if test x$gcc_no_link = xyes; then
63616 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63617 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63618 { (exit 1); exit 1; }; }
63619 fi
63620 cat >conftest.$ac_ext <<_ACEOF
63621 /* confdefs.h. */
63622 _ACEOF
63623 cat confdefs.h >>conftest.$ac_ext
63624 cat >>conftest.$ac_ext <<_ACEOF
63625 /* end confdefs.h. */
63626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63628 #define $ac_func innocuous_$ac_func
63629
63630 /* System header to define __stub macros and hopefully few prototypes,
63631 which can conflict with char $ac_func (); below.
63632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63633 <limits.h> exists even on freestanding compilers. */
63634
63635 #ifdef __STDC__
63636 # include <limits.h>
63637 #else
63638 # include <assert.h>
63639 #endif
63640
63641 #undef $ac_func
63642
63643 /* Override any gcc2 internal prototype to avoid an error. */
63644 #ifdef __cplusplus
63645 extern "C"
63646 {
63647 #endif
63648 /* We use char because int might match the return type of a gcc2
63649 builtin and then its argument prototype would still apply. */
63650 char $ac_func ();
63651 /* The GNU C library defines this for functions which it implements
63652 to always fail with ENOSYS. Some functions are actually named
63653 something starting with __ and the normal name is an alias. */
63654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63655 choke me
63656 #else
63657 char (*f) () = $ac_func;
63658 #endif
63659 #ifdef __cplusplus
63660 }
63661 #endif
63662
63663 int
63664 main ()
63665 {
63666 return f != $ac_func;
63667 ;
63668 return 0;
63669 }
63670 _ACEOF
63671 rm -f conftest.$ac_objext conftest$ac_exeext
63672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63673 (eval $ac_link) 2>conftest.er1
63674 ac_status=$?
63675 grep -v '^ *+' conftest.er1 >conftest.err
63676 rm -f conftest.er1
63677 cat conftest.err >&5
63678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63679 (exit $ac_status); } &&
63680 { ac_try='test -z "$ac_c_werror_flag"
63681 || test ! -s conftest.err'
63682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63683 (eval $ac_try) 2>&5
63684 ac_status=$?
63685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63686 (exit $ac_status); }; } &&
63687 { ac_try='test -s conftest$ac_exeext'
63688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63689 (eval $ac_try) 2>&5
63690 ac_status=$?
63691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63692 (exit $ac_status); }; }; then
63693 eval "$as_ac_var=yes"
63694 else
63695 echo "$as_me: failed program was:" >&5
63696 sed 's/^/| /' conftest.$ac_ext >&5
63697
63698 eval "$as_ac_var=no"
63699 fi
63700 rm -f conftest.err conftest.$ac_objext \
63701 conftest$ac_exeext conftest.$ac_ext
63702 fi
63703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63705 if test `eval echo '${'$as_ac_var'}'` = yes; then
63706 cat >>confdefs.h <<_ACEOF
63707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63708 _ACEOF
63709
63710 else
63711 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
63712 fi
63713 done
63714
63715
63716 if test x$ac_cv_func_copysignl = x"yes"; then
63717
63718 for ac_func in __signbitl
63719 do
63720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63721 echo "$as_me:$LINENO: checking for $ac_func" >&5
63722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63723 if eval "test \"\${$as_ac_var+set}\" = set"; then
63724 echo $ECHO_N "(cached) $ECHO_C" >&6
63725 else
63726 if test x$gcc_no_link = xyes; then
63727 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63728 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63729 { (exit 1); exit 1; }; }
63730 fi
63731 cat >conftest.$ac_ext <<_ACEOF
63732 /* confdefs.h. */
63733 _ACEOF
63734 cat confdefs.h >>conftest.$ac_ext
63735 cat >>conftest.$ac_ext <<_ACEOF
63736 /* end confdefs.h. */
63737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
63739 #define $ac_func innocuous_$ac_func
63740
63741 /* System header to define __stub macros and hopefully few prototypes,
63742 which can conflict with char $ac_func (); below.
63743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63744 <limits.h> exists even on freestanding compilers. */
63745
63746 #ifdef __STDC__
63747 # include <limits.h>
63748 #else
63749 # include <assert.h>
63750 #endif
63751
63752 #undef $ac_func
63753
63754 /* Override any gcc2 internal prototype to avoid an error. */
63755 #ifdef __cplusplus
63756 extern "C"
63757 {
63758 #endif
63759 /* We use char because int might match the return type of a gcc2
63760 builtin and then its argument prototype would still apply. */
63761 char $ac_func ();
63762 /* The GNU C library defines this for functions which it implements
63763 to always fail with ENOSYS. Some functions are actually named
63764 something starting with __ and the normal name is an alias. */
63765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63766 choke me
63767 #else
63768 char (*f) () = $ac_func;
63769 #endif
63770 #ifdef __cplusplus
63771 }
63772 #endif
63773
63774 int
63775 main ()
63776 {
63777 return f != $ac_func;
63778 ;
63779 return 0;
63780 }
63781 _ACEOF
63782 rm -f conftest.$ac_objext conftest$ac_exeext
63783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63784 (eval $ac_link) 2>conftest.er1
63785 ac_status=$?
63786 grep -v '^ *+' conftest.er1 >conftest.err
63787 rm -f conftest.er1
63788 cat conftest.err >&5
63789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63790 (exit $ac_status); } &&
63791 { ac_try='test -z "$ac_c_werror_flag"
63792 || test ! -s conftest.err'
63793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63794 (eval $ac_try) 2>&5
63795 ac_status=$?
63796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63797 (exit $ac_status); }; } &&
63798 { ac_try='test -s conftest$ac_exeext'
63799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63800 (eval $ac_try) 2>&5
63801 ac_status=$?
63802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63803 (exit $ac_status); }; }; then
63804 eval "$as_ac_var=yes"
63805 else
63806 echo "$as_me: failed program was:" >&5
63807 sed 's/^/| /' conftest.$ac_ext >&5
63808
63809 eval "$as_ac_var=no"
63810 fi
63811 rm -f conftest.err conftest.$ac_objext \
63812 conftest$ac_exeext conftest.$ac_ext
63813 fi
63814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63816 if test `eval echo '${'$as_ac_var'}'` = yes; then
63817 cat >>confdefs.h <<_ACEOF
63818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63819 _ACEOF
63820
63821 else
63822 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
63823 fi
63824 done
63825
63826 fi
63827
63828 # Used in libmath/Makefile.am.
63829 if test -n "$LIBMATHOBJS"; then
63830 need_libmath=yes
63831 fi
63832
63833
63834
63835 # Test wchar.h for mbstate_t, which is needed for char_traits and
63836 # others even if wchar_t support is not on.
63837 echo "$as_me:$LINENO: checking for mbstate_t" >&5
63838 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
63839 cat >conftest.$ac_ext <<_ACEOF
63840 /* confdefs.h. */
63841 _ACEOF
63842 cat confdefs.h >>conftest.$ac_ext
63843 cat >>conftest.$ac_ext <<_ACEOF
63844 /* end confdefs.h. */
63845 #include <wchar.h>
63846 int
63847 main ()
63848 {
63849 mbstate_t teststate;
63850 ;
63851 return 0;
63852 }
63853 _ACEOF
63854 rm -f conftest.$ac_objext
63855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63856 (eval $ac_compile) 2>conftest.er1
63857 ac_status=$?
63858 grep -v '^ *+' conftest.er1 >conftest.err
63859 rm -f conftest.er1
63860 cat conftest.err >&5
63861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63862 (exit $ac_status); } &&
63863 { ac_try='test -z "$ac_c_werror_flag"
63864 || test ! -s conftest.err'
63865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63866 (eval $ac_try) 2>&5
63867 ac_status=$?
63868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63869 (exit $ac_status); }; } &&
63870 { ac_try='test -s conftest.$ac_objext'
63871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63872 (eval $ac_try) 2>&5
63873 ac_status=$?
63874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63875 (exit $ac_status); }; }; then
63876 have_mbstate_t=yes
63877 else
63878 echo "$as_me: failed program was:" >&5
63879 sed 's/^/| /' conftest.$ac_ext >&5
63880
63881 have_mbstate_t=no
63882 fi
63883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63884 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
63885 echo "${ECHO_T}$have_mbstate_t" >&6
63886 if test x"$have_mbstate_t" = xyes; then
63887 cat >>confdefs.h <<\_ACEOF
63888 #define HAVE_MBSTATE_T 1
63889 _ACEOF
63890
63891 fi
63892
63893 # Sanity check for existence of ISO C99 headers for extended encoding.
63894
63895 for ac_header in wchar.h
63896 do
63897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63899 echo "$as_me:$LINENO: checking for $ac_header" >&5
63900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63902 echo $ECHO_N "(cached) $ECHO_C" >&6
63903 fi
63904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63906 else
63907 # Is the header compilable?
63908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
63909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
63910 cat >conftest.$ac_ext <<_ACEOF
63911 /* confdefs.h. */
63912 _ACEOF
63913 cat confdefs.h >>conftest.$ac_ext
63914 cat >>conftest.$ac_ext <<_ACEOF
63915 /* end confdefs.h. */
63916 $ac_includes_default
63917 #include <$ac_header>
63918 _ACEOF
63919 rm -f conftest.$ac_objext
63920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63921 (eval $ac_compile) 2>conftest.er1
63922 ac_status=$?
63923 grep -v '^ *+' conftest.er1 >conftest.err
63924 rm -f conftest.er1
63925 cat conftest.err >&5
63926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63927 (exit $ac_status); } &&
63928 { ac_try='test -z "$ac_c_werror_flag"
63929 || test ! -s conftest.err'
63930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63931 (eval $ac_try) 2>&5
63932 ac_status=$?
63933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63934 (exit $ac_status); }; } &&
63935 { ac_try='test -s conftest.$ac_objext'
63936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63937 (eval $ac_try) 2>&5
63938 ac_status=$?
63939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63940 (exit $ac_status); }; }; then
63941 ac_header_compiler=yes
63942 else
63943 echo "$as_me: failed program was:" >&5
63944 sed 's/^/| /' conftest.$ac_ext >&5
63945
63946 ac_header_compiler=no
63947 fi
63948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63950 echo "${ECHO_T}$ac_header_compiler" >&6
63951
63952 # Is the header present?
63953 echo "$as_me:$LINENO: checking $ac_header presence" >&5
63954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
63955 cat >conftest.$ac_ext <<_ACEOF
63956 /* confdefs.h. */
63957 _ACEOF
63958 cat confdefs.h >>conftest.$ac_ext
63959 cat >>conftest.$ac_ext <<_ACEOF
63960 /* end confdefs.h. */
63961 #include <$ac_header>
63962 _ACEOF
63963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63965 ac_status=$?
63966 grep -v '^ *+' conftest.er1 >conftest.err
63967 rm -f conftest.er1
63968 cat conftest.err >&5
63969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
63970 (exit $ac_status); } >/dev/null; then
63971 if test -s conftest.err; then
63972 ac_cpp_err=$ac_c_preproc_warn_flag
63973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63974 else
63975 ac_cpp_err=
63976 fi
63977 else
63978 ac_cpp_err=yes
63979 fi
63980 if test -z "$ac_cpp_err"; then
63981 ac_header_preproc=yes
63982 else
63983 echo "$as_me: failed program was:" >&5
63984 sed 's/^/| /' conftest.$ac_ext >&5
63985
63986 ac_header_preproc=no
63987 fi
63988 rm -f conftest.err conftest.$ac_ext
63989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63990 echo "${ECHO_T}$ac_header_preproc" >&6
63991
63992 # So? What about this header?
63993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63994 yes:no: )
63995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63999 ac_header_preproc=yes
64000 ;;
64001 no:yes:* )
64002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
64005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
64006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
64009 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
64010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64014 (
64015 cat <<\_ASBOX
64016 ## ----------------------------------------- ##
64017 ## Report this to the package-unused lists. ##
64018 ## ----------------------------------------- ##
64019 _ASBOX
64020 ) |
64021 sed "s/^/$as_me: WARNING: /" >&2
64022 ;;
64023 esac
64024 echo "$as_me:$LINENO: checking for $ac_header" >&5
64025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64027 echo $ECHO_N "(cached) $ECHO_C" >&6
64028 else
64029 eval "$as_ac_Header=\$ac_header_preproc"
64030 fi
64031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64033
64034 fi
64035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64036 cat >>confdefs.h <<_ACEOF
64037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64038 _ACEOF
64039 ac_has_wchar_h=yes
64040 else
64041 ac_has_wchar_h=no
64042 fi
64043
64044 done
64045
64046
64047 for ac_header in wctype.h
64048 do
64049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64051 echo "$as_me:$LINENO: checking for $ac_header" >&5
64052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64054 echo $ECHO_N "(cached) $ECHO_C" >&6
64055 fi
64056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64058 else
64059 # Is the header compilable?
64060 echo "$as_me:$LINENO: checking $ac_header usability" >&5
64061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
64062 cat >conftest.$ac_ext <<_ACEOF
64063 /* confdefs.h. */
64064 _ACEOF
64065 cat confdefs.h >>conftest.$ac_ext
64066 cat >>conftest.$ac_ext <<_ACEOF
64067 /* end confdefs.h. */
64068 $ac_includes_default
64069 #include <$ac_header>
64070 _ACEOF
64071 rm -f conftest.$ac_objext
64072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64073 (eval $ac_compile) 2>conftest.er1
64074 ac_status=$?
64075 grep -v '^ *+' conftest.er1 >conftest.err
64076 rm -f conftest.er1
64077 cat conftest.err >&5
64078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64079 (exit $ac_status); } &&
64080 { ac_try='test -z "$ac_c_werror_flag"
64081 || test ! -s conftest.err'
64082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64083 (eval $ac_try) 2>&5
64084 ac_status=$?
64085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64086 (exit $ac_status); }; } &&
64087 { ac_try='test -s conftest.$ac_objext'
64088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64089 (eval $ac_try) 2>&5
64090 ac_status=$?
64091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64092 (exit $ac_status); }; }; then
64093 ac_header_compiler=yes
64094 else
64095 echo "$as_me: failed program was:" >&5
64096 sed 's/^/| /' conftest.$ac_ext >&5
64097
64098 ac_header_compiler=no
64099 fi
64100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64102 echo "${ECHO_T}$ac_header_compiler" >&6
64103
64104 # Is the header present?
64105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
64106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64107 cat >conftest.$ac_ext <<_ACEOF
64108 /* confdefs.h. */
64109 _ACEOF
64110 cat confdefs.h >>conftest.$ac_ext
64111 cat >>conftest.$ac_ext <<_ACEOF
64112 /* end confdefs.h. */
64113 #include <$ac_header>
64114 _ACEOF
64115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64117 ac_status=$?
64118 grep -v '^ *+' conftest.er1 >conftest.err
64119 rm -f conftest.er1
64120 cat conftest.err >&5
64121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64122 (exit $ac_status); } >/dev/null; then
64123 if test -s conftest.err; then
64124 ac_cpp_err=$ac_c_preproc_warn_flag
64125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64126 else
64127 ac_cpp_err=
64128 fi
64129 else
64130 ac_cpp_err=yes
64131 fi
64132 if test -z "$ac_cpp_err"; then
64133 ac_header_preproc=yes
64134 else
64135 echo "$as_me: failed program was:" >&5
64136 sed 's/^/| /' conftest.$ac_ext >&5
64137
64138 ac_header_preproc=no
64139 fi
64140 rm -f conftest.err conftest.$ac_ext
64141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64142 echo "${ECHO_T}$ac_header_preproc" >&6
64143
64144 # So? What about this header?
64145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64146 yes:no: )
64147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64151 ac_header_preproc=yes
64152 ;;
64153 no:yes:* )
64154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
64157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
64158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
64161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
64162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64166 (
64167 cat <<\_ASBOX
64168 ## ----------------------------------------- ##
64169 ## Report this to the package-unused lists. ##
64170 ## ----------------------------------------- ##
64171 _ASBOX
64172 ) |
64173 sed "s/^/$as_me: WARNING: /" >&2
64174 ;;
64175 esac
64176 echo "$as_me:$LINENO: checking for $ac_header" >&5
64177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64179 echo $ECHO_N "(cached) $ECHO_C" >&6
64180 else
64181 eval "$as_ac_Header=\$ac_header_preproc"
64182 fi
64183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64185
64186 fi
64187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64188 cat >>confdefs.h <<_ACEOF
64189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64190 _ACEOF
64191 ac_has_wctype_h=yes
64192 else
64193 ac_has_wctype_h=no
64194 fi
64195
64196 done
64197
64198
64199 # Only continue checking if the ISO C99 headers exist and support is on.
64200 if test x"$ac_has_wchar_h" = xyes &&
64201 test x"$ac_has_wctype_h" = xyes &&
64202 test x"$enable_c_mbchar" != xno; then
64203
64204 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
64205 # numeric_limits can instantiate type_traits<wchar_t>
64206 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
64207 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
64208 cat >conftest.$ac_ext <<_ACEOF
64209 /* confdefs.h. */
64210 _ACEOF
64211 cat confdefs.h >>conftest.$ac_ext
64212 cat >>conftest.$ac_ext <<_ACEOF
64213 /* end confdefs.h. */
64214 #include <wchar.h>
64215 int
64216 main ()
64217 {
64218 int i = WCHAR_MIN; int j = WCHAR_MAX;
64219 ;
64220 return 0;
64221 }
64222 _ACEOF
64223 rm -f conftest.$ac_objext
64224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64225 (eval $ac_compile) 2>conftest.er1
64226 ac_status=$?
64227 grep -v '^ *+' conftest.er1 >conftest.err
64228 rm -f conftest.er1
64229 cat conftest.err >&5
64230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64231 (exit $ac_status); } &&
64232 { ac_try='test -z "$ac_c_werror_flag"
64233 || test ! -s conftest.err'
64234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64235 (eval $ac_try) 2>&5
64236 ac_status=$?
64237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64238 (exit $ac_status); }; } &&
64239 { ac_try='test -s conftest.$ac_objext'
64240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64241 (eval $ac_try) 2>&5
64242 ac_status=$?
64243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64244 (exit $ac_status); }; }; then
64245 has_wchar_minmax=yes
64246 else
64247 echo "$as_me: failed program was:" >&5
64248 sed 's/^/| /' conftest.$ac_ext >&5
64249
64250 has_wchar_minmax=no
64251 fi
64252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64253 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
64254 echo "${ECHO_T}$has_wchar_minmax" >&6
64255
64256 # Test wchar.h for WEOF, which is what we use to determine whether
64257 # to specialize for char_traits<wchar_t> or not.
64258 echo "$as_me:$LINENO: checking for WEOF" >&5
64259 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
64260 cat >conftest.$ac_ext <<_ACEOF
64261 /* confdefs.h. */
64262 _ACEOF
64263 cat confdefs.h >>conftest.$ac_ext
64264 cat >>conftest.$ac_ext <<_ACEOF
64265 /* end confdefs.h. */
64266
64267 #include <wchar.h>
64268 #include <stddef.h>
64269 int
64270 main ()
64271 {
64272 wint_t i = WEOF;
64273 ;
64274 return 0;
64275 }
64276 _ACEOF
64277 rm -f conftest.$ac_objext
64278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64279 (eval $ac_compile) 2>conftest.er1
64280 ac_status=$?
64281 grep -v '^ *+' conftest.er1 >conftest.err
64282 rm -f conftest.er1
64283 cat conftest.err >&5
64284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64285 (exit $ac_status); } &&
64286 { ac_try='test -z "$ac_c_werror_flag"
64287 || test ! -s conftest.err'
64288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64289 (eval $ac_try) 2>&5
64290 ac_status=$?
64291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64292 (exit $ac_status); }; } &&
64293 { ac_try='test -s conftest.$ac_objext'
64294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64295 (eval $ac_try) 2>&5
64296 ac_status=$?
64297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64298 (exit $ac_status); }; }; then
64299 has_weof=yes
64300 else
64301 echo "$as_me: failed program was:" >&5
64302 sed 's/^/| /' conftest.$ac_ext >&5
64303
64304 has_weof=no
64305 fi
64306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64307 echo "$as_me:$LINENO: result: $has_weof" >&5
64308 echo "${ECHO_T}$has_weof" >&6
64309
64310 # Tests for wide character functions used in char_traits<wchar_t>.
64311 ac_wfuncs=yes
64312
64313
64314
64315
64316
64317
64318 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
64319 do
64320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64321 echo "$as_me:$LINENO: checking for $ac_func" >&5
64322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64323 if eval "test \"\${$as_ac_var+set}\" = set"; then
64324 echo $ECHO_N "(cached) $ECHO_C" >&6
64325 else
64326 if test x$gcc_no_link = xyes; then
64327 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64328 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64329 { (exit 1); exit 1; }; }
64330 fi
64331 cat >conftest.$ac_ext <<_ACEOF
64332 /* confdefs.h. */
64333 _ACEOF
64334 cat confdefs.h >>conftest.$ac_ext
64335 cat >>conftest.$ac_ext <<_ACEOF
64336 /* end confdefs.h. */
64337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64339 #define $ac_func innocuous_$ac_func
64340
64341 /* System header to define __stub macros and hopefully few prototypes,
64342 which can conflict with char $ac_func (); below.
64343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64344 <limits.h> exists even on freestanding compilers. */
64345
64346 #ifdef __STDC__
64347 # include <limits.h>
64348 #else
64349 # include <assert.h>
64350 #endif
64351
64352 #undef $ac_func
64353
64354 /* Override any gcc2 internal prototype to avoid an error. */
64355 #ifdef __cplusplus
64356 extern "C"
64357 {
64358 #endif
64359 /* We use char because int might match the return type of a gcc2
64360 builtin and then its argument prototype would still apply. */
64361 char $ac_func ();
64362 /* The GNU C library defines this for functions which it implements
64363 to always fail with ENOSYS. Some functions are actually named
64364 something starting with __ and the normal name is an alias. */
64365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64366 choke me
64367 #else
64368 char (*f) () = $ac_func;
64369 #endif
64370 #ifdef __cplusplus
64371 }
64372 #endif
64373
64374 int
64375 main ()
64376 {
64377 return f != $ac_func;
64378 ;
64379 return 0;
64380 }
64381 _ACEOF
64382 rm -f conftest.$ac_objext conftest$ac_exeext
64383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64384 (eval $ac_link) 2>conftest.er1
64385 ac_status=$?
64386 grep -v '^ *+' conftest.er1 >conftest.err
64387 rm -f conftest.er1
64388 cat conftest.err >&5
64389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64390 (exit $ac_status); } &&
64391 { ac_try='test -z "$ac_c_werror_flag"
64392 || test ! -s conftest.err'
64393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64394 (eval $ac_try) 2>&5
64395 ac_status=$?
64396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64397 (exit $ac_status); }; } &&
64398 { ac_try='test -s conftest$ac_exeext'
64399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64400 (eval $ac_try) 2>&5
64401 ac_status=$?
64402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64403 (exit $ac_status); }; }; then
64404 eval "$as_ac_var=yes"
64405 else
64406 echo "$as_me: failed program was:" >&5
64407 sed 's/^/| /' conftest.$ac_ext >&5
64408
64409 eval "$as_ac_var=no"
64410 fi
64411 rm -f conftest.err conftest.$ac_objext \
64412 conftest$ac_exeext conftest.$ac_ext
64413 fi
64414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64416 if test `eval echo '${'$as_ac_var'}'` = yes; then
64417 cat >>confdefs.h <<_ACEOF
64418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64419 _ACEOF
64420
64421 else
64422 ac_wfuncs=no
64423 fi
64424 done
64425
64426
64427 # Checks for names injected into std:: by the c_std headers.
64428
64429
64430
64431
64432
64433
64434
64435
64436
64437
64438
64439
64440
64441
64442
64443
64444
64445
64446
64447
64448
64449
64450
64451
64452
64453
64454
64455
64456
64457
64458
64459
64460
64461
64462
64463
64464
64465
64466
64467
64468
64469
64470
64471
64472
64473
64474 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
64475 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
64476 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
64477 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
64478 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
64479 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
64480 do
64481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64482 echo "$as_me:$LINENO: checking for $ac_func" >&5
64483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64484 if eval "test \"\${$as_ac_var+set}\" = set"; then
64485 echo $ECHO_N "(cached) $ECHO_C" >&6
64486 else
64487 if test x$gcc_no_link = xyes; then
64488 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64490 { (exit 1); exit 1; }; }
64491 fi
64492 cat >conftest.$ac_ext <<_ACEOF
64493 /* confdefs.h. */
64494 _ACEOF
64495 cat confdefs.h >>conftest.$ac_ext
64496 cat >>conftest.$ac_ext <<_ACEOF
64497 /* end confdefs.h. */
64498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64500 #define $ac_func innocuous_$ac_func
64501
64502 /* System header to define __stub macros and hopefully few prototypes,
64503 which can conflict with char $ac_func (); below.
64504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64505 <limits.h> exists even on freestanding compilers. */
64506
64507 #ifdef __STDC__
64508 # include <limits.h>
64509 #else
64510 # include <assert.h>
64511 #endif
64512
64513 #undef $ac_func
64514
64515 /* Override any gcc2 internal prototype to avoid an error. */
64516 #ifdef __cplusplus
64517 extern "C"
64518 {
64519 #endif
64520 /* We use char because int might match the return type of a gcc2
64521 builtin and then its argument prototype would still apply. */
64522 char $ac_func ();
64523 /* The GNU C library defines this for functions which it implements
64524 to always fail with ENOSYS. Some functions are actually named
64525 something starting with __ and the normal name is an alias. */
64526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64527 choke me
64528 #else
64529 char (*f) () = $ac_func;
64530 #endif
64531 #ifdef __cplusplus
64532 }
64533 #endif
64534
64535 int
64536 main ()
64537 {
64538 return f != $ac_func;
64539 ;
64540 return 0;
64541 }
64542 _ACEOF
64543 rm -f conftest.$ac_objext conftest$ac_exeext
64544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64545 (eval $ac_link) 2>conftest.er1
64546 ac_status=$?
64547 grep -v '^ *+' conftest.er1 >conftest.err
64548 rm -f conftest.er1
64549 cat conftest.err >&5
64550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64551 (exit $ac_status); } &&
64552 { ac_try='test -z "$ac_c_werror_flag"
64553 || test ! -s conftest.err'
64554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64555 (eval $ac_try) 2>&5
64556 ac_status=$?
64557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64558 (exit $ac_status); }; } &&
64559 { ac_try='test -s conftest$ac_exeext'
64560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64561 (eval $ac_try) 2>&5
64562 ac_status=$?
64563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64564 (exit $ac_status); }; }; then
64565 eval "$as_ac_var=yes"
64566 else
64567 echo "$as_me: failed program was:" >&5
64568 sed 's/^/| /' conftest.$ac_ext >&5
64569
64570 eval "$as_ac_var=no"
64571 fi
64572 rm -f conftest.err conftest.$ac_objext \
64573 conftest$ac_exeext conftest.$ac_ext
64574 fi
64575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64577 if test `eval echo '${'$as_ac_var'}'` = yes; then
64578 cat >>confdefs.h <<_ACEOF
64579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64580 _ACEOF
64581
64582 else
64583 ac_wfuncs=no
64584 fi
64585 done
64586
64587
64588 # Checks for wide character functions that are not required
64589 # for basic wchar_t support. Don't disable support if they are missing.
64590 # Injection of these is wrapped with guard macros.
64591
64592
64593
64594
64595
64596 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
64597 do
64598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64599 echo "$as_me:$LINENO: checking for $ac_func" >&5
64600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64601 if eval "test \"\${$as_ac_var+set}\" = set"; then
64602 echo $ECHO_N "(cached) $ECHO_C" >&6
64603 else
64604 if test x$gcc_no_link = xyes; then
64605 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64606 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64607 { (exit 1); exit 1; }; }
64608 fi
64609 cat >conftest.$ac_ext <<_ACEOF
64610 /* confdefs.h. */
64611 _ACEOF
64612 cat confdefs.h >>conftest.$ac_ext
64613 cat >>conftest.$ac_ext <<_ACEOF
64614 /* end confdefs.h. */
64615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
64617 #define $ac_func innocuous_$ac_func
64618
64619 /* System header to define __stub macros and hopefully few prototypes,
64620 which can conflict with char $ac_func (); below.
64621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64622 <limits.h> exists even on freestanding compilers. */
64623
64624 #ifdef __STDC__
64625 # include <limits.h>
64626 #else
64627 # include <assert.h>
64628 #endif
64629
64630 #undef $ac_func
64631
64632 /* Override any gcc2 internal prototype to avoid an error. */
64633 #ifdef __cplusplus
64634 extern "C"
64635 {
64636 #endif
64637 /* We use char because int might match the return type of a gcc2
64638 builtin and then its argument prototype would still apply. */
64639 char $ac_func ();
64640 /* The GNU C library defines this for functions which it implements
64641 to always fail with ENOSYS. Some functions are actually named
64642 something starting with __ and the normal name is an alias. */
64643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64644 choke me
64645 #else
64646 char (*f) () = $ac_func;
64647 #endif
64648 #ifdef __cplusplus
64649 }
64650 #endif
64651
64652 int
64653 main ()
64654 {
64655 return f != $ac_func;
64656 ;
64657 return 0;
64658 }
64659 _ACEOF
64660 rm -f conftest.$ac_objext conftest$ac_exeext
64661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64662 (eval $ac_link) 2>conftest.er1
64663 ac_status=$?
64664 grep -v '^ *+' conftest.er1 >conftest.err
64665 rm -f conftest.er1
64666 cat conftest.err >&5
64667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64668 (exit $ac_status); } &&
64669 { ac_try='test -z "$ac_c_werror_flag"
64670 || test ! -s conftest.err'
64671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64672 (eval $ac_try) 2>&5
64673 ac_status=$?
64674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64675 (exit $ac_status); }; } &&
64676 { ac_try='test -s conftest$ac_exeext'
64677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64678 (eval $ac_try) 2>&5
64679 ac_status=$?
64680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64681 (exit $ac_status); }; }; then
64682 eval "$as_ac_var=yes"
64683 else
64684 echo "$as_me: failed program was:" >&5
64685 sed 's/^/| /' conftest.$ac_ext >&5
64686
64687 eval "$as_ac_var=no"
64688 fi
64689 rm -f conftest.err conftest.$ac_objext \
64690 conftest$ac_exeext conftest.$ac_ext
64691 fi
64692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64694 if test `eval echo '${'$as_ac_var'}'` = yes; then
64695 cat >>confdefs.h <<_ACEOF
64696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64697 _ACEOF
64698
64699 fi
64700 done
64701
64702
64703 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
64704 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
64705 if test x"$has_weof" = xyes &&
64706 test x"$has_wchar_minmax" = xyes &&
64707 test x"$ac_wfuncs" = xyes;
64708 then
64709 ac_isoC99_wchar_t=yes
64710 else
64711 ac_isoC99_wchar_t=no
64712 fi
64713 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
64714 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
64715
64716 # Use iconv for wchar_t to char conversions. As such, check for
64717 # X/Open Portability Guide, version 2 features (XPG2).
64718 if test "${ac_cv_header_iconv_h+set}" = set; then
64719 echo "$as_me:$LINENO: checking for iconv.h" >&5
64720 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
64721 if test "${ac_cv_header_iconv_h+set}" = set; then
64722 echo $ECHO_N "(cached) $ECHO_C" >&6
64723 fi
64724 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
64725 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
64726 else
64727 # Is the header compilable?
64728 echo "$as_me:$LINENO: checking iconv.h usability" >&5
64729 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
64730 cat >conftest.$ac_ext <<_ACEOF
64731 /* confdefs.h. */
64732 _ACEOF
64733 cat confdefs.h >>conftest.$ac_ext
64734 cat >>conftest.$ac_ext <<_ACEOF
64735 /* end confdefs.h. */
64736 $ac_includes_default
64737 #include <iconv.h>
64738 _ACEOF
64739 rm -f conftest.$ac_objext
64740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64741 (eval $ac_compile) 2>conftest.er1
64742 ac_status=$?
64743 grep -v '^ *+' conftest.er1 >conftest.err
64744 rm -f conftest.er1
64745 cat conftest.err >&5
64746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64747 (exit $ac_status); } &&
64748 { ac_try='test -z "$ac_c_werror_flag"
64749 || test ! -s conftest.err'
64750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64751 (eval $ac_try) 2>&5
64752 ac_status=$?
64753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64754 (exit $ac_status); }; } &&
64755 { ac_try='test -s conftest.$ac_objext'
64756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64757 (eval $ac_try) 2>&5
64758 ac_status=$?
64759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64760 (exit $ac_status); }; }; then
64761 ac_header_compiler=yes
64762 else
64763 echo "$as_me: failed program was:" >&5
64764 sed 's/^/| /' conftest.$ac_ext >&5
64765
64766 ac_header_compiler=no
64767 fi
64768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64769 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64770 echo "${ECHO_T}$ac_header_compiler" >&6
64771
64772 # Is the header present?
64773 echo "$as_me:$LINENO: checking iconv.h presence" >&5
64774 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
64775 cat >conftest.$ac_ext <<_ACEOF
64776 /* confdefs.h. */
64777 _ACEOF
64778 cat confdefs.h >>conftest.$ac_ext
64779 cat >>conftest.$ac_ext <<_ACEOF
64780 /* end confdefs.h. */
64781 #include <iconv.h>
64782 _ACEOF
64783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64785 ac_status=$?
64786 grep -v '^ *+' conftest.er1 >conftest.err
64787 rm -f conftest.er1
64788 cat conftest.err >&5
64789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64790 (exit $ac_status); } >/dev/null; then
64791 if test -s conftest.err; then
64792 ac_cpp_err=$ac_c_preproc_warn_flag
64793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64794 else
64795 ac_cpp_err=
64796 fi
64797 else
64798 ac_cpp_err=yes
64799 fi
64800 if test -z "$ac_cpp_err"; then
64801 ac_header_preproc=yes
64802 else
64803 echo "$as_me: failed program was:" >&5
64804 sed 's/^/| /' conftest.$ac_ext >&5
64805
64806 ac_header_preproc=no
64807 fi
64808 rm -f conftest.err conftest.$ac_ext
64809 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64810 echo "${ECHO_T}$ac_header_preproc" >&6
64811
64812 # So? What about this header?
64813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64814 yes:no: )
64815 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
64816 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
64817 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
64818 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
64819 ac_header_preproc=yes
64820 ;;
64821 no:yes:* )
64822 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
64823 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
64824 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
64825 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
64826 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
64827 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
64828 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
64829 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
64830 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
64831 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
64832 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
64833 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
64834 (
64835 cat <<\_ASBOX
64836 ## ----------------------------------------- ##
64837 ## Report this to the package-unused lists. ##
64838 ## ----------------------------------------- ##
64839 _ASBOX
64840 ) |
64841 sed "s/^/$as_me: WARNING: /" >&2
64842 ;;
64843 esac
64844 echo "$as_me:$LINENO: checking for iconv.h" >&5
64845 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
64846 if test "${ac_cv_header_iconv_h+set}" = set; then
64847 echo $ECHO_N "(cached) $ECHO_C" >&6
64848 else
64849 ac_cv_header_iconv_h=$ac_header_preproc
64850 fi
64851 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
64852 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
64853
64854 fi
64855 if test $ac_cv_header_iconv_h = yes; then
64856 ac_has_iconv_h=yes
64857 else
64858 ac_has_iconv_h=no
64859 fi
64860
64861
64862 if test "${ac_cv_header_langinfo_h+set}" = set; then
64863 echo "$as_me:$LINENO: checking for langinfo.h" >&5
64864 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
64865 if test "${ac_cv_header_langinfo_h+set}" = set; then
64866 echo $ECHO_N "(cached) $ECHO_C" >&6
64867 fi
64868 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
64869 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
64870 else
64871 # Is the header compilable?
64872 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
64873 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
64874 cat >conftest.$ac_ext <<_ACEOF
64875 /* confdefs.h. */
64876 _ACEOF
64877 cat confdefs.h >>conftest.$ac_ext
64878 cat >>conftest.$ac_ext <<_ACEOF
64879 /* end confdefs.h. */
64880 $ac_includes_default
64881 #include <langinfo.h>
64882 _ACEOF
64883 rm -f conftest.$ac_objext
64884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64885 (eval $ac_compile) 2>conftest.er1
64886 ac_status=$?
64887 grep -v '^ *+' conftest.er1 >conftest.err
64888 rm -f conftest.er1
64889 cat conftest.err >&5
64890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64891 (exit $ac_status); } &&
64892 { ac_try='test -z "$ac_c_werror_flag"
64893 || test ! -s conftest.err'
64894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64895 (eval $ac_try) 2>&5
64896 ac_status=$?
64897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64898 (exit $ac_status); }; } &&
64899 { ac_try='test -s conftest.$ac_objext'
64900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64901 (eval $ac_try) 2>&5
64902 ac_status=$?
64903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64904 (exit $ac_status); }; }; then
64905 ac_header_compiler=yes
64906 else
64907 echo "$as_me: failed program was:" >&5
64908 sed 's/^/| /' conftest.$ac_ext >&5
64909
64910 ac_header_compiler=no
64911 fi
64912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64914 echo "${ECHO_T}$ac_header_compiler" >&6
64915
64916 # Is the header present?
64917 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
64918 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
64919 cat >conftest.$ac_ext <<_ACEOF
64920 /* confdefs.h. */
64921 _ACEOF
64922 cat confdefs.h >>conftest.$ac_ext
64923 cat >>conftest.$ac_ext <<_ACEOF
64924 /* end confdefs.h. */
64925 #include <langinfo.h>
64926 _ACEOF
64927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64929 ac_status=$?
64930 grep -v '^ *+' conftest.er1 >conftest.err
64931 rm -f conftest.er1
64932 cat conftest.err >&5
64933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64934 (exit $ac_status); } >/dev/null; then
64935 if test -s conftest.err; then
64936 ac_cpp_err=$ac_c_preproc_warn_flag
64937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64938 else
64939 ac_cpp_err=
64940 fi
64941 else
64942 ac_cpp_err=yes
64943 fi
64944 if test -z "$ac_cpp_err"; then
64945 ac_header_preproc=yes
64946 else
64947 echo "$as_me: failed program was:" >&5
64948 sed 's/^/| /' conftest.$ac_ext >&5
64949
64950 ac_header_preproc=no
64951 fi
64952 rm -f conftest.err conftest.$ac_ext
64953 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64954 echo "${ECHO_T}$ac_header_preproc" >&6
64955
64956 # So? What about this header?
64957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64958 yes:no: )
64959 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
64960 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
64961 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
64962 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
64963 ac_header_preproc=yes
64964 ;;
64965 no:yes:* )
64966 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
64967 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
64968 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
64969 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
64970 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
64971 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
64972 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
64973 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
64974 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
64975 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
64976 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
64977 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
64978 (
64979 cat <<\_ASBOX
64980 ## ----------------------------------------- ##
64981 ## Report this to the package-unused lists. ##
64982 ## ----------------------------------------- ##
64983 _ASBOX
64984 ) |
64985 sed "s/^/$as_me: WARNING: /" >&2
64986 ;;
64987 esac
64988 echo "$as_me:$LINENO: checking for langinfo.h" >&5
64989 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
64990 if test "${ac_cv_header_langinfo_h+set}" = set; then
64991 echo $ECHO_N "(cached) $ECHO_C" >&6
64992 else
64993 ac_cv_header_langinfo_h=$ac_header_preproc
64994 fi
64995 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
64996 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
64997
64998 fi
64999 if test $ac_cv_header_langinfo_h = yes; then
65000 ac_has_langinfo_h=yes
65001 else
65002 ac_has_langinfo_h=no
65003 fi
65004
65005
65006
65007 # Check for existence of libiconv.a providing XPG2 wchar_t support.
65008 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
65009 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
65010 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
65011 echo $ECHO_N "(cached) $ECHO_C" >&6
65012 else
65013 ac_check_lib_save_LIBS=$LIBS
65014 LIBS="-liconv $LIBS"
65015 if test x$gcc_no_link = xyes; then
65016 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65017 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65018 { (exit 1); exit 1; }; }
65019 fi
65020 cat >conftest.$ac_ext <<_ACEOF
65021 /* confdefs.h. */
65022 _ACEOF
65023 cat confdefs.h >>conftest.$ac_ext
65024 cat >>conftest.$ac_ext <<_ACEOF
65025 /* end confdefs.h. */
65026
65027 /* Override any gcc2 internal prototype to avoid an error. */
65028 #ifdef __cplusplus
65029 extern "C"
65030 #endif
65031 /* We use char because int might match the return type of a gcc2
65032 builtin and then its argument prototype would still apply. */
65033 char iconv ();
65034 int
65035 main ()
65036 {
65037 iconv ();
65038 ;
65039 return 0;
65040 }
65041 _ACEOF
65042 rm -f conftest.$ac_objext conftest$ac_exeext
65043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65044 (eval $ac_link) 2>conftest.er1
65045 ac_status=$?
65046 grep -v '^ *+' conftest.er1 >conftest.err
65047 rm -f conftest.er1
65048 cat conftest.err >&5
65049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65050 (exit $ac_status); } &&
65051 { ac_try='test -z "$ac_c_werror_flag"
65052 || test ! -s conftest.err'
65053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65054 (eval $ac_try) 2>&5
65055 ac_status=$?
65056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65057 (exit $ac_status); }; } &&
65058 { ac_try='test -s conftest$ac_exeext'
65059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65060 (eval $ac_try) 2>&5
65061 ac_status=$?
65062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65063 (exit $ac_status); }; }; then
65064 ac_cv_lib_iconv_iconv=yes
65065 else
65066 echo "$as_me: failed program was:" >&5
65067 sed 's/^/| /' conftest.$ac_ext >&5
65068
65069 ac_cv_lib_iconv_iconv=no
65070 fi
65071 rm -f conftest.err conftest.$ac_objext \
65072 conftest$ac_exeext conftest.$ac_ext
65073 LIBS=$ac_check_lib_save_LIBS
65074 fi
65075 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
65076 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
65077 if test $ac_cv_lib_iconv_iconv = yes; then
65078 LIBICONV="-liconv"
65079 fi
65080
65081 ac_save_LIBS="$LIBS"
65082 LIBS="$LIBS $LIBICONV"
65083
65084
65085
65086
65087
65088
65089 for ac_func in iconv_open iconv_close iconv nl_langinfo
65090 do
65091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65092 echo "$as_me:$LINENO: checking for $ac_func" >&5
65093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65094 if eval "test \"\${$as_ac_var+set}\" = set"; then
65095 echo $ECHO_N "(cached) $ECHO_C" >&6
65096 else
65097 if test x$gcc_no_link = xyes; then
65098 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65099 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65100 { (exit 1); exit 1; }; }
65101 fi
65102 cat >conftest.$ac_ext <<_ACEOF
65103 /* confdefs.h. */
65104 _ACEOF
65105 cat confdefs.h >>conftest.$ac_ext
65106 cat >>conftest.$ac_ext <<_ACEOF
65107 /* end confdefs.h. */
65108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65110 #define $ac_func innocuous_$ac_func
65111
65112 /* System header to define __stub macros and hopefully few prototypes,
65113 which can conflict with char $ac_func (); below.
65114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65115 <limits.h> exists even on freestanding compilers. */
65116
65117 #ifdef __STDC__
65118 # include <limits.h>
65119 #else
65120 # include <assert.h>
65121 #endif
65122
65123 #undef $ac_func
65124
65125 /* Override any gcc2 internal prototype to avoid an error. */
65126 #ifdef __cplusplus
65127 extern "C"
65128 {
65129 #endif
65130 /* We use char because int might match the return type of a gcc2
65131 builtin and then its argument prototype would still apply. */
65132 char $ac_func ();
65133 /* The GNU C library defines this for functions which it implements
65134 to always fail with ENOSYS. Some functions are actually named
65135 something starting with __ and the normal name is an alias. */
65136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65137 choke me
65138 #else
65139 char (*f) () = $ac_func;
65140 #endif
65141 #ifdef __cplusplus
65142 }
65143 #endif
65144
65145 int
65146 main ()
65147 {
65148 return f != $ac_func;
65149 ;
65150 return 0;
65151 }
65152 _ACEOF
65153 rm -f conftest.$ac_objext conftest$ac_exeext
65154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65155 (eval $ac_link) 2>conftest.er1
65156 ac_status=$?
65157 grep -v '^ *+' conftest.er1 >conftest.err
65158 rm -f conftest.er1
65159 cat conftest.err >&5
65160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65161 (exit $ac_status); } &&
65162 { ac_try='test -z "$ac_c_werror_flag"
65163 || test ! -s conftest.err'
65164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65165 (eval $ac_try) 2>&5
65166 ac_status=$?
65167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65168 (exit $ac_status); }; } &&
65169 { ac_try='test -s conftest$ac_exeext'
65170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65171 (eval $ac_try) 2>&5
65172 ac_status=$?
65173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65174 (exit $ac_status); }; }; then
65175 eval "$as_ac_var=yes"
65176 else
65177 echo "$as_me: failed program was:" >&5
65178 sed 's/^/| /' conftest.$ac_ext >&5
65179
65180 eval "$as_ac_var=no"
65181 fi
65182 rm -f conftest.err conftest.$ac_objext \
65183 conftest$ac_exeext conftest.$ac_ext
65184 fi
65185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65187 if test `eval echo '${'$as_ac_var'}'` = yes; then
65188 cat >>confdefs.h <<_ACEOF
65189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65190 _ACEOF
65191 ac_XPG2funcs=yes
65192 else
65193 ac_XPG2funcs=no
65194 fi
65195 done
65196
65197
65198 LIBS="$ac_save_LIBS"
65199
65200 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
65201 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
65202 if test x"$ac_has_iconv_h" = xyes &&
65203 test x"$ac_has_langinfo_h" = xyes &&
65204 test x"$ac_XPG2funcs" = xyes;
65205 then
65206 ac_XPG2_wchar_t=yes
65207 else
65208 ac_XPG2_wchar_t=no
65209 fi
65210 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
65211 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
65212
65213 # At the moment, only enable wchar_t specializations if all the
65214 # above support is present.
65215 if test x"$ac_isoC99_wchar_t" = xyes &&
65216 test x"$ac_XPG2_wchar_t" = xyes;
65217 then
65218 cat >>confdefs.h <<\_ACEOF
65219 #define _GLIBCXX_USE_WCHAR_T 1
65220 _ACEOF
65221
65222 enable_wchar_t=yes
65223 fi
65224 fi
65225 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
65226 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
65227 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
65228 echo "${ECHO_T}$enable_wchar_t" >&6
65229
65230 cat >>confdefs.h <<\_ACEOF
65231 #define HAVE_COPYSIGN 1
65232 _ACEOF
65233
65234 cat >>confdefs.h <<\_ACEOF
65235 #define HAVE_COPYSIGNF 1
65236 _ACEOF
65237
65238 cat >>confdefs.h <<\_ACEOF
65239 #define HAVE_FINITEF 1
65240 _ACEOF
65241
65242 cat >>confdefs.h <<\_ACEOF
65243 #define HAVE_FINITE 1
65244 _ACEOF
65245
65246 cat >>confdefs.h <<\_ACEOF
65247 #define HAVE_FREXPF 1
65248 _ACEOF
65249
65250 cat >>confdefs.h <<\_ACEOF
65251 #define HAVE_HYPOTF 1
65252 _ACEOF
65253
65254 cat >>confdefs.h <<\_ACEOF
65255 #define HAVE_ISINF 1
65256 _ACEOF
65257
65258 cat >>confdefs.h <<\_ACEOF
65259 #define HAVE_ISINFF 1
65260 _ACEOF
65261
65262 cat >>confdefs.h <<\_ACEOF
65263 #define HAVE_ISNAN 1
65264 _ACEOF
65265
65266 cat >>confdefs.h <<\_ACEOF
65267 #define HAVE_ISNANF 1
65268 _ACEOF
65269
65270 if test x"long_double_math_on_this_cpu" = x"yes"; then
65271 cat >>confdefs.h <<\_ACEOF
65272 #define HAVE_FINITEL 1
65273 _ACEOF
65274
65275 cat >>confdefs.h <<\_ACEOF
65276 #define HAVE_ISINFL 1
65277 _ACEOF
65278
65279 cat >>confdefs.h <<\_ACEOF
65280 #define HAVE_ISNANL 1
65281 _ACEOF
65282
65283 fi
65284 ;;
65285 *-qnx6.1* | *-qnx6.2*)
65286 SECTION_FLAGS='-ffunction-sections -fdata-sections'
65287
65288
65289 # If we're not using GNU ld, then there's no point in even trying these
65290 # tests. Check for that first. We should have already tested for gld
65291 # by now (in libtool), but require it now just to be safe...
65292 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
65293 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
65294
65295
65296
65297 # The name set by libtool depends on the version of libtool. Shame on us
65298 # for depending on an impl detail, but c'est la vie. Older versions used
65299 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
65300 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
65301 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
65302 # set (hence we're using an older libtool), then set it.
65303 if test x${with_gnu_ld+set} != xset; then
65304 if test x${ac_cv_prog_gnu_ld+set} != xset; then
65305 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
65306 with_gnu_ld=no
65307 else
65308 with_gnu_ld=$ac_cv_prog_gnu_ld
65309 fi
65310 fi
65311
65312 # Start by getting the version number. I think the libtool test already
65313 # does some of this, but throws away the result.
65314
65315 ldver=`$LD --version 2>/dev/null | head -1 | \
65316 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
65317
65318 glibcxx_gnu_ld_version=`echo $ldver | \
65319 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
65320
65321 # Set --gc-sections.
65322 if test "$with_gnu_ld" = "notbroken"; then
65323 # GNU ld it is! Joy and bunny rabbits!
65324
65325 # All these tests are for C++; save the language and the compiler flags.
65326 # Need to do this so that g++ won't try to link in libstdc++
65327 ac_test_CFLAGS="${CFLAGS+set}"
65328 ac_save_CFLAGS="$CFLAGS"
65329 CFLAGS='-x c++ -Wl,--gc-sections'
65330
65331 # Check for -Wl,--gc-sections
65332 # XXX This test is broken at the moment, as symbols required for linking
65333 # are now in libsupc++ (not built yet). In addition, this test has
65334 # cored on solaris in the past. In addition, --gc-sections doesn't
65335 # really work at the moment (keeps on discarding used sections, first
65336 # .eh_frame and now some of the glibc sections for iconv).
65337 # Bzzzzt. Thanks for playing, maybe next time.
65338 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
65339 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
65340 if test "$cross_compiling" = yes; then
65341 ac_sectionLDflags=yes
65342 else
65343 cat >conftest.$ac_ext <<_ACEOF
65344 /* confdefs.h. */
65345 _ACEOF
65346 cat confdefs.h >>conftest.$ac_ext
65347 cat >>conftest.$ac_ext <<_ACEOF
65348 /* end confdefs.h. */
65349
65350 int main(void)
65351 {
65352 try { throw 1; }
65353 catch (...) { };
65354 return 0;
65355 }
65356
65357 _ACEOF
65358 rm -f conftest$ac_exeext
65359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65360 (eval $ac_link) 2>&5
65361 ac_status=$?
65362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
65364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65365 (eval $ac_try) 2>&5
65366 ac_status=$?
65367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65368 (exit $ac_status); }; }; then
65369 ac_sectionLDflags=yes
65370 else
65371 echo "$as_me: program exited with status $ac_status" >&5
65372 echo "$as_me: failed program was:" >&5
65373 sed 's/^/| /' conftest.$ac_ext >&5
65374
65375 ( exit $ac_status )
65376 ac_sectionLDflags=no
65377 fi
65378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
65379 fi
65380 if test "$ac_test_CFLAGS" = set; then
65381 CFLAGS="$ac_save_CFLAGS"
65382 else
65383 # this is the suspicious part
65384 CFLAGS=''
65385 fi
65386 if test "$ac_sectionLDflags" = "yes"; then
65387 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
65388 fi
65389 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
65390 echo "${ECHO_T}$ac_sectionLDflags" >&6
65391 fi
65392
65393 # Set linker optimization flags.
65394 if test x"$with_gnu_ld" = x"yes"; then
65395 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
65396 fi
65397
65398
65399
65400
65401
65402
65403 echo "$as_me:$LINENO: checking for main in -lm" >&5
65404 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
65405 if test "${ac_cv_lib_m_main+set}" = set; then
65406 echo $ECHO_N "(cached) $ECHO_C" >&6
65407 else
65408 ac_check_lib_save_LIBS=$LIBS
65409 LIBS="-lm $LIBS"
65410 if test x$gcc_no_link = xyes; then
65411 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65413 { (exit 1); exit 1; }; }
65414 fi
65415 cat >conftest.$ac_ext <<_ACEOF
65416 /* confdefs.h. */
65417 _ACEOF
65418 cat confdefs.h >>conftest.$ac_ext
65419 cat >>conftest.$ac_ext <<_ACEOF
65420 /* end confdefs.h. */
65421
65422
65423 int
65424 main ()
65425 {
65426 main ();
65427 ;
65428 return 0;
65429 }
65430 _ACEOF
65431 rm -f conftest.$ac_objext conftest$ac_exeext
65432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65433 (eval $ac_link) 2>conftest.er1
65434 ac_status=$?
65435 grep -v '^ *+' conftest.er1 >conftest.err
65436 rm -f conftest.er1
65437 cat conftest.err >&5
65438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65439 (exit $ac_status); } &&
65440 { ac_try='test -z "$ac_c_werror_flag"
65441 || test ! -s conftest.err'
65442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65443 (eval $ac_try) 2>&5
65444 ac_status=$?
65445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65446 (exit $ac_status); }; } &&
65447 { ac_try='test -s conftest$ac_exeext'
65448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65449 (eval $ac_try) 2>&5
65450 ac_status=$?
65451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65452 (exit $ac_status); }; }; then
65453 ac_cv_lib_m_main=yes
65454 else
65455 echo "$as_me: failed program was:" >&5
65456 sed 's/^/| /' conftest.$ac_ext >&5
65457
65458 ac_cv_lib_m_main=no
65459 fi
65460 rm -f conftest.err conftest.$ac_objext \
65461 conftest$ac_exeext conftest.$ac_ext
65462 LIBS=$ac_check_lib_save_LIBS
65463 fi
65464 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
65465 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
65466 if test $ac_cv_lib_m_main = yes; then
65467 cat >>confdefs.h <<_ACEOF
65468 #define HAVE_LIBM 1
65469 _ACEOF
65470
65471 LIBS="-lm $LIBS"
65472
65473 fi
65474
65475
65476 for ac_func in copysignf
65477 do
65478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65479 echo "$as_me:$LINENO: checking for $ac_func" >&5
65480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65481 if eval "test \"\${$as_ac_var+set}\" = set"; then
65482 echo $ECHO_N "(cached) $ECHO_C" >&6
65483 else
65484 if test x$gcc_no_link = xyes; then
65485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65486 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65487 { (exit 1); exit 1; }; }
65488 fi
65489 cat >conftest.$ac_ext <<_ACEOF
65490 /* confdefs.h. */
65491 _ACEOF
65492 cat confdefs.h >>conftest.$ac_ext
65493 cat >>conftest.$ac_ext <<_ACEOF
65494 /* end confdefs.h. */
65495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65497 #define $ac_func innocuous_$ac_func
65498
65499 /* System header to define __stub macros and hopefully few prototypes,
65500 which can conflict with char $ac_func (); below.
65501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65502 <limits.h> exists even on freestanding compilers. */
65503
65504 #ifdef __STDC__
65505 # include <limits.h>
65506 #else
65507 # include <assert.h>
65508 #endif
65509
65510 #undef $ac_func
65511
65512 /* Override any gcc2 internal prototype to avoid an error. */
65513 #ifdef __cplusplus
65514 extern "C"
65515 {
65516 #endif
65517 /* We use char because int might match the return type of a gcc2
65518 builtin and then its argument prototype would still apply. */
65519 char $ac_func ();
65520 /* The GNU C library defines this for functions which it implements
65521 to always fail with ENOSYS. Some functions are actually named
65522 something starting with __ and the normal name is an alias. */
65523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65524 choke me
65525 #else
65526 char (*f) () = $ac_func;
65527 #endif
65528 #ifdef __cplusplus
65529 }
65530 #endif
65531
65532 int
65533 main ()
65534 {
65535 return f != $ac_func;
65536 ;
65537 return 0;
65538 }
65539 _ACEOF
65540 rm -f conftest.$ac_objext conftest$ac_exeext
65541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65542 (eval $ac_link) 2>conftest.er1
65543 ac_status=$?
65544 grep -v '^ *+' conftest.er1 >conftest.err
65545 rm -f conftest.er1
65546 cat conftest.err >&5
65547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65548 (exit $ac_status); } &&
65549 { ac_try='test -z "$ac_c_werror_flag"
65550 || test ! -s conftest.err'
65551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65552 (eval $ac_try) 2>&5
65553 ac_status=$?
65554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65555 (exit $ac_status); }; } &&
65556 { ac_try='test -s conftest$ac_exeext'
65557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65558 (eval $ac_try) 2>&5
65559 ac_status=$?
65560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65561 (exit $ac_status); }; }; then
65562 eval "$as_ac_var=yes"
65563 else
65564 echo "$as_me: failed program was:" >&5
65565 sed 's/^/| /' conftest.$ac_ext >&5
65566
65567 eval "$as_ac_var=no"
65568 fi
65569 rm -f conftest.err conftest.$ac_objext \
65570 conftest$ac_exeext conftest.$ac_ext
65571 fi
65572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65574 if test `eval echo '${'$as_ac_var'}'` = yes; then
65575 cat >>confdefs.h <<_ACEOF
65576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65577 _ACEOF
65578
65579 else
65580 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
65581 fi
65582 done
65583
65584
65585
65586 for ac_func in __signbit
65587 do
65588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65589 echo "$as_me:$LINENO: checking for $ac_func" >&5
65590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65591 if eval "test \"\${$as_ac_var+set}\" = set"; then
65592 echo $ECHO_N "(cached) $ECHO_C" >&6
65593 else
65594 if test x$gcc_no_link = xyes; then
65595 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65597 { (exit 1); exit 1; }; }
65598 fi
65599 cat >conftest.$ac_ext <<_ACEOF
65600 /* confdefs.h. */
65601 _ACEOF
65602 cat confdefs.h >>conftest.$ac_ext
65603 cat >>conftest.$ac_ext <<_ACEOF
65604 /* end confdefs.h. */
65605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65607 #define $ac_func innocuous_$ac_func
65608
65609 /* System header to define __stub macros and hopefully few prototypes,
65610 which can conflict with char $ac_func (); below.
65611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65612 <limits.h> exists even on freestanding compilers. */
65613
65614 #ifdef __STDC__
65615 # include <limits.h>
65616 #else
65617 # include <assert.h>
65618 #endif
65619
65620 #undef $ac_func
65621
65622 /* Override any gcc2 internal prototype to avoid an error. */
65623 #ifdef __cplusplus
65624 extern "C"
65625 {
65626 #endif
65627 /* We use char because int might match the return type of a gcc2
65628 builtin and then its argument prototype would still apply. */
65629 char $ac_func ();
65630 /* The GNU C library defines this for functions which it implements
65631 to always fail with ENOSYS. Some functions are actually named
65632 something starting with __ and the normal name is an alias. */
65633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65634 choke me
65635 #else
65636 char (*f) () = $ac_func;
65637 #endif
65638 #ifdef __cplusplus
65639 }
65640 #endif
65641
65642 int
65643 main ()
65644 {
65645 return f != $ac_func;
65646 ;
65647 return 0;
65648 }
65649 _ACEOF
65650 rm -f conftest.$ac_objext conftest$ac_exeext
65651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65652 (eval $ac_link) 2>conftest.er1
65653 ac_status=$?
65654 grep -v '^ *+' conftest.er1 >conftest.err
65655 rm -f conftest.er1
65656 cat conftest.err >&5
65657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65658 (exit $ac_status); } &&
65659 { ac_try='test -z "$ac_c_werror_flag"
65660 || test ! -s conftest.err'
65661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65662 (eval $ac_try) 2>&5
65663 ac_status=$?
65664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65665 (exit $ac_status); }; } &&
65666 { ac_try='test -s conftest$ac_exeext'
65667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65668 (eval $ac_try) 2>&5
65669 ac_status=$?
65670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65671 (exit $ac_status); }; }; then
65672 eval "$as_ac_var=yes"
65673 else
65674 echo "$as_me: failed program was:" >&5
65675 sed 's/^/| /' conftest.$ac_ext >&5
65676
65677 eval "$as_ac_var=no"
65678 fi
65679 rm -f conftest.err conftest.$ac_objext \
65680 conftest$ac_exeext conftest.$ac_ext
65681 fi
65682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65684 if test `eval echo '${'$as_ac_var'}'` = yes; then
65685 cat >>confdefs.h <<_ACEOF
65686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65687 _ACEOF
65688
65689 else
65690 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
65691 fi
65692 done
65693
65694
65695
65696 for ac_func in __signbitf
65697 do
65698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65699 echo "$as_me:$LINENO: checking for $ac_func" >&5
65700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65701 if eval "test \"\${$as_ac_var+set}\" = set"; then
65702 echo $ECHO_N "(cached) $ECHO_C" >&6
65703 else
65704 if test x$gcc_no_link = xyes; then
65705 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65706 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65707 { (exit 1); exit 1; }; }
65708 fi
65709 cat >conftest.$ac_ext <<_ACEOF
65710 /* confdefs.h. */
65711 _ACEOF
65712 cat confdefs.h >>conftest.$ac_ext
65713 cat >>conftest.$ac_ext <<_ACEOF
65714 /* end confdefs.h. */
65715 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65717 #define $ac_func innocuous_$ac_func
65718
65719 /* System header to define __stub macros and hopefully few prototypes,
65720 which can conflict with char $ac_func (); below.
65721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65722 <limits.h> exists even on freestanding compilers. */
65723
65724 #ifdef __STDC__
65725 # include <limits.h>
65726 #else
65727 # include <assert.h>
65728 #endif
65729
65730 #undef $ac_func
65731
65732 /* Override any gcc2 internal prototype to avoid an error. */
65733 #ifdef __cplusplus
65734 extern "C"
65735 {
65736 #endif
65737 /* We use char because int might match the return type of a gcc2
65738 builtin and then its argument prototype would still apply. */
65739 char $ac_func ();
65740 /* The GNU C library defines this for functions which it implements
65741 to always fail with ENOSYS. Some functions are actually named
65742 something starting with __ and the normal name is an alias. */
65743 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65744 choke me
65745 #else
65746 char (*f) () = $ac_func;
65747 #endif
65748 #ifdef __cplusplus
65749 }
65750 #endif
65751
65752 int
65753 main ()
65754 {
65755 return f != $ac_func;
65756 ;
65757 return 0;
65758 }
65759 _ACEOF
65760 rm -f conftest.$ac_objext conftest$ac_exeext
65761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65762 (eval $ac_link) 2>conftest.er1
65763 ac_status=$?
65764 grep -v '^ *+' conftest.er1 >conftest.err
65765 rm -f conftest.er1
65766 cat conftest.err >&5
65767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65768 (exit $ac_status); } &&
65769 { ac_try='test -z "$ac_c_werror_flag"
65770 || test ! -s conftest.err'
65771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65772 (eval $ac_try) 2>&5
65773 ac_status=$?
65774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65775 (exit $ac_status); }; } &&
65776 { ac_try='test -s conftest$ac_exeext'
65777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65778 (eval $ac_try) 2>&5
65779 ac_status=$?
65780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65781 (exit $ac_status); }; }; then
65782 eval "$as_ac_var=yes"
65783 else
65784 echo "$as_me: failed program was:" >&5
65785 sed 's/^/| /' conftest.$ac_ext >&5
65786
65787 eval "$as_ac_var=no"
65788 fi
65789 rm -f conftest.err conftest.$ac_objext \
65790 conftest$ac_exeext conftest.$ac_ext
65791 fi
65792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65794 if test `eval echo '${'$as_ac_var'}'` = yes; then
65795 cat >>confdefs.h <<_ACEOF
65796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65797 _ACEOF
65798
65799 else
65800 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
65801 fi
65802 done
65803
65804
65805 if test x$ac_cv_func_copysignl = x"yes"; then
65806
65807 for ac_func in __signbitl
65808 do
65809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65810 echo "$as_me:$LINENO: checking for $ac_func" >&5
65811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65812 if eval "test \"\${$as_ac_var+set}\" = set"; then
65813 echo $ECHO_N "(cached) $ECHO_C" >&6
65814 else
65815 if test x$gcc_no_link = xyes; then
65816 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65817 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65818 { (exit 1); exit 1; }; }
65819 fi
65820 cat >conftest.$ac_ext <<_ACEOF
65821 /* confdefs.h. */
65822 _ACEOF
65823 cat confdefs.h >>conftest.$ac_ext
65824 cat >>conftest.$ac_ext <<_ACEOF
65825 /* end confdefs.h. */
65826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
65828 #define $ac_func innocuous_$ac_func
65829
65830 /* System header to define __stub macros and hopefully few prototypes,
65831 which can conflict with char $ac_func (); below.
65832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65833 <limits.h> exists even on freestanding compilers. */
65834
65835 #ifdef __STDC__
65836 # include <limits.h>
65837 #else
65838 # include <assert.h>
65839 #endif
65840
65841 #undef $ac_func
65842
65843 /* Override any gcc2 internal prototype to avoid an error. */
65844 #ifdef __cplusplus
65845 extern "C"
65846 {
65847 #endif
65848 /* We use char because int might match the return type of a gcc2
65849 builtin and then its argument prototype would still apply. */
65850 char $ac_func ();
65851 /* The GNU C library defines this for functions which it implements
65852 to always fail with ENOSYS. Some functions are actually named
65853 something starting with __ and the normal name is an alias. */
65854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65855 choke me
65856 #else
65857 char (*f) () = $ac_func;
65858 #endif
65859 #ifdef __cplusplus
65860 }
65861 #endif
65862
65863 int
65864 main ()
65865 {
65866 return f != $ac_func;
65867 ;
65868 return 0;
65869 }
65870 _ACEOF
65871 rm -f conftest.$ac_objext conftest$ac_exeext
65872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65873 (eval $ac_link) 2>conftest.er1
65874 ac_status=$?
65875 grep -v '^ *+' conftest.er1 >conftest.err
65876 rm -f conftest.er1
65877 cat conftest.err >&5
65878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65879 (exit $ac_status); } &&
65880 { ac_try='test -z "$ac_c_werror_flag"
65881 || test ! -s conftest.err'
65882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65883 (eval $ac_try) 2>&5
65884 ac_status=$?
65885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65886 (exit $ac_status); }; } &&
65887 { ac_try='test -s conftest$ac_exeext'
65888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65889 (eval $ac_try) 2>&5
65890 ac_status=$?
65891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65892 (exit $ac_status); }; }; then
65893 eval "$as_ac_var=yes"
65894 else
65895 echo "$as_me: failed program was:" >&5
65896 sed 's/^/| /' conftest.$ac_ext >&5
65897
65898 eval "$as_ac_var=no"
65899 fi
65900 rm -f conftest.err conftest.$ac_objext \
65901 conftest$ac_exeext conftest.$ac_ext
65902 fi
65903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65905 if test `eval echo '${'$as_ac_var'}'` = yes; then
65906 cat >>confdefs.h <<_ACEOF
65907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65908 _ACEOF
65909
65910 else
65911 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
65912 fi
65913 done
65914
65915 fi
65916
65917 # Used in libmath/Makefile.am.
65918 if test -n "$LIBMATHOBJS"; then
65919 need_libmath=yes
65920 fi
65921
65922
65923
65924 # Test wchar.h for mbstate_t, which is needed for char_traits and
65925 # others even if wchar_t support is not on.
65926 echo "$as_me:$LINENO: checking for mbstate_t" >&5
65927 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
65928 cat >conftest.$ac_ext <<_ACEOF
65929 /* confdefs.h. */
65930 _ACEOF
65931 cat confdefs.h >>conftest.$ac_ext
65932 cat >>conftest.$ac_ext <<_ACEOF
65933 /* end confdefs.h. */
65934 #include <wchar.h>
65935 int
65936 main ()
65937 {
65938 mbstate_t teststate;
65939 ;
65940 return 0;
65941 }
65942 _ACEOF
65943 rm -f conftest.$ac_objext
65944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65945 (eval $ac_compile) 2>conftest.er1
65946 ac_status=$?
65947 grep -v '^ *+' conftest.er1 >conftest.err
65948 rm -f conftest.er1
65949 cat conftest.err >&5
65950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65951 (exit $ac_status); } &&
65952 { ac_try='test -z "$ac_c_werror_flag"
65953 || test ! -s conftest.err'
65954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65955 (eval $ac_try) 2>&5
65956 ac_status=$?
65957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65958 (exit $ac_status); }; } &&
65959 { ac_try='test -s conftest.$ac_objext'
65960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65961 (eval $ac_try) 2>&5
65962 ac_status=$?
65963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
65964 (exit $ac_status); }; }; then
65965 have_mbstate_t=yes
65966 else
65967 echo "$as_me: failed program was:" >&5
65968 sed 's/^/| /' conftest.$ac_ext >&5
65969
65970 have_mbstate_t=no
65971 fi
65972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65973 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
65974 echo "${ECHO_T}$have_mbstate_t" >&6
65975 if test x"$have_mbstate_t" = xyes; then
65976 cat >>confdefs.h <<\_ACEOF
65977 #define HAVE_MBSTATE_T 1
65978 _ACEOF
65979
65980 fi
65981
65982 # Sanity check for existence of ISO C99 headers for extended encoding.
65983
65984 for ac_header in wchar.h
65985 do
65986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
65987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
65988 echo "$as_me:$LINENO: checking for $ac_header" >&5
65989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
65990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
65991 echo $ECHO_N "(cached) $ECHO_C" >&6
65992 fi
65993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
65994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
65995 else
65996 # Is the header compilable?
65997 echo "$as_me:$LINENO: checking $ac_header usability" >&5
65998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
65999 cat >conftest.$ac_ext <<_ACEOF
66000 /* confdefs.h. */
66001 _ACEOF
66002 cat confdefs.h >>conftest.$ac_ext
66003 cat >>conftest.$ac_ext <<_ACEOF
66004 /* end confdefs.h. */
66005 $ac_includes_default
66006 #include <$ac_header>
66007 _ACEOF
66008 rm -f conftest.$ac_objext
66009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66010 (eval $ac_compile) 2>conftest.er1
66011 ac_status=$?
66012 grep -v '^ *+' conftest.er1 >conftest.err
66013 rm -f conftest.er1
66014 cat conftest.err >&5
66015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66016 (exit $ac_status); } &&
66017 { ac_try='test -z "$ac_c_werror_flag"
66018 || test ! -s conftest.err'
66019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66020 (eval $ac_try) 2>&5
66021 ac_status=$?
66022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66023 (exit $ac_status); }; } &&
66024 { ac_try='test -s conftest.$ac_objext'
66025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66026 (eval $ac_try) 2>&5
66027 ac_status=$?
66028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66029 (exit $ac_status); }; }; then
66030 ac_header_compiler=yes
66031 else
66032 echo "$as_me: failed program was:" >&5
66033 sed 's/^/| /' conftest.$ac_ext >&5
66034
66035 ac_header_compiler=no
66036 fi
66037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66039 echo "${ECHO_T}$ac_header_compiler" >&6
66040
66041 # Is the header present?
66042 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66044 cat >conftest.$ac_ext <<_ACEOF
66045 /* confdefs.h. */
66046 _ACEOF
66047 cat confdefs.h >>conftest.$ac_ext
66048 cat >>conftest.$ac_ext <<_ACEOF
66049 /* end confdefs.h. */
66050 #include <$ac_header>
66051 _ACEOF
66052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66054 ac_status=$?
66055 grep -v '^ *+' conftest.er1 >conftest.err
66056 rm -f conftest.er1
66057 cat conftest.err >&5
66058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66059 (exit $ac_status); } >/dev/null; then
66060 if test -s conftest.err; then
66061 ac_cpp_err=$ac_c_preproc_warn_flag
66062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66063 else
66064 ac_cpp_err=
66065 fi
66066 else
66067 ac_cpp_err=yes
66068 fi
66069 if test -z "$ac_cpp_err"; then
66070 ac_header_preproc=yes
66071 else
66072 echo "$as_me: failed program was:" >&5
66073 sed 's/^/| /' conftest.$ac_ext >&5
66074
66075 ac_header_preproc=no
66076 fi
66077 rm -f conftest.err conftest.$ac_ext
66078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66079 echo "${ECHO_T}$ac_header_preproc" >&6
66080
66081 # So? What about this header?
66082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66083 yes:no: )
66084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66088 ac_header_preproc=yes
66089 ;;
66090 no:yes:* )
66091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66103 (
66104 cat <<\_ASBOX
66105 ## ----------------------------------------- ##
66106 ## Report this to the package-unused lists. ##
66107 ## ----------------------------------------- ##
66108 _ASBOX
66109 ) |
66110 sed "s/^/$as_me: WARNING: /" >&2
66111 ;;
66112 esac
66113 echo "$as_me:$LINENO: checking for $ac_header" >&5
66114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66116 echo $ECHO_N "(cached) $ECHO_C" >&6
66117 else
66118 eval "$as_ac_Header=\$ac_header_preproc"
66119 fi
66120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66122
66123 fi
66124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66125 cat >>confdefs.h <<_ACEOF
66126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66127 _ACEOF
66128 ac_has_wchar_h=yes
66129 else
66130 ac_has_wchar_h=no
66131 fi
66132
66133 done
66134
66135
66136 for ac_header in wctype.h
66137 do
66138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66140 echo "$as_me:$LINENO: checking for $ac_header" >&5
66141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66143 echo $ECHO_N "(cached) $ECHO_C" >&6
66144 fi
66145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66147 else
66148 # Is the header compilable?
66149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
66150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
66151 cat >conftest.$ac_ext <<_ACEOF
66152 /* confdefs.h. */
66153 _ACEOF
66154 cat confdefs.h >>conftest.$ac_ext
66155 cat >>conftest.$ac_ext <<_ACEOF
66156 /* end confdefs.h. */
66157 $ac_includes_default
66158 #include <$ac_header>
66159 _ACEOF
66160 rm -f conftest.$ac_objext
66161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66162 (eval $ac_compile) 2>conftest.er1
66163 ac_status=$?
66164 grep -v '^ *+' conftest.er1 >conftest.err
66165 rm -f conftest.er1
66166 cat conftest.err >&5
66167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66168 (exit $ac_status); } &&
66169 { ac_try='test -z "$ac_c_werror_flag"
66170 || test ! -s conftest.err'
66171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66172 (eval $ac_try) 2>&5
66173 ac_status=$?
66174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66175 (exit $ac_status); }; } &&
66176 { ac_try='test -s conftest.$ac_objext'
66177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66178 (eval $ac_try) 2>&5
66179 ac_status=$?
66180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66181 (exit $ac_status); }; }; then
66182 ac_header_compiler=yes
66183 else
66184 echo "$as_me: failed program was:" >&5
66185 sed 's/^/| /' conftest.$ac_ext >&5
66186
66187 ac_header_compiler=no
66188 fi
66189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66191 echo "${ECHO_T}$ac_header_compiler" >&6
66192
66193 # Is the header present?
66194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66196 cat >conftest.$ac_ext <<_ACEOF
66197 /* confdefs.h. */
66198 _ACEOF
66199 cat confdefs.h >>conftest.$ac_ext
66200 cat >>conftest.$ac_ext <<_ACEOF
66201 /* end confdefs.h. */
66202 #include <$ac_header>
66203 _ACEOF
66204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66206 ac_status=$?
66207 grep -v '^ *+' conftest.er1 >conftest.err
66208 rm -f conftest.er1
66209 cat conftest.err >&5
66210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66211 (exit $ac_status); } >/dev/null; then
66212 if test -s conftest.err; then
66213 ac_cpp_err=$ac_c_preproc_warn_flag
66214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66215 else
66216 ac_cpp_err=
66217 fi
66218 else
66219 ac_cpp_err=yes
66220 fi
66221 if test -z "$ac_cpp_err"; then
66222 ac_header_preproc=yes
66223 else
66224 echo "$as_me: failed program was:" >&5
66225 sed 's/^/| /' conftest.$ac_ext >&5
66226
66227 ac_header_preproc=no
66228 fi
66229 rm -f conftest.err conftest.$ac_ext
66230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66231 echo "${ECHO_T}$ac_header_preproc" >&6
66232
66233 # So? What about this header?
66234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66235 yes:no: )
66236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66240 ac_header_preproc=yes
66241 ;;
66242 no:yes:* )
66243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
66246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
66247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
66250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
66251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66255 (
66256 cat <<\_ASBOX
66257 ## ----------------------------------------- ##
66258 ## Report this to the package-unused lists. ##
66259 ## ----------------------------------------- ##
66260 _ASBOX
66261 ) |
66262 sed "s/^/$as_me: WARNING: /" >&2
66263 ;;
66264 esac
66265 echo "$as_me:$LINENO: checking for $ac_header" >&5
66266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66268 echo $ECHO_N "(cached) $ECHO_C" >&6
66269 else
66270 eval "$as_ac_Header=\$ac_header_preproc"
66271 fi
66272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66274
66275 fi
66276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66277 cat >>confdefs.h <<_ACEOF
66278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66279 _ACEOF
66280 ac_has_wctype_h=yes
66281 else
66282 ac_has_wctype_h=no
66283 fi
66284
66285 done
66286
66287
66288 # Only continue checking if the ISO C99 headers exist and support is on.
66289 if test x"$ac_has_wchar_h" = xyes &&
66290 test x"$ac_has_wctype_h" = xyes &&
66291 test x"$enable_c_mbchar" != xno; then
66292
66293 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
66294 # numeric_limits can instantiate type_traits<wchar_t>
66295 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
66296 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
66297 cat >conftest.$ac_ext <<_ACEOF
66298 /* confdefs.h. */
66299 _ACEOF
66300 cat confdefs.h >>conftest.$ac_ext
66301 cat >>conftest.$ac_ext <<_ACEOF
66302 /* end confdefs.h. */
66303 #include <wchar.h>
66304 int
66305 main ()
66306 {
66307 int i = WCHAR_MIN; int j = WCHAR_MAX;
66308 ;
66309 return 0;
66310 }
66311 _ACEOF
66312 rm -f conftest.$ac_objext
66313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66314 (eval $ac_compile) 2>conftest.er1
66315 ac_status=$?
66316 grep -v '^ *+' conftest.er1 >conftest.err
66317 rm -f conftest.er1
66318 cat conftest.err >&5
66319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66320 (exit $ac_status); } &&
66321 { ac_try='test -z "$ac_c_werror_flag"
66322 || test ! -s conftest.err'
66323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66324 (eval $ac_try) 2>&5
66325 ac_status=$?
66326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66327 (exit $ac_status); }; } &&
66328 { ac_try='test -s conftest.$ac_objext'
66329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66330 (eval $ac_try) 2>&5
66331 ac_status=$?
66332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66333 (exit $ac_status); }; }; then
66334 has_wchar_minmax=yes
66335 else
66336 echo "$as_me: failed program was:" >&5
66337 sed 's/^/| /' conftest.$ac_ext >&5
66338
66339 has_wchar_minmax=no
66340 fi
66341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66342 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
66343 echo "${ECHO_T}$has_wchar_minmax" >&6
66344
66345 # Test wchar.h for WEOF, which is what we use to determine whether
66346 # to specialize for char_traits<wchar_t> or not.
66347 echo "$as_me:$LINENO: checking for WEOF" >&5
66348 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
66349 cat >conftest.$ac_ext <<_ACEOF
66350 /* confdefs.h. */
66351 _ACEOF
66352 cat confdefs.h >>conftest.$ac_ext
66353 cat >>conftest.$ac_ext <<_ACEOF
66354 /* end confdefs.h. */
66355
66356 #include <wchar.h>
66357 #include <stddef.h>
66358 int
66359 main ()
66360 {
66361 wint_t i = WEOF;
66362 ;
66363 return 0;
66364 }
66365 _ACEOF
66366 rm -f conftest.$ac_objext
66367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66368 (eval $ac_compile) 2>conftest.er1
66369 ac_status=$?
66370 grep -v '^ *+' conftest.er1 >conftest.err
66371 rm -f conftest.er1
66372 cat conftest.err >&5
66373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66374 (exit $ac_status); } &&
66375 { ac_try='test -z "$ac_c_werror_flag"
66376 || test ! -s conftest.err'
66377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66378 (eval $ac_try) 2>&5
66379 ac_status=$?
66380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66381 (exit $ac_status); }; } &&
66382 { ac_try='test -s conftest.$ac_objext'
66383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66384 (eval $ac_try) 2>&5
66385 ac_status=$?
66386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66387 (exit $ac_status); }; }; then
66388 has_weof=yes
66389 else
66390 echo "$as_me: failed program was:" >&5
66391 sed 's/^/| /' conftest.$ac_ext >&5
66392
66393 has_weof=no
66394 fi
66395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66396 echo "$as_me:$LINENO: result: $has_weof" >&5
66397 echo "${ECHO_T}$has_weof" >&6
66398
66399 # Tests for wide character functions used in char_traits<wchar_t>.
66400 ac_wfuncs=yes
66401
66402
66403
66404
66405
66406
66407 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
66408 do
66409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66410 echo "$as_me:$LINENO: checking for $ac_func" >&5
66411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66412 if eval "test \"\${$as_ac_var+set}\" = set"; then
66413 echo $ECHO_N "(cached) $ECHO_C" >&6
66414 else
66415 if test x$gcc_no_link = xyes; then
66416 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66417 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66418 { (exit 1); exit 1; }; }
66419 fi
66420 cat >conftest.$ac_ext <<_ACEOF
66421 /* confdefs.h. */
66422 _ACEOF
66423 cat confdefs.h >>conftest.$ac_ext
66424 cat >>conftest.$ac_ext <<_ACEOF
66425 /* end confdefs.h. */
66426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66428 #define $ac_func innocuous_$ac_func
66429
66430 /* System header to define __stub macros and hopefully few prototypes,
66431 which can conflict with char $ac_func (); below.
66432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66433 <limits.h> exists even on freestanding compilers. */
66434
66435 #ifdef __STDC__
66436 # include <limits.h>
66437 #else
66438 # include <assert.h>
66439 #endif
66440
66441 #undef $ac_func
66442
66443 /* Override any gcc2 internal prototype to avoid an error. */
66444 #ifdef __cplusplus
66445 extern "C"
66446 {
66447 #endif
66448 /* We use char because int might match the return type of a gcc2
66449 builtin and then its argument prototype would still apply. */
66450 char $ac_func ();
66451 /* The GNU C library defines this for functions which it implements
66452 to always fail with ENOSYS. Some functions are actually named
66453 something starting with __ and the normal name is an alias. */
66454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66455 choke me
66456 #else
66457 char (*f) () = $ac_func;
66458 #endif
66459 #ifdef __cplusplus
66460 }
66461 #endif
66462
66463 int
66464 main ()
66465 {
66466 return f != $ac_func;
66467 ;
66468 return 0;
66469 }
66470 _ACEOF
66471 rm -f conftest.$ac_objext conftest$ac_exeext
66472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66473 (eval $ac_link) 2>conftest.er1
66474 ac_status=$?
66475 grep -v '^ *+' conftest.er1 >conftest.err
66476 rm -f conftest.er1
66477 cat conftest.err >&5
66478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66479 (exit $ac_status); } &&
66480 { ac_try='test -z "$ac_c_werror_flag"
66481 || test ! -s conftest.err'
66482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66483 (eval $ac_try) 2>&5
66484 ac_status=$?
66485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66486 (exit $ac_status); }; } &&
66487 { ac_try='test -s conftest$ac_exeext'
66488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66489 (eval $ac_try) 2>&5
66490 ac_status=$?
66491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66492 (exit $ac_status); }; }; then
66493 eval "$as_ac_var=yes"
66494 else
66495 echo "$as_me: failed program was:" >&5
66496 sed 's/^/| /' conftest.$ac_ext >&5
66497
66498 eval "$as_ac_var=no"
66499 fi
66500 rm -f conftest.err conftest.$ac_objext \
66501 conftest$ac_exeext conftest.$ac_ext
66502 fi
66503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66505 if test `eval echo '${'$as_ac_var'}'` = yes; then
66506 cat >>confdefs.h <<_ACEOF
66507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66508 _ACEOF
66509
66510 else
66511 ac_wfuncs=no
66512 fi
66513 done
66514
66515
66516 # Checks for names injected into std:: by the c_std headers.
66517
66518
66519
66520
66521
66522
66523
66524
66525
66526
66527
66528
66529
66530
66531
66532
66533
66534
66535
66536
66537
66538
66539
66540
66541
66542
66543
66544
66545
66546
66547
66548
66549
66550
66551
66552
66553
66554
66555
66556
66557
66558
66559
66560
66561
66562
66563 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
66564 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
66565 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
66566 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
66567 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
66568 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
66569 do
66570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66571 echo "$as_me:$LINENO: checking for $ac_func" >&5
66572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66573 if eval "test \"\${$as_ac_var+set}\" = set"; then
66574 echo $ECHO_N "(cached) $ECHO_C" >&6
66575 else
66576 if test x$gcc_no_link = xyes; then
66577 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66579 { (exit 1); exit 1; }; }
66580 fi
66581 cat >conftest.$ac_ext <<_ACEOF
66582 /* confdefs.h. */
66583 _ACEOF
66584 cat confdefs.h >>conftest.$ac_ext
66585 cat >>conftest.$ac_ext <<_ACEOF
66586 /* end confdefs.h. */
66587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66589 #define $ac_func innocuous_$ac_func
66590
66591 /* System header to define __stub macros and hopefully few prototypes,
66592 which can conflict with char $ac_func (); below.
66593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66594 <limits.h> exists even on freestanding compilers. */
66595
66596 #ifdef __STDC__
66597 # include <limits.h>
66598 #else
66599 # include <assert.h>
66600 #endif
66601
66602 #undef $ac_func
66603
66604 /* Override any gcc2 internal prototype to avoid an error. */
66605 #ifdef __cplusplus
66606 extern "C"
66607 {
66608 #endif
66609 /* We use char because int might match the return type of a gcc2
66610 builtin and then its argument prototype would still apply. */
66611 char $ac_func ();
66612 /* The GNU C library defines this for functions which it implements
66613 to always fail with ENOSYS. Some functions are actually named
66614 something starting with __ and the normal name is an alias. */
66615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66616 choke me
66617 #else
66618 char (*f) () = $ac_func;
66619 #endif
66620 #ifdef __cplusplus
66621 }
66622 #endif
66623
66624 int
66625 main ()
66626 {
66627 return f != $ac_func;
66628 ;
66629 return 0;
66630 }
66631 _ACEOF
66632 rm -f conftest.$ac_objext conftest$ac_exeext
66633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66634 (eval $ac_link) 2>conftest.er1
66635 ac_status=$?
66636 grep -v '^ *+' conftest.er1 >conftest.err
66637 rm -f conftest.er1
66638 cat conftest.err >&5
66639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66640 (exit $ac_status); } &&
66641 { ac_try='test -z "$ac_c_werror_flag"
66642 || test ! -s conftest.err'
66643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66644 (eval $ac_try) 2>&5
66645 ac_status=$?
66646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66647 (exit $ac_status); }; } &&
66648 { ac_try='test -s conftest$ac_exeext'
66649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66650 (eval $ac_try) 2>&5
66651 ac_status=$?
66652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66653 (exit $ac_status); }; }; then
66654 eval "$as_ac_var=yes"
66655 else
66656 echo "$as_me: failed program was:" >&5
66657 sed 's/^/| /' conftest.$ac_ext >&5
66658
66659 eval "$as_ac_var=no"
66660 fi
66661 rm -f conftest.err conftest.$ac_objext \
66662 conftest$ac_exeext conftest.$ac_ext
66663 fi
66664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66666 if test `eval echo '${'$as_ac_var'}'` = yes; then
66667 cat >>confdefs.h <<_ACEOF
66668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66669 _ACEOF
66670
66671 else
66672 ac_wfuncs=no
66673 fi
66674 done
66675
66676
66677 # Checks for wide character functions that are not required
66678 # for basic wchar_t support. Don't disable support if they are missing.
66679 # Injection of these is wrapped with guard macros.
66680
66681
66682
66683
66684
66685 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
66686 do
66687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66688 echo "$as_me:$LINENO: checking for $ac_func" >&5
66689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66690 if eval "test \"\${$as_ac_var+set}\" = set"; then
66691 echo $ECHO_N "(cached) $ECHO_C" >&6
66692 else
66693 if test x$gcc_no_link = xyes; then
66694 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66695 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66696 { (exit 1); exit 1; }; }
66697 fi
66698 cat >conftest.$ac_ext <<_ACEOF
66699 /* confdefs.h. */
66700 _ACEOF
66701 cat confdefs.h >>conftest.$ac_ext
66702 cat >>conftest.$ac_ext <<_ACEOF
66703 /* end confdefs.h. */
66704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
66706 #define $ac_func innocuous_$ac_func
66707
66708 /* System header to define __stub macros and hopefully few prototypes,
66709 which can conflict with char $ac_func (); below.
66710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66711 <limits.h> exists even on freestanding compilers. */
66712
66713 #ifdef __STDC__
66714 # include <limits.h>
66715 #else
66716 # include <assert.h>
66717 #endif
66718
66719 #undef $ac_func
66720
66721 /* Override any gcc2 internal prototype to avoid an error. */
66722 #ifdef __cplusplus
66723 extern "C"
66724 {
66725 #endif
66726 /* We use char because int might match the return type of a gcc2
66727 builtin and then its argument prototype would still apply. */
66728 char $ac_func ();
66729 /* The GNU C library defines this for functions which it implements
66730 to always fail with ENOSYS. Some functions are actually named
66731 something starting with __ and the normal name is an alias. */
66732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66733 choke me
66734 #else
66735 char (*f) () = $ac_func;
66736 #endif
66737 #ifdef __cplusplus
66738 }
66739 #endif
66740
66741 int
66742 main ()
66743 {
66744 return f != $ac_func;
66745 ;
66746 return 0;
66747 }
66748 _ACEOF
66749 rm -f conftest.$ac_objext conftest$ac_exeext
66750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66751 (eval $ac_link) 2>conftest.er1
66752 ac_status=$?
66753 grep -v '^ *+' conftest.er1 >conftest.err
66754 rm -f conftest.er1
66755 cat conftest.err >&5
66756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66757 (exit $ac_status); } &&
66758 { ac_try='test -z "$ac_c_werror_flag"
66759 || test ! -s conftest.err'
66760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66761 (eval $ac_try) 2>&5
66762 ac_status=$?
66763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66764 (exit $ac_status); }; } &&
66765 { ac_try='test -s conftest$ac_exeext'
66766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66767 (eval $ac_try) 2>&5
66768 ac_status=$?
66769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66770 (exit $ac_status); }; }; then
66771 eval "$as_ac_var=yes"
66772 else
66773 echo "$as_me: failed program was:" >&5
66774 sed 's/^/| /' conftest.$ac_ext >&5
66775
66776 eval "$as_ac_var=no"
66777 fi
66778 rm -f conftest.err conftest.$ac_objext \
66779 conftest$ac_exeext conftest.$ac_ext
66780 fi
66781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66783 if test `eval echo '${'$as_ac_var'}'` = yes; then
66784 cat >>confdefs.h <<_ACEOF
66785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66786 _ACEOF
66787
66788 fi
66789 done
66790
66791
66792 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
66793 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
66794 if test x"$has_weof" = xyes &&
66795 test x"$has_wchar_minmax" = xyes &&
66796 test x"$ac_wfuncs" = xyes;
66797 then
66798 ac_isoC99_wchar_t=yes
66799 else
66800 ac_isoC99_wchar_t=no
66801 fi
66802 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
66803 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
66804
66805 # Use iconv for wchar_t to char conversions. As such, check for
66806 # X/Open Portability Guide, version 2 features (XPG2).
66807 if test "${ac_cv_header_iconv_h+set}" = set; then
66808 echo "$as_me:$LINENO: checking for iconv.h" >&5
66809 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
66810 if test "${ac_cv_header_iconv_h+set}" = set; then
66811 echo $ECHO_N "(cached) $ECHO_C" >&6
66812 fi
66813 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
66814 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
66815 else
66816 # Is the header compilable?
66817 echo "$as_me:$LINENO: checking iconv.h usability" >&5
66818 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
66819 cat >conftest.$ac_ext <<_ACEOF
66820 /* confdefs.h. */
66821 _ACEOF
66822 cat confdefs.h >>conftest.$ac_ext
66823 cat >>conftest.$ac_ext <<_ACEOF
66824 /* end confdefs.h. */
66825 $ac_includes_default
66826 #include <iconv.h>
66827 _ACEOF
66828 rm -f conftest.$ac_objext
66829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66830 (eval $ac_compile) 2>conftest.er1
66831 ac_status=$?
66832 grep -v '^ *+' conftest.er1 >conftest.err
66833 rm -f conftest.er1
66834 cat conftest.err >&5
66835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66836 (exit $ac_status); } &&
66837 { ac_try='test -z "$ac_c_werror_flag"
66838 || test ! -s conftest.err'
66839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66840 (eval $ac_try) 2>&5
66841 ac_status=$?
66842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66843 (exit $ac_status); }; } &&
66844 { ac_try='test -s conftest.$ac_objext'
66845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66846 (eval $ac_try) 2>&5
66847 ac_status=$?
66848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66849 (exit $ac_status); }; }; then
66850 ac_header_compiler=yes
66851 else
66852 echo "$as_me: failed program was:" >&5
66853 sed 's/^/| /' conftest.$ac_ext >&5
66854
66855 ac_header_compiler=no
66856 fi
66857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66858 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66859 echo "${ECHO_T}$ac_header_compiler" >&6
66860
66861 # Is the header present?
66862 echo "$as_me:$LINENO: checking iconv.h presence" >&5
66863 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
66864 cat >conftest.$ac_ext <<_ACEOF
66865 /* confdefs.h. */
66866 _ACEOF
66867 cat confdefs.h >>conftest.$ac_ext
66868 cat >>conftest.$ac_ext <<_ACEOF
66869 /* end confdefs.h. */
66870 #include <iconv.h>
66871 _ACEOF
66872 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66873 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66874 ac_status=$?
66875 grep -v '^ *+' conftest.er1 >conftest.err
66876 rm -f conftest.er1
66877 cat conftest.err >&5
66878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66879 (exit $ac_status); } >/dev/null; then
66880 if test -s conftest.err; then
66881 ac_cpp_err=$ac_c_preproc_warn_flag
66882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66883 else
66884 ac_cpp_err=
66885 fi
66886 else
66887 ac_cpp_err=yes
66888 fi
66889 if test -z "$ac_cpp_err"; then
66890 ac_header_preproc=yes
66891 else
66892 echo "$as_me: failed program was:" >&5
66893 sed 's/^/| /' conftest.$ac_ext >&5
66894
66895 ac_header_preproc=no
66896 fi
66897 rm -f conftest.err conftest.$ac_ext
66898 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66899 echo "${ECHO_T}$ac_header_preproc" >&6
66900
66901 # So? What about this header?
66902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66903 yes:no: )
66904 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
66905 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
66906 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
66907 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
66908 ac_header_preproc=yes
66909 ;;
66910 no:yes:* )
66911 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
66912 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
66913 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
66914 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
66915 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
66916 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
66917 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
66918 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
66919 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
66920 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
66921 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
66922 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
66923 (
66924 cat <<\_ASBOX
66925 ## ----------------------------------------- ##
66926 ## Report this to the package-unused lists. ##
66927 ## ----------------------------------------- ##
66928 _ASBOX
66929 ) |
66930 sed "s/^/$as_me: WARNING: /" >&2
66931 ;;
66932 esac
66933 echo "$as_me:$LINENO: checking for iconv.h" >&5
66934 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
66935 if test "${ac_cv_header_iconv_h+set}" = set; then
66936 echo $ECHO_N "(cached) $ECHO_C" >&6
66937 else
66938 ac_cv_header_iconv_h=$ac_header_preproc
66939 fi
66940 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
66941 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
66942
66943 fi
66944 if test $ac_cv_header_iconv_h = yes; then
66945 ac_has_iconv_h=yes
66946 else
66947 ac_has_iconv_h=no
66948 fi
66949
66950
66951 if test "${ac_cv_header_langinfo_h+set}" = set; then
66952 echo "$as_me:$LINENO: checking for langinfo.h" >&5
66953 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
66954 if test "${ac_cv_header_langinfo_h+set}" = set; then
66955 echo $ECHO_N "(cached) $ECHO_C" >&6
66956 fi
66957 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
66958 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
66959 else
66960 # Is the header compilable?
66961 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
66962 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
66963 cat >conftest.$ac_ext <<_ACEOF
66964 /* confdefs.h. */
66965 _ACEOF
66966 cat confdefs.h >>conftest.$ac_ext
66967 cat >>conftest.$ac_ext <<_ACEOF
66968 /* end confdefs.h. */
66969 $ac_includes_default
66970 #include <langinfo.h>
66971 _ACEOF
66972 rm -f conftest.$ac_objext
66973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66974 (eval $ac_compile) 2>conftest.er1
66975 ac_status=$?
66976 grep -v '^ *+' conftest.er1 >conftest.err
66977 rm -f conftest.er1
66978 cat conftest.err >&5
66979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66980 (exit $ac_status); } &&
66981 { ac_try='test -z "$ac_c_werror_flag"
66982 || test ! -s conftest.err'
66983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66984 (eval $ac_try) 2>&5
66985 ac_status=$?
66986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66987 (exit $ac_status); }; } &&
66988 { ac_try='test -s conftest.$ac_objext'
66989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66990 (eval $ac_try) 2>&5
66991 ac_status=$?
66992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
66993 (exit $ac_status); }; }; then
66994 ac_header_compiler=yes
66995 else
66996 echo "$as_me: failed program was:" >&5
66997 sed 's/^/| /' conftest.$ac_ext >&5
66998
66999 ac_header_compiler=no
67000 fi
67001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67003 echo "${ECHO_T}$ac_header_compiler" >&6
67004
67005 # Is the header present?
67006 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
67007 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
67008 cat >conftest.$ac_ext <<_ACEOF
67009 /* confdefs.h. */
67010 _ACEOF
67011 cat confdefs.h >>conftest.$ac_ext
67012 cat >>conftest.$ac_ext <<_ACEOF
67013 /* end confdefs.h. */
67014 #include <langinfo.h>
67015 _ACEOF
67016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67018 ac_status=$?
67019 grep -v '^ *+' conftest.er1 >conftest.err
67020 rm -f conftest.er1
67021 cat conftest.err >&5
67022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67023 (exit $ac_status); } >/dev/null; then
67024 if test -s conftest.err; then
67025 ac_cpp_err=$ac_c_preproc_warn_flag
67026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67027 else
67028 ac_cpp_err=
67029 fi
67030 else
67031 ac_cpp_err=yes
67032 fi
67033 if test -z "$ac_cpp_err"; then
67034 ac_header_preproc=yes
67035 else
67036 echo "$as_me: failed program was:" >&5
67037 sed 's/^/| /' conftest.$ac_ext >&5
67038
67039 ac_header_preproc=no
67040 fi
67041 rm -f conftest.err conftest.$ac_ext
67042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67043 echo "${ECHO_T}$ac_header_preproc" >&6
67044
67045 # So? What about this header?
67046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67047 yes:no: )
67048 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
67049 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
67050 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
67051 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
67052 ac_header_preproc=yes
67053 ;;
67054 no:yes:* )
67055 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
67056 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
67057 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
67058 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
67059 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
67060 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
67061 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
67062 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
67063 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
67064 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
67065 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
67066 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
67067 (
67068 cat <<\_ASBOX
67069 ## ----------------------------------------- ##
67070 ## Report this to the package-unused lists. ##
67071 ## ----------------------------------------- ##
67072 _ASBOX
67073 ) |
67074 sed "s/^/$as_me: WARNING: /" >&2
67075 ;;
67076 esac
67077 echo "$as_me:$LINENO: checking for langinfo.h" >&5
67078 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
67079 if test "${ac_cv_header_langinfo_h+set}" = set; then
67080 echo $ECHO_N "(cached) $ECHO_C" >&6
67081 else
67082 ac_cv_header_langinfo_h=$ac_header_preproc
67083 fi
67084 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
67085 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
67086
67087 fi
67088 if test $ac_cv_header_langinfo_h = yes; then
67089 ac_has_langinfo_h=yes
67090 else
67091 ac_has_langinfo_h=no
67092 fi
67093
67094
67095
67096 # Check for existence of libiconv.a providing XPG2 wchar_t support.
67097 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
67098 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
67099 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
67100 echo $ECHO_N "(cached) $ECHO_C" >&6
67101 else
67102 ac_check_lib_save_LIBS=$LIBS
67103 LIBS="-liconv $LIBS"
67104 if test x$gcc_no_link = xyes; then
67105 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67106 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67107 { (exit 1); exit 1; }; }
67108 fi
67109 cat >conftest.$ac_ext <<_ACEOF
67110 /* confdefs.h. */
67111 _ACEOF
67112 cat confdefs.h >>conftest.$ac_ext
67113 cat >>conftest.$ac_ext <<_ACEOF
67114 /* end confdefs.h. */
67115
67116 /* Override any gcc2 internal prototype to avoid an error. */
67117 #ifdef __cplusplus
67118 extern "C"
67119 #endif
67120 /* We use char because int might match the return type of a gcc2
67121 builtin and then its argument prototype would still apply. */
67122 char iconv ();
67123 int
67124 main ()
67125 {
67126 iconv ();
67127 ;
67128 return 0;
67129 }
67130 _ACEOF
67131 rm -f conftest.$ac_objext conftest$ac_exeext
67132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67133 (eval $ac_link) 2>conftest.er1
67134 ac_status=$?
67135 grep -v '^ *+' conftest.er1 >conftest.err
67136 rm -f conftest.er1
67137 cat conftest.err >&5
67138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67139 (exit $ac_status); } &&
67140 { ac_try='test -z "$ac_c_werror_flag"
67141 || test ! -s conftest.err'
67142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67143 (eval $ac_try) 2>&5
67144 ac_status=$?
67145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67146 (exit $ac_status); }; } &&
67147 { ac_try='test -s conftest$ac_exeext'
67148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67149 (eval $ac_try) 2>&5
67150 ac_status=$?
67151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67152 (exit $ac_status); }; }; then
67153 ac_cv_lib_iconv_iconv=yes
67154 else
67155 echo "$as_me: failed program was:" >&5
67156 sed 's/^/| /' conftest.$ac_ext >&5
67157
67158 ac_cv_lib_iconv_iconv=no
67159 fi
67160 rm -f conftest.err conftest.$ac_objext \
67161 conftest$ac_exeext conftest.$ac_ext
67162 LIBS=$ac_check_lib_save_LIBS
67163 fi
67164 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
67165 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
67166 if test $ac_cv_lib_iconv_iconv = yes; then
67167 LIBICONV="-liconv"
67168 fi
67169
67170 ac_save_LIBS="$LIBS"
67171 LIBS="$LIBS $LIBICONV"
67172
67173
67174
67175
67176
67177
67178 for ac_func in iconv_open iconv_close iconv nl_langinfo
67179 do
67180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67181 echo "$as_me:$LINENO: checking for $ac_func" >&5
67182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
67183 if eval "test \"\${$as_ac_var+set}\" = set"; then
67184 echo $ECHO_N "(cached) $ECHO_C" >&6
67185 else
67186 if test x$gcc_no_link = xyes; then
67187 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67189 { (exit 1); exit 1; }; }
67190 fi
67191 cat >conftest.$ac_ext <<_ACEOF
67192 /* confdefs.h. */
67193 _ACEOF
67194 cat confdefs.h >>conftest.$ac_ext
67195 cat >>conftest.$ac_ext <<_ACEOF
67196 /* end confdefs.h. */
67197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
67199 #define $ac_func innocuous_$ac_func
67200
67201 /* System header to define __stub macros and hopefully few prototypes,
67202 which can conflict with char $ac_func (); below.
67203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67204 <limits.h> exists even on freestanding compilers. */
67205
67206 #ifdef __STDC__
67207 # include <limits.h>
67208 #else
67209 # include <assert.h>
67210 #endif
67211
67212 #undef $ac_func
67213
67214 /* Override any gcc2 internal prototype to avoid an error. */
67215 #ifdef __cplusplus
67216 extern "C"
67217 {
67218 #endif
67219 /* We use char because int might match the return type of a gcc2
67220 builtin and then its argument prototype would still apply. */
67221 char $ac_func ();
67222 /* The GNU C library defines this for functions which it implements
67223 to always fail with ENOSYS. Some functions are actually named
67224 something starting with __ and the normal name is an alias. */
67225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
67226 choke me
67227 #else
67228 char (*f) () = $ac_func;
67229 #endif
67230 #ifdef __cplusplus
67231 }
67232 #endif
67233
67234 int
67235 main ()
67236 {
67237 return f != $ac_func;
67238 ;
67239 return 0;
67240 }
67241 _ACEOF
67242 rm -f conftest.$ac_objext conftest$ac_exeext
67243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67244 (eval $ac_link) 2>conftest.er1
67245 ac_status=$?
67246 grep -v '^ *+' conftest.er1 >conftest.err
67247 rm -f conftest.er1
67248 cat conftest.err >&5
67249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67250 (exit $ac_status); } &&
67251 { ac_try='test -z "$ac_c_werror_flag"
67252 || test ! -s conftest.err'
67253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67254 (eval $ac_try) 2>&5
67255 ac_status=$?
67256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67257 (exit $ac_status); }; } &&
67258 { ac_try='test -s conftest$ac_exeext'
67259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67260 (eval $ac_try) 2>&5
67261 ac_status=$?
67262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67263 (exit $ac_status); }; }; then
67264 eval "$as_ac_var=yes"
67265 else
67266 echo "$as_me: failed program was:" >&5
67267 sed 's/^/| /' conftest.$ac_ext >&5
67268
67269 eval "$as_ac_var=no"
67270 fi
67271 rm -f conftest.err conftest.$ac_objext \
67272 conftest$ac_exeext conftest.$ac_ext
67273 fi
67274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
67275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
67276 if test `eval echo '${'$as_ac_var'}'` = yes; then
67277 cat >>confdefs.h <<_ACEOF
67278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67279 _ACEOF
67280 ac_XPG2funcs=yes
67281 else
67282 ac_XPG2funcs=no
67283 fi
67284 done
67285
67286
67287 LIBS="$ac_save_LIBS"
67288
67289 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
67290 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
67291 if test x"$ac_has_iconv_h" = xyes &&
67292 test x"$ac_has_langinfo_h" = xyes &&
67293 test x"$ac_XPG2funcs" = xyes;
67294 then
67295 ac_XPG2_wchar_t=yes
67296 else
67297 ac_XPG2_wchar_t=no
67298 fi
67299 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
67300 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
67301
67302 # At the moment, only enable wchar_t specializations if all the
67303 # above support is present.
67304 if test x"$ac_isoC99_wchar_t" = xyes &&
67305 test x"$ac_XPG2_wchar_t" = xyes;
67306 then
67307 cat >>confdefs.h <<\_ACEOF
67308 #define _GLIBCXX_USE_WCHAR_T 1
67309 _ACEOF
67310
67311 enable_wchar_t=yes
67312 fi
67313 fi
67314 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
67315 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
67316 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
67317 echo "${ECHO_T}$enable_wchar_t" >&6
67318
67319 cat >>confdefs.h <<\_ACEOF
67320 #define HAVE_COSF 1
67321 _ACEOF
67322
67323 cat >>confdefs.h <<\_ACEOF
67324 #define HAVE_COSL 1
67325 _ACEOF
67326
67327 cat >>confdefs.h <<\_ACEOF
67328 #define HAVE_COSHF 1
67329 _ACEOF
67330
67331 cat >>confdefs.h <<\_ACEOF
67332 #define HAVE_COSHL 1
67333 _ACEOF
67334
67335 cat >>confdefs.h <<\_ACEOF
67336 #define HAVE_LOGF 1
67337 _ACEOF
67338
67339 cat >>confdefs.h <<\_ACEOF
67340 #define HAVE_LOGL 1
67341 _ACEOF
67342
67343 cat >>confdefs.h <<\_ACEOF
67344 #define HAVE_LOG10F 1
67345 _ACEOF
67346
67347 cat >>confdefs.h <<\_ACEOF
67348 #define HAVE_LOG10L 1
67349 _ACEOF
67350
67351 cat >>confdefs.h <<\_ACEOF
67352 #define HAVE_SINF 1
67353 _ACEOF
67354
67355 cat >>confdefs.h <<\_ACEOF
67356 #define HAVE_SINL 1
67357 _ACEOF
67358
67359 cat >>confdefs.h <<\_ACEOF
67360 #define HAVE_SINHF 1
67361 _ACEOF
67362
67363 cat >>confdefs.h <<\_ACEOF
67364 #define HAVE_SINHL 1
67365 _ACEOF
67366
67367 ;;
67368 *-solaris*)
67369 case "$target" in
67370 # *-solaris2.5)
67371 # os_include_dir="os/solaris/solaris2.5"
67372 # ;;
67373 # *-solaris2.6)
67374 # os_include_dir="os/solaris/solaris2.6"
67375 # ;;
67376 *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10)
67377 cat >>confdefs.h <<\_ACEOF
67378 #define HAVE_GETPAGESIZE 1
67379 _ACEOF
67380
67381 cat >>confdefs.h <<\_ACEOF
67382 #define HAVE_SIGSETJMP 1
67383 _ACEOF
67384
67385 cat >>confdefs.h <<\_ACEOF
67386 #define HAVE_MBSTATE_T 1
67387 _ACEOF
67388
67389 cat >>confdefs.h <<\_ACEOF
67390 #define HAVE_POLL 1
67391 _ACEOF
67392
67393 cat >>confdefs.h <<\_ACEOF
67394 #define HAVE_S_ISREG 1
67395 _ACEOF
67396
67397 cat >>confdefs.h <<\_ACEOF
67398 #define HAVE_LC_MESSAGES 1
67399 _ACEOF
67400
67401 cat >>confdefs.h <<\_ACEOF
67402 #define HAVE_BTOWC 1
67403 _ACEOF
67404
67405 cat >>confdefs.h <<\_ACEOF
67406 #define HAVE_FGETWC 1
67407 _ACEOF
67408
67409 cat >>confdefs.h <<\_ACEOF
67410 #define HAVE_FGETWS 1
67411 _ACEOF
67412
67413 cat >>confdefs.h <<\_ACEOF
67414 #define HAVE_FINITE 1
67415 _ACEOF
67416
67417 cat >>confdefs.h <<\_ACEOF
67418 #define HAVE_FPCLASS 1
67419 _ACEOF
67420
67421 cat >>confdefs.h <<\_ACEOF
67422 #define HAVE_FPUTWC 1
67423 _ACEOF
67424
67425 cat >>confdefs.h <<\_ACEOF
67426 #define HAVE_FPUTWS 1
67427 _ACEOF
67428
67429 cat >>confdefs.h <<\_ACEOF
67430 #define HAVE_FWIDE 1
67431 _ACEOF
67432
67433 cat >>confdefs.h <<\_ACEOF
67434 #define HAVE_FWPRINTF 1
67435 _ACEOF
67436
67437 cat >>confdefs.h <<\_ACEOF
67438 #define HAVE_FWSCANF 1
67439 _ACEOF
67440
67441 cat >>confdefs.h <<\_ACEOF
67442 #define HAVE_GETPAGESIZE 1
67443 _ACEOF
67444
67445 cat >>confdefs.h <<\_ACEOF
67446 #define HAVE_GETWC 1
67447 _ACEOF
67448
67449 cat >>confdefs.h <<\_ACEOF
67450 #define HAVE_GETWCHAR 1
67451 _ACEOF
67452
67453 cat >>confdefs.h <<\_ACEOF
67454 #define HAVE_MBRLEN 1
67455 _ACEOF
67456
67457 cat >>confdefs.h <<\_ACEOF
67458 #define HAVE_MBRTOWC 1
67459 _ACEOF
67460
67461 cat >>confdefs.h <<\_ACEOF
67462 #define HAVE_MBSINIT 1
67463 _ACEOF
67464
67465 cat >>confdefs.h <<\_ACEOF
67466 #define HAVE_MBSRTOWCS 1
67467 _ACEOF
67468
67469 cat >>confdefs.h <<\_ACEOF
67470 #define HAVE_NL_LANGINFO 1
67471 _ACEOF
67472
67473 cat >>confdefs.h <<\_ACEOF
67474 #define HAVE_PUTWC 1
67475 _ACEOF
67476
67477 cat >>confdefs.h <<\_ACEOF
67478 #define HAVE_PUTWCHAR 1
67479 _ACEOF
67480
67481 cat >>confdefs.h <<\_ACEOF
67482 #define HAVE_SWPRINTF 1
67483 _ACEOF
67484
67485 cat >>confdefs.h <<\_ACEOF
67486 #define HAVE_SWSCANF 1
67487 _ACEOF
67488
67489 cat >>confdefs.h <<\_ACEOF
67490 #define HAVE_UNGETWC 1
67491 _ACEOF
67492
67493 cat >>confdefs.h <<\_ACEOF
67494 #define HAVE_VFWPRINTF 1
67495 _ACEOF
67496
67497 cat >>confdefs.h <<\_ACEOF
67498 #define HAVE_VSWPRINTF 1
67499 _ACEOF
67500
67501 cat >>confdefs.h <<\_ACEOF
67502 #define HAVE_VWPRINTF 1
67503 _ACEOF
67504
67505 cat >>confdefs.h <<\_ACEOF
67506 #define HAVE_WCRTOMB 1
67507 _ACEOF
67508
67509 cat >>confdefs.h <<\_ACEOF
67510 #define HAVE_WCSCAT 1
67511 _ACEOF
67512
67513 cat >>confdefs.h <<\_ACEOF
67514 #define HAVE_WCSCHR 1
67515 _ACEOF
67516
67517 cat >>confdefs.h <<\_ACEOF
67518 #define HAVE_WCSCMP 1
67519 _ACEOF
67520
67521 cat >>confdefs.h <<\_ACEOF
67522 #define HAVE_WCSCOLL 1
67523 _ACEOF
67524
67525 cat >>confdefs.h <<\_ACEOF
67526 #define HAVE_WCSCPY 1
67527 _ACEOF
67528
67529 cat >>confdefs.h <<\_ACEOF
67530 #define HAVE_WCSCSPN 1
67531 _ACEOF
67532
67533 cat >>confdefs.h <<\_ACEOF
67534 #define HAVE_WCSFTIME 1
67535 _ACEOF
67536
67537 cat >>confdefs.h <<\_ACEOF
67538 #define HAVE_WCSLEN 1
67539 _ACEOF
67540
67541 cat >>confdefs.h <<\_ACEOF
67542 #define HAVE_WCSNCAT 1
67543 _ACEOF
67544
67545 cat >>confdefs.h <<\_ACEOF
67546 #define HAVE_WCSNCMP 1
67547 _ACEOF
67548
67549 cat >>confdefs.h <<\_ACEOF
67550 #define HAVE_WCSNCPY 1
67551 _ACEOF
67552
67553 cat >>confdefs.h <<\_ACEOF
67554 #define HAVE_WCSPBRK 1
67555 _ACEOF
67556
67557 cat >>confdefs.h <<\_ACEOF
67558 #define HAVE_WCSRCHR 1
67559 _ACEOF
67560
67561 cat >>confdefs.h <<\_ACEOF
67562 #define HAVE_WCSRTOMBS 1
67563 _ACEOF
67564
67565 cat >>confdefs.h <<\_ACEOF
67566 #define HAVE_WCSSPN 1
67567 _ACEOF
67568
67569 cat >>confdefs.h <<\_ACEOF
67570 #define HAVE_WCSSTR 1
67571 _ACEOF
67572
67573 cat >>confdefs.h <<\_ACEOF
67574 #define HAVE_WCSTOD 1
67575 _ACEOF
67576
67577 cat >>confdefs.h <<\_ACEOF
67578 #define HAVE_WCSTOK 1
67579 _ACEOF
67580
67581 cat >>confdefs.h <<\_ACEOF
67582 #define HAVE_WCSTOL 1
67583 _ACEOF
67584
67585 cat >>confdefs.h <<\_ACEOF
67586 #define HAVE_WCSTOUL 1
67587 _ACEOF
67588
67589 cat >>confdefs.h <<\_ACEOF
67590 #define HAVE_WCSXFRM 1
67591 _ACEOF
67592
67593 cat >>confdefs.h <<\_ACEOF
67594 #define HAVE_WCTOB 1
67595 _ACEOF
67596
67597 cat >>confdefs.h <<\_ACEOF
67598 #define HAVE_WMEMCHR 1
67599 _ACEOF
67600
67601 cat >>confdefs.h <<\_ACEOF
67602 #define HAVE_WMEMCMP 1
67603 _ACEOF
67604
67605 cat >>confdefs.h <<\_ACEOF
67606 #define HAVE_WMEMCPY 1
67607 _ACEOF
67608
67609 cat >>confdefs.h <<\_ACEOF
67610 #define HAVE_WMEMMOVE 1
67611 _ACEOF
67612
67613 cat >>confdefs.h <<\_ACEOF
67614 #define HAVE_WMEMSET 1
67615 _ACEOF
67616
67617 cat >>confdefs.h <<\_ACEOF
67618 #define HAVE_WPRINTF 1
67619 _ACEOF
67620
67621 cat >>confdefs.h <<\_ACEOF
67622 #define HAVE_WSCANF 1
67623 _ACEOF
67624
67625 cat >>confdefs.h <<\_ACEOF
67626 #define HAVE_ICONV 1
67627 _ACEOF
67628
67629 cat >>confdefs.h <<\_ACEOF
67630 #define HAVE_ICONV_CLOSE 1
67631 _ACEOF
67632
67633 cat >>confdefs.h <<\_ACEOF
67634 #define HAVE_ICONV_OPEN 1
67635 _ACEOF
67636
67637 # Look for the pieces required for wchar_t support in order to
67638 # get all the right HAVE_* macros defined.
67639
67640 # Test wchar.h for mbstate_t, which is needed for char_traits and
67641 # others even if wchar_t support is not on.
67642 echo "$as_me:$LINENO: checking for mbstate_t" >&5
67643 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
67644 cat >conftest.$ac_ext <<_ACEOF
67645 /* confdefs.h. */
67646 _ACEOF
67647 cat confdefs.h >>conftest.$ac_ext
67648 cat >>conftest.$ac_ext <<_ACEOF
67649 /* end confdefs.h. */
67650 #include <wchar.h>
67651 int
67652 main ()
67653 {
67654 mbstate_t teststate;
67655 ;
67656 return 0;
67657 }
67658 _ACEOF
67659 rm -f conftest.$ac_objext
67660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67661 (eval $ac_compile) 2>conftest.er1
67662 ac_status=$?
67663 grep -v '^ *+' conftest.er1 >conftest.err
67664 rm -f conftest.er1
67665 cat conftest.err >&5
67666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67667 (exit $ac_status); } &&
67668 { ac_try='test -z "$ac_c_werror_flag"
67669 || test ! -s conftest.err'
67670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67671 (eval $ac_try) 2>&5
67672 ac_status=$?
67673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67674 (exit $ac_status); }; } &&
67675 { ac_try='test -s conftest.$ac_objext'
67676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67677 (eval $ac_try) 2>&5
67678 ac_status=$?
67679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67680 (exit $ac_status); }; }; then
67681 have_mbstate_t=yes
67682 else
67683 echo "$as_me: failed program was:" >&5
67684 sed 's/^/| /' conftest.$ac_ext >&5
67685
67686 have_mbstate_t=no
67687 fi
67688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67689 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
67690 echo "${ECHO_T}$have_mbstate_t" >&6
67691 if test x"$have_mbstate_t" = xyes; then
67692 cat >>confdefs.h <<\_ACEOF
67693 #define HAVE_MBSTATE_T 1
67694 _ACEOF
67695
67696 fi
67697
67698 # Sanity check for existence of ISO C99 headers for extended encoding.
67699
67700 for ac_header in wchar.h
67701 do
67702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
67703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67704 echo "$as_me:$LINENO: checking for $ac_header" >&5
67705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67707 echo $ECHO_N "(cached) $ECHO_C" >&6
67708 fi
67709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67711 else
67712 # Is the header compilable?
67713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
67714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
67715 cat >conftest.$ac_ext <<_ACEOF
67716 /* confdefs.h. */
67717 _ACEOF
67718 cat confdefs.h >>conftest.$ac_ext
67719 cat >>conftest.$ac_ext <<_ACEOF
67720 /* end confdefs.h. */
67721 $ac_includes_default
67722 #include <$ac_header>
67723 _ACEOF
67724 rm -f conftest.$ac_objext
67725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67726 (eval $ac_compile) 2>conftest.er1
67727 ac_status=$?
67728 grep -v '^ *+' conftest.er1 >conftest.err
67729 rm -f conftest.er1
67730 cat conftest.err >&5
67731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67732 (exit $ac_status); } &&
67733 { ac_try='test -z "$ac_c_werror_flag"
67734 || test ! -s conftest.err'
67735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67736 (eval $ac_try) 2>&5
67737 ac_status=$?
67738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67739 (exit $ac_status); }; } &&
67740 { ac_try='test -s conftest.$ac_objext'
67741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67742 (eval $ac_try) 2>&5
67743 ac_status=$?
67744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67745 (exit $ac_status); }; }; then
67746 ac_header_compiler=yes
67747 else
67748 echo "$as_me: failed program was:" >&5
67749 sed 's/^/| /' conftest.$ac_ext >&5
67750
67751 ac_header_compiler=no
67752 fi
67753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67755 echo "${ECHO_T}$ac_header_compiler" >&6
67756
67757 # Is the header present?
67758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
67759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
67760 cat >conftest.$ac_ext <<_ACEOF
67761 /* confdefs.h. */
67762 _ACEOF
67763 cat confdefs.h >>conftest.$ac_ext
67764 cat >>conftest.$ac_ext <<_ACEOF
67765 /* end confdefs.h. */
67766 #include <$ac_header>
67767 _ACEOF
67768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67770 ac_status=$?
67771 grep -v '^ *+' conftest.er1 >conftest.err
67772 rm -f conftest.er1
67773 cat conftest.err >&5
67774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67775 (exit $ac_status); } >/dev/null; then
67776 if test -s conftest.err; then
67777 ac_cpp_err=$ac_c_preproc_warn_flag
67778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67779 else
67780 ac_cpp_err=
67781 fi
67782 else
67783 ac_cpp_err=yes
67784 fi
67785 if test -z "$ac_cpp_err"; then
67786 ac_header_preproc=yes
67787 else
67788 echo "$as_me: failed program was:" >&5
67789 sed 's/^/| /' conftest.$ac_ext >&5
67790
67791 ac_header_preproc=no
67792 fi
67793 rm -f conftest.err conftest.$ac_ext
67794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67795 echo "${ECHO_T}$ac_header_preproc" >&6
67796
67797 # So? What about this header?
67798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67799 yes:no: )
67800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
67801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
67802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
67803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
67804 ac_header_preproc=yes
67805 ;;
67806 no:yes:* )
67807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
67808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
67809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
67810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
67811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
67812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
67813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
67814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
67815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
67816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
67817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
67818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
67819 (
67820 cat <<\_ASBOX
67821 ## ----------------------------------------- ##
67822 ## Report this to the package-unused lists. ##
67823 ## ----------------------------------------- ##
67824 _ASBOX
67825 ) |
67826 sed "s/^/$as_me: WARNING: /" >&2
67827 ;;
67828 esac
67829 echo "$as_me:$LINENO: checking for $ac_header" >&5
67830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67832 echo $ECHO_N "(cached) $ECHO_C" >&6
67833 else
67834 eval "$as_ac_Header=\$ac_header_preproc"
67835 fi
67836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67838
67839 fi
67840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
67841 cat >>confdefs.h <<_ACEOF
67842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
67843 _ACEOF
67844 ac_has_wchar_h=yes
67845 else
67846 ac_has_wchar_h=no
67847 fi
67848
67849 done
67850
67851
67852 for ac_header in wctype.h
67853 do
67854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
67855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67856 echo "$as_me:$LINENO: checking for $ac_header" >&5
67857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67859 echo $ECHO_N "(cached) $ECHO_C" >&6
67860 fi
67861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67863 else
67864 # Is the header compilable?
67865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
67866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
67867 cat >conftest.$ac_ext <<_ACEOF
67868 /* confdefs.h. */
67869 _ACEOF
67870 cat confdefs.h >>conftest.$ac_ext
67871 cat >>conftest.$ac_ext <<_ACEOF
67872 /* end confdefs.h. */
67873 $ac_includes_default
67874 #include <$ac_header>
67875 _ACEOF
67876 rm -f conftest.$ac_objext
67877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67878 (eval $ac_compile) 2>conftest.er1
67879 ac_status=$?
67880 grep -v '^ *+' conftest.er1 >conftest.err
67881 rm -f conftest.er1
67882 cat conftest.err >&5
67883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67884 (exit $ac_status); } &&
67885 { ac_try='test -z "$ac_c_werror_flag"
67886 || test ! -s conftest.err'
67887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67888 (eval $ac_try) 2>&5
67889 ac_status=$?
67890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67891 (exit $ac_status); }; } &&
67892 { ac_try='test -s conftest.$ac_objext'
67893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67894 (eval $ac_try) 2>&5
67895 ac_status=$?
67896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67897 (exit $ac_status); }; }; then
67898 ac_header_compiler=yes
67899 else
67900 echo "$as_me: failed program was:" >&5
67901 sed 's/^/| /' conftest.$ac_ext >&5
67902
67903 ac_header_compiler=no
67904 fi
67905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67907 echo "${ECHO_T}$ac_header_compiler" >&6
67908
67909 # Is the header present?
67910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
67911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
67912 cat >conftest.$ac_ext <<_ACEOF
67913 /* confdefs.h. */
67914 _ACEOF
67915 cat confdefs.h >>conftest.$ac_ext
67916 cat >>conftest.$ac_ext <<_ACEOF
67917 /* end confdefs.h. */
67918 #include <$ac_header>
67919 _ACEOF
67920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67922 ac_status=$?
67923 grep -v '^ *+' conftest.er1 >conftest.err
67924 rm -f conftest.er1
67925 cat conftest.err >&5
67926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
67927 (exit $ac_status); } >/dev/null; then
67928 if test -s conftest.err; then
67929 ac_cpp_err=$ac_c_preproc_warn_flag
67930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67931 else
67932 ac_cpp_err=
67933 fi
67934 else
67935 ac_cpp_err=yes
67936 fi
67937 if test -z "$ac_cpp_err"; then
67938 ac_header_preproc=yes
67939 else
67940 echo "$as_me: failed program was:" >&5
67941 sed 's/^/| /' conftest.$ac_ext >&5
67942
67943 ac_header_preproc=no
67944 fi
67945 rm -f conftest.err conftest.$ac_ext
67946 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67947 echo "${ECHO_T}$ac_header_preproc" >&6
67948
67949 # So? What about this header?
67950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67951 yes:no: )
67952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
67953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
67954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
67955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
67956 ac_header_preproc=yes
67957 ;;
67958 no:yes:* )
67959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
67960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
67961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
67962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
67963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
67964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
67965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
67966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
67967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
67968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
67969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
67970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
67971 (
67972 cat <<\_ASBOX
67973 ## ----------------------------------------- ##
67974 ## Report this to the package-unused lists. ##
67975 ## ----------------------------------------- ##
67976 _ASBOX
67977 ) |
67978 sed "s/^/$as_me: WARNING: /" >&2
67979 ;;
67980 esac
67981 echo "$as_me:$LINENO: checking for $ac_header" >&5
67982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
67983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
67984 echo $ECHO_N "(cached) $ECHO_C" >&6
67985 else
67986 eval "$as_ac_Header=\$ac_header_preproc"
67987 fi
67988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
67989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
67990
67991 fi
67992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
67993 cat >>confdefs.h <<_ACEOF
67994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
67995 _ACEOF
67996 ac_has_wctype_h=yes
67997 else
67998 ac_has_wctype_h=no
67999 fi
68000
68001 done
68002
68003
68004 # Only continue checking if the ISO C99 headers exist and support is on.
68005 if test x"$ac_has_wchar_h" = xyes &&
68006 test x"$ac_has_wctype_h" = xyes &&
68007 test x"$enable_c_mbchar" != xno; then
68008
68009 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
68010 # numeric_limits can instantiate type_traits<wchar_t>
68011 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
68012 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
68013 cat >conftest.$ac_ext <<_ACEOF
68014 /* confdefs.h. */
68015 _ACEOF
68016 cat confdefs.h >>conftest.$ac_ext
68017 cat >>conftest.$ac_ext <<_ACEOF
68018 /* end confdefs.h. */
68019 #include <wchar.h>
68020 int
68021 main ()
68022 {
68023 int i = WCHAR_MIN; int j = WCHAR_MAX;
68024 ;
68025 return 0;
68026 }
68027 _ACEOF
68028 rm -f conftest.$ac_objext
68029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68030 (eval $ac_compile) 2>conftest.er1
68031 ac_status=$?
68032 grep -v '^ *+' conftest.er1 >conftest.err
68033 rm -f conftest.er1
68034 cat conftest.err >&5
68035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68036 (exit $ac_status); } &&
68037 { ac_try='test -z "$ac_c_werror_flag"
68038 || test ! -s conftest.err'
68039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68040 (eval $ac_try) 2>&5
68041 ac_status=$?
68042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68043 (exit $ac_status); }; } &&
68044 { ac_try='test -s conftest.$ac_objext'
68045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68046 (eval $ac_try) 2>&5
68047 ac_status=$?
68048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68049 (exit $ac_status); }; }; then
68050 has_wchar_minmax=yes
68051 else
68052 echo "$as_me: failed program was:" >&5
68053 sed 's/^/| /' conftest.$ac_ext >&5
68054
68055 has_wchar_minmax=no
68056 fi
68057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68058 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
68059 echo "${ECHO_T}$has_wchar_minmax" >&6
68060
68061 # Test wchar.h for WEOF, which is what we use to determine whether
68062 # to specialize for char_traits<wchar_t> or not.
68063 echo "$as_me:$LINENO: checking for WEOF" >&5
68064 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
68065 cat >conftest.$ac_ext <<_ACEOF
68066 /* confdefs.h. */
68067 _ACEOF
68068 cat confdefs.h >>conftest.$ac_ext
68069 cat >>conftest.$ac_ext <<_ACEOF
68070 /* end confdefs.h. */
68071
68072 #include <wchar.h>
68073 #include <stddef.h>
68074 int
68075 main ()
68076 {
68077 wint_t i = WEOF;
68078 ;
68079 return 0;
68080 }
68081 _ACEOF
68082 rm -f conftest.$ac_objext
68083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68084 (eval $ac_compile) 2>conftest.er1
68085 ac_status=$?
68086 grep -v '^ *+' conftest.er1 >conftest.err
68087 rm -f conftest.er1
68088 cat conftest.err >&5
68089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68090 (exit $ac_status); } &&
68091 { ac_try='test -z "$ac_c_werror_flag"
68092 || test ! -s conftest.err'
68093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68094 (eval $ac_try) 2>&5
68095 ac_status=$?
68096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68097 (exit $ac_status); }; } &&
68098 { ac_try='test -s conftest.$ac_objext'
68099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68100 (eval $ac_try) 2>&5
68101 ac_status=$?
68102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68103 (exit $ac_status); }; }; then
68104 has_weof=yes
68105 else
68106 echo "$as_me: failed program was:" >&5
68107 sed 's/^/| /' conftest.$ac_ext >&5
68108
68109 has_weof=no
68110 fi
68111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68112 echo "$as_me:$LINENO: result: $has_weof" >&5
68113 echo "${ECHO_T}$has_weof" >&6
68114
68115 # Tests for wide character functions used in char_traits<wchar_t>.
68116 ac_wfuncs=yes
68117
68118
68119
68120
68121
68122
68123 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
68124 do
68125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68126 echo "$as_me:$LINENO: checking for $ac_func" >&5
68127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68128 if eval "test \"\${$as_ac_var+set}\" = set"; then
68129 echo $ECHO_N "(cached) $ECHO_C" >&6
68130 else
68131 if test x$gcc_no_link = xyes; then
68132 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68133 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68134 { (exit 1); exit 1; }; }
68135 fi
68136 cat >conftest.$ac_ext <<_ACEOF
68137 /* confdefs.h. */
68138 _ACEOF
68139 cat confdefs.h >>conftest.$ac_ext
68140 cat >>conftest.$ac_ext <<_ACEOF
68141 /* end confdefs.h. */
68142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68144 #define $ac_func innocuous_$ac_func
68145
68146 /* System header to define __stub macros and hopefully few prototypes,
68147 which can conflict with char $ac_func (); below.
68148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68149 <limits.h> exists even on freestanding compilers. */
68150
68151 #ifdef __STDC__
68152 # include <limits.h>
68153 #else
68154 # include <assert.h>
68155 #endif
68156
68157 #undef $ac_func
68158
68159 /* Override any gcc2 internal prototype to avoid an error. */
68160 #ifdef __cplusplus
68161 extern "C"
68162 {
68163 #endif
68164 /* We use char because int might match the return type of a gcc2
68165 builtin and then its argument prototype would still apply. */
68166 char $ac_func ();
68167 /* The GNU C library defines this for functions which it implements
68168 to always fail with ENOSYS. Some functions are actually named
68169 something starting with __ and the normal name is an alias. */
68170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68171 choke me
68172 #else
68173 char (*f) () = $ac_func;
68174 #endif
68175 #ifdef __cplusplus
68176 }
68177 #endif
68178
68179 int
68180 main ()
68181 {
68182 return f != $ac_func;
68183 ;
68184 return 0;
68185 }
68186 _ACEOF
68187 rm -f conftest.$ac_objext conftest$ac_exeext
68188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68189 (eval $ac_link) 2>conftest.er1
68190 ac_status=$?
68191 grep -v '^ *+' conftest.er1 >conftest.err
68192 rm -f conftest.er1
68193 cat conftest.err >&5
68194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68195 (exit $ac_status); } &&
68196 { ac_try='test -z "$ac_c_werror_flag"
68197 || test ! -s conftest.err'
68198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68199 (eval $ac_try) 2>&5
68200 ac_status=$?
68201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68202 (exit $ac_status); }; } &&
68203 { ac_try='test -s conftest$ac_exeext'
68204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68205 (eval $ac_try) 2>&5
68206 ac_status=$?
68207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68208 (exit $ac_status); }; }; then
68209 eval "$as_ac_var=yes"
68210 else
68211 echo "$as_me: failed program was:" >&5
68212 sed 's/^/| /' conftest.$ac_ext >&5
68213
68214 eval "$as_ac_var=no"
68215 fi
68216 rm -f conftest.err conftest.$ac_objext \
68217 conftest$ac_exeext conftest.$ac_ext
68218 fi
68219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68220 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68221 if test `eval echo '${'$as_ac_var'}'` = yes; then
68222 cat >>confdefs.h <<_ACEOF
68223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68224 _ACEOF
68225
68226 else
68227 ac_wfuncs=no
68228 fi
68229 done
68230
68231
68232 # Checks for names injected into std:: by the c_std headers.
68233
68234
68235
68236
68237
68238
68239
68240
68241
68242
68243
68244
68245
68246
68247
68248
68249
68250
68251
68252
68253
68254
68255
68256
68257
68258
68259
68260
68261
68262
68263
68264
68265
68266
68267
68268
68269
68270
68271
68272
68273
68274
68275
68276
68277
68278
68279 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
68280 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
68281 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
68282 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
68283 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
68284 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
68285 do
68286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68287 echo "$as_me:$LINENO: checking for $ac_func" >&5
68288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68289 if eval "test \"\${$as_ac_var+set}\" = set"; then
68290 echo $ECHO_N "(cached) $ECHO_C" >&6
68291 else
68292 if test x$gcc_no_link = xyes; then
68293 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68294 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68295 { (exit 1); exit 1; }; }
68296 fi
68297 cat >conftest.$ac_ext <<_ACEOF
68298 /* confdefs.h. */
68299 _ACEOF
68300 cat confdefs.h >>conftest.$ac_ext
68301 cat >>conftest.$ac_ext <<_ACEOF
68302 /* end confdefs.h. */
68303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68305 #define $ac_func innocuous_$ac_func
68306
68307 /* System header to define __stub macros and hopefully few prototypes,
68308 which can conflict with char $ac_func (); below.
68309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68310 <limits.h> exists even on freestanding compilers. */
68311
68312 #ifdef __STDC__
68313 # include <limits.h>
68314 #else
68315 # include <assert.h>
68316 #endif
68317
68318 #undef $ac_func
68319
68320 /* Override any gcc2 internal prototype to avoid an error. */
68321 #ifdef __cplusplus
68322 extern "C"
68323 {
68324 #endif
68325 /* We use char because int might match the return type of a gcc2
68326 builtin and then its argument prototype would still apply. */
68327 char $ac_func ();
68328 /* The GNU C library defines this for functions which it implements
68329 to always fail with ENOSYS. Some functions are actually named
68330 something starting with __ and the normal name is an alias. */
68331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68332 choke me
68333 #else
68334 char (*f) () = $ac_func;
68335 #endif
68336 #ifdef __cplusplus
68337 }
68338 #endif
68339
68340 int
68341 main ()
68342 {
68343 return f != $ac_func;
68344 ;
68345 return 0;
68346 }
68347 _ACEOF
68348 rm -f conftest.$ac_objext conftest$ac_exeext
68349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68350 (eval $ac_link) 2>conftest.er1
68351 ac_status=$?
68352 grep -v '^ *+' conftest.er1 >conftest.err
68353 rm -f conftest.er1
68354 cat conftest.err >&5
68355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68356 (exit $ac_status); } &&
68357 { ac_try='test -z "$ac_c_werror_flag"
68358 || test ! -s conftest.err'
68359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68360 (eval $ac_try) 2>&5
68361 ac_status=$?
68362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68363 (exit $ac_status); }; } &&
68364 { ac_try='test -s conftest$ac_exeext'
68365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68366 (eval $ac_try) 2>&5
68367 ac_status=$?
68368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68369 (exit $ac_status); }; }; then
68370 eval "$as_ac_var=yes"
68371 else
68372 echo "$as_me: failed program was:" >&5
68373 sed 's/^/| /' conftest.$ac_ext >&5
68374
68375 eval "$as_ac_var=no"
68376 fi
68377 rm -f conftest.err conftest.$ac_objext \
68378 conftest$ac_exeext conftest.$ac_ext
68379 fi
68380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68381 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68382 if test `eval echo '${'$as_ac_var'}'` = yes; then
68383 cat >>confdefs.h <<_ACEOF
68384 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68385 _ACEOF
68386
68387 else
68388 ac_wfuncs=no
68389 fi
68390 done
68391
68392
68393 # Checks for wide character functions that are not required
68394 # for basic wchar_t support. Don't disable support if they are missing.
68395 # Injection of these is wrapped with guard macros.
68396
68397
68398
68399
68400
68401 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
68402 do
68403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68404 echo "$as_me:$LINENO: checking for $ac_func" >&5
68405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68406 if eval "test \"\${$as_ac_var+set}\" = set"; then
68407 echo $ECHO_N "(cached) $ECHO_C" >&6
68408 else
68409 if test x$gcc_no_link = xyes; then
68410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68412 { (exit 1); exit 1; }; }
68413 fi
68414 cat >conftest.$ac_ext <<_ACEOF
68415 /* confdefs.h. */
68416 _ACEOF
68417 cat confdefs.h >>conftest.$ac_ext
68418 cat >>conftest.$ac_ext <<_ACEOF
68419 /* end confdefs.h. */
68420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68422 #define $ac_func innocuous_$ac_func
68423
68424 /* System header to define __stub macros and hopefully few prototypes,
68425 which can conflict with char $ac_func (); below.
68426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68427 <limits.h> exists even on freestanding compilers. */
68428
68429 #ifdef __STDC__
68430 # include <limits.h>
68431 #else
68432 # include <assert.h>
68433 #endif
68434
68435 #undef $ac_func
68436
68437 /* Override any gcc2 internal prototype to avoid an error. */
68438 #ifdef __cplusplus
68439 extern "C"
68440 {
68441 #endif
68442 /* We use char because int might match the return type of a gcc2
68443 builtin and then its argument prototype would still apply. */
68444 char $ac_func ();
68445 /* The GNU C library defines this for functions which it implements
68446 to always fail with ENOSYS. Some functions are actually named
68447 something starting with __ and the normal name is an alias. */
68448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68449 choke me
68450 #else
68451 char (*f) () = $ac_func;
68452 #endif
68453 #ifdef __cplusplus
68454 }
68455 #endif
68456
68457 int
68458 main ()
68459 {
68460 return f != $ac_func;
68461 ;
68462 return 0;
68463 }
68464 _ACEOF
68465 rm -f conftest.$ac_objext conftest$ac_exeext
68466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68467 (eval $ac_link) 2>conftest.er1
68468 ac_status=$?
68469 grep -v '^ *+' conftest.er1 >conftest.err
68470 rm -f conftest.er1
68471 cat conftest.err >&5
68472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68473 (exit $ac_status); } &&
68474 { ac_try='test -z "$ac_c_werror_flag"
68475 || test ! -s conftest.err'
68476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68477 (eval $ac_try) 2>&5
68478 ac_status=$?
68479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68480 (exit $ac_status); }; } &&
68481 { ac_try='test -s conftest$ac_exeext'
68482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68483 (eval $ac_try) 2>&5
68484 ac_status=$?
68485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68486 (exit $ac_status); }; }; then
68487 eval "$as_ac_var=yes"
68488 else
68489 echo "$as_me: failed program was:" >&5
68490 sed 's/^/| /' conftest.$ac_ext >&5
68491
68492 eval "$as_ac_var=no"
68493 fi
68494 rm -f conftest.err conftest.$ac_objext \
68495 conftest$ac_exeext conftest.$ac_ext
68496 fi
68497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68499 if test `eval echo '${'$as_ac_var'}'` = yes; then
68500 cat >>confdefs.h <<_ACEOF
68501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68502 _ACEOF
68503
68504 fi
68505 done
68506
68507
68508 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
68509 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
68510 if test x"$has_weof" = xyes &&
68511 test x"$has_wchar_minmax" = xyes &&
68512 test x"$ac_wfuncs" = xyes;
68513 then
68514 ac_isoC99_wchar_t=yes
68515 else
68516 ac_isoC99_wchar_t=no
68517 fi
68518 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
68519 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
68520
68521 # Use iconv for wchar_t to char conversions. As such, check for
68522 # X/Open Portability Guide, version 2 features (XPG2).
68523 if test "${ac_cv_header_iconv_h+set}" = set; then
68524 echo "$as_me:$LINENO: checking for iconv.h" >&5
68525 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
68526 if test "${ac_cv_header_iconv_h+set}" = set; then
68527 echo $ECHO_N "(cached) $ECHO_C" >&6
68528 fi
68529 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
68530 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
68531 else
68532 # Is the header compilable?
68533 echo "$as_me:$LINENO: checking iconv.h usability" >&5
68534 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
68535 cat >conftest.$ac_ext <<_ACEOF
68536 /* confdefs.h. */
68537 _ACEOF
68538 cat confdefs.h >>conftest.$ac_ext
68539 cat >>conftest.$ac_ext <<_ACEOF
68540 /* end confdefs.h. */
68541 $ac_includes_default
68542 #include <iconv.h>
68543 _ACEOF
68544 rm -f conftest.$ac_objext
68545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68546 (eval $ac_compile) 2>conftest.er1
68547 ac_status=$?
68548 grep -v '^ *+' conftest.er1 >conftest.err
68549 rm -f conftest.er1
68550 cat conftest.err >&5
68551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68552 (exit $ac_status); } &&
68553 { ac_try='test -z "$ac_c_werror_flag"
68554 || test ! -s conftest.err'
68555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68556 (eval $ac_try) 2>&5
68557 ac_status=$?
68558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68559 (exit $ac_status); }; } &&
68560 { ac_try='test -s conftest.$ac_objext'
68561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68562 (eval $ac_try) 2>&5
68563 ac_status=$?
68564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68565 (exit $ac_status); }; }; then
68566 ac_header_compiler=yes
68567 else
68568 echo "$as_me: failed program was:" >&5
68569 sed 's/^/| /' conftest.$ac_ext >&5
68570
68571 ac_header_compiler=no
68572 fi
68573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68575 echo "${ECHO_T}$ac_header_compiler" >&6
68576
68577 # Is the header present?
68578 echo "$as_me:$LINENO: checking iconv.h presence" >&5
68579 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
68580 cat >conftest.$ac_ext <<_ACEOF
68581 /* confdefs.h. */
68582 _ACEOF
68583 cat confdefs.h >>conftest.$ac_ext
68584 cat >>conftest.$ac_ext <<_ACEOF
68585 /* end confdefs.h. */
68586 #include <iconv.h>
68587 _ACEOF
68588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68590 ac_status=$?
68591 grep -v '^ *+' conftest.er1 >conftest.err
68592 rm -f conftest.er1
68593 cat conftest.err >&5
68594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68595 (exit $ac_status); } >/dev/null; then
68596 if test -s conftest.err; then
68597 ac_cpp_err=$ac_c_preproc_warn_flag
68598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68599 else
68600 ac_cpp_err=
68601 fi
68602 else
68603 ac_cpp_err=yes
68604 fi
68605 if test -z "$ac_cpp_err"; then
68606 ac_header_preproc=yes
68607 else
68608 echo "$as_me: failed program was:" >&5
68609 sed 's/^/| /' conftest.$ac_ext >&5
68610
68611 ac_header_preproc=no
68612 fi
68613 rm -f conftest.err conftest.$ac_ext
68614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68615 echo "${ECHO_T}$ac_header_preproc" >&6
68616
68617 # So? What about this header?
68618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68619 yes:no: )
68620 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
68621 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
68622 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
68623 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
68624 ac_header_preproc=yes
68625 ;;
68626 no:yes:* )
68627 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
68628 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
68629 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
68630 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
68631 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
68632 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
68633 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
68634 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
68635 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
68636 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
68637 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
68638 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
68639 (
68640 cat <<\_ASBOX
68641 ## ----------------------------------------- ##
68642 ## Report this to the package-unused lists. ##
68643 ## ----------------------------------------- ##
68644 _ASBOX
68645 ) |
68646 sed "s/^/$as_me: WARNING: /" >&2
68647 ;;
68648 esac
68649 echo "$as_me:$LINENO: checking for iconv.h" >&5
68650 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
68651 if test "${ac_cv_header_iconv_h+set}" = set; then
68652 echo $ECHO_N "(cached) $ECHO_C" >&6
68653 else
68654 ac_cv_header_iconv_h=$ac_header_preproc
68655 fi
68656 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
68657 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
68658
68659 fi
68660 if test $ac_cv_header_iconv_h = yes; then
68661 ac_has_iconv_h=yes
68662 else
68663 ac_has_iconv_h=no
68664 fi
68665
68666
68667 if test "${ac_cv_header_langinfo_h+set}" = set; then
68668 echo "$as_me:$LINENO: checking for langinfo.h" >&5
68669 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
68670 if test "${ac_cv_header_langinfo_h+set}" = set; then
68671 echo $ECHO_N "(cached) $ECHO_C" >&6
68672 fi
68673 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
68674 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
68675 else
68676 # Is the header compilable?
68677 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
68678 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
68679 cat >conftest.$ac_ext <<_ACEOF
68680 /* confdefs.h. */
68681 _ACEOF
68682 cat confdefs.h >>conftest.$ac_ext
68683 cat >>conftest.$ac_ext <<_ACEOF
68684 /* end confdefs.h. */
68685 $ac_includes_default
68686 #include <langinfo.h>
68687 _ACEOF
68688 rm -f conftest.$ac_objext
68689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68690 (eval $ac_compile) 2>conftest.er1
68691 ac_status=$?
68692 grep -v '^ *+' conftest.er1 >conftest.err
68693 rm -f conftest.er1
68694 cat conftest.err >&5
68695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68696 (exit $ac_status); } &&
68697 { ac_try='test -z "$ac_c_werror_flag"
68698 || test ! -s conftest.err'
68699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68700 (eval $ac_try) 2>&5
68701 ac_status=$?
68702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68703 (exit $ac_status); }; } &&
68704 { ac_try='test -s conftest.$ac_objext'
68705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68706 (eval $ac_try) 2>&5
68707 ac_status=$?
68708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68709 (exit $ac_status); }; }; then
68710 ac_header_compiler=yes
68711 else
68712 echo "$as_me: failed program was:" >&5
68713 sed 's/^/| /' conftest.$ac_ext >&5
68714
68715 ac_header_compiler=no
68716 fi
68717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68719 echo "${ECHO_T}$ac_header_compiler" >&6
68720
68721 # Is the header present?
68722 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
68723 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
68724 cat >conftest.$ac_ext <<_ACEOF
68725 /* confdefs.h. */
68726 _ACEOF
68727 cat confdefs.h >>conftest.$ac_ext
68728 cat >>conftest.$ac_ext <<_ACEOF
68729 /* end confdefs.h. */
68730 #include <langinfo.h>
68731 _ACEOF
68732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68734 ac_status=$?
68735 grep -v '^ *+' conftest.er1 >conftest.err
68736 rm -f conftest.er1
68737 cat conftest.err >&5
68738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68739 (exit $ac_status); } >/dev/null; then
68740 if test -s conftest.err; then
68741 ac_cpp_err=$ac_c_preproc_warn_flag
68742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68743 else
68744 ac_cpp_err=
68745 fi
68746 else
68747 ac_cpp_err=yes
68748 fi
68749 if test -z "$ac_cpp_err"; then
68750 ac_header_preproc=yes
68751 else
68752 echo "$as_me: failed program was:" >&5
68753 sed 's/^/| /' conftest.$ac_ext >&5
68754
68755 ac_header_preproc=no
68756 fi
68757 rm -f conftest.err conftest.$ac_ext
68758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68759 echo "${ECHO_T}$ac_header_preproc" >&6
68760
68761 # So? What about this header?
68762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68763 yes:no: )
68764 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
68765 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
68766 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
68767 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
68768 ac_header_preproc=yes
68769 ;;
68770 no:yes:* )
68771 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
68772 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
68773 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
68774 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
68775 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
68776 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
68777 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
68778 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
68779 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
68780 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
68781 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
68782 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
68783 (
68784 cat <<\_ASBOX
68785 ## ----------------------------------------- ##
68786 ## Report this to the package-unused lists. ##
68787 ## ----------------------------------------- ##
68788 _ASBOX
68789 ) |
68790 sed "s/^/$as_me: WARNING: /" >&2
68791 ;;
68792 esac
68793 echo "$as_me:$LINENO: checking for langinfo.h" >&5
68794 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
68795 if test "${ac_cv_header_langinfo_h+set}" = set; then
68796 echo $ECHO_N "(cached) $ECHO_C" >&6
68797 else
68798 ac_cv_header_langinfo_h=$ac_header_preproc
68799 fi
68800 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
68801 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
68802
68803 fi
68804 if test $ac_cv_header_langinfo_h = yes; then
68805 ac_has_langinfo_h=yes
68806 else
68807 ac_has_langinfo_h=no
68808 fi
68809
68810
68811
68812 # Check for existence of libiconv.a providing XPG2 wchar_t support.
68813 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
68814 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
68815 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
68816 echo $ECHO_N "(cached) $ECHO_C" >&6
68817 else
68818 ac_check_lib_save_LIBS=$LIBS
68819 LIBS="-liconv $LIBS"
68820 if test x$gcc_no_link = xyes; then
68821 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68822 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68823 { (exit 1); exit 1; }; }
68824 fi
68825 cat >conftest.$ac_ext <<_ACEOF
68826 /* confdefs.h. */
68827 _ACEOF
68828 cat confdefs.h >>conftest.$ac_ext
68829 cat >>conftest.$ac_ext <<_ACEOF
68830 /* end confdefs.h. */
68831
68832 /* Override any gcc2 internal prototype to avoid an error. */
68833 #ifdef __cplusplus
68834 extern "C"
68835 #endif
68836 /* We use char because int might match the return type of a gcc2
68837 builtin and then its argument prototype would still apply. */
68838 char iconv ();
68839 int
68840 main ()
68841 {
68842 iconv ();
68843 ;
68844 return 0;
68845 }
68846 _ACEOF
68847 rm -f conftest.$ac_objext conftest$ac_exeext
68848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68849 (eval $ac_link) 2>conftest.er1
68850 ac_status=$?
68851 grep -v '^ *+' conftest.er1 >conftest.err
68852 rm -f conftest.er1
68853 cat conftest.err >&5
68854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68855 (exit $ac_status); } &&
68856 { ac_try='test -z "$ac_c_werror_flag"
68857 || test ! -s conftest.err'
68858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68859 (eval $ac_try) 2>&5
68860 ac_status=$?
68861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68862 (exit $ac_status); }; } &&
68863 { ac_try='test -s conftest$ac_exeext'
68864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68865 (eval $ac_try) 2>&5
68866 ac_status=$?
68867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68868 (exit $ac_status); }; }; then
68869 ac_cv_lib_iconv_iconv=yes
68870 else
68871 echo "$as_me: failed program was:" >&5
68872 sed 's/^/| /' conftest.$ac_ext >&5
68873
68874 ac_cv_lib_iconv_iconv=no
68875 fi
68876 rm -f conftest.err conftest.$ac_objext \
68877 conftest$ac_exeext conftest.$ac_ext
68878 LIBS=$ac_check_lib_save_LIBS
68879 fi
68880 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
68881 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
68882 if test $ac_cv_lib_iconv_iconv = yes; then
68883 LIBICONV="-liconv"
68884 fi
68885
68886 ac_save_LIBS="$LIBS"
68887 LIBS="$LIBS $LIBICONV"
68888
68889
68890
68891
68892
68893
68894 for ac_func in iconv_open iconv_close iconv nl_langinfo
68895 do
68896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68897 echo "$as_me:$LINENO: checking for $ac_func" >&5
68898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68899 if eval "test \"\${$as_ac_var+set}\" = set"; then
68900 echo $ECHO_N "(cached) $ECHO_C" >&6
68901 else
68902 if test x$gcc_no_link = xyes; then
68903 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68904 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68905 { (exit 1); exit 1; }; }
68906 fi
68907 cat >conftest.$ac_ext <<_ACEOF
68908 /* confdefs.h. */
68909 _ACEOF
68910 cat confdefs.h >>conftest.$ac_ext
68911 cat >>conftest.$ac_ext <<_ACEOF
68912 /* end confdefs.h. */
68913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
68915 #define $ac_func innocuous_$ac_func
68916
68917 /* System header to define __stub macros and hopefully few prototypes,
68918 which can conflict with char $ac_func (); below.
68919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68920 <limits.h> exists even on freestanding compilers. */
68921
68922 #ifdef __STDC__
68923 # include <limits.h>
68924 #else
68925 # include <assert.h>
68926 #endif
68927
68928 #undef $ac_func
68929
68930 /* Override any gcc2 internal prototype to avoid an error. */
68931 #ifdef __cplusplus
68932 extern "C"
68933 {
68934 #endif
68935 /* We use char because int might match the return type of a gcc2
68936 builtin and then its argument prototype would still apply. */
68937 char $ac_func ();
68938 /* The GNU C library defines this for functions which it implements
68939 to always fail with ENOSYS. Some functions are actually named
68940 something starting with __ and the normal name is an alias. */
68941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68942 choke me
68943 #else
68944 char (*f) () = $ac_func;
68945 #endif
68946 #ifdef __cplusplus
68947 }
68948 #endif
68949
68950 int
68951 main ()
68952 {
68953 return f != $ac_func;
68954 ;
68955 return 0;
68956 }
68957 _ACEOF
68958 rm -f conftest.$ac_objext conftest$ac_exeext
68959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68960 (eval $ac_link) 2>conftest.er1
68961 ac_status=$?
68962 grep -v '^ *+' conftest.er1 >conftest.err
68963 rm -f conftest.er1
68964 cat conftest.err >&5
68965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68966 (exit $ac_status); } &&
68967 { ac_try='test -z "$ac_c_werror_flag"
68968 || test ! -s conftest.err'
68969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68970 (eval $ac_try) 2>&5
68971 ac_status=$?
68972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68973 (exit $ac_status); }; } &&
68974 { ac_try='test -s conftest$ac_exeext'
68975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68976 (eval $ac_try) 2>&5
68977 ac_status=$?
68978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
68979 (exit $ac_status); }; }; then
68980 eval "$as_ac_var=yes"
68981 else
68982 echo "$as_me: failed program was:" >&5
68983 sed 's/^/| /' conftest.$ac_ext >&5
68984
68985 eval "$as_ac_var=no"
68986 fi
68987 rm -f conftest.err conftest.$ac_objext \
68988 conftest$ac_exeext conftest.$ac_ext
68989 fi
68990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68991 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68992 if test `eval echo '${'$as_ac_var'}'` = yes; then
68993 cat >>confdefs.h <<_ACEOF
68994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68995 _ACEOF
68996 ac_XPG2funcs=yes
68997 else
68998 ac_XPG2funcs=no
68999 fi
69000 done
69001
69002
69003 LIBS="$ac_save_LIBS"
69004
69005 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
69006 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
69007 if test x"$ac_has_iconv_h" = xyes &&
69008 test x"$ac_has_langinfo_h" = xyes &&
69009 test x"$ac_XPG2funcs" = xyes;
69010 then
69011 ac_XPG2_wchar_t=yes
69012 else
69013 ac_XPG2_wchar_t=no
69014 fi
69015 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
69016 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
69017
69018 # At the moment, only enable wchar_t specializations if all the
69019 # above support is present.
69020 if test x"$ac_isoC99_wchar_t" = xyes &&
69021 test x"$ac_XPG2_wchar_t" = xyes;
69022 then
69023 cat >>confdefs.h <<\_ACEOF
69024 #define _GLIBCXX_USE_WCHAR_T 1
69025 _ACEOF
69026
69027 enable_wchar_t=yes
69028 fi
69029 fi
69030 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
69031 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
69032 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
69033 echo "${ECHO_T}$enable_wchar_t" >&6
69034
69035 # All of the dependencies for wide character support are here, so
69036 # turn it on. This requires some syncronization with the
69037 # GLIBCXX_CHECK_WCHAR_T_SUPPORT in acinclude.m4
69038 cat >>confdefs.h <<\_ACEOF
69039 #define _GLIBCXX_USE_WCHAR_T 1
69040 _ACEOF
69041
69042 # Are these tested for even when cross?
69043 cat >>confdefs.h <<\_ACEOF
69044 #define HAVE_FLOAT_H 1
69045 _ACEOF
69046
69047 cat >>confdefs.h <<\_ACEOF
69048 #define HAVE_IEEEFP_H 1
69049 _ACEOF
69050
69051 cat >>confdefs.h <<\_ACEOF
69052 #define HAVE_INTTYPES_H 1
69053 _ACEOF
69054
69055 cat >>confdefs.h <<\_ACEOF
69056 #define HAVE_LOCALE_H 1
69057 _ACEOF
69058
69059 cat >>confdefs.h <<\_ACEOF
69060 #define HAVE_NAN_H 1
69061 _ACEOF
69062
69063 cat >>confdefs.h <<\_ACEOF
69064 #define HAVE_SYS_FILIO_H 1
69065 _ACEOF
69066
69067 cat >>confdefs.h <<\_ACEOF
69068 #define HAVE_SYS_IOCTL_H 1
69069 _ACEOF
69070
69071 cat >>confdefs.h <<\_ACEOF
69072 #define HAVE_SYS_ISA_DEFS_H 1
69073 _ACEOF
69074
69075 cat >>confdefs.h <<\_ACEOF
69076 #define HAVE_SYS_RESOURCE_H 1
69077 _ACEOF
69078
69079 cat >>confdefs.h <<\_ACEOF
69080 #define HAVE_SYS_TIME_H 1
69081 _ACEOF
69082
69083 cat >>confdefs.h <<\_ACEOF
69084 #define HAVE_SYS_TYPES_H 1
69085 _ACEOF
69086
69087 cat >>confdefs.h <<\_ACEOF
69088 #define HAVE_UNISTD_H 1
69089 _ACEOF
69090
69091 cat >>confdefs.h <<\_ACEOF
69092 #define HAVE_WCHAR_H 1
69093 _ACEOF
69094
69095 cat >>confdefs.h <<\_ACEOF
69096 #define HAVE_WCTYPE_H 1
69097 _ACEOF
69098
69099 cat >>confdefs.h <<\_ACEOF
69100 #define HAVE_LIBM 1
69101 _ACEOF
69102
69103 ;;
69104 esac
69105 case "$target" in
69106 sparc*-*-solaris2.8 | sparc*-*-solaris2.9 | sparc*-*-solaris2.10)
69107 # I saw these on sparc-sun-solaris2.8, but not 2.6, and not on i386
69108 cat >>confdefs.h <<\_ACEOF
69109 #define HAVE___BUILTIN_ABS 1
69110 _ACEOF
69111
69112 cat >>confdefs.h <<\_ACEOF
69113 #define HAVE___BUILTIN_LABS 1
69114 _ACEOF
69115
69116 cat >>confdefs.h <<\_ACEOF
69117 #define HAVE___BUILTIN_FABS 1
69118 _ACEOF
69119
69120 cat >>confdefs.h <<\_ACEOF
69121 #define HAVE___BUILTIN_FABSF 1
69122 _ACEOF
69123
69124 cat >>confdefs.h <<\_ACEOF
69125 #define HAVE___BUILTIN_FABSL 1
69126 _ACEOF
69127
69128 cat >>confdefs.h <<\_ACEOF
69129 #define HAVE___BUILTIN_COS 1
69130 _ACEOF
69131
69132 cat >>confdefs.h <<\_ACEOF
69133 #define HAVE___BUILTIN_COSF 1
69134 _ACEOF
69135
69136 cat >>confdefs.h <<\_ACEOF
69137 #define HAVE___BUILTIN_SIN 1
69138 _ACEOF
69139
69140 cat >>confdefs.h <<\_ACEOF
69141 #define HAVE___BUILTIN_SINF 1
69142 _ACEOF
69143
69144 ;;
69145 esac
69146 cat >>confdefs.h <<\_ACEOF
69147 #define HAVE_STRTOF 1
69148 _ACEOF
69149
69150 cat >>confdefs.h <<\_ACEOF
69151 #define HAVE_STRTOLD 1
69152 _ACEOF
69153
69154 cat >>confdefs.h <<\_ACEOF
69155 #define HAVE_MMAP 1
69156 _ACEOF
69157
69158 cat >>confdefs.h <<\_ACEOF
69159 #define HAVE_COPYSIGN 1
69160 _ACEOF
69161
69162 cat >>confdefs.h <<\_ACEOF
69163 #define HAVE_ISNAN 1
69164 _ACEOF
69165
69166 cat >>confdefs.h <<\_ACEOF
69167 #define HAVE_ISNANF 1
69168 _ACEOF
69169
69170 cat >>confdefs.h <<\_ACEOF
69171 #define HAVE_MODFF 1
69172 _ACEOF
69173
69174 cat >>confdefs.h <<\_ACEOF
69175 #define HAVE_HYPOT 1
69176 _ACEOF
69177
69178 ;;
69179 *-tpf)
69180
69181
69182
69183
69184
69185
69186
69187
69188 for ac_header in nan.h endian.h machine/endian.h \
69189 sys/param.h sys/types.h locale.h float.h inttypes.h
69190 do
69191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
69192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69193 echo "$as_me:$LINENO: checking for $ac_header" >&5
69194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
69195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69196 echo $ECHO_N "(cached) $ECHO_C" >&6
69197 fi
69198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
69199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69200 else
69201 # Is the header compilable?
69202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
69203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
69204 cat >conftest.$ac_ext <<_ACEOF
69205 /* confdefs.h. */
69206 _ACEOF
69207 cat confdefs.h >>conftest.$ac_ext
69208 cat >>conftest.$ac_ext <<_ACEOF
69209 /* end confdefs.h. */
69210 $ac_includes_default
69211 #include <$ac_header>
69212 _ACEOF
69213 rm -f conftest.$ac_objext
69214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
69215 (eval $ac_compile) 2>conftest.er1
69216 ac_status=$?
69217 grep -v '^ *+' conftest.er1 >conftest.err
69218 rm -f conftest.er1
69219 cat conftest.err >&5
69220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69221 (exit $ac_status); } &&
69222 { ac_try='test -z "$ac_c_werror_flag"
69223 || test ! -s conftest.err'
69224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69225 (eval $ac_try) 2>&5
69226 ac_status=$?
69227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69228 (exit $ac_status); }; } &&
69229 { ac_try='test -s conftest.$ac_objext'
69230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69231 (eval $ac_try) 2>&5
69232 ac_status=$?
69233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69234 (exit $ac_status); }; }; then
69235 ac_header_compiler=yes
69236 else
69237 echo "$as_me: failed program was:" >&5
69238 sed 's/^/| /' conftest.$ac_ext >&5
69239
69240 ac_header_compiler=no
69241 fi
69242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
69243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
69244 echo "${ECHO_T}$ac_header_compiler" >&6
69245
69246 # Is the header present?
69247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
69248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
69249 cat >conftest.$ac_ext <<_ACEOF
69250 /* confdefs.h. */
69251 _ACEOF
69252 cat confdefs.h >>conftest.$ac_ext
69253 cat >>conftest.$ac_ext <<_ACEOF
69254 /* end confdefs.h. */
69255 #include <$ac_header>
69256 _ACEOF
69257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
69258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
69259 ac_status=$?
69260 grep -v '^ *+' conftest.er1 >conftest.err
69261 rm -f conftest.er1
69262 cat conftest.err >&5
69263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69264 (exit $ac_status); } >/dev/null; then
69265 if test -s conftest.err; then
69266 ac_cpp_err=$ac_c_preproc_warn_flag
69267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
69268 else
69269 ac_cpp_err=
69270 fi
69271 else
69272 ac_cpp_err=yes
69273 fi
69274 if test -z "$ac_cpp_err"; then
69275 ac_header_preproc=yes
69276 else
69277 echo "$as_me: failed program was:" >&5
69278 sed 's/^/| /' conftest.$ac_ext >&5
69279
69280 ac_header_preproc=no
69281 fi
69282 rm -f conftest.err conftest.$ac_ext
69283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
69284 echo "${ECHO_T}$ac_header_preproc" >&6
69285
69286 # So? What about this header?
69287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
69288 yes:no: )
69289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
69290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
69291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
69292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
69293 ac_header_preproc=yes
69294 ;;
69295 no:yes:* )
69296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
69297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
69298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
69299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
69300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
69301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
69302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
69303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
69304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
69305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
69306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
69307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
69308 (
69309 cat <<\_ASBOX
69310 ## ----------------------------------------- ##
69311 ## Report this to the package-unused lists. ##
69312 ## ----------------------------------------- ##
69313 _ASBOX
69314 ) |
69315 sed "s/^/$as_me: WARNING: /" >&2
69316 ;;
69317 esac
69318 echo "$as_me:$LINENO: checking for $ac_header" >&5
69319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
69320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69321 echo $ECHO_N "(cached) $ECHO_C" >&6
69322 else
69323 eval "$as_ac_Header=\$ac_header_preproc"
69324 fi
69325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
69326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69327
69328 fi
69329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
69330 cat >>confdefs.h <<_ACEOF
69331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
69332 _ACEOF
69333
69334 fi
69335
69336 done
69337
69338 SECTION_FLAGS='-ffunction-sections -fdata-sections'
69339
69340
69341 # If we're not using GNU ld, then there's no point in even trying these
69342 # tests. Check for that first. We should have already tested for gld
69343 # by now (in libtool), but require it now just to be safe...
69344 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
69345 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
69346
69347
69348
69349 # The name set by libtool depends on the version of libtool. Shame on us
69350 # for depending on an impl detail, but c'est la vie. Older versions used
69351 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
69352 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
69353 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
69354 # set (hence we're using an older libtool), then set it.
69355 if test x${with_gnu_ld+set} != xset; then
69356 if test x${ac_cv_prog_gnu_ld+set} != xset; then
69357 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
69358 with_gnu_ld=no
69359 else
69360 with_gnu_ld=$ac_cv_prog_gnu_ld
69361 fi
69362 fi
69363
69364 # Start by getting the version number. I think the libtool test already
69365 # does some of this, but throws away the result.
69366
69367 ldver=`$LD --version 2>/dev/null | head -1 | \
69368 sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
69369
69370 glibcxx_gnu_ld_version=`echo $ldver | \
69371 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
69372
69373 # Set --gc-sections.
69374 if test "$with_gnu_ld" = "notbroken"; then
69375 # GNU ld it is! Joy and bunny rabbits!
69376
69377 # All these tests are for C++; save the language and the compiler flags.
69378 # Need to do this so that g++ won't try to link in libstdc++
69379 ac_test_CFLAGS="${CFLAGS+set}"
69380 ac_save_CFLAGS="$CFLAGS"
69381 CFLAGS='-x c++ -Wl,--gc-sections'
69382
69383 # Check for -Wl,--gc-sections
69384 # XXX This test is broken at the moment, as symbols required for linking
69385 # are now in libsupc++ (not built yet). In addition, this test has
69386 # cored on solaris in the past. In addition, --gc-sections doesn't
69387 # really work at the moment (keeps on discarding used sections, first
69388 # .eh_frame and now some of the glibc sections for iconv).
69389 # Bzzzzt. Thanks for playing, maybe next time.
69390 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
69391 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
69392 if test "$cross_compiling" = yes; then
69393 ac_sectionLDflags=yes
69394 else
69395 cat >conftest.$ac_ext <<_ACEOF
69396 /* confdefs.h. */
69397 _ACEOF
69398 cat confdefs.h >>conftest.$ac_ext
69399 cat >>conftest.$ac_ext <<_ACEOF
69400 /* end confdefs.h. */
69401
69402 int main(void)
69403 {
69404 try { throw 1; }
69405 catch (...) { };
69406 return 0;
69407 }
69408
69409 _ACEOF
69410 rm -f conftest$ac_exeext
69411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69412 (eval $ac_link) 2>&5
69413 ac_status=$?
69414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
69416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69417 (eval $ac_try) 2>&5
69418 ac_status=$?
69419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69420 (exit $ac_status); }; }; then
69421 ac_sectionLDflags=yes
69422 else
69423 echo "$as_me: program exited with status $ac_status" >&5
69424 echo "$as_me: failed program was:" >&5
69425 sed 's/^/| /' conftest.$ac_ext >&5
69426
69427 ( exit $ac_status )
69428 ac_sectionLDflags=no
69429 fi
69430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
69431 fi
69432 if test "$ac_test_CFLAGS" = set; then
69433 CFLAGS="$ac_save_CFLAGS"
69434 else
69435 # this is the suspicious part
69436 CFLAGS=''
69437 fi
69438 if test "$ac_sectionLDflags" = "yes"; then
69439 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
69440 fi
69441 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
69442 echo "${ECHO_T}$ac_sectionLDflags" >&6
69443 fi
69444
69445 # Set linker optimization flags.
69446 if test x"$with_gnu_ld" = x"yes"; then
69447 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
69448 fi
69449
69450
69451
69452
69453
69454
69455 echo "$as_me:$LINENO: checking for main in -lm" >&5
69456 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
69457 if test "${ac_cv_lib_m_main+set}" = set; then
69458 echo $ECHO_N "(cached) $ECHO_C" >&6
69459 else
69460 ac_check_lib_save_LIBS=$LIBS
69461 LIBS="-lm $LIBS"
69462 if test x$gcc_no_link = xyes; then
69463 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69464 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69465 { (exit 1); exit 1; }; }
69466 fi
69467 cat >conftest.$ac_ext <<_ACEOF
69468 /* confdefs.h. */
69469 _ACEOF
69470 cat confdefs.h >>conftest.$ac_ext
69471 cat >>conftest.$ac_ext <<_ACEOF
69472 /* end confdefs.h. */
69473
69474
69475 int
69476 main ()
69477 {
69478 main ();
69479 ;
69480 return 0;
69481 }
69482 _ACEOF
69483 rm -f conftest.$ac_objext conftest$ac_exeext
69484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69485 (eval $ac_link) 2>conftest.er1
69486 ac_status=$?
69487 grep -v '^ *+' conftest.er1 >conftest.err
69488 rm -f conftest.er1
69489 cat conftest.err >&5
69490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69491 (exit $ac_status); } &&
69492 { ac_try='test -z "$ac_c_werror_flag"
69493 || test ! -s conftest.err'
69494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69495 (eval $ac_try) 2>&5
69496 ac_status=$?
69497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69498 (exit $ac_status); }; } &&
69499 { ac_try='test -s conftest$ac_exeext'
69500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69501 (eval $ac_try) 2>&5
69502 ac_status=$?
69503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69504 (exit $ac_status); }; }; then
69505 ac_cv_lib_m_main=yes
69506 else
69507 echo "$as_me: failed program was:" >&5
69508 sed 's/^/| /' conftest.$ac_ext >&5
69509
69510 ac_cv_lib_m_main=no
69511 fi
69512 rm -f conftest.err conftest.$ac_objext \
69513 conftest$ac_exeext conftest.$ac_ext
69514 LIBS=$ac_check_lib_save_LIBS
69515 fi
69516 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
69517 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
69518 if test $ac_cv_lib_m_main = yes; then
69519 cat >>confdefs.h <<_ACEOF
69520 #define HAVE_LIBM 1
69521 _ACEOF
69522
69523 LIBS="-lm $LIBS"
69524
69525 fi
69526
69527
69528 for ac_func in copysignf
69529 do
69530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69531 echo "$as_me:$LINENO: checking for $ac_func" >&5
69532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69533 if eval "test \"\${$as_ac_var+set}\" = set"; then
69534 echo $ECHO_N "(cached) $ECHO_C" >&6
69535 else
69536 if test x$gcc_no_link = xyes; then
69537 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69538 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69539 { (exit 1); exit 1; }; }
69540 fi
69541 cat >conftest.$ac_ext <<_ACEOF
69542 /* confdefs.h. */
69543 _ACEOF
69544 cat confdefs.h >>conftest.$ac_ext
69545 cat >>conftest.$ac_ext <<_ACEOF
69546 /* end confdefs.h. */
69547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69549 #define $ac_func innocuous_$ac_func
69550
69551 /* System header to define __stub macros and hopefully few prototypes,
69552 which can conflict with char $ac_func (); below.
69553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69554 <limits.h> exists even on freestanding compilers. */
69555
69556 #ifdef __STDC__
69557 # include <limits.h>
69558 #else
69559 # include <assert.h>
69560 #endif
69561
69562 #undef $ac_func
69563
69564 /* Override any gcc2 internal prototype to avoid an error. */
69565 #ifdef __cplusplus
69566 extern "C"
69567 {
69568 #endif
69569 /* We use char because int might match the return type of a gcc2
69570 builtin and then its argument prototype would still apply. */
69571 char $ac_func ();
69572 /* The GNU C library defines this for functions which it implements
69573 to always fail with ENOSYS. Some functions are actually named
69574 something starting with __ and the normal name is an alias. */
69575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69576 choke me
69577 #else
69578 char (*f) () = $ac_func;
69579 #endif
69580 #ifdef __cplusplus
69581 }
69582 #endif
69583
69584 int
69585 main ()
69586 {
69587 return f != $ac_func;
69588 ;
69589 return 0;
69590 }
69591 _ACEOF
69592 rm -f conftest.$ac_objext conftest$ac_exeext
69593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69594 (eval $ac_link) 2>conftest.er1
69595 ac_status=$?
69596 grep -v '^ *+' conftest.er1 >conftest.err
69597 rm -f conftest.er1
69598 cat conftest.err >&5
69599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69600 (exit $ac_status); } &&
69601 { ac_try='test -z "$ac_c_werror_flag"
69602 || test ! -s conftest.err'
69603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69604 (eval $ac_try) 2>&5
69605 ac_status=$?
69606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69607 (exit $ac_status); }; } &&
69608 { ac_try='test -s conftest$ac_exeext'
69609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69610 (eval $ac_try) 2>&5
69611 ac_status=$?
69612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69613 (exit $ac_status); }; }; then
69614 eval "$as_ac_var=yes"
69615 else
69616 echo "$as_me: failed program was:" >&5
69617 sed 's/^/| /' conftest.$ac_ext >&5
69618
69619 eval "$as_ac_var=no"
69620 fi
69621 rm -f conftest.err conftest.$ac_objext \
69622 conftest$ac_exeext conftest.$ac_ext
69623 fi
69624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69626 if test `eval echo '${'$as_ac_var'}'` = yes; then
69627 cat >>confdefs.h <<_ACEOF
69628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69629 _ACEOF
69630
69631 else
69632 LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
69633 fi
69634 done
69635
69636
69637
69638 for ac_func in __signbit
69639 do
69640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69641 echo "$as_me:$LINENO: checking for $ac_func" >&5
69642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69643 if eval "test \"\${$as_ac_var+set}\" = set"; then
69644 echo $ECHO_N "(cached) $ECHO_C" >&6
69645 else
69646 if test x$gcc_no_link = xyes; then
69647 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69648 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69649 { (exit 1); exit 1; }; }
69650 fi
69651 cat >conftest.$ac_ext <<_ACEOF
69652 /* confdefs.h. */
69653 _ACEOF
69654 cat confdefs.h >>conftest.$ac_ext
69655 cat >>conftest.$ac_ext <<_ACEOF
69656 /* end confdefs.h. */
69657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69659 #define $ac_func innocuous_$ac_func
69660
69661 /* System header to define __stub macros and hopefully few prototypes,
69662 which can conflict with char $ac_func (); below.
69663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69664 <limits.h> exists even on freestanding compilers. */
69665
69666 #ifdef __STDC__
69667 # include <limits.h>
69668 #else
69669 # include <assert.h>
69670 #endif
69671
69672 #undef $ac_func
69673
69674 /* Override any gcc2 internal prototype to avoid an error. */
69675 #ifdef __cplusplus
69676 extern "C"
69677 {
69678 #endif
69679 /* We use char because int might match the return type of a gcc2
69680 builtin and then its argument prototype would still apply. */
69681 char $ac_func ();
69682 /* The GNU C library defines this for functions which it implements
69683 to always fail with ENOSYS. Some functions are actually named
69684 something starting with __ and the normal name is an alias. */
69685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69686 choke me
69687 #else
69688 char (*f) () = $ac_func;
69689 #endif
69690 #ifdef __cplusplus
69691 }
69692 #endif
69693
69694 int
69695 main ()
69696 {
69697 return f != $ac_func;
69698 ;
69699 return 0;
69700 }
69701 _ACEOF
69702 rm -f conftest.$ac_objext conftest$ac_exeext
69703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69704 (eval $ac_link) 2>conftest.er1
69705 ac_status=$?
69706 grep -v '^ *+' conftest.er1 >conftest.err
69707 rm -f conftest.er1
69708 cat conftest.err >&5
69709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69710 (exit $ac_status); } &&
69711 { ac_try='test -z "$ac_c_werror_flag"
69712 || test ! -s conftest.err'
69713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69714 (eval $ac_try) 2>&5
69715 ac_status=$?
69716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69717 (exit $ac_status); }; } &&
69718 { ac_try='test -s conftest$ac_exeext'
69719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69720 (eval $ac_try) 2>&5
69721 ac_status=$?
69722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69723 (exit $ac_status); }; }; then
69724 eval "$as_ac_var=yes"
69725 else
69726 echo "$as_me: failed program was:" >&5
69727 sed 's/^/| /' conftest.$ac_ext >&5
69728
69729 eval "$as_ac_var=no"
69730 fi
69731 rm -f conftest.err conftest.$ac_objext \
69732 conftest$ac_exeext conftest.$ac_ext
69733 fi
69734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69736 if test `eval echo '${'$as_ac_var'}'` = yes; then
69737 cat >>confdefs.h <<_ACEOF
69738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69739 _ACEOF
69740
69741 else
69742 LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
69743 fi
69744 done
69745
69746
69747
69748 for ac_func in __signbitf
69749 do
69750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69751 echo "$as_me:$LINENO: checking for $ac_func" >&5
69752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69753 if eval "test \"\${$as_ac_var+set}\" = set"; then
69754 echo $ECHO_N "(cached) $ECHO_C" >&6
69755 else
69756 if test x$gcc_no_link = xyes; then
69757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69759 { (exit 1); exit 1; }; }
69760 fi
69761 cat >conftest.$ac_ext <<_ACEOF
69762 /* confdefs.h. */
69763 _ACEOF
69764 cat confdefs.h >>conftest.$ac_ext
69765 cat >>conftest.$ac_ext <<_ACEOF
69766 /* end confdefs.h. */
69767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69769 #define $ac_func innocuous_$ac_func
69770
69771 /* System header to define __stub macros and hopefully few prototypes,
69772 which can conflict with char $ac_func (); below.
69773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69774 <limits.h> exists even on freestanding compilers. */
69775
69776 #ifdef __STDC__
69777 # include <limits.h>
69778 #else
69779 # include <assert.h>
69780 #endif
69781
69782 #undef $ac_func
69783
69784 /* Override any gcc2 internal prototype to avoid an error. */
69785 #ifdef __cplusplus
69786 extern "C"
69787 {
69788 #endif
69789 /* We use char because int might match the return type of a gcc2
69790 builtin and then its argument prototype would still apply. */
69791 char $ac_func ();
69792 /* The GNU C library defines this for functions which it implements
69793 to always fail with ENOSYS. Some functions are actually named
69794 something starting with __ and the normal name is an alias. */
69795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69796 choke me
69797 #else
69798 char (*f) () = $ac_func;
69799 #endif
69800 #ifdef __cplusplus
69801 }
69802 #endif
69803
69804 int
69805 main ()
69806 {
69807 return f != $ac_func;
69808 ;
69809 return 0;
69810 }
69811 _ACEOF
69812 rm -f conftest.$ac_objext conftest$ac_exeext
69813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69814 (eval $ac_link) 2>conftest.er1
69815 ac_status=$?
69816 grep -v '^ *+' conftest.er1 >conftest.err
69817 rm -f conftest.er1
69818 cat conftest.err >&5
69819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69820 (exit $ac_status); } &&
69821 { ac_try='test -z "$ac_c_werror_flag"
69822 || test ! -s conftest.err'
69823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69824 (eval $ac_try) 2>&5
69825 ac_status=$?
69826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69827 (exit $ac_status); }; } &&
69828 { ac_try='test -s conftest$ac_exeext'
69829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69830 (eval $ac_try) 2>&5
69831 ac_status=$?
69832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69833 (exit $ac_status); }; }; then
69834 eval "$as_ac_var=yes"
69835 else
69836 echo "$as_me: failed program was:" >&5
69837 sed 's/^/| /' conftest.$ac_ext >&5
69838
69839 eval "$as_ac_var=no"
69840 fi
69841 rm -f conftest.err conftest.$ac_objext \
69842 conftest$ac_exeext conftest.$ac_ext
69843 fi
69844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69846 if test `eval echo '${'$as_ac_var'}'` = yes; then
69847 cat >>confdefs.h <<_ACEOF
69848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69849 _ACEOF
69850
69851 else
69852 LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
69853 fi
69854 done
69855
69856
69857 if test x$ac_cv_func_copysignl = x"yes"; then
69858
69859 for ac_func in __signbitl
69860 do
69861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69862 echo "$as_me:$LINENO: checking for $ac_func" >&5
69863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69864 if eval "test \"\${$as_ac_var+set}\" = set"; then
69865 echo $ECHO_N "(cached) $ECHO_C" >&6
69866 else
69867 if test x$gcc_no_link = xyes; then
69868 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69869 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69870 { (exit 1); exit 1; }; }
69871 fi
69872 cat >conftest.$ac_ext <<_ACEOF
69873 /* confdefs.h. */
69874 _ACEOF
69875 cat confdefs.h >>conftest.$ac_ext
69876 cat >>conftest.$ac_ext <<_ACEOF
69877 /* end confdefs.h. */
69878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
69880 #define $ac_func innocuous_$ac_func
69881
69882 /* System header to define __stub macros and hopefully few prototypes,
69883 which can conflict with char $ac_func (); below.
69884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69885 <limits.h> exists even on freestanding compilers. */
69886
69887 #ifdef __STDC__
69888 # include <limits.h>
69889 #else
69890 # include <assert.h>
69891 #endif
69892
69893 #undef $ac_func
69894
69895 /* Override any gcc2 internal prototype to avoid an error. */
69896 #ifdef __cplusplus
69897 extern "C"
69898 {
69899 #endif
69900 /* We use char because int might match the return type of a gcc2
69901 builtin and then its argument prototype would still apply. */
69902 char $ac_func ();
69903 /* The GNU C library defines this for functions which it implements
69904 to always fail with ENOSYS. Some functions are actually named
69905 something starting with __ and the normal name is an alias. */
69906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69907 choke me
69908 #else
69909 char (*f) () = $ac_func;
69910 #endif
69911 #ifdef __cplusplus
69912 }
69913 #endif
69914
69915 int
69916 main ()
69917 {
69918 return f != $ac_func;
69919 ;
69920 return 0;
69921 }
69922 _ACEOF
69923 rm -f conftest.$ac_objext conftest$ac_exeext
69924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69925 (eval $ac_link) 2>conftest.er1
69926 ac_status=$?
69927 grep -v '^ *+' conftest.er1 >conftest.err
69928 rm -f conftest.er1
69929 cat conftest.err >&5
69930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69931 (exit $ac_status); } &&
69932 { ac_try='test -z "$ac_c_werror_flag"
69933 || test ! -s conftest.err'
69934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69935 (eval $ac_try) 2>&5
69936 ac_status=$?
69937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69938 (exit $ac_status); }; } &&
69939 { ac_try='test -s conftest$ac_exeext'
69940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69941 (eval $ac_try) 2>&5
69942 ac_status=$?
69943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
69944 (exit $ac_status); }; }; then
69945 eval "$as_ac_var=yes"
69946 else
69947 echo "$as_me: failed program was:" >&5
69948 sed 's/^/| /' conftest.$ac_ext >&5
69949
69950 eval "$as_ac_var=no"
69951 fi
69952 rm -f conftest.err conftest.$ac_objext \
69953 conftest$ac_exeext conftest.$ac_ext
69954 fi
69955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69957 if test `eval echo '${'$as_ac_var'}'` = yes; then
69958 cat >>confdefs.h <<_ACEOF
69959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69960 _ACEOF
69961
69962 else
69963 LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
69964 fi
69965 done
69966
69967 fi
69968
69969 # Used in libmath/Makefile.am.
69970 if test -n "$LIBMATHOBJS"; then
69971 need_libmath=yes
69972 fi
69973
69974
69975
69976 # Test wchar.h for mbstate_t, which is needed for char_traits and
69977 # others even if wchar_t support is not on.
69978 echo "$as_me:$LINENO: checking for mbstate_t" >&5
69979 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
69980 cat >conftest.$ac_ext <<_ACEOF
69981 /* confdefs.h. */
69982 _ACEOF
69983 cat confdefs.h >>conftest.$ac_ext
69984 cat >>conftest.$ac_ext <<_ACEOF
69985 /* end confdefs.h. */
69986 #include <wchar.h>
69987 int
69988 main ()
69989 {
69990 mbstate_t teststate;
69991 ;
69992 return 0;
69993 }
69994 _ACEOF
69995 rm -f conftest.$ac_objext
69996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
69997 (eval $ac_compile) 2>conftest.er1
69998 ac_status=$?
69999 grep -v '^ *+' conftest.er1 >conftest.err
70000 rm -f conftest.er1
70001 cat conftest.err >&5
70002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70003 (exit $ac_status); } &&
70004 { ac_try='test -z "$ac_c_werror_flag"
70005 || test ! -s conftest.err'
70006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70007 (eval $ac_try) 2>&5
70008 ac_status=$?
70009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70010 (exit $ac_status); }; } &&
70011 { ac_try='test -s conftest.$ac_objext'
70012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70013 (eval $ac_try) 2>&5
70014 ac_status=$?
70015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70016 (exit $ac_status); }; }; then
70017 have_mbstate_t=yes
70018 else
70019 echo "$as_me: failed program was:" >&5
70020 sed 's/^/| /' conftest.$ac_ext >&5
70021
70022 have_mbstate_t=no
70023 fi
70024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70025 echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
70026 echo "${ECHO_T}$have_mbstate_t" >&6
70027 if test x"$have_mbstate_t" = xyes; then
70028 cat >>confdefs.h <<\_ACEOF
70029 #define HAVE_MBSTATE_T 1
70030 _ACEOF
70031
70032 fi
70033
70034 # Sanity check for existence of ISO C99 headers for extended encoding.
70035
70036 for ac_header in wchar.h
70037 do
70038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
70039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70040 echo "$as_me:$LINENO: checking for $ac_header" >&5
70041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70043 echo $ECHO_N "(cached) $ECHO_C" >&6
70044 fi
70045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70047 else
70048 # Is the header compilable?
70049 echo "$as_me:$LINENO: checking $ac_header usability" >&5
70050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
70051 cat >conftest.$ac_ext <<_ACEOF
70052 /* confdefs.h. */
70053 _ACEOF
70054 cat confdefs.h >>conftest.$ac_ext
70055 cat >>conftest.$ac_ext <<_ACEOF
70056 /* end confdefs.h. */
70057 $ac_includes_default
70058 #include <$ac_header>
70059 _ACEOF
70060 rm -f conftest.$ac_objext
70061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70062 (eval $ac_compile) 2>conftest.er1
70063 ac_status=$?
70064 grep -v '^ *+' conftest.er1 >conftest.err
70065 rm -f conftest.er1
70066 cat conftest.err >&5
70067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70068 (exit $ac_status); } &&
70069 { ac_try='test -z "$ac_c_werror_flag"
70070 || test ! -s conftest.err'
70071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70072 (eval $ac_try) 2>&5
70073 ac_status=$?
70074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70075 (exit $ac_status); }; } &&
70076 { ac_try='test -s conftest.$ac_objext'
70077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70078 (eval $ac_try) 2>&5
70079 ac_status=$?
70080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70081 (exit $ac_status); }; }; then
70082 ac_header_compiler=yes
70083 else
70084 echo "$as_me: failed program was:" >&5
70085 sed 's/^/| /' conftest.$ac_ext >&5
70086
70087 ac_header_compiler=no
70088 fi
70089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70091 echo "${ECHO_T}$ac_header_compiler" >&6
70092
70093 # Is the header present?
70094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
70095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
70096 cat >conftest.$ac_ext <<_ACEOF
70097 /* confdefs.h. */
70098 _ACEOF
70099 cat confdefs.h >>conftest.$ac_ext
70100 cat >>conftest.$ac_ext <<_ACEOF
70101 /* end confdefs.h. */
70102 #include <$ac_header>
70103 _ACEOF
70104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70106 ac_status=$?
70107 grep -v '^ *+' conftest.er1 >conftest.err
70108 rm -f conftest.er1
70109 cat conftest.err >&5
70110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70111 (exit $ac_status); } >/dev/null; then
70112 if test -s conftest.err; then
70113 ac_cpp_err=$ac_c_preproc_warn_flag
70114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70115 else
70116 ac_cpp_err=
70117 fi
70118 else
70119 ac_cpp_err=yes
70120 fi
70121 if test -z "$ac_cpp_err"; then
70122 ac_header_preproc=yes
70123 else
70124 echo "$as_me: failed program was:" >&5
70125 sed 's/^/| /' conftest.$ac_ext >&5
70126
70127 ac_header_preproc=no
70128 fi
70129 rm -f conftest.err conftest.$ac_ext
70130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70131 echo "${ECHO_T}$ac_header_preproc" >&6
70132
70133 # So? What about this header?
70134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70135 yes:no: )
70136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
70137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
70138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
70139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
70140 ac_header_preproc=yes
70141 ;;
70142 no:yes:* )
70143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
70144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
70145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
70146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
70147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
70148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
70149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
70150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
70151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
70152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
70153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
70154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
70155 (
70156 cat <<\_ASBOX
70157 ## ----------------------------------------- ##
70158 ## Report this to the package-unused lists. ##
70159 ## ----------------------------------------- ##
70160 _ASBOX
70161 ) |
70162 sed "s/^/$as_me: WARNING: /" >&2
70163 ;;
70164 esac
70165 echo "$as_me:$LINENO: checking for $ac_header" >&5
70166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70168 echo $ECHO_N "(cached) $ECHO_C" >&6
70169 else
70170 eval "$as_ac_Header=\$ac_header_preproc"
70171 fi
70172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70174
70175 fi
70176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
70177 cat >>confdefs.h <<_ACEOF
70178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
70179 _ACEOF
70180 ac_has_wchar_h=yes
70181 else
70182 ac_has_wchar_h=no
70183 fi
70184
70185 done
70186
70187
70188 for ac_header in wctype.h
70189 do
70190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
70191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70192 echo "$as_me:$LINENO: checking for $ac_header" >&5
70193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70195 echo $ECHO_N "(cached) $ECHO_C" >&6
70196 fi
70197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70199 else
70200 # Is the header compilable?
70201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
70202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
70203 cat >conftest.$ac_ext <<_ACEOF
70204 /* confdefs.h. */
70205 _ACEOF
70206 cat confdefs.h >>conftest.$ac_ext
70207 cat >>conftest.$ac_ext <<_ACEOF
70208 /* end confdefs.h. */
70209 $ac_includes_default
70210 #include <$ac_header>
70211 _ACEOF
70212 rm -f conftest.$ac_objext
70213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70214 (eval $ac_compile) 2>conftest.er1
70215 ac_status=$?
70216 grep -v '^ *+' conftest.er1 >conftest.err
70217 rm -f conftest.er1
70218 cat conftest.err >&5
70219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70220 (exit $ac_status); } &&
70221 { ac_try='test -z "$ac_c_werror_flag"
70222 || test ! -s conftest.err'
70223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70224 (eval $ac_try) 2>&5
70225 ac_status=$?
70226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70227 (exit $ac_status); }; } &&
70228 { ac_try='test -s conftest.$ac_objext'
70229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70230 (eval $ac_try) 2>&5
70231 ac_status=$?
70232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70233 (exit $ac_status); }; }; then
70234 ac_header_compiler=yes
70235 else
70236 echo "$as_me: failed program was:" >&5
70237 sed 's/^/| /' conftest.$ac_ext >&5
70238
70239 ac_header_compiler=no
70240 fi
70241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70243 echo "${ECHO_T}$ac_header_compiler" >&6
70244
70245 # Is the header present?
70246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
70247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
70248 cat >conftest.$ac_ext <<_ACEOF
70249 /* confdefs.h. */
70250 _ACEOF
70251 cat confdefs.h >>conftest.$ac_ext
70252 cat >>conftest.$ac_ext <<_ACEOF
70253 /* end confdefs.h. */
70254 #include <$ac_header>
70255 _ACEOF
70256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70258 ac_status=$?
70259 grep -v '^ *+' conftest.er1 >conftest.err
70260 rm -f conftest.er1
70261 cat conftest.err >&5
70262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70263 (exit $ac_status); } >/dev/null; then
70264 if test -s conftest.err; then
70265 ac_cpp_err=$ac_c_preproc_warn_flag
70266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70267 else
70268 ac_cpp_err=
70269 fi
70270 else
70271 ac_cpp_err=yes
70272 fi
70273 if test -z "$ac_cpp_err"; then
70274 ac_header_preproc=yes
70275 else
70276 echo "$as_me: failed program was:" >&5
70277 sed 's/^/| /' conftest.$ac_ext >&5
70278
70279 ac_header_preproc=no
70280 fi
70281 rm -f conftest.err conftest.$ac_ext
70282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70283 echo "${ECHO_T}$ac_header_preproc" >&6
70284
70285 # So? What about this header?
70286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70287 yes:no: )
70288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
70289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
70290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
70291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
70292 ac_header_preproc=yes
70293 ;;
70294 no:yes:* )
70295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
70296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
70297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
70298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
70299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
70300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
70301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
70302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
70303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
70304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
70305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
70306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
70307 (
70308 cat <<\_ASBOX
70309 ## ----------------------------------------- ##
70310 ## Report this to the package-unused lists. ##
70311 ## ----------------------------------------- ##
70312 _ASBOX
70313 ) |
70314 sed "s/^/$as_me: WARNING: /" >&2
70315 ;;
70316 esac
70317 echo "$as_me:$LINENO: checking for $ac_header" >&5
70318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70320 echo $ECHO_N "(cached) $ECHO_C" >&6
70321 else
70322 eval "$as_ac_Header=\$ac_header_preproc"
70323 fi
70324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70326
70327 fi
70328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
70329 cat >>confdefs.h <<_ACEOF
70330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
70331 _ACEOF
70332 ac_has_wctype_h=yes
70333 else
70334 ac_has_wctype_h=no
70335 fi
70336
70337 done
70338
70339
70340 # Only continue checking if the ISO C99 headers exist and support is on.
70341 if test x"$ac_has_wchar_h" = xyes &&
70342 test x"$ac_has_wctype_h" = xyes &&
70343 test x"$enable_c_mbchar" != xno; then
70344
70345 # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
70346 # numeric_limits can instantiate type_traits<wchar_t>
70347 echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
70348 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
70349 cat >conftest.$ac_ext <<_ACEOF
70350 /* confdefs.h. */
70351 _ACEOF
70352 cat confdefs.h >>conftest.$ac_ext
70353 cat >>conftest.$ac_ext <<_ACEOF
70354 /* end confdefs.h. */
70355 #include <wchar.h>
70356 int
70357 main ()
70358 {
70359 int i = WCHAR_MIN; int j = WCHAR_MAX;
70360 ;
70361 return 0;
70362 }
70363 _ACEOF
70364 rm -f conftest.$ac_objext
70365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70366 (eval $ac_compile) 2>conftest.er1
70367 ac_status=$?
70368 grep -v '^ *+' conftest.er1 >conftest.err
70369 rm -f conftest.er1
70370 cat conftest.err >&5
70371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70372 (exit $ac_status); } &&
70373 { ac_try='test -z "$ac_c_werror_flag"
70374 || test ! -s conftest.err'
70375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70376 (eval $ac_try) 2>&5
70377 ac_status=$?
70378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70379 (exit $ac_status); }; } &&
70380 { ac_try='test -s conftest.$ac_objext'
70381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70382 (eval $ac_try) 2>&5
70383 ac_status=$?
70384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70385 (exit $ac_status); }; }; then
70386 has_wchar_minmax=yes
70387 else
70388 echo "$as_me: failed program was:" >&5
70389 sed 's/^/| /' conftest.$ac_ext >&5
70390
70391 has_wchar_minmax=no
70392 fi
70393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70394 echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
70395 echo "${ECHO_T}$has_wchar_minmax" >&6
70396
70397 # Test wchar.h for WEOF, which is what we use to determine whether
70398 # to specialize for char_traits<wchar_t> or not.
70399 echo "$as_me:$LINENO: checking for WEOF" >&5
70400 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
70401 cat >conftest.$ac_ext <<_ACEOF
70402 /* confdefs.h. */
70403 _ACEOF
70404 cat confdefs.h >>conftest.$ac_ext
70405 cat >>conftest.$ac_ext <<_ACEOF
70406 /* end confdefs.h. */
70407
70408 #include <wchar.h>
70409 #include <stddef.h>
70410 int
70411 main ()
70412 {
70413 wint_t i = WEOF;
70414 ;
70415 return 0;
70416 }
70417 _ACEOF
70418 rm -f conftest.$ac_objext
70419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70420 (eval $ac_compile) 2>conftest.er1
70421 ac_status=$?
70422 grep -v '^ *+' conftest.er1 >conftest.err
70423 rm -f conftest.er1
70424 cat conftest.err >&5
70425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70426 (exit $ac_status); } &&
70427 { ac_try='test -z "$ac_c_werror_flag"
70428 || test ! -s conftest.err'
70429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70430 (eval $ac_try) 2>&5
70431 ac_status=$?
70432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70433 (exit $ac_status); }; } &&
70434 { ac_try='test -s conftest.$ac_objext'
70435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70436 (eval $ac_try) 2>&5
70437 ac_status=$?
70438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70439 (exit $ac_status); }; }; then
70440 has_weof=yes
70441 else
70442 echo "$as_me: failed program was:" >&5
70443 sed 's/^/| /' conftest.$ac_ext >&5
70444
70445 has_weof=no
70446 fi
70447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70448 echo "$as_me:$LINENO: result: $has_weof" >&5
70449 echo "${ECHO_T}$has_weof" >&6
70450
70451 # Tests for wide character functions used in char_traits<wchar_t>.
70452 ac_wfuncs=yes
70453
70454
70455
70456
70457
70458
70459 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
70460 do
70461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70462 echo "$as_me:$LINENO: checking for $ac_func" >&5
70463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70464 if eval "test \"\${$as_ac_var+set}\" = set"; then
70465 echo $ECHO_N "(cached) $ECHO_C" >&6
70466 else
70467 if test x$gcc_no_link = xyes; then
70468 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70469 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70470 { (exit 1); exit 1; }; }
70471 fi
70472 cat >conftest.$ac_ext <<_ACEOF
70473 /* confdefs.h. */
70474 _ACEOF
70475 cat confdefs.h >>conftest.$ac_ext
70476 cat >>conftest.$ac_ext <<_ACEOF
70477 /* end confdefs.h. */
70478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70480 #define $ac_func innocuous_$ac_func
70481
70482 /* System header to define __stub macros and hopefully few prototypes,
70483 which can conflict with char $ac_func (); below.
70484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70485 <limits.h> exists even on freestanding compilers. */
70486
70487 #ifdef __STDC__
70488 # include <limits.h>
70489 #else
70490 # include <assert.h>
70491 #endif
70492
70493 #undef $ac_func
70494
70495 /* Override any gcc2 internal prototype to avoid an error. */
70496 #ifdef __cplusplus
70497 extern "C"
70498 {
70499 #endif
70500 /* We use char because int might match the return type of a gcc2
70501 builtin and then its argument prototype would still apply. */
70502 char $ac_func ();
70503 /* The GNU C library defines this for functions which it implements
70504 to always fail with ENOSYS. Some functions are actually named
70505 something starting with __ and the normal name is an alias. */
70506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70507 choke me
70508 #else
70509 char (*f) () = $ac_func;
70510 #endif
70511 #ifdef __cplusplus
70512 }
70513 #endif
70514
70515 int
70516 main ()
70517 {
70518 return f != $ac_func;
70519 ;
70520 return 0;
70521 }
70522 _ACEOF
70523 rm -f conftest.$ac_objext conftest$ac_exeext
70524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70525 (eval $ac_link) 2>conftest.er1
70526 ac_status=$?
70527 grep -v '^ *+' conftest.er1 >conftest.err
70528 rm -f conftest.er1
70529 cat conftest.err >&5
70530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70531 (exit $ac_status); } &&
70532 { ac_try='test -z "$ac_c_werror_flag"
70533 || test ! -s conftest.err'
70534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70535 (eval $ac_try) 2>&5
70536 ac_status=$?
70537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70538 (exit $ac_status); }; } &&
70539 { ac_try='test -s conftest$ac_exeext'
70540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70541 (eval $ac_try) 2>&5
70542 ac_status=$?
70543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70544 (exit $ac_status); }; }; then
70545 eval "$as_ac_var=yes"
70546 else
70547 echo "$as_me: failed program was:" >&5
70548 sed 's/^/| /' conftest.$ac_ext >&5
70549
70550 eval "$as_ac_var=no"
70551 fi
70552 rm -f conftest.err conftest.$ac_objext \
70553 conftest$ac_exeext conftest.$ac_ext
70554 fi
70555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70557 if test `eval echo '${'$as_ac_var'}'` = yes; then
70558 cat >>confdefs.h <<_ACEOF
70559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70560 _ACEOF
70561
70562 else
70563 ac_wfuncs=no
70564 fi
70565 done
70566
70567
70568 # Checks for names injected into std:: by the c_std headers.
70569
70570
70571
70572
70573
70574
70575
70576
70577
70578
70579
70580
70581
70582
70583
70584
70585
70586
70587
70588
70589
70590
70591
70592
70593
70594
70595
70596
70597
70598
70599
70600
70601
70602
70603
70604
70605
70606
70607
70608
70609
70610
70611
70612
70613
70614
70615 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
70616 fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
70617 vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
70618 mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
70619 wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
70620 wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
70621 do
70622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70623 echo "$as_me:$LINENO: checking for $ac_func" >&5
70624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70625 if eval "test \"\${$as_ac_var+set}\" = set"; then
70626 echo $ECHO_N "(cached) $ECHO_C" >&6
70627 else
70628 if test x$gcc_no_link = xyes; then
70629 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70630 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70631 { (exit 1); exit 1; }; }
70632 fi
70633 cat >conftest.$ac_ext <<_ACEOF
70634 /* confdefs.h. */
70635 _ACEOF
70636 cat confdefs.h >>conftest.$ac_ext
70637 cat >>conftest.$ac_ext <<_ACEOF
70638 /* end confdefs.h. */
70639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70641 #define $ac_func innocuous_$ac_func
70642
70643 /* System header to define __stub macros and hopefully few prototypes,
70644 which can conflict with char $ac_func (); below.
70645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70646 <limits.h> exists even on freestanding compilers. */
70647
70648 #ifdef __STDC__
70649 # include <limits.h>
70650 #else
70651 # include <assert.h>
70652 #endif
70653
70654 #undef $ac_func
70655
70656 /* Override any gcc2 internal prototype to avoid an error. */
70657 #ifdef __cplusplus
70658 extern "C"
70659 {
70660 #endif
70661 /* We use char because int might match the return type of a gcc2
70662 builtin and then its argument prototype would still apply. */
70663 char $ac_func ();
70664 /* The GNU C library defines this for functions which it implements
70665 to always fail with ENOSYS. Some functions are actually named
70666 something starting with __ and the normal name is an alias. */
70667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70668 choke me
70669 #else
70670 char (*f) () = $ac_func;
70671 #endif
70672 #ifdef __cplusplus
70673 }
70674 #endif
70675
70676 int
70677 main ()
70678 {
70679 return f != $ac_func;
70680 ;
70681 return 0;
70682 }
70683 _ACEOF
70684 rm -f conftest.$ac_objext conftest$ac_exeext
70685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70686 (eval $ac_link) 2>conftest.er1
70687 ac_status=$?
70688 grep -v '^ *+' conftest.er1 >conftest.err
70689 rm -f conftest.er1
70690 cat conftest.err >&5
70691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70692 (exit $ac_status); } &&
70693 { ac_try='test -z "$ac_c_werror_flag"
70694 || test ! -s conftest.err'
70695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70696 (eval $ac_try) 2>&5
70697 ac_status=$?
70698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70699 (exit $ac_status); }; } &&
70700 { ac_try='test -s conftest$ac_exeext'
70701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70702 (eval $ac_try) 2>&5
70703 ac_status=$?
70704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70705 (exit $ac_status); }; }; then
70706 eval "$as_ac_var=yes"
70707 else
70708 echo "$as_me: failed program was:" >&5
70709 sed 's/^/| /' conftest.$ac_ext >&5
70710
70711 eval "$as_ac_var=no"
70712 fi
70713 rm -f conftest.err conftest.$ac_objext \
70714 conftest$ac_exeext conftest.$ac_ext
70715 fi
70716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70718 if test `eval echo '${'$as_ac_var'}'` = yes; then
70719 cat >>confdefs.h <<_ACEOF
70720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70721 _ACEOF
70722
70723 else
70724 ac_wfuncs=no
70725 fi
70726 done
70727
70728
70729 # Checks for wide character functions that are not required
70730 # for basic wchar_t support. Don't disable support if they are missing.
70731 # Injection of these is wrapped with guard macros.
70732
70733
70734
70735
70736
70737 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
70738 do
70739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70740 echo "$as_me:$LINENO: checking for $ac_func" >&5
70741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70742 if eval "test \"\${$as_ac_var+set}\" = set"; then
70743 echo $ECHO_N "(cached) $ECHO_C" >&6
70744 else
70745 if test x$gcc_no_link = xyes; then
70746 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70747 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70748 { (exit 1); exit 1; }; }
70749 fi
70750 cat >conftest.$ac_ext <<_ACEOF
70751 /* confdefs.h. */
70752 _ACEOF
70753 cat confdefs.h >>conftest.$ac_ext
70754 cat >>conftest.$ac_ext <<_ACEOF
70755 /* end confdefs.h. */
70756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
70758 #define $ac_func innocuous_$ac_func
70759
70760 /* System header to define __stub macros and hopefully few prototypes,
70761 which can conflict with char $ac_func (); below.
70762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70763 <limits.h> exists even on freestanding compilers. */
70764
70765 #ifdef __STDC__
70766 # include <limits.h>
70767 #else
70768 # include <assert.h>
70769 #endif
70770
70771 #undef $ac_func
70772
70773 /* Override any gcc2 internal prototype to avoid an error. */
70774 #ifdef __cplusplus
70775 extern "C"
70776 {
70777 #endif
70778 /* We use char because int might match the return type of a gcc2
70779 builtin and then its argument prototype would still apply. */
70780 char $ac_func ();
70781 /* The GNU C library defines this for functions which it implements
70782 to always fail with ENOSYS. Some functions are actually named
70783 something starting with __ and the normal name is an alias. */
70784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70785 choke me
70786 #else
70787 char (*f) () = $ac_func;
70788 #endif
70789 #ifdef __cplusplus
70790 }
70791 #endif
70792
70793 int
70794 main ()
70795 {
70796 return f != $ac_func;
70797 ;
70798 return 0;
70799 }
70800 _ACEOF
70801 rm -f conftest.$ac_objext conftest$ac_exeext
70802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70803 (eval $ac_link) 2>conftest.er1
70804 ac_status=$?
70805 grep -v '^ *+' conftest.er1 >conftest.err
70806 rm -f conftest.er1
70807 cat conftest.err >&5
70808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70809 (exit $ac_status); } &&
70810 { ac_try='test -z "$ac_c_werror_flag"
70811 || test ! -s conftest.err'
70812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70813 (eval $ac_try) 2>&5
70814 ac_status=$?
70815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70816 (exit $ac_status); }; } &&
70817 { ac_try='test -s conftest$ac_exeext'
70818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70819 (eval $ac_try) 2>&5
70820 ac_status=$?
70821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70822 (exit $ac_status); }; }; then
70823 eval "$as_ac_var=yes"
70824 else
70825 echo "$as_me: failed program was:" >&5
70826 sed 's/^/| /' conftest.$ac_ext >&5
70827
70828 eval "$as_ac_var=no"
70829 fi
70830 rm -f conftest.err conftest.$ac_objext \
70831 conftest$ac_exeext conftest.$ac_ext
70832 fi
70833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70835 if test `eval echo '${'$as_ac_var'}'` = yes; then
70836 cat >>confdefs.h <<_ACEOF
70837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70838 _ACEOF
70839
70840 fi
70841 done
70842
70843
70844 echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
70845 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
70846 if test x"$has_weof" = xyes &&
70847 test x"$has_wchar_minmax" = xyes &&
70848 test x"$ac_wfuncs" = xyes;
70849 then
70850 ac_isoC99_wchar_t=yes
70851 else
70852 ac_isoC99_wchar_t=no
70853 fi
70854 echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
70855 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
70856
70857 # Use iconv for wchar_t to char conversions. As such, check for
70858 # X/Open Portability Guide, version 2 features (XPG2).
70859 if test "${ac_cv_header_iconv_h+set}" = set; then
70860 echo "$as_me:$LINENO: checking for iconv.h" >&5
70861 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
70862 if test "${ac_cv_header_iconv_h+set}" = set; then
70863 echo $ECHO_N "(cached) $ECHO_C" >&6
70864 fi
70865 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
70866 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
70867 else
70868 # Is the header compilable?
70869 echo "$as_me:$LINENO: checking iconv.h usability" >&5
70870 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
70871 cat >conftest.$ac_ext <<_ACEOF
70872 /* confdefs.h. */
70873 _ACEOF
70874 cat confdefs.h >>conftest.$ac_ext
70875 cat >>conftest.$ac_ext <<_ACEOF
70876 /* end confdefs.h. */
70877 $ac_includes_default
70878 #include <iconv.h>
70879 _ACEOF
70880 rm -f conftest.$ac_objext
70881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70882 (eval $ac_compile) 2>conftest.er1
70883 ac_status=$?
70884 grep -v '^ *+' conftest.er1 >conftest.err
70885 rm -f conftest.er1
70886 cat conftest.err >&5
70887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70888 (exit $ac_status); } &&
70889 { ac_try='test -z "$ac_c_werror_flag"
70890 || test ! -s conftest.err'
70891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70892 (eval $ac_try) 2>&5
70893 ac_status=$?
70894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70895 (exit $ac_status); }; } &&
70896 { ac_try='test -s conftest.$ac_objext'
70897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70898 (eval $ac_try) 2>&5
70899 ac_status=$?
70900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70901 (exit $ac_status); }; }; then
70902 ac_header_compiler=yes
70903 else
70904 echo "$as_me: failed program was:" >&5
70905 sed 's/^/| /' conftest.$ac_ext >&5
70906
70907 ac_header_compiler=no
70908 fi
70909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70910 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70911 echo "${ECHO_T}$ac_header_compiler" >&6
70912
70913 # Is the header present?
70914 echo "$as_me:$LINENO: checking iconv.h presence" >&5
70915 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
70916 cat >conftest.$ac_ext <<_ACEOF
70917 /* confdefs.h. */
70918 _ACEOF
70919 cat confdefs.h >>conftest.$ac_ext
70920 cat >>conftest.$ac_ext <<_ACEOF
70921 /* end confdefs.h. */
70922 #include <iconv.h>
70923 _ACEOF
70924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70926 ac_status=$?
70927 grep -v '^ *+' conftest.er1 >conftest.err
70928 rm -f conftest.er1
70929 cat conftest.err >&5
70930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
70931 (exit $ac_status); } >/dev/null; then
70932 if test -s conftest.err; then
70933 ac_cpp_err=$ac_c_preproc_warn_flag
70934 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70935 else
70936 ac_cpp_err=
70937 fi
70938 else
70939 ac_cpp_err=yes
70940 fi
70941 if test -z "$ac_cpp_err"; then
70942 ac_header_preproc=yes
70943 else
70944 echo "$as_me: failed program was:" >&5
70945 sed 's/^/| /' conftest.$ac_ext >&5
70946
70947 ac_header_preproc=no
70948 fi
70949 rm -f conftest.err conftest.$ac_ext
70950 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70951 echo "${ECHO_T}$ac_header_preproc" >&6
70952
70953 # So? What about this header?
70954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70955 yes:no: )
70956 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
70957 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
70958 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
70959 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
70960 ac_header_preproc=yes
70961 ;;
70962 no:yes:* )
70963 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
70964 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
70965 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
70966 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
70967 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
70968 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
70969 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
70970 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
70971 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
70972 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
70973 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
70974 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
70975 (
70976 cat <<\_ASBOX
70977 ## ----------------------------------------- ##
70978 ## Report this to the package-unused lists. ##
70979 ## ----------------------------------------- ##
70980 _ASBOX
70981 ) |
70982 sed "s/^/$as_me: WARNING: /" >&2
70983 ;;
70984 esac
70985 echo "$as_me:$LINENO: checking for iconv.h" >&5
70986 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
70987 if test "${ac_cv_header_iconv_h+set}" = set; then
70988 echo $ECHO_N "(cached) $ECHO_C" >&6
70989 else
70990 ac_cv_header_iconv_h=$ac_header_preproc
70991 fi
70992 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
70993 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
70994
70995 fi
70996 if test $ac_cv_header_iconv_h = yes; then
70997 ac_has_iconv_h=yes
70998 else
70999 ac_has_iconv_h=no
71000 fi
71001
71002
71003 if test "${ac_cv_header_langinfo_h+set}" = set; then
71004 echo "$as_me:$LINENO: checking for langinfo.h" >&5
71005 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
71006 if test "${ac_cv_header_langinfo_h+set}" = set; then
71007 echo $ECHO_N "(cached) $ECHO_C" >&6
71008 fi
71009 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
71010 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
71011 else
71012 # Is the header compilable?
71013 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
71014 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
71015 cat >conftest.$ac_ext <<_ACEOF
71016 /* confdefs.h. */
71017 _ACEOF
71018 cat confdefs.h >>conftest.$ac_ext
71019 cat >>conftest.$ac_ext <<_ACEOF
71020 /* end confdefs.h. */
71021 $ac_includes_default
71022 #include <langinfo.h>
71023 _ACEOF
71024 rm -f conftest.$ac_objext
71025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
71026 (eval $ac_compile) 2>conftest.er1
71027 ac_status=$?
71028 grep -v '^ *+' conftest.er1 >conftest.err
71029 rm -f conftest.er1
71030 cat conftest.err >&5
71031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71032 (exit $ac_status); } &&
71033 { ac_try='test -z "$ac_c_werror_flag"
71034 || test ! -s conftest.err'
71035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71036 (eval $ac_try) 2>&5
71037 ac_status=$?
71038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71039 (exit $ac_status); }; } &&
71040 { ac_try='test -s conftest.$ac_objext'
71041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71042 (eval $ac_try) 2>&5
71043 ac_status=$?
71044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71045 (exit $ac_status); }; }; then
71046 ac_header_compiler=yes
71047 else
71048 echo "$as_me: failed program was:" >&5
71049 sed 's/^/| /' conftest.$ac_ext >&5
71050
71051 ac_header_compiler=no
71052 fi
71053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
71054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
71055 echo "${ECHO_T}$ac_header_compiler" >&6
71056
71057 # Is the header present?
71058 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
71059 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
71060 cat >conftest.$ac_ext <<_ACEOF
71061 /* confdefs.h. */
71062 _ACEOF
71063 cat confdefs.h >>conftest.$ac_ext
71064 cat >>conftest.$ac_ext <<_ACEOF
71065 /* end confdefs.h. */
71066 #include <langinfo.h>
71067 _ACEOF
71068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
71069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
71070 ac_status=$?
71071 grep -v '^ *+' conftest.er1 >conftest.err
71072 rm -f conftest.er1
71073 cat conftest.err >&5
71074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71075 (exit $ac_status); } >/dev/null; then
71076 if test -s conftest.err; then
71077 ac_cpp_err=$ac_c_preproc_warn_flag
71078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
71079 else
71080 ac_cpp_err=
71081 fi
71082 else
71083 ac_cpp_err=yes
71084 fi
71085 if test -z "$ac_cpp_err"; then
71086 ac_header_preproc=yes
71087 else
71088 echo "$as_me: failed program was:" >&5
71089 sed 's/^/| /' conftest.$ac_ext >&5
71090
71091 ac_header_preproc=no
71092 fi
71093 rm -f conftest.err conftest.$ac_ext
71094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
71095 echo "${ECHO_T}$ac_header_preproc" >&6
71096
71097 # So? What about this header?
71098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
71099 yes:no: )
71100 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
71101 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
71102 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
71103 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
71104 ac_header_preproc=yes
71105 ;;
71106 no:yes:* )
71107 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
71108 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
71109 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
71110 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
71111 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
71112 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
71113 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
71114 echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
71115 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
71116 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
71117 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
71118 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
71119 (
71120 cat <<\_ASBOX
71121 ## ----------------------------------------- ##
71122 ## Report this to the package-unused lists. ##
71123 ## ----------------------------------------- ##
71124 _ASBOX
71125 ) |
71126 sed "s/^/$as_me: WARNING: /" >&2
71127 ;;
71128 esac
71129 echo "$as_me:$LINENO: checking for langinfo.h" >&5
71130 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
71131 if test "${ac_cv_header_langinfo_h+set}" = set; then
71132 echo $ECHO_N "(cached) $ECHO_C" >&6
71133 else
71134 ac_cv_header_langinfo_h=$ac_header_preproc
71135 fi
71136 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
71137 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
71138
71139 fi
71140 if test $ac_cv_header_langinfo_h = yes; then
71141 ac_has_langinfo_h=yes
71142 else
71143 ac_has_langinfo_h=no
71144 fi
71145
71146
71147
71148 # Check for existence of libiconv.a providing XPG2 wchar_t support.
71149 echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
71150 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
71151 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
71152 echo $ECHO_N "(cached) $ECHO_C" >&6
71153 else
71154 ac_check_lib_save_LIBS=$LIBS
71155 LIBS="-liconv $LIBS"
71156 if test x$gcc_no_link = xyes; then
71157 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71158 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71159 { (exit 1); exit 1; }; }
71160 fi
71161 cat >conftest.$ac_ext <<_ACEOF
71162 /* confdefs.h. */
71163 _ACEOF
71164 cat confdefs.h >>conftest.$ac_ext
71165 cat >>conftest.$ac_ext <<_ACEOF
71166 /* end confdefs.h. */
71167
71168 /* Override any gcc2 internal prototype to avoid an error. */
71169 #ifdef __cplusplus
71170 extern "C"
71171 #endif
71172 /* We use char because int might match the return type of a gcc2
71173 builtin and then its argument prototype would still apply. */
71174 char iconv ();
71175 int
71176 main ()
71177 {
71178 iconv ();
71179 ;
71180 return 0;
71181 }
71182 _ACEOF
71183 rm -f conftest.$ac_objext conftest$ac_exeext
71184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71185 (eval $ac_link) 2>conftest.er1
71186 ac_status=$?
71187 grep -v '^ *+' conftest.er1 >conftest.err
71188 rm -f conftest.er1
71189 cat conftest.err >&5
71190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71191 (exit $ac_status); } &&
71192 { ac_try='test -z "$ac_c_werror_flag"
71193 || test ! -s conftest.err'
71194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71195 (eval $ac_try) 2>&5
71196 ac_status=$?
71197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71198 (exit $ac_status); }; } &&
71199 { ac_try='test -s conftest$ac_exeext'
71200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71201 (eval $ac_try) 2>&5
71202 ac_status=$?
71203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71204 (exit $ac_status); }; }; then
71205 ac_cv_lib_iconv_iconv=yes
71206 else
71207 echo "$as_me: failed program was:" >&5
71208 sed 's/^/| /' conftest.$ac_ext >&5
71209
71210 ac_cv_lib_iconv_iconv=no
71211 fi
71212 rm -f conftest.err conftest.$ac_objext \
71213 conftest$ac_exeext conftest.$ac_ext
71214 LIBS=$ac_check_lib_save_LIBS
71215 fi
71216 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
71217 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
71218 if test $ac_cv_lib_iconv_iconv = yes; then
71219 LIBICONV="-liconv"
71220 fi
71221
71222 ac_save_LIBS="$LIBS"
71223 LIBS="$LIBS $LIBICONV"
71224
71225
71226
71227
71228
71229
71230 for ac_func in iconv_open iconv_close iconv nl_langinfo
71231 do
71232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
71233 echo "$as_me:$LINENO: checking for $ac_func" >&5
71234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
71235 if eval "test \"\${$as_ac_var+set}\" = set"; then
71236 echo $ECHO_N "(cached) $ECHO_C" >&6
71237 else
71238 if test x$gcc_no_link = xyes; then
71239 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71240 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71241 { (exit 1); exit 1; }; }
71242 fi
71243 cat >conftest.$ac_ext <<_ACEOF
71244 /* confdefs.h. */
71245 _ACEOF
71246 cat confdefs.h >>conftest.$ac_ext
71247 cat >>conftest.$ac_ext <<_ACEOF
71248 /* end confdefs.h. */
71249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
71251 #define $ac_func innocuous_$ac_func
71252
71253 /* System header to define __stub macros and hopefully few prototypes,
71254 which can conflict with char $ac_func (); below.
71255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71256 <limits.h> exists even on freestanding compilers. */
71257
71258 #ifdef __STDC__
71259 # include <limits.h>
71260 #else
71261 # include <assert.h>
71262 #endif
71263
71264 #undef $ac_func
71265
71266 /* Override any gcc2 internal prototype to avoid an error. */
71267 #ifdef __cplusplus
71268 extern "C"
71269 {
71270 #endif
71271 /* We use char because int might match the return type of a gcc2
71272 builtin and then its argument prototype would still apply. */
71273 char $ac_func ();
71274 /* The GNU C library defines this for functions which it implements
71275 to always fail with ENOSYS. Some functions are actually named
71276 something starting with __ and the normal name is an alias. */
71277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
71278 choke me
71279 #else
71280 char (*f) () = $ac_func;
71281 #endif
71282 #ifdef __cplusplus
71283 }
71284 #endif
71285
71286 int
71287 main ()
71288 {
71289 return f != $ac_func;
71290 ;
71291 return 0;
71292 }
71293 _ACEOF
71294 rm -f conftest.$ac_objext conftest$ac_exeext
71295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71296 (eval $ac_link) 2>conftest.er1
71297 ac_status=$?
71298 grep -v '^ *+' conftest.er1 >conftest.err
71299 rm -f conftest.er1
71300 cat conftest.err >&5
71301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71302 (exit $ac_status); } &&
71303 { ac_try='test -z "$ac_c_werror_flag"
71304 || test ! -s conftest.err'
71305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71306 (eval $ac_try) 2>&5
71307 ac_status=$?
71308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71309 (exit $ac_status); }; } &&
71310 { ac_try='test -s conftest$ac_exeext'
71311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71312 (eval $ac_try) 2>&5
71313 ac_status=$?
71314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71315 (exit $ac_status); }; }; then
71316 eval "$as_ac_var=yes"
71317 else
71318 echo "$as_me: failed program was:" >&5
71319 sed 's/^/| /' conftest.$ac_ext >&5
71320
71321 eval "$as_ac_var=no"
71322 fi
71323 rm -f conftest.err conftest.$ac_objext \
71324 conftest$ac_exeext conftest.$ac_ext
71325 fi
71326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
71327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
71328 if test `eval echo '${'$as_ac_var'}'` = yes; then
71329 cat >>confdefs.h <<_ACEOF
71330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
71331 _ACEOF
71332 ac_XPG2funcs=yes
71333 else
71334 ac_XPG2funcs=no
71335 fi
71336 done
71337
71338
71339 LIBS="$ac_save_LIBS"
71340
71341 echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
71342 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
71343 if test x"$ac_has_iconv_h" = xyes &&
71344 test x"$ac_has_langinfo_h" = xyes &&
71345 test x"$ac_XPG2funcs" = xyes;
71346 then
71347 ac_XPG2_wchar_t=yes
71348 else
71349 ac_XPG2_wchar_t=no
71350 fi
71351 echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
71352 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
71353
71354 # At the moment, only enable wchar_t specializations if all the
71355 # above support is present.
71356 if test x"$ac_isoC99_wchar_t" = xyes &&
71357 test x"$ac_XPG2_wchar_t" = xyes;
71358 then
71359 cat >>confdefs.h <<\_ACEOF
71360 #define _GLIBCXX_USE_WCHAR_T 1
71361 _ACEOF
71362
71363 enable_wchar_t=yes
71364 fi
71365 fi
71366 echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
71367 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
71368 echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
71369 echo "${ECHO_T}$enable_wchar_t" >&6
71370
71371 cat >>confdefs.h <<\_ACEOF
71372 #define HAVE_COPYSIGN 1
71373 _ACEOF
71374
71375 cat >>confdefs.h <<\_ACEOF
71376 #define HAVE_COPYSIGNF 1
71377 _ACEOF
71378
71379 cat >>confdefs.h <<\_ACEOF
71380 #define HAVE_FINITE 1
71381 _ACEOF
71382
71383 cat >>confdefs.h <<\_ACEOF
71384 #define HAVE_FINITEF 1
71385 _ACEOF
71386
71387 cat >>confdefs.h <<\_ACEOF
71388 #define HAVE_FREXPF 1
71389 _ACEOF
71390
71391 cat >>confdefs.h <<\_ACEOF
71392 #define HAVE_HYPOTF 1
71393 _ACEOF
71394
71395 cat >>confdefs.h <<\_ACEOF
71396 #define HAVE_ISINF 1
71397 _ACEOF
71398
71399 cat >>confdefs.h <<\_ACEOF
71400 #define HAVE_ISINFF 1
71401 _ACEOF
71402
71403 cat >>confdefs.h <<\_ACEOF
71404 #define HAVE_ISNAN 1
71405 _ACEOF
71406
71407 cat >>confdefs.h <<\_ACEOF
71408 #define HAVE_ISNANF 1
71409 _ACEOF
71410
71411 cat >>confdefs.h <<\_ACEOF
71412 #define HAVE_SINCOS 1
71413 _ACEOF
71414
71415 cat >>confdefs.h <<\_ACEOF
71416 #define HAVE_SINCOSF 1
71417 _ACEOF
71418
71419 if test x"long_double_math_on_this_cpu" = x"yes"; then
71420 cat >>confdefs.h <<\_ACEOF
71421 #define HAVE_FINITEL 1
71422 _ACEOF
71423
71424 cat >>confdefs.h <<\_ACEOF
71425 #define HAVE_HYPOTL 1
71426 _ACEOF
71427
71428 cat >>confdefs.h <<\_ACEOF
71429 #define HAVE_ISINFL 1
71430 _ACEOF
71431
71432 cat >>confdefs.h <<\_ACEOF
71433 #define HAVE_ISNANL 1
71434 _ACEOF
71435
71436 fi
71437 ;;
71438 *-vxworks)
71439 cat >>confdefs.h <<\_ACEOF
71440 #define HAVE_MMAP 1
71441 _ACEOF
71442
71443 cat >>confdefs.h <<\_ACEOF
71444 #define HAVE_ACOSF 1
71445 _ACEOF
71446
71447 cat >>confdefs.h <<\_ACEOF
71448 #define HAVE_ASINF 1
71449 _ACEOF
71450
71451 cat >>confdefs.h <<\_ACEOF
71452 #define HAVE_ATAN2F 1
71453 _ACEOF
71454
71455 cat >>confdefs.h <<\_ACEOF
71456 #define HAVE_ATANF 1
71457 _ACEOF
71458
71459 cat >>confdefs.h <<\_ACEOF
71460 #define HAVE_CEILF 1
71461 _ACEOF
71462
71463 cat >>confdefs.h <<\_ACEOF
71464 #define HAVE_COSF 1
71465 _ACEOF
71466
71467 cat >>confdefs.h <<\_ACEOF
71468 #define HAVE_COSHF 1
71469 _ACEOF
71470
71471 cat >>confdefs.h <<\_ACEOF
71472 #define HAVE_EXPF 1
71473 _ACEOF
71474
71475 cat >>confdefs.h <<\_ACEOF
71476 #define HAVE_FABSF 1
71477 _ACEOF
71478
71479 cat >>confdefs.h <<\_ACEOF
71480 #define HAVE_FLOORF 1
71481 _ACEOF
71482
71483 cat >>confdefs.h <<\_ACEOF
71484 #define HAVE_FMODF 1
71485 _ACEOF
71486
71487 cat >>confdefs.h <<\_ACEOF
71488 #define HAVE_HYPOT 1
71489 _ACEOF
71490
71491 cat >>confdefs.h <<\_ACEOF
71492 #define HAVE_LOG10F 1
71493 _ACEOF
71494
71495 cat >>confdefs.h <<\_ACEOF
71496 #define HAVE_LOGF 1
71497 _ACEOF
71498
71499 cat >>confdefs.h <<\_ACEOF
71500 #define HAVE_POWF 1
71501 _ACEOF
71502
71503 cat >>confdefs.h <<\_ACEOF
71504 #define HAVE_SINF 1
71505 _ACEOF
71506
71507 cat >>confdefs.h <<\_ACEOF
71508 #define HAVE_SINHF 1
71509 _ACEOF
71510
71511 cat >>confdefs.h <<\_ACEOF
71512 #define HAVE_SQRTF 1
71513 _ACEOF
71514
71515 cat >>confdefs.h <<\_ACEOF
71516 #define HAVE_TANF 1
71517 _ACEOF
71518
71519 cat >>confdefs.h <<\_ACEOF
71520 #define HAVE_TANHF 1
71521 _ACEOF
71522
71523 ;;
71524 *-windiss*)
71525 cat >>confdefs.h <<\_ACEOF
71526 #define HAVE_ACOSF 1
71527 _ACEOF
71528
71529 cat >>confdefs.h <<\_ACEOF
71530 #define HAVE_ACOSL 1
71531 _ACEOF
71532
71533 cat >>confdefs.h <<\_ACEOF
71534 #define HAVE_ASINF 1
71535 _ACEOF
71536
71537 cat >>confdefs.h <<\_ACEOF
71538 #define HAVE_ASINL 1
71539 _ACEOF
71540
71541 cat >>confdefs.h <<\_ACEOF
71542 #define HAVE_ATAN2F 1
71543 _ACEOF
71544
71545 cat >>confdefs.h <<\_ACEOF
71546 #define HAVE_ATAN2L 1
71547 _ACEOF
71548
71549 cat >>confdefs.h <<\_ACEOF
71550 #define HAVE_ATANF 1
71551 _ACEOF
71552
71553 cat >>confdefs.h <<\_ACEOF
71554 #define HAVE_ATANL 1
71555 _ACEOF
71556
71557 cat >>confdefs.h <<\_ACEOF
71558 #define HAVE_CEILF 1
71559 _ACEOF
71560
71561 cat >>confdefs.h <<\_ACEOF
71562 #define HAVE_CEILL 1
71563 _ACEOF
71564
71565 cat >>confdefs.h <<\_ACEOF
71566 #define HAVE_COPYSIGN 1
71567 _ACEOF
71568
71569 cat >>confdefs.h <<\_ACEOF
71570 #define HAVE_COPYSIGNF 1
71571 _ACEOF
71572
71573 cat >>confdefs.h <<\_ACEOF
71574 #define HAVE_COSF 1
71575 _ACEOF
71576
71577 cat >>confdefs.h <<\_ACEOF
71578 #define HAVE_COSL 1
71579 _ACEOF
71580
71581 cat >>confdefs.h <<\_ACEOF
71582 #define HAVE_COSHF 1
71583 _ACEOF
71584
71585 cat >>confdefs.h <<\_ACEOF
71586 #define HAVE_COSHL 1
71587 _ACEOF
71588
71589 cat >>confdefs.h <<\_ACEOF
71590 #define HAVE_EXPF 1
71591 _ACEOF
71592
71593 cat >>confdefs.h <<\_ACEOF
71594 #define HAVE_EXPL 1
71595 _ACEOF
71596
71597 cat >>confdefs.h <<\_ACEOF
71598 #define HAVE_FABSF 1
71599 _ACEOF
71600
71601 cat >>confdefs.h <<\_ACEOF
71602 #define HAVE_FABSL 1
71603 _ACEOF
71604
71605 cat >>confdefs.h <<\_ACEOF
71606 #define HAVE_FLOORF 1
71607 _ACEOF
71608
71609 cat >>confdefs.h <<\_ACEOF
71610 #define HAVE_FLOORL 1
71611 _ACEOF
71612
71613 cat >>confdefs.h <<\_ACEOF
71614 #define HAVE_FMODF 1
71615 _ACEOF
71616
71617 cat >>confdefs.h <<\_ACEOF
71618 #define HAVE_FMODL 1
71619 _ACEOF
71620
71621 cat >>confdefs.h <<\_ACEOF
71622 #define HAVE_FREXPF 1
71623 _ACEOF
71624
71625 cat >>confdefs.h <<\_ACEOF
71626 #define HAVE_FREXPL 1
71627 _ACEOF
71628
71629 cat >>confdefs.h <<\_ACEOF
71630 #define HAVE_LDEXPF 1
71631 _ACEOF
71632
71633 cat >>confdefs.h <<\_ACEOF
71634 #define HAVE_LDEXPL 1
71635 _ACEOF
71636
71637 cat >>confdefs.h <<\_ACEOF
71638 #define HAVE_LOG10F 1
71639 _ACEOF
71640
71641 cat >>confdefs.h <<\_ACEOF
71642 #define HAVE_LOG10L 1
71643 _ACEOF
71644
71645 cat >>confdefs.h <<\_ACEOF
71646 #define HAVE_LOGF 1
71647 _ACEOF
71648
71649 cat >>confdefs.h <<\_ACEOF
71650 #define HAVE_MODFF 1
71651 _ACEOF
71652
71653 cat >>confdefs.h <<\_ACEOF
71654 #define HAVE_MODFL 1
71655 _ACEOF
71656
71657 cat >>confdefs.h <<\_ACEOF
71658 #define HAVE_POWF 1
71659 _ACEOF
71660
71661 cat >>confdefs.h <<\_ACEOF
71662 #define HAVE_POWL 1
71663 _ACEOF
71664
71665 cat >>confdefs.h <<\_ACEOF
71666 #define HAVE_SINF 1
71667 _ACEOF
71668
71669 cat >>confdefs.h <<\_ACEOF
71670 #define HAVE_SINL 1
71671 _ACEOF
71672
71673 cat >>confdefs.h <<\_ACEOF
71674 #define HAVE_SINHF 1
71675 _ACEOF
71676
71677 cat >>confdefs.h <<\_ACEOF
71678 #define HAVE_SINHL 1
71679 _ACEOF
71680
71681 cat >>confdefs.h <<\_ACEOF
71682 #define HAVE_SQRTF 1
71683 _ACEOF
71684
71685 cat >>confdefs.h <<\_ACEOF
71686 #define HAVE_SQRTL 1
71687 _ACEOF
71688
71689 cat >>confdefs.h <<\_ACEOF
71690 #define HAVE_TANF 1
71691 _ACEOF
71692
71693 cat >>confdefs.h <<\_ACEOF
71694 #define HAVE_TANL 1
71695 _ACEOF
71696
71697 cat >>confdefs.h <<\_ACEOF
71698 #define HAVE_TANHF 1
71699 _ACEOF
71700
71701 cat >>confdefs.h <<\_ACEOF
71702 #define HAVE_TANHL 1
71703 _ACEOF
71704
71705 ;;
71706 *)
71707 { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
71708 echo "$as_me: error: No support for this host/target combination." >&2;}
71709 { (exit 1); exit 1; }; }
71710 ;;
71711 esac
71712
71713
71714 fi
71715
71716 # At some point, we should differentiate between architectures
71717 # like x86, which have long double versions, and alpha/powerpc/etc.,
71718 # which don't. For the time being, punt.
71719 if test x"long_double_math_on_this_cpu" = x"yes"; then
71720 cat >>confdefs.h <<\_ACEOF
71721 #define HAVE_ACOSL 1
71722 _ACEOF
71723
71724 cat >>confdefs.h <<\_ACEOF
71725 #define HAVE_ASINL 1
71726 _ACEOF
71727
71728 cat >>confdefs.h <<\_ACEOF
71729 #define HAVE_ATAN2L 1
71730 _ACEOF
71731
71732 cat >>confdefs.h <<\_ACEOF
71733 #define HAVE_ATANL 1
71734 _ACEOF
71735
71736 cat >>confdefs.h <<\_ACEOF
71737 #define HAVE_CEILL 1
71738 _ACEOF
71739
71740 cat >>confdefs.h <<\_ACEOF
71741 #define HAVE_COPYSIGNL 1
71742 _ACEOF
71743
71744 cat >>confdefs.h <<\_ACEOF
71745 #define HAVE_COSL 1
71746 _ACEOF
71747
71748 cat >>confdefs.h <<\_ACEOF
71749 #define HAVE_COSHL 1
71750 _ACEOF
71751
71752 cat >>confdefs.h <<\_ACEOF
71753 #define HAVE_EXPL 1
71754 _ACEOF
71755
71756 cat >>confdefs.h <<\_ACEOF
71757 #define HAVE_FABSL 1
71758 _ACEOF
71759
71760 cat >>confdefs.h <<\_ACEOF
71761 #define HAVE_FLOORL 1
71762 _ACEOF
71763
71764 cat >>confdefs.h <<\_ACEOF
71765 #define HAVE_FMODL 1
71766 _ACEOF
71767
71768 cat >>confdefs.h <<\_ACEOF
71769 #define HAVE_FREXPL 1
71770 _ACEOF
71771
71772 cat >>confdefs.h <<\_ACEOF
71773 #define HAVE_LDEXPL 1
71774 _ACEOF
71775
71776 cat >>confdefs.h <<\_ACEOF
71777 #define HAVE_LOG10L 1
71778 _ACEOF
71779
71780 cat >>confdefs.h <<\_ACEOF
71781 #define HAVE_LOGL 1
71782 _ACEOF
71783
71784 cat >>confdefs.h <<\_ACEOF
71785 #define HAVE_MODFL 1
71786 _ACEOF
71787
71788 cat >>confdefs.h <<\_ACEOF
71789 #define HAVE_POWL 1
71790 _ACEOF
71791
71792 cat >>confdefs.h <<\_ACEOF
71793 #define HAVE_SINCOSL 1
71794 _ACEOF
71795
71796 cat >>confdefs.h <<\_ACEOF
71797 #define HAVE_SINL 1
71798 _ACEOF
71799
71800 cat >>confdefs.h <<\_ACEOF
71801 #define HAVE_SINHL 1
71802 _ACEOF
71803
71804 cat >>confdefs.h <<\_ACEOF
71805 #define HAVE_SQRTL 1
71806 _ACEOF
71807
71808 cat >>confdefs.h <<\_ACEOF
71809 #define HAVE_TANL 1
71810 _ACEOF
71811
71812 cat >>confdefs.h <<\_ACEOF
71813 #define HAVE_TANHL 1
71814 _ACEOF
71815
71816 fi
71817
71818 fi
71819
71820 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
71821
71822
71823 # Check whether --enable-symvers or --disable-symvers was given.
71824 if test "${enable_symvers+set}" = set; then
71825 enableval="$enable_symvers"
71826
71827 case "$enableval" in
71828 yes|no|gnu) ;;
71829 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
71830 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
71831 { (exit 1); exit 1; }; } ;;
71832 esac
71833
71834 else
71835 enable_symvers=yes
71836 fi;
71837
71838
71839 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
71840 # don't know enough about $LD to do tricks...
71841
71842 # FIXME The following test is too strict, in theory.
71843 if test $enable_shared = no ||
71844 test "x$LD" = x ||
71845 test x$glibcxx_gnu_ld_version = x; then
71846 enable_symvers=no
71847 fi
71848
71849 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
71850 if test $enable_symvers != no; then
71851 echo "$as_me:$LINENO: checking for shared libgcc" >&5
71852 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
71853 ac_save_CFLAGS="$CFLAGS"
71854 CFLAGS=' -lgcc_s'
71855 if test x$gcc_no_link = xyes; then
71856 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71857 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71858 { (exit 1); exit 1; }; }
71859 fi
71860 cat >conftest.$ac_ext <<_ACEOF
71861 /* confdefs.h. */
71862 _ACEOF
71863 cat confdefs.h >>conftest.$ac_ext
71864 cat >>conftest.$ac_ext <<_ACEOF
71865 /* end confdefs.h. */
71866
71867 int
71868 main ()
71869 {
71870 return 0;
71871 ;
71872 return 0;
71873 }
71874 _ACEOF
71875 rm -f conftest.$ac_objext conftest$ac_exeext
71876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71877 (eval $ac_link) 2>conftest.er1
71878 ac_status=$?
71879 grep -v '^ *+' conftest.er1 >conftest.err
71880 rm -f conftest.er1
71881 cat conftest.err >&5
71882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71883 (exit $ac_status); } &&
71884 { ac_try='test -z "$ac_c_werror_flag"
71885 || test ! -s conftest.err'
71886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71887 (eval $ac_try) 2>&5
71888 ac_status=$?
71889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71890 (exit $ac_status); }; } &&
71891 { ac_try='test -s conftest$ac_exeext'
71892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71893 (eval $ac_try) 2>&5
71894 ac_status=$?
71895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
71896 (exit $ac_status); }; }; then
71897 glibcxx_shared_libgcc=yes
71898 else
71899 echo "$as_me: failed program was:" >&5
71900 sed 's/^/| /' conftest.$ac_ext >&5
71901
71902 glibcxx_shared_libgcc=no
71903 fi
71904 rm -f conftest.err conftest.$ac_objext \
71905 conftest$ac_exeext conftest.$ac_ext
71906 CFLAGS="$ac_save_CFLAGS"
71907 echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
71908 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
71909 fi
71910
71911 # For GNU ld, we need at least this version. The format is described in
71912 # GLIBCXX_CHECK_LINKER_FEATURES above.
71913 glibcxx_min_gnu_ld_version=21400
71914 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
71915
71916 # Check to see if unspecified "yes" value can win, given results above.
71917 # Change "yes" into either "no" or a style name.
71918 if test $enable_symvers = yes; then
71919 if test $with_gnu_ld = yes &&
71920 test $glibcxx_shared_libgcc = yes;
71921 then
71922 if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
71923 enable_symvers=gnu
71924 else
71925 # The right tools, the right setup, but too old. Fallbacks?
71926 { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
71927 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
71928 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
71929 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
71930 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
71931 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
71932 { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
71933 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
71934 if test $glibcxx_gnu_ld_version -ge 21200 ; then
71935 # Globbing fix is present, proper block support is not.
71936 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
71937 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
71938 enable_symvers=no
71939 else
71940 # 2.11 or older.
71941 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
71942 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
71943 enable_symvers=no
71944 fi
71945 fi
71946 else
71947 # just fail for now
71948 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
71949 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
71950 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
71951 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
71952 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
71953 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
71954 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
71955 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
71956 enable_symvers=no
71957 fi
71958 fi
71959
71960 # Everything parsed; figure out what file to use.
71961 case $enable_symvers in
71962 no)
71963 SYMVER_MAP=config/linker-map.dummy
71964 ;;
71965 gnu)
71966 SYMVER_MAP=config/linker-map.gnu
71967 cat >>confdefs.h <<\_ACEOF
71968 #define _GLIBCXX_SYMVER 1
71969 _ACEOF
71970
71971 ;;
71972 esac
71973
71974
71975
71976
71977 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
71978 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
71979
71980
71981 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
71982
71983 if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
71984 # Do checks for resource limit functions.
71985
71986 setrlimit_have_headers=yes
71987
71988
71989
71990 for ac_header in unistd.h sys/time.h sys/resource.h
71991 do
71992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
71993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
71994 echo "$as_me:$LINENO: checking for $ac_header" >&5
71995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
71996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
71997 echo $ECHO_N "(cached) $ECHO_C" >&6
71998 fi
71999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
72000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
72001 else
72002 # Is the header compilable?
72003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
72004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
72005 cat >conftest.$ac_ext <<_ACEOF
72006 /* confdefs.h. */
72007 _ACEOF
72008 cat confdefs.h >>conftest.$ac_ext
72009 cat >>conftest.$ac_ext <<_ACEOF
72010 /* end confdefs.h. */
72011 $ac_includes_default
72012 #include <$ac_header>
72013 _ACEOF
72014 rm -f conftest.$ac_objext
72015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72016 (eval $ac_compile) 2>conftest.er1
72017 ac_status=$?
72018 grep -v '^ *+' conftest.er1 >conftest.err
72019 rm -f conftest.er1
72020 cat conftest.err >&5
72021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72022 (exit $ac_status); } &&
72023 { ac_try='test -z "$ac_c_werror_flag"
72024 || test ! -s conftest.err'
72025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72026 (eval $ac_try) 2>&5
72027 ac_status=$?
72028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72029 (exit $ac_status); }; } &&
72030 { ac_try='test -s conftest.$ac_objext'
72031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72032 (eval $ac_try) 2>&5
72033 ac_status=$?
72034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72035 (exit $ac_status); }; }; then
72036 ac_header_compiler=yes
72037 else
72038 echo "$as_me: failed program was:" >&5
72039 sed 's/^/| /' conftest.$ac_ext >&5
72040
72041 ac_header_compiler=no
72042 fi
72043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
72045 echo "${ECHO_T}$ac_header_compiler" >&6
72046
72047 # Is the header present?
72048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
72049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
72050 cat >conftest.$ac_ext <<_ACEOF
72051 /* confdefs.h. */
72052 _ACEOF
72053 cat confdefs.h >>conftest.$ac_ext
72054 cat >>conftest.$ac_ext <<_ACEOF
72055 /* end confdefs.h. */
72056 #include <$ac_header>
72057 _ACEOF
72058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
72059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
72060 ac_status=$?
72061 grep -v '^ *+' conftest.er1 >conftest.err
72062 rm -f conftest.er1
72063 cat conftest.err >&5
72064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72065 (exit $ac_status); } >/dev/null; then
72066 if test -s conftest.err; then
72067 ac_cpp_err=$ac_c_preproc_warn_flag
72068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
72069 else
72070 ac_cpp_err=
72071 fi
72072 else
72073 ac_cpp_err=yes
72074 fi
72075 if test -z "$ac_cpp_err"; then
72076 ac_header_preproc=yes
72077 else
72078 echo "$as_me: failed program was:" >&5
72079 sed 's/^/| /' conftest.$ac_ext >&5
72080
72081 ac_header_preproc=no
72082 fi
72083 rm -f conftest.err conftest.$ac_ext
72084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
72085 echo "${ECHO_T}$ac_header_preproc" >&6
72086
72087 # So? What about this header?
72088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
72089 yes:no: )
72090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
72091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
72092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
72093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
72094 ac_header_preproc=yes
72095 ;;
72096 no:yes:* )
72097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
72098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
72099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
72100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
72101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
72102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
72103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
72104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
72105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
72106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
72107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
72108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
72109 (
72110 cat <<\_ASBOX
72111 ## ----------------------------------------- ##
72112 ## Report this to the package-unused lists. ##
72113 ## ----------------------------------------- ##
72114 _ASBOX
72115 ) |
72116 sed "s/^/$as_me: WARNING: /" >&2
72117 ;;
72118 esac
72119 echo "$as_me:$LINENO: checking for $ac_header" >&5
72120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
72121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72122 echo $ECHO_N "(cached) $ECHO_C" >&6
72123 else
72124 eval "$as_ac_Header=\$ac_header_preproc"
72125 fi
72126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
72127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
72128
72129 fi
72130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
72131 cat >>confdefs.h <<_ACEOF
72132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
72133 _ACEOF
72134
72135 else
72136 setrlimit_have_headers=no
72137 fi
72138
72139 done
72140
72141 # If don't have the headers, then we can't run the tests now, and we
72142 # won't be seeing any of these during testsuite compilation.
72143 if test $setrlimit_have_headers = yes; then
72144 # Can't do these in a loop, else the resulting syntax is wrong.
72145
72146 cat >conftest.$ac_ext <<_ACEOF
72147 /* confdefs.h. */
72148 _ACEOF
72149 cat confdefs.h >>conftest.$ac_ext
72150 cat >>conftest.$ac_ext <<_ACEOF
72151 /* end confdefs.h. */
72152 #include <unistd.h>
72153 #include <sys/time.h>
72154 #include <sys/resource.h>
72155
72156 int
72157 main ()
72158 {
72159 int f = RLIMIT_DATA ;
72160 ;
72161 return 0;
72162 }
72163 _ACEOF
72164 rm -f conftest.$ac_objext
72165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72166 (eval $ac_compile) 2>conftest.er1
72167 ac_status=$?
72168 grep -v '^ *+' conftest.er1 >conftest.err
72169 rm -f conftest.er1
72170 cat conftest.err >&5
72171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72172 (exit $ac_status); } &&
72173 { ac_try='test -z "$ac_c_werror_flag"
72174 || test ! -s conftest.err'
72175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72176 (eval $ac_try) 2>&5
72177 ac_status=$?
72178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72179 (exit $ac_status); }; } &&
72180 { ac_try='test -s conftest.$ac_objext'
72181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72182 (eval $ac_try) 2>&5
72183 ac_status=$?
72184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72185 (exit $ac_status); }; }; then
72186 glibcxx_mresult=1
72187 else
72188 echo "$as_me: failed program was:" >&5
72189 sed 's/^/| /' conftest.$ac_ext >&5
72190
72191 glibcxx_mresult=0
72192 fi
72193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72194
72195 cat >>confdefs.h <<_ACEOF
72196 #define HAVE_LIMIT_DATA $glibcxx_mresult
72197 _ACEOF
72198
72199
72200
72201 cat >conftest.$ac_ext <<_ACEOF
72202 /* confdefs.h. */
72203 _ACEOF
72204 cat confdefs.h >>conftest.$ac_ext
72205 cat >>conftest.$ac_ext <<_ACEOF
72206 /* end confdefs.h. */
72207 #include <unistd.h>
72208 #include <sys/time.h>
72209 #include <sys/resource.h>
72210
72211 int
72212 main ()
72213 {
72214 int f = RLIMIT_RSS ;
72215 ;
72216 return 0;
72217 }
72218 _ACEOF
72219 rm -f conftest.$ac_objext
72220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72221 (eval $ac_compile) 2>conftest.er1
72222 ac_status=$?
72223 grep -v '^ *+' conftest.er1 >conftest.err
72224 rm -f conftest.er1
72225 cat conftest.err >&5
72226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72227 (exit $ac_status); } &&
72228 { ac_try='test -z "$ac_c_werror_flag"
72229 || test ! -s conftest.err'
72230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72231 (eval $ac_try) 2>&5
72232 ac_status=$?
72233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72234 (exit $ac_status); }; } &&
72235 { ac_try='test -s conftest.$ac_objext'
72236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72237 (eval $ac_try) 2>&5
72238 ac_status=$?
72239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72240 (exit $ac_status); }; }; then
72241 glibcxx_mresult=1
72242 else
72243 echo "$as_me: failed program was:" >&5
72244 sed 's/^/| /' conftest.$ac_ext >&5
72245
72246 glibcxx_mresult=0
72247 fi
72248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72249
72250 cat >>confdefs.h <<_ACEOF
72251 #define HAVE_LIMIT_RSS $glibcxx_mresult
72252 _ACEOF
72253
72254
72255
72256 cat >conftest.$ac_ext <<_ACEOF
72257 /* confdefs.h. */
72258 _ACEOF
72259 cat confdefs.h >>conftest.$ac_ext
72260 cat >>conftest.$ac_ext <<_ACEOF
72261 /* end confdefs.h. */
72262 #include <unistd.h>
72263 #include <sys/time.h>
72264 #include <sys/resource.h>
72265
72266 int
72267 main ()
72268 {
72269 int f = RLIMIT_VMEM ;
72270 ;
72271 return 0;
72272 }
72273 _ACEOF
72274 rm -f conftest.$ac_objext
72275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72276 (eval $ac_compile) 2>conftest.er1
72277 ac_status=$?
72278 grep -v '^ *+' conftest.er1 >conftest.err
72279 rm -f conftest.er1
72280 cat conftest.err >&5
72281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72282 (exit $ac_status); } &&
72283 { ac_try='test -z "$ac_c_werror_flag"
72284 || test ! -s conftest.err'
72285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72286 (eval $ac_try) 2>&5
72287 ac_status=$?
72288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72289 (exit $ac_status); }; } &&
72290 { ac_try='test -s conftest.$ac_objext'
72291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72292 (eval $ac_try) 2>&5
72293 ac_status=$?
72294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72295 (exit $ac_status); }; }; then
72296 glibcxx_mresult=1
72297 else
72298 echo "$as_me: failed program was:" >&5
72299 sed 's/^/| /' conftest.$ac_ext >&5
72300
72301 glibcxx_mresult=0
72302 fi
72303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72304
72305 cat >>confdefs.h <<_ACEOF
72306 #define HAVE_LIMIT_VMEM $glibcxx_mresult
72307 _ACEOF
72308
72309
72310
72311 cat >conftest.$ac_ext <<_ACEOF
72312 /* confdefs.h. */
72313 _ACEOF
72314 cat confdefs.h >>conftest.$ac_ext
72315 cat >>conftest.$ac_ext <<_ACEOF
72316 /* end confdefs.h. */
72317 #include <unistd.h>
72318 #include <sys/time.h>
72319 #include <sys/resource.h>
72320
72321 int
72322 main ()
72323 {
72324 int f = RLIMIT_AS ;
72325 ;
72326 return 0;
72327 }
72328 _ACEOF
72329 rm -f conftest.$ac_objext
72330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72331 (eval $ac_compile) 2>conftest.er1
72332 ac_status=$?
72333 grep -v '^ *+' conftest.er1 >conftest.err
72334 rm -f conftest.er1
72335 cat conftest.err >&5
72336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72337 (exit $ac_status); } &&
72338 { ac_try='test -z "$ac_c_werror_flag"
72339 || test ! -s conftest.err'
72340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72341 (eval $ac_try) 2>&5
72342 ac_status=$?
72343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72344 (exit $ac_status); }; } &&
72345 { ac_try='test -s conftest.$ac_objext'
72346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72347 (eval $ac_try) 2>&5
72348 ac_status=$?
72349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72350 (exit $ac_status); }; }; then
72351 glibcxx_mresult=1
72352 else
72353 echo "$as_me: failed program was:" >&5
72354 sed 's/^/| /' conftest.$ac_ext >&5
72355
72356 glibcxx_mresult=0
72357 fi
72358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72359
72360 cat >>confdefs.h <<_ACEOF
72361 #define HAVE_LIMIT_AS $glibcxx_mresult
72362 _ACEOF
72363
72364
72365
72366 cat >conftest.$ac_ext <<_ACEOF
72367 /* confdefs.h. */
72368 _ACEOF
72369 cat confdefs.h >>conftest.$ac_ext
72370 cat >>conftest.$ac_ext <<_ACEOF
72371 /* end confdefs.h. */
72372 #include <unistd.h>
72373 #include <sys/time.h>
72374 #include <sys/resource.h>
72375
72376 int
72377 main ()
72378 {
72379 int f = RLIMIT_FSIZE ;
72380 ;
72381 return 0;
72382 }
72383 _ACEOF
72384 rm -f conftest.$ac_objext
72385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72386 (eval $ac_compile) 2>conftest.er1
72387 ac_status=$?
72388 grep -v '^ *+' conftest.er1 >conftest.err
72389 rm -f conftest.er1
72390 cat conftest.err >&5
72391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72392 (exit $ac_status); } &&
72393 { ac_try='test -z "$ac_c_werror_flag"
72394 || test ! -s conftest.err'
72395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72396 (eval $ac_try) 2>&5
72397 ac_status=$?
72398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72399 (exit $ac_status); }; } &&
72400 { ac_try='test -s conftest.$ac_objext'
72401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72402 (eval $ac_try) 2>&5
72403 ac_status=$?
72404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72405 (exit $ac_status); }; }; then
72406 glibcxx_mresult=1
72407 else
72408 echo "$as_me: failed program was:" >&5
72409 sed 's/^/| /' conftest.$ac_ext >&5
72410
72411 glibcxx_mresult=0
72412 fi
72413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72414
72415 cat >>confdefs.h <<_ACEOF
72416 #define HAVE_LIMIT_FSIZE $glibcxx_mresult
72417 _ACEOF
72418
72419
72420
72421 # Check for rlimit, setrlimit.
72422 if test "${ac_setrlimit+set}" = set; then
72423 echo $ECHO_N "(cached) $ECHO_C" >&6
72424 else
72425
72426 cat >conftest.$ac_ext <<_ACEOF
72427 /* confdefs.h. */
72428 _ACEOF
72429 cat confdefs.h >>conftest.$ac_ext
72430 cat >>conftest.$ac_ext <<_ACEOF
72431 /* end confdefs.h. */
72432 #include <unistd.h>
72433 #include <sys/time.h>
72434 #include <sys/resource.h>
72435
72436 int
72437 main ()
72438 {
72439 struct rlimit r;
72440 setrlimit(0, &r);
72441 ;
72442 return 0;
72443 }
72444 _ACEOF
72445 rm -f conftest.$ac_objext
72446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72447 (eval $ac_compile) 2>conftest.er1
72448 ac_status=$?
72449 grep -v '^ *+' conftest.er1 >conftest.err
72450 rm -f conftest.er1
72451 cat conftest.err >&5
72452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72453 (exit $ac_status); } &&
72454 { ac_try='test -z "$ac_c_werror_flag"
72455 || test ! -s conftest.err'
72456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72457 (eval $ac_try) 2>&5
72458 ac_status=$?
72459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72460 (exit $ac_status); }; } &&
72461 { ac_try='test -s conftest.$ac_objext'
72462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72463 (eval $ac_try) 2>&5
72464 ac_status=$?
72465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72466 (exit $ac_status); }; }; then
72467 ac_setrlimit=yes
72468 else
72469 echo "$as_me: failed program was:" >&5
72470 sed 's/^/| /' conftest.$ac_ext >&5
72471
72472 ac_setrlimit=no
72473 fi
72474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72475
72476 fi
72477
72478 fi
72479
72480 echo "$as_me:$LINENO: checking for testsuite resource limits support" >&5
72481 echo $ECHO_N "checking for testsuite resource limits support... $ECHO_C" >&6
72482 if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
72483 ac_res_limits=yes
72484 cat >>confdefs.h <<\_ACEOF
72485 #define _GLIBCXX_RES_LIMITS 1
72486 _ACEOF
72487
72488 else
72489 ac_res_limits=no
72490 fi
72491 echo "$as_me:$LINENO: result: $ac_res_limits" >&5
72492 echo "${ECHO_T}$ac_res_limits" >&6
72493
72494
72495 # Look for setenv, so that extended locale tests can be performed.
72496
72497 echo "$as_me:$LINENO: checking for setenv declaration" >&5
72498 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
72499 if test x${glibcxx_cv_func_setenv_use+set} != xset; then
72500 if test "${glibcxx_cv_func_setenv_use+set}" = set; then
72501 echo $ECHO_N "(cached) $ECHO_C" >&6
72502 else
72503
72504
72505
72506 ac_ext=cc
72507 ac_cpp='$CXXCPP $CPPFLAGS'
72508 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72509 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72510 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
72511
72512 cat >conftest.$ac_ext <<_ACEOF
72513 /* confdefs.h. */
72514 _ACEOF
72515 cat confdefs.h >>conftest.$ac_ext
72516 cat >>conftest.$ac_ext <<_ACEOF
72517 /* end confdefs.h. */
72518 #include <stdlib.h>
72519 int
72520 main ()
72521 {
72522 setenv(0, 0, 0);
72523 ;
72524 return 0;
72525 }
72526 _ACEOF
72527 rm -f conftest.$ac_objext
72528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72529 (eval $ac_compile) 2>conftest.er1
72530 ac_status=$?
72531 grep -v '^ *+' conftest.er1 >conftest.err
72532 rm -f conftest.er1
72533 cat conftest.err >&5
72534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72535 (exit $ac_status); } &&
72536 { ac_try='test -z "$ac_cxx_werror_flag"
72537 || test ! -s conftest.err'
72538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72539 (eval $ac_try) 2>&5
72540 ac_status=$?
72541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72542 (exit $ac_status); }; } &&
72543 { ac_try='test -s conftest.$ac_objext'
72544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72545 (eval $ac_try) 2>&5
72546 ac_status=$?
72547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72548 (exit $ac_status); }; }; then
72549 glibcxx_cv_func_setenv_use=yes
72550 else
72551 echo "$as_me: failed program was:" >&5
72552 sed 's/^/| /' conftest.$ac_ext >&5
72553
72554 glibcxx_cv_func_setenv_use=no
72555 fi
72556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72557 ac_ext=c
72558 ac_cpp='$CPP $CPPFLAGS'
72559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
72562
72563
72564 fi
72565
72566 fi
72567 echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
72568 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
72569 if test x$glibcxx_cv_func_setenv_use = x"yes"; then
72570
72571 for ac_func in setenv
72572 do
72573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
72574 echo "$as_me:$LINENO: checking for $ac_func" >&5
72575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
72576 if eval "test \"\${$as_ac_var+set}\" = set"; then
72577 echo $ECHO_N "(cached) $ECHO_C" >&6
72578 else
72579 if test x$gcc_no_link = xyes; then
72580 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
72581 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
72582 { (exit 1); exit 1; }; }
72583 fi
72584 cat >conftest.$ac_ext <<_ACEOF
72585 /* confdefs.h. */
72586 _ACEOF
72587 cat confdefs.h >>conftest.$ac_ext
72588 cat >>conftest.$ac_ext <<_ACEOF
72589 /* end confdefs.h. */
72590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
72592 #define $ac_func innocuous_$ac_func
72593
72594 /* System header to define __stub macros and hopefully few prototypes,
72595 which can conflict with char $ac_func (); below.
72596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72597 <limits.h> exists even on freestanding compilers. */
72598
72599 #ifdef __STDC__
72600 # include <limits.h>
72601 #else
72602 # include <assert.h>
72603 #endif
72604
72605 #undef $ac_func
72606
72607 /* Override any gcc2 internal prototype to avoid an error. */
72608 #ifdef __cplusplus
72609 extern "C"
72610 {
72611 #endif
72612 /* We use char because int might match the return type of a gcc2
72613 builtin and then its argument prototype would still apply. */
72614 char $ac_func ();
72615 /* The GNU C library defines this for functions which it implements
72616 to always fail with ENOSYS. Some functions are actually named
72617 something starting with __ and the normal name is an alias. */
72618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
72619 choke me
72620 #else
72621 char (*f) () = $ac_func;
72622 #endif
72623 #ifdef __cplusplus
72624 }
72625 #endif
72626
72627 int
72628 main ()
72629 {
72630 return f != $ac_func;
72631 ;
72632 return 0;
72633 }
72634 _ACEOF
72635 rm -f conftest.$ac_objext conftest$ac_exeext
72636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
72637 (eval $ac_link) 2>conftest.er1
72638 ac_status=$?
72639 grep -v '^ *+' conftest.er1 >conftest.err
72640 rm -f conftest.er1
72641 cat conftest.err >&5
72642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72643 (exit $ac_status); } &&
72644 { ac_try='test -z "$ac_c_werror_flag"
72645 || test ! -s conftest.err'
72646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72647 (eval $ac_try) 2>&5
72648 ac_status=$?
72649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72650 (exit $ac_status); }; } &&
72651 { ac_try='test -s conftest$ac_exeext'
72652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72653 (eval $ac_try) 2>&5
72654 ac_status=$?
72655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
72656 (exit $ac_status); }; }; then
72657 eval "$as_ac_var=yes"
72658 else
72659 echo "$as_me: failed program was:" >&5
72660 sed 's/^/| /' conftest.$ac_ext >&5
72661
72662 eval "$as_ac_var=no"
72663 fi
72664 rm -f conftest.err conftest.$ac_objext \
72665 conftest$ac_exeext conftest.$ac_ext
72666 fi
72667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
72668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
72669 if test `eval echo '${'$as_ac_var'}'` = yes; then
72670 cat >>confdefs.h <<_ACEOF
72671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
72672 _ACEOF
72673
72674 fi
72675 done
72676
72677 fi
72678
72679
72680 if test $enable_symvers = no; then
72681 enable_abi_check=no
72682 else
72683 case "$host" in
72684 *-*-cygwin*)
72685 enable_abi_check=no ;;
72686 *)
72687 enable_abi_check=yes ;;
72688 esac
72689 fi
72690 else
72691 # Only build this as native, since automake does not understand
72692 # CXX_FOR_BUILD.
72693 enable_abi_check=no
72694 fi
72695
72696 # Export file names for ABI checking.
72697 baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
72698
72699
72700
72701
72702
72703
72704 # Propagate the target-specific source directories through the build chain.
72705 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
72706 # uses it, and it only gets used in this file.)
72707 ATOMICITY_SRCDIR=config/${atomicity_dir}
72708 ATOMIC_WORD_SRCDIR=config/${atomic_word_dir}
72709 OS_INC_SRCDIR=config/${os_include_dir}
72710 ABI_TWEAKS_SRCDIR=config/${abi_tweaks_dir}
72711
72712
72713
72714
72715
72716 # Determine cross-compile flags and AM_CONDITIONALs.
72717 #AC_SUBST(GLIBCXX_IS_NATIVE)
72718 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
72719 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
72720 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH, test $need_libmath = yes)
72721
72722
72723 if test $is_hosted = yes; then
72724 GLIBCXX_HOSTED_TRUE=
72725 GLIBCXX_HOSTED_FALSE='#'
72726 else
72727 GLIBCXX_HOSTED_TRUE='#'
72728 GLIBCXX_HOSTED_FALSE=
72729 fi
72730
72731
72732
72733
72734 if test $enable_libstdcxx_pch = yes; then
72735 GLIBCXX_BUILD_PCH_TRUE=
72736 GLIBCXX_BUILD_PCH_FALSE='#'
72737 else
72738 GLIBCXX_BUILD_PCH_TRUE='#'
72739 GLIBCXX_BUILD_PCH_FALSE=
72740 fi
72741
72742
72743
72744
72745 if test $enable_cheaders = c; then
72746 GLIBCXX_C_HEADERS_C_TRUE=
72747 GLIBCXX_C_HEADERS_C_FALSE='#'
72748 else
72749 GLIBCXX_C_HEADERS_C_TRUE='#'
72750 GLIBCXX_C_HEADERS_C_FALSE=
72751 fi
72752
72753
72754
72755
72756 if test $enable_cheaders = c_std; then
72757 GLIBCXX_C_HEADERS_C_STD_TRUE=
72758 GLIBCXX_C_HEADERS_C_STD_FALSE='#'
72759 else
72760 GLIBCXX_C_HEADERS_C_STD_TRUE='#'
72761 GLIBCXX_C_HEADERS_C_STD_FALSE=
72762 fi
72763
72764
72765
72766
72767 if test $c_compatibility = yes; then
72768 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
72769 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
72770 else
72771 GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
72772 GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
72773 fi
72774
72775
72776
72777
72778 if test $enable_libstdcxx_debug = yes; then
72779 GLIBCXX_BUILD_DEBUG_TRUE=
72780 GLIBCXX_BUILD_DEBUG_FALSE='#'
72781 else
72782 GLIBCXX_BUILD_DEBUG_TRUE='#'
72783 GLIBCXX_BUILD_DEBUG_FALSE=
72784 fi
72785
72786
72787
72788
72789 if test $enable_symvers != no; then
72790 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
72791 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
72792 else
72793 GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
72794 GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
72795 fi
72796
72797
72798
72799
72800 if test $enable_wchar_t = yes; then
72801 GLIBCXX_TEST_WCHAR_T_TRUE=
72802 GLIBCXX_TEST_WCHAR_T_FALSE='#'
72803 else
72804 GLIBCXX_TEST_WCHAR_T_TRUE='#'
72805 GLIBCXX_TEST_WCHAR_T_FALSE=
72806 fi
72807
72808
72809
72810
72811 if test $enable_abi_check = yes; then
72812 GLIBCXX_TEST_ABI_TRUE=
72813 GLIBCXX_TEST_ABI_FALSE='#'
72814 else
72815 GLIBCXX_TEST_ABI_TRUE='#'
72816 GLIBCXX_TEST_ABI_FALSE=
72817 fi
72818
72819
72820
72821
72822 cat >confcache <<\_ACEOF
72823 # This file is a shell script that caches the results of configure
72824 # tests run on this system so they can be shared between configure
72825 # scripts and configure runs, see configure's option --config-cache.
72826 # It is not useful on other systems. If it contains results you don't
72827 # want to keep, you may remove or edit it.
72828 #
72829 # config.status only pays attention to the cache file if you give it
72830 # the --recheck option to rerun configure.
72831 #
72832 # `ac_cv_env_foo' variables (set or unset) will be overridden when
72833 # loading this file, other *unset* `ac_cv_foo' will be assigned the
72834 # following values.
72835
72836 _ACEOF
72837
72838 # The following way of writing the cache mishandles newlines in values,
72839 # but we know of no workaround that is simple, portable, and efficient.
72840 # So, don't put newlines in cache variables' values.
72841 # Ultrix sh set writes to stderr and can't be redirected directly,
72842 # and sets the high bit in the cache file unless we assign to the vars.
72843 {
72844 (set) 2>&1 |
72845 case `(ac_space=' '; set | grep ac_space) 2>&1` in
72846 *ac_space=\ *)
72847 # `set' does not quote correctly, so add quotes (double-quote
72848 # substitution turns \\\\ into \\, and sed turns \\ into \).
72849 sed -n \
72850 "s/'/'\\\\''/g;
72851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
72852 ;;
72853 *)
72854 # `set' quotes correctly as required by POSIX, so do not add quotes.
72855 sed -n \
72856 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
72857 ;;
72858 esac;
72859 } |
72860 sed '
72861 t clear
72862 : clear
72863 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
72864 t end
72865 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
72866 : end' >>confcache
72867 if diff $cache_file confcache >/dev/null 2>&1; then :; else
72868 if test -w $cache_file; then
72869 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
72870 cat confcache >$cache_file
72871 else
72872 echo "not updating unwritable cache $cache_file"
72873 fi
72874 fi
72875 rm -f confcache
72876
72877 if test ${multilib} = yes; then
72878 multilib_arg="--enable-multilib"
72879 else
72880 multilib_arg=
72881 fi
72882
72883 # Export all the install information.
72884
72885 glibcxx_toolexecdir=no
72886 glibcxx_toolexeclibdir=no
72887 glibcxx_prefixdir=$prefix
72888
72889 echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
72890 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
72891
72892 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
72893 if test "${with_gxx_include_dir+set}" = set; then
72894 withval="$with_gxx_include_dir"
72895 case "$withval" in
72896 yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
72897 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
72898 { (exit 1); exit 1; }; } ;;
72899 no) gxx_include_dir=no ;;
72900 *) gxx_include_dir=$withval ;;
72901 esac
72902 else
72903 gxx_include_dir=no
72904 fi;
72905 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
72906 echo "${ECHO_T}$gxx_include_dir" >&6
72907
72908 echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
72909 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
72910 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
72911 if test "${enable_version_specific_runtime_libs+set}" = set; then
72912 enableval="$enable_version_specific_runtime_libs"
72913 case "$enableval" in
72914 yes) version_specific_libs=yes ;;
72915 no) version_specific_libs=no ;;
72916 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
72917 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
72918 { (exit 1); exit 1; }; };;
72919 esac
72920 else
72921 version_specific_libs=no
72922 fi;
72923 echo "$as_me:$LINENO: result: $version_specific_libs" >&5
72924 echo "${ECHO_T}$version_specific_libs" >&6
72925
72926 # Default case for install directory for include files.
72927 if test $version_specific_libs = no && test $gxx_include_dir = no; then
72928 gxx_include_dir='${prefix}'/include/c++/${gcc_version}
72929 fi
72930
72931 # Version-specific runtime libs processing.
72932 if test $version_specific_libs = yes; then
72933 # Need the gcc compiler version to know where to install libraries
72934 # and header files if --enable-version-specific-runtime-libs option
72935 # is selected. FIXME: these variables are misnamed, there are
72936 # no executables installed in _toolexecdir or _toolexeclibdir.
72937 if test x"$gxx_include_dir" = x"no"; then
72938 gxx_include_dir='${libdir}/gcc/${host_alias}/'$gcc_version/include/c++
72939 fi
72940 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
72941 glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
72942 fi
72943
72944 # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
72945 # Install a library built with a cross compiler in tooldir, not libdir.
72946 if test x"$glibcxx_toolexecdir" = x"no"; then
72947 if test -n "$with_cross_host" &&
72948 test x"$with_cross_host" != x"no"; then
72949 glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
72950 glibcxx_toolexeclibdir='${toolexecdir}/lib'
72951 else
72952 glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
72953 glibcxx_toolexeclibdir='${libdir}'
72954 fi
72955 multi_os_directory=`$CXX -print-multi-os-directory`
72956 case $multi_os_directory in
72957 .) ;; # Avoid trailing /.
72958 *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
72959 esac
72960 fi
72961
72962 echo "$as_me:$LINENO: checking for install location" >&5
72963 echo $ECHO_N "checking for install location... $ECHO_C" >&6
72964 echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
72965 echo "${ECHO_T}$gxx_include_dir" >&6
72966
72967
72968
72969
72970
72971
72972
72973 # Export all the include and flag information to Makefiles.
72974
72975 # Used for every C++ compile we perform.
72976 GLIBCXX_INCLUDES="\
72977 -I$glibcxx_builddir/include/$host_alias \
72978 -I$glibcxx_builddir/include \
72979 -I$glibcxx_srcdir/libsupc++"
72980
72981 # For Canadian crosses, pick this up too.
72982 if test $CANADIAN = yes; then
72983 GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
72984 fi
72985
72986 # Stuff in the actual top level. Currently only used by libsupc++ to
72987 # get unwind* headers from the gcc dir.
72988 #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
72989 TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
72990
72991 # Now, export this to all the little Makefiles....
72992
72993
72994
72995
72996 # Optimization flags that are probably a good idea for thrill-seekers. Just
72997 # uncomment the lines below and make, everything else is ready to go...
72998 # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
72999 OPTIMIZE_CXXFLAGS=
73000
73001
73002 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
73003
73004
73005
73006 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
73007 grep "enable shared" > /dev/null;
73008 then
73009 LIBSUPCXX_PICFLAGS=-prefer-pic
73010 else
73011 LIBSUPCXX_PICFLAGS=
73012 fi
73013
73014
73015 ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
73016
73017 ac_config_files="$ac_config_files scripts/check_survey"
73018
73019 ac_config_files="$ac_config_files scripts/testsuite_flags"
73020
73021
73022 ac_config_commands="$ac_config_commands default"
73023
73024
73025 cat >confcache <<\_ACEOF
73026 # This file is a shell script that caches the results of configure
73027 # tests run on this system so they can be shared between configure
73028 # scripts and configure runs, see configure's option --config-cache.
73029 # It is not useful on other systems. If it contains results you don't
73030 # want to keep, you may remove or edit it.
73031 #
73032 # config.status only pays attention to the cache file if you give it
73033 # the --recheck option to rerun configure.
73034 #
73035 # `ac_cv_env_foo' variables (set or unset) will be overridden when
73036 # loading this file, other *unset* `ac_cv_foo' will be assigned the
73037 # following values.
73038
73039 _ACEOF
73040
73041 # The following way of writing the cache mishandles newlines in values,
73042 # but we know of no workaround that is simple, portable, and efficient.
73043 # So, don't put newlines in cache variables' values.
73044 # Ultrix sh set writes to stderr and can't be redirected directly,
73045 # and sets the high bit in the cache file unless we assign to the vars.
73046 {
73047 (set) 2>&1 |
73048 case `(ac_space=' '; set | grep ac_space) 2>&1` in
73049 *ac_space=\ *)
73050 # `set' does not quote correctly, so add quotes (double-quote
73051 # substitution turns \\\\ into \\, and sed turns \\ into \).
73052 sed -n \
73053 "s/'/'\\\\''/g;
73054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
73055 ;;
73056 *)
73057 # `set' quotes correctly as required by POSIX, so do not add quotes.
73058 sed -n \
73059 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
73060 ;;
73061 esac;
73062 } |
73063 sed '
73064 t clear
73065 : clear
73066 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
73067 t end
73068 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
73069 : end' >>confcache
73070 if diff $cache_file confcache >/dev/null 2>&1; then :; else
73071 if test -w $cache_file; then
73072 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
73073 cat confcache >$cache_file
73074 else
73075 echo "not updating unwritable cache $cache_file"
73076 fi
73077 fi
73078 rm -f confcache
73079
73080 test "x$prefix" = xNONE && prefix=$ac_default_prefix
73081 # Let make expand exec_prefix.
73082 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
73083
73084 # VPATH may cause trouble with some makes, so we remove $(srcdir),
73085 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
73086 # trailing colons and then remove the whole line if VPATH becomes empty
73087 # (actually we leave an empty line to preserve line numbers).
73088 if test "x$srcdir" = x.; then
73089 ac_vpsub='/^[ ]*VPATH[ ]*=/{
73090 s/:*\$(srcdir):*/:/;
73091 s/:*\${srcdir}:*/:/;
73092 s/:*@srcdir@:*/:/;
73093 s/^\([^=]*=[ ]*\):*/\1/;
73094 s/:*$//;
73095 s/^[^=]*=[ ]*$//;
73096 }'
73097 fi
73098
73099 DEFS=-DHAVE_CONFIG_H
73100
73101 ac_libobjs=
73102 ac_ltlibobjs=
73103 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
73104 # 1. Remove the extension, and $U if already installed.
73105 ac_i=`echo "$ac_i" |
73106 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
73107 # 2. Add them.
73108 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
73109 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
73110 done
73111 LIBOBJS=$ac_libobjs
73112
73113 LTLIBOBJS=$ac_ltlibobjs
73114
73115
73116 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
73117 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
73118 Usually this means the macro was only invoked conditionally." >&5
73119 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
73120 Usually this means the macro was only invoked conditionally." >&2;}
73121 { (exit 1); exit 1; }; }
73122 fi
73123 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
73124 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
73125 Usually this means the macro was only invoked conditionally." >&5
73126 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
73127 Usually this means the macro was only invoked conditionally." >&2;}
73128 { (exit 1); exit 1; }; }
73129 fi
73130 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
73131 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
73132 Usually this means the macro was only invoked conditionally." >&5
73133 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
73134 Usually this means the macro was only invoked conditionally." >&2;}
73135 { (exit 1); exit 1; }; }
73136 fi
73137 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
73138 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
73139 Usually this means the macro was only invoked conditionally." >&5
73140 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
73141 Usually this means the macro was only invoked conditionally." >&2;}
73142 { (exit 1); exit 1; }; }
73143 fi
73144 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
73145 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
73146 Usually this means the macro was only invoked conditionally." >&5
73147 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
73148 Usually this means the macro was only invoked conditionally." >&2;}
73149 { (exit 1); exit 1; }; }
73150 fi
73151 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
73152 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
73153 Usually this means the macro was only invoked conditionally." >&5
73154 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
73155 Usually this means the macro was only invoked conditionally." >&2;}
73156 { (exit 1); exit 1; }; }
73157 fi
73158 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
73159 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
73160 Usually this means the macro was only invoked conditionally." >&5
73161 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
73162 Usually this means the macro was only invoked conditionally." >&2;}
73163 { (exit 1); exit 1; }; }
73164 fi
73165 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
73166 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
73167 Usually this means the macro was only invoked conditionally." >&5
73168 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
73169 Usually this means the macro was only invoked conditionally." >&2;}
73170 { (exit 1); exit 1; }; }
73171 fi
73172 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
73173 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
73174 Usually this means the macro was only invoked conditionally." >&5
73175 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
73176 Usually this means the macro was only invoked conditionally." >&2;}
73177 { (exit 1); exit 1; }; }
73178 fi
73179 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
73180 { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
73181 Usually this means the macro was only invoked conditionally." >&5
73182 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
73183 Usually this means the macro was only invoked conditionally." >&2;}
73184 { (exit 1); exit 1; }; }
73185 fi
73186
73187 : ${CONFIG_STATUS=./config.status}
73188 ac_clean_files_save=$ac_clean_files
73189 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
73190 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
73191 echo "$as_me: creating $CONFIG_STATUS" >&6;}
73192 cat >$CONFIG_STATUS <<_ACEOF
73193 #! $SHELL
73194 # Generated by $as_me.
73195 # Run this file to recreate the current configuration.
73196 # Compiler output produced by configure, useful for debugging
73197 # configure, is in config.log if it exists.
73198
73199 debug=false
73200 ac_cs_recheck=false
73201 ac_cs_silent=false
73202 SHELL=\${CONFIG_SHELL-$SHELL}
73203 _ACEOF
73204
73205 cat >>$CONFIG_STATUS <<\_ACEOF
73206 ## --------------------- ##
73207 ## M4sh Initialization. ##
73208 ## --------------------- ##
73209
73210 # Be Bourne compatible
73211 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
73212 emulate sh
73213 NULLCMD=:
73214 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
73215 # is contrary to our usage. Disable this feature.
73216 alias -g '${1+"$@"}'='"$@"'
73217 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
73218 set -o posix
73219 fi
73220 DUALCASE=1; export DUALCASE # for MKS sh
73221
73222 # Support unset when possible.
73223 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
73224 as_unset=unset
73225 else
73226 as_unset=false
73227 fi
73228
73229
73230 # Work around bugs in pre-3.0 UWIN ksh.
73231 $as_unset ENV MAIL MAILPATH
73232 PS1='$ '
73233 PS2='> '
73234 PS4='+ '
73235
73236 # NLS nuisances.
73237 for as_var in \
73238 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
73239 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
73240 LC_TELEPHONE LC_TIME
73241 do
73242 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
73243 eval $as_var=C; export $as_var
73244 else
73245 $as_unset $as_var
73246 fi
73247 done
73248
73249 # Required to use basename.
73250 if expr a : '\(a\)' >/dev/null 2>&1; then
73251 as_expr=expr
73252 else
73253 as_expr=false
73254 fi
73255
73256 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
73257 as_basename=basename
73258 else
73259 as_basename=false
73260 fi
73261
73262
73263 # Name of the executable.
73264 as_me=`$as_basename "$0" ||
73265 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
73266 X"$0" : 'X\(//\)$' \| \
73267 X"$0" : 'X\(/\)$' \| \
73268 . : '\(.\)' 2>/dev/null ||
73269 echo X/"$0" |
73270 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73271 /^X\/\(\/\/\)$/{ s//\1/; q; }
73272 /^X\/\(\/\).*/{ s//\1/; q; }
73273 s/.*/./; q'`
73274
73275
73276 # PATH needs CR, and LINENO needs CR and PATH.
73277 # Avoid depending upon Character Ranges.
73278 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
73279 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
73280 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
73281 as_cr_digits='0123456789'
73282 as_cr_alnum=$as_cr_Letters$as_cr_digits
73283
73284 # The user is always right.
73285 if test "${PATH_SEPARATOR+set}" != set; then
73286 echo "#! /bin/sh" >conf$$.sh
73287 echo "exit 0" >>conf$$.sh
73288 chmod +x conf$$.sh
73289 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
73290 PATH_SEPARATOR=';'
73291 else
73292 PATH_SEPARATOR=:
73293 fi
73294 rm -f conf$$.sh
73295 fi
73296
73297
73298 as_lineno_1=$LINENO
73299 as_lineno_2=$LINENO
73300 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
73301 test "x$as_lineno_1" != "x$as_lineno_2" &&
73302 test "x$as_lineno_3" = "x$as_lineno_2" || {
73303 # Find who we are. Look in the path if we contain no path at all
73304 # relative or not.
73305 case $0 in
73306 *[\\/]* ) as_myself=$0 ;;
73307 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73308 for as_dir in $PATH
73309 do
73310 IFS=$as_save_IFS
73311 test -z "$as_dir" && as_dir=.
73312 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
73313 done
73314
73315 ;;
73316 esac
73317 # We did not find ourselves, most probably we were run as `sh COMMAND'
73318 # in which case we are not to be found in the path.
73319 if test "x$as_myself" = x; then
73320 as_myself=$0
73321 fi
73322 if test ! -f "$as_myself"; then
73323 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
73324 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
73325 { (exit 1); exit 1; }; }
73326 fi
73327 case $CONFIG_SHELL in
73328 '')
73329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73330 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
73331 do
73332 IFS=$as_save_IFS
73333 test -z "$as_dir" && as_dir=.
73334 for as_base in sh bash ksh sh5; do
73335 case $as_dir in
73336 /*)
73337 if ("$as_dir/$as_base" -c '
73338 as_lineno_1=$LINENO
73339 as_lineno_2=$LINENO
73340 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
73341 test "x$as_lineno_1" != "x$as_lineno_2" &&
73342 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
73343 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
73344 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
73345 CONFIG_SHELL=$as_dir/$as_base
73346 export CONFIG_SHELL
73347 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
73348 fi;;
73349 esac
73350 done
73351 done
73352 ;;
73353 esac
73354
73355 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
73356 # uniformly replaced by the line number. The first 'sed' inserts a
73357 # line-number line before each line; the second 'sed' does the real
73358 # work. The second script uses 'N' to pair each line-number line
73359 # with the numbered line, and appends trailing '-' during
73360 # substitution so that $LINENO is not a special case at line end.
73361 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
73362 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
73363 sed '=' <$as_myself |
73364 sed '
73365 N
73366 s,$,-,
73367 : loop
73368 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
73369 t loop
73370 s,-$,,
73371 s,^['$as_cr_digits']*\n,,
73372 ' >$as_me.lineno &&
73373 chmod +x $as_me.lineno ||
73374 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
73375 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
73376 { (exit 1); exit 1; }; }
73377
73378 # Don't try to exec as it changes $[0], causing all sort of problems
73379 # (the dirname of $[0] is not the place where we might find the
73380 # original and so on. Autoconf is especially sensible to this).
73381 . ./$as_me.lineno
73382 # Exit status is that of the last command.
73383 exit
73384 }
73385
73386
73387 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
73388 *c*,-n*) ECHO_N= ECHO_C='
73389 ' ECHO_T=' ' ;;
73390 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
73391 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
73392 esac
73393
73394 if expr a : '\(a\)' >/dev/null 2>&1; then
73395 as_expr=expr
73396 else
73397 as_expr=false
73398 fi
73399
73400 rm -f conf$$ conf$$.exe conf$$.file
73401 echo >conf$$.file
73402 if ln -s conf$$.file conf$$ 2>/dev/null; then
73403 # We could just check for DJGPP; but this test a) works b) is more generic
73404 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
73405 if test -f conf$$.exe; then
73406 # Don't use ln at all; we don't have any links
73407 as_ln_s='cp -p'
73408 else
73409 as_ln_s='ln -s'
73410 fi
73411 elif ln conf$$.file conf$$ 2>/dev/null; then
73412 as_ln_s=ln
73413 else
73414 as_ln_s='cp -p'
73415 fi
73416 rm -f conf$$ conf$$.exe conf$$.file
73417
73418 if mkdir -p . 2>/dev/null; then
73419 as_mkdir_p=:
73420 else
73421 test -d ./-p && rmdir ./-p
73422 as_mkdir_p=false
73423 fi
73424
73425 as_executable_p="test -f"
73426
73427 # Sed expression to map a string onto a valid CPP name.
73428 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
73429
73430 # Sed expression to map a string onto a valid variable name.
73431 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
73432
73433
73434 # IFS
73435 # We need space, tab and new line, in precisely that order.
73436 as_nl='
73437 '
73438 IFS=" $as_nl"
73439
73440 # CDPATH.
73441 $as_unset CDPATH
73442
73443 exec 6>&1
73444
73445 # Open the log real soon, to keep \$[0] and so on meaningful, and to
73446 # report actual input values of CONFIG_FILES etc. instead of their
73447 # values after options handling. Logging --version etc. is OK.
73448 exec 5>>config.log
73449 {
73450 echo
73451 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
73452 ## Running $as_me. ##
73453 _ASBOX
73454 } >&5
73455 cat >&5 <<_CSEOF
73456
73457 This file was extended by package-unused $as_me version-unused, which was
73458 generated by GNU Autoconf 2.59. Invocation command line was
73459
73460 CONFIG_FILES = $CONFIG_FILES
73461 CONFIG_HEADERS = $CONFIG_HEADERS
73462 CONFIG_LINKS = $CONFIG_LINKS
73463 CONFIG_COMMANDS = $CONFIG_COMMANDS
73464 $ $0 $@
73465
73466 _CSEOF
73467 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
73468 echo >&5
73469 _ACEOF
73470
73471 # Files that config.status was made for.
73472 if test -n "$ac_config_files"; then
73473 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
73474 fi
73475
73476 if test -n "$ac_config_headers"; then
73477 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
73478 fi
73479
73480 if test -n "$ac_config_links"; then
73481 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
73482 fi
73483
73484 if test -n "$ac_config_commands"; then
73485 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
73486 fi
73487
73488 cat >>$CONFIG_STATUS <<\_ACEOF
73489
73490 ac_cs_usage="\
73491 \`$as_me' instantiates files from templates according to the
73492 current configuration.
73493
73494 Usage: $0 [OPTIONS] [FILE]...
73495
73496 -h, --help print this help, then exit
73497 -V, --version print version number, then exit
73498 -q, --quiet do not print progress messages
73499 -d, --debug don't remove temporary files
73500 --recheck update $as_me by reconfiguring in the same conditions
73501 --file=FILE[:TEMPLATE]
73502 instantiate the configuration file FILE
73503 --header=FILE[:TEMPLATE]
73504 instantiate the configuration header FILE
73505
73506 Configuration files:
73507 $config_files
73508
73509 Configuration headers:
73510 $config_headers
73511
73512 Configuration commands:
73513 $config_commands
73514
73515 Report bugs to <bug-autoconf@gnu.org>."
73516 _ACEOF
73517
73518 cat >>$CONFIG_STATUS <<_ACEOF
73519 ac_cs_version="\\
73520 package-unused config.status version-unused
73521 configured by $0, generated by GNU Autoconf 2.59,
73522 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
73523
73524 Copyright (C) 2003 Free Software Foundation, Inc.
73525 This config.status script is free software; the Free Software Foundation
73526 gives unlimited permission to copy, distribute and modify it."
73527 srcdir=$srcdir
73528 INSTALL="$INSTALL"
73529 _ACEOF
73530
73531 cat >>$CONFIG_STATUS <<\_ACEOF
73532 # If no file are specified by the user, then we need to provide default
73533 # value. By we need to know if files were specified by the user.
73534 ac_need_defaults=:
73535 while test $# != 0
73536 do
73537 case $1 in
73538 --*=*)
73539 ac_option=`expr "x$1" : 'x\([^=]*\)='`
73540 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
73541 ac_shift=:
73542 ;;
73543 -*)
73544 ac_option=$1
73545 ac_optarg=$2
73546 ac_shift=shift
73547 ;;
73548 *) # This is not an option, so the user has probably given explicit
73549 # arguments.
73550 ac_option=$1
73551 ac_need_defaults=false;;
73552 esac
73553
73554 case $ac_option in
73555 # Handling of the options.
73556 _ACEOF
73557 cat >>$CONFIG_STATUS <<\_ACEOF
73558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
73559 ac_cs_recheck=: ;;
73560 --version | --vers* | -V )
73561 echo "$ac_cs_version"; exit 0 ;;
73562 --he | --h)
73563 # Conflict between --help and --header
73564 { { echo "$as_me:$LINENO: error: ambiguous option: $1
73565 Try \`$0 --help' for more information." >&5
73566 echo "$as_me: error: ambiguous option: $1
73567 Try \`$0 --help' for more information." >&2;}
73568 { (exit 1); exit 1; }; };;
73569 --help | --hel | -h )
73570 echo "$ac_cs_usage"; exit 0 ;;
73571 --debug | --d* | -d )
73572 debug=: ;;
73573 --file | --fil | --fi | --f )
73574 $ac_shift
73575 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
73576 ac_need_defaults=false;;
73577 --header | --heade | --head | --hea )
73578 $ac_shift
73579 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
73580 ac_need_defaults=false;;
73581 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
73582 | -silent | --silent | --silen | --sile | --sil | --si | --s)
73583 ac_cs_silent=: ;;
73584
73585 # This is an error.
73586 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
73587 Try \`$0 --help' for more information." >&5
73588 echo "$as_me: error: unrecognized option: $1
73589 Try \`$0 --help' for more information." >&2;}
73590 { (exit 1); exit 1; }; } ;;
73591
73592 *) ac_config_targets="$ac_config_targets $1" ;;
73593
73594 esac
73595 shift
73596 done
73597
73598 ac_configure_extra_args=
73599
73600 if $ac_cs_silent; then
73601 exec 6>/dev/null
73602 ac_configure_extra_args="$ac_configure_extra_args --silent"
73603 fi
73604
73605 _ACEOF
73606 cat >>$CONFIG_STATUS <<_ACEOF
73607 if \$ac_cs_recheck; then
73608 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
73609 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
73610 fi
73611
73612 _ACEOF
73613
73614 cat >>$CONFIG_STATUS <<_ACEOF
73615 #
73616 # INIT-COMMANDS section.
73617 #
73618
73619
73620 srcdir="$srcdir"
73621 host="$host"
73622 target="$target"
73623 with_multisubdir="$with_multisubdir"
73624 with_multisrctop="$with_multisrctop"
73625 with_target_subdir="$with_target_subdir"
73626 ac_configure_args="${multilib_arg} ${ac_configure_args}"
73627 multi_basedir="$multi_basedir"
73628 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
73629 CC="$CC"
73630
73631 # Variables needed in config.status (file generation) which aren't already
73632 # passed by autoconf.
73633 SUBDIRS="$SUBDIRS"
73634
73635
73636 _ACEOF
73637
73638
73639
73640 cat >>$CONFIG_STATUS <<\_ACEOF
73641 for ac_config_target in $ac_config_targets
73642 do
73643 case "$ac_config_target" in
73644 # Handling of arguments.
73645 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
73646 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
73647 "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
73648 "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
73649 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
73650 "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
73651 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
73652 "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
73653 "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
73654 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
73655 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
73656 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
73657 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
73658 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
73659 { (exit 1); exit 1; }; };;
73660 esac
73661 done
73662
73663 # If the user did not use the arguments to specify the items to instantiate,
73664 # then the envvar interface is used. Set only those that are not.
73665 # We use the long form for the default assignment because of an extremely
73666 # bizarre bug on SunOS 4.1.3.
73667 if $ac_need_defaults; then
73668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
73669 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
73670 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
73671 fi
73672
73673 # Have a temporary directory for convenience. Make it in the build tree
73674 # simply because there is no reason to put it here, and in addition,
73675 # creating and moving files from /tmp can sometimes cause problems.
73676 # Create a temporary directory, and hook for its removal unless debugging.
73677 $debug ||
73678 {
73679 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
73680 trap '{ (exit 1); exit 1; }' 1 2 13 15
73681 }
73682
73683 # Create a (secure) tmp directory for tmp files.
73684
73685 {
73686 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
73687 test -n "$tmp" && test -d "$tmp"
73688 } ||
73689 {
73690 tmp=./confstat$$-$RANDOM
73691 (umask 077 && mkdir $tmp)
73692 } ||
73693 {
73694 echo "$me: cannot create a temporary directory in ." >&2
73695 { (exit 1); exit 1; }
73696 }
73697
73698 _ACEOF
73699
73700 cat >>$CONFIG_STATUS <<_ACEOF
73701
73702 #
73703 # CONFIG_FILES section.
73704 #
73705
73706 # No need to generate the scripts if there are no CONFIG_FILES.
73707 # This happens for instance when ./config.status config.h
73708 if test -n "\$CONFIG_FILES"; then
73709 # Protect against being on the right side of a sed subst in config.status.
73710 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
73711 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
73712 s,@SHELL@,$SHELL,;t t
73713 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
73714 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
73715 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
73716 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
73717 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
73718 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
73719 s,@exec_prefix@,$exec_prefix,;t t
73720 s,@prefix@,$prefix,;t t
73721 s,@program_transform_name@,$program_transform_name,;t t
73722 s,@bindir@,$bindir,;t t
73723 s,@sbindir@,$sbindir,;t t
73724 s,@libexecdir@,$libexecdir,;t t
73725 s,@datadir@,$datadir,;t t
73726 s,@sysconfdir@,$sysconfdir,;t t
73727 s,@sharedstatedir@,$sharedstatedir,;t t
73728 s,@localstatedir@,$localstatedir,;t t
73729 s,@libdir@,$libdir,;t t
73730 s,@includedir@,$includedir,;t t
73731 s,@oldincludedir@,$oldincludedir,;t t
73732 s,@infodir@,$infodir,;t t
73733 s,@mandir@,$mandir,;t t
73734 s,@build_alias@,$build_alias,;t t
73735 s,@host_alias@,$host_alias,;t t
73736 s,@target_alias@,$target_alias,;t t
73737 s,@DEFS@,$DEFS,;t t
73738 s,@ECHO_C@,$ECHO_C,;t t
73739 s,@ECHO_N@,$ECHO_N,;t t
73740 s,@ECHO_T@,$ECHO_T,;t t
73741 s,@LIBS@,$LIBS,;t t
73742 s,@libtool_VERSION@,$libtool_VERSION,;t t
73743 s,@multi_basedir@,$multi_basedir,;t t
73744 s,@build@,$build,;t t
73745 s,@build_cpu@,$build_cpu,;t t
73746 s,@build_vendor@,$build_vendor,;t t
73747 s,@build_os@,$build_os,;t t
73748 s,@host@,$host,;t t
73749 s,@host_cpu@,$host_cpu,;t t
73750 s,@host_vendor@,$host_vendor,;t t
73751 s,@host_os@,$host_os,;t t
73752 s,@target@,$target,;t t
73753 s,@target_cpu@,$target_cpu,;t t
73754 s,@target_vendor@,$target_vendor,;t t
73755 s,@target_os@,$target_os,;t t
73756 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
73757 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
73758 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
73759 s,@CYGPATH_W@,$CYGPATH_W,;t t
73760 s,@PACKAGE@,$PACKAGE,;t t
73761 s,@VERSION@,$VERSION,;t t
73762 s,@ACLOCAL@,$ACLOCAL,;t t
73763 s,@AUTOCONF@,$AUTOCONF,;t t
73764 s,@AUTOMAKE@,$AUTOMAKE,;t t
73765 s,@AUTOHEADER@,$AUTOHEADER,;t t
73766 s,@MAKEINFO@,$MAKEINFO,;t t
73767 s,@AMTAR@,$AMTAR,;t t
73768 s,@install_sh@,$install_sh,;t t
73769 s,@STRIP@,$STRIP,;t t
73770 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
73771 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
73772 s,@mkdir_p@,$mkdir_p,;t t
73773 s,@AWK@,$AWK,;t t
73774 s,@SET_MAKE@,$SET_MAKE,;t t
73775 s,@am__leading_dot@,$am__leading_dot,;t t
73776 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
73777 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
73778 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
73779 s,@CC@,$CC,;t t
73780 s,@ac_ct_CC@,$ac_ct_CC,;t t
73781 s,@EXEEXT@,$EXEEXT,;t t
73782 s,@OBJEXT@,$OBJEXT,;t t
73783 s,@CXX@,$CXX,;t t
73784 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
73785 s,@CFLAGS@,$CFLAGS,;t t
73786 s,@CXXFLAGS@,$CXXFLAGS,;t t
73787 s,@LN_S@,$LN_S,;t t
73788 s,@AS@,$AS,;t t
73789 s,@ac_ct_AS@,$ac_ct_AS,;t t
73790 s,@AR@,$AR,;t t
73791 s,@ac_ct_AR@,$ac_ct_AR,;t t
73792 s,@RANLIB@,$RANLIB,;t t
73793 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
73794 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
73795 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
73796 s,@MAINT@,$MAINT,;t t
73797 s,@LIBTOOL@,$LIBTOOL,;t t
73798 s,@CXXCPP@,$CXXCPP,;t t
73799 s,@CPPFLAGS@,$CPPFLAGS,;t t
73800 s,@enable_shared@,$enable_shared,;t t
73801 s,@enable_static@,$enable_static,;t t
73802 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
73803 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
73804 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
73805 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
73806 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
73807 s,@CSTDIO_H@,$CSTDIO_H,;t t
73808 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
73809 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
73810 s,@CPP@,$CPP,;t t
73811 s,@EGREP@,$EGREP,;t t
73812 s,@check_msgfmt@,$check_msgfmt,;t t
73813 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
73814 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
73815 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
73816 s,@USE_NLS@,$USE_NLS,;t t
73817 s,@CLOCALE_H@,$CLOCALE_H,;t t
73818 s,@CCODECVT_H@,$CCODECVT_H,;t t
73819 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
73820 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
73821 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
73822 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
73823 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
73824 s,@CMONEY_CC@,$CMONEY_CC,;t t
73825 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
73826 s,@CTIME_H@,$CTIME_H,;t t
73827 s,@CTIME_CC@,$CTIME_CC,;t t
73828 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
73829 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
73830 s,@ALLOCATOR_H@,$ALLOCATOR_H,;t t
73831 s,@ALLOCATOR_NAME@,$ALLOCATOR_NAME,;t t
73832 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
73833 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
73834 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
73835 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
73836 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
73837 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
73838 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
73839 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
73840 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
73841 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
73842 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
73843 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
73844 s,@WERROR@,$WERROR,;t t
73845 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
73846 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
73847 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
73848 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
73849 s,@LIBICONV@,$LIBICONV,;t t
73850 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
73851 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
73852 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
73853 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
73854 s,@baseline_dir@,$baseline_dir,;t t
73855 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
73856 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
73857 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
73858 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
73859 s,@ATOMICITY_SRCDIR@,$ATOMICITY_SRCDIR,;t t
73860 s,@ATOMIC_WORD_SRCDIR@,$ATOMIC_WORD_SRCDIR,;t t
73861 s,@ABI_TWEAKS_SRCDIR@,$ABI_TWEAKS_SRCDIR,;t t
73862 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
73863 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
73864 s,@gxx_include_dir@,$gxx_include_dir,;t t
73865 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
73866 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
73867 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
73868 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
73869 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
73870 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
73871 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
73872 s,@LIBOBJS@,$LIBOBJS,;t t
73873 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
73874 CEOF
73875
73876 _ACEOF
73877
73878 cat >>$CONFIG_STATUS <<\_ACEOF
73879 # Split the substitutions into bite-sized pieces for seds with
73880 # small command number limits, like on Digital OSF/1 and HP-UX.
73881 ac_max_sed_lines=48
73882 ac_sed_frag=1 # Number of current file.
73883 ac_beg=1 # First line for current file.
73884 ac_end=$ac_max_sed_lines # Line after last line for current file.
73885 ac_more_lines=:
73886 ac_sed_cmds=
73887 while $ac_more_lines; do
73888 if test $ac_beg -gt 1; then
73889 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
73890 else
73891 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
73892 fi
73893 if test ! -s $tmp/subs.frag; then
73894 ac_more_lines=false
73895 else
73896 # The purpose of the label and of the branching condition is to
73897 # speed up the sed processing (if there are no `@' at all, there
73898 # is no need to browse any of the substitutions).
73899 # These are the two extra sed commands mentioned above.
73900 (echo ':t
73901 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
73902 if test -z "$ac_sed_cmds"; then
73903 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
73904 else
73905 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
73906 fi
73907 ac_sed_frag=`expr $ac_sed_frag + 1`
73908 ac_beg=$ac_end
73909 ac_end=`expr $ac_end + $ac_max_sed_lines`
73910 fi
73911 done
73912 if test -z "$ac_sed_cmds"; then
73913 ac_sed_cmds=cat
73914 fi
73915 fi # test -n "$CONFIG_FILES"
73916
73917 _ACEOF
73918 cat >>$CONFIG_STATUS <<\_ACEOF
73919 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
73920 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
73921 case $ac_file in
73922 - | *:- | *:-:* ) # input from stdin
73923 cat >$tmp/stdin
73924 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
73925 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
73926 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
73927 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
73928 * ) ac_file_in=$ac_file.in ;;
73929 esac
73930
73931 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
73932 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
73933 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73934 X"$ac_file" : 'X\(//\)[^/]' \| \
73935 X"$ac_file" : 'X\(//\)$' \| \
73936 X"$ac_file" : 'X\(/\)' \| \
73937 . : '\(.\)' 2>/dev/null ||
73938 echo X"$ac_file" |
73939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
73940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
73941 /^X\(\/\/\)$/{ s//\1/; q; }
73942 /^X\(\/\).*/{ s//\1/; q; }
73943 s/.*/./; q'`
73944 { if $as_mkdir_p; then
73945 mkdir -p "$ac_dir"
73946 else
73947 as_dir="$ac_dir"
73948 as_dirs=
73949 while test ! -d "$as_dir"; do
73950 as_dirs="$as_dir $as_dirs"
73951 as_dir=`(dirname "$as_dir") 2>/dev/null ||
73952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
73953 X"$as_dir" : 'X\(//\)[^/]' \| \
73954 X"$as_dir" : 'X\(//\)$' \| \
73955 X"$as_dir" : 'X\(/\)' \| \
73956 . : '\(.\)' 2>/dev/null ||
73957 echo X"$as_dir" |
73958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
73959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
73960 /^X\(\/\/\)$/{ s//\1/; q; }
73961 /^X\(\/\).*/{ s//\1/; q; }
73962 s/.*/./; q'`
73963 done
73964 test ! -n "$as_dirs" || mkdir $as_dirs
73965 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
73966 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
73967 { (exit 1); exit 1; }; }; }
73968
73969 ac_builddir=.
73970
73971 if test "$ac_dir" != .; then
73972 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
73973 # A "../" for each directory in $ac_dir_suffix.
73974 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
73975 else
73976 ac_dir_suffix= ac_top_builddir=
73977 fi
73978
73979 case $srcdir in
73980 .) # No --srcdir option. We are building in place.
73981 ac_srcdir=.
73982 if test -z "$ac_top_builddir"; then
73983 ac_top_srcdir=.
73984 else
73985 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
73986 fi ;;
73987 [\\/]* | ?:[\\/]* ) # Absolute path.
73988 ac_srcdir=$srcdir$ac_dir_suffix;
73989 ac_top_srcdir=$srcdir ;;
73990 *) # Relative path.
73991 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
73992 ac_top_srcdir=$ac_top_builddir$srcdir ;;
73993 esac
73994
73995 # Do not use `cd foo && pwd` to compute absolute paths, because
73996 # the directories may not exist.
73997 case `pwd` in
73998 .) ac_abs_builddir="$ac_dir";;
73999 *)
74000 case "$ac_dir" in
74001 .) ac_abs_builddir=`pwd`;;
74002 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
74003 *) ac_abs_builddir=`pwd`/"$ac_dir";;
74004 esac;;
74005 esac
74006 case $ac_abs_builddir in
74007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
74008 *)
74009 case ${ac_top_builddir}. in
74010 .) ac_abs_top_builddir=$ac_abs_builddir;;
74011 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
74012 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
74013 esac;;
74014 esac
74015 case $ac_abs_builddir in
74016 .) ac_abs_srcdir=$ac_srcdir;;
74017 *)
74018 case $ac_srcdir in
74019 .) ac_abs_srcdir=$ac_abs_builddir;;
74020 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
74021 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
74022 esac;;
74023 esac
74024 case $ac_abs_builddir in
74025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
74026 *)
74027 case $ac_top_srcdir in
74028 .) ac_abs_top_srcdir=$ac_abs_builddir;;
74029 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
74030 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
74031 esac;;
74032 esac
74033
74034
74035 case $INSTALL in
74036 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
74037 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
74038 esac
74039
74040 # Let's still pretend it is `configure' which instantiates (i.e., don't
74041 # use $as_me), people would be surprised to read:
74042 # /* config.h. Generated by config.status. */
74043 if test x"$ac_file" = x-; then
74044 configure_input=
74045 else
74046 configure_input="$ac_file. "
74047 fi
74048 configure_input=$configure_input"Generated from `echo $ac_file_in |
74049 sed 's,.*/,,'` by configure."
74050
74051 # First look for the input files in the build tree, otherwise in the
74052 # src tree.
74053 ac_file_inputs=`IFS=:
74054 for f in $ac_file_in; do
74055 case $f in
74056 -) echo $tmp/stdin ;;
74057 [\\/$]*)
74058 # Absolute (can't be DOS-style, as IFS=:)
74059 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74060 echo "$as_me: error: cannot find input file: $f" >&2;}
74061 { (exit 1); exit 1; }; }
74062 echo "$f";;
74063 *) # Relative
74064 if test -f "$f"; then
74065 # Build tree
74066 echo "$f"
74067 elif test -f "$srcdir/$f"; then
74068 # Source tree
74069 echo "$srcdir/$f"
74070 else
74071 # /dev/null tree
74072 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74073 echo "$as_me: error: cannot find input file: $f" >&2;}
74074 { (exit 1); exit 1; }; }
74075 fi;;
74076 esac
74077 done` || { (exit 1); exit 1; }
74078
74079 if test x"$ac_file" != x-; then
74080 { echo "$as_me:$LINENO: creating $ac_file" >&5
74081 echo "$as_me: creating $ac_file" >&6;}
74082 rm -f "$ac_file"
74083 fi
74084 _ACEOF
74085 cat >>$CONFIG_STATUS <<_ACEOF
74086 sed "$ac_vpsub
74087 $extrasub
74088 _ACEOF
74089 cat >>$CONFIG_STATUS <<\_ACEOF
74090 :t
74091 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
74092 s,@configure_input@,$configure_input,;t t
74093 s,@srcdir@,$ac_srcdir,;t t
74094 s,@abs_srcdir@,$ac_abs_srcdir,;t t
74095 s,@top_srcdir@,$ac_top_srcdir,;t t
74096 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
74097 s,@builddir@,$ac_builddir,;t t
74098 s,@abs_builddir@,$ac_abs_builddir,;t t
74099 s,@top_builddir@,$ac_top_builddir,;t t
74100 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
74101 s,@INSTALL@,$ac_INSTALL,;t t
74102 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
74103 rm -f $tmp/stdin
74104 if test x"$ac_file" != x-; then
74105 mv $tmp/out $ac_file
74106 else
74107 cat $tmp/out
74108 rm -f $tmp/out
74109 fi
74110
74111 # Run the commands associated with the file.
74112 case $ac_file in
74113 scripts/check_survey ) chmod +x scripts/check_survey ;;
74114 scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
74115 esac
74116 done
74117 _ACEOF
74118 cat >>$CONFIG_STATUS <<\_ACEOF
74119
74120 #
74121 # CONFIG_HEADER section.
74122 #
74123
74124 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
74125 # NAME is the cpp macro being defined and VALUE is the value it is being given.
74126 #
74127 # ac_d sets the value in "#define NAME VALUE" lines.
74128 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
74129 ac_dB='[ ].*$,\1#\2'
74130 ac_dC=' '
74131 ac_dD=',;t'
74132 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
74133 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
74134 ac_uB='$,\1#\2define\3'
74135 ac_uC=' '
74136 ac_uD=',;t'
74137
74138 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
74139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
74140 case $ac_file in
74141 - | *:- | *:-:* ) # input from stdin
74142 cat >$tmp/stdin
74143 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74145 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74147 * ) ac_file_in=$ac_file.in ;;
74148 esac
74149
74150 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
74151 echo "$as_me: creating $ac_file" >&6;}
74152
74153 # First look for the input files in the build tree, otherwise in the
74154 # src tree.
74155 ac_file_inputs=`IFS=:
74156 for f in $ac_file_in; do
74157 case $f in
74158 -) echo $tmp/stdin ;;
74159 [\\/$]*)
74160 # Absolute (can't be DOS-style, as IFS=:)
74161 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74162 echo "$as_me: error: cannot find input file: $f" >&2;}
74163 { (exit 1); exit 1; }; }
74164 # Do quote $f, to prevent DOS paths from being IFS'd.
74165 echo "$f";;
74166 *) # Relative
74167 if test -f "$f"; then
74168 # Build tree
74169 echo "$f"
74170 elif test -f "$srcdir/$f"; then
74171 # Source tree
74172 echo "$srcdir/$f"
74173 else
74174 # /dev/null tree
74175 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74176 echo "$as_me: error: cannot find input file: $f" >&2;}
74177 { (exit 1); exit 1; }; }
74178 fi;;
74179 esac
74180 done` || { (exit 1); exit 1; }
74181 # Remove the trailing spaces.
74182 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
74183
74184 _ACEOF
74185
74186 # Transform confdefs.h into two sed scripts, `conftest.defines' and
74187 # `conftest.undefs', that substitutes the proper values into
74188 # config.h.in to produce config.h. The first handles `#define'
74189 # templates, and the second `#undef' templates.
74190 # And first: Protect against being on the right side of a sed subst in
74191 # config.status. Protect against being in an unquoted here document
74192 # in config.status.
74193 rm -f conftest.defines conftest.undefs
74194 # Using a here document instead of a string reduces the quoting nightmare.
74195 # Putting comments in sed scripts is not portable.
74196 #
74197 # `end' is used to avoid that the second main sed command (meant for
74198 # 0-ary CPP macros) applies to n-ary macro definitions.
74199 # See the Autoconf documentation for `clear'.
74200 cat >confdef2sed.sed <<\_ACEOF
74201 s/[\\&,]/\\&/g
74202 s,[\\$`],\\&,g
74203 t clear
74204 : clear
74205 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
74206 t end
74207 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
74208 : end
74209 _ACEOF
74210 # If some macros were called several times there might be several times
74211 # the same #defines, which is useless. Nevertheless, we may not want to
74212 # sort them, since we want the *last* AC-DEFINE to be honored.
74213 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
74214 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
74215 rm -f confdef2sed.sed
74216
74217 # This sed command replaces #undef with comments. This is necessary, for
74218 # example, in the case of _POSIX_SOURCE, which is predefined and required
74219 # on some systems where configure will not decide to define it.
74220 cat >>conftest.undefs <<\_ACEOF
74221 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
74222 _ACEOF
74223
74224 # Break up conftest.defines because some shells have a limit on the size
74225 # of here documents, and old seds have small limits too (100 cmds).
74226 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
74227 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
74228 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
74229 echo ' :' >>$CONFIG_STATUS
74230 rm -f conftest.tail
74231 while grep . conftest.defines >/dev/null
74232 do
74233 # Write a limited-size here document to $tmp/defines.sed.
74234 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
74235 # Speed up: don't consider the non `#define' lines.
74236 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
74237 # Work around the forget-to-reset-the-flag bug.
74238 echo 't clr' >>$CONFIG_STATUS
74239 echo ': clr' >>$CONFIG_STATUS
74240 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
74241 echo 'CEOF
74242 sed -f $tmp/defines.sed $tmp/in >$tmp/out
74243 rm -f $tmp/in
74244 mv $tmp/out $tmp/in
74245 ' >>$CONFIG_STATUS
74246 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
74247 rm -f conftest.defines
74248 mv conftest.tail conftest.defines
74249 done
74250 rm -f conftest.defines
74251 echo ' fi # grep' >>$CONFIG_STATUS
74252 echo >>$CONFIG_STATUS
74253
74254 # Break up conftest.undefs because some shells have a limit on the size
74255 # of here documents, and old seds have small limits too (100 cmds).
74256 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
74257 rm -f conftest.tail
74258 while grep . conftest.undefs >/dev/null
74259 do
74260 # Write a limited-size here document to $tmp/undefs.sed.
74261 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
74262 # Speed up: don't consider the non `#undef'
74263 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
74264 # Work around the forget-to-reset-the-flag bug.
74265 echo 't clr' >>$CONFIG_STATUS
74266 echo ': clr' >>$CONFIG_STATUS
74267 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
74268 echo 'CEOF
74269 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
74270 rm -f $tmp/in
74271 mv $tmp/out $tmp/in
74272 ' >>$CONFIG_STATUS
74273 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
74274 rm -f conftest.undefs
74275 mv conftest.tail conftest.undefs
74276 done
74277 rm -f conftest.undefs
74278
74279 cat >>$CONFIG_STATUS <<\_ACEOF
74280 # Let's still pretend it is `configure' which instantiates (i.e., don't
74281 # use $as_me), people would be surprised to read:
74282 # /* config.h. Generated by config.status. */
74283 if test x"$ac_file" = x-; then
74284 echo "/* Generated by configure. */" >$tmp/config.h
74285 else
74286 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
74287 fi
74288 cat $tmp/in >>$tmp/config.h
74289 rm -f $tmp/in
74290 if test x"$ac_file" != x-; then
74291 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
74292 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
74293 echo "$as_me: $ac_file is unchanged" >&6;}
74294 else
74295 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
74296 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74297 X"$ac_file" : 'X\(//\)[^/]' \| \
74298 X"$ac_file" : 'X\(//\)$' \| \
74299 X"$ac_file" : 'X\(/\)' \| \
74300 . : '\(.\)' 2>/dev/null ||
74301 echo X"$ac_file" |
74302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74304 /^X\(\/\/\)$/{ s//\1/; q; }
74305 /^X\(\/\).*/{ s//\1/; q; }
74306 s/.*/./; q'`
74307 { if $as_mkdir_p; then
74308 mkdir -p "$ac_dir"
74309 else
74310 as_dir="$ac_dir"
74311 as_dirs=
74312 while test ! -d "$as_dir"; do
74313 as_dirs="$as_dir $as_dirs"
74314 as_dir=`(dirname "$as_dir") 2>/dev/null ||
74315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74316 X"$as_dir" : 'X\(//\)[^/]' \| \
74317 X"$as_dir" : 'X\(//\)$' \| \
74318 X"$as_dir" : 'X\(/\)' \| \
74319 . : '\(.\)' 2>/dev/null ||
74320 echo X"$as_dir" |
74321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74323 /^X\(\/\/\)$/{ s//\1/; q; }
74324 /^X\(\/\).*/{ s//\1/; q; }
74325 s/.*/./; q'`
74326 done
74327 test ! -n "$as_dirs" || mkdir $as_dirs
74328 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74329 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74330 { (exit 1); exit 1; }; }; }
74331
74332 rm -f $ac_file
74333 mv $tmp/config.h $ac_file
74334 fi
74335 else
74336 cat $tmp/config.h
74337 rm -f $tmp/config.h
74338 fi
74339 # Compute $ac_file's index in $config_headers.
74340 _am_stamp_count=1
74341 for _am_header in $config_headers :; do
74342 case $_am_header in
74343 $ac_file | $ac_file:* )
74344 break ;;
74345 * )
74346 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
74347 esac
74348 done
74349 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
74350 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74351 X$ac_file : 'X\(//\)[^/]' \| \
74352 X$ac_file : 'X\(//\)$' \| \
74353 X$ac_file : 'X\(/\)' \| \
74354 . : '\(.\)' 2>/dev/null ||
74355 echo X$ac_file |
74356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74357 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74358 /^X\(\/\/\)$/{ s//\1/; q; }
74359 /^X\(\/\).*/{ s//\1/; q; }
74360 s/.*/./; q'`/stamp-h$_am_stamp_count
74361 done
74362 _ACEOF
74363 cat >>$CONFIG_STATUS <<\_ACEOF
74364
74365 #
74366 # CONFIG_COMMANDS section.
74367 #
74368 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
74369 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
74370 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
74371 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
74372 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74373 X"$ac_dest" : 'X\(//\)[^/]' \| \
74374 X"$ac_dest" : 'X\(//\)$' \| \
74375 X"$ac_dest" : 'X\(/\)' \| \
74376 . : '\(.\)' 2>/dev/null ||
74377 echo X"$ac_dest" |
74378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74380 /^X\(\/\/\)$/{ s//\1/; q; }
74381 /^X\(\/\).*/{ s//\1/; q; }
74382 s/.*/./; q'`
74383 { if $as_mkdir_p; then
74384 mkdir -p "$ac_dir"
74385 else
74386 as_dir="$ac_dir"
74387 as_dirs=
74388 while test ! -d "$as_dir"; do
74389 as_dirs="$as_dir $as_dirs"
74390 as_dir=`(dirname "$as_dir") 2>/dev/null ||
74391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74392 X"$as_dir" : 'X\(//\)[^/]' \| \
74393 X"$as_dir" : 'X\(//\)$' \| \
74394 X"$as_dir" : 'X\(/\)' \| \
74395 . : '\(.\)' 2>/dev/null ||
74396 echo X"$as_dir" |
74397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74399 /^X\(\/\/\)$/{ s//\1/; q; }
74400 /^X\(\/\).*/{ s//\1/; q; }
74401 s/.*/./; q'`
74402 done
74403 test ! -n "$as_dirs" || mkdir $as_dirs
74404 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74405 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74406 { (exit 1); exit 1; }; }; }
74407
74408 ac_builddir=.
74409
74410 if test "$ac_dir" != .; then
74411 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
74412 # A "../" for each directory in $ac_dir_suffix.
74413 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
74414 else
74415 ac_dir_suffix= ac_top_builddir=
74416 fi
74417
74418 case $srcdir in
74419 .) # No --srcdir option. We are building in place.
74420 ac_srcdir=.
74421 if test -z "$ac_top_builddir"; then
74422 ac_top_srcdir=.
74423 else
74424 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
74425 fi ;;
74426 [\\/]* | ?:[\\/]* ) # Absolute path.
74427 ac_srcdir=$srcdir$ac_dir_suffix;
74428 ac_top_srcdir=$srcdir ;;
74429 *) # Relative path.
74430 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
74431 ac_top_srcdir=$ac_top_builddir$srcdir ;;
74432 esac
74433
74434 # Do not use `cd foo && pwd` to compute absolute paths, because
74435 # the directories may not exist.
74436 case `pwd` in
74437 .) ac_abs_builddir="$ac_dir";;
74438 *)
74439 case "$ac_dir" in
74440 .) ac_abs_builddir=`pwd`;;
74441 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
74442 *) ac_abs_builddir=`pwd`/"$ac_dir";;
74443 esac;;
74444 esac
74445 case $ac_abs_builddir in
74446 .) ac_abs_top_builddir=${ac_top_builddir}.;;
74447 *)
74448 case ${ac_top_builddir}. in
74449 .) ac_abs_top_builddir=$ac_abs_builddir;;
74450 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
74451 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
74452 esac;;
74453 esac
74454 case $ac_abs_builddir in
74455 .) ac_abs_srcdir=$ac_srcdir;;
74456 *)
74457 case $ac_srcdir in
74458 .) ac_abs_srcdir=$ac_abs_builddir;;
74459 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
74460 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
74461 esac;;
74462 esac
74463 case $ac_abs_builddir in
74464 .) ac_abs_top_srcdir=$ac_top_srcdir;;
74465 *)
74466 case $ac_top_srcdir in
74467 .) ac_abs_top_srcdir=$ac_abs_builddir;;
74468 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
74469 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
74470 esac;;
74471 esac
74472
74473
74474 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
74475 echo "$as_me: executing $ac_dest commands" >&6;}
74476 case $ac_dest in
74477 default-1 )
74478 # Only add multilib support code if we just rebuilt the top-level
74479 # Makefile.
74480 case " $CONFIG_FILES " in
74481 *" Makefile "*)
74482 ac_file=Makefile . ${multi_basedir}/config-ml.in
74483 ;;
74484 esac ;;
74485 default ) if test -n "$CONFIG_FILES"; then
74486 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
74487 # that multilib installs will end up installed in the correct place.
74488 # The testsuite needs it for multilib-aware ABI baseline files.
74489 # To work around this not being passed down from config-ml.in ->
74490 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
74491 # append it here. Only modify Makefiles that have just been created.
74492 #
74493 # Also, get rid of this simulated-VPATH thing that automake does.
74494 cat > vpsed << \_EOF
74495 s!`test -f '$<' || echo '$(srcdir)/'`!!
74496 _EOF
74497 for i in $SUBDIRS; do
74498 case $CONFIG_FILES in
74499 *${i}/Makefile*)
74500 #echo "Adding MULTISUBDIR to $i/Makefile"
74501 sed -f vpsed $i/Makefile > tmp
74502 grep '^MULTISUBDIR =' Makefile >> tmp
74503 mv tmp $i/Makefile
74504 ;;
74505 esac
74506 done
74507 rm vpsed
74508 fi
74509 (cd include && ${MAKE-make})
74510 ;;
74511 esac
74512 done
74513 _ACEOF
74514
74515 cat >>$CONFIG_STATUS <<\_ACEOF
74516
74517 { (exit 0); exit 0; }
74518 _ACEOF
74519 chmod +x $CONFIG_STATUS
74520 ac_clean_files=$ac_clean_files_save
74521
74522
74523 # configure is writing to config.log, and then calls config.status.
74524 # config.status does its own redirection, appending to config.log.
74525 # Unfortunately, on DOS this fails, as config.log is still kept open
74526 # by configure, so config.status won't be able to write to it; its
74527 # output is simply discarded. So we exec the FD to /dev/null,
74528 # effectively closing config.log, so it can be properly (re)opened and
74529 # appended to by config.status. When coming back to configure, we
74530 # need to make the FD available again.
74531 if test "$no_create" != yes; then
74532 ac_cs_success=:
74533 ac_config_status_args=
74534 test "$silent" = yes &&
74535 ac_config_status_args="$ac_config_status_args --quiet"
74536 exec 5>/dev/null
74537 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
74538 exec 5>>config.log
74539 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
74540 # would make configure fail if this is the last instruction.
74541 $ac_cs_success || { (exit 1); exit 1; }
74542 fi
74543
This page took 4.044592 seconds and 6 git commands to generate.