OSDN Git Service

2004-05-21 Frank Ch. Eigler <fche@redhat.com>
[pf3gnuchains/gcc-fork.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 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:0:0
1377
1378
1379 # Find the rest of the source tree framework.
1380
1381   # Sets up multi_basedir, which is srcdir/.. plus the usual
1382   # "multi_source_toprel_bottom_adjust" lunacy as needed.
1383   # Default to --enable-multilib
1384 # Check whether --enable-multilib or --disable-multilib was given.
1385 if test "${enable_multilib+set}" = set; then
1386   enableval="$enable_multilib"
1387   case "$enableval" in
1388   yes) multilib=yes ;;
1389   no)  multilib=no ;;
1390   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1391 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1392    { (exit 1); exit 1; }; } ;;
1393  esac
1394 else
1395   multilib=yes
1396 fi;
1397
1398 # We may get other options which we leave undocumented:
1399 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1400 # See config-ml.in if you want the gory details.
1401
1402 if test "$srcdir" = "."; then
1403   if test "$with_target_subdir" != "."; then
1404     multi_basedir="$srcdir/$with_multisrctop../.."
1405   else
1406     multi_basedir="$srcdir/$with_multisrctop.."
1407   fi
1408 else
1409   multi_basedir="$srcdir/.."
1410 fi
1411
1412
1413           ac_config_commands="$ac_config_commands default-1"
1414
1415
1416   # The generated code is exactly the same, except that automake's looks in
1417   # ".. $srcdir/.." and autoconf's looks in multi_basedir.  Apparently other
1418   # things are triggered on the presence of the two ...AUX_DIR[S], but I don't
1419   # know what they are or what the other differences might be (and they keep
1420   # changing anyhow).
1421   #
1422   # Looking in multi_basedir seems smarter, so actually execute that branch.
1423   if false; then
1424     # this is for automake
1425     ac_aux_dir=
1426 for ac_dir in .. $srcdir/..; do
1427   if test -f $ac_dir/install-sh; then
1428     ac_aux_dir=$ac_dir
1429     ac_install_sh="$ac_aux_dir/install-sh -c"
1430     break
1431   elif test -f $ac_dir/install.sh; then
1432     ac_aux_dir=$ac_dir
1433     ac_install_sh="$ac_aux_dir/install.sh -c"
1434     break
1435   elif test -f $ac_dir/shtool; then
1436     ac_aux_dir=$ac_dir
1437     ac_install_sh="$ac_aux_dir/shtool install -c"
1438     break
1439   fi
1440 done
1441 if test -z "$ac_aux_dir"; then
1442   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1443 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1444    { (exit 1); exit 1; }; }
1445 fi
1446 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1447 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1448 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1449
1450   else
1451     # this is for autoconf
1452     ac_aux_dir=
1453 for ac_dir in ${multi_basedir}; do
1454   if test -f $ac_dir/install-sh; then
1455     ac_aux_dir=$ac_dir
1456     ac_install_sh="$ac_aux_dir/install-sh -c"
1457     break
1458   elif test -f $ac_dir/install.sh; then
1459     ac_aux_dir=$ac_dir
1460     ac_install_sh="$ac_aux_dir/install.sh -c"
1461     break
1462   elif test -f $ac_dir/shtool; then
1463     ac_aux_dir=$ac_dir
1464     ac_install_sh="$ac_aux_dir/shtool install -c"
1465     break
1466   fi
1467 done
1468 if test -z "$ac_aux_dir"; then
1469   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1470 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1471    { (exit 1); exit 1; }; }
1472 fi
1473 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1474 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1475 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1476
1477   fi
1478
1479
1480
1481 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1482 #
1483 # You will slowly go insane if you do not grok the following fact:  when
1484 # building v3 as part of the compiler, the top-level /target/ becomes the
1485 # library's /host/.  configure then causes --target to default to --host,
1486 # exactly like any other package using autoconf.  Therefore, 'target' and
1487 # 'host' will always be the same.  This makes sense both for native and
1488 # cross compilers, just think about it for a little while.  :-)
1489 #
1490 # Also, if v3 is being configured as part of a cross compiler, the top-level
1491 # configure script will pass the "real" host as $with_cross_host.
1492 #
1493 # Do not delete or change the following two lines.  For why, see
1494 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1495 # Make sure we can run config.sub.
1496 $ac_config_sub sun4 >/dev/null 2>&1 ||
1497   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1498 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1499    { (exit 1); exit 1; }; }
1500
1501 echo "$as_me:$LINENO: checking build system type" >&5
1502 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1503 if test "${ac_cv_build+set}" = set; then
1504   echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506   ac_cv_build_alias=$build_alias
1507 test -z "$ac_cv_build_alias" &&
1508   ac_cv_build_alias=`$ac_config_guess`
1509 test -z "$ac_cv_build_alias" &&
1510   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1511 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1512    { (exit 1); exit 1; }; }
1513 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1514   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1515 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1516    { (exit 1); exit 1; }; }
1517
1518 fi
1519 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1520 echo "${ECHO_T}$ac_cv_build" >&6
1521 build=$ac_cv_build
1522 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1523 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1524 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525
1526
1527 echo "$as_me:$LINENO: checking host system type" >&5
1528 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1529 if test "${ac_cv_host+set}" = set; then
1530   echo $ECHO_N "(cached) $ECHO_C" >&6
1531 else
1532   ac_cv_host_alias=$host_alias
1533 test -z "$ac_cv_host_alias" &&
1534   ac_cv_host_alias=$ac_cv_build_alias
1535 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1536   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1537 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1538    { (exit 1); exit 1; }; }
1539
1540 fi
1541 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1542 echo "${ECHO_T}$ac_cv_host" >&6
1543 host=$ac_cv_host
1544 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1545 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1546 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1547
1548
1549 echo "$as_me:$LINENO: checking target system type" >&5
1550 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1551 if test "${ac_cv_target+set}" = set; then
1552   echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554   ac_cv_target_alias=$target_alias
1555 test "x$ac_cv_target_alias" = "x" &&
1556   ac_cv_target_alias=$ac_cv_host_alias
1557 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1558   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1559 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1560    { (exit 1); exit 1; }; }
1561
1562 fi
1563 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1564 echo "${ECHO_T}$ac_cv_target" >&6
1565 target=$ac_cv_target
1566 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1567 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1568 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1569
1570
1571 # The aliases save the names the user supplied, while $host etc.
1572 # will get canonicalized.
1573 test -n "$target_alias" &&
1574   test "$program_prefix$program_suffix$program_transform_name" = \
1575     NONENONEs,x,x, &&
1576   program_prefix=${target_alias}-
1577 target_alias=${target_alias-$host_alias}
1578
1579 # Handy for debugging:
1580 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1581
1582 if test "$build" != "$host"; then
1583   # We are being configured with some form of cross compiler.
1584   GLIBCXX_IS_NATIVE=false
1585
1586 else
1587   GLIBCXX_IS_NATIVE=true
1588 fi
1589
1590 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1591 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1592 #  1.x:  minimum required version
1593 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1594 #              of other PACKAGE_* variables will, however, and there's nothing
1595 #              we can do about that; they come from AC_INIT).
1596 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1597 #            file in the top srcdir, etc, etc), so stop complaining.
1598 #  no-dependencies:  turns off auto dependency generation (just for now)
1599 #  -Wall:  turns on all automake warnings...
1600 #  -Wno-portability:  ...except this one, since GNU make is now required.
1601 am__api_version="1.8"
1602 # Find a good install program.  We prefer a C program (faster),
1603 # so one script is as good as another.  But avoid the broken or
1604 # incompatible versions:
1605 # SysV /etc/install, /usr/sbin/install
1606 # SunOS /usr/etc/install
1607 # IRIX /sbin/install
1608 # AIX /bin/install
1609 # AmigaOS /C/install, which installs bootblocks on floppy discs
1610 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1613 # OS/2's system install, which has a completely different semantic
1614 # ./install, which can be erroneously created by make from ./install.sh.
1615 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1616 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1617 if test -z "$INSTALL"; then
1618 if test "${ac_cv_path_install+set}" = set; then
1619   echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 for as_dir in $PATH
1623 do
1624   IFS=$as_save_IFS
1625   test -z "$as_dir" && as_dir=.
1626   # Account for people who put trailing slashes in PATH elements.
1627 case $as_dir/ in
1628   ./ | .// | /cC/* | \
1629   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1630   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1631   /usr/ucb/* ) ;;
1632   *)
1633     # OSF1 and SCO ODT 3.0 have their own names for install.
1634     # Don't use installbsd from OSF since it installs stuff as root
1635     # by default.
1636     for ac_prog in ginstall scoinst install; do
1637       for ac_exec_ext in '' $ac_executable_extensions; do
1638         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1639           if test $ac_prog = install &&
1640             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1641             # AIX install.  It has an incompatible calling convention.
1642             :
1643           elif test $ac_prog = install &&
1644             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1645             # program-specific install script used by HP pwplus--don't use.
1646             :
1647           else
1648             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1649             break 3
1650           fi
1651         fi
1652       done
1653     done
1654     ;;
1655 esac
1656 done
1657
1658
1659 fi
1660   if test "${ac_cv_path_install+set}" = set; then
1661     INSTALL=$ac_cv_path_install
1662   else
1663     # As a last resort, use the slow shell script.  We don't cache a
1664     # path for INSTALL within a source directory, because that will
1665     # break other packages using the cache if that directory is
1666     # removed, or if the path is relative.
1667     INSTALL=$ac_install_sh
1668   fi
1669 fi
1670 echo "$as_me:$LINENO: result: $INSTALL" >&5
1671 echo "${ECHO_T}$INSTALL" >&6
1672
1673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1674 # It thinks the first close brace ends the variable substitution.
1675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1676
1677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1678
1679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1680
1681 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1682 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1683 # Just in case
1684 sleep 1
1685 echo timestamp > conftest.file
1686 # Do `set' in a subshell so we don't clobber the current shell's
1687 # arguments.  Must try -L first in case configure is actually a
1688 # symlink; some systems play weird games with the mod time of symlinks
1689 # (eg FreeBSD returns the mod time of the symlink's containing
1690 # directory).
1691 if (
1692    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1693    if test "$*" = "X"; then
1694       # -L didn't work.
1695       set X `ls -t $srcdir/configure conftest.file`
1696    fi
1697    rm -f conftest.file
1698    if test "$*" != "X $srcdir/configure conftest.file" \
1699       && test "$*" != "X conftest.file $srcdir/configure"; then
1700
1701       # If neither matched, then we have a broken ls.  This can happen
1702       # if, for instance, CONFIG_SHELL is bash and it inherits a
1703       # broken ls alias from the environment.  This has actually
1704       # happened.  Such a system could not be considered "sane".
1705       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1706 alias in your environment" >&5
1707 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1708 alias in your environment" >&2;}
1709    { (exit 1); exit 1; }; }
1710    fi
1711
1712    test "$2" = conftest.file
1713    )
1714 then
1715    # Ok.
1716    :
1717 else
1718    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1719 Check your system clock" >&5
1720 echo "$as_me: error: newly created file is older than distributed files!
1721 Check your system clock" >&2;}
1722    { (exit 1); exit 1; }; }
1723 fi
1724 echo "$as_me:$LINENO: result: yes" >&5
1725 echo "${ECHO_T}yes" >&6
1726 test "$program_prefix" != NONE &&
1727   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1728 # Use a double $ so make ignores it.
1729 test "$program_suffix" != NONE &&
1730   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1731 # Double any \ or $.  echo might interpret backslashes.
1732 # By default was `s,x,x', remove it if useless.
1733 cat <<\_ACEOF >conftest.sed
1734 s/[\\$]/&&/g;s/;s,x,x,$//
1735 _ACEOF
1736 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1737 rm conftest.sed
1738
1739 # expand $ac_aux_dir to an absolute path
1740 am_aux_dir=`cd $ac_aux_dir && pwd`
1741
1742 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1743 # Use eval to expand $SHELL
1744 if eval "$MISSING --run true"; then
1745   am_missing_run="$MISSING --run "
1746 else
1747   am_missing_run=
1748   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1749 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1750 fi
1751
1752 if mkdir -p -- . 2>/dev/null; then
1753   # Keeping the `.' argument allows $(mkdir_p) to be used without
1754   # argument.  Indeed, we sometimes output rules like
1755   #   $(mkdir_p) $(somedir)
1756   # where $(somedir) is conditionally defined.
1757   # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1758   # expensive solution, as it forces Make to start a sub-shell.)
1759   mkdir_p='mkdir -p -- .'
1760 else
1761   # On NextStep and OpenStep, the `mkdir' command does not
1762   # recognize any option.  It will interpret all options as
1763   # directories to create, and then abort because `.' already
1764   # exists.
1765   for d in ./-p ./--;
1766   do
1767     test -d $d && rmdir $d
1768   done
1769   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1770   if test -f "$ac_aux_dir/mkinstalldirs"; then
1771     mkdir_p='$(mkinstalldirs)'
1772   else
1773     mkdir_p='$(install_sh) -d'
1774   fi
1775 fi
1776
1777 for ac_prog in gawk mawk nawk awk
1778 do
1779   # Extract the first word of "$ac_prog", so it can be a program name with args.
1780 set dummy $ac_prog; ac_word=$2
1781 echo "$as_me:$LINENO: checking for $ac_word" >&5
1782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1783 if test "${ac_cv_prog_AWK+set}" = set; then
1784   echo $ECHO_N "(cached) $ECHO_C" >&6
1785 else
1786   if test -n "$AWK"; then
1787   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1788 else
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1791 do
1792   IFS=$as_save_IFS
1793   test -z "$as_dir" && as_dir=.
1794   for ac_exec_ext in '' $ac_executable_extensions; do
1795   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1796     ac_cv_prog_AWK="$ac_prog"
1797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1798     break 2
1799   fi
1800 done
1801 done
1802
1803 fi
1804 fi
1805 AWK=$ac_cv_prog_AWK
1806 if test -n "$AWK"; then
1807   echo "$as_me:$LINENO: result: $AWK" >&5
1808 echo "${ECHO_T}$AWK" >&6
1809 else
1810   echo "$as_me:$LINENO: result: no" >&5
1811 echo "${ECHO_T}no" >&6
1812 fi
1813
1814   test -n "$AWK" && break
1815 done
1816
1817 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1818 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1819 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1820 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1821   echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823   cat >conftest.make <<\_ACEOF
1824 all:
1825         @echo 'ac_maketemp="$(MAKE)"'
1826 _ACEOF
1827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1828 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1829 if test -n "$ac_maketemp"; then
1830   eval ac_cv_prog_make_${ac_make}_set=yes
1831 else
1832   eval ac_cv_prog_make_${ac_make}_set=no
1833 fi
1834 rm -f conftest.make
1835 fi
1836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1837   echo "$as_me:$LINENO: result: yes" >&5
1838 echo "${ECHO_T}yes" >&6
1839   SET_MAKE=
1840 else
1841   echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1843   SET_MAKE="MAKE=${MAKE-make}"
1844 fi
1845
1846 rm -rf .tst 2>/dev/null
1847 mkdir .tst 2>/dev/null
1848 if test -d .tst; then
1849   am__leading_dot=.
1850 else
1851   am__leading_dot=_
1852 fi
1853 rmdir .tst 2>/dev/null
1854
1855 # test to see if srcdir already configured
1856 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1857    test -f $srcdir/config.status; then
1858   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1859 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1860    { (exit 1); exit 1; }; }
1861 fi
1862
1863 # test whether we have cygpath
1864 if test -z "$CYGPATH_W"; then
1865   if (cygpath --version) >/dev/null 2>/dev/null; then
1866     CYGPATH_W='cygpath -w'
1867   else
1868     CYGPATH_W=echo
1869   fi
1870 fi
1871
1872
1873 # Define the identity of the package.
1874  PACKAGE='libstdc++'
1875  VERSION='version-unused'
1876
1877
1878 # Some tools Automake needs.
1879
1880 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1881
1882
1883 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1884
1885
1886 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1887
1888
1889 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1890
1891
1892 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1893
1894
1895 AMTAR=${AMTAR-"${am_missing_run}tar"}
1896
1897 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1898
1899 # Installed binaries are usually stripped using `strip' when the user
1900 # run `make install-strip'.  However `strip' might not be the right
1901 # tool to use in cross-compilation environments, therefore Automake
1902 # will honor the `STRIP' environment variable to overrule this program.
1903 if test "$cross_compiling" != no; then
1904   if test -n "$ac_tool_prefix"; then
1905   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1906 set dummy ${ac_tool_prefix}strip; ac_word=$2
1907 echo "$as_me:$LINENO: checking for $ac_word" >&5
1908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909 if test "${ac_cv_prog_STRIP+set}" = set; then
1910   echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912   if test -n "$STRIP"; then
1913   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1914 else
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918   IFS=$as_save_IFS
1919   test -z "$as_dir" && as_dir=.
1920   for ac_exec_ext in '' $ac_executable_extensions; do
1921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924     break 2
1925   fi
1926 done
1927 done
1928
1929 fi
1930 fi
1931 STRIP=$ac_cv_prog_STRIP
1932 if test -n "$STRIP"; then
1933   echo "$as_me:$LINENO: result: $STRIP" >&5
1934 echo "${ECHO_T}$STRIP" >&6
1935 else
1936   echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938 fi
1939
1940 fi
1941 if test -z "$ac_cv_prog_STRIP"; then
1942   ac_ct_STRIP=$STRIP
1943   # Extract the first word of "strip", so it can be a program name with args.
1944 set dummy strip; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1948   echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950   if test -n "$ac_ct_STRIP"; then
1951   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956   IFS=$as_save_IFS
1957   test -z "$as_dir" && as_dir=.
1958   for ac_exec_ext in '' $ac_executable_extensions; do
1959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960     ac_cv_prog_ac_ct_STRIP="strip"
1961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962     break 2
1963   fi
1964 done
1965 done
1966
1967   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1968 fi
1969 fi
1970 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1971 if test -n "$ac_ct_STRIP"; then
1972   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1973 echo "${ECHO_T}$ac_ct_STRIP" >&6
1974 else
1975   echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1977 fi
1978
1979   STRIP=$ac_ct_STRIP
1980 else
1981   STRIP="$ac_cv_prog_STRIP"
1982 fi
1983
1984 fi
1985 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1986
1987 # We need awk for the "check" target.  The system "awk" is bad on
1988 # some platforms.
1989
1990
1991
1992
1993 # Runs configure.host, finds CC, CXX, and assorted other critical bits.  Sets
1994 # up critical shell variables.
1995
1996   # Keep these sync'd with the list in Makefile.am.  The first provides an
1997   # expandable list at autoconf time; the second provides an expandable list
1998   # (i.e., shell variable) at configure time.
1999
2000   SUBDIRS='include libmath libsupc++ src po testsuite'
2001
2002   # These need to be absolute paths, yet at the same time need to
2003   # canonicalize only relative paths, because then amd will not unmount
2004   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2005   glibcxx_builddir=`${PWDCMD-pwd}`
2006   case $srcdir in
2007     \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
2008     *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2009   esac
2010   toplevel_srcdir=${glibcxx_srcdir}/..
2011
2012
2013
2014
2015   # We use these options to decide which functions to include.  They are
2016   # set from the top level.
2017
2018 # Check whether --with-target-subdir or --without-target-subdir was given.
2019 if test "${with_target_subdir+set}" = set; then
2020   withval="$with_target_subdir"
2021
2022 fi;
2023
2024
2025 # Check whether --with-cross-host or --without-cross-host was given.
2026 if test "${with_cross_host+set}" = set; then
2027   withval="$with_cross_host"
2028
2029 fi;
2030
2031
2032 # Check whether --with-newlib or --without-newlib was given.
2033 if test "${with_newlib+set}" = set; then
2034   withval="$with_newlib"
2035
2036 fi;
2037
2038   # We're almost certainly being configured before anything else which uses
2039   # C++, so all of our AC_PROG_* discoveries will be cached.  It's vital that
2040   # we not cache the value of CXX that we "discover" here, because it's set
2041   # to something unique for us and libjava.  Other target libraries need to
2042   # find CXX for themselves.  We yank the rug out from under the normal AC_*
2043   # process by sneakily renaming the cache variable.  This also lets us debug
2044   # the value of "our" CXX in postmortems.
2045   #
2046   # We must also force CXX to /not/ be a precious variable, otherwise the
2047   # wrong (non-multilib-adjusted) value will be used in multilibs.  This
2048   # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS.  And as a side
2049   # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2050   # that ourselves.  Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2051   #
2052   # -fno-builtin must be present here so that a non-conflicting form of
2053   # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2054
2055
2056
2057
2058   save_CXXFLAGS="$CXXFLAGS"
2059   CXXFLAGS="$CXXFLAGS -fno-builtin"
2060   ac_ext=c
2061 ac_cpp='$CPP $CPPFLAGS'
2062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065 if test -n "$ac_tool_prefix"; then
2066   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2067 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   if test -n "$CC"; then
2074   ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081   for ac_exec_ext in '' $ac_executable_extensions; do
2082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085     break 2
2086   fi
2087 done
2088 done
2089
2090 fi
2091 fi
2092 CC=$ac_cv_prog_CC
2093 if test -n "$CC"; then
2094   echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6
2096 else
2097   echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2099 fi
2100
2101 fi
2102 if test -z "$ac_cv_prog_CC"; then
2103   ac_ct_CC=$CC
2104   # Extract the first word of "gcc", so it can be a program name with args.
2105 set dummy gcc; ac_word=$2
2106 echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2109   echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111   if test -n "$ac_ct_CC"; then
2112   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2113 else
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2116 do
2117   IFS=$as_save_IFS
2118   test -z "$as_dir" && as_dir=.
2119   for ac_exec_ext in '' $ac_executable_extensions; do
2120   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2121     ac_cv_prog_ac_ct_CC="gcc"
2122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123     break 2
2124   fi
2125 done
2126 done
2127
2128 fi
2129 fi
2130 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2131 if test -n "$ac_ct_CC"; then
2132   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2133 echo "${ECHO_T}$ac_ct_CC" >&6
2134 else
2135   echo "$as_me:$LINENO: result: no" >&5
2136 echo "${ECHO_T}no" >&6
2137 fi
2138
2139   CC=$ac_ct_CC
2140 else
2141   CC="$ac_cv_prog_CC"
2142 fi
2143
2144 if test -z "$CC"; then
2145   if test -n "$ac_tool_prefix"; then
2146   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}cc; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   if test -n "$CC"; then
2154   ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159   IFS=$as_save_IFS
2160   test -z "$as_dir" && as_dir=.
2161   for ac_exec_ext in '' $ac_executable_extensions; do
2162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163     ac_cv_prog_CC="${ac_tool_prefix}cc"
2164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165     break 2
2166   fi
2167 done
2168 done
2169
2170 fi
2171 fi
2172 CC=$ac_cv_prog_CC
2173 if test -n "$CC"; then
2174   echo "$as_me:$LINENO: result: $CC" >&5
2175 echo "${ECHO_T}$CC" >&6
2176 else
2177   echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2179 fi
2180
2181 fi
2182 if test -z "$ac_cv_prog_CC"; then
2183   ac_ct_CC=$CC
2184   # Extract the first word of "cc", so it can be a program name with args.
2185 set dummy cc; ac_word=$2
2186 echo "$as_me:$LINENO: checking for $ac_word" >&5
2187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189   echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191   if test -n "$ac_ct_CC"; then
2192   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193 else
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     ac_cv_prog_ac_ct_CC="cc"
2202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203     break 2
2204   fi
2205 done
2206 done
2207
2208 fi
2209 fi
2210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211 if test -n "$ac_ct_CC"; then
2212   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213 echo "${ECHO_T}$ac_ct_CC" >&6
2214 else
2215   echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6
2217 fi
2218
2219   CC=$ac_ct_CC
2220 else
2221   CC="$ac_cv_prog_CC"
2222 fi
2223
2224 fi
2225 if test -z "$CC"; then
2226   # Extract the first word of "cc", so it can be a program name with args.
2227 set dummy cc; ac_word=$2
2228 echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   if test -n "$CC"; then
2234   ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236   ac_prog_rejected=no
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240   IFS=$as_save_IFS
2241   test -z "$as_dir" && as_dir=.
2242   for ac_exec_ext in '' $ac_executable_extensions; do
2243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2245        ac_prog_rejected=yes
2246        continue
2247      fi
2248     ac_cv_prog_CC="cc"
2249     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250     break 2
2251   fi
2252 done
2253 done
2254
2255 if test $ac_prog_rejected = yes; then
2256   # We found a bogon in the path, so make sure we never use it.
2257   set dummy $ac_cv_prog_CC
2258   shift
2259   if test $# != 0; then
2260     # We chose a different compiler from the bogus one.
2261     # However, it has the same basename, so the bogon will be chosen
2262     # first if we set CC to just the basename; use the full file name.
2263     shift
2264     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2265   fi
2266 fi
2267 fi
2268 fi
2269 CC=$ac_cv_prog_CC
2270 if test -n "$CC"; then
2271   echo "$as_me:$LINENO: result: $CC" >&5
2272 echo "${ECHO_T}$CC" >&6
2273 else
2274   echo "$as_me:$LINENO: result: no" >&5
2275 echo "${ECHO_T}no" >&6
2276 fi
2277
2278 fi
2279 if test -z "$CC"; then
2280   if test -n "$ac_tool_prefix"; then
2281   for ac_prog in cl
2282   do
2283     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2284 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   if test -n "$CC"; then
2291   ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296   IFS=$as_save_IFS
2297   test -z "$as_dir" && as_dir=.
2298   for ac_exec_ext in '' $ac_executable_extensions; do
2299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302     break 2
2303   fi
2304 done
2305 done
2306
2307 fi
2308 fi
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311   echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314   echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2316 fi
2317
2318     test -n "$CC" && break
2319   done
2320 fi
2321 if test -z "$CC"; then
2322   ac_ct_CC=$CC
2323   for ac_prog in cl
2324 do
2325   # Extract the first word of "$ac_prog", so it can be a program name with args.
2326 set dummy $ac_prog; ac_word=$2
2327 echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   if test -n "$ac_ct_CC"; then
2333   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338   IFS=$as_save_IFS
2339   test -z "$as_dir" && as_dir=.
2340   for ac_exec_ext in '' $ac_executable_extensions; do
2341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342     ac_cv_prog_ac_ct_CC="$ac_prog"
2343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344     break 2
2345   fi
2346 done
2347 done
2348
2349 fi
2350 fi
2351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2352 if test -n "$ac_ct_CC"; then
2353   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2354 echo "${ECHO_T}$ac_ct_CC" >&6
2355 else
2356   echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6
2358 fi
2359
2360   test -n "$ac_ct_CC" && break
2361 done
2362
2363   CC=$ac_ct_CC
2364 fi
2365
2366 fi
2367
2368
2369 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2370 See \`config.log' for more details." >&5
2371 echo "$as_me: error: no acceptable C compiler found in \$PATH
2372 See \`config.log' for more details." >&2;}
2373    { (exit 1); exit 1; }; }
2374
2375 # Provide some information about the compiler.
2376 echo "$as_me:$LINENO:" \
2377      "checking for C compiler version" >&5
2378 ac_compiler=`set X $ac_compile; echo $2`
2379 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2380   (eval $ac_compiler --version </dev/null >&5) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); }
2384 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2385   (eval $ac_compiler -v </dev/null >&5) 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }
2389 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2390   (eval $ac_compiler -V </dev/null >&5) 2>&5
2391   ac_status=$?
2392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393   (exit $ac_status); }
2394
2395 cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h.  */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h.  */
2401
2402 int
2403 main ()
2404 {
2405
2406   ;
2407   return 0;
2408 }
2409 _ACEOF
2410 # FIXME: Cleanup?
2411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2412   (eval $ac_link) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; then
2416   gcc_no_link=no
2417 else
2418   gcc_no_link=yes
2419 fi
2420
2421 if test x$gcc_no_link = xyes; then
2422   # Setting cross_compile will disable run tests; it will
2423   # also disable AC_CHECK_FILE but that's generally
2424   # correct if we can't link.
2425   cross_compiling=yes
2426   EXEEXT=
2427 else
2428   cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h.  */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h.  */
2434
2435 int
2436 main ()
2437 {
2438
2439   ;
2440   return 0;
2441 }
2442 _ACEOF
2443 ac_clean_files_save=$ac_clean_files
2444 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2445 # Try to create an executable without -o first, disregard a.out.
2446 # It will help us diagnose broken compilers, and finding out an intuition
2447 # of exeext.
2448 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2449 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2450 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2451 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2452   (eval $ac_link_default) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; then
2456   # Find the output, starting from the most likely.  This scheme is
2457 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2458 # resort.
2459
2460 # Be careful to initialize this variable, since it used to be cached.
2461 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2462 ac_cv_exeext=
2463 # b.out is created by i960 compilers.
2464 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2465 do
2466   test -f "$ac_file" || continue
2467   case $ac_file in
2468     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2469         ;;
2470     conftest.$ac_ext )
2471         # This is the source file.
2472         ;;
2473     [ab].out )
2474         # We found the default executable, but exeext='' is most
2475         # certainly right.
2476         break;;
2477     *.* )
2478         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479         # FIXME: I believe we export ac_cv_exeext for Libtool,
2480         # but it would be cool to find out if it's true.  Does anybody
2481         # maintain Libtool? --akim.
2482         export ac_cv_exeext
2483         break;;
2484     * )
2485         break;;
2486   esac
2487 done
2488 else
2489   echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: C compiler cannot create executables
2495 See \`config.log' for more details." >&2;}
2496    { (exit 77); exit 77; }; }
2497 fi
2498
2499 ac_exeext=$ac_cv_exeext
2500 echo "$as_me:$LINENO: result: $ac_file" >&5
2501 echo "${ECHO_T}$ac_file" >&6
2502
2503 # Check the compiler produces executables we can run.  If not, either
2504 # the compiler is broken, or we cross compile.
2505 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2506 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2507 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2508 # If not cross compiling, check that we can run a simple program.
2509 if test "$cross_compiling" != yes; then
2510   if { ac_try='./$ac_file'
2511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512   (eval $ac_try) 2>&5
2513   ac_status=$?
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); }; }; then
2516     cross_compiling=no
2517   else
2518     if test "$cross_compiling" = maybe; then
2519         cross_compiling=yes
2520     else
2521         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2522 If you meant to cross compile, use \`--host'.
2523 See \`config.log' for more details." >&5
2524 echo "$as_me: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&2;}
2527    { (exit 1); exit 1; }; }
2528     fi
2529   fi
2530 fi
2531 echo "$as_me:$LINENO: result: yes" >&5
2532 echo "${ECHO_T}yes" >&6
2533
2534 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2535 ac_clean_files=$ac_clean_files_save
2536 # Check the compiler produces executables we can run.  If not, either
2537 # the compiler is broken, or we cross compile.
2538 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2539 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2540 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2541 echo "${ECHO_T}$cross_compiling" >&6
2542
2543 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2544 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546   (eval $ac_link) 2>&5
2547   ac_status=$?
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); }; then
2550   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2551 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2552 # work properly (i.e., refer to `conftest.exe'), while it won't with
2553 # `rm'.
2554 for ac_file in conftest.exe conftest conftest.*; do
2555   test -f "$ac_file" || continue
2556   case $ac_file in
2557     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2558     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2559           export ac_cv_exeext
2560           break;;
2561     * ) break;;
2562   esac
2563 done
2564 else
2565   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2566 See \`config.log' for more details." >&5
2567 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2568 See \`config.log' for more details." >&2;}
2569    { (exit 1); exit 1; }; }
2570 fi
2571
2572 rm -f conftest$ac_cv_exeext
2573 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2574 echo "${ECHO_T}$ac_cv_exeext" >&6
2575
2576 rm -f conftest.$ac_ext
2577 EXEEXT=$ac_cv_exeext
2578 ac_exeext=$EXEEXT
2579 fi
2580 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2581 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2582 if test "${ac_cv_objext+set}" = set; then
2583   echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585   cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h.  */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h.  */
2591
2592 int
2593 main ()
2594 {
2595
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.o conftest.obj
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602   (eval $ac_compile) 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; then
2606   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2607   case $ac_file in
2608     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2609     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2610        break;;
2611   esac
2612 done
2613 else
2614   echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2616
2617 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2618 See \`config.log' for more details." >&5
2619 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2620 See \`config.log' for more details." >&2;}
2621    { (exit 1); exit 1; }; }
2622 fi
2623
2624 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2625 fi
2626 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2627 echo "${ECHO_T}$ac_cv_objext" >&6
2628 OBJEXT=$ac_cv_objext
2629 ac_objext=$OBJEXT
2630 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2631 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2632 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2633   echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635   cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641
2642 int
2643 main ()
2644 {
2645 #ifndef __GNUC__
2646        choke me
2647 #endif
2648
2649   ;
2650   return 0;
2651 }
2652 _ACEOF
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655   (eval $ac_compile) 2>conftest.er1
2656   ac_status=$?
2657   grep -v '^ *+' conftest.er1 >conftest.err
2658   rm -f conftest.er1
2659   cat conftest.err >&5
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); } &&
2662          { ac_try='test -z "$ac_c_werror_flag"
2663                          || test ! -s conftest.err'
2664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665   (eval $ac_try) 2>&5
2666   ac_status=$?
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); }; } &&
2669          { ac_try='test -s conftest.$ac_objext'
2670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671   (eval $ac_try) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; }; then
2675   ac_compiler_gnu=yes
2676 else
2677   echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2679
2680 ac_compiler_gnu=no
2681 fi
2682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2684
2685 fi
2686 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2687 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2688 GCC=`test $ac_compiler_gnu = yes && echo yes`
2689 ac_test_CFLAGS=${CFLAGS+set}
2690 ac_save_CFLAGS=$CFLAGS
2691 CFLAGS="-g"
2692 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2693 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2694 if test "${ac_cv_prog_cc_g+set}" = set; then
2695   echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697   cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h.  */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h.  */
2703
2704 int
2705 main ()
2706 {
2707
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714   (eval $ac_compile) 2>conftest.er1
2715   ac_status=$?
2716   grep -v '^ *+' conftest.er1 >conftest.err
2717   rm -f conftest.er1
2718   cat conftest.err >&5
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); } &&
2721          { ac_try='test -z "$ac_c_werror_flag"
2722                          || test ! -s conftest.err'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; }; then
2734   ac_cv_prog_cc_g=yes
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739 ac_cv_prog_cc_g=no
2740 fi
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742 fi
2743 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2744 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2745 if test "$ac_test_CFLAGS" = set; then
2746   CFLAGS=$ac_save_CFLAGS
2747 elif test $ac_cv_prog_cc_g = yes; then
2748   if test "$GCC" = yes; then
2749     CFLAGS="-g -O2"
2750   else
2751     CFLAGS="-g"
2752   fi
2753 else
2754   if test "$GCC" = yes; then
2755     CFLAGS="-O2"
2756   else
2757     CFLAGS=
2758   fi
2759 fi
2760 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2761 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2762 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2763   echo $ECHO_N "(cached) $ECHO_C" >&6
2764 else
2765   ac_cv_prog_cc_stdc=no
2766 ac_save_CC=$CC
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h.  */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h.  */
2773 #include <stdarg.h>
2774 #include <stdio.h>
2775 #include <sys/types.h>
2776 #include <sys/stat.h>
2777 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2778 struct buf { int x; };
2779 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2780 static char *e (p, i)
2781      char **p;
2782      int i;
2783 {
2784   return p[i];
2785 }
2786 static char *f (char * (*g) (char **, int), char **p, ...)
2787 {
2788   char *s;
2789   va_list v;
2790   va_start (v,p);
2791   s = g (p, va_arg (v,int));
2792   va_end (v);
2793   return s;
2794 }
2795
2796 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2797    function prototypes and stuff, but not '\xHH' hex character constants.
2798    These don't provoke an error unfortunately, instead are silently treated
2799    as 'x'.  The following induces an error, until -std1 is added to get
2800    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2801    array size at least.  It's necessary to write '\x00'==0 to get something
2802    that's true only with -std1.  */
2803 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2804
2805 int test (int i, double x);
2806 struct s1 {int (*f) (int a);};
2807 struct s2 {int (*f) (double a);};
2808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2809 int argc;
2810 char **argv;
2811 int
2812 main ()
2813 {
2814 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2815   ;
2816   return 0;
2817 }
2818 _ACEOF
2819 # Don't try gcc -ansi; that turns off useful extensions and
2820 # breaks some systems' header files.
2821 # AIX                   -qlanglvl=ansi
2822 # Ultrix and OSF/1      -std1
2823 # HP-UX 10.20 and later -Ae
2824 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2825 # SVR4                  -Xc -D__EXTENSIONS__
2826 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2827 do
2828   CC="$ac_save_CC $ac_arg"
2829   rm -f conftest.$ac_objext
2830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2831   (eval $ac_compile) 2>conftest.er1
2832   ac_status=$?
2833   grep -v '^ *+' conftest.er1 >conftest.err
2834   rm -f conftest.er1
2835   cat conftest.err >&5
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); } &&
2838          { ac_try='test -z "$ac_c_werror_flag"
2839                          || test ! -s conftest.err'
2840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841   (eval $ac_try) 2>&5
2842   ac_status=$?
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); }; } &&
2845          { ac_try='test -s conftest.$ac_objext'
2846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; }; then
2851   ac_cv_prog_cc_stdc=$ac_arg
2852 break
2853 else
2854   echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2856
2857 fi
2858 rm -f conftest.err conftest.$ac_objext
2859 done
2860 rm -f conftest.$ac_ext conftest.$ac_objext
2861 CC=$ac_save_CC
2862
2863 fi
2864
2865 case "x$ac_cv_prog_cc_stdc" in
2866   x|xno)
2867     echo "$as_me:$LINENO: result: none needed" >&5
2868 echo "${ECHO_T}none needed" >&6 ;;
2869   *)
2870     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2871 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2872     CC="$CC $ac_cv_prog_cc_stdc" ;;
2873 esac
2874
2875 # Some people use a C++ compiler to compile C.  Since we use `exit',
2876 # in C++ we need to declare it.  In case someone uses the same compiler
2877 # for both compiling C and C++ we need to have the C++ compiler decide
2878 # the declaration of exit, since it's the most demanding environment.
2879 cat >conftest.$ac_ext <<_ACEOF
2880 #ifndef __cplusplus
2881   choke me
2882 #endif
2883 _ACEOF
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886   (eval $ac_compile) 2>conftest.er1
2887   ac_status=$?
2888   grep -v '^ *+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } &&
2893          { ac_try='test -z "$ac_c_werror_flag"
2894                          || test ! -s conftest.err'
2895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896   (eval $ac_try) 2>&5
2897   ac_status=$?
2898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899   (exit $ac_status); }; } &&
2900          { ac_try='test -s conftest.$ac_objext'
2901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902   (eval $ac_try) 2>&5
2903   ac_status=$?
2904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905   (exit $ac_status); }; }; then
2906   for ac_declaration in \
2907    '' \
2908    'extern "C" void std::exit (int) throw (); using std::exit;' \
2909    'extern "C" void std::exit (int); using std::exit;' \
2910    'extern "C" void exit (int) throw ();' \
2911    'extern "C" void exit (int);' \
2912    'void exit (int);'
2913 do
2914   cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h.  */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h.  */
2920 $ac_declaration
2921 #include <stdlib.h>
2922 int
2923 main ()
2924 {
2925 exit (42);
2926   ;
2927   return 0;
2928 }
2929 _ACEOF
2930 rm -f conftest.$ac_objext
2931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2932   (eval $ac_compile) 2>conftest.er1
2933   ac_status=$?
2934   grep -v '^ *+' conftest.er1 >conftest.err
2935   rm -f conftest.er1
2936   cat conftest.err >&5
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); } &&
2939          { ac_try='test -z "$ac_c_werror_flag"
2940                          || test ! -s conftest.err'
2941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942   (eval $ac_try) 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; } &&
2946          { ac_try='test -s conftest.$ac_objext'
2947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948   (eval $ac_try) 2>&5
2949   ac_status=$?
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); }; }; then
2952   :
2953 else
2954   echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2956
2957 continue
2958 fi
2959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2960   cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966 $ac_declaration
2967 int
2968 main ()
2969 {
2970 exit (42);
2971   ;
2972   return 0;
2973 }
2974 _ACEOF
2975 rm -f conftest.$ac_objext
2976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977   (eval $ac_compile) 2>conftest.er1
2978   ac_status=$?
2979   grep -v '^ *+' conftest.er1 >conftest.err
2980   rm -f conftest.er1
2981   cat conftest.err >&5
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); } &&
2984          { ac_try='test -z "$ac_c_werror_flag"
2985                          || test ! -s conftest.err'
2986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2987   (eval $ac_try) 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }; } &&
2991          { ac_try='test -s conftest.$ac_objext'
2992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993   (eval $ac_try) 2>&5
2994   ac_status=$?
2995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996   (exit $ac_status); }; }; then
2997   break
2998 else
2999   echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3001
3002 fi
3003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3004 done
3005 rm -f conftest*
3006 if test -n "$ac_declaration"; then
3007   echo '#ifdef __cplusplus' >>confdefs.h
3008   echo $ac_declaration      >>confdefs.h
3009   echo '#endif'             >>confdefs.h
3010 fi
3011
3012 else
3013   echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3015
3016 fi
3017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3018 ac_ext=c
3019 ac_cpp='$CPP $CPPFLAGS'
3020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023
3024   ac_ext=cc
3025 ac_cpp='$CXXCPP $CPPFLAGS'
3026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3029 if test -n "$ac_tool_prefix"; then
3030   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3031   do
3032     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036 if test "${glibcxx_cv_prog_CXX+set}" = set; then
3037   echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039   if test -n "$CXX"; then
3040   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045   IFS=$as_save_IFS
3046   test -z "$as_dir" && as_dir=.
3047   for ac_exec_ext in '' $ac_executable_extensions; do
3048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051     break 2
3052   fi
3053 done
3054 done
3055
3056 fi
3057 fi
3058 CXX=$glibcxx_cv_prog_CXX
3059 if test -n "$CXX"; then
3060   echo "$as_me:$LINENO: result: $CXX" >&5
3061 echo "${ECHO_T}$CXX" >&6
3062 else
3063   echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6
3065 fi
3066
3067     test -n "$CXX" && break
3068   done
3069 fi
3070 if test -z "$CXX"; then
3071   ac_ct_CXX=$CXX
3072   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3073 do
3074   # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3078 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081   if test -n "$ac_ct_CXX"; then
3082   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089   for ac_exec_ext in '' $ac_executable_extensions; do
3090   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091     ac_cv_prog_ac_ct_CXX="$ac_prog"
3092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093     break 2
3094   fi
3095 done
3096 done
3097
3098 fi
3099 fi
3100 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3101 if test -n "$ac_ct_CXX"; then
3102   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3103 echo "${ECHO_T}$ac_ct_CXX" >&6
3104 else
3105   echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3107 fi
3108
3109   test -n "$ac_ct_CXX" && break
3110 done
3111 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3112
3113   CXX=$ac_ct_CXX
3114 fi
3115
3116
3117 # Provide some information about the compiler.
3118 echo "$as_me:$LINENO:" \
3119      "checking for C++ compiler version" >&5
3120 ac_compiler=`set X $ac_compile; echo $2`
3121 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3122   (eval $ac_compiler --version </dev/null >&5) 2>&5
3123   ac_status=$?
3124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125   (exit $ac_status); }
3126 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3127   (eval $ac_compiler -v </dev/null >&5) 2>&5
3128   ac_status=$?
3129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130   (exit $ac_status); }
3131 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3132   (eval $ac_compiler -V </dev/null >&5) 2>&5
3133   ac_status=$?
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); }
3136
3137 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3138 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3139 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142   cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148
3149 int
3150 main ()
3151 {
3152 #ifndef __GNUC__
3153        choke me
3154 #endif
3155
3156   ;
3157   return 0;
3158 }
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3162   (eval $ac_compile) 2>conftest.er1
3163   ac_status=$?
3164   grep -v '^ *+' conftest.er1 >conftest.err
3165   rm -f conftest.er1
3166   cat conftest.err >&5
3167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168   (exit $ac_status); } &&
3169          { ac_try='test -z "$ac_cxx_werror_flag"
3170                          || test ! -s conftest.err'
3171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172   (eval $ac_try) 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); }; } &&
3176          { ac_try='test -s conftest.$ac_objext'
3177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178   (eval $ac_try) 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }; }; then
3182   ac_compiler_gnu=yes
3183 else
3184   echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3186
3187 ac_compiler_gnu=no
3188 fi
3189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3190 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3191
3192 fi
3193 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3194 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3195 GXX=`test $ac_compiler_gnu = yes && echo yes`
3196 ac_test_CXXFLAGS=${CXXFLAGS+set}
3197 ac_save_CXXFLAGS=$CXXFLAGS
3198 CXXFLAGS="-g"
3199 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3200 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3201 if test "${ac_cv_prog_cxx_g+set}" = set; then
3202   echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204   cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h.  */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h.  */
3210
3211 int
3212 main ()
3213 {
3214
3215   ;
3216   return 0;
3217 }
3218 _ACEOF
3219 rm -f conftest.$ac_objext
3220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221   (eval $ac_compile) 2>conftest.er1
3222   ac_status=$?
3223   grep -v '^ *+' conftest.er1 >conftest.err
3224   rm -f conftest.er1
3225   cat conftest.err >&5
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } &&
3228          { ac_try='test -z "$ac_cxx_werror_flag"
3229                          || test ! -s conftest.err'
3230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231   (eval $ac_try) 2>&5
3232   ac_status=$?
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); }; } &&
3235          { ac_try='test -s conftest.$ac_objext'
3236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237   (eval $ac_try) 2>&5
3238   ac_status=$?
3239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240   (exit $ac_status); }; }; then
3241   ac_cv_prog_cxx_g=yes
3242 else
3243   echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 ac_cv_prog_cxx_g=no
3247 fi
3248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3249 fi
3250 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3251 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3252 if test "$ac_test_CXXFLAGS" = set; then
3253   CXXFLAGS=$ac_save_CXXFLAGS
3254 elif test $ac_cv_prog_cxx_g = yes; then
3255   if test "$GXX" = yes; then
3256     CXXFLAGS="-g -O2"
3257   else
3258     CXXFLAGS="-g"
3259   fi
3260 else
3261   if test "$GXX" = yes; then
3262     CXXFLAGS="-O2"
3263   else
3264     CXXFLAGS=
3265   fi
3266 fi
3267 for ac_declaration in \
3268    '' \
3269    'extern "C" void std::exit (int) throw (); using std::exit;' \
3270    'extern "C" void std::exit (int); using std::exit;' \
3271    'extern "C" void exit (int) throw ();' \
3272    'extern "C" void exit (int);' \
3273    'void exit (int);'
3274 do
3275   cat >conftest.$ac_ext <<_ACEOF
3276 /* confdefs.h.  */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h.  */
3281 $ac_declaration
3282 #include <stdlib.h>
3283 int
3284 main ()
3285 {
3286 exit (42);
3287   ;
3288   return 0;
3289 }
3290 _ACEOF
3291 rm -f conftest.$ac_objext
3292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3293   (eval $ac_compile) 2>conftest.er1
3294   ac_status=$?
3295   grep -v '^ *+' conftest.er1 >conftest.err
3296   rm -f conftest.er1
3297   cat conftest.err >&5
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } &&
3300          { ac_try='test -z "$ac_cxx_werror_flag"
3301                          || test ! -s conftest.err'
3302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303   (eval $ac_try) 2>&5
3304   ac_status=$?
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); }; } &&
3307          { ac_try='test -s conftest.$ac_objext'
3308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309   (eval $ac_try) 2>&5
3310   ac_status=$?
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); }; }; then
3313   :
3314 else
3315   echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318 continue
3319 fi
3320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3321   cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h.  */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h.  */
3327 $ac_declaration
3328 int
3329 main ()
3330 {
3331 exit (42);
3332   ;
3333   return 0;
3334 }
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3338   (eval $ac_compile) 2>conftest.er1
3339   ac_status=$?
3340   grep -v '^ *+' conftest.er1 >conftest.err
3341   rm -f conftest.er1
3342   cat conftest.err >&5
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); } &&
3345          { ac_try='test -z "$ac_cxx_werror_flag"
3346                          || test ! -s conftest.err'
3347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348   (eval $ac_try) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; } &&
3352          { ac_try='test -s conftest.$ac_objext'
3353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3354   (eval $ac_try) 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }; }; then
3358   break
3359 else
3360   echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363 fi
3364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3365 done
3366 rm -f conftest*
3367 if test -n "$ac_declaration"; then
3368   echo '#ifdef __cplusplus' >>confdefs.h
3369   echo $ac_declaration      >>confdefs.h
3370   echo '#endif'             >>confdefs.h
3371 fi
3372
3373 ac_ext=c
3374 ac_cpp='$CPP $CPPFLAGS'
3375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3378
3379   CXXFLAGS="$save_CXXFLAGS"
3380
3381
3382
3383
3384   # For directory versioning (e.g., headers) and other variables.
3385   echo "$as_me:$LINENO: checking for GCC version number" >&5
3386 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3387   gcc_version=`$CXX -dumpversion`
3388   echo "$as_me:$LINENO: result: $gcc_version" >&5
3389 echo "${ECHO_T}$gcc_version" >&6
3390
3391   # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3392   # available).  Uncomment the next line to force a particular method.
3393   echo "$as_me:$LINENO: checking whether ln -s works" >&5
3394 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3395 LN_S=$as_ln_s
3396 if test "$LN_S" = "ln -s"; then
3397   echo "$as_me:$LINENO: result: yes" >&5
3398 echo "${ECHO_T}yes" >&6
3399 else
3400   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3401 echo "${ECHO_T}no, using $LN_S" >&6
3402 fi
3403
3404   #LN_S='cp -p'
3405
3406   if test -n "$ac_tool_prefix"; then
3407   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3408 set dummy ${ac_tool_prefix}as; ac_word=$2
3409 echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411 if test "${ac_cv_prog_AS+set}" = set; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414   if test -n "$AS"; then
3415   ac_cv_prog_AS="$AS" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420   IFS=$as_save_IFS
3421   test -z "$as_dir" && as_dir=.
3422   for ac_exec_ext in '' $ac_executable_extensions; do
3423   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424     ac_cv_prog_AS="${ac_tool_prefix}as"
3425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426     break 2
3427   fi
3428 done
3429 done
3430
3431 fi
3432 fi
3433 AS=$ac_cv_prog_AS
3434 if test -n "$AS"; then
3435   echo "$as_me:$LINENO: result: $AS" >&5
3436 echo "${ECHO_T}$AS" >&6
3437 else
3438   echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3440 fi
3441
3442 fi
3443 if test -z "$ac_cv_prog_AS"; then
3444   ac_ct_AS=$AS
3445   # Extract the first word of "as", so it can be a program name with args.
3446 set dummy as; ac_word=$2
3447 echo "$as_me:$LINENO: checking for $ac_word" >&5
3448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3449 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   if test -n "$ac_ct_AS"; then
3453   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3454 else
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460   for ac_exec_ext in '' $ac_executable_extensions; do
3461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462     ac_cv_prog_ac_ct_AS="as"
3463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464     break 2
3465   fi
3466 done
3467 done
3468
3469 fi
3470 fi
3471 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3472 if test -n "$ac_ct_AS"; then
3473   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3474 echo "${ECHO_T}$ac_ct_AS" >&6
3475 else
3476   echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3478 fi
3479
3480   AS=$ac_ct_AS
3481 else
3482   AS="$ac_cv_prog_AS"
3483 fi
3484
3485   if test -n "$ac_tool_prefix"; then
3486   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3487 set dummy ${ac_tool_prefix}ar; ac_word=$2
3488 echo "$as_me:$LINENO: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_prog_AR+set}" = set; then
3491   echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493   if test -n "$AR"; then
3494   ac_cv_prog_AR="$AR" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3498 do
3499   IFS=$as_save_IFS
3500   test -z "$as_dir" && as_dir=.
3501   for ac_exec_ext in '' $ac_executable_extensions; do
3502   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503     ac_cv_prog_AR="${ac_tool_prefix}ar"
3504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3505     break 2
3506   fi
3507 done
3508 done
3509
3510 fi
3511 fi
3512 AR=$ac_cv_prog_AR
3513 if test -n "$AR"; then
3514   echo "$as_me:$LINENO: result: $AR" >&5
3515 echo "${ECHO_T}$AR" >&6
3516 else
3517   echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3519 fi
3520
3521 fi
3522 if test -z "$ac_cv_prog_AR"; then
3523   ac_ct_AR=$AR
3524   # Extract the first word of "ar", so it can be a program name with args.
3525 set dummy ar; ac_word=$2
3526 echo "$as_me:$LINENO: checking for $ac_word" >&5
3527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3529   echo $ECHO_N "(cached) $ECHO_C" >&6
3530 else
3531   if test -n "$ac_ct_AR"; then
3532   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3533 else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH
3536 do
3537   IFS=$as_save_IFS
3538   test -z "$as_dir" && as_dir=.
3539   for ac_exec_ext in '' $ac_executable_extensions; do
3540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541     ac_cv_prog_ac_ct_AR="ar"
3542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543     break 2
3544   fi
3545 done
3546 done
3547
3548 fi
3549 fi
3550 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3551 if test -n "$ac_ct_AR"; then
3552   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3553 echo "${ECHO_T}$ac_ct_AR" >&6
3554 else
3555   echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6
3557 fi
3558
3559   AR=$ac_ct_AR
3560 else
3561   AR="$ac_cv_prog_AR"
3562 fi
3563
3564   if test -n "$ac_tool_prefix"; then
3565   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3566 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3567 echo "$as_me:$LINENO: checking for $ac_word" >&5
3568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3569 if test "${ac_cv_prog_RANLIB+set}" = set; then
3570   echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572   if test -n "$RANLIB"; then
3573   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578   IFS=$as_save_IFS
3579   test -z "$as_dir" && as_dir=.
3580   for ac_exec_ext in '' $ac_executable_extensions; do
3581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3584     break 2
3585   fi
3586 done
3587 done
3588
3589 fi
3590 fi
3591 RANLIB=$ac_cv_prog_RANLIB
3592 if test -n "$RANLIB"; then
3593   echo "$as_me:$LINENO: result: $RANLIB" >&5
3594 echo "${ECHO_T}$RANLIB" >&6
3595 else
3596   echo "$as_me:$LINENO: result: no" >&5
3597 echo "${ECHO_T}no" >&6
3598 fi
3599
3600 fi
3601 if test -z "$ac_cv_prog_RANLIB"; then
3602   ac_ct_RANLIB=$RANLIB
3603   # Extract the first word of "ranlib", so it can be a program name with args.
3604 set dummy ranlib; ac_word=$2
3605 echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   if test -n "$ac_ct_RANLIB"; then
3611   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616   IFS=$as_save_IFS
3617   test -z "$as_dir" && as_dir=.
3618   for ac_exec_ext in '' $ac_executable_extensions; do
3619   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620     ac_cv_prog_ac_ct_RANLIB="ranlib"
3621     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3622     break 2
3623   fi
3624 done
3625 done
3626
3627   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3628 fi
3629 fi
3630 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3631 if test -n "$ac_ct_RANLIB"; then
3632   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3633 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3634 else
3635   echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3637 fi
3638
3639   RANLIB=$ac_ct_RANLIB
3640 else
3641   RANLIB="$ac_cv_prog_RANLIB"
3642 fi
3643
3644
3645   echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3646 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3647     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3648 if test "${enable_maintainer_mode+set}" = set; then
3649   enableval="$enable_maintainer_mode"
3650   USE_MAINTAINER_MODE=$enableval
3651 else
3652   USE_MAINTAINER_MODE=no
3653 fi;
3654   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3655 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3656
3657
3658 if test $USE_MAINTAINER_MODE = yes; then
3659   MAINTAINER_MODE_TRUE=
3660   MAINTAINER_MODE_FALSE='#'
3661 else
3662   MAINTAINER_MODE_TRUE='#'
3663   MAINTAINER_MODE_FALSE=
3664 fi
3665
3666   MAINT=$MAINTAINER_MODE_TRUE
3667
3668
3669
3670   # Set up safe default values for all subsequent AM_CONDITIONAL tests
3671   # which are themselves conditionally expanded.
3672   ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3673   ## other macros from doing the same.  This should be automated.)  -pme
3674   need_libmath=no
3675   enable_wchar_t=no
3676   #enable_libstdcxx_debug=no
3677   #enable_libstdcxx_pch=no
3678   #enable_cheaders=c
3679   #c_compatibility=no
3680   #enable_abi_check=no
3681   #enable_symvers=no
3682   #enable_hosted_libstdcxx=yes
3683
3684   # Find platform-specific directories containing configuration info.
3685   # Also possibly modify flags used elsewhere, as needed by the platform.
3686
3687   . $glibcxx_srcdir/configure.host
3688   { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3689 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3690   { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3691 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3692
3693
3694
3695 #AC_MSG_NOTICE([====== Starting libtool configuration])
3696
3697 # Check whether --enable-shared or --disable-shared was given.
3698 if test "${enable_shared+set}" = set; then
3699   enableval="$enable_shared"
3700   p=${PACKAGE-default}
3701 case $enableval in
3702 yes) enable_shared=yes ;;
3703 no) enable_shared=no ;;
3704 *)
3705   enable_shared=no
3706   # Look at the argument we got.  We use all the common list separators.
3707   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3708   for pkg in $enableval; do
3709     if test "X$pkg" = "X$p"; then
3710       enable_shared=yes
3711     fi
3712   done
3713   IFS="$ac_save_ifs"
3714   ;;
3715 esac
3716 else
3717   enable_shared=yes
3718 fi;
3719 # Check whether --enable-static or --disable-static was given.
3720 if test "${enable_static+set}" = set; then
3721   enableval="$enable_static"
3722   p=${PACKAGE-default}
3723 case $enableval in
3724 yes) enable_static=yes ;;
3725 no) enable_static=no ;;
3726 *)
3727   enable_static=no
3728   # Look at the argument we got.  We use all the common list separators.
3729   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3730   for pkg in $enableval; do
3731     if test "X$pkg" = "X$p"; then
3732       enable_static=yes
3733     fi
3734   done
3735   IFS="$ac_save_ifs"
3736   ;;
3737 esac
3738 else
3739   enable_static=yes
3740 fi;
3741 # Check whether --enable-fast-install or --disable-fast-install was given.
3742 if test "${enable_fast_install+set}" = set; then
3743   enableval="$enable_fast_install"
3744   p=${PACKAGE-default}
3745 case $enableval in
3746 yes) enable_fast_install=yes ;;
3747 no) enable_fast_install=no ;;
3748 *)
3749   enable_fast_install=no
3750   # Look at the argument we got.  We use all the common list separators.
3751   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3752   for pkg in $enableval; do
3753     if test "X$pkg" = "X$p"; then
3754       enable_fast_install=yes
3755     fi
3756   done
3757   IFS="$ac_save_ifs"
3758   ;;
3759 esac
3760 else
3761   enable_fast_install=yes
3762 fi;
3763
3764 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3765 if test "${with_gnu_ld+set}" = set; then
3766   withval="$with_gnu_ld"
3767   test "$withval" = no || with_gnu_ld=yes
3768 else
3769   with_gnu_ld=no
3770 fi;
3771 ac_prog=ld
3772 if test "$GCC" = yes; then
3773   # Check if gcc -print-prog-name=ld gives a path.
3774   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3775 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3776   case $host in
3777   *-*-mingw*)
3778     # gcc leaves a trailing carriage return which upsets mingw
3779     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3780   *)
3781     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3782   esac
3783   case $ac_prog in
3784     # Accept absolute paths.
3785     [\\/]* | [A-Za-z]:[\\/]*)
3786       re_direlt='/[^/][^/]*/\.\./'
3787       # Canonicalize the path of ld
3788       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3789       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3790         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3791       done
3792       test -z "$LD" && LD="$ac_prog"
3793       ;;
3794   "")
3795     # If it fails, then pretend we aren't using GCC.
3796     ac_prog=ld
3797     ;;
3798   *)
3799     # If it is relative, then search for the first ld in PATH.
3800     with_gnu_ld=unknown
3801     ;;
3802   esac
3803 elif test "$with_gnu_ld" = yes; then
3804   echo "$as_me:$LINENO: checking for GNU ld" >&5
3805 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3806 else
3807   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3808 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3809 fi
3810 if test "${lt_cv_path_LD+set}" = set; then
3811   echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813   if test -z "$LD"; then
3814   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3815   for ac_dir in $PATH; do
3816     test -z "$ac_dir" && ac_dir=.
3817     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3818       lt_cv_path_LD="$ac_dir/$ac_prog"
3819       # Check to see if the program is GNU ld.  I'd rather use --version,
3820       # but apparently some GNU ld's only accept -v.
3821       # Break only if it was the GNU/non-GNU ld that we prefer.
3822       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3823         test "$with_gnu_ld" != no && break
3824       else
3825         test "$with_gnu_ld" != yes && break
3826       fi
3827     fi
3828   done
3829   IFS="$ac_save_ifs"
3830 else
3831   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3832 fi
3833 fi
3834
3835 LD="$lt_cv_path_LD"
3836 if test -n "$LD"; then
3837   echo "$as_me:$LINENO: result: $LD" >&5
3838 echo "${ECHO_T}$LD" >&6
3839 else
3840   echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3842 fi
3843 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3844 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3845    { (exit 1); exit 1; }; }
3846 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3847 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3848 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3852 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3853   lt_cv_prog_gnu_ld=yes
3854 else
3855   lt_cv_prog_gnu_ld=no
3856 fi
3857 fi
3858 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3859 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3860 with_gnu_ld=$lt_cv_prog_gnu_ld
3861
3862
3863 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3864 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3865 if test "${lt_cv_ld_reload_flag+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   lt_cv_ld_reload_flag='-r'
3869 fi
3870 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3871 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3872 reload_flag=$lt_cv_ld_reload_flag
3873 test -n "$reload_flag" && reload_flag=" $reload_flag"
3874
3875 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3876 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3877 if test "${lt_cv_path_NM+set}" = set; then
3878   echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880   if test -n "$NM"; then
3881   # Let the user override the test.
3882   lt_cv_path_NM="$NM"
3883 else
3884   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3885   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3886     test -z "$ac_dir" && ac_dir=.
3887     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3888     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3889       # Check to see if the nm accepts a BSD-compat flag.
3890       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3891       #   nm: unknown option "B" ignored
3892       # Tru64's nm complains that /dev/null is an invalid object file
3893       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3894         lt_cv_path_NM="$tmp_nm -B"
3895         break
3896       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3897         lt_cv_path_NM="$tmp_nm -p"
3898         break
3899       else
3900         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3901         continue # so that we can try to find one that supports BSD flags
3902       fi
3903     fi
3904   done
3905   IFS="$ac_save_ifs"
3906   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3907 fi
3908 fi
3909
3910 NM="$lt_cv_path_NM"
3911 echo "$as_me:$LINENO: result: $NM" >&5
3912 echo "${ECHO_T}$NM" >&6
3913
3914 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3915 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3916 if test "${lt_cv_deplibs_check_method+set}" = set; then
3917   echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919   lt_cv_file_magic_cmd='$MAGIC_CMD'
3920 lt_cv_file_magic_test_file=
3921 lt_cv_deplibs_check_method='unknown'
3922 # Need to set the preceding variable on all platforms that support
3923 # interlibrary dependencies.
3924 # 'none' -- dependencies not supported.
3925 # `unknown' -- same as none, but documents that we really don't know.
3926 # 'pass_all' -- all dependencies passed with no checks.
3927 # 'test_compile' -- check by making test program.
3928 # 'file_magic [regex]' -- check by looking for files in library path
3929 # which responds to the $file_magic_cmd with a given egrep regex.
3930 # If you have `file' or equivalent on your system and you're not sure
3931 # whether `pass_all' will *always* work, you probably want this one.
3932
3933 case $host_os in
3934 aix*)
3935   lt_cv_deplibs_check_method=pass_all
3936   ;;
3937
3938 beos*)
3939   lt_cv_deplibs_check_method=pass_all
3940   ;;
3941
3942 bsdi4*)
3943   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3944   lt_cv_file_magic_cmd='/usr/bin/file -L'
3945   lt_cv_file_magic_test_file=/shlib/libc.so
3946   ;;
3947
3948 cygwin* | mingw* |pw32*)
3949   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3950   lt_cv_file_magic_cmd='$OBJDUMP -f'
3951   ;;
3952
3953 darwin* | rhapsody*)
3954   # this will be overwritten by pass_all, but leave it in just in case
3955   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3956   lt_cv_file_magic_cmd='/usr/bin/file -L'
3957   case "$host_os" in
3958   rhapsody* | darwin1.012)
3959     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3960     ;;
3961   *) # Darwin 1.3 on
3962     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3963     ;;
3964   esac
3965   lt_cv_deplibs_check_method=pass_all
3966   ;;
3967
3968 freebsd* | kfreebsd*-gnu)
3969   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3970     case $host_cpu in
3971     i*86 )
3972       # Not sure whether the presence of OpenBSD here was a mistake.
3973       # Let's accept both of them until this is cleared up.
3974       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3975       lt_cv_file_magic_cmd=/usr/bin/file
3976       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3977       ;;
3978     esac
3979   else
3980     lt_cv_deplibs_check_method=pass_all
3981   fi
3982   ;;
3983
3984 gnu*)
3985   lt_cv_deplibs_check_method=pass_all
3986   ;;
3987
3988 hpux10.20*|hpux11*)
3989   case $host_cpu in
3990   hppa*)
3991     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3992     lt_cv_file_magic_cmd=/usr/bin/file
3993     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3994     ;;
3995   ia64*)
3996     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3997     lt_cv_file_magic_cmd=/usr/bin/file
3998     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3999     ;;
4000   esac
4001   ;;
4002
4003 irix5* | irix6*)
4004   case $host_os in
4005   irix5*)
4006     # this will be overridden with pass_all, but let us keep it just in case
4007     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4008     ;;
4009   *)
4010     case $LD in
4011     *-32|*"-32 ") libmagic=32-bit;;
4012     *-n32|*"-n32 ") libmagic=N32;;
4013     *-64|*"-64 ") libmagic=64-bit;;
4014     *) libmagic=never-match;;
4015     esac
4016     # this will be overridden with pass_all, but let us keep it just in case
4017     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4018     ;;
4019   esac
4020   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4021   lt_cv_deplibs_check_method=pass_all
4022   ;;
4023
4024 # This must be Linux ELF.
4025 linux-gnu*)
4026   case $host_cpu in
4027   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
4028     lt_cv_deplibs_check_method=pass_all ;;
4029   *)
4030     # glibc up to 2.1.1 does not perform some relocations on ARM
4031     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4032   esac
4033   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4034   ;;
4035
4036 netbsd* | knetbsd*-gnu)
4037   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4038     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4039   else
4040     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4041   fi
4042   ;;
4043
4044 newsos6)
4045   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4046   lt_cv_file_magic_cmd=/usr/bin/file
4047   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4048   ;;
4049
4050 osf3* | osf4* | osf5*)
4051   # this will be overridden with pass_all, but let us keep it just in case
4052   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4053   lt_cv_file_magic_test_file=/shlib/libc.so
4054   lt_cv_deplibs_check_method=pass_all
4055   ;;
4056
4057 sco3.2v5*)
4058   lt_cv_deplibs_check_method=pass_all
4059   ;;
4060
4061 solaris*)
4062   lt_cv_deplibs_check_method=pass_all
4063   lt_cv_file_magic_test_file=/lib/libc.so
4064   ;;
4065
4066 sysv5uw[78]* | sysv4*uw2*)
4067   lt_cv_deplibs_check_method=pass_all
4068   ;;
4069
4070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4071   case $host_vendor in
4072   ncr)
4073     lt_cv_deplibs_check_method=pass_all
4074     ;;
4075   motorola)
4076     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]'
4077     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4078     ;;
4079   esac
4080   ;;
4081 esac
4082
4083 fi
4084 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4085 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4086 file_magic_cmd=$lt_cv_file_magic_cmd
4087 deplibs_check_method=$lt_cv_deplibs_check_method
4088
4089
4090
4091
4092
4093 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4094
4095 # Only perform the check for file, if the check method requires it
4096 case $deplibs_check_method in
4097 file_magic*)
4098   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4099     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4100 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4101 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4102   echo $ECHO_N "(cached) $ECHO_C" >&6
4103 else
4104   case $MAGIC_CMD in
4105   /*)
4106   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4107   ;;
4108   ?:/*)
4109   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4110   ;;
4111   *)
4112   ac_save_MAGIC_CMD="$MAGIC_CMD"
4113   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4114   ac_dummy="/usr/bin:$PATH"
4115   for ac_dir in $ac_dummy; do
4116     test -z "$ac_dir" && ac_dir=.
4117     if test -f $ac_dir/${ac_tool_prefix}file; then
4118       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4119       if test -n "$file_magic_test_file"; then
4120         case $deplibs_check_method in
4121         "file_magic "*)
4122           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4123           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4124           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4125             egrep "$file_magic_regex" > /dev/null; then
4126             :
4127           else
4128             cat <<EOF 1>&2
4129
4130 *** Warning: the command libtool uses to detect shared libraries,
4131 *** $file_magic_cmd, produces output that libtool cannot recognize.
4132 *** The result is that libtool may fail to recognize shared libraries
4133 *** as such.  This will affect the creation of libtool libraries that
4134 *** depend on shared libraries, but programs linked with such libtool
4135 *** libraries will work regardless of this problem.  Nevertheless, you
4136 *** may want to report the problem to your system manager and/or to
4137 *** bug-libtool@gnu.org
4138
4139 EOF
4140           fi ;;
4141         esac
4142       fi
4143       break
4144     fi
4145   done
4146   IFS="$ac_save_ifs"
4147   MAGIC_CMD="$ac_save_MAGIC_CMD"
4148   ;;
4149 esac
4150 fi
4151
4152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4153 if test -n "$MAGIC_CMD"; then
4154   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4155 echo "${ECHO_T}$MAGIC_CMD" >&6
4156 else
4157   echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4159 fi
4160
4161 if test -z "$lt_cv_path_MAGIC_CMD"; then
4162   if test -n "$ac_tool_prefix"; then
4163     echo "$as_me:$LINENO: checking for file" >&5
4164 echo $ECHO_N "checking for file... $ECHO_C" >&6
4165 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   case $MAGIC_CMD in
4169   /*)
4170   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4171   ;;
4172   ?:/*)
4173   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4174   ;;
4175   *)
4176   ac_save_MAGIC_CMD="$MAGIC_CMD"
4177   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4178   ac_dummy="/usr/bin:$PATH"
4179   for ac_dir in $ac_dummy; do
4180     test -z "$ac_dir" && ac_dir=.
4181     if test -f $ac_dir/file; then
4182       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4183       if test -n "$file_magic_test_file"; then
4184         case $deplibs_check_method in
4185         "file_magic "*)
4186           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4187           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4188           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4189             egrep "$file_magic_regex" > /dev/null; then
4190             :
4191           else
4192             cat <<EOF 1>&2
4193
4194 *** Warning: the command libtool uses to detect shared libraries,
4195 *** $file_magic_cmd, produces output that libtool cannot recognize.
4196 *** The result is that libtool may fail to recognize shared libraries
4197 *** as such.  This will affect the creation of libtool libraries that
4198 *** depend on shared libraries, but programs linked with such libtool
4199 *** libraries will work regardless of this problem.  Nevertheless, you
4200 *** may want to report the problem to your system manager and/or to
4201 *** bug-libtool@gnu.org
4202
4203 EOF
4204           fi ;;
4205         esac
4206       fi
4207       break
4208     fi
4209   done
4210   IFS="$ac_save_ifs"
4211   MAGIC_CMD="$ac_save_MAGIC_CMD"
4212   ;;
4213 esac
4214 fi
4215
4216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4217 if test -n "$MAGIC_CMD"; then
4218   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4219 echo "${ECHO_T}$MAGIC_CMD" >&6
4220 else
4221   echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4223 fi
4224
4225   else
4226     MAGIC_CMD=:
4227   fi
4228 fi
4229
4230   fi
4231   ;;
4232 esac
4233
4234 if test -n "$ac_tool_prefix"; then
4235   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4236 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_prog_RANLIB+set}" = set; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242   if test -n "$RANLIB"; then
4243   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4247 do
4248   IFS=$as_save_IFS
4249   test -z "$as_dir" && as_dir=.
4250   for ac_exec_ext in '' $ac_executable_extensions; do
4251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4252     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254     break 2
4255   fi
4256 done
4257 done
4258
4259 fi
4260 fi
4261 RANLIB=$ac_cv_prog_RANLIB
4262 if test -n "$RANLIB"; then
4263   echo "$as_me:$LINENO: result: $RANLIB" >&5
4264 echo "${ECHO_T}$RANLIB" >&6
4265 else
4266   echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6
4268 fi
4269
4270 fi
4271 if test -z "$ac_cv_prog_RANLIB"; then
4272   ac_ct_RANLIB=$RANLIB
4273   # Extract the first word of "ranlib", so it can be a program name with args.
4274 set dummy ranlib; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   if test -n "$ac_ct_RANLIB"; then
4281   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288   for ac_exec_ext in '' $ac_executable_extensions; do
4289   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4290     ac_cv_prog_ac_ct_RANLIB="ranlib"
4291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292     break 2
4293   fi
4294 done
4295 done
4296
4297   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4298 fi
4299 fi
4300 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4301 if test -n "$ac_ct_RANLIB"; then
4302   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4303 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4304 else
4305   echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4307 fi
4308
4309   RANLIB=$ac_ct_RANLIB
4310 else
4311   RANLIB="$ac_cv_prog_RANLIB"
4312 fi
4313
4314 if test -n "$ac_tool_prefix"; then
4315   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4316 set dummy ${ac_tool_prefix}strip; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_prog_STRIP+set}" = set; then
4320   echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322   if test -n "$STRIP"; then
4323   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328   IFS=$as_save_IFS
4329   test -z "$as_dir" && as_dir=.
4330   for ac_exec_ext in '' $ac_executable_extensions; do
4331   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4332     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334     break 2
4335   fi
4336 done
4337 done
4338
4339 fi
4340 fi
4341 STRIP=$ac_cv_prog_STRIP
4342 if test -n "$STRIP"; then
4343   echo "$as_me:$LINENO: result: $STRIP" >&5
4344 echo "${ECHO_T}$STRIP" >&6
4345 else
4346   echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6
4348 fi
4349
4350 fi
4351 if test -z "$ac_cv_prog_STRIP"; then
4352   ac_ct_STRIP=$STRIP
4353   # Extract the first word of "strip", so it can be a program name with args.
4354 set dummy strip; ac_word=$2
4355 echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4358   echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360   if test -n "$ac_ct_STRIP"; then
4361   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4362 else
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368   for ac_exec_ext in '' $ac_executable_extensions; do
4369   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370     ac_cv_prog_ac_ct_STRIP="strip"
4371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4372     break 2
4373   fi
4374 done
4375 done
4376
4377   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4378 fi
4379 fi
4380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4381 if test -n "$ac_ct_STRIP"; then
4382   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4383 echo "${ECHO_T}$ac_ct_STRIP" >&6
4384 else
4385   echo "$as_me:$LINENO: result: no" >&5
4386 echo "${ECHO_T}no" >&6
4387 fi
4388
4389   STRIP=$ac_ct_STRIP
4390 else
4391   STRIP="$ac_cv_prog_STRIP"
4392 fi
4393
4394
4395 # Check for any special flags to pass to ltconfig.
4396 libtool_flags="--cache-file=$cache_file"
4397 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4398 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4399 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4400 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4401 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4402
4403
4404 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4405 if test "${enable_libtool_lock+set}" = set; then
4406   enableval="$enable_libtool_lock"
4407
4408 fi;
4409 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4410 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4411
4412
4413 # Check whether --with-pic or --without-pic was given.
4414 if test "${with_pic+set}" = set; then
4415   withval="$with_pic"
4416   pic_mode="$withval"
4417 else
4418   pic_mode=default
4419 fi;
4420 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4421 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4422
4423 # Some flags need to be propagated to the compiler or linker for good
4424 # libtool support.
4425 case $host in
4426 *-*-irix6*)
4427   # Find out which ABI we are using.
4428   echo '#line 4428 "configure"' > conftest.$ac_ext
4429   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430   (eval $ac_compile) 2>&5
4431   ac_status=$?
4432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433   (exit $ac_status); }; then
4434    if test "$lt_cv_prog_gnu_ld" = yes; then
4435     case `/usr/bin/file conftest.$ac_objext` in
4436     *32-bit*)
4437       LD="${LD-ld} -melf32bsmip"
4438       ;;
4439     *N32*)
4440       LD="${LD-ld} -melf32bmipn32"
4441       ;;
4442     *64-bit*)
4443       LD="${LD-ld} -melf64bmip"
4444       ;;
4445     esac
4446    else
4447     case `/usr/bin/file conftest.$ac_objext` in
4448     *32-bit*)
4449       LD="${LD-ld} -32"
4450       ;;
4451     *N32*)
4452       LD="${LD-ld} -n32"
4453       ;;
4454     *64-bit*)
4455       LD="${LD-ld} -64"
4456       ;;
4457     esac
4458    fi
4459   fi
4460   rm -rf conftest*
4461   ;;
4462
4463 ia64-*-hpux*)
4464   # Find out which ABI we are using.
4465   echo 'int i;' > conftest.$ac_ext
4466   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467   (eval $ac_compile) 2>&5
4468   ac_status=$?
4469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470   (exit $ac_status); }; then
4471     case "`/usr/bin/file conftest.o`" in
4472     *ELF-32*)
4473       HPUX_IA64_MODE="32"
4474       ;;
4475     *ELF-64*)
4476       HPUX_IA64_MODE="64"
4477       ;;
4478     esac
4479   fi
4480   rm -rf conftest*
4481   ;;
4482
4483 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4484   # Find out which ABI we are using.
4485   echo 'int i;' > conftest.$ac_ext
4486   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487   (eval $ac_compile) 2>&5
4488   ac_status=$?
4489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); }; then
4491     case "`/usr/bin/file conftest.o`" in
4492     *32-bit*)
4493       case $host in
4494         x86_64-*linux*)
4495           LD="${LD-ld} -m elf_i386"
4496           ;;
4497         ppc64-*linux*|powerpc64-*linux*)
4498           LD="${LD-ld} -m elf32ppclinux"
4499           ;;
4500         s390x-*linux*)
4501           LD="${LD-ld} -m elf_s390"
4502           ;;
4503         sparc64-*linux*)
4504           LD="${LD-ld} -m elf32_sparc"
4505           ;;
4506       esac
4507       ;;
4508     *64-bit*)
4509       case $host in
4510         x86_64-*linux*)
4511           LD="${LD-ld} -m elf_x86_64"
4512           ;;
4513         ppc*-*linux*|powerpc*-*linux*)
4514           LD="${LD-ld} -m elf64ppc"
4515           ;;
4516         s390*-*linux*)
4517           LD="${LD-ld} -m elf64_s390"
4518           ;;
4519         sparc*-*linux*)
4520           LD="${LD-ld} -m elf64_sparc"
4521           ;;
4522       esac
4523       ;;
4524     esac
4525   fi
4526   rm -rf conftest*
4527   ;;
4528
4529 *-*-sco3.2v5*)
4530   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4531   SAVE_CFLAGS="$CFLAGS"
4532   CFLAGS="$CFLAGS -belf"
4533   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4534 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4535 if test "${lt_cv_cc_needs_belf+set}" = set; then
4536   echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538
4539
4540      ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546      if test x$gcc_no_link = xyes; then
4547   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4548 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4549    { (exit 1); exit 1; }; }
4550 fi
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h.  */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h.  */
4557
4558 int
4559 main ()
4560 {
4561
4562   ;
4563   return 0;
4564 }
4565 _ACEOF
4566 rm -f conftest.$ac_objext conftest$ac_exeext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4568   (eval $ac_link) 2>conftest.er1
4569   ac_status=$?
4570   grep -v '^ *+' conftest.er1 >conftest.err
4571   rm -f conftest.er1
4572   cat conftest.err >&5
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); } &&
4575          { ac_try='test -z "$ac_c_werror_flag"
4576                          || test ! -s conftest.err'
4577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4578   (eval $ac_try) 2>&5
4579   ac_status=$?
4580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); }; } &&
4582          { ac_try='test -s conftest$ac_exeext'
4583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584   (eval $ac_try) 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); }; }; then
4588   lt_cv_cc_needs_belf=yes
4589 else
4590   echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4592
4593 lt_cv_cc_needs_belf=no
4594 fi
4595 rm -f conftest.err conftest.$ac_objext \
4596       conftest$ac_exeext conftest.$ac_ext
4597      ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603 fi
4604 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4605 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4606   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4607     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4608     CFLAGS="$SAVE_CFLAGS"
4609   fi
4610   ;;
4611
4612
4613 esac
4614
4615
4616 # Save cache, so that ltconfig can load it
4617 cat >confcache <<\_ACEOF
4618 # This file is a shell script that caches the results of configure
4619 # tests run on this system so they can be shared between configure
4620 # scripts and configure runs, see configure's option --config-cache.
4621 # It is not useful on other systems.  If it contains results you don't
4622 # want to keep, you may remove or edit it.
4623 #
4624 # config.status only pays attention to the cache file if you give it
4625 # the --recheck option to rerun configure.
4626 #
4627 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4628 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4629 # following values.
4630
4631 _ACEOF
4632
4633 # The following way of writing the cache mishandles newlines in values,
4634 # but we know of no workaround that is simple, portable, and efficient.
4635 # So, don't put newlines in cache variables' values.
4636 # Ultrix sh set writes to stderr and can't be redirected directly,
4637 # and sets the high bit in the cache file unless we assign to the vars.
4638 {
4639   (set) 2>&1 |
4640     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4641     *ac_space=\ *)
4642       # `set' does not quote correctly, so add quotes (double-quote
4643       # substitution turns \\\\ into \\, and sed turns \\ into \).
4644       sed -n \
4645         "s/'/'\\\\''/g;
4646           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4647       ;;
4648     *)
4649       # `set' quotes correctly as required by POSIX, so do not add quotes.
4650       sed -n \
4651         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4652       ;;
4653     esac;
4654 } |
4655   sed '
4656      t clear
4657      : clear
4658      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4659      t end
4660      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4661      : end' >>confcache
4662 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4663   if test -w $cache_file; then
4664     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4665     cat confcache >$cache_file
4666   else
4667     echo "not updating unwritable cache $cache_file"
4668   fi
4669 fi
4670 rm -f confcache
4671
4672 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4673 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4674 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4675 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4676 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4677 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4678 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4679 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4680 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4681 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4682 echo "$as_me: error: libtool configure failed" >&2;}
4683    { (exit 1); exit 1; }; }
4684
4685 # Reload cache, that may have been modified by ltconfig
4686 if test -r "$cache_file"; then
4687   # Some versions of bash will fail to source /dev/null (special
4688   # files actually), so we avoid doing that.
4689   if test -f "$cache_file"; then
4690     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4691 echo "$as_me: loading cache $cache_file" >&6;}
4692     case $cache_file in
4693       [\\/]* | ?:[\\/]* ) . $cache_file;;
4694       *)                      . ./$cache_file;;
4695     esac
4696   fi
4697 else
4698   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4699 echo "$as_me: creating cache $cache_file" >&6;}
4700   >$cache_file
4701 fi
4702
4703
4704 # This can be used to rebuild libtool when needed
4705 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4706
4707 # Always use our own libtool.
4708 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4709
4710 # Redirect the config.log output again, so that the ltconfig log is not
4711 # clobbered by the next message.
4712 exec 5>>./config.log
4713
4714 ac_ext=cc
4715 ac_cpp='$CXXCPP $CPPFLAGS'
4716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4719 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4720 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4721 if test -z "$CXXCPP"; then
4722   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4723   echo $ECHO_N "(cached) $ECHO_C" >&6
4724 else
4725       # Double quotes because CXXCPP needs to be expanded
4726     for CXXCPP in "$CXX -E" "/lib/cpp"
4727     do
4728       ac_preproc_ok=false
4729 for ac_cxx_preproc_warn_flag in '' yes
4730 do
4731   # Use a header file that comes with gcc, so configuring glibc
4732   # with a fresh cross-compiler works.
4733   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4734   # <limits.h> exists even on freestanding compilers.
4735   # On the NeXT, cc -E runs the code through the compiler's parser,
4736   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
4744 # include <limits.h>
4745 #else
4746 # include <assert.h>
4747 #endif
4748                      Syntax error
4749 _ACEOF
4750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4751   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4752   ac_status=$?
4753   grep -v '^ *+' conftest.er1 >conftest.err
4754   rm -f conftest.er1
4755   cat conftest.err >&5
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); } >/dev/null; then
4758   if test -s conftest.err; then
4759     ac_cpp_err=$ac_cxx_preproc_warn_flag
4760     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4761   else
4762     ac_cpp_err=
4763   fi
4764 else
4765   ac_cpp_err=yes
4766 fi
4767 if test -z "$ac_cpp_err"; then
4768   :
4769 else
4770   echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773   # Broken: fails on valid input.
4774 continue
4775 fi
4776 rm -f conftest.err conftest.$ac_ext
4777
4778   # OK, works on sane cases.  Now check whether non-existent headers
4779   # can be detected and how.
4780   cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h.  */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h.  */
4786 #include <ac_nonexistent.h>
4787 _ACEOF
4788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4790   ac_status=$?
4791   grep -v '^ *+' conftest.er1 >conftest.err
4792   rm -f conftest.er1
4793   cat conftest.err >&5
4794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795   (exit $ac_status); } >/dev/null; then
4796   if test -s conftest.err; then
4797     ac_cpp_err=$ac_cxx_preproc_warn_flag
4798     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4799   else
4800     ac_cpp_err=
4801   fi
4802 else
4803   ac_cpp_err=yes
4804 fi
4805 if test -z "$ac_cpp_err"; then
4806   # Broken: success on invalid input.
4807 continue
4808 else
4809   echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812   # Passes both tests.
4813 ac_preproc_ok=:
4814 break
4815 fi
4816 rm -f conftest.err conftest.$ac_ext
4817
4818 done
4819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4820 rm -f conftest.err conftest.$ac_ext
4821 if $ac_preproc_ok; then
4822   break
4823 fi
4824
4825     done
4826     ac_cv_prog_CXXCPP=$CXXCPP
4827
4828 fi
4829   CXXCPP=$ac_cv_prog_CXXCPP
4830 else
4831   ac_cv_prog_CXXCPP=$CXXCPP
4832 fi
4833 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4834 echo "${ECHO_T}$CXXCPP" >&6
4835 ac_preproc_ok=false
4836 for ac_cxx_preproc_warn_flag in '' yes
4837 do
4838   # Use a header file that comes with gcc, so configuring glibc
4839   # with a fresh cross-compiler works.
4840   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4841   # <limits.h> exists even on freestanding compilers.
4842   # On the NeXT, cc -E runs the code through the compiler's parser,
4843   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
4851 # include <limits.h>
4852 #else
4853 # include <assert.h>
4854 #endif
4855                      Syntax error
4856 _ACEOF
4857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4858   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } >/dev/null; then
4865   if test -s conftest.err; then
4866     ac_cpp_err=$ac_cxx_preproc_warn_flag
4867     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4868   else
4869     ac_cpp_err=
4870   fi
4871 else
4872   ac_cpp_err=yes
4873 fi
4874 if test -z "$ac_cpp_err"; then
4875   :
4876 else
4877   echo "$as_me: failed program was:" >&5
4878 sed 's/^/| /' conftest.$ac_ext >&5
4879
4880   # Broken: fails on valid input.
4881 continue
4882 fi
4883 rm -f conftest.err conftest.$ac_ext
4884
4885   # OK, works on sane cases.  Now check whether non-existent headers
4886   # can be detected and how.
4887   cat >conftest.$ac_ext <<_ACEOF
4888 /* confdefs.h.  */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h.  */
4893 #include <ac_nonexistent.h>
4894 _ACEOF
4895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4897   ac_status=$?
4898   grep -v '^ *+' conftest.er1 >conftest.err
4899   rm -f conftest.er1
4900   cat conftest.err >&5
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); } >/dev/null; then
4903   if test -s conftest.err; then
4904     ac_cpp_err=$ac_cxx_preproc_warn_flag
4905     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4906   else
4907     ac_cpp_err=
4908   fi
4909 else
4910   ac_cpp_err=yes
4911 fi
4912 if test -z "$ac_cpp_err"; then
4913   # Broken: success on invalid input.
4914 continue
4915 else
4916   echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4918
4919   # Passes both tests.
4920 ac_preproc_ok=:
4921 break
4922 fi
4923 rm -f conftest.err conftest.$ac_ext
4924
4925 done
4926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4927 rm -f conftest.err conftest.$ac_ext
4928 if $ac_preproc_ok; then
4929   :
4930 else
4931   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4932 See \`config.log' for more details." >&5
4933 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4934 See \`config.log' for more details." >&2;}
4935    { (exit 1); exit 1; }; }
4936 fi
4937
4938 ac_ext=c
4939 ac_cpp='$CPP $CPPFLAGS'
4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4943
4944
4945
4946 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4947 lt_save_CC="$CC"
4948 lt_save_CFLAGS="$CFLAGS"
4949 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4950 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4951 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4952 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4953 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4954 deplibs_check_method="$deplibs_check_method" \
4955 file_magic_cmd="$file_magic_cmd" \
4956 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4957 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4958 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4959 echo "$as_me: error: libtool tag configuration failed" >&2;}
4960    { (exit 1); exit 1; }; }
4961 CC="$lt_save_CC"
4962 CFLAGS="$lt_save_CFLAGS"
4963
4964 # Redirect the config.log output again, so that the ltconfig log is not
4965 # clobbered by the next message.
4966 exec 5>>./config.log
4967
4968
4969
4970
4971
4972
4973
4974
4975 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4976
4977 # Possibly disable most of the library.
4978 ## XXX Consider skipping unncessary tests altogether in this case, rather
4979 ## than just ignoring the results.  Faster /and/ more correct, win win.
4980
4981   # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4982 if test "${enable_hosted_libstdcxx+set}" = set; then
4983   enableval="$enable_hosted_libstdcxx"
4984
4985 else
4986   enable_hosted_libstdcxx=yes
4987 fi;
4988   if test "$enable_hosted_libstdcxx" = no; then
4989     { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4990 echo "$as_me: Only freestanding libraries will be built" >&6;}
4991     is_hosted=no
4992     hosted_define=0
4993     enable_abi_check=no
4994     enable_libstdcxx_pch=no
4995   else
4996     is_hosted=yes
4997     hosted_define=1
4998   fi
4999
5000
5001 cat >>confdefs.h <<_ACEOF
5002 #define _GLIBCXX_HOSTED $hosted_define
5003 _ACEOF
5004
5005
5006
5007 # Check for support bits and g++ features that don't require linking.
5008
5009   echo "$as_me:$LINENO: checking for exception model to use" >&5
5010 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5011
5012
5013   ac_ext=cc
5014 ac_cpp='$CXXCPP $CPPFLAGS'
5015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5018
5019    # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5020 if test "${enable_sjlj_exceptions+set}" = set; then
5021   enableval="$enable_sjlj_exceptions"
5022
5023       case "$enableval" in
5024        yes|no|auto) ;;
5025        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
5026 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
5027    { (exit 1); exit 1; }; } ;;
5028                           esac
5029
5030 else
5031   enable_sjlj_exceptions=auto
5032 fi;
5033
5034
5035   if test $enable_sjlj_exceptions = auto; then
5036     # Botheration.  Now we've got to detect the exception model.  Link tests
5037     # against libgcc.a are problematic since we've not been given proper -L
5038     # bits for single-tree newlib and libgloss.
5039     #
5040     # Fake what AC_TRY_COMPILE does.  XXX Look at redoing this new-style.
5041     cat > conftest.$ac_ext << EOF
5042 #line 5042 "configure"
5043 struct S { ~S(); };
5044 void bar();
5045 void foo()
5046 {
5047   S s;
5048   bar();
5049 }
5050 EOF
5051     old_CXXFLAGS="$CXXFLAGS"
5052     CXXFLAGS=-S
5053     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054   (eval $ac_compile) 2>&5
5055   ac_status=$?
5056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); }; then
5058       if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5059         enable_sjlj_exceptions=yes
5060       elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5061         enable_sjlj_exceptions=no
5062       fi
5063     fi
5064     CXXFLAGS="$old_CXXFLAGS"
5065     rm -f conftest*
5066   fi
5067
5068   # This is a tad weird, for hysterical raisins.  We have to map enable/disable
5069   # to two different models.
5070   case $enable_sjlj_exceptions in
5071     yes)
5072
5073 cat >>confdefs.h <<\_ACEOF
5074 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
5075 _ACEOF
5076
5077       ac_exception_model_name=sjlj
5078       ;;
5079     no)
5080       ac_exception_model_name="call frame"
5081       ;;
5082     *)
5083       { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5084 echo "$as_me: error: unable to detect exception model" >&2;}
5085    { (exit 1); exit 1; }; }
5086       ;;
5087   esac
5088  ac_ext=c
5089 ac_cpp='$CPP $CPPFLAGS'
5090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5093
5094  echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5095 echo "${ECHO_T}$ac_exception_model_name" >&6
5096
5097
5098   echo "$as_me:$LINENO: checking for enabled PCH" >&5
5099 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
5100    # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
5101 if test "${enable_libstdcxx_pch+set}" = set; then
5102   enableval="$enable_libstdcxx_pch"
5103
5104       case "$enableval" in
5105        yes|no) ;;
5106        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
5107 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
5108    { (exit 1); exit 1; }; } ;;
5109       esac
5110
5111 else
5112   enable_libstdcxx_pch=$is_hosted
5113 fi;
5114
5115   echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
5116 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
5117
5118   if test $enable_libstdcxx_pch = yes; then
5119     echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
5120 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
5121 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
5122   echo $ECHO_N "(cached) $ECHO_C" >&6
5123 else
5124   ac_save_CXXFLAGS="$CXXFLAGS"
5125        CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
5126
5127
5128        ac_ext=cc
5129 ac_cpp='$CXXCPP $CPPFLAGS'
5130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5133
5134        echo '#include <math.h>' > conftest.h
5135        if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
5136                           -o conftest.h.gch 1>&5 2>&1 &&
5137                 echo '#error "pch failed"' > conftest.h &&
5138           echo '#include "conftest.h"' > conftest.cc &&
5139                $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
5140        then
5141          glibcxx_cv_prog_CXX_pch=yes
5142        else
5143          glibcxx_cv_prog_CXX_pch=no
5144        fi
5145        rm -f conftest*
5146        CXXFLAGS=$ac_save_CXXFLAGS
5147        ac_ext=c
5148 ac_cpp='$CPP $CPPFLAGS'
5149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5152
5153
5154 fi
5155 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5156 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5157     enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
5158   fi
5159
5160
5161   if test $enable_libstdcxx_pch = yes; then
5162     glibcxx_PCHFLAGS="-include bits/stdc++.h"
5163   else
5164     glibcxx_PCHFLAGS=""
5165   fi
5166
5167
5168
5169 # Enable all the variable C++ runtime options.
5170 # NB: C_MBCHAR must come early.
5171
5172   echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5173 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5174    # Check whether --enable-cstdio or --disable-cstdio was given.
5175 if test "${enable_cstdio+set}" = set; then
5176   enableval="$enable_cstdio"
5177
5178       case "$enableval" in
5179        stdio) ;;
5180        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5181 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5182    { (exit 1); exit 1; }; } ;;
5183                           esac
5184
5185 else
5186   enable_cstdio=stdio
5187 fi;
5188
5189
5190   # Now that libio has been removed, you can have any color you want as long
5191   # as it's black.  This is one big no-op until other packages are added, but
5192   # showing the framework never hurts.
5193   case ${enable_cstdio} in
5194     stdio)
5195       CSTDIO_H=config/io/c_io_stdio.h
5196       BASIC_FILE_H=config/io/basic_file_stdio.h
5197       BASIC_FILE_CC=config/io/basic_file_stdio.cc
5198       echo "$as_me:$LINENO: result: stdio" >&5
5199 echo "${ECHO_T}stdio" >&6
5200       ;;
5201   esac
5202
5203
5204
5205
5206
5207 ac_ext=c
5208 ac_cpp='$CPP $CPPFLAGS'
5209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5212 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5213 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5214 # On Suns, sometimes $CPP names a directory.
5215 if test -n "$CPP" && test -d "$CPP"; then
5216   CPP=
5217 fi
5218 if test -z "$CPP"; then
5219   if test "${ac_cv_prog_CPP+set}" = set; then
5220   echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222       # Double quotes because CPP needs to be expanded
5223     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5224     do
5225       ac_preproc_ok=false
5226 for ac_c_preproc_warn_flag in '' yes
5227 do
5228   # Use a header file that comes with gcc, so configuring glibc
5229   # with a fresh cross-compiler works.
5230   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5231   # <limits.h> exists even on freestanding compilers.
5232   # On the NeXT, cc -E runs the code through the compiler's parser,
5233   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
5241 # include <limits.h>
5242 #else
5243 # include <assert.h>
5244 #endif
5245                      Syntax error
5246 _ACEOF
5247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5249   ac_status=$?
5250   grep -v '^ *+' conftest.er1 >conftest.err
5251   rm -f conftest.er1
5252   cat conftest.err >&5
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); } >/dev/null; then
5255   if test -s conftest.err; then
5256     ac_cpp_err=$ac_c_preproc_warn_flag
5257     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5258   else
5259     ac_cpp_err=
5260   fi
5261 else
5262   ac_cpp_err=yes
5263 fi
5264 if test -z "$ac_cpp_err"; then
5265   :
5266 else
5267   echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5269
5270   # Broken: fails on valid input.
5271 continue
5272 fi
5273 rm -f conftest.err conftest.$ac_ext
5274
5275   # OK, works on sane cases.  Now check whether non-existent headers
5276   # can be detected and how.
5277   cat >conftest.$ac_ext <<_ACEOF
5278 /* confdefs.h.  */
5279 _ACEOF
5280 cat confdefs.h >>conftest.$ac_ext
5281 cat >>conftest.$ac_ext <<_ACEOF
5282 /* end confdefs.h.  */
5283 #include <ac_nonexistent.h>
5284 _ACEOF
5285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5286   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5287   ac_status=$?
5288   grep -v '^ *+' conftest.er1 >conftest.err
5289   rm -f conftest.er1
5290   cat conftest.err >&5
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); } >/dev/null; then
5293   if test -s conftest.err; then
5294     ac_cpp_err=$ac_c_preproc_warn_flag
5295     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5296   else
5297     ac_cpp_err=
5298   fi
5299 else
5300   ac_cpp_err=yes
5301 fi
5302 if test -z "$ac_cpp_err"; then
5303   # Broken: success on invalid input.
5304 continue
5305 else
5306   echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5308
5309   # Passes both tests.
5310 ac_preproc_ok=:
5311 break
5312 fi
5313 rm -f conftest.err conftest.$ac_ext
5314
5315 done
5316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5317 rm -f conftest.err conftest.$ac_ext
5318 if $ac_preproc_ok; then
5319   break
5320 fi
5321
5322     done
5323     ac_cv_prog_CPP=$CPP
5324
5325 fi
5326   CPP=$ac_cv_prog_CPP
5327 else
5328   ac_cv_prog_CPP=$CPP
5329 fi
5330 echo "$as_me:$LINENO: result: $CPP" >&5
5331 echo "${ECHO_T}$CPP" >&6
5332 ac_preproc_ok=false
5333 for ac_c_preproc_warn_flag in '' yes
5334 do
5335   # Use a header file that comes with gcc, so configuring glibc
5336   # with a fresh cross-compiler works.
5337   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5338   # <limits.h> exists even on freestanding compilers.
5339   # On the NeXT, cc -E runs the code through the compiler's parser,
5340   # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
5348 # include <limits.h>
5349 #else
5350 # include <assert.h>
5351 #endif
5352                      Syntax error
5353 _ACEOF
5354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5356   ac_status=$?
5357   grep -v '^ *+' conftest.er1 >conftest.err
5358   rm -f conftest.er1
5359   cat conftest.err >&5
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); } >/dev/null; then
5362   if test -s conftest.err; then
5363     ac_cpp_err=$ac_c_preproc_warn_flag
5364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5365   else
5366     ac_cpp_err=
5367   fi
5368 else
5369   ac_cpp_err=yes
5370 fi
5371 if test -z "$ac_cpp_err"; then
5372   :
5373 else
5374   echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5376
5377   # Broken: fails on valid input.
5378 continue
5379 fi
5380 rm -f conftest.err conftest.$ac_ext
5381
5382   # OK, works on sane cases.  Now check whether non-existent headers
5383   # can be detected and how.
5384   cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h.  */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h.  */
5390 #include <ac_nonexistent.h>
5391 _ACEOF
5392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5393   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5394   ac_status=$?
5395   grep -v '^ *+' conftest.er1 >conftest.err
5396   rm -f conftest.er1
5397   cat conftest.err >&5
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } >/dev/null; then
5400   if test -s conftest.err; then
5401     ac_cpp_err=$ac_c_preproc_warn_flag
5402     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5403   else
5404     ac_cpp_err=
5405   fi
5406 else
5407   ac_cpp_err=yes
5408 fi
5409 if test -z "$ac_cpp_err"; then
5410   # Broken: success on invalid input.
5411 continue
5412 else
5413   echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5415
5416   # Passes both tests.
5417 ac_preproc_ok=:
5418 break
5419 fi
5420 rm -f conftest.err conftest.$ac_ext
5421
5422 done
5423 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5424 rm -f conftest.err conftest.$ac_ext
5425 if $ac_preproc_ok; then
5426   :
5427 else
5428   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5429 See \`config.log' for more details." >&5
5430 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5431 See \`config.log' for more details." >&2;}
5432    { (exit 1); exit 1; }; }
5433 fi
5434
5435 ac_ext=c
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5440
5441
5442 echo "$as_me:$LINENO: checking for egrep" >&5
5443 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5444 if test "${ac_cv_prog_egrep+set}" = set; then
5445   echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5448     then ac_cv_prog_egrep='grep -E'
5449     else ac_cv_prog_egrep='egrep'
5450     fi
5451 fi
5452 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5453 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5454  EGREP=$ac_cv_prog_egrep
5455
5456
5457 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5458 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5459 if test "${ac_cv_header_stdc+set}" = set; then
5460   echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462   cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h.  */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h.  */
5468 #include <stdlib.h>
5469 #include <stdarg.h>
5470 #include <string.h>
5471 #include <float.h>
5472
5473 int
5474 main ()
5475 {
5476
5477   ;
5478   return 0;
5479 }
5480 _ACEOF
5481 rm -f conftest.$ac_objext
5482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5483   (eval $ac_compile) 2>conftest.er1
5484   ac_status=$?
5485   grep -v '^ *+' conftest.er1 >conftest.err
5486   rm -f conftest.er1
5487   cat conftest.err >&5
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); } &&
5490          { ac_try='test -z "$ac_c_werror_flag"
5491                          || test ! -s conftest.err'
5492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493   (eval $ac_try) 2>&5
5494   ac_status=$?
5495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496   (exit $ac_status); }; } &&
5497          { ac_try='test -s conftest.$ac_objext'
5498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499   (eval $ac_try) 2>&5
5500   ac_status=$?
5501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502   (exit $ac_status); }; }; then
5503   ac_cv_header_stdc=yes
5504 else
5505   echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5507
5508 ac_cv_header_stdc=no
5509 fi
5510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5511
5512 if test $ac_cv_header_stdc = yes; then
5513   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5514   cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h.  */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h.  */
5520 #include <string.h>
5521
5522 _ACEOF
5523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5524   $EGREP "memchr" >/dev/null 2>&1; then
5525   :
5526 else
5527   ac_cv_header_stdc=no
5528 fi
5529 rm -f conftest*
5530
5531 fi
5532
5533 if test $ac_cv_header_stdc = yes; then
5534   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5535   cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h.  */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h.  */
5541 #include <stdlib.h>
5542
5543 _ACEOF
5544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5545   $EGREP "free" >/dev/null 2>&1; then
5546   :
5547 else
5548   ac_cv_header_stdc=no
5549 fi
5550 rm -f conftest*
5551
5552 fi
5553
5554 if test $ac_cv_header_stdc = yes; then
5555   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5556   if test "$cross_compiling" = yes; then
5557   :
5558 else
5559   cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h.  */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h.  */
5565 #include <ctype.h>
5566 #if ((' ' & 0x0FF) == 0x020)
5567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5569 #else
5570 # define ISLOWER(c) \
5571                    (('a' <= (c) && (c) <= 'i') \
5572                      || ('j' <= (c) && (c) <= 'r') \
5573                      || ('s' <= (c) && (c) <= 'z'))
5574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5575 #endif
5576
5577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5578 int
5579 main ()
5580 {
5581   int i;
5582   for (i = 0; i < 256; i++)
5583     if (XOR (islower (i), ISLOWER (i))
5584         || toupper (i) != TOUPPER (i))
5585       exit(2);
5586   exit (0);
5587 }
5588 _ACEOF
5589 rm -f conftest$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591   (eval $ac_link) 2>&5
5592   ac_status=$?
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596   (eval $ac_try) 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); }; }; then
5600   :
5601 else
5602   echo "$as_me: program exited with status $ac_status" >&5
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5605
5606 ( exit $ac_status )
5607 ac_cv_header_stdc=no
5608 fi
5609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5610 fi
5611 fi
5612 fi
5613 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5614 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5615 if test $ac_cv_header_stdc = yes; then
5616
5617 cat >>confdefs.h <<\_ACEOF
5618 #define STDC_HEADERS 1
5619 _ACEOF
5620
5621 fi
5622
5623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5634                   inttypes.h stdint.h unistd.h
5635 do
5636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5637 echo "$as_me:$LINENO: checking for $ac_header" >&5
5638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5640   echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642   cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h.  */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h.  */
5648 $ac_includes_default
5649
5650 #include <$ac_header>
5651 _ACEOF
5652 rm -f conftest.$ac_objext
5653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654   (eval $ac_compile) 2>conftest.er1
5655   ac_status=$?
5656   grep -v '^ *+' conftest.er1 >conftest.err
5657   rm -f conftest.er1
5658   cat conftest.err >&5
5659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660   (exit $ac_status); } &&
5661          { ac_try='test -z "$ac_c_werror_flag"
5662                          || test ! -s conftest.err'
5663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664   (eval $ac_try) 2>&5
5665   ac_status=$?
5666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667   (exit $ac_status); }; } &&
5668          { ac_try='test -s conftest.$ac_objext'
5669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670   (eval $ac_try) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); }; }; then
5674   eval "$as_ac_Header=yes"
5675 else
5676   echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5678
5679 eval "$as_ac_Header=no"
5680 fi
5681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5682 fi
5683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5686   cat >>confdefs.h <<_ACEOF
5687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5688 _ACEOF
5689
5690 fi
5691
5692 done
5693
5694
5695
5696   echo "$as_me:$LINENO: checking for C locale to use" >&5
5697 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5698    # Check whether --enable-clocale or --disable-clocale was given.
5699 if test "${enable_clocale+set}" = set; then
5700   enableval="$enable_clocale"
5701
5702       case "$enableval" in
5703        generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5704        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5705 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5706    { (exit 1); exit 1; }; } ;;
5707                           esac
5708
5709 else
5710   enable_clocale=auto
5711 fi;
5712
5713
5714   # If they didn't use this option switch, or if they specified --enable
5715   # with no specific model, we'll have to look for one.  If they
5716   # specified --disable (???), do likewise.
5717   if test $enable_clocale = no || test $enable_clocale = yes; then
5718      enable_clocale=auto
5719   fi
5720
5721   # Either a known package, or "auto"
5722   enable_clocale_flag=$enable_clocale
5723
5724   # Probe for locale support if no specific model is specified.
5725   # Default to "generic".
5726   if test $enable_clocale_flag = auto; then
5727     case x${target_os} in
5728       xlinux* | xgnu* | xkfreebsd*-gnu | xknetbsd*-gnu)
5729         cat >conftest.$ac_ext <<_ACEOF
5730 /* confdefs.h.  */
5731 _ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h.  */
5735
5736         #include <features.h>
5737         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5738           _GLIBCXX_ok
5739         #endif
5740
5741 _ACEOF
5742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5743   $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5744   enable_clocale_flag=gnu
5745 else
5746   enable_clocale_flag=generic
5747 fi
5748 rm -f conftest*
5749
5750
5751         # Test for bugs early in glibc-2.2.x series
5752           if test x$enable_clocale_flag = xgnu; then
5753           if test "$cross_compiling" = yes; then
5754   enable_clocale_flag=generic
5755 else
5756   cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h.  */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h.  */
5762
5763           #define _GNU_SOURCE 1
5764           #include <locale.h>
5765           #include <string.h>
5766           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5767           extern __typeof(newlocale) __newlocale;
5768           extern __typeof(duplocale) __duplocale;
5769           extern __typeof(strcoll_l) __strcoll_l;
5770           #endif
5771           int main()
5772           {
5773               const char __one[] = "Äuglein Augmen";
5774               const char __two[] = "Äuglein";
5775               int i;
5776               int j;
5777               __locale_t        loc;
5778                __locale_t        loc_dup;
5779               loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5780               loc_dup = __duplocale(loc);
5781               i = __strcoll_l(__one, __two, loc);
5782               j = __strcoll_l(__one, __two, loc_dup);
5783               return 0;
5784           }
5785
5786 _ACEOF
5787 rm -f conftest$ac_exeext
5788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5789   (eval $ac_link) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794   (eval $ac_try) 2>&5
5795   ac_status=$?
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); }; }; then
5798   enable_clocale_flag=gnu
5799 else
5800   echo "$as_me: program exited with status $ac_status" >&5
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 ( exit $ac_status )
5805 enable_clocale_flag=generic
5806 fi
5807 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5808 fi
5809           fi
5810
5811         # ... at some point put __strxfrm_l tests in as well.
5812         ;;
5813       *)
5814         enable_clocale_flag=generic
5815         ;;
5816     esac
5817   fi
5818
5819   # Deal with gettext issues.  Default to not using it (=no) until we detect
5820   # support for it later.  Let the user turn it off via --e/d, but let that
5821   # default to on for easier handling.
5822   USE_NLS=no
5823   # Check whether --enable-nls or --disable-nls was given.
5824 if test "${enable_nls+set}" = set; then
5825   enableval="$enable_nls"
5826
5827 else
5828   enable_nls=yes
5829 fi;
5830
5831   # Set configure bits for specified locale package
5832   case ${enable_clocale_flag} in
5833     generic)
5834       echo "$as_me:$LINENO: result: generic" >&5
5835 echo "${ECHO_T}generic" >&6
5836
5837       CLOCALE_H=config/locale/generic/c_locale.h
5838       CLOCALE_CC=config/locale/generic/c_locale.cc
5839       CCODECVT_H=config/locale/generic/codecvt_specializations.h
5840       CCODECVT_CC=config/locale/generic/codecvt_members.cc
5841       CCOLLATE_CC=config/locale/generic/collate_members.cc
5842       CCTYPE_CC=config/locale/generic/ctype_members.cc
5843       CMESSAGES_H=config/locale/generic/messages_members.h
5844       CMESSAGES_CC=config/locale/generic/messages_members.cc
5845       CMONEY_CC=config/locale/generic/monetary_members.cc
5846       CNUMERIC_CC=config/locale/generic/numeric_members.cc
5847       CTIME_H=config/locale/generic/time_members.h
5848       CTIME_CC=config/locale/generic/time_members.cc
5849       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5850       ;;
5851     gnu)
5852       echo "$as_me:$LINENO: result: gnu" >&5
5853 echo "${ECHO_T}gnu" >&6
5854
5855       # Declare intention to use gettext, and add support for specific
5856       # languages.
5857       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5858       ALL_LINGUAS="de fr"
5859
5860       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5861       # Extract the first word of "msgfmt", so it can be a program name with args.
5862 set dummy msgfmt; ac_word=$2
5863 echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   if test -n "$check_msgfmt"; then
5869   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876   for ac_exec_ext in '' $ac_executable_extensions; do
5877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878     ac_cv_prog_check_msgfmt="yes"
5879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880     break 2
5881   fi
5882 done
5883 done
5884
5885   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5886 fi
5887 fi
5888 check_msgfmt=$ac_cv_prog_check_msgfmt
5889 if test -n "$check_msgfmt"; then
5890   echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5891 echo "${ECHO_T}$check_msgfmt" >&6
5892 else
5893   echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5895 fi
5896
5897       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5898         USE_NLS=yes
5899       fi
5900       # Export the build objects.
5901       for ling in $ALL_LINGUAS; do \
5902         glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5903         glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5904       done
5905
5906
5907
5908       CLOCALE_H=config/locale/gnu/c_locale.h
5909       CLOCALE_CC=config/locale/gnu/c_locale.cc
5910       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5911       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5912       CCOLLATE_CC=config/locale/gnu/collate_members.cc
5913       CCTYPE_CC=config/locale/gnu/ctype_members.cc
5914       CMESSAGES_H=config/locale/gnu/messages_members.h
5915       CMESSAGES_CC=config/locale/gnu/messages_members.cc
5916       CMONEY_CC=config/locale/gnu/monetary_members.cc
5917       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5918       CTIME_H=config/locale/gnu/time_members.h
5919       CTIME_CC=config/locale/gnu/time_members.cc
5920       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5921       ;;
5922     ieee_1003.1-2001)
5923       echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5924 echo "${ECHO_T}IEEE 1003.1" >&6
5925
5926       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5927       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5928       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5929       CCODECVT_CC=config/locale/generic/codecvt_members.cc
5930       CCOLLATE_CC=config/locale/generic/collate_members.cc
5931       CCTYPE_CC=config/locale/generic/ctype_members.cc
5932       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5933       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5934       CMONEY_CC=config/locale/generic/monetary_members.cc
5935       CNUMERIC_CC=config/locale/generic/numeric_members.cc
5936       CTIME_H=config/locale/generic/time_members.h
5937       CTIME_CC=config/locale/generic/time_members.cc
5938       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5939       ;;
5940   esac
5941
5942   # This is where the testsuite looks for locale catalogs, using the
5943   # -DLOCALEDIR define during testsuite compilation.
5944   glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5945
5946
5947   # A standalone libintl (e.g., GNU libintl) may be in use.
5948   if test $USE_NLS = yes; then
5949
5950 for ac_header in libintl.h
5951 do
5952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5954   echo "$as_me:$LINENO: checking for $ac_header" >&5
5955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 fi
5959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5961 else
5962   # Is the header compilable?
5963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5965 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h.  */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h.  */
5971 $ac_includes_default
5972 #include <$ac_header>
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976   (eval $ac_compile) 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); } &&
5983          { ac_try='test -z "$ac_c_werror_flag"
5984                          || test ! -s conftest.err'
5985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986   (eval $ac_try) 2>&5
5987   ac_status=$?
5988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989   (exit $ac_status); }; } &&
5990          { ac_try='test -s conftest.$ac_objext'
5991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992   (eval $ac_try) 2>&5
5993   ac_status=$?
5994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995   (exit $ac_status); }; }; then
5996   ac_header_compiler=yes
5997 else
5998   echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6000
6001 ac_header_compiler=no
6002 fi
6003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6005 echo "${ECHO_T}$ac_header_compiler" >&6
6006
6007 # Is the header present?
6008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6010 cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h.  */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h.  */
6016 #include <$ac_header>
6017 _ACEOF
6018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6019   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6020   ac_status=$?
6021   grep -v '^ *+' conftest.er1 >conftest.err
6022   rm -f conftest.er1
6023   cat conftest.err >&5
6024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025   (exit $ac_status); } >/dev/null; then
6026   if test -s conftest.err; then
6027     ac_cpp_err=$ac_c_preproc_warn_flag
6028     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6029   else
6030     ac_cpp_err=
6031   fi
6032 else
6033   ac_cpp_err=yes
6034 fi
6035 if test -z "$ac_cpp_err"; then
6036   ac_header_preproc=yes
6037 else
6038   echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6040
6041   ac_header_preproc=no
6042 fi
6043 rm -f conftest.err conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6045 echo "${ECHO_T}$ac_header_preproc" >&6
6046
6047 # So?  What about this header?
6048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6049   yes:no: )
6050     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6052     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6054     ac_header_preproc=yes
6055     ;;
6056   no:yes:* )
6057     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6059     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6060 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6061     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6063     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6064 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6065     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6067     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6069     (
6070       cat <<\_ASBOX
6071 ## ----------------------------------------- ##
6072 ## Report this to the package-unused lists.  ##
6073 ## ----------------------------------------- ##
6074 _ASBOX
6075     ) |
6076       sed "s/^/$as_me: WARNING:     /" >&2
6077     ;;
6078 esac
6079 echo "$as_me:$LINENO: checking for $ac_header" >&5
6080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6082   echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084   eval "$as_ac_Header=\$ac_header_preproc"
6085 fi
6086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6088
6089 fi
6090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6091   cat >>confdefs.h <<_ACEOF
6092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6093 _ACEOF
6094
6095 else
6096   USE_NLS=no
6097 fi
6098
6099 done
6100
6101     echo "$as_me:$LINENO: checking for library containing gettext" >&5
6102 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
6103 if test "${ac_cv_search_gettext+set}" = set; then
6104   echo $ECHO_N "(cached) $ECHO_C" >&6
6105 else
6106   ac_func_search_save_LIBS=$LIBS
6107 ac_cv_search_gettext=no
6108 if test x$gcc_no_link = xyes; then
6109   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6111    { (exit 1); exit 1; }; }
6112 fi
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h.  */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h.  */
6119
6120 /* Override any gcc2 internal prototype to avoid an error.  */
6121 #ifdef __cplusplus
6122 extern "C"
6123 #endif
6124 /* We use char because int might match the return type of a gcc2
6125    builtin and then its argument prototype would still apply.  */
6126 char gettext ();
6127 int
6128 main ()
6129 {
6130 gettext ();
6131   ;
6132   return 0;
6133 }
6134 _ACEOF
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137   (eval $ac_link) 2>conftest.er1
6138   ac_status=$?
6139   grep -v '^ *+' conftest.er1 >conftest.err
6140   rm -f conftest.er1
6141   cat conftest.err >&5
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); } &&
6144          { ac_try='test -z "$ac_c_werror_flag"
6145                          || test ! -s conftest.err'
6146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147   (eval $ac_try) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); }; } &&
6151          { ac_try='test -s conftest$ac_exeext'
6152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153   (eval $ac_try) 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); }; }; then
6157   ac_cv_search_gettext="none required"
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 fi
6163 rm -f conftest.err conftest.$ac_objext \
6164       conftest$ac_exeext conftest.$ac_ext
6165 if test "$ac_cv_search_gettext" = no; then
6166   for ac_lib in intl; do
6167     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6168     if test x$gcc_no_link = xyes; then
6169   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6170 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6171    { (exit 1); exit 1; }; }
6172 fi
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h.  */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h.  */
6179
6180 /* Override any gcc2 internal prototype to avoid an error.  */
6181 #ifdef __cplusplus
6182 extern "C"
6183 #endif
6184 /* We use char because int might match the return type of a gcc2
6185    builtin and then its argument prototype would still apply.  */
6186 char gettext ();
6187 int
6188 main ()
6189 {
6190 gettext ();
6191   ;
6192   return 0;
6193 }
6194 _ACEOF
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6197   (eval $ac_link) 2>conftest.er1
6198   ac_status=$?
6199   grep -v '^ *+' conftest.er1 >conftest.err
6200   rm -f conftest.er1
6201   cat conftest.err >&5
6202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203   (exit $ac_status); } &&
6204          { ac_try='test -z "$ac_c_werror_flag"
6205                          || test ! -s conftest.err'
6206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207   (eval $ac_try) 2>&5
6208   ac_status=$?
6209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210   (exit $ac_status); }; } &&
6211          { ac_try='test -s conftest$ac_exeext'
6212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213   (eval $ac_try) 2>&5
6214   ac_status=$?
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); }; }; then
6217   ac_cv_search_gettext="-l$ac_lib"
6218 break
6219 else
6220   echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6222
6223 fi
6224 rm -f conftest.err conftest.$ac_objext \
6225       conftest$ac_exeext conftest.$ac_ext
6226   done
6227 fi
6228 LIBS=$ac_func_search_save_LIBS
6229 fi
6230 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
6231 echo "${ECHO_T}$ac_cv_search_gettext" >&6
6232 if test "$ac_cv_search_gettext" != no; then
6233   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
6234
6235 else
6236   USE_NLS=no
6237 fi
6238
6239   fi
6240   if test $USE_NLS = yes; then
6241     cat >>confdefs.h <<\_ACEOF
6242 #define _GLIBCXX_USE_NLS 1
6243 _ACEOF
6244
6245   fi
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263   echo "$as_me:$LINENO: checking for std::allocator base class to use" >&5
6264 echo $ECHO_N "checking for std::allocator base class to use... $ECHO_C" >&6
6265    # Check whether --enable-libstdcxx-allocator or --disable-libstdcxx-allocator was given.
6266 if test "${enable_libstdcxx_allocator+set}" = set; then
6267   enableval="$enable_libstdcxx_allocator"
6268
6269       case "$enableval" in
6270        new|malloc|mt|bitmap|pool|yes|no|auto) ;;
6271        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable libstdcxx-allocator" >&5
6272 echo "$as_me: error: Unknown argument to enable/disable libstdcxx-allocator" >&2;}
6273    { (exit 1); exit 1; }; } ;;
6274                           esac
6275
6276 else
6277   enable_libstdcxx_allocator=auto
6278 fi;
6279
6280   # If they didn't use this option switch, or if they specified --enable
6281   # with no specific model, we'll have to look for one.  If they
6282   # specified --disable (???), do likewise.
6283   if test $enable_libstdcxx_allocator = no || test $enable_libstdcxx_allocator = yes; then
6284      enable_libstdcxx_allocator=auto
6285   fi
6286
6287   # Either a known package, or "auto"
6288   enable_libstdcxx_allocator_flag=$enable_libstdcxx_allocator
6289
6290   # Probe for host-specific support if no specific model is specified.
6291   # Default to "new".
6292   if test $enable_libstdcxx_allocator_flag = auto; then
6293     case ${target_os} in
6294       *)
6295         enable_libstdcxx_allocator_flag=new
6296         ;;
6297     esac
6298   fi
6299   echo "$as_me:$LINENO: result: $enable_libstdcxx_allocator_flag" >&5
6300 echo "${ECHO_T}$enable_libstdcxx_allocator_flag" >&6
6301
6302
6303   # Set configure bits for specified locale package
6304   case ${enable_libstdcxx_allocator_flag} in
6305     bitmap)
6306       ALLOCATOR_H=config/allocator/bitmap_allocator_base.h
6307       ALLOCATOR_NAME=__gnu_cxx::bitmap_allocator
6308       ;;
6309     malloc)
6310       ALLOCATOR_H=config/allocator/malloc_allocator_base.h
6311       ALLOCATOR_NAME=__gnu_cxx::malloc_allocator
6312       ;;
6313     mt)
6314       ALLOCATOR_H=config/allocator/mt_allocator_base.h
6315       ALLOCATOR_NAME=__gnu_cxx::__mt_alloc
6316       ;;
6317     new)
6318       ALLOCATOR_H=config/allocator/new_allocator_base.h
6319       ALLOCATOR_NAME=__gnu_cxx::new_allocator
6320       ;;
6321     pool)
6322       ALLOCATOR_H=config/allocator/pool_allocator_base.h
6323       ALLOCATOR_NAME=__gnu_cxx::__pool_alloc
6324       ;;
6325   esac
6326
6327
6328
6329
6330
6331    # Check whether --enable-cheaders or --disable-cheaders was given.
6332 if test "${enable_cheaders+set}" = set; then
6333   enableval="$enable_cheaders"
6334
6335       case "$enableval" in
6336        c|c_std) ;;
6337        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6338 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6339    { (exit 1); exit 1; }; } ;;
6340                           esac
6341
6342 else
6343   enable_cheaders=$c_model
6344 fi;
6345
6346   { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6347 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6348
6349   C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6350
6351
6352
6353
6354
6355
6356    # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6357 if test "${enable_c_mbchar+set}" = set; then
6358   enableval="$enable_c_mbchar"
6359
6360       case "$enableval" in
6361        yes|no) ;;
6362        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6363 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6364    { (exit 1); exit 1; }; } ;;
6365       esac
6366
6367 else
6368   enable_c_mbchar=yes
6369 fi;
6370
6371   # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6372
6373
6374
6375    # Check whether --enable-c99 or --disable-c99 was given.
6376 if test "${enable_c99+set}" = set; then
6377   enableval="$enable_c99"
6378
6379       case "$enableval" in
6380        yes|no) ;;
6381        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6382 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6383    { (exit 1); exit 1; }; } ;;
6384       esac
6385
6386 else
6387   enable_c99=yes
6388 fi;
6389
6390
6391
6392
6393   ac_ext=cc
6394 ac_cpp='$CXXCPP $CPPFLAGS'
6395 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6396 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6397 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6398
6399
6400   # Check for the existence of <math.h> functions used if C99 is enabled.
6401   ac_c99_math=yes;
6402   echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6403 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6404   cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h.  */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h.  */
6410 #include <math.h>
6411 int
6412 main ()
6413 {
6414 fpclassify(0.0);
6415   ;
6416   return 0;
6417 }
6418 _ACEOF
6419 rm -f conftest.$ac_objext
6420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6421   (eval $ac_compile) 2>conftest.er1
6422   ac_status=$?
6423   grep -v '^ *+' conftest.er1 >conftest.err
6424   rm -f conftest.er1
6425   cat conftest.err >&5
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); } &&
6428          { ac_try='test -z "$ac_cxx_werror_flag"
6429                          || test ! -s conftest.err'
6430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431   (eval $ac_try) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); }; } &&
6435          { ac_try='test -s conftest.$ac_objext'
6436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437   (eval $ac_try) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); }; }; then
6441   :
6442 else
6443   echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6445
6446 ac_c99_math=no
6447 fi
6448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449   cat >conftest.$ac_ext <<_ACEOF
6450 /* confdefs.h.  */
6451 _ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h.  */
6455 #include <math.h>
6456 int
6457 main ()
6458 {
6459 isfinite(0.0);
6460   ;
6461   return 0;
6462 }
6463 _ACEOF
6464 rm -f conftest.$ac_objext
6465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6466   (eval $ac_compile) 2>conftest.er1
6467   ac_status=$?
6468   grep -v '^ *+' conftest.er1 >conftest.err
6469   rm -f conftest.er1
6470   cat conftest.err >&5
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); } &&
6473          { ac_try='test -z "$ac_cxx_werror_flag"
6474                          || test ! -s conftest.err'
6475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476   (eval $ac_try) 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); }; } &&
6480          { ac_try='test -s conftest.$ac_objext'
6481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482   (eval $ac_try) 2>&5
6483   ac_status=$?
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); }; }; then
6486   :
6487 else
6488   echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6490
6491 ac_c99_math=no
6492 fi
6493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6494   cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h.  */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h.  */
6500 #include <math.h>
6501 int
6502 main ()
6503 {
6504 isinf(0.0);
6505   ;
6506   return 0;
6507 }
6508 _ACEOF
6509 rm -f conftest.$ac_objext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6511   (eval $ac_compile) 2>conftest.er1
6512   ac_status=$?
6513   grep -v '^ *+' conftest.er1 >conftest.err
6514   rm -f conftest.er1
6515   cat conftest.err >&5
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); } &&
6518          { ac_try='test -z "$ac_cxx_werror_flag"
6519                          || test ! -s conftest.err'
6520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521   (eval $ac_try) 2>&5
6522   ac_status=$?
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); }; } &&
6525          { ac_try='test -s conftest.$ac_objext'
6526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527   (eval $ac_try) 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); }; }; then
6531   :
6532 else
6533   echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6535
6536 ac_c99_math=no
6537 fi
6538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6539   cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h.  */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h.  */
6545 #include <math.h>
6546 int
6547 main ()
6548 {
6549 isnan(0.0);
6550   ;
6551   return 0;
6552 }
6553 _ACEOF
6554 rm -f conftest.$ac_objext
6555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6556   (eval $ac_compile) 2>conftest.er1
6557   ac_status=$?
6558   grep -v '^ *+' conftest.er1 >conftest.err
6559   rm -f conftest.er1
6560   cat conftest.err >&5
6561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); } &&
6563          { ac_try='test -z "$ac_cxx_werror_flag"
6564                          || test ! -s conftest.err'
6565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566   (eval $ac_try) 2>&5
6567   ac_status=$?
6568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569   (exit $ac_status); }; } &&
6570          { ac_try='test -s conftest.$ac_objext'
6571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6572   (eval $ac_try) 2>&5
6573   ac_status=$?
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); }; }; then
6576   :
6577 else
6578   echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.$ac_ext >&5
6580
6581 ac_c99_math=no
6582 fi
6583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6584   cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h.  */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h.  */
6590 #include <math.h>
6591 int
6592 main ()
6593 {
6594 isnormal(0.0);
6595   ;
6596   return 0;
6597 }
6598 _ACEOF
6599 rm -f conftest.$ac_objext
6600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6601   (eval $ac_compile) 2>conftest.er1
6602   ac_status=$?
6603   grep -v '^ *+' conftest.er1 >conftest.err
6604   rm -f conftest.er1
6605   cat conftest.err >&5
6606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607   (exit $ac_status); } &&
6608          { ac_try='test -z "$ac_cxx_werror_flag"
6609                          || test ! -s conftest.err'
6610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611   (eval $ac_try) 2>&5
6612   ac_status=$?
6613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614   (exit $ac_status); }; } &&
6615          { ac_try='test -s conftest.$ac_objext'
6616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617   (eval $ac_try) 2>&5
6618   ac_status=$?
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); }; }; then
6621   :
6622 else
6623   echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6625
6626 ac_c99_math=no
6627 fi
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6629   cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h.  */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h.  */
6635 #include <math.h>
6636 int
6637 main ()
6638 {
6639 signbit(0.0);
6640   ;
6641   return 0;
6642 }
6643 _ACEOF
6644 rm -f conftest.$ac_objext
6645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646   (eval $ac_compile) 2>conftest.er1
6647   ac_status=$?
6648   grep -v '^ *+' conftest.er1 >conftest.err
6649   rm -f conftest.er1
6650   cat conftest.err >&5
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); } &&
6653          { ac_try='test -z "$ac_cxx_werror_flag"
6654                          || test ! -s conftest.err'
6655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656   (eval $ac_try) 2>&5
6657   ac_status=$?
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); }; } &&
6660          { ac_try='test -s conftest.$ac_objext'
6661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662   (eval $ac_try) 2>&5
6663   ac_status=$?
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); }; }; then
6666   :
6667 else
6668   echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6670
6671 ac_c99_math=no
6672 fi
6673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674   cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h.  */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h.  */
6680 #include <math.h>
6681 int
6682 main ()
6683 {
6684 isgreater(0.0,0.0);
6685   ;
6686   return 0;
6687 }
6688 _ACEOF
6689 rm -f conftest.$ac_objext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6691   (eval $ac_compile) 2>conftest.er1
6692   ac_status=$?
6693   grep -v '^ *+' conftest.er1 >conftest.err
6694   rm -f conftest.er1
6695   cat conftest.err >&5
6696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697   (exit $ac_status); } &&
6698          { ac_try='test -z "$ac_cxx_werror_flag"
6699                          || test ! -s conftest.err'
6700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6701   (eval $ac_try) 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); }; } &&
6705          { ac_try='test -s conftest.$ac_objext'
6706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707   (eval $ac_try) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); }; }; then
6711   :
6712 else
6713   echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6715
6716 ac_c99_math=no
6717 fi
6718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6719   cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h.  */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h.  */
6725 #include <math.h>
6726 int
6727 main ()
6728 {
6729 isgreaterequal(0.0,0.0);
6730   ;
6731   return 0;
6732 }
6733 _ACEOF
6734 rm -f conftest.$ac_objext
6735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6736   (eval $ac_compile) 2>conftest.er1
6737   ac_status=$?
6738   grep -v '^ *+' conftest.er1 >conftest.err
6739   rm -f conftest.er1
6740   cat conftest.err >&5
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); } &&
6743          { ac_try='test -z "$ac_cxx_werror_flag"
6744                          || test ! -s conftest.err'
6745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6746   (eval $ac_try) 2>&5
6747   ac_status=$?
6748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749   (exit $ac_status); }; } &&
6750          { ac_try='test -s conftest.$ac_objext'
6751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6752   (eval $ac_try) 2>&5
6753   ac_status=$?
6754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755   (exit $ac_status); }; }; then
6756   :
6757 else
6758   echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6760
6761 ac_c99_math=no
6762 fi
6763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6764   cat >conftest.$ac_ext <<_ACEOF
6765 /* confdefs.h.  */
6766 _ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h.  */
6770 #include <math.h>
6771 int
6772 main ()
6773 {
6774 isless(0.0,0.0);
6775   ;
6776   return 0;
6777 }
6778 _ACEOF
6779 rm -f conftest.$ac_objext
6780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6781   (eval $ac_compile) 2>conftest.er1
6782   ac_status=$?
6783   grep -v '^ *+' conftest.er1 >conftest.err
6784   rm -f conftest.er1
6785   cat conftest.err >&5
6786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787   (exit $ac_status); } &&
6788          { ac_try='test -z "$ac_cxx_werror_flag"
6789                          || test ! -s conftest.err'
6790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791   (eval $ac_try) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); }; } &&
6795          { ac_try='test -s conftest.$ac_objext'
6796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797   (eval $ac_try) 2>&5
6798   ac_status=$?
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); }; }; then
6801   :
6802 else
6803   echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6805
6806 ac_c99_math=no
6807 fi
6808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6809   cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h.  */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h.  */
6815 #include <math.h>
6816 int
6817 main ()
6818 {
6819 islessequal(0.0,0.0);
6820   ;
6821   return 0;
6822 }
6823 _ACEOF
6824 rm -f conftest.$ac_objext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6826   (eval $ac_compile) 2>conftest.er1
6827   ac_status=$?
6828   grep -v '^ *+' conftest.er1 >conftest.err
6829   rm -f conftest.er1
6830   cat conftest.err >&5
6831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832   (exit $ac_status); } &&
6833          { ac_try='test -z "$ac_cxx_werror_flag"
6834                          || test ! -s conftest.err'
6835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836   (eval $ac_try) 2>&5
6837   ac_status=$?
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); }; } &&
6840          { ac_try='test -s conftest.$ac_objext'
6841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842   (eval $ac_try) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); }; }; then
6846   :
6847 else
6848   echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6850
6851 ac_c99_math=no
6852 fi
6853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6854   cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h.  */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h.  */
6860 #include <math.h>
6861 int
6862 main ()
6863 {
6864 islessgreater(0.0,0.0);
6865   ;
6866   return 0;
6867 }
6868 _ACEOF
6869 rm -f conftest.$ac_objext
6870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871   (eval $ac_compile) 2>conftest.er1
6872   ac_status=$?
6873   grep -v '^ *+' conftest.er1 >conftest.err
6874   rm -f conftest.er1
6875   cat conftest.err >&5
6876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877   (exit $ac_status); } &&
6878          { ac_try='test -z "$ac_cxx_werror_flag"
6879                          || test ! -s conftest.err'
6880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881   (eval $ac_try) 2>&5
6882   ac_status=$?
6883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884   (exit $ac_status); }; } &&
6885          { ac_try='test -s conftest.$ac_objext'
6886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887   (eval $ac_try) 2>&5
6888   ac_status=$?
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); }; }; then
6891   :
6892 else
6893   echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896 ac_c99_math=no
6897 fi
6898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6899   cat >conftest.$ac_ext <<_ACEOF
6900 /* confdefs.h.  */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h.  */
6905 #include <math.h>
6906 int
6907 main ()
6908 {
6909 isunordered(0.0,0.0);
6910   ;
6911   return 0;
6912 }
6913 _ACEOF
6914 rm -f conftest.$ac_objext
6915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916   (eval $ac_compile) 2>conftest.er1
6917   ac_status=$?
6918   grep -v '^ *+' conftest.er1 >conftest.err
6919   rm -f conftest.er1
6920   cat conftest.err >&5
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); } &&
6923          { ac_try='test -z "$ac_cxx_werror_flag"
6924                          || test ! -s conftest.err'
6925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926   (eval $ac_try) 2>&5
6927   ac_status=$?
6928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929   (exit $ac_status); }; } &&
6930          { ac_try='test -s conftest.$ac_objext'
6931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932   (eval $ac_try) 2>&5
6933   ac_status=$?
6934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935   (exit $ac_status); }; }; then
6936   :
6937 else
6938   echo "$as_me: failed program was:" >&5
6939 sed 's/^/| /' conftest.$ac_ext >&5
6940
6941 ac_c99_math=no
6942 fi
6943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6944   echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6945 echo "${ECHO_T}$ac_c99_math" >&6
6946
6947   if test x"$ac_c99_math" = x"yes"; then
6948     cat >>confdefs.h <<\_ACEOF
6949 #define _GLIBCXX_USE_C99_MATH 1
6950 _ACEOF
6951
6952   fi
6953
6954   # Check for the existence in <stdio.h> of vscanf, et. al.
6955   ac_c99_stdio=yes;
6956   echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6957 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6958   cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h.  */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h.  */
6964 #include <stdio.h>
6965 int
6966 main ()
6967 {
6968 snprintf("12", 0, "%i");
6969   ;
6970   return 0;
6971 }
6972 _ACEOF
6973 rm -f conftest.$ac_objext
6974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6975   (eval $ac_compile) 2>conftest.er1
6976   ac_status=$?
6977   grep -v '^ *+' conftest.er1 >conftest.err
6978   rm -f conftest.er1
6979   cat conftest.err >&5
6980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981   (exit $ac_status); } &&
6982          { ac_try='test -z "$ac_cxx_werror_flag"
6983                          || test ! -s conftest.err'
6984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985   (eval $ac_try) 2>&5
6986   ac_status=$?
6987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988   (exit $ac_status); }; } &&
6989          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6995   :
6996 else
6997   echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
6999
7000 ac_c99_stdio=no
7001 fi
7002 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7003   cat >conftest.$ac_ext <<_ACEOF
7004 /* confdefs.h.  */
7005 _ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h.  */
7009 #include <stdio.h>
7010                   #include <stdarg.h>
7011                   void foo(char* fmt, ...)
7012                   {va_list args; va_start(args, fmt);
7013                   vfscanf(stderr, "%i", args);}
7014 int
7015 main ()
7016 {
7017
7018   ;
7019   return 0;
7020 }
7021 _ACEOF
7022 rm -f conftest.$ac_objext
7023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7024   (eval $ac_compile) 2>conftest.er1
7025   ac_status=$?
7026   grep -v '^ *+' conftest.er1 >conftest.err
7027   rm -f conftest.er1
7028   cat conftest.err >&5
7029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); } &&
7031          { ac_try='test -z "$ac_cxx_werror_flag"
7032                          || test ! -s conftest.err'
7033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034   (eval $ac_try) 2>&5
7035   ac_status=$?
7036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037   (exit $ac_status); }; } &&
7038          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7044   :
7045 else
7046   echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7048
7049 ac_c99_stdio=no
7050 fi
7051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7052   cat >conftest.$ac_ext <<_ACEOF
7053 /* confdefs.h.  */
7054 _ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h.  */
7058 #include <stdio.h>
7059                   #include <stdarg.h>
7060                   void foo(char* fmt, ...)
7061                   {va_list args; va_start(args, fmt);
7062                   vscanf("%i", args);}
7063 int
7064 main ()
7065 {
7066
7067   ;
7068   return 0;
7069 }
7070 _ACEOF
7071 rm -f conftest.$ac_objext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7073   (eval $ac_compile) 2>conftest.er1
7074   ac_status=$?
7075   grep -v '^ *+' conftest.er1 >conftest.err
7076   rm -f conftest.er1
7077   cat conftest.err >&5
7078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); } &&
7080          { ac_try='test -z "$ac_cxx_werror_flag"
7081                          || test ! -s conftest.err'
7082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083   (eval $ac_try) 2>&5
7084   ac_status=$?
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); }; } &&
7087          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7093   :
7094 else
7095   echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7097
7098 ac_c99_stdio=no
7099 fi
7100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101   cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h.  */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h.  */
7107 #include <stdio.h>
7108                   #include <stdarg.h>
7109                   void foo(char* fmt, ...)
7110                   {va_list args; va_start(args, fmt);
7111                   vsnprintf(fmt, 0, "%i", args);}
7112 int
7113 main ()
7114 {
7115
7116   ;
7117   return 0;
7118 }
7119 _ACEOF
7120 rm -f conftest.$ac_objext
7121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7122   (eval $ac_compile) 2>conftest.er1
7123   ac_status=$?
7124   grep -v '^ *+' conftest.er1 >conftest.err
7125   rm -f conftest.er1
7126   cat conftest.err >&5
7127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128   (exit $ac_status); } &&
7129          { ac_try='test -z "$ac_cxx_werror_flag"
7130                          || test ! -s conftest.err'
7131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132   (eval $ac_try) 2>&5
7133   ac_status=$?
7134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135   (exit $ac_status); }; } &&
7136          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7142   :
7143 else
7144   echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7146
7147 ac_c99_stdio=no
7148 fi
7149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7150   cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h.  */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h.  */
7156 #include <stdio.h>
7157                   #include <stdarg.h>
7158                   void foo(char* fmt, ...)
7159                   {va_list args; va_start(args, fmt);
7160                   vsscanf(fmt, "%i", args);}
7161 int
7162 main ()
7163 {
7164
7165   ;
7166   return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171   (eval $ac_compile) 2>conftest.er1
7172   ac_status=$?
7173   grep -v '^ *+' conftest.er1 >conftest.err
7174   rm -f conftest.er1
7175   cat conftest.err >&5
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); } &&
7178          { ac_try='test -z "$ac_cxx_werror_flag"
7179                          || test ! -s conftest.err'
7180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181   (eval $ac_try) 2>&5
7182   ac_status=$?
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); }; } &&
7185          { ac_try='test -s conftest.$ac_objext'
7186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187   (eval $ac_try) 2>&5
7188   ac_status=$?
7189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190   (exit $ac_status); }; }; then
7191   :
7192 else
7193   echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7195
7196 ac_c99_stdio=no
7197 fi
7198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7199   echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
7200 echo "${ECHO_T}$ac_c99_stdio" >&6
7201
7202   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
7203   ac_c99_stdlib=yes;
7204   echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
7205 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
7206   if test "${ac_c99_lldiv_t+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209
7210   cat >conftest.$ac_ext <<_ACEOF
7211 /* confdefs.h.  */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h.  */
7216 #include <stdlib.h>
7217 int
7218 main ()
7219 {
7220  lldiv_t mydivt;
7221   ;
7222   return 0;
7223 }
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227   (eval $ac_compile) 2>conftest.er1
7228   ac_status=$?
7229   grep -v '^ *+' conftest.er1 >conftest.err
7230   rm -f conftest.er1
7231   cat conftest.err >&5
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); } &&
7234          { ac_try='test -z "$ac_cxx_werror_flag"
7235                          || test ! -s conftest.err'
7236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7237   (eval $ac_try) 2>&5
7238   ac_status=$?
7239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240   (exit $ac_status); }; } &&
7241          { ac_try='test -s conftest.$ac_objext'
7242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243   (eval $ac_try) 2>&5
7244   ac_status=$?
7245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246   (exit $ac_status); }; }; then
7247   ac_c99_lldiv_t=yes
7248 else
7249   echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7251
7252 ac_c99_lldiv_t=no
7253 fi
7254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7255
7256 fi
7257
7258   echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
7259 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
7260
7261   echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
7262 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
7263   cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h.  */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h.  */
7269 #include <stdlib.h>
7270 int
7271 main ()
7272 {
7273 char* tmp; strtof("gnu", &tmp);
7274   ;
7275   return 0;
7276 }
7277 _ACEOF
7278 rm -f conftest.$ac_objext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7280   (eval $ac_compile) 2>conftest.er1
7281   ac_status=$?
7282   grep -v '^ *+' conftest.er1 >conftest.err
7283   rm -f conftest.er1
7284   cat conftest.err >&5
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); } &&
7287          { ac_try='test -z "$ac_cxx_werror_flag"
7288                          || test ! -s conftest.err'
7289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290   (eval $ac_try) 2>&5
7291   ac_status=$?
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); }; } &&
7294          { ac_try='test -s conftest.$ac_objext'
7295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7296   (eval $ac_try) 2>&5
7297   ac_status=$?
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); }; }; then
7300   :
7301 else
7302   echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7304
7305 ac_c99_stdlib=no
7306 fi
7307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7308   cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h.  */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h.  */
7314 #include <stdlib.h>
7315 int
7316 main ()
7317 {
7318 char* tmp; strtold("gnu", &tmp);
7319   ;
7320   return 0;
7321 }
7322 _ACEOF
7323 rm -f conftest.$ac_objext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325   (eval $ac_compile) 2>conftest.er1
7326   ac_status=$?
7327   grep -v '^ *+' conftest.er1 >conftest.err
7328   rm -f conftest.er1
7329   cat conftest.err >&5
7330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331   (exit $ac_status); } &&
7332          { ac_try='test -z "$ac_cxx_werror_flag"
7333                          || test ! -s conftest.err'
7334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335   (eval $ac_try) 2>&5
7336   ac_status=$?
7337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); }; } &&
7339          { ac_try='test -s conftest.$ac_objext'
7340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341   (eval $ac_try) 2>&5
7342   ac_status=$?
7343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344   (exit $ac_status); }; }; then
7345   :
7346 else
7347   echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.$ac_ext >&5
7349
7350 ac_c99_stdlib=no
7351 fi
7352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7353   cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h.  */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h.  */
7359 #include <stdlib.h>
7360 int
7361 main ()
7362 {
7363 llabs(10);
7364   ;
7365   return 0;
7366 }
7367 _ACEOF
7368 rm -f conftest.$ac_objext
7369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7370   (eval $ac_compile) 2>conftest.er1
7371   ac_status=$?
7372   grep -v '^ *+' conftest.er1 >conftest.err
7373   rm -f conftest.er1
7374   cat conftest.err >&5
7375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376   (exit $ac_status); } &&
7377          { ac_try='test -z "$ac_cxx_werror_flag"
7378                          || test ! -s conftest.err'
7379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380   (eval $ac_try) 2>&5
7381   ac_status=$?
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); }; } &&
7384          { ac_try='test -s conftest.$ac_objext'
7385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386   (eval $ac_try) 2>&5
7387   ac_status=$?
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   (exit $ac_status); }; }; then
7390   :
7391 else
7392   echo "$as_me: failed program was:" >&5
7393 sed 's/^/| /' conftest.$ac_ext >&5
7394
7395 ac_c99_stdlib=no
7396 fi
7397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7398   cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h.  */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h.  */
7404 #include <stdlib.h>
7405 int
7406 main ()
7407 {
7408 lldiv(10,1);
7409   ;
7410   return 0;
7411 }
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415   (eval $ac_compile) 2>conftest.er1
7416   ac_status=$?
7417   grep -v '^ *+' conftest.er1 >conftest.err
7418   rm -f conftest.er1
7419   cat conftest.err >&5
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); } &&
7422          { ac_try='test -z "$ac_cxx_werror_flag"
7423                          || test ! -s conftest.err'
7424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425   (eval $ac_try) 2>&5
7426   ac_status=$?
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); }; } &&
7429          { ac_try='test -s conftest.$ac_objext'
7430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431   (eval $ac_try) 2>&5
7432   ac_status=$?
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); }; }; then
7435   :
7436 else
7437   echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7439
7440 ac_c99_stdlib=no
7441 fi
7442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7443   cat >conftest.$ac_ext <<_ACEOF
7444 /* confdefs.h.  */
7445 _ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h.  */
7449 #include <stdlib.h>
7450 int
7451 main ()
7452 {
7453 atoll("10");
7454   ;
7455   return 0;
7456 }
7457 _ACEOF
7458 rm -f conftest.$ac_objext
7459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7460   (eval $ac_compile) 2>conftest.er1
7461   ac_status=$?
7462   grep -v '^ *+' conftest.er1 >conftest.err
7463   rm -f conftest.er1
7464   cat conftest.err >&5
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); } &&
7467          { ac_try='test -z "$ac_cxx_werror_flag"
7468                          || test ! -s conftest.err'
7469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470   (eval $ac_try) 2>&5
7471   ac_status=$?
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); }; } &&
7474          { ac_try='test -s conftest.$ac_objext'
7475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476   (eval $ac_try) 2>&5
7477   ac_status=$?
7478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479   (exit $ac_status); }; }; then
7480   :
7481 else
7482   echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7484
7485 ac_c99_stdlib=no
7486 fi
7487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7488   cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h.  */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h.  */
7494 #include <stdlib.h>
7495 int
7496 main ()
7497 {
7498 _Exit(0);
7499   ;
7500   return 0;
7501 }
7502 _ACEOF
7503 rm -f conftest.$ac_objext
7504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7505   (eval $ac_compile) 2>conftest.er1
7506   ac_status=$?
7507   grep -v '^ *+' conftest.er1 >conftest.err
7508   rm -f conftest.er1
7509   cat conftest.err >&5
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); } &&
7512          { ac_try='test -z "$ac_cxx_werror_flag"
7513                          || test ! -s conftest.err'
7514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515   (eval $ac_try) 2>&5
7516   ac_status=$?
7517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518   (exit $ac_status); }; } &&
7519          { ac_try='test -s conftest.$ac_objext'
7520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521   (eval $ac_try) 2>&5
7522   ac_status=$?
7523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524   (exit $ac_status); }; }; then
7525   :
7526 else
7527   echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530 ac_c99_stdlib=no
7531 fi
7532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7533   if test x"$ac_c99_lldiv_t" = x"no"; then
7534     ac_c99_stdlib=no;
7535   fi;
7536   echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7537 echo "${ECHO_T}$ac_c99_stdlib" >&6
7538
7539   # Check for the existence of <wchar.h> functions used if C99 is enabled.
7540   # XXX the wchar.h checks should be rolled into the general C99 bits.
7541   ac_c99_wchar=yes;
7542   echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7543 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7544   cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h.  */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h.  */
7550 #include <wchar.h>
7551 int
7552 main ()
7553 {
7554 wcstold(L"10.0", NULL);
7555   ;
7556   return 0;
7557 }
7558 _ACEOF
7559 rm -f conftest.$ac_objext
7560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7561   (eval $ac_compile) 2>conftest.er1
7562   ac_status=$?
7563   grep -v '^ *+' conftest.er1 >conftest.err
7564   rm -f conftest.er1
7565   cat conftest.err >&5
7566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567   (exit $ac_status); } &&
7568          { ac_try='test -z "$ac_cxx_werror_flag"
7569                          || test ! -s conftest.err'
7570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7571   (eval $ac_try) 2>&5
7572   ac_status=$?
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); }; } &&
7575          { ac_try='test -s conftest.$ac_objext'
7576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7577   (eval $ac_try) 2>&5
7578   ac_status=$?
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); }; }; then
7581   :
7582 else
7583   echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7585
7586 ac_c99_wchar=no
7587 fi
7588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7589   cat >conftest.$ac_ext <<_ACEOF
7590 /* confdefs.h.  */
7591 _ACEOF
7592 cat confdefs.h >>conftest.$ac_ext
7593 cat >>conftest.$ac_ext <<_ACEOF
7594 /* end confdefs.h.  */
7595 #include <wchar.h>
7596 int
7597 main ()
7598 {
7599 wcstoll(L"10", NULL, 10);
7600   ;
7601   return 0;
7602 }
7603 _ACEOF
7604 rm -f conftest.$ac_objext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7606   (eval $ac_compile) 2>conftest.er1
7607   ac_status=$?
7608   grep -v '^ *+' conftest.er1 >conftest.err
7609   rm -f conftest.er1
7610   cat conftest.err >&5
7611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612   (exit $ac_status); } &&
7613          { ac_try='test -z "$ac_cxx_werror_flag"
7614                          || test ! -s conftest.err'
7615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616   (eval $ac_try) 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); }; } &&
7620          { ac_try='test -s conftest.$ac_objext'
7621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622   (eval $ac_try) 2>&5
7623   ac_status=$?
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); }; }; then
7626   :
7627 else
7628   echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7630
7631 ac_c99_wchar=no
7632 fi
7633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7634   cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h.  */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h.  */
7640 #include <wchar.h>
7641 int
7642 main ()
7643 {
7644 wcstoull(L"10", NULL, 10);
7645   ;
7646   return 0;
7647 }
7648 _ACEOF
7649 rm -f conftest.$ac_objext
7650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7651   (eval $ac_compile) 2>conftest.er1
7652   ac_status=$?
7653   grep -v '^ *+' conftest.er1 >conftest.err
7654   rm -f conftest.er1
7655   cat conftest.err >&5
7656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657   (exit $ac_status); } &&
7658          { ac_try='test -z "$ac_cxx_werror_flag"
7659                          || test ! -s conftest.err'
7660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661   (eval $ac_try) 2>&5
7662   ac_status=$?
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); }; } &&
7665          { ac_try='test -s conftest.$ac_objext'
7666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667   (eval $ac_try) 2>&5
7668   ac_status=$?
7669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670   (exit $ac_status); }; }; then
7671   :
7672 else
7673   echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7675
7676 ac_c99_wchar=no
7677 fi
7678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7679   echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7680 echo "${ECHO_T}$ac_c99_wchar" >&6
7681
7682   echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7683 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7684   if test x"$ac_c99_math" = x"no" ||
7685      test x"$ac_c99_stdio" = x"no" ||
7686      test x"$ac_c99_stdlib" = x"no" ||
7687      test x"$ac_c99_wchar" = x"no"; then
7688     enable_c99=no;
7689   fi;
7690   echo "$as_me:$LINENO: result: $enable_c99" >&5
7691 echo "${ECHO_T}$enable_c99" >&6
7692
7693   if test x"$ac_99_math" = x"yes"; then
7694     cat >>confdefs.h <<\_ACEOF
7695 #define _GLIBCXX_USE_C99_MATH 1
7696 _ACEOF
7697
7698   fi
7699
7700   # Option parsed, now set things appropriately
7701   if test x"$enable_c99" = x"yes"; then
7702     cat >>confdefs.h <<\_ACEOF
7703 #define _GLIBCXX_USE_C99 1
7704 _ACEOF
7705
7706   fi
7707
7708   ac_ext=c
7709 ac_cpp='$CPP $CPPFLAGS'
7710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713
7714
7715
7716    # Check whether --enable-long-long or --disable-long-long was given.
7717 if test "${enable_long_long+set}" = set; then
7718   enableval="$enable_long_long"
7719
7720       case "$enableval" in
7721        yes|no) ;;
7722        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7723 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7724    { (exit 1); exit 1; }; } ;;
7725       esac
7726
7727 else
7728   enable_long_long=yes
7729 fi;
7730
7731
7732
7733
7734   ac_ext=cc
7735 ac_cpp='$CXXCPP $CPPFLAGS'
7736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7739
7740
7741   echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7742 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7743   # iostreams require strtoll, strtoull to compile
7744   cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h.  */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h.  */
7750 #include <stdlib.h>
7751 int
7752 main ()
7753 {
7754 char* tmp; strtoll("gnu", &tmp, 10);
7755   ;
7756   return 0;
7757 }
7758 _ACEOF
7759 rm -f conftest.$ac_objext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761   (eval $ac_compile) 2>conftest.er1
7762   ac_status=$?
7763   grep -v '^ *+' conftest.er1 >conftest.err
7764   rm -f conftest.er1
7765   cat conftest.err >&5
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); } &&
7768          { ac_try='test -z "$ac_cxx_werror_flag"
7769                          || test ! -s conftest.err'
7770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771   (eval $ac_try) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); }; } &&
7775          { ac_try='test -s conftest.$ac_objext'
7776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777   (eval $ac_try) 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); }; }; then
7781   :
7782 else
7783   echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 enable_long_long=no
7787 fi
7788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7789   cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h.  */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h.  */
7795 #include <stdlib.h>
7796 int
7797 main ()
7798 {
7799 char* tmp; strtoull("gnu", &tmp, 10);
7800   ;
7801   return 0;
7802 }
7803 _ACEOF
7804 rm -f conftest.$ac_objext
7805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7806   (eval $ac_compile) 2>conftest.er1
7807   ac_status=$?
7808   grep -v '^ *+' conftest.er1 >conftest.err
7809   rm -f conftest.er1
7810   cat conftest.err >&5
7811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812   (exit $ac_status); } &&
7813          { ac_try='test -z "$ac_cxx_werror_flag"
7814                          || test ! -s conftest.err'
7815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816   (eval $ac_try) 2>&5
7817   ac_status=$?
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); }; } &&
7820          { ac_try='test -s conftest.$ac_objext'
7821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822   (eval $ac_try) 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); }; }; then
7826   :
7827 else
7828   echo "$as_me: failed program was:" >&5
7829 sed 's/^/| /' conftest.$ac_ext >&5
7830
7831 enable_long_long=no
7832 fi
7833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7834
7835   # Option parsed, now set things appropriately
7836   if test $enable_long_long = yes; then
7837     cat >>confdefs.h <<\_ACEOF
7838 #define _GLIBCXX_USE_LONG_LONG 1
7839 _ACEOF
7840
7841   fi
7842   echo "$as_me:$LINENO: result: $enable_long_long" >&5
7843 echo "${ECHO_T}$enable_long_long" >&6
7844
7845   ac_ext=c
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7850
7851
7852
7853   echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7854 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7855   target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7856   echo "$as_me:$LINENO: result: $target_thread_file" >&5
7857 echo "${ECHO_T}$target_thread_file" >&6
7858
7859   if test $target_thread_file != single; then
7860     cat >>confdefs.h <<\_ACEOF
7861 #define HAVE_GTHR_DEFAULT 1
7862 _ACEOF
7863
7864   fi
7865
7866   glibcxx_thread_h=gthr-$target_thread_file.h
7867
7868
7869
7870    # Check whether --enable-concept-checks or --disable-concept-checks was given.
7871 if test "${enable_concept_checks+set}" = set; then
7872   enableval="$enable_concept_checks"
7873
7874       case "$enableval" in
7875        yes|no) ;;
7876        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7877 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7878    { (exit 1); exit 1; }; } ;;
7879       esac
7880
7881 else
7882   enable_concept_checks=no
7883 fi;
7884
7885   if test $enable_concept_checks = yes; then
7886     cat >>confdefs.h <<\_ACEOF
7887 #define _GLIBCXX_CONCEPT_CHECKS 1
7888 _ACEOF
7889
7890   fi
7891
7892
7893    # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7894 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7895   enableval="$enable_libstdcxx_debug_flags"
7896   case "x$enable_libstdcxx_debug_flags" in
7897       xno | x)    enable_libstdcxx_debug_flags= ;;
7898       x-*)        ;;
7899       *)          { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7900 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7901    { (exit 1); exit 1; }; } ;;
7902      esac
7903 else
7904   enable_libstdcxx_debug_flags="-g3 -O0"
7905 fi;
7906
7907
7908   # Option parsed, now set things appropriately
7909   DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7910
7911
7912   { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7913 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7914
7915
7916   echo "$as_me:$LINENO: checking for additional debug build" >&5
7917 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7918    # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7919 if test "${enable_libstdcxx_debug+set}" = set; then
7920   enableval="$enable_libstdcxx_debug"
7921
7922       case "$enableval" in
7923        yes|no) ;;
7924        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7925 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7926    { (exit 1); exit 1; }; } ;;
7927       esac
7928
7929 else
7930   enable_libstdcxx_debug=no
7931 fi;
7932
7933   echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7934 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7935
7936
7937   echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7938 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7939    # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7940 if test "${enable_cxx_flags+set}" = set; then
7941   enableval="$enable_cxx_flags"
7942   case "x$enable_cxx_flags" in
7943       xno | x)   enable_cxx_flags= ;;
7944       x-*)       ;;
7945       *)         { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7946 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7947    { (exit 1); exit 1; }; } ;;
7948      esac
7949 else
7950   enable_cxx_flags=
7951 fi;
7952
7953
7954   # Run through flags (either default or command-line) and set anything
7955   # extra (e.g., #defines) that must accompany particular g++ options.
7956   if test -n "$enable_cxx_flags"; then
7957     for f in $enable_cxx_flags; do
7958       case "$f" in
7959         -fhonor-std)  ;;
7960         -*)  ;;
7961         *)   # and we're trying to pass /what/ exactly?
7962              { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7963 echo "$as_me: error: compiler flags start with a -" >&2;}
7964    { (exit 1); exit 1; }; } ;;
7965       esac
7966     done
7967   fi
7968
7969   EXTRA_CXX_FLAGS="$enable_cxx_flags"
7970   echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7971 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7972
7973
7974
7975 # No surprises, no surprises...
7976 if test $atomicity_dir = cpu/generic ; then
7977   { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7978 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7979   if test $target_thread_file = single; then
7980     { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7981 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7982     { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7983 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7984   else
7985     { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7986 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7987     { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7988 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7989   fi
7990 fi
7991
7992
7993 if $GLIBCXX_IS_NATIVE; then
7994
7995   # We can do more elaborate tests that assume a working linker.
7996   CANADIAN=no
7997
7998   # Check for available headers.
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
8013   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
8014   sys/types.h
8015 do
8016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8018   echo "$as_me:$LINENO: checking for $ac_header" >&5
8019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 fi
8023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8025 else
8026   # Is the header compilable?
8027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8029 cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h.  */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h.  */
8035 $ac_includes_default
8036 #include <$ac_header>
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8040   (eval $ac_compile) 2>conftest.er1
8041   ac_status=$?
8042   grep -v '^ *+' conftest.er1 >conftest.err
8043   rm -f conftest.er1
8044   cat conftest.err >&5
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); } &&
8047          { ac_try='test -z "$ac_c_werror_flag"
8048                          || test ! -s conftest.err'
8049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050   (eval $ac_try) 2>&5
8051   ac_status=$?
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); }; } &&
8054          { ac_try='test -s conftest.$ac_objext'
8055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056   (eval $ac_try) 2>&5
8057   ac_status=$?
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); }; }; then
8060   ac_header_compiler=yes
8061 else
8062   echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8064
8065 ac_header_compiler=no
8066 fi
8067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8069 echo "${ECHO_T}$ac_header_compiler" >&6
8070
8071 # Is the header present?
8072 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h.  */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h.  */
8080 #include <$ac_header>
8081 _ACEOF
8082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8083   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8084   ac_status=$?
8085   grep -v '^ *+' conftest.er1 >conftest.err
8086   rm -f conftest.er1
8087   cat conftest.err >&5
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); } >/dev/null; then
8090   if test -s conftest.err; then
8091     ac_cpp_err=$ac_c_preproc_warn_flag
8092     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8093   else
8094     ac_cpp_err=
8095   fi
8096 else
8097   ac_cpp_err=yes
8098 fi
8099 if test -z "$ac_cpp_err"; then
8100   ac_header_preproc=yes
8101 else
8102   echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105   ac_header_preproc=no
8106 fi
8107 rm -f conftest.err conftest.$ac_ext
8108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8109 echo "${ECHO_T}$ac_header_preproc" >&6
8110
8111 # So?  What about this header?
8112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8113   yes:no: )
8114     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8115 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8116     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8117 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8118     ac_header_preproc=yes
8119     ;;
8120   no:yes:* )
8121     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8122 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8123     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8124 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8125     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8126 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8127     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8128 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8129     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8130 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8131     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8132 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8133     (
8134       cat <<\_ASBOX
8135 ## ----------------------------------------- ##
8136 ## Report this to the package-unused lists.  ##
8137 ## ----------------------------------------- ##
8138 _ASBOX
8139     ) |
8140       sed "s/^/$as_me: WARNING:     /" >&2
8141     ;;
8142 esac
8143 echo "$as_me:$LINENO: checking for $ac_header" >&5
8144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8146   echo $ECHO_N "(cached) $ECHO_C" >&6
8147 else
8148   eval "$as_ac_Header=\$ac_header_preproc"
8149 fi
8150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8152
8153 fi
8154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8155   cat >>confdefs.h <<_ACEOF
8156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8157 _ACEOF
8158
8159 fi
8160
8161 done
8162
8163
8164
8165   # All these tests are for C++; save the language and the compiler flags.
8166   # The CXXFLAGS thing is suspicious, but based on similar bits previously
8167   # found in GLIBCXX_CONFIGURE.
8168
8169
8170   ac_ext=cc
8171 ac_cpp='$CXXCPP $CPPFLAGS'
8172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8175
8176   ac_test_CXXFLAGS="${CXXFLAGS+set}"
8177   ac_save_CXXFLAGS="$CXXFLAGS"
8178
8179   # Check for maintainer-mode bits.
8180   if test x"$USE_MAINTAINER_MODE" = xno; then
8181     WERROR=''
8182   else
8183     WERROR='-Werror'
8184   fi
8185
8186   # Check for -ffunction-sections -fdata-sections
8187   echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
8188 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
8189   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
8190   cat >conftest.$ac_ext <<_ACEOF
8191 /* confdefs.h.  */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h.  */
8196
8197 int
8198 main ()
8199 {
8200 int foo;
8201   ;
8202   return 0;
8203 }
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8207   (eval $ac_compile) 2>conftest.er1
8208   ac_status=$?
8209   grep -v '^ *+' conftest.er1 >conftest.err
8210   rm -f conftest.er1
8211   cat conftest.err >&5
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); } &&
8214          { ac_try='test -z "$ac_cxx_werror_flag"
8215                          || test ! -s conftest.err'
8216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217   (eval $ac_try) 2>&5
8218   ac_status=$?
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); }; } &&
8221          { ac_try='test -s conftest.$ac_objext'
8222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223   (eval $ac_try) 2>&5
8224   ac_status=$?
8225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226   (exit $ac_status); }; }; then
8227   ac_fdsections=yes
8228 else
8229   echo "$as_me: failed program was:" >&5
8230 sed 's/^/| /' conftest.$ac_ext >&5
8231
8232 ac_fdsections=no
8233 fi
8234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8235   if test "$ac_test_CXXFLAGS" = set; then
8236     CXXFLAGS="$ac_save_CXXFLAGS"
8237   else
8238     # this is the suspicious part
8239     CXXFLAGS=''
8240   fi
8241   if test x"$ac_fdsections" = x"yes"; then
8242     SECTION_FLAGS='-ffunction-sections -fdata-sections'
8243   fi
8244   echo "$as_me:$LINENO: result: $ac_fdsections" >&5
8245 echo "${ECHO_T}$ac_fdsections" >&6
8246
8247   ac_ext=c
8248 ac_cpp='$CPP $CPPFLAGS'
8249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8252
8253
8254
8255
8256
8257   # If we're not using GNU ld, then there's no point in even trying these
8258   # tests.  Check for that first.  We should have already tested for gld
8259   # by now (in libtool), but require it now just to be safe...
8260   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
8261   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
8262
8263
8264
8265   # The name set by libtool depends on the version of libtool.  Shame on us
8266   # for depending on an impl detail, but c'est la vie.  Older versions used
8267   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
8268   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
8269   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
8270   # set (hence we're using an older libtool), then set it.
8271   if test x${with_gnu_ld+set} != xset; then
8272     if test x${ac_cv_prog_gnu_ld+set} != xset; then
8273       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
8274       with_gnu_ld=no
8275     else
8276       with_gnu_ld=$ac_cv_prog_gnu_ld
8277     fi
8278   fi
8279
8280   # Start by getting the version number.  I think the libtool test already
8281   # does some of this, but throws away the result.
8282
8283   ldver=`$LD --version 2>/dev/null | head -1 | \
8284          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
8285
8286   glibcxx_gnu_ld_version=`echo $ldver | \
8287          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
8288
8289   # Set --gc-sections.
8290   if test "$with_gnu_ld" = "notbroken"; then
8291     # GNU ld it is!  Joy and bunny rabbits!
8292
8293     # All these tests are for C++; save the language and the compiler flags.
8294     # Need to do this so that g++ won't try to link in libstdc++
8295     ac_test_CFLAGS="${CFLAGS+set}"
8296     ac_save_CFLAGS="$CFLAGS"
8297     CFLAGS='-x c++  -Wl,--gc-sections'
8298
8299     # Check for -Wl,--gc-sections
8300     # XXX This test is broken at the moment, as symbols required for linking
8301     # are now in libsupc++ (not built yet).  In addition, this test has
8302     # cored on solaris in the past.  In addition, --gc-sections doesn't
8303     # really work at the moment (keeps on discarding used sections, first
8304     # .eh_frame and now some of the glibc sections for iconv).
8305     # Bzzzzt.  Thanks for playing, maybe next time.
8306     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
8307 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
8308     if test "$cross_compiling" = yes; then
8309   ac_sectionLDflags=yes
8310 else
8311   cat >conftest.$ac_ext <<_ACEOF
8312 /* confdefs.h.  */
8313 _ACEOF
8314 cat confdefs.h >>conftest.$ac_ext
8315 cat >>conftest.$ac_ext <<_ACEOF
8316 /* end confdefs.h.  */
8317
8318      int main(void)
8319      {
8320        try { throw 1; }
8321        catch (...) { };
8322        return 0;
8323      }
8324
8325 _ACEOF
8326 rm -f conftest$ac_exeext
8327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8328   (eval $ac_link) 2>&5
8329   ac_status=$?
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333   (eval $ac_try) 2>&5
8334   ac_status=$?
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); }; }; then
8337   ac_sectionLDflags=yes
8338 else
8339   echo "$as_me: program exited with status $ac_status" >&5
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8342
8343 ( exit $ac_status )
8344 ac_sectionLDflags=no
8345 fi
8346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8347 fi
8348     if test "$ac_test_CFLAGS" = set; then
8349       CFLAGS="$ac_save_CFLAGS"
8350     else
8351       # this is the suspicious part
8352       CFLAGS=''
8353     fi
8354     if test "$ac_sectionLDflags" = "yes"; then
8355       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
8356     fi
8357     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
8358 echo "${ECHO_T}$ac_sectionLDflags" >&6
8359   fi
8360
8361   # Set linker optimization flags.
8362   if test x"$with_gnu_ld" = x"yes"; then
8363     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
8364   fi
8365
8366
8367
8368
8369
8370   ac_test_CXXFLAGS="${CXXFLAGS+set}"
8371   ac_save_CXXFLAGS="$CXXFLAGS"
8372   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
8373
8374     echo "$as_me:$LINENO: checking for sin in -lm" >&5
8375 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
8376 if test "${ac_cv_lib_m_sin+set}" = set; then
8377   echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379   ac_check_lib_save_LIBS=$LIBS
8380 LIBS="-lm  $LIBS"
8381 if test x$gcc_no_link = xyes; then
8382   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8383 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8384    { (exit 1); exit 1; }; }
8385 fi
8386 cat >conftest.$ac_ext <<_ACEOF
8387 /* confdefs.h.  */
8388 _ACEOF
8389 cat confdefs.h >>conftest.$ac_ext
8390 cat >>conftest.$ac_ext <<_ACEOF
8391 /* end confdefs.h.  */
8392
8393 /* Override any gcc2 internal prototype to avoid an error.  */
8394 #ifdef __cplusplus
8395 extern "C"
8396 #endif
8397 /* We use char because int might match the return type of a gcc2
8398    builtin and then its argument prototype would still apply.  */
8399 char sin ();
8400 int
8401 main ()
8402 {
8403 sin ();
8404   ;
8405   return 0;
8406 }
8407 _ACEOF
8408 rm -f conftest.$ac_objext conftest$ac_exeext
8409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8410   (eval $ac_link) 2>conftest.er1
8411   ac_status=$?
8412   grep -v '^ *+' conftest.er1 >conftest.err
8413   rm -f conftest.er1
8414   cat conftest.err >&5
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); } &&
8417          { ac_try='test -z "$ac_c_werror_flag"
8418                          || test ! -s conftest.err'
8419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8420   (eval $ac_try) 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); }; } &&
8424          { ac_try='test -s conftest$ac_exeext'
8425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; }; then
8430   ac_cv_lib_m_sin=yes
8431 else
8432   echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435 ac_cv_lib_m_sin=no
8436 fi
8437 rm -f conftest.err conftest.$ac_objext \
8438       conftest$ac_exeext conftest.$ac_ext
8439 LIBS=$ac_check_lib_save_LIBS
8440 fi
8441 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8442 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
8443 if test $ac_cv_lib_m_sin = yes; then
8444   libm="-lm"
8445 fi
8446
8447   ac_save_LIBS="$LIBS"
8448   LIBS="$LIBS $libm"
8449
8450     echo "$as_me:$LINENO: checking for sqrtf in -lmx" >&5
8451 echo $ECHO_N "checking for sqrtf in -lmx... $ECHO_C" >&6
8452 if test "${ac_cv_lib_mx_sqrtf+set}" = set; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   ac_check_lib_save_LIBS=$LIBS
8456 LIBS="-lmx  $LIBS"
8457 if test x$gcc_no_link = xyes; then
8458   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8459 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8460    { (exit 1); exit 1; }; }
8461 fi
8462 cat >conftest.$ac_ext <<_ACEOF
8463 /* confdefs.h.  */
8464 _ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h.  */
8468
8469 /* Override any gcc2 internal prototype to avoid an error.  */
8470 #ifdef __cplusplus
8471 extern "C"
8472 #endif
8473 /* We use char because int might match the return type of a gcc2
8474    builtin and then its argument prototype would still apply.  */
8475 char sqrtf ();
8476 int
8477 main ()
8478 {
8479 sqrtf ();
8480   ;
8481   return 0;
8482 }
8483 _ACEOF
8484 rm -f conftest.$ac_objext conftest$ac_exeext
8485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8486   (eval $ac_link) 2>conftest.er1
8487   ac_status=$?
8488   grep -v '^ *+' conftest.er1 >conftest.err
8489   rm -f conftest.er1
8490   cat conftest.err >&5
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); } &&
8493          { ac_try='test -z "$ac_c_werror_flag"
8494                          || test ! -s conftest.err'
8495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496   (eval $ac_try) 2>&5
8497   ac_status=$?
8498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499   (exit $ac_status); }; } &&
8500          { ac_try='test -s conftest$ac_exeext'
8501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502   (eval $ac_try) 2>&5
8503   ac_status=$?
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); }; }; then
8506   ac_cv_lib_mx_sqrtf=yes
8507 else
8508   echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.$ac_ext >&5
8510
8511 ac_cv_lib_mx_sqrtf=no
8512 fi
8513 rm -f conftest.err conftest.$ac_objext \
8514       conftest$ac_exeext conftest.$ac_ext
8515 LIBS=$ac_check_lib_save_LIBS
8516 fi
8517 echo "$as_me:$LINENO: result: $ac_cv_lib_mx_sqrtf" >&5
8518 echo "${ECHO_T}$ac_cv_lib_mx_sqrtf" >&6
8519 if test $ac_cv_lib_mx_sqrtf = yes; then
8520   libmx="-lmx"
8521 fi
8522
8523     LIBS="$LIBS $libmx"
8524
8525
8526
8527   echo "$as_me:$LINENO: checking for isinf declaration" >&5
8528 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
8529   if test x${glibcxx_cv_func_isinf_use+set} != xset; then
8530     if test "${glibcxx_cv_func_isinf_use+set}" = set; then
8531   echo $ECHO_N "(cached) $ECHO_C" >&6
8532 else
8533
8534
8535
8536       ac_ext=cc
8537 ac_cpp='$CXXCPP $CPPFLAGS'
8538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8541
8542       cat >conftest.$ac_ext <<_ACEOF
8543 /* confdefs.h.  */
8544 _ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h.  */
8548 #include <math.h>
8549                       #ifdef HAVE_IEEEFP_H
8550                       #include <ieeefp.h>
8551                       #endif
8552
8553 int
8554 main ()
8555 {
8556  isinf(0);
8557   ;
8558   return 0;
8559 }
8560 _ACEOF
8561 rm -f conftest.$ac_objext
8562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8563   (eval $ac_compile) 2>conftest.er1
8564   ac_status=$?
8565   grep -v '^ *+' conftest.er1 >conftest.err
8566   rm -f conftest.er1
8567   cat conftest.err >&5
8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569   (exit $ac_status); } &&
8570          { ac_try='test -z "$ac_cxx_werror_flag"
8571                          || test ! -s conftest.err'
8572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8573   (eval $ac_try) 2>&5
8574   ac_status=$?
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); }; } &&
8577          { ac_try='test -s conftest.$ac_objext'
8578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579   (eval $ac_try) 2>&5
8580   ac_status=$?
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); }; }; then
8583   glibcxx_cv_func_isinf_use=yes
8584 else
8585   echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8587
8588 glibcxx_cv_func_isinf_use=no
8589 fi
8590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8591       ac_ext=c
8592 ac_cpp='$CPP $CPPFLAGS'
8593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8596
8597
8598 fi
8599
8600   fi
8601   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
8602 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
8603
8604   if test x$glibcxx_cv_func_isinf_use = x"yes"; then
8605
8606 for ac_func in isinf
8607 do
8608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8609 echo "$as_me:$LINENO: checking for $ac_func" >&5
8610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8611 if eval "test \"\${$as_ac_var+set}\" = set"; then
8612   echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614   if test x$gcc_no_link = xyes; then
8615   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8616 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8617    { (exit 1); exit 1; }; }
8618 fi
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h.  */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h.  */
8625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8627 #define $ac_func innocuous_$ac_func
8628
8629 /* System header to define __stub macros and hopefully few prototypes,
8630     which can conflict with char $ac_func (); below.
8631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8632     <limits.h> exists even on freestanding compilers.  */
8633
8634 #ifdef __STDC__
8635 # include <limits.h>
8636 #else
8637 # include <assert.h>
8638 #endif
8639
8640 #undef $ac_func
8641
8642 /* Override any gcc2 internal prototype to avoid an error.  */
8643 #ifdef __cplusplus
8644 extern "C"
8645 {
8646 #endif
8647 /* We use char because int might match the return type of a gcc2
8648    builtin and then its argument prototype would still apply.  */
8649 char $ac_func ();
8650 /* The GNU C library defines this for functions which it implements
8651     to always fail with ENOSYS.  Some functions are actually named
8652     something starting with __ and the normal name is an alias.  */
8653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8654 choke me
8655 #else
8656 char (*f) () = $ac_func;
8657 #endif
8658 #ifdef __cplusplus
8659 }
8660 #endif
8661
8662 int
8663 main ()
8664 {
8665 return f != $ac_func;
8666   ;
8667   return 0;
8668 }
8669 _ACEOF
8670 rm -f conftest.$ac_objext conftest$ac_exeext
8671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672   (eval $ac_link) 2>conftest.er1
8673   ac_status=$?
8674   grep -v '^ *+' conftest.er1 >conftest.err
8675   rm -f conftest.er1
8676   cat conftest.err >&5
8677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678   (exit $ac_status); } &&
8679          { ac_try='test -z "$ac_c_werror_flag"
8680                          || test ! -s conftest.err'
8681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682   (eval $ac_try) 2>&5
8683   ac_status=$?
8684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); }; } &&
8686          { ac_try='test -s conftest$ac_exeext'
8687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8688   (eval $ac_try) 2>&5
8689   ac_status=$?
8690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691   (exit $ac_status); }; }; then
8692   eval "$as_ac_var=yes"
8693 else
8694   echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8696
8697 eval "$as_ac_var=no"
8698 fi
8699 rm -f conftest.err conftest.$ac_objext \
8700       conftest$ac_exeext conftest.$ac_ext
8701 fi
8702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8704 if test `eval echo '${'$as_ac_var'}'` = yes; then
8705   cat >>confdefs.h <<_ACEOF
8706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8707 _ACEOF
8708
8709 fi
8710 done
8711
8712   else
8713
8714   echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8715 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8716   if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8717     if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720
8721
8722
8723       ac_ext=cc
8724 ac_cpp='$CXXCPP $CPPFLAGS'
8725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8728
8729       cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h.  */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h.  */
8735 #include <math.h>
8736                       #ifdef HAVE_IEEEFP_H
8737                       #include <ieeefp.h>
8738                       #endif
8739
8740 int
8741 main ()
8742 {
8743  _isinf(0);
8744   ;
8745   return 0;
8746 }
8747 _ACEOF
8748 rm -f conftest.$ac_objext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8750   (eval $ac_compile) 2>conftest.er1
8751   ac_status=$?
8752   grep -v '^ *+' conftest.er1 >conftest.err
8753   rm -f conftest.er1
8754   cat conftest.err >&5
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); } &&
8757          { ac_try='test -z "$ac_cxx_werror_flag"
8758                          || test ! -s conftest.err'
8759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760   (eval $ac_try) 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); }; } &&
8764          { ac_try='test -s conftest.$ac_objext'
8765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766   (eval $ac_try) 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); }; }; then
8770   glibcxx_cv_func__isinf_use=yes
8771 else
8772   echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775 glibcxx_cv_func__isinf_use=no
8776 fi
8777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8778       ac_ext=c
8779 ac_cpp='$CPP $CPPFLAGS'
8780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8783
8784
8785 fi
8786
8787   fi
8788   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8789 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8790
8791     if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8792
8793 for ac_func in _isinf
8794 do
8795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8796 echo "$as_me:$LINENO: checking for $ac_func" >&5
8797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8798 if eval "test \"\${$as_ac_var+set}\" = set"; then
8799   echo $ECHO_N "(cached) $ECHO_C" >&6
8800 else
8801   if test x$gcc_no_link = xyes; then
8802   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8803 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8804    { (exit 1); exit 1; }; }
8805 fi
8806 cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h.  */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h.  */
8812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8814 #define $ac_func innocuous_$ac_func
8815
8816 /* System header to define __stub macros and hopefully few prototypes,
8817     which can conflict with char $ac_func (); below.
8818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8819     <limits.h> exists even on freestanding compilers.  */
8820
8821 #ifdef __STDC__
8822 # include <limits.h>
8823 #else
8824 # include <assert.h>
8825 #endif
8826
8827 #undef $ac_func
8828
8829 /* Override any gcc2 internal prototype to avoid an error.  */
8830 #ifdef __cplusplus
8831 extern "C"
8832 {
8833 #endif
8834 /* We use char because int might match the return type of a gcc2
8835    builtin and then its argument prototype would still apply.  */
8836 char $ac_func ();
8837 /* The GNU C library defines this for functions which it implements
8838     to always fail with ENOSYS.  Some functions are actually named
8839     something starting with __ and the normal name is an alias.  */
8840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8841 choke me
8842 #else
8843 char (*f) () = $ac_func;
8844 #endif
8845 #ifdef __cplusplus
8846 }
8847 #endif
8848
8849 int
8850 main ()
8851 {
8852 return f != $ac_func;
8853   ;
8854   return 0;
8855 }
8856 _ACEOF
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859   (eval $ac_link) 2>conftest.er1
8860   ac_status=$?
8861   grep -v '^ *+' conftest.er1 >conftest.err
8862   rm -f conftest.er1
8863   cat conftest.err >&5
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); } &&
8866          { ac_try='test -z "$ac_c_werror_flag"
8867                          || test ! -s conftest.err'
8868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869   (eval $ac_try) 2>&5
8870   ac_status=$?
8871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872   (exit $ac_status); }; } &&
8873          { ac_try='test -s conftest$ac_exeext'
8874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875   (eval $ac_try) 2>&5
8876   ac_status=$?
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); }; }; then
8879   eval "$as_ac_var=yes"
8880 else
8881   echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8883
8884 eval "$as_ac_var=no"
8885 fi
8886 rm -f conftest.err conftest.$ac_objext \
8887       conftest$ac_exeext conftest.$ac_ext
8888 fi
8889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8891 if test `eval echo '${'$as_ac_var'}'` = yes; then
8892   cat >>confdefs.h <<_ACEOF
8893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8894 _ACEOF
8895
8896 fi
8897 done
8898
8899     fi
8900   fi
8901
8902
8903
8904   echo "$as_me:$LINENO: checking for isnan declaration" >&5
8905 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8906   if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8907     if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8908   echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910
8911
8912
8913       ac_ext=cc
8914 ac_cpp='$CXXCPP $CPPFLAGS'
8915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8918
8919       cat >conftest.$ac_ext <<_ACEOF
8920 /* confdefs.h.  */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h.  */
8925 #include <math.h>
8926                       #ifdef HAVE_IEEEFP_H
8927                       #include <ieeefp.h>
8928                       #endif
8929
8930 int
8931 main ()
8932 {
8933  isnan(0);
8934   ;
8935   return 0;
8936 }
8937 _ACEOF
8938 rm -f conftest.$ac_objext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8940   (eval $ac_compile) 2>conftest.er1
8941   ac_status=$?
8942   grep -v '^ *+' conftest.er1 >conftest.err
8943   rm -f conftest.er1
8944   cat conftest.err >&5
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); } &&
8947          { ac_try='test -z "$ac_cxx_werror_flag"
8948                          || test ! -s conftest.err'
8949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950   (eval $ac_try) 2>&5
8951   ac_status=$?
8952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953   (exit $ac_status); }; } &&
8954          { ac_try='test -s conftest.$ac_objext'
8955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956   (eval $ac_try) 2>&5
8957   ac_status=$?
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); }; }; then
8960   glibcxx_cv_func_isnan_use=yes
8961 else
8962   echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8964
8965 glibcxx_cv_func_isnan_use=no
8966 fi
8967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8968       ac_ext=c
8969 ac_cpp='$CPP $CPPFLAGS'
8970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8973
8974
8975 fi
8976
8977   fi
8978   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8979 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8980
8981   if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8982
8983 for ac_func in isnan
8984 do
8985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8986 echo "$as_me:$LINENO: checking for $ac_func" >&5
8987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8988 if eval "test \"\${$as_ac_var+set}\" = set"; then
8989   echo $ECHO_N "(cached) $ECHO_C" >&6
8990 else
8991   if test x$gcc_no_link = xyes; then
8992   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8993 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8994    { (exit 1); exit 1; }; }
8995 fi
8996 cat >conftest.$ac_ext <<_ACEOF
8997 /* confdefs.h.  */
8998 _ACEOF
8999 cat confdefs.h >>conftest.$ac_ext
9000 cat >>conftest.$ac_ext <<_ACEOF
9001 /* end confdefs.h.  */
9002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9004 #define $ac_func innocuous_$ac_func
9005
9006 /* System header to define __stub macros and hopefully few prototypes,
9007     which can conflict with char $ac_func (); below.
9008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9009     <limits.h> exists even on freestanding compilers.  */
9010
9011 #ifdef __STDC__
9012 # include <limits.h>
9013 #else
9014 # include <assert.h>
9015 #endif
9016
9017 #undef $ac_func
9018
9019 /* Override any gcc2 internal prototype to avoid an error.  */
9020 #ifdef __cplusplus
9021 extern "C"
9022 {
9023 #endif
9024 /* We use char because int might match the return type of a gcc2
9025    builtin and then its argument prototype would still apply.  */
9026 char $ac_func ();
9027 /* The GNU C library defines this for functions which it implements
9028     to always fail with ENOSYS.  Some functions are actually named
9029     something starting with __ and the normal name is an alias.  */
9030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9031 choke me
9032 #else
9033 char (*f) () = $ac_func;
9034 #endif
9035 #ifdef __cplusplus
9036 }
9037 #endif
9038
9039 int
9040 main ()
9041 {
9042 return f != $ac_func;
9043   ;
9044   return 0;
9045 }
9046 _ACEOF
9047 rm -f conftest.$ac_objext conftest$ac_exeext
9048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9049   (eval $ac_link) 2>conftest.er1
9050   ac_status=$?
9051   grep -v '^ *+' conftest.er1 >conftest.err
9052   rm -f conftest.er1
9053   cat conftest.err >&5
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); } &&
9056          { ac_try='test -z "$ac_c_werror_flag"
9057                          || test ! -s conftest.err'
9058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059   (eval $ac_try) 2>&5
9060   ac_status=$?
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); }; } &&
9063          { ac_try='test -s conftest$ac_exeext'
9064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065   (eval $ac_try) 2>&5
9066   ac_status=$?
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); }; }; then
9069   eval "$as_ac_var=yes"
9070 else
9071   echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9073
9074 eval "$as_ac_var=no"
9075 fi
9076 rm -f conftest.err conftest.$ac_objext \
9077       conftest$ac_exeext conftest.$ac_ext
9078 fi
9079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9081 if test `eval echo '${'$as_ac_var'}'` = yes; then
9082   cat >>confdefs.h <<_ACEOF
9083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9084 _ACEOF
9085
9086 fi
9087 done
9088
9089   else
9090
9091   echo "$as_me:$LINENO: checking for _isnan declaration" >&5
9092 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
9093   if test x${glibcxx_cv_func__isnan_use+set} != xset; then
9094     if test "${glibcxx_cv_func__isnan_use+set}" = set; then
9095   echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097
9098
9099
9100       ac_ext=cc
9101 ac_cpp='$CXXCPP $CPPFLAGS'
9102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9105
9106       cat >conftest.$ac_ext <<_ACEOF
9107 /* confdefs.h.  */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h.  */
9112 #include <math.h>
9113                       #ifdef HAVE_IEEEFP_H
9114                       #include <ieeefp.h>
9115                       #endif
9116
9117 int
9118 main ()
9119 {
9120  _isnan(0);
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 rm -f conftest.$ac_objext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9127   (eval $ac_compile) 2>conftest.er1
9128   ac_status=$?
9129   grep -v '^ *+' conftest.er1 >conftest.err
9130   rm -f conftest.er1
9131   cat conftest.err >&5
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); } &&
9134          { ac_try='test -z "$ac_cxx_werror_flag"
9135                          || test ! -s conftest.err'
9136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137   (eval $ac_try) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); }; } &&
9141          { ac_try='test -s conftest.$ac_objext'
9142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143   (eval $ac_try) 2>&5
9144   ac_status=$?
9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146   (exit $ac_status); }; }; then
9147   glibcxx_cv_func__isnan_use=yes
9148 else
9149   echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9151
9152 glibcxx_cv_func__isnan_use=no
9153 fi
9154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9155       ac_ext=c
9156 ac_cpp='$CPP $CPPFLAGS'
9157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9160
9161
9162 fi
9163
9164   fi
9165   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
9166 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
9167
9168     if test x$glibcxx_cv_func__isnan_use = x"yes"; then
9169
9170 for ac_func in _isnan
9171 do
9172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9173 echo "$as_me:$LINENO: checking for $ac_func" >&5
9174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9175 if eval "test \"\${$as_ac_var+set}\" = set"; then
9176   echo $ECHO_N "(cached) $ECHO_C" >&6
9177 else
9178   if test x$gcc_no_link = xyes; then
9179   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9181    { (exit 1); exit 1; }; }
9182 fi
9183 cat >conftest.$ac_ext <<_ACEOF
9184 /* confdefs.h.  */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h.  */
9189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9191 #define $ac_func innocuous_$ac_func
9192
9193 /* System header to define __stub macros and hopefully few prototypes,
9194     which can conflict with char $ac_func (); below.
9195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9196     <limits.h> exists even on freestanding compilers.  */
9197
9198 #ifdef __STDC__
9199 # include <limits.h>
9200 #else
9201 # include <assert.h>
9202 #endif
9203
9204 #undef $ac_func
9205
9206 /* Override any gcc2 internal prototype to avoid an error.  */
9207 #ifdef __cplusplus
9208 extern "C"
9209 {
9210 #endif
9211 /* We use char because int might match the return type of a gcc2
9212    builtin and then its argument prototype would still apply.  */
9213 char $ac_func ();
9214 /* The GNU C library defines this for functions which it implements
9215     to always fail with ENOSYS.  Some functions are actually named
9216     something starting with __ and the normal name is an alias.  */
9217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9218 choke me
9219 #else
9220 char (*f) () = $ac_func;
9221 #endif
9222 #ifdef __cplusplus
9223 }
9224 #endif
9225
9226 int
9227 main ()
9228 {
9229 return f != $ac_func;
9230   ;
9231   return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236   (eval $ac_link) 2>conftest.er1
9237   ac_status=$?
9238   grep -v '^ *+' conftest.er1 >conftest.err
9239   rm -f conftest.er1
9240   cat conftest.err >&5
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } &&
9243          { ac_try='test -z "$ac_c_werror_flag"
9244                          || test ! -s conftest.err'
9245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246   (eval $ac_try) 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); }; } &&
9250          { ac_try='test -s conftest$ac_exeext'
9251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252   (eval $ac_try) 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; }; then
9256   eval "$as_ac_var=yes"
9257 else
9258   echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261 eval "$as_ac_var=no"
9262 fi
9263 rm -f conftest.err conftest.$ac_objext \
9264       conftest$ac_exeext conftest.$ac_ext
9265 fi
9266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9268 if test `eval echo '${'$as_ac_var'}'` = yes; then
9269   cat >>confdefs.h <<_ACEOF
9270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9271 _ACEOF
9272
9273 fi
9274 done
9275
9276     fi
9277   fi
9278
9279
9280
9281   echo "$as_me:$LINENO: checking for finite declaration" >&5
9282 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
9283   if test x${glibcxx_cv_func_finite_use+set} != xset; then
9284     if test "${glibcxx_cv_func_finite_use+set}" = set; then
9285   echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287
9288
9289
9290       ac_ext=cc
9291 ac_cpp='$CXXCPP $CPPFLAGS'
9292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9295
9296       cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302 #include <math.h>
9303                       #ifdef HAVE_IEEEFP_H
9304                       #include <ieeefp.h>
9305                       #endif
9306
9307 int
9308 main ()
9309 {
9310  finite(0);
9311   ;
9312   return 0;
9313 }
9314 _ACEOF
9315 rm -f conftest.$ac_objext
9316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9317   (eval $ac_compile) 2>conftest.er1
9318   ac_status=$?
9319   grep -v '^ *+' conftest.er1 >conftest.err
9320   rm -f conftest.er1
9321   cat conftest.err >&5
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } &&
9324          { ac_try='test -z "$ac_cxx_werror_flag"
9325                          || test ! -s conftest.err'
9326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327   (eval $ac_try) 2>&5
9328   ac_status=$?
9329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330   (exit $ac_status); }; } &&
9331          { ac_try='test -s conftest.$ac_objext'
9332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9333   (eval $ac_try) 2>&5
9334   ac_status=$?
9335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336   (exit $ac_status); }; }; then
9337   glibcxx_cv_func_finite_use=yes
9338 else
9339   echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9341
9342 glibcxx_cv_func_finite_use=no
9343 fi
9344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9345       ac_ext=c
9346 ac_cpp='$CPP $CPPFLAGS'
9347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9350
9351
9352 fi
9353
9354   fi
9355   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
9356 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
9357
9358   if test x$glibcxx_cv_func_finite_use = x"yes"; then
9359
9360 for ac_func in finite
9361 do
9362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9363 echo "$as_me:$LINENO: checking for $ac_func" >&5
9364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9365 if eval "test \"\${$as_ac_var+set}\" = set"; then
9366   echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368   if test x$gcc_no_link = xyes; then
9369   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9370 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9371    { (exit 1); exit 1; }; }
9372 fi
9373 cat >conftest.$ac_ext <<_ACEOF
9374 /* confdefs.h.  */
9375 _ACEOF
9376 cat confdefs.h >>conftest.$ac_ext
9377 cat >>conftest.$ac_ext <<_ACEOF
9378 /* end confdefs.h.  */
9379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9381 #define $ac_func innocuous_$ac_func
9382
9383 /* System header to define __stub macros and hopefully few prototypes,
9384     which can conflict with char $ac_func (); below.
9385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9386     <limits.h> exists even on freestanding compilers.  */
9387
9388 #ifdef __STDC__
9389 # include <limits.h>
9390 #else
9391 # include <assert.h>
9392 #endif
9393
9394 #undef $ac_func
9395
9396 /* Override any gcc2 internal prototype to avoid an error.  */
9397 #ifdef __cplusplus
9398 extern "C"
9399 {
9400 #endif
9401 /* We use char because int might match the return type of a gcc2
9402    builtin and then its argument prototype would still apply.  */
9403 char $ac_func ();
9404 /* The GNU C library defines this for functions which it implements
9405     to always fail with ENOSYS.  Some functions are actually named
9406     something starting with __ and the normal name is an alias.  */
9407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9408 choke me
9409 #else
9410 char (*f) () = $ac_func;
9411 #endif
9412 #ifdef __cplusplus
9413 }
9414 #endif
9415
9416 int
9417 main ()
9418 {
9419 return f != $ac_func;
9420   ;
9421   return 0;
9422 }
9423 _ACEOF
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426   (eval $ac_link) 2>conftest.er1
9427   ac_status=$?
9428   grep -v '^ *+' conftest.er1 >conftest.err
9429   rm -f conftest.er1
9430   cat conftest.err >&5
9431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432   (exit $ac_status); } &&
9433          { ac_try='test -z "$ac_c_werror_flag"
9434                          || test ! -s conftest.err'
9435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436   (eval $ac_try) 2>&5
9437   ac_status=$?
9438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439   (exit $ac_status); }; } &&
9440          { ac_try='test -s conftest$ac_exeext'
9441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442   (eval $ac_try) 2>&5
9443   ac_status=$?
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); }; }; then
9446   eval "$as_ac_var=yes"
9447 else
9448   echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9450
9451 eval "$as_ac_var=no"
9452 fi
9453 rm -f conftest.err conftest.$ac_objext \
9454       conftest$ac_exeext conftest.$ac_ext
9455 fi
9456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9458 if test `eval echo '${'$as_ac_var'}'` = yes; then
9459   cat >>confdefs.h <<_ACEOF
9460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9461 _ACEOF
9462
9463 fi
9464 done
9465
9466   else
9467
9468   echo "$as_me:$LINENO: checking for _finite declaration" >&5
9469 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
9470   if test x${glibcxx_cv_func__finite_use+set} != xset; then
9471     if test "${glibcxx_cv_func__finite_use+set}" = set; then
9472   echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474
9475
9476
9477       ac_ext=cc
9478 ac_cpp='$CXXCPP $CPPFLAGS'
9479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9482
9483       cat >conftest.$ac_ext <<_ACEOF
9484 /* confdefs.h.  */
9485 _ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h.  */
9489 #include <math.h>
9490                       #ifdef HAVE_IEEEFP_H
9491                       #include <ieeefp.h>
9492                       #endif
9493
9494 int
9495 main ()
9496 {
9497  _finite(0);
9498   ;
9499   return 0;
9500 }
9501 _ACEOF
9502 rm -f conftest.$ac_objext
9503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9504   (eval $ac_compile) 2>conftest.er1
9505   ac_status=$?
9506   grep -v '^ *+' conftest.er1 >conftest.err
9507   rm -f conftest.er1
9508   cat conftest.err >&5
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); } &&
9511          { ac_try='test -z "$ac_cxx_werror_flag"
9512                          || test ! -s conftest.err'
9513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514   (eval $ac_try) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); }; } &&
9518          { ac_try='test -s conftest.$ac_objext'
9519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9520   (eval $ac_try) 2>&5
9521   ac_status=$?
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); }; }; then
9524   glibcxx_cv_func__finite_use=yes
9525 else
9526   echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9528
9529 glibcxx_cv_func__finite_use=no
9530 fi
9531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9532       ac_ext=c
9533 ac_cpp='$CPP $CPPFLAGS'
9534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9537
9538
9539 fi
9540
9541   fi
9542   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
9543 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
9544
9545     if test x$glibcxx_cv_func__finite_use = x"yes"; then
9546
9547 for ac_func in _finite
9548 do
9549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9550 echo "$as_me:$LINENO: checking for $ac_func" >&5
9551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9552 if eval "test \"\${$as_ac_var+set}\" = set"; then
9553   echo $ECHO_N "(cached) $ECHO_C" >&6
9554 else
9555   if test x$gcc_no_link = xyes; then
9556   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9557 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9558    { (exit 1); exit 1; }; }
9559 fi
9560 cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h.  */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h.  */
9566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9568 #define $ac_func innocuous_$ac_func
9569
9570 /* System header to define __stub macros and hopefully few prototypes,
9571     which can conflict with char $ac_func (); below.
9572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9573     <limits.h> exists even on freestanding compilers.  */
9574
9575 #ifdef __STDC__
9576 # include <limits.h>
9577 #else
9578 # include <assert.h>
9579 #endif
9580
9581 #undef $ac_func
9582
9583 /* Override any gcc2 internal prototype to avoid an error.  */
9584 #ifdef __cplusplus
9585 extern "C"
9586 {
9587 #endif
9588 /* We use char because int might match the return type of a gcc2
9589    builtin and then its argument prototype would still apply.  */
9590 char $ac_func ();
9591 /* The GNU C library defines this for functions which it implements
9592     to always fail with ENOSYS.  Some functions are actually named
9593     something starting with __ and the normal name is an alias.  */
9594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9595 choke me
9596 #else
9597 char (*f) () = $ac_func;
9598 #endif
9599 #ifdef __cplusplus
9600 }
9601 #endif
9602
9603 int
9604 main ()
9605 {
9606 return f != $ac_func;
9607   ;
9608   return 0;
9609 }
9610 _ACEOF
9611 rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9613   (eval $ac_link) 2>conftest.er1
9614   ac_status=$?
9615   grep -v '^ *+' conftest.er1 >conftest.err
9616   rm -f conftest.er1
9617   cat conftest.err >&5
9618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619   (exit $ac_status); } &&
9620          { ac_try='test -z "$ac_c_werror_flag"
9621                          || test ! -s conftest.err'
9622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623   (eval $ac_try) 2>&5
9624   ac_status=$?
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); }; } &&
9627          { ac_try='test -s conftest$ac_exeext'
9628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629   (eval $ac_try) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; }; then
9633   eval "$as_ac_var=yes"
9634 else
9635   echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9637
9638 eval "$as_ac_var=no"
9639 fi
9640 rm -f conftest.err conftest.$ac_objext \
9641       conftest$ac_exeext conftest.$ac_ext
9642 fi
9643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9645 if test `eval echo '${'$as_ac_var'}'` = yes; then
9646   cat >>confdefs.h <<_ACEOF
9647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9648 _ACEOF
9649
9650 fi
9651 done
9652
9653     fi
9654   fi
9655
9656
9657
9658   echo "$as_me:$LINENO: checking for copysign declaration" >&5
9659 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
9660   if test x${glibcxx_cv_func_copysign_use+set} != xset; then
9661     if test "${glibcxx_cv_func_copysign_use+set}" = set; then
9662   echo $ECHO_N "(cached) $ECHO_C" >&6
9663 else
9664
9665
9666
9667       ac_ext=cc
9668 ac_cpp='$CXXCPP $CPPFLAGS'
9669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9672
9673       cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h.  */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h.  */
9679 #include <math.h>
9680 int
9681 main ()
9682 {
9683  copysign(0, 0);
9684   ;
9685   return 0;
9686 }
9687 _ACEOF
9688 rm -f conftest.$ac_objext
9689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9690   (eval $ac_compile) 2>conftest.er1
9691   ac_status=$?
9692   grep -v '^ *+' conftest.er1 >conftest.err
9693   rm -f conftest.er1
9694   cat conftest.err >&5
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); } &&
9697          { ac_try='test -z "$ac_cxx_werror_flag"
9698                          || test ! -s conftest.err'
9699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700   (eval $ac_try) 2>&5
9701   ac_status=$?
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); }; } &&
9704          { ac_try='test -s conftest.$ac_objext'
9705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706   (eval $ac_try) 2>&5
9707   ac_status=$?
9708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709   (exit $ac_status); }; }; then
9710   glibcxx_cv_func_copysign_use=yes
9711 else
9712   echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9714
9715 glibcxx_cv_func_copysign_use=no
9716 fi
9717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9718       ac_ext=c
9719 ac_cpp='$CPP $CPPFLAGS'
9720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9723
9724
9725 fi
9726
9727   fi
9728   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
9729 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
9730
9731   if test x$glibcxx_cv_func_copysign_use = x"yes"; then
9732
9733 for ac_func in copysign
9734 do
9735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9736 echo "$as_me:$LINENO: checking for $ac_func" >&5
9737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9738 if eval "test \"\${$as_ac_var+set}\" = set"; then
9739   echo $ECHO_N "(cached) $ECHO_C" >&6
9740 else
9741   if test x$gcc_no_link = xyes; then
9742   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9744    { (exit 1); exit 1; }; }
9745 fi
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h.  */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h.  */
9752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9754 #define $ac_func innocuous_$ac_func
9755
9756 /* System header to define __stub macros and hopefully few prototypes,
9757     which can conflict with char $ac_func (); below.
9758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9759     <limits.h> exists even on freestanding compilers.  */
9760
9761 #ifdef __STDC__
9762 # include <limits.h>
9763 #else
9764 # include <assert.h>
9765 #endif
9766
9767 #undef $ac_func
9768
9769 /* Override any gcc2 internal prototype to avoid an error.  */
9770 #ifdef __cplusplus
9771 extern "C"
9772 {
9773 #endif
9774 /* We use char because int might match the return type of a gcc2
9775    builtin and then its argument prototype would still apply.  */
9776 char $ac_func ();
9777 /* The GNU C library defines this for functions which it implements
9778     to always fail with ENOSYS.  Some functions are actually named
9779     something starting with __ and the normal name is an alias.  */
9780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9781 choke me
9782 #else
9783 char (*f) () = $ac_func;
9784 #endif
9785 #ifdef __cplusplus
9786 }
9787 #endif
9788
9789 int
9790 main ()
9791 {
9792 return f != $ac_func;
9793   ;
9794   return 0;
9795 }
9796 _ACEOF
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9799   (eval $ac_link) 2>conftest.er1
9800   ac_status=$?
9801   grep -v '^ *+' conftest.er1 >conftest.err
9802   rm -f conftest.er1
9803   cat conftest.err >&5
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); } &&
9806          { ac_try='test -z "$ac_c_werror_flag"
9807                          || test ! -s conftest.err'
9808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809   (eval $ac_try) 2>&5
9810   ac_status=$?
9811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812   (exit $ac_status); }; } &&
9813          { ac_try='test -s conftest$ac_exeext'
9814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815   (eval $ac_try) 2>&5
9816   ac_status=$?
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); }; }; then
9819   eval "$as_ac_var=yes"
9820 else
9821   echo "$as_me: failed program was:" >&5
9822 sed 's/^/| /' conftest.$ac_ext >&5
9823
9824 eval "$as_ac_var=no"
9825 fi
9826 rm -f conftest.err conftest.$ac_objext \
9827       conftest$ac_exeext conftest.$ac_ext
9828 fi
9829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9831 if test `eval echo '${'$as_ac_var'}'` = yes; then
9832   cat >>confdefs.h <<_ACEOF
9833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9834 _ACEOF
9835
9836 fi
9837 done
9838
9839   else
9840
9841   echo "$as_me:$LINENO: checking for _copysign declaration" >&5
9842 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
9843   if test x${glibcxx_cv_func__copysign_use+set} != xset; then
9844     if test "${glibcxx_cv_func__copysign_use+set}" = set; then
9845   echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847
9848
9849
9850       ac_ext=cc
9851 ac_cpp='$CXXCPP $CPPFLAGS'
9852 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9853 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9854 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9855
9856       cat >conftest.$ac_ext <<_ACEOF
9857 /* confdefs.h.  */
9858 _ACEOF
9859 cat confdefs.h >>conftest.$ac_ext
9860 cat >>conftest.$ac_ext <<_ACEOF
9861 /* end confdefs.h.  */
9862 #include <math.h>
9863 int
9864 main ()
9865 {
9866  _copysign(0, 0);
9867   ;
9868   return 0;
9869 }
9870 _ACEOF
9871 rm -f conftest.$ac_objext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9873   (eval $ac_compile) 2>conftest.er1
9874   ac_status=$?
9875   grep -v '^ *+' conftest.er1 >conftest.err
9876   rm -f conftest.er1
9877   cat conftest.err >&5
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); } &&
9880          { ac_try='test -z "$ac_cxx_werror_flag"
9881                          || test ! -s conftest.err'
9882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9883   (eval $ac_try) 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); }; } &&
9887          { ac_try='test -s conftest.$ac_objext'
9888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889   (eval $ac_try) 2>&5
9890   ac_status=$?
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); }; }; then
9893   glibcxx_cv_func__copysign_use=yes
9894 else
9895   echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 glibcxx_cv_func__copysign_use=no
9899 fi
9900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9901       ac_ext=c
9902 ac_cpp='$CPP $CPPFLAGS'
9903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9906
9907
9908 fi
9909
9910   fi
9911   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
9912 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
9913
9914     if test x$glibcxx_cv_func__copysign_use = x"yes"; then
9915
9916 for ac_func in _copysign
9917 do
9918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9919 echo "$as_me:$LINENO: checking for $ac_func" >&5
9920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9921 if eval "test \"\${$as_ac_var+set}\" = set"; then
9922   echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924   if test x$gcc_no_link = xyes; then
9925   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9926 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9927    { (exit 1); exit 1; }; }
9928 fi
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h.  */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h.  */
9935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9937 #define $ac_func innocuous_$ac_func
9938
9939 /* System header to define __stub macros and hopefully few prototypes,
9940     which can conflict with char $ac_func (); below.
9941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9942     <limits.h> exists even on freestanding compilers.  */
9943
9944 #ifdef __STDC__
9945 # include <limits.h>
9946 #else
9947 # include <assert.h>
9948 #endif
9949
9950 #undef $ac_func
9951
9952 /* Override any gcc2 internal prototype to avoid an error.  */
9953 #ifdef __cplusplus
9954 extern "C"
9955 {
9956 #endif
9957 /* We use char because int might match the return type of a gcc2
9958    builtin and then its argument prototype would still apply.  */
9959 char $ac_func ();
9960 /* The GNU C library defines this for functions which it implements
9961     to always fail with ENOSYS.  Some functions are actually named
9962     something starting with __ and the normal name is an alias.  */
9963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9964 choke me
9965 #else
9966 char (*f) () = $ac_func;
9967 #endif
9968 #ifdef __cplusplus
9969 }
9970 #endif
9971
9972 int
9973 main ()
9974 {
9975 return f != $ac_func;
9976   ;
9977   return 0;
9978 }
9979 _ACEOF
9980 rm -f conftest.$ac_objext conftest$ac_exeext
9981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9982   (eval $ac_link) 2>conftest.er1
9983   ac_status=$?
9984   grep -v '^ *+' conftest.er1 >conftest.err
9985   rm -f conftest.er1
9986   cat conftest.err >&5
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); } &&
9989          { ac_try='test -z "$ac_c_werror_flag"
9990                          || test ! -s conftest.err'
9991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992   (eval $ac_try) 2>&5
9993   ac_status=$?
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); }; } &&
9996          { ac_try='test -s conftest$ac_exeext'
9997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998   (eval $ac_try) 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); }; }; then
10002   eval "$as_ac_var=yes"
10003 else
10004   echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007 eval "$as_ac_var=no"
10008 fi
10009 rm -f conftest.err conftest.$ac_objext \
10010       conftest$ac_exeext conftest.$ac_ext
10011 fi
10012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10014 if test `eval echo '${'$as_ac_var'}'` = yes; then
10015   cat >>confdefs.h <<_ACEOF
10016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10017 _ACEOF
10018
10019 fi
10020 done
10021
10022     fi
10023   fi
10024
10025
10026
10027   echo "$as_me:$LINENO: checking for sincos declaration" >&5
10028 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
10029   if test x${glibcxx_cv_func_sincos_use+set} != xset; then
10030     if test "${glibcxx_cv_func_sincos_use+set}" = set; then
10031   echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033
10034
10035
10036       ac_ext=cc
10037 ac_cpp='$CXXCPP $CPPFLAGS'
10038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10041
10042       cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h.  */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h.  */
10048 #include <math.h>
10049 int
10050 main ()
10051 {
10052  sincos(0, 0, 0);
10053   ;
10054   return 0;
10055 }
10056 _ACEOF
10057 rm -f conftest.$ac_objext
10058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10059   (eval $ac_compile) 2>conftest.er1
10060   ac_status=$?
10061   grep -v '^ *+' conftest.er1 >conftest.err
10062   rm -f conftest.er1
10063   cat conftest.err >&5
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); } &&
10066          { ac_try='test -z "$ac_cxx_werror_flag"
10067                          || test ! -s conftest.err'
10068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069   (eval $ac_try) 2>&5
10070   ac_status=$?
10071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072   (exit $ac_status); }; } &&
10073          { ac_try='test -s conftest.$ac_objext'
10074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075   (eval $ac_try) 2>&5
10076   ac_status=$?
10077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078   (exit $ac_status); }; }; then
10079   glibcxx_cv_func_sincos_use=yes
10080 else
10081   echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10083
10084 glibcxx_cv_func_sincos_use=no
10085 fi
10086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10087       ac_ext=c
10088 ac_cpp='$CPP $CPPFLAGS'
10089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10092
10093
10094 fi
10095
10096   fi
10097   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
10098 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
10099
10100   if test x$glibcxx_cv_func_sincos_use = x"yes"; then
10101
10102 for ac_func in sincos
10103 do
10104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10105 echo "$as_me:$LINENO: checking for $ac_func" >&5
10106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10107 if eval "test \"\${$as_ac_var+set}\" = set"; then
10108   echo $ECHO_N "(cached) $ECHO_C" >&6
10109 else
10110   if test x$gcc_no_link = xyes; then
10111   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10112 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10113    { (exit 1); exit 1; }; }
10114 fi
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h.  */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h.  */
10121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10123 #define $ac_func innocuous_$ac_func
10124
10125 /* System header to define __stub macros and hopefully few prototypes,
10126     which can conflict with char $ac_func (); below.
10127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10128     <limits.h> exists even on freestanding compilers.  */
10129
10130 #ifdef __STDC__
10131 # include <limits.h>
10132 #else
10133 # include <assert.h>
10134 #endif
10135
10136 #undef $ac_func
10137
10138 /* Override any gcc2 internal prototype to avoid an error.  */
10139 #ifdef __cplusplus
10140 extern "C"
10141 {
10142 #endif
10143 /* We use char because int might match the return type of a gcc2
10144    builtin and then its argument prototype would still apply.  */
10145 char $ac_func ();
10146 /* The GNU C library defines this for functions which it implements
10147     to always fail with ENOSYS.  Some functions are actually named
10148     something starting with __ and the normal name is an alias.  */
10149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10150 choke me
10151 #else
10152 char (*f) () = $ac_func;
10153 #endif
10154 #ifdef __cplusplus
10155 }
10156 #endif
10157
10158 int
10159 main ()
10160 {
10161 return f != $ac_func;
10162   ;
10163   return 0;
10164 }
10165 _ACEOF
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168   (eval $ac_link) 2>conftest.er1
10169   ac_status=$?
10170   grep -v '^ *+' conftest.er1 >conftest.err
10171   rm -f conftest.er1
10172   cat conftest.err >&5
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); } &&
10175          { ac_try='test -z "$ac_c_werror_flag"
10176                          || test ! -s conftest.err'
10177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178   (eval $ac_try) 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; } &&
10182          { ac_try='test -s conftest$ac_exeext'
10183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184   (eval $ac_try) 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); }; }; then
10188   eval "$as_ac_var=yes"
10189 else
10190   echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10192
10193 eval "$as_ac_var=no"
10194 fi
10195 rm -f conftest.err conftest.$ac_objext \
10196       conftest$ac_exeext conftest.$ac_ext
10197 fi
10198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10200 if test `eval echo '${'$as_ac_var'}'` = yes; then
10201   cat >>confdefs.h <<_ACEOF
10202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10203 _ACEOF
10204
10205 fi
10206 done
10207
10208   else
10209
10210   echo "$as_me:$LINENO: checking for _sincos declaration" >&5
10211 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
10212   if test x${glibcxx_cv_func__sincos_use+set} != xset; then
10213     if test "${glibcxx_cv_func__sincos_use+set}" = set; then
10214   echo $ECHO_N "(cached) $ECHO_C" >&6
10215 else
10216
10217
10218
10219       ac_ext=cc
10220 ac_cpp='$CXXCPP $CPPFLAGS'
10221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10224
10225       cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h.  */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h.  */
10231 #include <math.h>
10232 int
10233 main ()
10234 {
10235  _sincos(0, 0, 0);
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10242   (eval $ac_compile) 2>conftest.er1
10243   ac_status=$?
10244   grep -v '^ *+' conftest.er1 >conftest.err
10245   rm -f conftest.er1
10246   cat conftest.err >&5
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); } &&
10249          { ac_try='test -z "$ac_cxx_werror_flag"
10250                          || test ! -s conftest.err'
10251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252   (eval $ac_try) 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); }; } &&
10256          { ac_try='test -s conftest.$ac_objext'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; }; then
10262   glibcxx_cv_func__sincos_use=yes
10263 else
10264   echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10266
10267 glibcxx_cv_func__sincos_use=no
10268 fi
10269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10270       ac_ext=c
10271 ac_cpp='$CPP $CPPFLAGS'
10272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10275
10276
10277 fi
10278
10279   fi
10280   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
10281 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
10282
10283     if test x$glibcxx_cv_func__sincos_use = x"yes"; then
10284
10285 for ac_func in _sincos
10286 do
10287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10288 echo "$as_me:$LINENO: checking for $ac_func" >&5
10289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10290 if eval "test \"\${$as_ac_var+set}\" = set"; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293   if test x$gcc_no_link = xyes; then
10294   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10295 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10296    { (exit 1); exit 1; }; }
10297 fi
10298 cat >conftest.$ac_ext <<_ACEOF
10299 /* confdefs.h.  */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h.  */
10304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10305    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10306 #define $ac_func innocuous_$ac_func
10307
10308 /* System header to define __stub macros and hopefully few prototypes,
10309     which can conflict with char $ac_func (); below.
10310     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10311     <limits.h> exists even on freestanding compilers.  */
10312
10313 #ifdef __STDC__
10314 # include <limits.h>
10315 #else
10316 # include <assert.h>
10317 #endif
10318
10319 #undef $ac_func
10320
10321 /* Override any gcc2 internal prototype to avoid an error.  */
10322 #ifdef __cplusplus
10323 extern "C"
10324 {
10325 #endif
10326 /* We use char because int might match the return type of a gcc2
10327    builtin and then its argument prototype would still apply.  */
10328 char $ac_func ();
10329 /* The GNU C library defines this for functions which it implements
10330     to always fail with ENOSYS.  Some functions are actually named
10331     something starting with __ and the normal name is an alias.  */
10332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10333 choke me
10334 #else
10335 char (*f) () = $ac_func;
10336 #endif
10337 #ifdef __cplusplus
10338 }
10339 #endif
10340
10341 int
10342 main ()
10343 {
10344 return f != $ac_func;
10345   ;
10346   return 0;
10347 }
10348 _ACEOF
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351   (eval $ac_link) 2>conftest.er1
10352   ac_status=$?
10353   grep -v '^ *+' conftest.er1 >conftest.err
10354   rm -f conftest.er1
10355   cat conftest.err >&5
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); } &&
10358          { ac_try='test -z "$ac_c_werror_flag"
10359                          || test ! -s conftest.err'
10360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361   (eval $ac_try) 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); }; } &&
10365          { ac_try='test -s conftest$ac_exeext'
10366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367   (eval $ac_try) 2>&5
10368   ac_status=$?
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); }; }; then
10371   eval "$as_ac_var=yes"
10372 else
10373   echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10375
10376 eval "$as_ac_var=no"
10377 fi
10378 rm -f conftest.err conftest.$ac_objext \
10379       conftest$ac_exeext conftest.$ac_ext
10380 fi
10381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10383 if test `eval echo '${'$as_ac_var'}'` = yes; then
10384   cat >>confdefs.h <<_ACEOF
10385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10386 _ACEOF
10387
10388 fi
10389 done
10390
10391     fi
10392   fi
10393
10394
10395
10396   echo "$as_me:$LINENO: checking for fpclass declaration" >&5
10397 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
10398   if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
10399     if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
10400   echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402
10403
10404
10405       ac_ext=cc
10406 ac_cpp='$CXXCPP $CPPFLAGS'
10407 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10408 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10409 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10410
10411       cat >conftest.$ac_ext <<_ACEOF
10412 /* confdefs.h.  */
10413 _ACEOF
10414 cat confdefs.h >>conftest.$ac_ext
10415 cat >>conftest.$ac_ext <<_ACEOF
10416 /* end confdefs.h.  */
10417 #include <math.h>
10418                       #ifdef HAVE_IEEEFP_H
10419                       #include <ieeefp.h>
10420                       #endif
10421
10422 int
10423 main ()
10424 {
10425  fpclass(0);
10426   ;
10427   return 0;
10428 }
10429 _ACEOF
10430 rm -f conftest.$ac_objext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10432   (eval $ac_compile) 2>conftest.er1
10433   ac_status=$?
10434   grep -v '^ *+' conftest.er1 >conftest.err
10435   rm -f conftest.er1
10436   cat conftest.err >&5
10437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438   (exit $ac_status); } &&
10439          { ac_try='test -z "$ac_cxx_werror_flag"
10440                          || test ! -s conftest.err'
10441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10442   (eval $ac_try) 2>&5
10443   ac_status=$?
10444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445   (exit $ac_status); }; } &&
10446          { ac_try='test -s conftest.$ac_objext'
10447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448   (eval $ac_try) 2>&5
10449   ac_status=$?
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); }; }; then
10452   glibcxx_cv_func_fpclass_use=yes
10453 else
10454   echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10456
10457 glibcxx_cv_func_fpclass_use=no
10458 fi
10459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10460       ac_ext=c
10461 ac_cpp='$CPP $CPPFLAGS'
10462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10465
10466
10467 fi
10468
10469   fi
10470   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
10471 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
10472
10473   if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
10474
10475 for ac_func in fpclass
10476 do
10477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10478 echo "$as_me:$LINENO: checking for $ac_func" >&5
10479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10480 if eval "test \"\${$as_ac_var+set}\" = set"; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   if test x$gcc_no_link = xyes; then
10484   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10485 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10486    { (exit 1); exit 1; }; }
10487 fi
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h.  */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h.  */
10494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10496 #define $ac_func innocuous_$ac_func
10497
10498 /* System header to define __stub macros and hopefully few prototypes,
10499     which can conflict with char $ac_func (); below.
10500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10501     <limits.h> exists even on freestanding compilers.  */
10502
10503 #ifdef __STDC__
10504 # include <limits.h>
10505 #else
10506 # include <assert.h>
10507 #endif
10508
10509 #undef $ac_func
10510
10511 /* Override any gcc2 internal prototype to avoid an error.  */
10512 #ifdef __cplusplus
10513 extern "C"
10514 {
10515 #endif
10516 /* We use char because int might match the return type of a gcc2
10517    builtin and then its argument prototype would still apply.  */
10518 char $ac_func ();
10519 /* The GNU C library defines this for functions which it implements
10520     to always fail with ENOSYS.  Some functions are actually named
10521     something starting with __ and the normal name is an alias.  */
10522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10523 choke me
10524 #else
10525 char (*f) () = $ac_func;
10526 #endif
10527 #ifdef __cplusplus
10528 }
10529 #endif
10530
10531 int
10532 main ()
10533 {
10534 return f != $ac_func;
10535   ;
10536   return 0;
10537 }
10538 _ACEOF
10539 rm -f conftest.$ac_objext conftest$ac_exeext
10540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10541   (eval $ac_link) 2>conftest.er1
10542   ac_status=$?
10543   grep -v '^ *+' conftest.er1 >conftest.err
10544   rm -f conftest.er1
10545   cat conftest.err >&5
10546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547   (exit $ac_status); } &&
10548          { ac_try='test -z "$ac_c_werror_flag"
10549                          || test ! -s conftest.err'
10550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10551   (eval $ac_try) 2>&5
10552   ac_status=$?
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); }; } &&
10555          { ac_try='test -s conftest$ac_exeext'
10556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557   (eval $ac_try) 2>&5
10558   ac_status=$?
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); }; }; then
10561   eval "$as_ac_var=yes"
10562 else
10563   echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 eval "$as_ac_var=no"
10567 fi
10568 rm -f conftest.err conftest.$ac_objext \
10569       conftest$ac_exeext conftest.$ac_ext
10570 fi
10571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10573 if test `eval echo '${'$as_ac_var'}'` = yes; then
10574   cat >>confdefs.h <<_ACEOF
10575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10576 _ACEOF
10577
10578 fi
10579 done
10580
10581   else
10582
10583   echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
10584 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
10585   if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
10586     if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
10587   echo $ECHO_N "(cached) $ECHO_C" >&6
10588 else
10589
10590
10591
10592       ac_ext=cc
10593 ac_cpp='$CXXCPP $CPPFLAGS'
10594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10597
10598       cat >conftest.$ac_ext <<_ACEOF
10599 /* confdefs.h.  */
10600 _ACEOF
10601 cat confdefs.h >>conftest.$ac_ext
10602 cat >>conftest.$ac_ext <<_ACEOF
10603 /* end confdefs.h.  */
10604 #include <math.h>
10605                       #ifdef HAVE_IEEEFP_H
10606                       #include <ieeefp.h>
10607                       #endif
10608
10609 int
10610 main ()
10611 {
10612  _fpclass(0);
10613   ;
10614   return 0;
10615 }
10616 _ACEOF
10617 rm -f conftest.$ac_objext
10618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10619   (eval $ac_compile) 2>conftest.er1
10620   ac_status=$?
10621   grep -v '^ *+' conftest.er1 >conftest.err
10622   rm -f conftest.er1
10623   cat conftest.err >&5
10624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625   (exit $ac_status); } &&
10626          { ac_try='test -z "$ac_cxx_werror_flag"
10627                          || test ! -s conftest.err'
10628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629   (eval $ac_try) 2>&5
10630   ac_status=$?
10631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632   (exit $ac_status); }; } &&
10633          { ac_try='test -s conftest.$ac_objext'
10634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635   (eval $ac_try) 2>&5
10636   ac_status=$?
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); }; }; then
10639   glibcxx_cv_func__fpclass_use=yes
10640 else
10641   echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10643
10644 glibcxx_cv_func__fpclass_use=no
10645 fi
10646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10647       ac_ext=c
10648 ac_cpp='$CPP $CPPFLAGS'
10649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10652
10653
10654 fi
10655
10656   fi
10657   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
10658 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
10659
10660     if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
10661
10662 for ac_func in _fpclass
10663 do
10664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10665 echo "$as_me:$LINENO: checking for $ac_func" >&5
10666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10667 if eval "test \"\${$as_ac_var+set}\" = set"; then
10668   echo $ECHO_N "(cached) $ECHO_C" >&6
10669 else
10670   if test x$gcc_no_link = xyes; then
10671   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10673    { (exit 1); exit 1; }; }
10674 fi
10675 cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h.  */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h.  */
10681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10683 #define $ac_func innocuous_$ac_func
10684
10685 /* System header to define __stub macros and hopefully few prototypes,
10686     which can conflict with char $ac_func (); below.
10687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10688     <limits.h> exists even on freestanding compilers.  */
10689
10690 #ifdef __STDC__
10691 # include <limits.h>
10692 #else
10693 # include <assert.h>
10694 #endif
10695
10696 #undef $ac_func
10697
10698 /* Override any gcc2 internal prototype to avoid an error.  */
10699 #ifdef __cplusplus
10700 extern "C"
10701 {
10702 #endif
10703 /* We use char because int might match the return type of a gcc2
10704    builtin and then its argument prototype would still apply.  */
10705 char $ac_func ();
10706 /* The GNU C library defines this for functions which it implements
10707     to always fail with ENOSYS.  Some functions are actually named
10708     something starting with __ and the normal name is an alias.  */
10709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10710 choke me
10711 #else
10712 char (*f) () = $ac_func;
10713 #endif
10714 #ifdef __cplusplus
10715 }
10716 #endif
10717
10718 int
10719 main ()
10720 {
10721 return f != $ac_func;
10722   ;
10723   return 0;
10724 }
10725 _ACEOF
10726 rm -f conftest.$ac_objext conftest$ac_exeext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728   (eval $ac_link) 2>conftest.er1
10729   ac_status=$?
10730   grep -v '^ *+' conftest.er1 >conftest.err
10731   rm -f conftest.er1
10732   cat conftest.err >&5
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); } &&
10735          { ac_try='test -z "$ac_c_werror_flag"
10736                          || test ! -s conftest.err'
10737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738   (eval $ac_try) 2>&5
10739   ac_status=$?
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); }; } &&
10742          { ac_try='test -s conftest$ac_exeext'
10743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744   (eval $ac_try) 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); }; }; then
10748   eval "$as_ac_var=yes"
10749 else
10750   echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10752
10753 eval "$as_ac_var=no"
10754 fi
10755 rm -f conftest.err conftest.$ac_objext \
10756       conftest$ac_exeext conftest.$ac_ext
10757 fi
10758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10760 if test `eval echo '${'$as_ac_var'}'` = yes; then
10761   cat >>confdefs.h <<_ACEOF
10762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10763 _ACEOF
10764
10765 fi
10766 done
10767
10768     fi
10769   fi
10770
10771
10772
10773   echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
10774 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
10775   if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
10776     if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
10777   echo $ECHO_N "(cached) $ECHO_C" >&6
10778 else
10779
10780
10781
10782       ac_ext=cc
10783 ac_cpp='$CXXCPP $CPPFLAGS'
10784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10787
10788       cat >conftest.$ac_ext <<_ACEOF
10789 /* confdefs.h.  */
10790 _ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h.  */
10794 #include <math.h>
10795                       #ifdef HAVE_IEEEFP_H
10796                       #include <ieeefp.h>
10797                       #endif
10798
10799 int
10800 main ()
10801 {
10802  qfpclass(0);
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 rm -f conftest.$ac_objext
10808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10809   (eval $ac_compile) 2>conftest.er1
10810   ac_status=$?
10811   grep -v '^ *+' conftest.er1 >conftest.err
10812   rm -f conftest.er1
10813   cat conftest.err >&5
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); } &&
10816          { ac_try='test -z "$ac_cxx_werror_flag"
10817                          || test ! -s conftest.err'
10818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10819   (eval $ac_try) 2>&5
10820   ac_status=$?
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); }; } &&
10823          { ac_try='test -s conftest.$ac_objext'
10824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10825   (eval $ac_try) 2>&5
10826   ac_status=$?
10827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828   (exit $ac_status); }; }; then
10829   glibcxx_cv_func_qfpclass_use=yes
10830 else
10831   echo "$as_me: failed program was:" >&5
10832 sed 's/^/| /' conftest.$ac_ext >&5
10833
10834 glibcxx_cv_func_qfpclass_use=no
10835 fi
10836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10837       ac_ext=c
10838 ac_cpp='$CPP $CPPFLAGS'
10839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10842
10843
10844 fi
10845
10846   fi
10847   echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
10848 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
10849
10850   if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
10851
10852 for ac_func in qfpclass
10853 do
10854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10855 echo "$as_me:$LINENO: checking for $ac_func" >&5
10856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10857 if eval "test \"\${$as_ac_var+set}\" = set"; then
10858   echo $ECHO_N "(cached) $ECHO_C" >&6
10859 else
10860   if test x$gcc_no_link = xyes; then
10861   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10862 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10863    { (exit 1); exit 1; }; }
10864 fi
10865 cat >conftest.$ac_ext <<_ACEOF
10866 /* confdefs.h.  */
10867 _ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h.  */
10871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10873 #define $ac_func innocuous_$ac_func
10874
10875 /* System header to define __stub macros and hopefully few prototypes,
10876     which can conflict with char $ac_func (); below.
10877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10878     <limits.h> exists even on freestanding compilers.  */
10879
10880 #ifdef __STDC__
10881 # include <limits.h>
10882 #else
10883 # include <assert.h>
10884 #endif
10885
10886 #undef $ac_func
10887
10888 /* Override any gcc2 internal prototype to avoid an error.  */
10889 #ifdef __cplusplus
10890 extern "C"
10891 {
10892 #endif
10893 /* We use char because int might match the return type of a gcc2
10894    builtin and then its argument prototype would still apply.  */
10895 char $ac_func ();
10896 /* The GNU C library defines this for functions which it implements
10897     to always fail with ENOSYS.  Some functions are actually named
10898     something starting with __ and the normal name is an alias.  */
10899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10900 choke me
10901 #else
10902 char (*f) () = $ac_func;
10903 #endif
10904 #ifdef __cplusplus
10905 }
10906 #endif
10907
10908 int
10909 main ()
10910 {
10911 return f != $ac_func;
10912   ;
10913   return 0;
10914 }
10915 _ACEOF
10916 rm -f conftest.$ac_objext conftest$ac_exeext
10917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10918   (eval $ac_link) 2>conftest.er1
10919   ac_status=$?
10920   grep -v '^ *+' conftest.er1 >conftest.err
10921   rm -f conftest.er1
10922   cat conftest.err >&5
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); } &&
10925          { ac_try='test -z "$ac_c_werror_flag"
10926                          || test ! -s conftest.err'
10927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928   (eval $ac_try) 2>&5
10929   ac_status=$?
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); }; } &&
10932          { ac_try='test -s conftest$ac_exeext'
10933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934   (eval $ac_try) 2>&5
10935   ac_status=$?
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); }; }; then
10938   eval "$as_ac_var=yes"
10939 else
10940   echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10942
10943 eval "$as_ac_var=no"
10944 fi
10945 rm -f conftest.err conftest.$ac_objext \
10946       conftest$ac_exeext conftest.$ac_ext
10947 fi
10948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10950 if test `eval echo '${'$as_ac_var'}'` = yes; then
10951   cat >>confdefs.h <<_ACEOF
10952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10953 _ACEOF
10954
10955 fi
10956 done
10957
10958   else
10959
10960   echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
10961 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
10962   if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
10963     if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
10964   echo $ECHO_N "(cached) $ECHO_C" >&6
10965 else
10966
10967
10968
10969       ac_ext=cc
10970 ac_cpp='$CXXCPP $CPPFLAGS'
10971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10974
10975       cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h.  */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h.  */
10981 #include <math.h>
10982                       #ifdef HAVE_IEEEFP_H
10983                       #include <ieeefp.h>
10984                       #endif
10985
10986 int
10987 main ()
10988 {
10989  _qfpclass(0);
10990   ;
10991   return 0;
10992 }
10993 _ACEOF
10994 rm -f conftest.$ac_objext
10995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10996   (eval $ac_compile) 2>conftest.er1
10997   ac_status=$?
10998   grep -v '^ *+' conftest.er1 >conftest.err
10999   rm -f conftest.er1
11000   cat conftest.err >&5
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } &&
11003          { ac_try='test -z "$ac_cxx_werror_flag"
11004                          || test ! -s conftest.err'
11005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006   (eval $ac_try) 2>&5
11007   ac_status=$?
11008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009   (exit $ac_status); }; } &&
11010          { ac_try='test -s conftest.$ac_objext'
11011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012   (eval $ac_try) 2>&5
11013   ac_status=$?
11014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015   (exit $ac_status); }; }; then
11016   glibcxx_cv_func__qfpclass_use=yes
11017 else
11018   echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11020
11021 glibcxx_cv_func__qfpclass_use=no
11022 fi
11023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11024       ac_ext=c
11025 ac_cpp='$CPP $CPPFLAGS'
11026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11029
11030
11031 fi
11032
11033   fi
11034   echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
11035 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
11036
11037     if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
11038
11039 for ac_func in _qfpclass
11040 do
11041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11042 echo "$as_me:$LINENO: checking for $ac_func" >&5
11043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11044 if eval "test \"\${$as_ac_var+set}\" = set"; then
11045   echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047   if test x$gcc_no_link = xyes; then
11048   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11049 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11050    { (exit 1); exit 1; }; }
11051 fi
11052 cat >conftest.$ac_ext <<_ACEOF
11053 /* confdefs.h.  */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h.  */
11058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11060 #define $ac_func innocuous_$ac_func
11061
11062 /* System header to define __stub macros and hopefully few prototypes,
11063     which can conflict with char $ac_func (); below.
11064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11065     <limits.h> exists even on freestanding compilers.  */
11066
11067 #ifdef __STDC__
11068 # include <limits.h>
11069 #else
11070 # include <assert.h>
11071 #endif
11072
11073 #undef $ac_func
11074
11075 /* Override any gcc2 internal prototype to avoid an error.  */
11076 #ifdef __cplusplus
11077 extern "C"
11078 {
11079 #endif
11080 /* We use char because int might match the return type of a gcc2
11081    builtin and then its argument prototype would still apply.  */
11082 char $ac_func ();
11083 /* The GNU C library defines this for functions which it implements
11084     to always fail with ENOSYS.  Some functions are actually named
11085     something starting with __ and the normal name is an alias.  */
11086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11087 choke me
11088 #else
11089 char (*f) () = $ac_func;
11090 #endif
11091 #ifdef __cplusplus
11092 }
11093 #endif
11094
11095 int
11096 main ()
11097 {
11098 return f != $ac_func;
11099   ;
11100   return 0;
11101 }
11102 _ACEOF
11103 rm -f conftest.$ac_objext conftest$ac_exeext
11104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11105   (eval $ac_link) 2>conftest.er1
11106   ac_status=$?
11107   grep -v '^ *+' conftest.er1 >conftest.err
11108   rm -f conftest.er1
11109   cat conftest.err >&5
11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111   (exit $ac_status); } &&
11112          { ac_try='test -z "$ac_c_werror_flag"
11113                          || test ! -s conftest.err'
11114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115   (eval $ac_try) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; } &&
11119          { ac_try='test -s conftest$ac_exeext'
11120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121   (eval $ac_try) 2>&5
11122   ac_status=$?
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); }; }; then
11125   eval "$as_ac_var=yes"
11126 else
11127   echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11129
11130 eval "$as_ac_var=no"
11131 fi
11132 rm -f conftest.err conftest.$ac_objext \
11133       conftest$ac_exeext conftest.$ac_ext
11134 fi
11135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11137 if test `eval echo '${'$as_ac_var'}'` = yes; then
11138   cat >>confdefs.h <<_ACEOF
11139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11140 _ACEOF
11141
11142 fi
11143 done
11144
11145     fi
11146   fi
11147
11148
11149
11150   echo "$as_me:$LINENO: checking for hypot declaration" >&5
11151 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
11152   if test x${glibcxx_cv_func_hypot_use+set} != xset; then
11153     if test "${glibcxx_cv_func_hypot_use+set}" = set; then
11154   echo $ECHO_N "(cached) $ECHO_C" >&6
11155 else
11156
11157
11158
11159       ac_ext=cc
11160 ac_cpp='$CXXCPP $CPPFLAGS'
11161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11164
11165       cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h.  */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h.  */
11171 #include <math.h>
11172 int
11173 main ()
11174 {
11175  hypot(0, 0);
11176   ;
11177   return 0;
11178 }
11179 _ACEOF
11180 rm -f conftest.$ac_objext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11182   (eval $ac_compile) 2>conftest.er1
11183   ac_status=$?
11184   grep -v '^ *+' conftest.er1 >conftest.err
11185   rm -f conftest.er1
11186   cat conftest.err >&5
11187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188   (exit $ac_status); } &&
11189          { ac_try='test -z "$ac_cxx_werror_flag"
11190                          || test ! -s conftest.err'
11191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192   (eval $ac_try) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; } &&
11196          { ac_try='test -s conftest.$ac_objext'
11197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198   (eval $ac_try) 2>&5
11199   ac_status=$?
11200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201   (exit $ac_status); }; }; then
11202   glibcxx_cv_func_hypot_use=yes
11203 else
11204   echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11206
11207 glibcxx_cv_func_hypot_use=no
11208 fi
11209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11210       ac_ext=c
11211 ac_cpp='$CPP $CPPFLAGS'
11212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11215
11216
11217 fi
11218
11219   fi
11220   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
11221 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
11222
11223   if test x$glibcxx_cv_func_hypot_use = x"yes"; then
11224
11225 for ac_func in hypot
11226 do
11227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11228 echo "$as_me:$LINENO: checking for $ac_func" >&5
11229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11230 if eval "test \"\${$as_ac_var+set}\" = set"; then
11231   echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233   if test x$gcc_no_link = xyes; then
11234   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11235 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11236    { (exit 1); exit 1; }; }
11237 fi
11238 cat >conftest.$ac_ext <<_ACEOF
11239 /* confdefs.h.  */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h.  */
11244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11246 #define $ac_func innocuous_$ac_func
11247
11248 /* System header to define __stub macros and hopefully few prototypes,
11249     which can conflict with char $ac_func (); below.
11250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11251     <limits.h> exists even on freestanding compilers.  */
11252
11253 #ifdef __STDC__
11254 # include <limits.h>
11255 #else
11256 # include <assert.h>
11257 #endif
11258
11259 #undef $ac_func
11260
11261 /* Override any gcc2 internal prototype to avoid an error.  */
11262 #ifdef __cplusplus
11263 extern "C"
11264 {
11265 #endif
11266 /* We use char because int might match the return type of a gcc2
11267    builtin and then its argument prototype would still apply.  */
11268 char $ac_func ();
11269 /* The GNU C library defines this for functions which it implements
11270     to always fail with ENOSYS.  Some functions are actually named
11271     something starting with __ and the normal name is an alias.  */
11272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11273 choke me
11274 #else
11275 char (*f) () = $ac_func;
11276 #endif
11277 #ifdef __cplusplus
11278 }
11279 #endif
11280
11281 int
11282 main ()
11283 {
11284 return f != $ac_func;
11285   ;
11286   return 0;
11287 }
11288 _ACEOF
11289 rm -f conftest.$ac_objext conftest$ac_exeext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291   (eval $ac_link) 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } &&
11298          { ac_try='test -z "$ac_c_werror_flag"
11299                          || test ! -s conftest.err'
11300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301   (eval $ac_try) 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); }; } &&
11305          { ac_try='test -s conftest$ac_exeext'
11306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307   (eval $ac_try) 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); }; }; then
11311   eval "$as_ac_var=yes"
11312 else
11313   echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11315
11316 eval "$as_ac_var=no"
11317 fi
11318 rm -f conftest.err conftest.$ac_objext \
11319       conftest$ac_exeext conftest.$ac_ext
11320 fi
11321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11323 if test `eval echo '${'$as_ac_var'}'` = yes; then
11324   cat >>confdefs.h <<_ACEOF
11325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11326 _ACEOF
11327
11328 fi
11329 done
11330
11331   else
11332
11333   echo "$as_me:$LINENO: checking for _hypot declaration" >&5
11334 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
11335   if test x${glibcxx_cv_func__hypot_use+set} != xset; then
11336     if test "${glibcxx_cv_func__hypot_use+set}" = set; then
11337   echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339
11340
11341
11342       ac_ext=cc
11343 ac_cpp='$CXXCPP $CPPFLAGS'
11344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11347
11348       cat >conftest.$ac_ext <<_ACEOF
11349 /* confdefs.h.  */
11350 _ACEOF
11351 cat confdefs.h >>conftest.$ac_ext
11352 cat >>conftest.$ac_ext <<_ACEOF
11353 /* end confdefs.h.  */
11354 #include <math.h>
11355 int
11356 main ()
11357 {
11358  _hypot(0, 0);
11359   ;
11360   return 0;
11361 }
11362 _ACEOF
11363 rm -f conftest.$ac_objext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11365   (eval $ac_compile) 2>conftest.er1
11366   ac_status=$?
11367   grep -v '^ *+' conftest.er1 >conftest.err
11368   rm -f conftest.er1
11369   cat conftest.err >&5
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); } &&
11372          { ac_try='test -z "$ac_cxx_werror_flag"
11373                          || test ! -s conftest.err'
11374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375   (eval $ac_try) 2>&5
11376   ac_status=$?
11377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378   (exit $ac_status); }; } &&
11379          { ac_try='test -s conftest.$ac_objext'
11380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11381   (eval $ac_try) 2>&5
11382   ac_status=$?
11383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384   (exit $ac_status); }; }; then
11385   glibcxx_cv_func__hypot_use=yes
11386 else
11387   echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11389
11390 glibcxx_cv_func__hypot_use=no
11391 fi
11392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11393       ac_ext=c
11394 ac_cpp='$CPP $CPPFLAGS'
11395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11398
11399
11400 fi
11401
11402   fi
11403   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
11404 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
11405
11406     if test x$glibcxx_cv_func__hypot_use = x"yes"; then
11407
11408 for ac_func in _hypot
11409 do
11410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11411 echo "$as_me:$LINENO: checking for $ac_func" >&5
11412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11413 if eval "test \"\${$as_ac_var+set}\" = set"; then
11414   echo $ECHO_N "(cached) $ECHO_C" >&6
11415 else
11416   if test x$gcc_no_link = xyes; then
11417   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11418 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11419    { (exit 1); exit 1; }; }
11420 fi
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h.  */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h.  */
11427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11429 #define $ac_func innocuous_$ac_func
11430
11431 /* System header to define __stub macros and hopefully few prototypes,
11432     which can conflict with char $ac_func (); below.
11433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11434     <limits.h> exists even on freestanding compilers.  */
11435
11436 #ifdef __STDC__
11437 # include <limits.h>
11438 #else
11439 # include <assert.h>
11440 #endif
11441
11442 #undef $ac_func
11443
11444 /* Override any gcc2 internal prototype to avoid an error.  */
11445 #ifdef __cplusplus
11446 extern "C"
11447 {
11448 #endif
11449 /* We use char because int might match the return type of a gcc2
11450    builtin and then its argument prototype would still apply.  */
11451 char $ac_func ();
11452 /* The GNU C library defines this for functions which it implements
11453     to always fail with ENOSYS.  Some functions are actually named
11454     something starting with __ and the normal name is an alias.  */
11455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11456 choke me
11457 #else
11458 char (*f) () = $ac_func;
11459 #endif
11460 #ifdef __cplusplus
11461 }
11462 #endif
11463
11464 int
11465 main ()
11466 {
11467 return f != $ac_func;
11468   ;
11469   return 0;
11470 }
11471 _ACEOF
11472 rm -f conftest.$ac_objext conftest$ac_exeext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11474   (eval $ac_link) 2>conftest.er1
11475   ac_status=$?
11476   grep -v '^ *+' conftest.er1 >conftest.err
11477   rm -f conftest.er1
11478   cat conftest.err >&5
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); } &&
11481          { ac_try='test -z "$ac_c_werror_flag"
11482                          || test ! -s conftest.err'
11483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484   (eval $ac_try) 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); }; } &&
11488          { ac_try='test -s conftest$ac_exeext'
11489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490   (eval $ac_try) 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); }; }; then
11494   eval "$as_ac_var=yes"
11495 else
11496   echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11498
11499 eval "$as_ac_var=no"
11500 fi
11501 rm -f conftest.err conftest.$ac_objext \
11502       conftest$ac_exeext conftest.$ac_ext
11503 fi
11504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11506 if test `eval echo '${'$as_ac_var'}'` = yes; then
11507   cat >>confdefs.h <<_ACEOF
11508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11509 _ACEOF
11510
11511 fi
11512 done
11513
11514     fi
11515   fi
11516
11517
11518
11519   echo "$as_me:$LINENO: checking for float trig functions" >&5
11520 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
11521   if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
11522   echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11524
11525
11526
11527     ac_ext=cc
11528 ac_cpp='$CXXCPP $CPPFLAGS'
11529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11532
11533     cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h.  */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h.  */
11539 #include <math.h>
11540 int
11541 main ()
11542 {
11543  `for x in acosf asinf atanf \
11544                                           cosf sinf tanf \
11545                                           coshf sinhf tanhf; do echo "$x (0);"; done`
11546   ;
11547   return 0;
11548 }
11549 _ACEOF
11550 rm -f conftest.$ac_objext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552   (eval $ac_compile) 2>conftest.er1
11553   ac_status=$?
11554   grep -v '^ *+' conftest.er1 >conftest.err
11555   rm -f conftest.er1
11556   cat conftest.err >&5
11557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558   (exit $ac_status); } &&
11559          { ac_try='test -z "$ac_cxx_werror_flag"
11560                          || test ! -s conftest.err'
11561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11562   (eval $ac_try) 2>&5
11563   ac_status=$?
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); }; } &&
11566          { ac_try='test -s conftest.$ac_objext'
11567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568   (eval $ac_try) 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); }; }; then
11572   glibcxx_cv_func_float_trig_use=yes
11573 else
11574   echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11576
11577 glibcxx_cv_func_float_trig_use=no
11578 fi
11579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11580     ac_ext=c
11581 ac_cpp='$CPP $CPPFLAGS'
11582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11585
11586 fi
11587
11588   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
11589 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
11590   if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600 for ac_func in acosf asinf atanf \
11601                                           cosf sinf tanf \
11602                                           coshf sinhf tanhf
11603 do
11604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11605 echo "$as_me:$LINENO: checking for $ac_func" >&5
11606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11607 if eval "test \"\${$as_ac_var+set}\" = set"; then
11608   echo $ECHO_N "(cached) $ECHO_C" >&6
11609 else
11610   if test x$gcc_no_link = xyes; then
11611   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11612 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11613    { (exit 1); exit 1; }; }
11614 fi
11615 cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h.  */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h.  */
11621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11622    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11623 #define $ac_func innocuous_$ac_func
11624
11625 /* System header to define __stub macros and hopefully few prototypes,
11626     which can conflict with char $ac_func (); below.
11627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628     <limits.h> exists even on freestanding compilers.  */
11629
11630 #ifdef __STDC__
11631 # include <limits.h>
11632 #else
11633 # include <assert.h>
11634 #endif
11635
11636 #undef $ac_func
11637
11638 /* Override any gcc2 internal prototype to avoid an error.  */
11639 #ifdef __cplusplus
11640 extern "C"
11641 {
11642 #endif
11643 /* We use char because int might match the return type of a gcc2
11644    builtin and then its argument prototype would still apply.  */
11645 char $ac_func ();
11646 /* The GNU C library defines this for functions which it implements
11647     to always fail with ENOSYS.  Some functions are actually named
11648     something starting with __ and the normal name is an alias.  */
11649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11650 choke me
11651 #else
11652 char (*f) () = $ac_func;
11653 #endif
11654 #ifdef __cplusplus
11655 }
11656 #endif
11657
11658 int
11659 main ()
11660 {
11661 return f != $ac_func;
11662   ;
11663   return 0;
11664 }
11665 _ACEOF
11666 rm -f conftest.$ac_objext conftest$ac_exeext
11667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11668   (eval $ac_link) 2>conftest.er1
11669   ac_status=$?
11670   grep -v '^ *+' conftest.er1 >conftest.err
11671   rm -f conftest.er1
11672   cat conftest.err >&5
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); } &&
11675          { ac_try='test -z "$ac_c_werror_flag"
11676                          || test ! -s conftest.err'
11677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678   (eval $ac_try) 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); }; } &&
11682          { ac_try='test -s conftest$ac_exeext'
11683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684   (eval $ac_try) 2>&5
11685   ac_status=$?
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); }; }; then
11688   eval "$as_ac_var=yes"
11689 else
11690   echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.$ac_ext >&5
11692
11693 eval "$as_ac_var=no"
11694 fi
11695 rm -f conftest.err conftest.$ac_objext \
11696       conftest$ac_exeext conftest.$ac_ext
11697 fi
11698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11700 if test `eval echo '${'$as_ac_var'}'` = yes; then
11701   cat >>confdefs.h <<_ACEOF
11702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11703 _ACEOF
11704
11705 fi
11706 done
11707
11708   fi
11709
11710
11711   echo "$as_me:$LINENO: checking for float round functions" >&5
11712 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
11713   if test "${glibcxx_cv_func_float_round_use+set}" = set; then
11714   echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716
11717
11718
11719     ac_ext=cc
11720 ac_cpp='$CXXCPP $CPPFLAGS'
11721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11724
11725     cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h.  */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h.  */
11731 #include <math.h>
11732 int
11733 main ()
11734 {
11735  `for x in ceilf floorf; do echo "$x (0);"; done`
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 rm -f conftest.$ac_objext
11741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11742   (eval $ac_compile) 2>conftest.er1
11743   ac_status=$?
11744   grep -v '^ *+' conftest.er1 >conftest.err
11745   rm -f conftest.er1
11746   cat conftest.err >&5
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); } &&
11749          { ac_try='test -z "$ac_cxx_werror_flag"
11750                          || test ! -s conftest.err'
11751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11752   (eval $ac_try) 2>&5
11753   ac_status=$?
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); }; } &&
11756          { ac_try='test -s conftest.$ac_objext'
11757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758   (eval $ac_try) 2>&5
11759   ac_status=$?
11760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); }; }; then
11762   glibcxx_cv_func_float_round_use=yes
11763 else
11764   echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11766
11767 glibcxx_cv_func_float_round_use=no
11768 fi
11769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11770     ac_ext=c
11771 ac_cpp='$CPP $CPPFLAGS'
11772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11775
11776 fi
11777
11778   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
11779 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
11780   if test x$glibcxx_cv_func_float_round_use = x"yes"; then
11781
11782
11783 for ac_func in ceilf floorf
11784 do
11785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11786 echo "$as_me:$LINENO: checking for $ac_func" >&5
11787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11788 if eval "test \"\${$as_ac_var+set}\" = set"; then
11789   echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791   if test x$gcc_no_link = xyes; then
11792   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11793 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11794    { (exit 1); exit 1; }; }
11795 fi
11796 cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h.  */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h.  */
11802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11804 #define $ac_func innocuous_$ac_func
11805
11806 /* System header to define __stub macros and hopefully few prototypes,
11807     which can conflict with char $ac_func (); below.
11808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11809     <limits.h> exists even on freestanding compilers.  */
11810
11811 #ifdef __STDC__
11812 # include <limits.h>
11813 #else
11814 # include <assert.h>
11815 #endif
11816
11817 #undef $ac_func
11818
11819 /* Override any gcc2 internal prototype to avoid an error.  */
11820 #ifdef __cplusplus
11821 extern "C"
11822 {
11823 #endif
11824 /* We use char because int might match the return type of a gcc2
11825    builtin and then its argument prototype would still apply.  */
11826 char $ac_func ();
11827 /* The GNU C library defines this for functions which it implements
11828     to always fail with ENOSYS.  Some functions are actually named
11829     something starting with __ and the normal name is an alias.  */
11830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11831 choke me
11832 #else
11833 char (*f) () = $ac_func;
11834 #endif
11835 #ifdef __cplusplus
11836 }
11837 #endif
11838
11839 int
11840 main ()
11841 {
11842 return f != $ac_func;
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 rm -f conftest.$ac_objext conftest$ac_exeext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11849   (eval $ac_link) 2>conftest.er1
11850   ac_status=$?
11851   grep -v '^ *+' conftest.er1 >conftest.err
11852   rm -f conftest.er1
11853   cat conftest.err >&5
11854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); } &&
11856          { ac_try='test -z "$ac_c_werror_flag"
11857                          || test ! -s conftest.err'
11858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859   (eval $ac_try) 2>&5
11860   ac_status=$?
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); }; } &&
11863          { ac_try='test -s conftest$ac_exeext'
11864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865   (eval $ac_try) 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); }; }; then
11869   eval "$as_ac_var=yes"
11870 else
11871   echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11873
11874 eval "$as_ac_var=no"
11875 fi
11876 rm -f conftest.err conftest.$ac_objext \
11877       conftest$ac_exeext conftest.$ac_ext
11878 fi
11879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11881 if test `eval echo '${'$as_ac_var'}'` = yes; then
11882   cat >>confdefs.h <<_ACEOF
11883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11884 _ACEOF
11885
11886 fi
11887 done
11888
11889   fi
11890
11891
11892
11893   echo "$as_me:$LINENO: checking for expf declaration" >&5
11894 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
11895   if test x${glibcxx_cv_func_expf_use+set} != xset; then
11896     if test "${glibcxx_cv_func_expf_use+set}" = set; then
11897   echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11899
11900
11901
11902       ac_ext=cc
11903 ac_cpp='$CXXCPP $CPPFLAGS'
11904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11907
11908       cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h.  */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h.  */
11914 #include <math.h>
11915                       #ifdef HAVE_IEEEFP_H
11916                       #include <ieeefp.h>
11917                       #endif
11918
11919 int
11920 main ()
11921 {
11922  expf(0);
11923   ;
11924   return 0;
11925 }
11926 _ACEOF
11927 rm -f conftest.$ac_objext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11929   (eval $ac_compile) 2>conftest.er1
11930   ac_status=$?
11931   grep -v '^ *+' conftest.er1 >conftest.err
11932   rm -f conftest.er1
11933   cat conftest.err >&5
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); } &&
11936          { ac_try='test -z "$ac_cxx_werror_flag"
11937                          || test ! -s conftest.err'
11938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939   (eval $ac_try) 2>&5
11940   ac_status=$?
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); }; } &&
11943          { ac_try='test -s conftest.$ac_objext'
11944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945   (eval $ac_try) 2>&5
11946   ac_status=$?
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); }; }; then
11949   glibcxx_cv_func_expf_use=yes
11950 else
11951   echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11953
11954 glibcxx_cv_func_expf_use=no
11955 fi
11956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11957       ac_ext=c
11958 ac_cpp='$CPP $CPPFLAGS'
11959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11962
11963
11964 fi
11965
11966   fi
11967   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
11968 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
11969
11970   if test x$glibcxx_cv_func_expf_use = x"yes"; then
11971
11972 for ac_func in expf
11973 do
11974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11975 echo "$as_me:$LINENO: checking for $ac_func" >&5
11976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11977 if eval "test \"\${$as_ac_var+set}\" = set"; then
11978   echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980   if test x$gcc_no_link = xyes; then
11981   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11982 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11983    { (exit 1); exit 1; }; }
11984 fi
11985 cat >conftest.$ac_ext <<_ACEOF
11986 /* confdefs.h.  */
11987 _ACEOF
11988 cat confdefs.h >>conftest.$ac_ext
11989 cat >>conftest.$ac_ext <<_ACEOF
11990 /* end confdefs.h.  */
11991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11993 #define $ac_func innocuous_$ac_func
11994
11995 /* System header to define __stub macros and hopefully few prototypes,
11996     which can conflict with char $ac_func (); below.
11997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11998     <limits.h> exists even on freestanding compilers.  */
11999
12000 #ifdef __STDC__
12001 # include <limits.h>
12002 #else
12003 # include <assert.h>
12004 #endif
12005
12006 #undef $ac_func
12007
12008 /* Override any gcc2 internal prototype to avoid an error.  */
12009 #ifdef __cplusplus
12010 extern "C"
12011 {
12012 #endif
12013 /* We use char because int might match the return type of a gcc2
12014    builtin and then its argument prototype would still apply.  */
12015 char $ac_func ();
12016 /* The GNU C library defines this for functions which it implements
12017     to always fail with ENOSYS.  Some functions are actually named
12018     something starting with __ and the normal name is an alias.  */
12019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12020 choke me
12021 #else
12022 char (*f) () = $ac_func;
12023 #endif
12024 #ifdef __cplusplus
12025 }
12026 #endif
12027
12028 int
12029 main ()
12030 {
12031 return f != $ac_func;
12032   ;
12033   return 0;
12034 }
12035 _ACEOF
12036 rm -f conftest.$ac_objext conftest$ac_exeext
12037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12038   (eval $ac_link) 2>conftest.er1
12039   ac_status=$?
12040   grep -v '^ *+' conftest.er1 >conftest.err
12041   rm -f conftest.er1
12042   cat conftest.err >&5
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); } &&
12045          { ac_try='test -z "$ac_c_werror_flag"
12046                          || test ! -s conftest.err'
12047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048   (eval $ac_try) 2>&5
12049   ac_status=$?
12050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051   (exit $ac_status); }; } &&
12052          { ac_try='test -s conftest$ac_exeext'
12053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054   (eval $ac_try) 2>&5
12055   ac_status=$?
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); }; }; then
12058   eval "$as_ac_var=yes"
12059 else
12060   echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12062
12063 eval "$as_ac_var=no"
12064 fi
12065 rm -f conftest.err conftest.$ac_objext \
12066       conftest$ac_exeext conftest.$ac_ext
12067 fi
12068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12070 if test `eval echo '${'$as_ac_var'}'` = yes; then
12071   cat >>confdefs.h <<_ACEOF
12072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12073 _ACEOF
12074
12075 fi
12076 done
12077
12078   else
12079
12080   echo "$as_me:$LINENO: checking for _expf declaration" >&5
12081 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
12082   if test x${glibcxx_cv_func__expf_use+set} != xset; then
12083     if test "${glibcxx_cv_func__expf_use+set}" = set; then
12084   echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086
12087
12088
12089       ac_ext=cc
12090 ac_cpp='$CXXCPP $CPPFLAGS'
12091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12094
12095       cat >conftest.$ac_ext <<_ACEOF
12096 /* confdefs.h.  */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h.  */
12101 #include <math.h>
12102                       #ifdef HAVE_IEEEFP_H
12103                       #include <ieeefp.h>
12104                       #endif
12105
12106 int
12107 main ()
12108 {
12109  _expf(0);
12110   ;
12111   return 0;
12112 }
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12116   (eval $ac_compile) 2>conftest.er1
12117   ac_status=$?
12118   grep -v '^ *+' conftest.er1 >conftest.err
12119   rm -f conftest.er1
12120   cat conftest.err >&5
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); } &&
12123          { ac_try='test -z "$ac_cxx_werror_flag"
12124                          || test ! -s conftest.err'
12125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126   (eval $ac_try) 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); }; } &&
12130          { ac_try='test -s conftest.$ac_objext'
12131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132   (eval $ac_try) 2>&5
12133   ac_status=$?
12134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135   (exit $ac_status); }; }; then
12136   glibcxx_cv_func__expf_use=yes
12137 else
12138   echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12140
12141 glibcxx_cv_func__expf_use=no
12142 fi
12143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12144       ac_ext=c
12145 ac_cpp='$CPP $CPPFLAGS'
12146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12149
12150
12151 fi
12152
12153   fi
12154   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
12155 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
12156
12157     if test x$glibcxx_cv_func__expf_use = x"yes"; then
12158
12159 for ac_func in _expf
12160 do
12161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12162 echo "$as_me:$LINENO: checking for $ac_func" >&5
12163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12164 if eval "test \"\${$as_ac_var+set}\" = set"; then
12165   echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167   if test x$gcc_no_link = xyes; then
12168   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12170    { (exit 1); exit 1; }; }
12171 fi
12172 cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h.  */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h.  */
12178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12180 #define $ac_func innocuous_$ac_func
12181
12182 /* System header to define __stub macros and hopefully few prototypes,
12183     which can conflict with char $ac_func (); below.
12184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12185     <limits.h> exists even on freestanding compilers.  */
12186
12187 #ifdef __STDC__
12188 # include <limits.h>
12189 #else
12190 # include <assert.h>
12191 #endif
12192
12193 #undef $ac_func
12194
12195 /* Override any gcc2 internal prototype to avoid an error.  */
12196 #ifdef __cplusplus
12197 extern "C"
12198 {
12199 #endif
12200 /* We use char because int might match the return type of a gcc2
12201    builtin and then its argument prototype would still apply.  */
12202 char $ac_func ();
12203 /* The GNU C library defines this for functions which it implements
12204     to always fail with ENOSYS.  Some functions are actually named
12205     something starting with __ and the normal name is an alias.  */
12206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12207 choke me
12208 #else
12209 char (*f) () = $ac_func;
12210 #endif
12211 #ifdef __cplusplus
12212 }
12213 #endif
12214
12215 int
12216 main ()
12217 {
12218 return f != $ac_func;
12219   ;
12220   return 0;
12221 }
12222 _ACEOF
12223 rm -f conftest.$ac_objext conftest$ac_exeext
12224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12225   (eval $ac_link) 2>conftest.er1
12226   ac_status=$?
12227   grep -v '^ *+' conftest.er1 >conftest.err
12228   rm -f conftest.er1
12229   cat conftest.err >&5
12230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231   (exit $ac_status); } &&
12232          { ac_try='test -z "$ac_c_werror_flag"
12233                          || test ! -s conftest.err'
12234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235   (eval $ac_try) 2>&5
12236   ac_status=$?
12237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238   (exit $ac_status); }; } &&
12239          { ac_try='test -s conftest$ac_exeext'
12240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241   (eval $ac_try) 2>&5
12242   ac_status=$?
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); }; }; then
12245   eval "$as_ac_var=yes"
12246 else
12247   echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12249
12250 eval "$as_ac_var=no"
12251 fi
12252 rm -f conftest.err conftest.$ac_objext \
12253       conftest$ac_exeext conftest.$ac_ext
12254 fi
12255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12257 if test `eval echo '${'$as_ac_var'}'` = yes; then
12258   cat >>confdefs.h <<_ACEOF
12259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12260 _ACEOF
12261
12262 fi
12263 done
12264
12265     fi
12266   fi
12267
12268
12269
12270   echo "$as_me:$LINENO: checking for isnanf declaration" >&5
12271 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
12272   if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
12273     if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
12274   echo $ECHO_N "(cached) $ECHO_C" >&6
12275 else
12276
12277
12278
12279       ac_ext=cc
12280 ac_cpp='$CXXCPP $CPPFLAGS'
12281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12284
12285       cat >conftest.$ac_ext <<_ACEOF
12286 /* confdefs.h.  */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h.  */
12291 #include <math.h>
12292                       #ifdef HAVE_IEEEFP_H
12293                       #include <ieeefp.h>
12294                       #endif
12295
12296 int
12297 main ()
12298 {
12299  isnanf(0);
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 rm -f conftest.$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306   (eval $ac_compile) 2>conftest.er1
12307   ac_status=$?
12308   grep -v '^ *+' conftest.er1 >conftest.err
12309   rm -f conftest.er1
12310   cat conftest.err >&5
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); } &&
12313          { ac_try='test -z "$ac_cxx_werror_flag"
12314                          || test ! -s conftest.err'
12315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316   (eval $ac_try) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); }; } &&
12320          { ac_try='test -s conftest.$ac_objext'
12321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322   (eval $ac_try) 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; }; then
12326   glibcxx_cv_func_isnanf_use=yes
12327 else
12328   echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12330
12331 glibcxx_cv_func_isnanf_use=no
12332 fi
12333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12334       ac_ext=c
12335 ac_cpp='$CPP $CPPFLAGS'
12336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12339
12340
12341 fi
12342
12343   fi
12344   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
12345 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
12346
12347   if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
12348
12349 for ac_func in isnanf
12350 do
12351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12352 echo "$as_me:$LINENO: checking for $ac_func" >&5
12353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12354 if eval "test \"\${$as_ac_var+set}\" = set"; then
12355   echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357   if test x$gcc_no_link = xyes; then
12358   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12359 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12360    { (exit 1); exit 1; }; }
12361 fi
12362 cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h.  */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h.  */
12368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12370 #define $ac_func innocuous_$ac_func
12371
12372 /* System header to define __stub macros and hopefully few prototypes,
12373     which can conflict with char $ac_func (); below.
12374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12375     <limits.h> exists even on freestanding compilers.  */
12376
12377 #ifdef __STDC__
12378 # include <limits.h>
12379 #else
12380 # include <assert.h>
12381 #endif
12382
12383 #undef $ac_func
12384
12385 /* Override any gcc2 internal prototype to avoid an error.  */
12386 #ifdef __cplusplus
12387 extern "C"
12388 {
12389 #endif
12390 /* We use char because int might match the return type of a gcc2
12391    builtin and then its argument prototype would still apply.  */
12392 char $ac_func ();
12393 /* The GNU C library defines this for functions which it implements
12394     to always fail with ENOSYS.  Some functions are actually named
12395     something starting with __ and the normal name is an alias.  */
12396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12397 choke me
12398 #else
12399 char (*f) () = $ac_func;
12400 #endif
12401 #ifdef __cplusplus
12402 }
12403 #endif
12404
12405 int
12406 main ()
12407 {
12408 return f != $ac_func;
12409   ;
12410   return 0;
12411 }
12412 _ACEOF
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12415   (eval $ac_link) 2>conftest.er1
12416   ac_status=$?
12417   grep -v '^ *+' conftest.er1 >conftest.err
12418   rm -f conftest.er1
12419   cat conftest.err >&5
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } &&
12422          { ac_try='test -z "$ac_c_werror_flag"
12423                          || test ! -s conftest.err'
12424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425   (eval $ac_try) 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); }; } &&
12429          { ac_try='test -s conftest$ac_exeext'
12430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431   (eval $ac_try) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; }; then
12435   eval "$as_ac_var=yes"
12436 else
12437   echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440 eval "$as_ac_var=no"
12441 fi
12442 rm -f conftest.err conftest.$ac_objext \
12443       conftest$ac_exeext conftest.$ac_ext
12444 fi
12445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12447 if test `eval echo '${'$as_ac_var'}'` = yes; then
12448   cat >>confdefs.h <<_ACEOF
12449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12450 _ACEOF
12451
12452 fi
12453 done
12454
12455   else
12456
12457   echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
12458 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
12459   if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
12460     if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
12461   echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12463
12464
12465
12466       ac_ext=cc
12467 ac_cpp='$CXXCPP $CPPFLAGS'
12468 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12469 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12470 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12471
12472       cat >conftest.$ac_ext <<_ACEOF
12473 /* confdefs.h.  */
12474 _ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h.  */
12478 #include <math.h>
12479                       #ifdef HAVE_IEEEFP_H
12480                       #include <ieeefp.h>
12481                       #endif
12482
12483 int
12484 main ()
12485 {
12486  _isnanf(0);
12487   ;
12488   return 0;
12489 }
12490 _ACEOF
12491 rm -f conftest.$ac_objext
12492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12493   (eval $ac_compile) 2>conftest.er1
12494   ac_status=$?
12495   grep -v '^ *+' conftest.er1 >conftest.err
12496   rm -f conftest.er1
12497   cat conftest.err >&5
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); } &&
12500          { ac_try='test -z "$ac_cxx_werror_flag"
12501                          || test ! -s conftest.err'
12502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12503   (eval $ac_try) 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); }; } &&
12507          { ac_try='test -s conftest.$ac_objext'
12508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509   (eval $ac_try) 2>&5
12510   ac_status=$?
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); }; }; then
12513   glibcxx_cv_func__isnanf_use=yes
12514 else
12515   echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12517
12518 glibcxx_cv_func__isnanf_use=no
12519 fi
12520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12521       ac_ext=c
12522 ac_cpp='$CPP $CPPFLAGS'
12523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12526
12527
12528 fi
12529
12530   fi
12531   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
12532 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
12533
12534     if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
12535
12536 for ac_func in _isnanf
12537 do
12538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12539 echo "$as_me:$LINENO: checking for $ac_func" >&5
12540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12541 if eval "test \"\${$as_ac_var+set}\" = set"; then
12542   echo $ECHO_N "(cached) $ECHO_C" >&6
12543 else
12544   if test x$gcc_no_link = xyes; then
12545   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12546 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12547    { (exit 1); exit 1; }; }
12548 fi
12549 cat >conftest.$ac_ext <<_ACEOF
12550 /* confdefs.h.  */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h.  */
12555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12557 #define $ac_func innocuous_$ac_func
12558
12559 /* System header to define __stub macros and hopefully few prototypes,
12560     which can conflict with char $ac_func (); below.
12561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12562     <limits.h> exists even on freestanding compilers.  */
12563
12564 #ifdef __STDC__
12565 # include <limits.h>
12566 #else
12567 # include <assert.h>
12568 #endif
12569
12570 #undef $ac_func
12571
12572 /* Override any gcc2 internal prototype to avoid an error.  */
12573 #ifdef __cplusplus
12574 extern "C"
12575 {
12576 #endif
12577 /* We use char because int might match the return type of a gcc2
12578    builtin and then its argument prototype would still apply.  */
12579 char $ac_func ();
12580 /* The GNU C library defines this for functions which it implements
12581     to always fail with ENOSYS.  Some functions are actually named
12582     something starting with __ and the normal name is an alias.  */
12583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12584 choke me
12585 #else
12586 char (*f) () = $ac_func;
12587 #endif
12588 #ifdef __cplusplus
12589 }
12590 #endif
12591
12592 int
12593 main ()
12594 {
12595 return f != $ac_func;
12596   ;
12597   return 0;
12598 }
12599 _ACEOF
12600 rm -f conftest.$ac_objext conftest$ac_exeext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12602   (eval $ac_link) 2>conftest.er1
12603   ac_status=$?
12604   grep -v '^ *+' conftest.er1 >conftest.err
12605   rm -f conftest.er1
12606   cat conftest.err >&5
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); } &&
12609          { ac_try='test -z "$ac_c_werror_flag"
12610                          || test ! -s conftest.err'
12611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612   (eval $ac_try) 2>&5
12613   ac_status=$?
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); }; } &&
12616          { ac_try='test -s conftest$ac_exeext'
12617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618   (eval $ac_try) 2>&5
12619   ac_status=$?
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); }; }; then
12622   eval "$as_ac_var=yes"
12623 else
12624   echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12626
12627 eval "$as_ac_var=no"
12628 fi
12629 rm -f conftest.err conftest.$ac_objext \
12630       conftest$ac_exeext conftest.$ac_ext
12631 fi
12632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12634 if test `eval echo '${'$as_ac_var'}'` = yes; then
12635   cat >>confdefs.h <<_ACEOF
12636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12637 _ACEOF
12638
12639 fi
12640 done
12641
12642     fi
12643   fi
12644
12645
12646
12647   echo "$as_me:$LINENO: checking for isinff declaration" >&5
12648 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
12649   if test x${glibcxx_cv_func_isinff_use+set} != xset; then
12650     if test "${glibcxx_cv_func_isinff_use+set}" = set; then
12651   echo $ECHO_N "(cached) $ECHO_C" >&6
12652 else
12653
12654
12655
12656       ac_ext=cc
12657 ac_cpp='$CXXCPP $CPPFLAGS'
12658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12661
12662       cat >conftest.$ac_ext <<_ACEOF
12663 /* confdefs.h.  */
12664 _ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h.  */
12668 #include <math.h>
12669                       #ifdef HAVE_IEEEFP_H
12670                       #include <ieeefp.h>
12671                       #endif
12672
12673 int
12674 main ()
12675 {
12676  isinff(0);
12677   ;
12678   return 0;
12679 }
12680 _ACEOF
12681 rm -f conftest.$ac_objext
12682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12683   (eval $ac_compile) 2>conftest.er1
12684   ac_status=$?
12685   grep -v '^ *+' conftest.er1 >conftest.err
12686   rm -f conftest.er1
12687   cat conftest.err >&5
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); } &&
12690          { ac_try='test -z "$ac_cxx_werror_flag"
12691                          || test ! -s conftest.err'
12692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693   (eval $ac_try) 2>&5
12694   ac_status=$?
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); }; } &&
12697          { ac_try='test -s conftest.$ac_objext'
12698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699   (eval $ac_try) 2>&5
12700   ac_status=$?
12701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702   (exit $ac_status); }; }; then
12703   glibcxx_cv_func_isinff_use=yes
12704 else
12705   echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12707
12708 glibcxx_cv_func_isinff_use=no
12709 fi
12710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12711       ac_ext=c
12712 ac_cpp='$CPP $CPPFLAGS'
12713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12716
12717
12718 fi
12719
12720   fi
12721   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
12722 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
12723
12724   if test x$glibcxx_cv_func_isinff_use = x"yes"; then
12725
12726 for ac_func in isinff
12727 do
12728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12729 echo "$as_me:$LINENO: checking for $ac_func" >&5
12730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12731 if eval "test \"\${$as_ac_var+set}\" = set"; then
12732   echo $ECHO_N "(cached) $ECHO_C" >&6
12733 else
12734   if test x$gcc_no_link = xyes; then
12735   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12736 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12737    { (exit 1); exit 1; }; }
12738 fi
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h.  */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h.  */
12745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12747 #define $ac_func innocuous_$ac_func
12748
12749 /* System header to define __stub macros and hopefully few prototypes,
12750     which can conflict with char $ac_func (); below.
12751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12752     <limits.h> exists even on freestanding compilers.  */
12753
12754 #ifdef __STDC__
12755 # include <limits.h>
12756 #else
12757 # include <assert.h>
12758 #endif
12759
12760 #undef $ac_func
12761
12762 /* Override any gcc2 internal prototype to avoid an error.  */
12763 #ifdef __cplusplus
12764 extern "C"
12765 {
12766 #endif
12767 /* We use char because int might match the return type of a gcc2
12768    builtin and then its argument prototype would still apply.  */
12769 char $ac_func ();
12770 /* The GNU C library defines this for functions which it implements
12771     to always fail with ENOSYS.  Some functions are actually named
12772     something starting with __ and the normal name is an alias.  */
12773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12774 choke me
12775 #else
12776 char (*f) () = $ac_func;
12777 #endif
12778 #ifdef __cplusplus
12779 }
12780 #endif
12781
12782 int
12783 main ()
12784 {
12785 return f != $ac_func;
12786   ;
12787   return 0;
12788 }
12789 _ACEOF
12790 rm -f conftest.$ac_objext conftest$ac_exeext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12792   (eval $ac_link) 2>conftest.er1
12793   ac_status=$?
12794   grep -v '^ *+' conftest.er1 >conftest.err
12795   rm -f conftest.er1
12796   cat conftest.err >&5
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); } &&
12799          { ac_try='test -z "$ac_c_werror_flag"
12800                          || test ! -s conftest.err'
12801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802   (eval $ac_try) 2>&5
12803   ac_status=$?
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); }; } &&
12806          { ac_try='test -s conftest$ac_exeext'
12807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808   (eval $ac_try) 2>&5
12809   ac_status=$?
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); }; }; then
12812   eval "$as_ac_var=yes"
12813 else
12814   echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12816
12817 eval "$as_ac_var=no"
12818 fi
12819 rm -f conftest.err conftest.$ac_objext \
12820       conftest$ac_exeext conftest.$ac_ext
12821 fi
12822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12824 if test `eval echo '${'$as_ac_var'}'` = yes; then
12825   cat >>confdefs.h <<_ACEOF
12826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12827 _ACEOF
12828
12829 fi
12830 done
12831
12832   else
12833
12834   echo "$as_me:$LINENO: checking for _isinff declaration" >&5
12835 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
12836   if test x${glibcxx_cv_func__isinff_use+set} != xset; then
12837     if test "${glibcxx_cv_func__isinff_use+set}" = set; then
12838   echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12840
12841
12842
12843       ac_ext=cc
12844 ac_cpp='$CXXCPP $CPPFLAGS'
12845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12848
12849       cat >conftest.$ac_ext <<_ACEOF
12850 /* confdefs.h.  */
12851 _ACEOF
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h.  */
12855 #include <math.h>
12856                       #ifdef HAVE_IEEEFP_H
12857                       #include <ieeefp.h>
12858                       #endif
12859
12860 int
12861 main ()
12862 {
12863  _isinff(0);
12864   ;
12865   return 0;
12866 }
12867 _ACEOF
12868 rm -f conftest.$ac_objext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870   (eval $ac_compile) 2>conftest.er1
12871   ac_status=$?
12872   grep -v '^ *+' conftest.er1 >conftest.err
12873   rm -f conftest.er1
12874   cat conftest.err >&5
12875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876   (exit $ac_status); } &&
12877          { ac_try='test -z "$ac_cxx_werror_flag"
12878                          || test ! -s conftest.err'
12879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880   (eval $ac_try) 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); }; } &&
12884          { ac_try='test -s conftest.$ac_objext'
12885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886   (eval $ac_try) 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); }; }; then
12890   glibcxx_cv_func__isinff_use=yes
12891 else
12892   echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12894
12895 glibcxx_cv_func__isinff_use=no
12896 fi
12897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12898       ac_ext=c
12899 ac_cpp='$CPP $CPPFLAGS'
12900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12903
12904
12905 fi
12906
12907   fi
12908   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
12909 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
12910
12911     if test x$glibcxx_cv_func__isinff_use = x"yes"; then
12912
12913 for ac_func in _isinff
12914 do
12915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12916 echo "$as_me:$LINENO: checking for $ac_func" >&5
12917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12918 if eval "test \"\${$as_ac_var+set}\" = set"; then
12919   echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921   if test x$gcc_no_link = xyes; then
12922   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12923 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12924    { (exit 1); exit 1; }; }
12925 fi
12926 cat >conftest.$ac_ext <<_ACEOF
12927 /* confdefs.h.  */
12928 _ACEOF
12929 cat confdefs.h >>conftest.$ac_ext
12930 cat >>conftest.$ac_ext <<_ACEOF
12931 /* end confdefs.h.  */
12932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12934 #define $ac_func innocuous_$ac_func
12935
12936 /* System header to define __stub macros and hopefully few prototypes,
12937     which can conflict with char $ac_func (); below.
12938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12939     <limits.h> exists even on freestanding compilers.  */
12940
12941 #ifdef __STDC__
12942 # include <limits.h>
12943 #else
12944 # include <assert.h>
12945 #endif
12946
12947 #undef $ac_func
12948
12949 /* Override any gcc2 internal prototype to avoid an error.  */
12950 #ifdef __cplusplus
12951 extern "C"
12952 {
12953 #endif
12954 /* We use char because int might match the return type of a gcc2
12955    builtin and then its argument prototype would still apply.  */
12956 char $ac_func ();
12957 /* The GNU C library defines this for functions which it implements
12958     to always fail with ENOSYS.  Some functions are actually named
12959     something starting with __ and the normal name is an alias.  */
12960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12961 choke me
12962 #else
12963 char (*f) () = $ac_func;
12964 #endif
12965 #ifdef __cplusplus
12966 }
12967 #endif
12968
12969 int
12970 main ()
12971 {
12972 return f != $ac_func;
12973   ;
12974   return 0;
12975 }
12976 _ACEOF
12977 rm -f conftest.$ac_objext conftest$ac_exeext
12978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12979   (eval $ac_link) 2>conftest.er1
12980   ac_status=$?
12981   grep -v '^ *+' conftest.er1 >conftest.err
12982   rm -f conftest.er1
12983   cat conftest.err >&5
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); } &&
12986          { ac_try='test -z "$ac_c_werror_flag"
12987                          || test ! -s conftest.err'
12988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989   (eval $ac_try) 2>&5
12990   ac_status=$?
12991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992   (exit $ac_status); }; } &&
12993          { ac_try='test -s conftest$ac_exeext'
12994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995   (eval $ac_try) 2>&5
12996   ac_status=$?
12997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998   (exit $ac_status); }; }; then
12999   eval "$as_ac_var=yes"
13000 else
13001   echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13003
13004 eval "$as_ac_var=no"
13005 fi
13006 rm -f conftest.err conftest.$ac_objext \
13007       conftest$ac_exeext conftest.$ac_ext
13008 fi
13009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13010 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13011 if test `eval echo '${'$as_ac_var'}'` = yes; then
13012   cat >>confdefs.h <<_ACEOF
13013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13014 _ACEOF
13015
13016 fi
13017 done
13018
13019     fi
13020   fi
13021
13022
13023
13024   echo "$as_me:$LINENO: checking for atan2f declaration" >&5
13025 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
13026   if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
13027     if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
13028   echo $ECHO_N "(cached) $ECHO_C" >&6
13029 else
13030
13031
13032
13033       ac_ext=cc
13034 ac_cpp='$CXXCPP $CPPFLAGS'
13035 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13036 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13037 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13038
13039       cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h.  */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h.  */
13045 #include <math.h>
13046 int
13047 main ()
13048 {
13049  atan2f(0, 0);
13050   ;
13051   return 0;
13052 }
13053 _ACEOF
13054 rm -f conftest.$ac_objext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056   (eval $ac_compile) 2>conftest.er1
13057   ac_status=$?
13058   grep -v '^ *+' conftest.er1 >conftest.err
13059   rm -f conftest.er1
13060   cat conftest.err >&5
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); } &&
13063          { ac_try='test -z "$ac_cxx_werror_flag"
13064                          || test ! -s conftest.err'
13065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066   (eval $ac_try) 2>&5
13067   ac_status=$?
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); }; } &&
13070          { ac_try='test -s conftest.$ac_objext'
13071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072   (eval $ac_try) 2>&5
13073   ac_status=$?
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); }; }; then
13076   glibcxx_cv_func_atan2f_use=yes
13077 else
13078   echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13080
13081 glibcxx_cv_func_atan2f_use=no
13082 fi
13083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13084       ac_ext=c
13085 ac_cpp='$CPP $CPPFLAGS'
13086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13089
13090
13091 fi
13092
13093   fi
13094   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
13095 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
13096
13097   if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
13098
13099 for ac_func in atan2f
13100 do
13101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13102 echo "$as_me:$LINENO: checking for $ac_func" >&5
13103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13104 if eval "test \"\${$as_ac_var+set}\" = set"; then
13105   echo $ECHO_N "(cached) $ECHO_C" >&6
13106 else
13107   if test x$gcc_no_link = xyes; then
13108   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13110    { (exit 1); exit 1; }; }
13111 fi
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h.  */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h.  */
13118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13120 #define $ac_func innocuous_$ac_func
13121
13122 /* System header to define __stub macros and hopefully few prototypes,
13123     which can conflict with char $ac_func (); below.
13124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13125     <limits.h> exists even on freestanding compilers.  */
13126
13127 #ifdef __STDC__
13128 # include <limits.h>
13129 #else
13130 # include <assert.h>
13131 #endif
13132
13133 #undef $ac_func
13134
13135 /* Override any gcc2 internal prototype to avoid an error.  */
13136 #ifdef __cplusplus
13137 extern "C"
13138 {
13139 #endif
13140 /* We use char because int might match the return type of a gcc2
13141    builtin and then its argument prototype would still apply.  */
13142 char $ac_func ();
13143 /* The GNU C library defines this for functions which it implements
13144     to always fail with ENOSYS.  Some functions are actually named
13145     something starting with __ and the normal name is an alias.  */
13146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13147 choke me
13148 #else
13149 char (*f) () = $ac_func;
13150 #endif
13151 #ifdef __cplusplus
13152 }
13153 #endif
13154
13155 int
13156 main ()
13157 {
13158 return f != $ac_func;
13159   ;
13160   return 0;
13161 }
13162 _ACEOF
13163 rm -f conftest.$ac_objext conftest$ac_exeext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165   (eval $ac_link) 2>conftest.er1
13166   ac_status=$?
13167   grep -v '^ *+' conftest.er1 >conftest.err
13168   rm -f conftest.er1
13169   cat conftest.err >&5
13170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); } &&
13172          { ac_try='test -z "$ac_c_werror_flag"
13173                          || test ! -s conftest.err'
13174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175   (eval $ac_try) 2>&5
13176   ac_status=$?
13177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178   (exit $ac_status); }; } &&
13179          { ac_try='test -s conftest$ac_exeext'
13180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181   (eval $ac_try) 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); }; }; then
13185   eval "$as_ac_var=yes"
13186 else
13187   echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13189
13190 eval "$as_ac_var=no"
13191 fi
13192 rm -f conftest.err conftest.$ac_objext \
13193       conftest$ac_exeext conftest.$ac_ext
13194 fi
13195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13197 if test `eval echo '${'$as_ac_var'}'` = yes; then
13198   cat >>confdefs.h <<_ACEOF
13199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13200 _ACEOF
13201
13202 fi
13203 done
13204
13205   else
13206
13207   echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
13208 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
13209   if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
13210     if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
13211   echo $ECHO_N "(cached) $ECHO_C" >&6
13212 else
13213
13214
13215
13216       ac_ext=cc
13217 ac_cpp='$CXXCPP $CPPFLAGS'
13218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13221
13222       cat >conftest.$ac_ext <<_ACEOF
13223 /* confdefs.h.  */
13224 _ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h.  */
13228 #include <math.h>
13229 int
13230 main ()
13231 {
13232  _atan2f(0, 0);
13233   ;
13234   return 0;
13235 }
13236 _ACEOF
13237 rm -f conftest.$ac_objext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13239   (eval $ac_compile) 2>conftest.er1
13240   ac_status=$?
13241   grep -v '^ *+' conftest.er1 >conftest.err
13242   rm -f conftest.er1
13243   cat conftest.err >&5
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); } &&
13246          { ac_try='test -z "$ac_cxx_werror_flag"
13247                          || test ! -s conftest.err'
13248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249   (eval $ac_try) 2>&5
13250   ac_status=$?
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); }; } &&
13253          { ac_try='test -s conftest.$ac_objext'
13254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255   (eval $ac_try) 2>&5
13256   ac_status=$?
13257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258   (exit $ac_status); }; }; then
13259   glibcxx_cv_func__atan2f_use=yes
13260 else
13261   echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264 glibcxx_cv_func__atan2f_use=no
13265 fi
13266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13267       ac_ext=c
13268 ac_cpp='$CPP $CPPFLAGS'
13269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13272
13273
13274 fi
13275
13276   fi
13277   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
13278 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
13279
13280     if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
13281
13282 for ac_func in _atan2f
13283 do
13284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13285 echo "$as_me:$LINENO: checking for $ac_func" >&5
13286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13287 if eval "test \"\${$as_ac_var+set}\" = set"; then
13288   echo $ECHO_N "(cached) $ECHO_C" >&6
13289 else
13290   if test x$gcc_no_link = xyes; then
13291   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13293    { (exit 1); exit 1; }; }
13294 fi
13295 cat >conftest.$ac_ext <<_ACEOF
13296 /* confdefs.h.  */
13297 _ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h.  */
13301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13303 #define $ac_func innocuous_$ac_func
13304
13305 /* System header to define __stub macros and hopefully few prototypes,
13306     which can conflict with char $ac_func (); below.
13307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13308     <limits.h> exists even on freestanding compilers.  */
13309
13310 #ifdef __STDC__
13311 # include <limits.h>
13312 #else
13313 # include <assert.h>
13314 #endif
13315
13316 #undef $ac_func
13317
13318 /* Override any gcc2 internal prototype to avoid an error.  */
13319 #ifdef __cplusplus
13320 extern "C"
13321 {
13322 #endif
13323 /* We use char because int might match the return type of a gcc2
13324    builtin and then its argument prototype would still apply.  */
13325 char $ac_func ();
13326 /* The GNU C library defines this for functions which it implements
13327     to always fail with ENOSYS.  Some functions are actually named
13328     something starting with __ and the normal name is an alias.  */
13329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13330 choke me
13331 #else
13332 char (*f) () = $ac_func;
13333 #endif
13334 #ifdef __cplusplus
13335 }
13336 #endif
13337
13338 int
13339 main ()
13340 {
13341 return f != $ac_func;
13342   ;
13343   return 0;
13344 }
13345 _ACEOF
13346 rm -f conftest.$ac_objext conftest$ac_exeext
13347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13348   (eval $ac_link) 2>conftest.er1
13349   ac_status=$?
13350   grep -v '^ *+' conftest.er1 >conftest.err
13351   rm -f conftest.er1
13352   cat conftest.err >&5
13353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354   (exit $ac_status); } &&
13355          { ac_try='test -z "$ac_c_werror_flag"
13356                          || test ! -s conftest.err'
13357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13358   (eval $ac_try) 2>&5
13359   ac_status=$?
13360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); }; } &&
13362          { ac_try='test -s conftest$ac_exeext'
13363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364   (eval $ac_try) 2>&5
13365   ac_status=$?
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); }; }; then
13368   eval "$as_ac_var=yes"
13369 else
13370   echo "$as_me: failed program was:" >&5
13371 sed 's/^/| /' conftest.$ac_ext >&5
13372
13373 eval "$as_ac_var=no"
13374 fi
13375 rm -f conftest.err conftest.$ac_objext \
13376       conftest$ac_exeext conftest.$ac_ext
13377 fi
13378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13380 if test `eval echo '${'$as_ac_var'}'` = yes; then
13381   cat >>confdefs.h <<_ACEOF
13382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13383 _ACEOF
13384
13385 fi
13386 done
13387
13388     fi
13389   fi
13390
13391
13392
13393   echo "$as_me:$LINENO: checking for fabsf declaration" >&5
13394 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
13395   if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
13396     if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
13397   echo $ECHO_N "(cached) $ECHO_C" >&6
13398 else
13399
13400
13401
13402       ac_ext=cc
13403 ac_cpp='$CXXCPP $CPPFLAGS'
13404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13407
13408       cat >conftest.$ac_ext <<_ACEOF
13409 /* confdefs.h.  */
13410 _ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h.  */
13414 #include <math.h>
13415                       #ifdef HAVE_IEEEFP_H
13416                       #include <ieeefp.h>
13417                       #endif
13418
13419 int
13420 main ()
13421 {
13422  fabsf(0);
13423   ;
13424   return 0;
13425 }
13426 _ACEOF
13427 rm -f conftest.$ac_objext
13428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13429   (eval $ac_compile) 2>conftest.er1
13430   ac_status=$?
13431   grep -v '^ *+' conftest.er1 >conftest.err
13432   rm -f conftest.er1
13433   cat conftest.err >&5
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); } &&
13436          { ac_try='test -z "$ac_cxx_werror_flag"
13437                          || test ! -s conftest.err'
13438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439   (eval $ac_try) 2>&5
13440   ac_status=$?
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); }; } &&
13443          { ac_try='test -s conftest.$ac_objext'
13444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445   (eval $ac_try) 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); }; }; then
13449   glibcxx_cv_func_fabsf_use=yes
13450 else
13451   echo "$as_me: failed program was:" >&5
13452 sed 's/^/| /' conftest.$ac_ext >&5
13453
13454 glibcxx_cv_func_fabsf_use=no
13455 fi
13456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13457       ac_ext=c
13458 ac_cpp='$CPP $CPPFLAGS'
13459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13462
13463
13464 fi
13465
13466   fi
13467   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
13468 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
13469
13470   if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
13471
13472 for ac_func in fabsf
13473 do
13474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13475 echo "$as_me:$LINENO: checking for $ac_func" >&5
13476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13477 if eval "test \"\${$as_ac_var+set}\" = set"; then
13478   echo $ECHO_N "(cached) $ECHO_C" >&6
13479 else
13480   if test x$gcc_no_link = xyes; then
13481   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13482 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13483    { (exit 1); exit 1; }; }
13484 fi
13485 cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h.  */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h.  */
13491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13493 #define $ac_func innocuous_$ac_func
13494
13495 /* System header to define __stub macros and hopefully few prototypes,
13496     which can conflict with char $ac_func (); below.
13497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13498     <limits.h> exists even on freestanding compilers.  */
13499
13500 #ifdef __STDC__
13501 # include <limits.h>
13502 #else
13503 # include <assert.h>
13504 #endif
13505
13506 #undef $ac_func
13507
13508 /* Override any gcc2 internal prototype to avoid an error.  */
13509 #ifdef __cplusplus
13510 extern "C"
13511 {
13512 #endif
13513 /* We use char because int might match the return type of a gcc2
13514    builtin and then its argument prototype would still apply.  */
13515 char $ac_func ();
13516 /* The GNU C library defines this for functions which it implements
13517     to always fail with ENOSYS.  Some functions are actually named
13518     something starting with __ and the normal name is an alias.  */
13519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13520 choke me
13521 #else
13522 char (*f) () = $ac_func;
13523 #endif
13524 #ifdef __cplusplus
13525 }
13526 #endif
13527
13528 int
13529 main ()
13530 {
13531 return f != $ac_func;
13532   ;
13533   return 0;
13534 }
13535 _ACEOF
13536 rm -f conftest.$ac_objext conftest$ac_exeext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13538   (eval $ac_link) 2>conftest.er1
13539   ac_status=$?
13540   grep -v '^ *+' conftest.er1 >conftest.err
13541   rm -f conftest.er1
13542   cat conftest.err >&5
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); } &&
13545          { ac_try='test -z "$ac_c_werror_flag"
13546                          || test ! -s conftest.err'
13547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548   (eval $ac_try) 2>&5
13549   ac_status=$?
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); }; } &&
13552          { ac_try='test -s conftest$ac_exeext'
13553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554   (eval $ac_try) 2>&5
13555   ac_status=$?
13556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557   (exit $ac_status); }; }; then
13558   eval "$as_ac_var=yes"
13559 else
13560   echo "$as_me: failed program was:" >&5
13561 sed 's/^/| /' conftest.$ac_ext >&5
13562
13563 eval "$as_ac_var=no"
13564 fi
13565 rm -f conftest.err conftest.$ac_objext \
13566       conftest$ac_exeext conftest.$ac_ext
13567 fi
13568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13570 if test `eval echo '${'$as_ac_var'}'` = yes; then
13571   cat >>confdefs.h <<_ACEOF
13572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13573 _ACEOF
13574
13575 fi
13576 done
13577
13578   else
13579
13580   echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
13581 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
13582   if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
13583     if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
13584   echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586
13587
13588
13589       ac_ext=cc
13590 ac_cpp='$CXXCPP $CPPFLAGS'
13591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13594
13595       cat >conftest.$ac_ext <<_ACEOF
13596 /* confdefs.h.  */
13597 _ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h.  */
13601 #include <math.h>
13602                       #ifdef HAVE_IEEEFP_H
13603                       #include <ieeefp.h>
13604                       #endif
13605
13606 int
13607 main ()
13608 {
13609  _fabsf(0);
13610   ;
13611   return 0;
13612 }
13613 _ACEOF
13614 rm -f conftest.$ac_objext
13615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13616   (eval $ac_compile) 2>conftest.er1
13617   ac_status=$?
13618   grep -v '^ *+' conftest.er1 >conftest.err
13619   rm -f conftest.er1
13620   cat conftest.err >&5
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); } &&
13623          { ac_try='test -z "$ac_cxx_werror_flag"
13624                          || test ! -s conftest.err'
13625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626   (eval $ac_try) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }; } &&
13630          { ac_try='test -s conftest.$ac_objext'
13631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632   (eval $ac_try) 2>&5
13633   ac_status=$?
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); }; }; then
13636   glibcxx_cv_func__fabsf_use=yes
13637 else
13638   echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13640
13641 glibcxx_cv_func__fabsf_use=no
13642 fi
13643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13644       ac_ext=c
13645 ac_cpp='$CPP $CPPFLAGS'
13646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13649
13650
13651 fi
13652
13653   fi
13654   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
13655 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
13656
13657     if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
13658
13659 for ac_func in _fabsf
13660 do
13661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13662 echo "$as_me:$LINENO: checking for $ac_func" >&5
13663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13664 if eval "test \"\${$as_ac_var+set}\" = set"; then
13665   echo $ECHO_N "(cached) $ECHO_C" >&6
13666 else
13667   if test x$gcc_no_link = xyes; then
13668   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13670    { (exit 1); exit 1; }; }
13671 fi
13672 cat >conftest.$ac_ext <<_ACEOF
13673 /* confdefs.h.  */
13674 _ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h.  */
13678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13680 #define $ac_func innocuous_$ac_func
13681
13682 /* System header to define __stub macros and hopefully few prototypes,
13683     which can conflict with char $ac_func (); below.
13684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13685     <limits.h> exists even on freestanding compilers.  */
13686
13687 #ifdef __STDC__
13688 # include <limits.h>
13689 #else
13690 # include <assert.h>
13691 #endif
13692
13693 #undef $ac_func
13694
13695 /* Override any gcc2 internal prototype to avoid an error.  */
13696 #ifdef __cplusplus
13697 extern "C"
13698 {
13699 #endif
13700 /* We use char because int might match the return type of a gcc2
13701    builtin and then its argument prototype would still apply.  */
13702 char $ac_func ();
13703 /* The GNU C library defines this for functions which it implements
13704     to always fail with ENOSYS.  Some functions are actually named
13705     something starting with __ and the normal name is an alias.  */
13706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13707 choke me
13708 #else
13709 char (*f) () = $ac_func;
13710 #endif
13711 #ifdef __cplusplus
13712 }
13713 #endif
13714
13715 int
13716 main ()
13717 {
13718 return f != $ac_func;
13719   ;
13720   return 0;
13721 }
13722 _ACEOF
13723 rm -f conftest.$ac_objext conftest$ac_exeext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13725   (eval $ac_link) 2>conftest.er1
13726   ac_status=$?
13727   grep -v '^ *+' conftest.er1 >conftest.err
13728   rm -f conftest.er1
13729   cat conftest.err >&5
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); } &&
13732          { ac_try='test -z "$ac_c_werror_flag"
13733                          || test ! -s conftest.err'
13734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735   (eval $ac_try) 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); }; } &&
13739          { ac_try='test -s conftest$ac_exeext'
13740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741   (eval $ac_try) 2>&5
13742   ac_status=$?
13743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744   (exit $ac_status); }; }; then
13745   eval "$as_ac_var=yes"
13746 else
13747   echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13749
13750 eval "$as_ac_var=no"
13751 fi
13752 rm -f conftest.err conftest.$ac_objext \
13753       conftest$ac_exeext conftest.$ac_ext
13754 fi
13755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13757 if test `eval echo '${'$as_ac_var'}'` = yes; then
13758   cat >>confdefs.h <<_ACEOF
13759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13760 _ACEOF
13761
13762 fi
13763 done
13764
13765     fi
13766   fi
13767
13768
13769
13770   echo "$as_me:$LINENO: checking for fmodf declaration" >&5
13771 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
13772   if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
13773     if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
13774   echo $ECHO_N "(cached) $ECHO_C" >&6
13775 else
13776
13777
13778
13779       ac_ext=cc
13780 ac_cpp='$CXXCPP $CPPFLAGS'
13781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13784
13785       cat >conftest.$ac_ext <<_ACEOF
13786 /* confdefs.h.  */
13787 _ACEOF
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h.  */
13791 #include <math.h>
13792 int
13793 main ()
13794 {
13795  fmodf(0, 0);
13796   ;
13797   return 0;
13798 }
13799 _ACEOF
13800 rm -f conftest.$ac_objext
13801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13802   (eval $ac_compile) 2>conftest.er1
13803   ac_status=$?
13804   grep -v '^ *+' conftest.er1 >conftest.err
13805   rm -f conftest.er1
13806   cat conftest.err >&5
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); } &&
13809          { ac_try='test -z "$ac_cxx_werror_flag"
13810                          || test ! -s conftest.err'
13811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13812   (eval $ac_try) 2>&5
13813   ac_status=$?
13814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815   (exit $ac_status); }; } &&
13816          { ac_try='test -s conftest.$ac_objext'
13817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13818   (eval $ac_try) 2>&5
13819   ac_status=$?
13820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821   (exit $ac_status); }; }; then
13822   glibcxx_cv_func_fmodf_use=yes
13823 else
13824   echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13826
13827 glibcxx_cv_func_fmodf_use=no
13828 fi
13829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13830       ac_ext=c
13831 ac_cpp='$CPP $CPPFLAGS'
13832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13835
13836
13837 fi
13838
13839   fi
13840   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
13841 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
13842
13843   if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
13844
13845 for ac_func in fmodf
13846 do
13847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13848 echo "$as_me:$LINENO: checking for $ac_func" >&5
13849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13850 if eval "test \"\${$as_ac_var+set}\" = set"; then
13851   echo $ECHO_N "(cached) $ECHO_C" >&6
13852 else
13853   if test x$gcc_no_link = xyes; then
13854   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13855 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13856    { (exit 1); exit 1; }; }
13857 fi
13858 cat >conftest.$ac_ext <<_ACEOF
13859 /* confdefs.h.  */
13860 _ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h.  */
13864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13865    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13866 #define $ac_func innocuous_$ac_func
13867
13868 /* System header to define __stub macros and hopefully few prototypes,
13869     which can conflict with char $ac_func (); below.
13870     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13871     <limits.h> exists even on freestanding compilers.  */
13872
13873 #ifdef __STDC__
13874 # include <limits.h>
13875 #else
13876 # include <assert.h>
13877 #endif
13878
13879 #undef $ac_func
13880
13881 /* Override any gcc2 internal prototype to avoid an error.  */
13882 #ifdef __cplusplus
13883 extern "C"
13884 {
13885 #endif
13886 /* We use char because int might match the return type of a gcc2
13887    builtin and then its argument prototype would still apply.  */
13888 char $ac_func ();
13889 /* The GNU C library defines this for functions which it implements
13890     to always fail with ENOSYS.  Some functions are actually named
13891     something starting with __ and the normal name is an alias.  */
13892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13893 choke me
13894 #else
13895 char (*f) () = $ac_func;
13896 #endif
13897 #ifdef __cplusplus
13898 }
13899 #endif
13900
13901 int
13902 main ()
13903 {
13904 return f != $ac_func;
13905   ;
13906   return 0;
13907 }
13908 _ACEOF
13909 rm -f conftest.$ac_objext conftest$ac_exeext
13910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13911   (eval $ac_link) 2>conftest.er1
13912   ac_status=$?
13913   grep -v '^ *+' conftest.er1 >conftest.err
13914   rm -f conftest.er1
13915   cat conftest.err >&5
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); } &&
13918          { ac_try='test -z "$ac_c_werror_flag"
13919                          || test ! -s conftest.err'
13920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13921   (eval $ac_try) 2>&5
13922   ac_status=$?
13923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924   (exit $ac_status); }; } &&
13925          { ac_try='test -s conftest$ac_exeext'
13926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927   (eval $ac_try) 2>&5
13928   ac_status=$?
13929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930   (exit $ac_status); }; }; then
13931   eval "$as_ac_var=yes"
13932 else
13933   echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13935
13936 eval "$as_ac_var=no"
13937 fi
13938 rm -f conftest.err conftest.$ac_objext \
13939       conftest$ac_exeext conftest.$ac_ext
13940 fi
13941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13943 if test `eval echo '${'$as_ac_var'}'` = yes; then
13944   cat >>confdefs.h <<_ACEOF
13945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13946 _ACEOF
13947
13948 fi
13949 done
13950
13951   else
13952
13953   echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
13954 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
13955   if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
13956     if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
13957   echo $ECHO_N "(cached) $ECHO_C" >&6
13958 else
13959
13960
13961
13962       ac_ext=cc
13963 ac_cpp='$CXXCPP $CPPFLAGS'
13964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13967
13968       cat >conftest.$ac_ext <<_ACEOF
13969 /* confdefs.h.  */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h.  */
13974 #include <math.h>
13975 int
13976 main ()
13977 {
13978  _fmodf(0, 0);
13979   ;
13980   return 0;
13981 }
13982 _ACEOF
13983 rm -f conftest.$ac_objext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985   (eval $ac_compile) 2>conftest.er1
13986   ac_status=$?
13987   grep -v '^ *+' conftest.er1 >conftest.err
13988   rm -f conftest.er1
13989   cat conftest.err >&5
13990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991   (exit $ac_status); } &&
13992          { ac_try='test -z "$ac_cxx_werror_flag"
13993                          || test ! -s conftest.err'
13994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13995   (eval $ac_try) 2>&5
13996   ac_status=$?
13997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998   (exit $ac_status); }; } &&
13999          { ac_try='test -s conftest.$ac_objext'
14000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14001   (eval $ac_try) 2>&5
14002   ac_status=$?
14003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004   (exit $ac_status); }; }; then
14005   glibcxx_cv_func__fmodf_use=yes
14006 else
14007   echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14009
14010 glibcxx_cv_func__fmodf_use=no
14011 fi
14012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14013       ac_ext=c
14014 ac_cpp='$CPP $CPPFLAGS'
14015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14018
14019
14020 fi
14021
14022   fi
14023   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
14024 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
14025
14026     if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
14027
14028 for ac_func in _fmodf
14029 do
14030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14031 echo "$as_me:$LINENO: checking for $ac_func" >&5
14032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14033 if eval "test \"\${$as_ac_var+set}\" = set"; then
14034   echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036   if test x$gcc_no_link = xyes; then
14037   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14039    { (exit 1); exit 1; }; }
14040 fi
14041 cat >conftest.$ac_ext <<_ACEOF
14042 /* confdefs.h.  */
14043 _ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h.  */
14047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14049 #define $ac_func innocuous_$ac_func
14050
14051 /* System header to define __stub macros and hopefully few prototypes,
14052     which can conflict with char $ac_func (); below.
14053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14054     <limits.h> exists even on freestanding compilers.  */
14055
14056 #ifdef __STDC__
14057 # include <limits.h>
14058 #else
14059 # include <assert.h>
14060 #endif
14061
14062 #undef $ac_func
14063
14064 /* Override any gcc2 internal prototype to avoid an error.  */
14065 #ifdef __cplusplus
14066 extern "C"
14067 {
14068 #endif
14069 /* We use char because int might match the return type of a gcc2
14070    builtin and then its argument prototype would still apply.  */
14071 char $ac_func ();
14072 /* The GNU C library defines this for functions which it implements
14073     to always fail with ENOSYS.  Some functions are actually named
14074     something starting with __ and the normal name is an alias.  */
14075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14076 choke me
14077 #else
14078 char (*f) () = $ac_func;
14079 #endif
14080 #ifdef __cplusplus
14081 }
14082 #endif
14083
14084 int
14085 main ()
14086 {
14087 return f != $ac_func;
14088   ;
14089   return 0;
14090 }
14091 _ACEOF
14092 rm -f conftest.$ac_objext conftest$ac_exeext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14094   (eval $ac_link) 2>conftest.er1
14095   ac_status=$?
14096   grep -v '^ *+' conftest.er1 >conftest.err
14097   rm -f conftest.er1
14098   cat conftest.err >&5
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } &&
14101          { ac_try='test -z "$ac_c_werror_flag"
14102                          || test ! -s conftest.err'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; } &&
14108          { ac_try='test -s conftest$ac_exeext'
14109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110   (eval $ac_try) 2>&5
14111   ac_status=$?
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); }; }; then
14114   eval "$as_ac_var=yes"
14115 else
14116   echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14118
14119 eval "$as_ac_var=no"
14120 fi
14121 rm -f conftest.err conftest.$ac_objext \
14122       conftest$ac_exeext conftest.$ac_ext
14123 fi
14124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14126 if test `eval echo '${'$as_ac_var'}'` = yes; then
14127   cat >>confdefs.h <<_ACEOF
14128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14129 _ACEOF
14130
14131 fi
14132 done
14133
14134     fi
14135   fi
14136
14137
14138
14139   echo "$as_me:$LINENO: checking for frexpf declaration" >&5
14140 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
14141   if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
14142     if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
14143   echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145
14146
14147
14148       ac_ext=cc
14149 ac_cpp='$CXXCPP $CPPFLAGS'
14150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14153
14154       cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h.  */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h.  */
14160 #include <math.h>
14161 int
14162 main ()
14163 {
14164  frexpf(0, 0);
14165   ;
14166   return 0;
14167 }
14168 _ACEOF
14169 rm -f conftest.$ac_objext
14170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14171   (eval $ac_compile) 2>conftest.er1
14172   ac_status=$?
14173   grep -v '^ *+' conftest.er1 >conftest.err
14174   rm -f conftest.er1
14175   cat conftest.err >&5
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); } &&
14178          { ac_try='test -z "$ac_cxx_werror_flag"
14179                          || test ! -s conftest.err'
14180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181   (eval $ac_try) 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; } &&
14185          { ac_try='test -s conftest.$ac_objext'
14186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187   (eval $ac_try) 2>&5
14188   ac_status=$?
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); }; }; then
14191   glibcxx_cv_func_frexpf_use=yes
14192 else
14193   echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14195
14196 glibcxx_cv_func_frexpf_use=no
14197 fi
14198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14199       ac_ext=c
14200 ac_cpp='$CPP $CPPFLAGS'
14201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14204
14205
14206 fi
14207
14208   fi
14209   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
14210 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
14211
14212   if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
14213
14214 for ac_func in frexpf
14215 do
14216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14217 echo "$as_me:$LINENO: checking for $ac_func" >&5
14218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14219 if eval "test \"\${$as_ac_var+set}\" = set"; then
14220   echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222   if test x$gcc_no_link = xyes; then
14223   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14224 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14225    { (exit 1); exit 1; }; }
14226 fi
14227 cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h.  */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h.  */
14233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14235 #define $ac_func innocuous_$ac_func
14236
14237 /* System header to define __stub macros and hopefully few prototypes,
14238     which can conflict with char $ac_func (); below.
14239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14240     <limits.h> exists even on freestanding compilers.  */
14241
14242 #ifdef __STDC__
14243 # include <limits.h>
14244 #else
14245 # include <assert.h>
14246 #endif
14247
14248 #undef $ac_func
14249
14250 /* Override any gcc2 internal prototype to avoid an error.  */
14251 #ifdef __cplusplus
14252 extern "C"
14253 {
14254 #endif
14255 /* We use char because int might match the return type of a gcc2
14256    builtin and then its argument prototype would still apply.  */
14257 char $ac_func ();
14258 /* The GNU C library defines this for functions which it implements
14259     to always fail with ENOSYS.  Some functions are actually named
14260     something starting with __ and the normal name is an alias.  */
14261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14262 choke me
14263 #else
14264 char (*f) () = $ac_func;
14265 #endif
14266 #ifdef __cplusplus
14267 }
14268 #endif
14269
14270 int
14271 main ()
14272 {
14273 return f != $ac_func;
14274   ;
14275   return 0;
14276 }
14277 _ACEOF
14278 rm -f conftest.$ac_objext conftest$ac_exeext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14280   (eval $ac_link) 2>conftest.er1
14281   ac_status=$?
14282   grep -v '^ *+' conftest.er1 >conftest.err
14283   rm -f conftest.er1
14284   cat conftest.err >&5
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); } &&
14287          { ac_try='test -z "$ac_c_werror_flag"
14288                          || test ! -s conftest.err'
14289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290   (eval $ac_try) 2>&5
14291   ac_status=$?
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); }; } &&
14294          { ac_try='test -s conftest$ac_exeext'
14295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296   (eval $ac_try) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); }; }; then
14300   eval "$as_ac_var=yes"
14301 else
14302   echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14304
14305 eval "$as_ac_var=no"
14306 fi
14307 rm -f conftest.err conftest.$ac_objext \
14308       conftest$ac_exeext conftest.$ac_ext
14309 fi
14310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14312 if test `eval echo '${'$as_ac_var'}'` = yes; then
14313   cat >>confdefs.h <<_ACEOF
14314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14315 _ACEOF
14316
14317 fi
14318 done
14319
14320   else
14321
14322   echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
14323 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
14324   if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
14325     if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
14326   echo $ECHO_N "(cached) $ECHO_C" >&6
14327 else
14328
14329
14330
14331       ac_ext=cc
14332 ac_cpp='$CXXCPP $CPPFLAGS'
14333 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14334 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14335 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14336
14337       cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h.  */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h.  */
14343 #include <math.h>
14344 int
14345 main ()
14346 {
14347  _frexpf(0, 0);
14348   ;
14349   return 0;
14350 }
14351 _ACEOF
14352 rm -f conftest.$ac_objext
14353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14354   (eval $ac_compile) 2>conftest.er1
14355   ac_status=$?
14356   grep -v '^ *+' conftest.er1 >conftest.err
14357   rm -f conftest.er1
14358   cat conftest.err >&5
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); } &&
14361          { ac_try='test -z "$ac_cxx_werror_flag"
14362                          || test ! -s conftest.err'
14363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364   (eval $ac_try) 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); }; } &&
14368          { ac_try='test -s conftest.$ac_objext'
14369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370   (eval $ac_try) 2>&5
14371   ac_status=$?
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); }; }; then
14374   glibcxx_cv_func__frexpf_use=yes
14375 else
14376   echo "$as_me: failed program was:" >&5
14377 sed 's/^/| /' conftest.$ac_ext >&5
14378
14379 glibcxx_cv_func__frexpf_use=no
14380 fi
14381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14382       ac_ext=c
14383 ac_cpp='$CPP $CPPFLAGS'
14384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14387
14388
14389 fi
14390
14391   fi
14392   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
14393 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
14394
14395     if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
14396
14397 for ac_func in _frexpf
14398 do
14399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14400 echo "$as_me:$LINENO: checking for $ac_func" >&5
14401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14402 if eval "test \"\${$as_ac_var+set}\" = set"; then
14403   echo $ECHO_N "(cached) $ECHO_C" >&6
14404 else
14405   if test x$gcc_no_link = xyes; then
14406   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14407 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14408    { (exit 1); exit 1; }; }
14409 fi
14410 cat >conftest.$ac_ext <<_ACEOF
14411 /* confdefs.h.  */
14412 _ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h.  */
14416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14418 #define $ac_func innocuous_$ac_func
14419
14420 /* System header to define __stub macros and hopefully few prototypes,
14421     which can conflict with char $ac_func (); below.
14422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14423     <limits.h> exists even on freestanding compilers.  */
14424
14425 #ifdef __STDC__
14426 # include <limits.h>
14427 #else
14428 # include <assert.h>
14429 #endif
14430
14431 #undef $ac_func
14432
14433 /* Override any gcc2 internal prototype to avoid an error.  */
14434 #ifdef __cplusplus
14435 extern "C"
14436 {
14437 #endif
14438 /* We use char because int might match the return type of a gcc2
14439    builtin and then its argument prototype would still apply.  */
14440 char $ac_func ();
14441 /* The GNU C library defines this for functions which it implements
14442     to always fail with ENOSYS.  Some functions are actually named
14443     something starting with __ and the normal name is an alias.  */
14444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14445 choke me
14446 #else
14447 char (*f) () = $ac_func;
14448 #endif
14449 #ifdef __cplusplus
14450 }
14451 #endif
14452
14453 int
14454 main ()
14455 {
14456 return f != $ac_func;
14457   ;
14458   return 0;
14459 }
14460 _ACEOF
14461 rm -f conftest.$ac_objext conftest$ac_exeext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463   (eval $ac_link) 2>conftest.er1
14464   ac_status=$?
14465   grep -v '^ *+' conftest.er1 >conftest.err
14466   rm -f conftest.er1
14467   cat conftest.err >&5
14468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469   (exit $ac_status); } &&
14470          { ac_try='test -z "$ac_c_werror_flag"
14471                          || test ! -s conftest.err'
14472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473   (eval $ac_try) 2>&5
14474   ac_status=$?
14475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); }; } &&
14477          { ac_try='test -s conftest$ac_exeext'
14478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479   (eval $ac_try) 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); }; }; then
14483   eval "$as_ac_var=yes"
14484 else
14485   echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14487
14488 eval "$as_ac_var=no"
14489 fi
14490 rm -f conftest.err conftest.$ac_objext \
14491       conftest$ac_exeext conftest.$ac_ext
14492 fi
14493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14495 if test `eval echo '${'$as_ac_var'}'` = yes; then
14496   cat >>confdefs.h <<_ACEOF
14497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14498 _ACEOF
14499
14500 fi
14501 done
14502
14503     fi
14504   fi
14505
14506
14507
14508   echo "$as_me:$LINENO: checking for hypotf declaration" >&5
14509 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
14510   if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
14511     if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
14512   echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14514
14515
14516
14517       ac_ext=cc
14518 ac_cpp='$CXXCPP $CPPFLAGS'
14519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14522
14523       cat >conftest.$ac_ext <<_ACEOF
14524 /* confdefs.h.  */
14525 _ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h.  */
14529 #include <math.h>
14530 int
14531 main ()
14532 {
14533  hypotf(0, 0);
14534   ;
14535   return 0;
14536 }
14537 _ACEOF
14538 rm -f conftest.$ac_objext
14539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14540   (eval $ac_compile) 2>conftest.er1
14541   ac_status=$?
14542   grep -v '^ *+' conftest.er1 >conftest.err
14543   rm -f conftest.er1
14544   cat conftest.err >&5
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); } &&
14547          { ac_try='test -z "$ac_cxx_werror_flag"
14548                          || test ! -s conftest.err'
14549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550   (eval $ac_try) 2>&5
14551   ac_status=$?
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); }; } &&
14554          { ac_try='test -s conftest.$ac_objext'
14555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556   (eval $ac_try) 2>&5
14557   ac_status=$?
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); }; }; then
14560   glibcxx_cv_func_hypotf_use=yes
14561 else
14562   echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14564
14565 glibcxx_cv_func_hypotf_use=no
14566 fi
14567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14568       ac_ext=c
14569 ac_cpp='$CPP $CPPFLAGS'
14570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14573
14574
14575 fi
14576
14577   fi
14578   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
14579 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
14580
14581   if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
14582
14583 for ac_func in hypotf
14584 do
14585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14586 echo "$as_me:$LINENO: checking for $ac_func" >&5
14587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14588 if eval "test \"\${$as_ac_var+set}\" = set"; then
14589   echo $ECHO_N "(cached) $ECHO_C" >&6
14590 else
14591   if test x$gcc_no_link = xyes; then
14592   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14593 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14594    { (exit 1); exit 1; }; }
14595 fi
14596 cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h.  */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h.  */
14602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14604 #define $ac_func innocuous_$ac_func
14605
14606 /* System header to define __stub macros and hopefully few prototypes,
14607     which can conflict with char $ac_func (); below.
14608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14609     <limits.h> exists even on freestanding compilers.  */
14610
14611 #ifdef __STDC__
14612 # include <limits.h>
14613 #else
14614 # include <assert.h>
14615 #endif
14616
14617 #undef $ac_func
14618
14619 /* Override any gcc2 internal prototype to avoid an error.  */
14620 #ifdef __cplusplus
14621 extern "C"
14622 {
14623 #endif
14624 /* We use char because int might match the return type of a gcc2
14625    builtin and then its argument prototype would still apply.  */
14626 char $ac_func ();
14627 /* The GNU C library defines this for functions which it implements
14628     to always fail with ENOSYS.  Some functions are actually named
14629     something starting with __ and the normal name is an alias.  */
14630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14631 choke me
14632 #else
14633 char (*f) () = $ac_func;
14634 #endif
14635 #ifdef __cplusplus
14636 }
14637 #endif
14638
14639 int
14640 main ()
14641 {
14642 return f != $ac_func;
14643   ;
14644   return 0;
14645 }
14646 _ACEOF
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649   (eval $ac_link) 2>conftest.er1
14650   ac_status=$?
14651   grep -v '^ *+' conftest.er1 >conftest.err
14652   rm -f conftest.er1
14653   cat conftest.err >&5
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); } &&
14656          { ac_try='test -z "$ac_c_werror_flag"
14657                          || test ! -s conftest.err'
14658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659   (eval $ac_try) 2>&5
14660   ac_status=$?
14661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); }; } &&
14663          { ac_try='test -s conftest$ac_exeext'
14664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665   (eval $ac_try) 2>&5
14666   ac_status=$?
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); }; }; then
14669   eval "$as_ac_var=yes"
14670 else
14671   echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14673
14674 eval "$as_ac_var=no"
14675 fi
14676 rm -f conftest.err conftest.$ac_objext \
14677       conftest$ac_exeext conftest.$ac_ext
14678 fi
14679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14681 if test `eval echo '${'$as_ac_var'}'` = yes; then
14682   cat >>confdefs.h <<_ACEOF
14683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14684 _ACEOF
14685
14686 fi
14687 done
14688
14689   else
14690
14691   echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
14692 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
14693   if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
14694     if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
14695   echo $ECHO_N "(cached) $ECHO_C" >&6
14696 else
14697
14698
14699
14700       ac_ext=cc
14701 ac_cpp='$CXXCPP $CPPFLAGS'
14702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14705
14706       cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h.  */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h.  */
14712 #include <math.h>
14713 int
14714 main ()
14715 {
14716  _hypotf(0, 0);
14717   ;
14718   return 0;
14719 }
14720 _ACEOF
14721 rm -f conftest.$ac_objext
14722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723   (eval $ac_compile) 2>conftest.er1
14724   ac_status=$?
14725   grep -v '^ *+' conftest.er1 >conftest.err
14726   rm -f conftest.er1
14727   cat conftest.err >&5
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); } &&
14730          { ac_try='test -z "$ac_cxx_werror_flag"
14731                          || test ! -s conftest.err'
14732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733   (eval $ac_try) 2>&5
14734   ac_status=$?
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); }; } &&
14737          { ac_try='test -s conftest.$ac_objext'
14738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739   (eval $ac_try) 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); }; }; then
14743   glibcxx_cv_func__hypotf_use=yes
14744 else
14745   echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748 glibcxx_cv_func__hypotf_use=no
14749 fi
14750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14751       ac_ext=c
14752 ac_cpp='$CPP $CPPFLAGS'
14753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14756
14757
14758 fi
14759
14760   fi
14761   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
14762 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
14763
14764     if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
14765
14766 for ac_func in _hypotf
14767 do
14768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14769 echo "$as_me:$LINENO: checking for $ac_func" >&5
14770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14771 if eval "test \"\${$as_ac_var+set}\" = set"; then
14772   echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774   if test x$gcc_no_link = xyes; then
14775   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14776 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14777    { (exit 1); exit 1; }; }
14778 fi
14779 cat >conftest.$ac_ext <<_ACEOF
14780 /* confdefs.h.  */
14781 _ACEOF
14782 cat confdefs.h >>conftest.$ac_ext
14783 cat >>conftest.$ac_ext <<_ACEOF
14784 /* end confdefs.h.  */
14785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14787 #define $ac_func innocuous_$ac_func
14788
14789 /* System header to define __stub macros and hopefully few prototypes,
14790     which can conflict with char $ac_func (); below.
14791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14792     <limits.h> exists even on freestanding compilers.  */
14793
14794 #ifdef __STDC__
14795 # include <limits.h>
14796 #else
14797 # include <assert.h>
14798 #endif
14799
14800 #undef $ac_func
14801
14802 /* Override any gcc2 internal prototype to avoid an error.  */
14803 #ifdef __cplusplus
14804 extern "C"
14805 {
14806 #endif
14807 /* We use char because int might match the return type of a gcc2
14808    builtin and then its argument prototype would still apply.  */
14809 char $ac_func ();
14810 /* The GNU C library defines this for functions which it implements
14811     to always fail with ENOSYS.  Some functions are actually named
14812     something starting with __ and the normal name is an alias.  */
14813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14814 choke me
14815 #else
14816 char (*f) () = $ac_func;
14817 #endif
14818 #ifdef __cplusplus
14819 }
14820 #endif
14821
14822 int
14823 main ()
14824 {
14825 return f != $ac_func;
14826   ;
14827   return 0;
14828 }
14829 _ACEOF
14830 rm -f conftest.$ac_objext conftest$ac_exeext
14831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14832   (eval $ac_link) 2>conftest.er1
14833   ac_status=$?
14834   grep -v '^ *+' conftest.er1 >conftest.err
14835   rm -f conftest.er1
14836   cat conftest.err >&5
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   (exit $ac_status); } &&
14839          { ac_try='test -z "$ac_c_werror_flag"
14840                          || test ! -s conftest.err'
14841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14842   (eval $ac_try) 2>&5
14843   ac_status=$?
14844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845   (exit $ac_status); }; } &&
14846          { ac_try='test -s conftest$ac_exeext'
14847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848   (eval $ac_try) 2>&5
14849   ac_status=$?
14850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851   (exit $ac_status); }; }; then
14852   eval "$as_ac_var=yes"
14853 else
14854   echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14856
14857 eval "$as_ac_var=no"
14858 fi
14859 rm -f conftest.err conftest.$ac_objext \
14860       conftest$ac_exeext conftest.$ac_ext
14861 fi
14862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14864 if test `eval echo '${'$as_ac_var'}'` = yes; then
14865   cat >>confdefs.h <<_ACEOF
14866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14867 _ACEOF
14868
14869 fi
14870 done
14871
14872     fi
14873   fi
14874
14875
14876
14877   echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
14878 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
14879   if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
14880     if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
14881   echo $ECHO_N "(cached) $ECHO_C" >&6
14882 else
14883
14884
14885
14886       ac_ext=cc
14887 ac_cpp='$CXXCPP $CPPFLAGS'
14888 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14889 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14890 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14891
14892       cat >conftest.$ac_ext <<_ACEOF
14893 /* confdefs.h.  */
14894 _ACEOF
14895 cat confdefs.h >>conftest.$ac_ext
14896 cat >>conftest.$ac_ext <<_ACEOF
14897 /* end confdefs.h.  */
14898 #include <math.h>
14899 int
14900 main ()
14901 {
14902  ldexpf(0, 0);
14903   ;
14904   return 0;
14905 }
14906 _ACEOF
14907 rm -f conftest.$ac_objext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14909   (eval $ac_compile) 2>conftest.er1
14910   ac_status=$?
14911   grep -v '^ *+' conftest.er1 >conftest.err
14912   rm -f conftest.er1
14913   cat conftest.err >&5
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); } &&
14916          { ac_try='test -z "$ac_cxx_werror_flag"
14917                          || test ! -s conftest.err'
14918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919   (eval $ac_try) 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; } &&
14923          { ac_try='test -s conftest.$ac_objext'
14924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925   (eval $ac_try) 2>&5
14926   ac_status=$?
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); }; }; then
14929   glibcxx_cv_func_ldexpf_use=yes
14930 else
14931   echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14933
14934 glibcxx_cv_func_ldexpf_use=no
14935 fi
14936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14937       ac_ext=c
14938 ac_cpp='$CPP $CPPFLAGS'
14939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14942
14943
14944 fi
14945
14946   fi
14947   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
14948 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
14949
14950   if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
14951
14952 for ac_func in ldexpf
14953 do
14954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14955 echo "$as_me:$LINENO: checking for $ac_func" >&5
14956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14957 if eval "test \"\${$as_ac_var+set}\" = set"; then
14958   echo $ECHO_N "(cached) $ECHO_C" >&6
14959 else
14960   if test x$gcc_no_link = xyes; then
14961   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14962 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14963    { (exit 1); exit 1; }; }
14964 fi
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h.  */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h.  */
14971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14973 #define $ac_func innocuous_$ac_func
14974
14975 /* System header to define __stub macros and hopefully few prototypes,
14976     which can conflict with char $ac_func (); below.
14977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14978     <limits.h> exists even on freestanding compilers.  */
14979
14980 #ifdef __STDC__
14981 # include <limits.h>
14982 #else
14983 # include <assert.h>
14984 #endif
14985
14986 #undef $ac_func
14987
14988 /* Override any gcc2 internal prototype to avoid an error.  */
14989 #ifdef __cplusplus
14990 extern "C"
14991 {
14992 #endif
14993 /* We use char because int might match the return type of a gcc2
14994    builtin and then its argument prototype would still apply.  */
14995 char $ac_func ();
14996 /* The GNU C library defines this for functions which it implements
14997     to always fail with ENOSYS.  Some functions are actually named
14998     something starting with __ and the normal name is an alias.  */
14999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15000 choke me
15001 #else
15002 char (*f) () = $ac_func;
15003 #endif
15004 #ifdef __cplusplus
15005 }
15006 #endif
15007
15008 int
15009 main ()
15010 {
15011 return f != $ac_func;
15012   ;
15013   return 0;
15014 }
15015 _ACEOF
15016 rm -f conftest.$ac_objext conftest$ac_exeext
15017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15018   (eval $ac_link) 2>conftest.er1
15019   ac_status=$?
15020   grep -v '^ *+' conftest.er1 >conftest.err
15021   rm -f conftest.er1
15022   cat conftest.err >&5
15023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024   (exit $ac_status); } &&
15025          { ac_try='test -z "$ac_c_werror_flag"
15026                          || test ! -s conftest.err'
15027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028   (eval $ac_try) 2>&5
15029   ac_status=$?
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); }; } &&
15032          { ac_try='test -s conftest$ac_exeext'
15033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15034   (eval $ac_try) 2>&5
15035   ac_status=$?
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); }; }; then
15038   eval "$as_ac_var=yes"
15039 else
15040   echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.$ac_ext >&5
15042
15043 eval "$as_ac_var=no"
15044 fi
15045 rm -f conftest.err conftest.$ac_objext \
15046       conftest$ac_exeext conftest.$ac_ext
15047 fi
15048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15050 if test `eval echo '${'$as_ac_var'}'` = yes; then
15051   cat >>confdefs.h <<_ACEOF
15052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15053 _ACEOF
15054
15055 fi
15056 done
15057
15058   else
15059
15060   echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
15061 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
15062   if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
15063     if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
15064   echo $ECHO_N "(cached) $ECHO_C" >&6
15065 else
15066
15067
15068
15069       ac_ext=cc
15070 ac_cpp='$CXXCPP $CPPFLAGS'
15071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15074
15075       cat >conftest.$ac_ext <<_ACEOF
15076 /* confdefs.h.  */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h.  */
15081 #include <math.h>
15082 int
15083 main ()
15084 {
15085  _ldexpf(0, 0);
15086   ;
15087   return 0;
15088 }
15089 _ACEOF
15090 rm -f conftest.$ac_objext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15092   (eval $ac_compile) 2>conftest.er1
15093   ac_status=$?
15094   grep -v '^ *+' conftest.er1 >conftest.err
15095   rm -f conftest.er1
15096   cat conftest.err >&5
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); } &&
15099          { ac_try='test -z "$ac_cxx_werror_flag"
15100                          || test ! -s conftest.err'
15101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102   (eval $ac_try) 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); }; } &&
15106          { ac_try='test -s conftest.$ac_objext'
15107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112   glibcxx_cv_func__ldexpf_use=yes
15113 else
15114   echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117 glibcxx_cv_func__ldexpf_use=no
15118 fi
15119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15120       ac_ext=c
15121 ac_cpp='$CPP $CPPFLAGS'
15122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15125
15126
15127 fi
15128
15129   fi
15130   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
15131 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
15132
15133     if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
15134
15135 for ac_func in _ldexpf
15136 do
15137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15138 echo "$as_me:$LINENO: checking for $ac_func" >&5
15139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15140 if eval "test \"\${$as_ac_var+set}\" = set"; then
15141   echo $ECHO_N "(cached) $ECHO_C" >&6
15142 else
15143   if test x$gcc_no_link = xyes; then
15144   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15145 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15146    { (exit 1); exit 1; }; }
15147 fi
15148 cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h.  */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h.  */
15154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15156 #define $ac_func innocuous_$ac_func
15157
15158 /* System header to define __stub macros and hopefully few prototypes,
15159     which can conflict with char $ac_func (); below.
15160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15161     <limits.h> exists even on freestanding compilers.  */
15162
15163 #ifdef __STDC__
15164 # include <limits.h>
15165 #else
15166 # include <assert.h>
15167 #endif
15168
15169 #undef $ac_func
15170
15171 /* Override any gcc2 internal prototype to avoid an error.  */
15172 #ifdef __cplusplus
15173 extern "C"
15174 {
15175 #endif
15176 /* We use char because int might match the return type of a gcc2
15177    builtin and then its argument prototype would still apply.  */
15178 char $ac_func ();
15179 /* The GNU C library defines this for functions which it implements
15180     to always fail with ENOSYS.  Some functions are actually named
15181     something starting with __ and the normal name is an alias.  */
15182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15183 choke me
15184 #else
15185 char (*f) () = $ac_func;
15186 #endif
15187 #ifdef __cplusplus
15188 }
15189 #endif
15190
15191 int
15192 main ()
15193 {
15194 return f != $ac_func;
15195   ;
15196   return 0;
15197 }
15198 _ACEOF
15199 rm -f conftest.$ac_objext conftest$ac_exeext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15201   (eval $ac_link) 2>conftest.er1
15202   ac_status=$?
15203   grep -v '^ *+' conftest.er1 >conftest.err
15204   rm -f conftest.er1
15205   cat conftest.err >&5
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); } &&
15208          { ac_try='test -z "$ac_c_werror_flag"
15209                          || test ! -s conftest.err'
15210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211   (eval $ac_try) 2>&5
15212   ac_status=$?
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   (exit $ac_status); }; } &&
15215          { ac_try='test -s conftest$ac_exeext'
15216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15217   (eval $ac_try) 2>&5
15218   ac_status=$?
15219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220   (exit $ac_status); }; }; then
15221   eval "$as_ac_var=yes"
15222 else
15223   echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15225
15226 eval "$as_ac_var=no"
15227 fi
15228 rm -f conftest.err conftest.$ac_objext \
15229       conftest$ac_exeext conftest.$ac_ext
15230 fi
15231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15233 if test `eval echo '${'$as_ac_var'}'` = yes; then
15234   cat >>confdefs.h <<_ACEOF
15235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15236 _ACEOF
15237
15238 fi
15239 done
15240
15241     fi
15242   fi
15243
15244
15245
15246   echo "$as_me:$LINENO: checking for logf declaration" >&5
15247 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
15248   if test x${glibcxx_cv_func_logf_use+set} != xset; then
15249     if test "${glibcxx_cv_func_logf_use+set}" = set; then
15250   echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15252
15253
15254
15255       ac_ext=cc
15256 ac_cpp='$CXXCPP $CPPFLAGS'
15257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15260
15261       cat >conftest.$ac_ext <<_ACEOF
15262 /* confdefs.h.  */
15263 _ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h.  */
15267 #include <math.h>
15268                       #ifdef HAVE_IEEEFP_H
15269                       #include <ieeefp.h>
15270                       #endif
15271
15272 int
15273 main ()
15274 {
15275  logf(0);
15276   ;
15277   return 0;
15278 }
15279 _ACEOF
15280 rm -f conftest.$ac_objext
15281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15282   (eval $ac_compile) 2>conftest.er1
15283   ac_status=$?
15284   grep -v '^ *+' conftest.er1 >conftest.err
15285   rm -f conftest.er1
15286   cat conftest.err >&5
15287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288   (exit $ac_status); } &&
15289          { ac_try='test -z "$ac_cxx_werror_flag"
15290                          || test ! -s conftest.err'
15291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292   (eval $ac_try) 2>&5
15293   ac_status=$?
15294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295   (exit $ac_status); }; } &&
15296          { ac_try='test -s conftest.$ac_objext'
15297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298   (eval $ac_try) 2>&5
15299   ac_status=$?
15300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); }; }; then
15302   glibcxx_cv_func_logf_use=yes
15303 else
15304   echo "$as_me: failed program was:" >&5
15305 sed 's/^/| /' conftest.$ac_ext >&5
15306
15307 glibcxx_cv_func_logf_use=no
15308 fi
15309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15310       ac_ext=c
15311 ac_cpp='$CPP $CPPFLAGS'
15312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15315
15316
15317 fi
15318
15319   fi
15320   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
15321 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
15322
15323   if test x$glibcxx_cv_func_logf_use = x"yes"; then
15324
15325 for ac_func in logf
15326 do
15327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15328 echo "$as_me:$LINENO: checking for $ac_func" >&5
15329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15330 if eval "test \"\${$as_ac_var+set}\" = set"; then
15331   echo $ECHO_N "(cached) $ECHO_C" >&6
15332 else
15333   if test x$gcc_no_link = xyes; then
15334   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15336    { (exit 1); exit 1; }; }
15337 fi
15338 cat >conftest.$ac_ext <<_ACEOF
15339 /* confdefs.h.  */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h.  */
15344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15346 #define $ac_func innocuous_$ac_func
15347
15348 /* System header to define __stub macros and hopefully few prototypes,
15349     which can conflict with char $ac_func (); below.
15350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15351     <limits.h> exists even on freestanding compilers.  */
15352
15353 #ifdef __STDC__
15354 # include <limits.h>
15355 #else
15356 # include <assert.h>
15357 #endif
15358
15359 #undef $ac_func
15360
15361 /* Override any gcc2 internal prototype to avoid an error.  */
15362 #ifdef __cplusplus
15363 extern "C"
15364 {
15365 #endif
15366 /* We use char because int might match the return type of a gcc2
15367    builtin and then its argument prototype would still apply.  */
15368 char $ac_func ();
15369 /* The GNU C library defines this for functions which it implements
15370     to always fail with ENOSYS.  Some functions are actually named
15371     something starting with __ and the normal name is an alias.  */
15372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15373 choke me
15374 #else
15375 char (*f) () = $ac_func;
15376 #endif
15377 #ifdef __cplusplus
15378 }
15379 #endif
15380
15381 int
15382 main ()
15383 {
15384 return f != $ac_func;
15385   ;
15386   return 0;
15387 }
15388 _ACEOF
15389 rm -f conftest.$ac_objext conftest$ac_exeext
15390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15391   (eval $ac_link) 2>conftest.er1
15392   ac_status=$?
15393   grep -v '^ *+' conftest.er1 >conftest.err
15394   rm -f conftest.er1
15395   cat conftest.err >&5
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); } &&
15398          { ac_try='test -z "$ac_c_werror_flag"
15399                          || test ! -s conftest.err'
15400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15401   (eval $ac_try) 2>&5
15402   ac_status=$?
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); }; } &&
15405          { ac_try='test -s conftest$ac_exeext'
15406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15407   (eval $ac_try) 2>&5
15408   ac_status=$?
15409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410   (exit $ac_status); }; }; then
15411   eval "$as_ac_var=yes"
15412 else
15413   echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15415
15416 eval "$as_ac_var=no"
15417 fi
15418 rm -f conftest.err conftest.$ac_objext \
15419       conftest$ac_exeext conftest.$ac_ext
15420 fi
15421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15423 if test `eval echo '${'$as_ac_var'}'` = yes; then
15424   cat >>confdefs.h <<_ACEOF
15425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15426 _ACEOF
15427
15428 fi
15429 done
15430
15431   else
15432
15433   echo "$as_me:$LINENO: checking for _logf declaration" >&5
15434 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
15435   if test x${glibcxx_cv_func__logf_use+set} != xset; then
15436     if test "${glibcxx_cv_func__logf_use+set}" = set; then
15437   echo $ECHO_N "(cached) $ECHO_C" >&6
15438 else
15439
15440
15441
15442       ac_ext=cc
15443 ac_cpp='$CXXCPP $CPPFLAGS'
15444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15447
15448       cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h.  */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h.  */
15454 #include <math.h>
15455                       #ifdef HAVE_IEEEFP_H
15456                       #include <ieeefp.h>
15457                       #endif
15458
15459 int
15460 main ()
15461 {
15462  _logf(0);
15463   ;
15464   return 0;
15465 }
15466 _ACEOF
15467 rm -f conftest.$ac_objext
15468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15469   (eval $ac_compile) 2>conftest.er1
15470   ac_status=$?
15471   grep -v '^ *+' conftest.er1 >conftest.err
15472   rm -f conftest.er1
15473   cat conftest.err >&5
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); } &&
15476          { ac_try='test -z "$ac_cxx_werror_flag"
15477                          || test ! -s conftest.err'
15478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479   (eval $ac_try) 2>&5
15480   ac_status=$?
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); }; } &&
15483          { ac_try='test -s conftest.$ac_objext'
15484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485   (eval $ac_try) 2>&5
15486   ac_status=$?
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); }; }; then
15489   glibcxx_cv_func__logf_use=yes
15490 else
15491   echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494 glibcxx_cv_func__logf_use=no
15495 fi
15496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15497       ac_ext=c
15498 ac_cpp='$CPP $CPPFLAGS'
15499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15502
15503
15504 fi
15505
15506   fi
15507   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
15508 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
15509
15510     if test x$glibcxx_cv_func__logf_use = x"yes"; then
15511
15512 for ac_func in _logf
15513 do
15514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15515 echo "$as_me:$LINENO: checking for $ac_func" >&5
15516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15517 if eval "test \"\${$as_ac_var+set}\" = set"; then
15518   echo $ECHO_N "(cached) $ECHO_C" >&6
15519 else
15520   if test x$gcc_no_link = xyes; then
15521   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15522 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15523    { (exit 1); exit 1; }; }
15524 fi
15525 cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15533 #define $ac_func innocuous_$ac_func
15534
15535 /* System header to define __stub macros and hopefully few prototypes,
15536     which can conflict with char $ac_func (); below.
15537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15538     <limits.h> exists even on freestanding compilers.  */
15539
15540 #ifdef __STDC__
15541 # include <limits.h>
15542 #else
15543 # include <assert.h>
15544 #endif
15545
15546 #undef $ac_func
15547
15548 /* Override any gcc2 internal prototype to avoid an error.  */
15549 #ifdef __cplusplus
15550 extern "C"
15551 {
15552 #endif
15553 /* We use char because int might match the return type of a gcc2
15554    builtin and then its argument prototype would still apply.  */
15555 char $ac_func ();
15556 /* The GNU C library defines this for functions which it implements
15557     to always fail with ENOSYS.  Some functions are actually named
15558     something starting with __ and the normal name is an alias.  */
15559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15560 choke me
15561 #else
15562 char (*f) () = $ac_func;
15563 #endif
15564 #ifdef __cplusplus
15565 }
15566 #endif
15567
15568 int
15569 main ()
15570 {
15571 return f != $ac_func;
15572   ;
15573   return 0;
15574 }
15575 _ACEOF
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578   (eval $ac_link) 2>conftest.er1
15579   ac_status=$?
15580   grep -v '^ *+' conftest.er1 >conftest.err
15581   rm -f conftest.er1
15582   cat conftest.err >&5
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); } &&
15585          { ac_try='test -z "$ac_c_werror_flag"
15586                          || test ! -s conftest.err'
15587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588   (eval $ac_try) 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }; } &&
15592          { ac_try='test -s conftest$ac_exeext'
15593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594   (eval $ac_try) 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; }; then
15598   eval "$as_ac_var=yes"
15599 else
15600   echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15602
15603 eval "$as_ac_var=no"
15604 fi
15605 rm -f conftest.err conftest.$ac_objext \
15606       conftest$ac_exeext conftest.$ac_ext
15607 fi
15608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15610 if test `eval echo '${'$as_ac_var'}'` = yes; then
15611   cat >>confdefs.h <<_ACEOF
15612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15613 _ACEOF
15614
15615 fi
15616 done
15617
15618     fi
15619   fi
15620
15621
15622
15623   echo "$as_me:$LINENO: checking for log10f declaration" >&5
15624 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
15625   if test x${glibcxx_cv_func_log10f_use+set} != xset; then
15626     if test "${glibcxx_cv_func_log10f_use+set}" = set; then
15627   echo $ECHO_N "(cached) $ECHO_C" >&6
15628 else
15629
15630
15631
15632       ac_ext=cc
15633 ac_cpp='$CXXCPP $CPPFLAGS'
15634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15637
15638       cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644 #include <math.h>
15645                       #ifdef HAVE_IEEEFP_H
15646                       #include <ieeefp.h>
15647                       #endif
15648
15649 int
15650 main ()
15651 {
15652  log10f(0);
15653   ;
15654   return 0;
15655 }
15656 _ACEOF
15657 rm -f conftest.$ac_objext
15658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15659   (eval $ac_compile) 2>conftest.er1
15660   ac_status=$?
15661   grep -v '^ *+' conftest.er1 >conftest.err
15662   rm -f conftest.er1
15663   cat conftest.err >&5
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); } &&
15666          { ac_try='test -z "$ac_cxx_werror_flag"
15667                          || test ! -s conftest.err'
15668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669   (eval $ac_try) 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); }; } &&
15673          { ac_try='test -s conftest.$ac_objext'
15674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675   (eval $ac_try) 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; }; then
15679   glibcxx_cv_func_log10f_use=yes
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684 glibcxx_cv_func_log10f_use=no
15685 fi
15686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15687       ac_ext=c
15688 ac_cpp='$CPP $CPPFLAGS'
15689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15692
15693
15694 fi
15695
15696   fi
15697   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
15698 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
15699
15700   if test x$glibcxx_cv_func_log10f_use = x"yes"; then
15701
15702 for ac_func in log10f
15703 do
15704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15705 echo "$as_me:$LINENO: checking for $ac_func" >&5
15706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15707 if eval "test \"\${$as_ac_var+set}\" = set"; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   if test x$gcc_no_link = xyes; then
15711   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15713    { (exit 1); exit 1; }; }
15714 fi
15715 cat >conftest.$ac_ext <<_ACEOF
15716 /* confdefs.h.  */
15717 _ACEOF
15718 cat confdefs.h >>conftest.$ac_ext
15719 cat >>conftest.$ac_ext <<_ACEOF
15720 /* end confdefs.h.  */
15721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15723 #define $ac_func innocuous_$ac_func
15724
15725 /* System header to define __stub macros and hopefully few prototypes,
15726     which can conflict with char $ac_func (); below.
15727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15728     <limits.h> exists even on freestanding compilers.  */
15729
15730 #ifdef __STDC__
15731 # include <limits.h>
15732 #else
15733 # include <assert.h>
15734 #endif
15735
15736 #undef $ac_func
15737
15738 /* Override any gcc2 internal prototype to avoid an error.  */
15739 #ifdef __cplusplus
15740 extern "C"
15741 {
15742 #endif
15743 /* We use char because int might match the return type of a gcc2
15744    builtin and then its argument prototype would still apply.  */
15745 char $ac_func ();
15746 /* The GNU C library defines this for functions which it implements
15747     to always fail with ENOSYS.  Some functions are actually named
15748     something starting with __ and the normal name is an alias.  */
15749 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15750 choke me
15751 #else
15752 char (*f) () = $ac_func;
15753 #endif
15754 #ifdef __cplusplus
15755 }
15756 #endif
15757
15758 int
15759 main ()
15760 {
15761 return f != $ac_func;
15762   ;
15763   return 0;
15764 }
15765 _ACEOF
15766 rm -f conftest.$ac_objext conftest$ac_exeext
15767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15768   (eval $ac_link) 2>conftest.er1
15769   ac_status=$?
15770   grep -v '^ *+' conftest.er1 >conftest.err
15771   rm -f conftest.er1
15772   cat conftest.err >&5
15773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774   (exit $ac_status); } &&
15775          { ac_try='test -z "$ac_c_werror_flag"
15776                          || test ! -s conftest.err'
15777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778   (eval $ac_try) 2>&5
15779   ac_status=$?
15780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); }; } &&
15782          { ac_try='test -s conftest$ac_exeext'
15783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15784   (eval $ac_try) 2>&5
15785   ac_status=$?
15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787   (exit $ac_status); }; }; then
15788   eval "$as_ac_var=yes"
15789 else
15790   echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15792
15793 eval "$as_ac_var=no"
15794 fi
15795 rm -f conftest.err conftest.$ac_objext \
15796       conftest$ac_exeext conftest.$ac_ext
15797 fi
15798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15799 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15800 if test `eval echo '${'$as_ac_var'}'` = yes; then
15801   cat >>confdefs.h <<_ACEOF
15802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15803 _ACEOF
15804
15805 fi
15806 done
15807
15808   else
15809
15810   echo "$as_me:$LINENO: checking for _log10f declaration" >&5
15811 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
15812   if test x${glibcxx_cv_func__log10f_use+set} != xset; then
15813     if test "${glibcxx_cv_func__log10f_use+set}" = set; then
15814   echo $ECHO_N "(cached) $ECHO_C" >&6
15815 else
15816
15817
15818
15819       ac_ext=cc
15820 ac_cpp='$CXXCPP $CPPFLAGS'
15821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15824
15825       cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h.  */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h.  */
15831 #include <math.h>
15832                       #ifdef HAVE_IEEEFP_H
15833                       #include <ieeefp.h>
15834                       #endif
15835
15836 int
15837 main ()
15838 {
15839  _log10f(0);
15840   ;
15841   return 0;
15842 }
15843 _ACEOF
15844 rm -f conftest.$ac_objext
15845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15846   (eval $ac_compile) 2>conftest.er1
15847   ac_status=$?
15848   grep -v '^ *+' conftest.er1 >conftest.err
15849   rm -f conftest.er1
15850   cat conftest.err >&5
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); } &&
15853          { ac_try='test -z "$ac_cxx_werror_flag"
15854                          || test ! -s conftest.err'
15855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856   (eval $ac_try) 2>&5
15857   ac_status=$?
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); }; } &&
15860          { ac_try='test -s conftest.$ac_objext'
15861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862   (eval $ac_try) 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); }; }; then
15866   glibcxx_cv_func__log10f_use=yes
15867 else
15868   echo "$as_me: failed program was:" >&5
15869 sed 's/^/| /' conftest.$ac_ext >&5
15870
15871 glibcxx_cv_func__log10f_use=no
15872 fi
15873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15874       ac_ext=c
15875 ac_cpp='$CPP $CPPFLAGS'
15876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15879
15880
15881 fi
15882
15883   fi
15884   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
15885 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
15886
15887     if test x$glibcxx_cv_func__log10f_use = x"yes"; then
15888
15889 for ac_func in _log10f
15890 do
15891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15892 echo "$as_me:$LINENO: checking for $ac_func" >&5
15893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15894 if eval "test \"\${$as_ac_var+set}\" = set"; then
15895   echo $ECHO_N "(cached) $ECHO_C" >&6
15896 else
15897   if test x$gcc_no_link = xyes; then
15898   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15900    { (exit 1); exit 1; }; }
15901 fi
15902 cat >conftest.$ac_ext <<_ACEOF
15903 /* confdefs.h.  */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h.  */
15908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15910 #define $ac_func innocuous_$ac_func
15911
15912 /* System header to define __stub macros and hopefully few prototypes,
15913     which can conflict with char $ac_func (); below.
15914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15915     <limits.h> exists even on freestanding compilers.  */
15916
15917 #ifdef __STDC__
15918 # include <limits.h>
15919 #else
15920 # include <assert.h>
15921 #endif
15922
15923 #undef $ac_func
15924
15925 /* Override any gcc2 internal prototype to avoid an error.  */
15926 #ifdef __cplusplus
15927 extern "C"
15928 {
15929 #endif
15930 /* We use char because int might match the return type of a gcc2
15931    builtin and then its argument prototype would still apply.  */
15932 char $ac_func ();
15933 /* The GNU C library defines this for functions which it implements
15934     to always fail with ENOSYS.  Some functions are actually named
15935     something starting with __ and the normal name is an alias.  */
15936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15937 choke me
15938 #else
15939 char (*f) () = $ac_func;
15940 #endif
15941 #ifdef __cplusplus
15942 }
15943 #endif
15944
15945 int
15946 main ()
15947 {
15948 return f != $ac_func;
15949   ;
15950   return 0;
15951 }
15952 _ACEOF
15953 rm -f conftest.$ac_objext conftest$ac_exeext
15954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15955   (eval $ac_link) 2>conftest.er1
15956   ac_status=$?
15957   grep -v '^ *+' conftest.er1 >conftest.err
15958   rm -f conftest.er1
15959   cat conftest.err >&5
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); } &&
15962          { ac_try='test -z "$ac_c_werror_flag"
15963                          || test ! -s conftest.err'
15964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965   (eval $ac_try) 2>&5
15966   ac_status=$?
15967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968   (exit $ac_status); }; } &&
15969          { ac_try='test -s conftest$ac_exeext'
15970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971   (eval $ac_try) 2>&5
15972   ac_status=$?
15973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974   (exit $ac_status); }; }; then
15975   eval "$as_ac_var=yes"
15976 else
15977   echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15979
15980 eval "$as_ac_var=no"
15981 fi
15982 rm -f conftest.err conftest.$ac_objext \
15983       conftest$ac_exeext conftest.$ac_ext
15984 fi
15985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15987 if test `eval echo '${'$as_ac_var'}'` = yes; then
15988   cat >>confdefs.h <<_ACEOF
15989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15990 _ACEOF
15991
15992 fi
15993 done
15994
15995     fi
15996   fi
15997
15998
15999
16000   echo "$as_me:$LINENO: checking for modff declaration" >&5
16001 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
16002   if test x${glibcxx_cv_func_modff_use+set} != xset; then
16003     if test "${glibcxx_cv_func_modff_use+set}" = set; then
16004   echo $ECHO_N "(cached) $ECHO_C" >&6
16005 else
16006
16007
16008
16009       ac_ext=cc
16010 ac_cpp='$CXXCPP $CPPFLAGS'
16011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16014
16015       cat >conftest.$ac_ext <<_ACEOF
16016 /* confdefs.h.  */
16017 _ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h.  */
16021 #include <math.h>
16022 int
16023 main ()
16024 {
16025  modff(0, 0);
16026   ;
16027   return 0;
16028 }
16029 _ACEOF
16030 rm -f conftest.$ac_objext
16031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16032   (eval $ac_compile) 2>conftest.er1
16033   ac_status=$?
16034   grep -v '^ *+' conftest.er1 >conftest.err
16035   rm -f conftest.er1
16036   cat conftest.err >&5
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); } &&
16039          { ac_try='test -z "$ac_cxx_werror_flag"
16040                          || test ! -s conftest.err'
16041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042   (eval $ac_try) 2>&5
16043   ac_status=$?
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); }; } &&
16046          { ac_try='test -s conftest.$ac_objext'
16047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048   (eval $ac_try) 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); }; }; then
16052   glibcxx_cv_func_modff_use=yes
16053 else
16054   echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16056
16057 glibcxx_cv_func_modff_use=no
16058 fi
16059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16060       ac_ext=c
16061 ac_cpp='$CPP $CPPFLAGS'
16062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16065
16066
16067 fi
16068
16069   fi
16070   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
16071 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
16072
16073   if test x$glibcxx_cv_func_modff_use = x"yes"; then
16074
16075 for ac_func in modff
16076 do
16077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16078 echo "$as_me:$LINENO: checking for $ac_func" >&5
16079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16080 if eval "test \"\${$as_ac_var+set}\" = set"; then
16081   echo $ECHO_N "(cached) $ECHO_C" >&6
16082 else
16083   if test x$gcc_no_link = xyes; then
16084   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16085 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16086    { (exit 1); exit 1; }; }
16087 fi
16088 cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h.  */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h.  */
16094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16096 #define $ac_func innocuous_$ac_func
16097
16098 /* System header to define __stub macros and hopefully few prototypes,
16099     which can conflict with char $ac_func (); below.
16100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16101     <limits.h> exists even on freestanding compilers.  */
16102
16103 #ifdef __STDC__
16104 # include <limits.h>
16105 #else
16106 # include <assert.h>
16107 #endif
16108
16109 #undef $ac_func
16110
16111 /* Override any gcc2 internal prototype to avoid an error.  */
16112 #ifdef __cplusplus
16113 extern "C"
16114 {
16115 #endif
16116 /* We use char because int might match the return type of a gcc2
16117    builtin and then its argument prototype would still apply.  */
16118 char $ac_func ();
16119 /* The GNU C library defines this for functions which it implements
16120     to always fail with ENOSYS.  Some functions are actually named
16121     something starting with __ and the normal name is an alias.  */
16122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16123 choke me
16124 #else
16125 char (*f) () = $ac_func;
16126 #endif
16127 #ifdef __cplusplus
16128 }
16129 #endif
16130
16131 int
16132 main ()
16133 {
16134 return f != $ac_func;
16135   ;
16136   return 0;
16137 }
16138 _ACEOF
16139 rm -f conftest.$ac_objext conftest$ac_exeext
16140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16141   (eval $ac_link) 2>conftest.er1
16142   ac_status=$?
16143   grep -v '^ *+' conftest.er1 >conftest.err
16144   rm -f conftest.er1
16145   cat conftest.err >&5
16146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147   (exit $ac_status); } &&
16148          { ac_try='test -z "$ac_c_werror_flag"
16149                          || test ! -s conftest.err'
16150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16151   (eval $ac_try) 2>&5
16152   ac_status=$?
16153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154   (exit $ac_status); }; } &&
16155          { ac_try='test -s conftest$ac_exeext'
16156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157   (eval $ac_try) 2>&5
16158   ac_status=$?
16159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160   (exit $ac_status); }; }; then
16161   eval "$as_ac_var=yes"
16162 else
16163   echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16165
16166 eval "$as_ac_var=no"
16167 fi
16168 rm -f conftest.err conftest.$ac_objext \
16169       conftest$ac_exeext conftest.$ac_ext
16170 fi
16171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16173 if test `eval echo '${'$as_ac_var'}'` = yes; then
16174   cat >>confdefs.h <<_ACEOF
16175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16176 _ACEOF
16177
16178 fi
16179 done
16180
16181   else
16182
16183   echo "$as_me:$LINENO: checking for _modff declaration" >&5
16184 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
16185   if test x${glibcxx_cv_func__modff_use+set} != xset; then
16186     if test "${glibcxx_cv_func__modff_use+set}" = set; then
16187   echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16189
16190
16191
16192       ac_ext=cc
16193 ac_cpp='$CXXCPP $CPPFLAGS'
16194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16197
16198       cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h.  */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h.  */
16204 #include <math.h>
16205 int
16206 main ()
16207 {
16208  _modff(0, 0);
16209   ;
16210   return 0;
16211 }
16212 _ACEOF
16213 rm -f conftest.$ac_objext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215   (eval $ac_compile) 2>conftest.er1
16216   ac_status=$?
16217   grep -v '^ *+' conftest.er1 >conftest.err
16218   rm -f conftest.er1
16219   cat conftest.err >&5
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); } &&
16222          { ac_try='test -z "$ac_cxx_werror_flag"
16223                          || test ! -s conftest.err'
16224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225   (eval $ac_try) 2>&5
16226   ac_status=$?
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); }; } &&
16229          { ac_try='test -s conftest.$ac_objext'
16230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231   (eval $ac_try) 2>&5
16232   ac_status=$?
16233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234   (exit $ac_status); }; }; then
16235   glibcxx_cv_func__modff_use=yes
16236 else
16237   echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16239
16240 glibcxx_cv_func__modff_use=no
16241 fi
16242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16243       ac_ext=c
16244 ac_cpp='$CPP $CPPFLAGS'
16245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16248
16249
16250 fi
16251
16252   fi
16253   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
16254 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
16255
16256     if test x$glibcxx_cv_func__modff_use = x"yes"; then
16257
16258 for ac_func in _modff
16259 do
16260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16261 echo "$as_me:$LINENO: checking for $ac_func" >&5
16262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16263 if eval "test \"\${$as_ac_var+set}\" = set"; then
16264   echo $ECHO_N "(cached) $ECHO_C" >&6
16265 else
16266   if test x$gcc_no_link = xyes; then
16267   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16268 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16269    { (exit 1); exit 1; }; }
16270 fi
16271 cat >conftest.$ac_ext <<_ACEOF
16272 /* confdefs.h.  */
16273 _ACEOF
16274 cat confdefs.h >>conftest.$ac_ext
16275 cat >>conftest.$ac_ext <<_ACEOF
16276 /* end confdefs.h.  */
16277 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16278    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16279 #define $ac_func innocuous_$ac_func
16280
16281 /* System header to define __stub macros and hopefully few prototypes,
16282     which can conflict with char $ac_func (); below.
16283     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16284     <limits.h> exists even on freestanding compilers.  */
16285
16286 #ifdef __STDC__
16287 # include <limits.h>
16288 #else
16289 # include <assert.h>
16290 #endif
16291
16292 #undef $ac_func
16293
16294 /* Override any gcc2 internal prototype to avoid an error.  */
16295 #ifdef __cplusplus
16296 extern "C"
16297 {
16298 #endif
16299 /* We use char because int might match the return type of a gcc2
16300    builtin and then its argument prototype would still apply.  */
16301 char $ac_func ();
16302 /* The GNU C library defines this for functions which it implements
16303     to always fail with ENOSYS.  Some functions are actually named
16304     something starting with __ and the normal name is an alias.  */
16305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16306 choke me
16307 #else
16308 char (*f) () = $ac_func;
16309 #endif
16310 #ifdef __cplusplus
16311 }
16312 #endif
16313
16314 int
16315 main ()
16316 {
16317 return f != $ac_func;
16318   ;
16319   return 0;
16320 }
16321 _ACEOF
16322 rm -f conftest.$ac_objext conftest$ac_exeext
16323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16324   (eval $ac_link) 2>conftest.er1
16325   ac_status=$?
16326   grep -v '^ *+' conftest.er1 >conftest.err
16327   rm -f conftest.er1
16328   cat conftest.err >&5
16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330   (exit $ac_status); } &&
16331          { ac_try='test -z "$ac_c_werror_flag"
16332                          || test ! -s conftest.err'
16333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334   (eval $ac_try) 2>&5
16335   ac_status=$?
16336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337   (exit $ac_status); }; } &&
16338          { ac_try='test -s conftest$ac_exeext'
16339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340   (eval $ac_try) 2>&5
16341   ac_status=$?
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); }; }; then
16344   eval "$as_ac_var=yes"
16345 else
16346   echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16348
16349 eval "$as_ac_var=no"
16350 fi
16351 rm -f conftest.err conftest.$ac_objext \
16352       conftest$ac_exeext conftest.$ac_ext
16353 fi
16354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16356 if test `eval echo '${'$as_ac_var'}'` = yes; then
16357   cat >>confdefs.h <<_ACEOF
16358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16359 _ACEOF
16360
16361 fi
16362 done
16363
16364     fi
16365   fi
16366
16367
16368
16369   echo "$as_me:$LINENO: checking for powf declaration" >&5
16370 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
16371   if test x${glibcxx_cv_func_powf_use+set} != xset; then
16372     if test "${glibcxx_cv_func_powf_use+set}" = set; then
16373   echo $ECHO_N "(cached) $ECHO_C" >&6
16374 else
16375
16376
16377
16378       ac_ext=cc
16379 ac_cpp='$CXXCPP $CPPFLAGS'
16380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16383
16384       cat >conftest.$ac_ext <<_ACEOF
16385 /* confdefs.h.  */
16386 _ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h.  */
16390 #include <math.h>
16391 int
16392 main ()
16393 {
16394  powf(0, 0);
16395   ;
16396   return 0;
16397 }
16398 _ACEOF
16399 rm -f conftest.$ac_objext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16401   (eval $ac_compile) 2>conftest.er1
16402   ac_status=$?
16403   grep -v '^ *+' conftest.er1 >conftest.err
16404   rm -f conftest.er1
16405   cat conftest.err >&5
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   (exit $ac_status); } &&
16408          { ac_try='test -z "$ac_cxx_werror_flag"
16409                          || test ! -s conftest.err'
16410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411   (eval $ac_try) 2>&5
16412   ac_status=$?
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); }; } &&
16415          { ac_try='test -s conftest.$ac_objext'
16416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417   (eval $ac_try) 2>&5
16418   ac_status=$?
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); }; }; then
16421   glibcxx_cv_func_powf_use=yes
16422 else
16423   echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16425
16426 glibcxx_cv_func_powf_use=no
16427 fi
16428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16429       ac_ext=c
16430 ac_cpp='$CPP $CPPFLAGS'
16431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16434
16435
16436 fi
16437
16438   fi
16439   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
16440 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
16441
16442   if test x$glibcxx_cv_func_powf_use = x"yes"; then
16443
16444 for ac_func in powf
16445 do
16446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16447 echo "$as_me:$LINENO: checking for $ac_func" >&5
16448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16449 if eval "test \"\${$as_ac_var+set}\" = set"; then
16450   echo $ECHO_N "(cached) $ECHO_C" >&6
16451 else
16452   if test x$gcc_no_link = xyes; then
16453   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16454 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16455    { (exit 1); exit 1; }; }
16456 fi
16457 cat >conftest.$ac_ext <<_ACEOF
16458 /* confdefs.h.  */
16459 _ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h.  */
16463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16465 #define $ac_func innocuous_$ac_func
16466
16467 /* System header to define __stub macros and hopefully few prototypes,
16468     which can conflict with char $ac_func (); below.
16469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16470     <limits.h> exists even on freestanding compilers.  */
16471
16472 #ifdef __STDC__
16473 # include <limits.h>
16474 #else
16475 # include <assert.h>
16476 #endif
16477
16478 #undef $ac_func
16479
16480 /* Override any gcc2 internal prototype to avoid an error.  */
16481 #ifdef __cplusplus
16482 extern "C"
16483 {
16484 #endif
16485 /* We use char because int might match the return type of a gcc2
16486    builtin and then its argument prototype would still apply.  */
16487 char $ac_func ();
16488 /* The GNU C library defines this for functions which it implements
16489     to always fail with ENOSYS.  Some functions are actually named
16490     something starting with __ and the normal name is an alias.  */
16491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16492 choke me
16493 #else
16494 char (*f) () = $ac_func;
16495 #endif
16496 #ifdef __cplusplus
16497 }
16498 #endif
16499
16500 int
16501 main ()
16502 {
16503 return f != $ac_func;
16504   ;
16505   return 0;
16506 }
16507 _ACEOF
16508 rm -f conftest.$ac_objext conftest$ac_exeext
16509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16510   (eval $ac_link) 2>conftest.er1
16511   ac_status=$?
16512   grep -v '^ *+' conftest.er1 >conftest.err
16513   rm -f conftest.er1
16514   cat conftest.err >&5
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); } &&
16517          { ac_try='test -z "$ac_c_werror_flag"
16518                          || test ! -s conftest.err'
16519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520   (eval $ac_try) 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); }; } &&
16524          { ac_try='test -s conftest$ac_exeext'
16525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526   (eval $ac_try) 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; }; then
16530   eval "$as_ac_var=yes"
16531 else
16532   echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16534
16535 eval "$as_ac_var=no"
16536 fi
16537 rm -f conftest.err conftest.$ac_objext \
16538       conftest$ac_exeext conftest.$ac_ext
16539 fi
16540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16542 if test `eval echo '${'$as_ac_var'}'` = yes; then
16543   cat >>confdefs.h <<_ACEOF
16544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16545 _ACEOF
16546
16547 fi
16548 done
16549
16550   else
16551
16552   echo "$as_me:$LINENO: checking for _powf declaration" >&5
16553 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
16554   if test x${glibcxx_cv_func__powf_use+set} != xset; then
16555     if test "${glibcxx_cv_func__powf_use+set}" = set; then
16556   echo $ECHO_N "(cached) $ECHO_C" >&6
16557 else
16558
16559
16560
16561       ac_ext=cc
16562 ac_cpp='$CXXCPP $CPPFLAGS'
16563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16566
16567       cat >conftest.$ac_ext <<_ACEOF
16568 /* confdefs.h.  */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h.  */
16573 #include <math.h>
16574 int
16575 main ()
16576 {
16577  _powf(0, 0);
16578   ;
16579   return 0;
16580 }
16581 _ACEOF
16582 rm -f conftest.$ac_objext
16583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16584   (eval $ac_compile) 2>conftest.er1
16585   ac_status=$?
16586   grep -v '^ *+' conftest.er1 >conftest.err
16587   rm -f conftest.er1
16588   cat conftest.err >&5
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); } &&
16591          { ac_try='test -z "$ac_cxx_werror_flag"
16592                          || test ! -s conftest.err'
16593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594   (eval $ac_try) 2>&5
16595   ac_status=$?
16596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597   (exit $ac_status); }; } &&
16598          { ac_try='test -s conftest.$ac_objext'
16599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600   (eval $ac_try) 2>&5
16601   ac_status=$?
16602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603   (exit $ac_status); }; }; then
16604   glibcxx_cv_func__powf_use=yes
16605 else
16606   echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16608
16609 glibcxx_cv_func__powf_use=no
16610 fi
16611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16612       ac_ext=c
16613 ac_cpp='$CPP $CPPFLAGS'
16614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16617
16618
16619 fi
16620
16621   fi
16622   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
16623 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
16624
16625     if test x$glibcxx_cv_func__powf_use = x"yes"; then
16626
16627 for ac_func in _powf
16628 do
16629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16630 echo "$as_me:$LINENO: checking for $ac_func" >&5
16631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16632 if eval "test \"\${$as_ac_var+set}\" = set"; then
16633   echo $ECHO_N "(cached) $ECHO_C" >&6
16634 else
16635   if test x$gcc_no_link = xyes; then
16636   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16637 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16638    { (exit 1); exit 1; }; }
16639 fi
16640 cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16648 #define $ac_func innocuous_$ac_func
16649
16650 /* System header to define __stub macros and hopefully few prototypes,
16651     which can conflict with char $ac_func (); below.
16652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16653     <limits.h> exists even on freestanding compilers.  */
16654
16655 #ifdef __STDC__
16656 # include <limits.h>
16657 #else
16658 # include <assert.h>
16659 #endif
16660
16661 #undef $ac_func
16662
16663 /* Override any gcc2 internal prototype to avoid an error.  */
16664 #ifdef __cplusplus
16665 extern "C"
16666 {
16667 #endif
16668 /* We use char because int might match the return type of a gcc2
16669    builtin and then its argument prototype would still apply.  */
16670 char $ac_func ();
16671 /* The GNU C library defines this for functions which it implements
16672     to always fail with ENOSYS.  Some functions are actually named
16673     something starting with __ and the normal name is an alias.  */
16674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16675 choke me
16676 #else
16677 char (*f) () = $ac_func;
16678 #endif
16679 #ifdef __cplusplus
16680 }
16681 #endif
16682
16683 int
16684 main ()
16685 {
16686 return f != $ac_func;
16687   ;
16688   return 0;
16689 }
16690 _ACEOF
16691 rm -f conftest.$ac_objext conftest$ac_exeext
16692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16693   (eval $ac_link) 2>conftest.er1
16694   ac_status=$?
16695   grep -v '^ *+' conftest.er1 >conftest.err
16696   rm -f conftest.er1
16697   cat conftest.err >&5
16698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699   (exit $ac_status); } &&
16700          { ac_try='test -z "$ac_c_werror_flag"
16701                          || test ! -s conftest.err'
16702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16703   (eval $ac_try) 2>&5
16704   ac_status=$?
16705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706   (exit $ac_status); }; } &&
16707          { ac_try='test -s conftest$ac_exeext'
16708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16709   (eval $ac_try) 2>&5
16710   ac_status=$?
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); }; }; then
16713   eval "$as_ac_var=yes"
16714 else
16715   echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16717
16718 eval "$as_ac_var=no"
16719 fi
16720 rm -f conftest.err conftest.$ac_objext \
16721       conftest$ac_exeext conftest.$ac_ext
16722 fi
16723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16724 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16725 if test `eval echo '${'$as_ac_var'}'` = yes; then
16726   cat >>confdefs.h <<_ACEOF
16727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16728 _ACEOF
16729
16730 fi
16731 done
16732
16733     fi
16734   fi
16735
16736
16737
16738   echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
16739 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
16740   if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
16741     if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
16742   echo $ECHO_N "(cached) $ECHO_C" >&6
16743 else
16744
16745
16746
16747       ac_ext=cc
16748 ac_cpp='$CXXCPP $CPPFLAGS'
16749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16752
16753       cat >conftest.$ac_ext <<_ACEOF
16754 /* confdefs.h.  */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h.  */
16759 #include <math.h>
16760                       #ifdef HAVE_IEEEFP_H
16761                       #include <ieeefp.h>
16762                       #endif
16763
16764 int
16765 main ()
16766 {
16767  sqrtf(0);
16768   ;
16769   return 0;
16770 }
16771 _ACEOF
16772 rm -f conftest.$ac_objext
16773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16774   (eval $ac_compile) 2>conftest.er1
16775   ac_status=$?
16776   grep -v '^ *+' conftest.er1 >conftest.err
16777   rm -f conftest.er1
16778   cat conftest.err >&5
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); } &&
16781          { ac_try='test -z "$ac_cxx_werror_flag"
16782                          || test ! -s conftest.err'
16783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16784   (eval $ac_try) 2>&5
16785   ac_status=$?
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); }; } &&
16788          { ac_try='test -s conftest.$ac_objext'
16789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790   (eval $ac_try) 2>&5
16791   ac_status=$?
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); }; }; then
16794   glibcxx_cv_func_sqrtf_use=yes
16795 else
16796   echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16798
16799 glibcxx_cv_func_sqrtf_use=no
16800 fi
16801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16802       ac_ext=c
16803 ac_cpp='$CPP $CPPFLAGS'
16804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16807
16808
16809 fi
16810
16811   fi
16812   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
16813 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
16814
16815   if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
16816
16817 for ac_func in sqrtf
16818 do
16819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16820 echo "$as_me:$LINENO: checking for $ac_func" >&5
16821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16822 if eval "test \"\${$as_ac_var+set}\" = set"; then
16823   echo $ECHO_N "(cached) $ECHO_C" >&6
16824 else
16825   if test x$gcc_no_link = xyes; then
16826   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16827 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16828    { (exit 1); exit 1; }; }
16829 fi
16830 cat >conftest.$ac_ext <<_ACEOF
16831 /* confdefs.h.  */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h.  */
16836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16838 #define $ac_func innocuous_$ac_func
16839
16840 /* System header to define __stub macros and hopefully few prototypes,
16841     which can conflict with char $ac_func (); below.
16842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16843     <limits.h> exists even on freestanding compilers.  */
16844
16845 #ifdef __STDC__
16846 # include <limits.h>
16847 #else
16848 # include <assert.h>
16849 #endif
16850
16851 #undef $ac_func
16852
16853 /* Override any gcc2 internal prototype to avoid an error.  */
16854 #ifdef __cplusplus
16855 extern "C"
16856 {
16857 #endif
16858 /* We use char because int might match the return type of a gcc2
16859    builtin and then its argument prototype would still apply.  */
16860 char $ac_func ();
16861 /* The GNU C library defines this for functions which it implements
16862     to always fail with ENOSYS.  Some functions are actually named
16863     something starting with __ and the normal name is an alias.  */
16864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16865 choke me
16866 #else
16867 char (*f) () = $ac_func;
16868 #endif
16869 #ifdef __cplusplus
16870 }
16871 #endif
16872
16873 int
16874 main ()
16875 {
16876 return f != $ac_func;
16877   ;
16878   return 0;
16879 }
16880 _ACEOF
16881 rm -f conftest.$ac_objext conftest$ac_exeext
16882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16883   (eval $ac_link) 2>conftest.er1
16884   ac_status=$?
16885   grep -v '^ *+' conftest.er1 >conftest.err
16886   rm -f conftest.er1
16887   cat conftest.err >&5
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); } &&
16890          { ac_try='test -z "$ac_c_werror_flag"
16891                          || test ! -s conftest.err'
16892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16893   (eval $ac_try) 2>&5
16894   ac_status=$?
16895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16896   (exit $ac_status); }; } &&
16897          { ac_try='test -s conftest$ac_exeext'
16898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899   (eval $ac_try) 2>&5
16900   ac_status=$?
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); }; }; then
16903   eval "$as_ac_var=yes"
16904 else
16905   echo "$as_me: failed program was:" >&5
16906 sed 's/^/| /' conftest.$ac_ext >&5
16907
16908 eval "$as_ac_var=no"
16909 fi
16910 rm -f conftest.err conftest.$ac_objext \
16911       conftest$ac_exeext conftest.$ac_ext
16912 fi
16913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16915 if test `eval echo '${'$as_ac_var'}'` = yes; then
16916   cat >>confdefs.h <<_ACEOF
16917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16918 _ACEOF
16919
16920 fi
16921 done
16922
16923   else
16924
16925   echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
16926 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
16927   if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
16928     if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
16929   echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931
16932
16933
16934       ac_ext=cc
16935 ac_cpp='$CXXCPP $CPPFLAGS'
16936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16939
16940       cat >conftest.$ac_ext <<_ACEOF
16941 /* confdefs.h.  */
16942 _ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h.  */
16946 #include <math.h>
16947                       #ifdef HAVE_IEEEFP_H
16948                       #include <ieeefp.h>
16949                       #endif
16950
16951 int
16952 main ()
16953 {
16954  _sqrtf(0);
16955   ;
16956   return 0;
16957 }
16958 _ACEOF
16959 rm -f conftest.$ac_objext
16960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16961   (eval $ac_compile) 2>conftest.er1
16962   ac_status=$?
16963   grep -v '^ *+' conftest.er1 >conftest.err
16964   rm -f conftest.er1
16965   cat conftest.err >&5
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); } &&
16968          { ac_try='test -z "$ac_cxx_werror_flag"
16969                          || test ! -s conftest.err'
16970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971   (eval $ac_try) 2>&5
16972   ac_status=$?
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); }; } &&
16975          { ac_try='test -s conftest.$ac_objext'
16976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977   (eval $ac_try) 2>&5
16978   ac_status=$?
16979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980   (exit $ac_status); }; }; then
16981   glibcxx_cv_func__sqrtf_use=yes
16982 else
16983   echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16985
16986 glibcxx_cv_func__sqrtf_use=no
16987 fi
16988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16989       ac_ext=c
16990 ac_cpp='$CPP $CPPFLAGS'
16991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16994
16995
16996 fi
16997
16998   fi
16999   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
17000 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
17001
17002     if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
17003
17004 for ac_func in _sqrtf
17005 do
17006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17007 echo "$as_me:$LINENO: checking for $ac_func" >&5
17008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17009 if eval "test \"\${$as_ac_var+set}\" = set"; then
17010   echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012   if test x$gcc_no_link = xyes; then
17013   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17014 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17015    { (exit 1); exit 1; }; }
17016 fi
17017 cat >conftest.$ac_ext <<_ACEOF
17018 /* confdefs.h.  */
17019 _ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h.  */
17023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17025 #define $ac_func innocuous_$ac_func
17026
17027 /* System header to define __stub macros and hopefully few prototypes,
17028     which can conflict with char $ac_func (); below.
17029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17030     <limits.h> exists even on freestanding compilers.  */
17031
17032 #ifdef __STDC__
17033 # include <limits.h>
17034 #else
17035 # include <assert.h>
17036 #endif
17037
17038 #undef $ac_func
17039
17040 /* Override any gcc2 internal prototype to avoid an error.  */
17041 #ifdef __cplusplus
17042 extern "C"
17043 {
17044 #endif
17045 /* We use char because int might match the return type of a gcc2
17046    builtin and then its argument prototype would still apply.  */
17047 char $ac_func ();
17048 /* The GNU C library defines this for functions which it implements
17049     to always fail with ENOSYS.  Some functions are actually named
17050     something starting with __ and the normal name is an alias.  */
17051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17052 choke me
17053 #else
17054 char (*f) () = $ac_func;
17055 #endif
17056 #ifdef __cplusplus
17057 }
17058 #endif
17059
17060 int
17061 main ()
17062 {
17063 return f != $ac_func;
17064   ;
17065   return 0;
17066 }
17067 _ACEOF
17068 rm -f conftest.$ac_objext conftest$ac_exeext
17069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17070   (eval $ac_link) 2>conftest.er1
17071   ac_status=$?
17072   grep -v '^ *+' conftest.er1 >conftest.err
17073   rm -f conftest.er1
17074   cat conftest.err >&5
17075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076   (exit $ac_status); } &&
17077          { ac_try='test -z "$ac_c_werror_flag"
17078                          || test ! -s conftest.err'
17079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080   (eval $ac_try) 2>&5
17081   ac_status=$?
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); }; } &&
17084          { ac_try='test -s conftest$ac_exeext'
17085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17086   (eval $ac_try) 2>&5
17087   ac_status=$?
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); }; }; then
17090   eval "$as_ac_var=yes"
17091 else
17092   echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.$ac_ext >&5
17094
17095 eval "$as_ac_var=no"
17096 fi
17097 rm -f conftest.err conftest.$ac_objext \
17098       conftest$ac_exeext conftest.$ac_ext
17099 fi
17100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17102 if test `eval echo '${'$as_ac_var'}'` = yes; then
17103   cat >>confdefs.h <<_ACEOF
17104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17105 _ACEOF
17106
17107 fi
17108 done
17109
17110     fi
17111   fi
17112
17113
17114
17115   echo "$as_me:$LINENO: checking for sincosf declaration" >&5
17116 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
17117   if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
17118     if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
17119   echo $ECHO_N "(cached) $ECHO_C" >&6
17120 else
17121
17122
17123
17124       ac_ext=cc
17125 ac_cpp='$CXXCPP $CPPFLAGS'
17126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17129
17130       cat >conftest.$ac_ext <<_ACEOF
17131 /* confdefs.h.  */
17132 _ACEOF
17133 cat confdefs.h >>conftest.$ac_ext
17134 cat >>conftest.$ac_ext <<_ACEOF
17135 /* end confdefs.h.  */
17136 #include <math.h>
17137 int
17138 main ()
17139 {
17140  sincosf(0, 0, 0);
17141   ;
17142   return 0;
17143 }
17144 _ACEOF
17145 rm -f conftest.$ac_objext
17146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17147   (eval $ac_compile) 2>conftest.er1
17148   ac_status=$?
17149   grep -v '^ *+' conftest.er1 >conftest.err
17150   rm -f conftest.er1
17151   cat conftest.err >&5
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); } &&
17154          { ac_try='test -z "$ac_cxx_werror_flag"
17155                          || test ! -s conftest.err'
17156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157   (eval $ac_try) 2>&5
17158   ac_status=$?
17159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160   (exit $ac_status); }; } &&
17161          { ac_try='test -s conftest.$ac_objext'
17162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163   (eval $ac_try) 2>&5
17164   ac_status=$?
17165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166   (exit $ac_status); }; }; then
17167   glibcxx_cv_func_sincosf_use=yes
17168 else
17169   echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17171
17172 glibcxx_cv_func_sincosf_use=no
17173 fi
17174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17175       ac_ext=c
17176 ac_cpp='$CPP $CPPFLAGS'
17177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17180
17181
17182 fi
17183
17184   fi
17185   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
17186 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
17187
17188   if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
17189
17190 for ac_func in sincosf
17191 do
17192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17193 echo "$as_me:$LINENO: checking for $ac_func" >&5
17194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17195 if eval "test \"\${$as_ac_var+set}\" = set"; then
17196   echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198   if test x$gcc_no_link = xyes; then
17199   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17200 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17201    { (exit 1); exit 1; }; }
17202 fi
17203 cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h.  */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h.  */
17209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17211 #define $ac_func innocuous_$ac_func
17212
17213 /* System header to define __stub macros and hopefully few prototypes,
17214     which can conflict with char $ac_func (); below.
17215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17216     <limits.h> exists even on freestanding compilers.  */
17217
17218 #ifdef __STDC__
17219 # include <limits.h>
17220 #else
17221 # include <assert.h>
17222 #endif
17223
17224 #undef $ac_func
17225
17226 /* Override any gcc2 internal prototype to avoid an error.  */
17227 #ifdef __cplusplus
17228 extern "C"
17229 {
17230 #endif
17231 /* We use char because int might match the return type of a gcc2
17232    builtin and then its argument prototype would still apply.  */
17233 char $ac_func ();
17234 /* The GNU C library defines this for functions which it implements
17235     to always fail with ENOSYS.  Some functions are actually named
17236     something starting with __ and the normal name is an alias.  */
17237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17238 choke me
17239 #else
17240 char (*f) () = $ac_func;
17241 #endif
17242 #ifdef __cplusplus
17243 }
17244 #endif
17245
17246 int
17247 main ()
17248 {
17249 return f != $ac_func;
17250   ;
17251   return 0;
17252 }
17253 _ACEOF
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17256   (eval $ac_link) 2>conftest.er1
17257   ac_status=$?
17258   grep -v '^ *+' conftest.er1 >conftest.err
17259   rm -f conftest.er1
17260   cat conftest.err >&5
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); } &&
17263          { ac_try='test -z "$ac_c_werror_flag"
17264                          || test ! -s conftest.err'
17265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266   (eval $ac_try) 2>&5
17267   ac_status=$?
17268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269   (exit $ac_status); }; } &&
17270          { ac_try='test -s conftest$ac_exeext'
17271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272   (eval $ac_try) 2>&5
17273   ac_status=$?
17274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); }; }; then
17276   eval "$as_ac_var=yes"
17277 else
17278   echo "$as_me: failed program was:" >&5
17279 sed 's/^/| /' conftest.$ac_ext >&5
17280
17281 eval "$as_ac_var=no"
17282 fi
17283 rm -f conftest.err conftest.$ac_objext \
17284       conftest$ac_exeext conftest.$ac_ext
17285 fi
17286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17288 if test `eval echo '${'$as_ac_var'}'` = yes; then
17289   cat >>confdefs.h <<_ACEOF
17290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17291 _ACEOF
17292
17293 fi
17294 done
17295
17296   else
17297
17298   echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
17299 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
17300   if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
17301     if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
17302   echo $ECHO_N "(cached) $ECHO_C" >&6
17303 else
17304
17305
17306
17307       ac_ext=cc
17308 ac_cpp='$CXXCPP $CPPFLAGS'
17309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17312
17313       cat >conftest.$ac_ext <<_ACEOF
17314 /* confdefs.h.  */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h.  */
17319 #include <math.h>
17320 int
17321 main ()
17322 {
17323  _sincosf(0, 0, 0);
17324   ;
17325   return 0;
17326 }
17327 _ACEOF
17328 rm -f conftest.$ac_objext
17329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17330   (eval $ac_compile) 2>conftest.er1
17331   ac_status=$?
17332   grep -v '^ *+' conftest.er1 >conftest.err
17333   rm -f conftest.er1
17334   cat conftest.err >&5
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); } &&
17337          { ac_try='test -z "$ac_cxx_werror_flag"
17338                          || test ! -s conftest.err'
17339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340   (eval $ac_try) 2>&5
17341   ac_status=$?
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); }; } &&
17344          { ac_try='test -s conftest.$ac_objext'
17345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346   (eval $ac_try) 2>&5
17347   ac_status=$?
17348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349   (exit $ac_status); }; }; then
17350   glibcxx_cv_func__sincosf_use=yes
17351 else
17352   echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17354
17355 glibcxx_cv_func__sincosf_use=no
17356 fi
17357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17358       ac_ext=c
17359 ac_cpp='$CPP $CPPFLAGS'
17360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17363
17364
17365 fi
17366
17367   fi
17368   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
17369 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
17370
17371     if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
17372
17373 for ac_func in _sincosf
17374 do
17375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17376 echo "$as_me:$LINENO: checking for $ac_func" >&5
17377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17378 if eval "test \"\${$as_ac_var+set}\" = set"; then
17379   echo $ECHO_N "(cached) $ECHO_C" >&6
17380 else
17381   if test x$gcc_no_link = xyes; then
17382   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17383 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17384    { (exit 1); exit 1; }; }
17385 fi
17386 cat >conftest.$ac_ext <<_ACEOF
17387 /* confdefs.h.  */
17388 _ACEOF
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h.  */
17392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17393    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17394 #define $ac_func innocuous_$ac_func
17395
17396 /* System header to define __stub macros and hopefully few prototypes,
17397     which can conflict with char $ac_func (); below.
17398     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17399     <limits.h> exists even on freestanding compilers.  */
17400
17401 #ifdef __STDC__
17402 # include <limits.h>
17403 #else
17404 # include <assert.h>
17405 #endif
17406
17407 #undef $ac_func
17408
17409 /* Override any gcc2 internal prototype to avoid an error.  */
17410 #ifdef __cplusplus
17411 extern "C"
17412 {
17413 #endif
17414 /* We use char because int might match the return type of a gcc2
17415    builtin and then its argument prototype would still apply.  */
17416 char $ac_func ();
17417 /* The GNU C library defines this for functions which it implements
17418     to always fail with ENOSYS.  Some functions are actually named
17419     something starting with __ and the normal name is an alias.  */
17420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17421 choke me
17422 #else
17423 char (*f) () = $ac_func;
17424 #endif
17425 #ifdef __cplusplus
17426 }
17427 #endif
17428
17429 int
17430 main ()
17431 {
17432 return f != $ac_func;
17433   ;
17434   return 0;
17435 }
17436 _ACEOF
17437 rm -f conftest.$ac_objext conftest$ac_exeext
17438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17439   (eval $ac_link) 2>conftest.er1
17440   ac_status=$?
17441   grep -v '^ *+' conftest.er1 >conftest.err
17442   rm -f conftest.er1
17443   cat conftest.err >&5
17444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445   (exit $ac_status); } &&
17446          { ac_try='test -z "$ac_c_werror_flag"
17447                          || test ! -s conftest.err'
17448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449   (eval $ac_try) 2>&5
17450   ac_status=$?
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); }; } &&
17453          { ac_try='test -s conftest$ac_exeext'
17454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455   (eval $ac_try) 2>&5
17456   ac_status=$?
17457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458   (exit $ac_status); }; }; then
17459   eval "$as_ac_var=yes"
17460 else
17461   echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17463
17464 eval "$as_ac_var=no"
17465 fi
17466 rm -f conftest.err conftest.$ac_objext \
17467       conftest$ac_exeext conftest.$ac_ext
17468 fi
17469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17471 if test `eval echo '${'$as_ac_var'}'` = yes; then
17472   cat >>confdefs.h <<_ACEOF
17473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17474 _ACEOF
17475
17476 fi
17477 done
17478
17479     fi
17480   fi
17481
17482
17483
17484   echo "$as_me:$LINENO: checking for finitef declaration" >&5
17485 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
17486   if test x${glibcxx_cv_func_finitef_use+set} != xset; then
17487     if test "${glibcxx_cv_func_finitef_use+set}" = set; then
17488   echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490
17491
17492
17493       ac_ext=cc
17494 ac_cpp='$CXXCPP $CPPFLAGS'
17495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17498
17499       cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h.  */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h.  */
17505 #include <math.h>
17506                       #ifdef HAVE_IEEEFP_H
17507                       #include <ieeefp.h>
17508                       #endif
17509
17510 int
17511 main ()
17512 {
17513  finitef(0);
17514   ;
17515   return 0;
17516 }
17517 _ACEOF
17518 rm -f conftest.$ac_objext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17520   (eval $ac_compile) 2>conftest.er1
17521   ac_status=$?
17522   grep -v '^ *+' conftest.er1 >conftest.err
17523   rm -f conftest.er1
17524   cat conftest.err >&5
17525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526   (exit $ac_status); } &&
17527          { ac_try='test -z "$ac_cxx_werror_flag"
17528                          || test ! -s conftest.err'
17529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530   (eval $ac_try) 2>&5
17531   ac_status=$?
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); }; } &&
17534          { ac_try='test -s conftest.$ac_objext'
17535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536   (eval $ac_try) 2>&5
17537   ac_status=$?
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); }; }; then
17540   glibcxx_cv_func_finitef_use=yes
17541 else
17542   echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17544
17545 glibcxx_cv_func_finitef_use=no
17546 fi
17547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17548       ac_ext=c
17549 ac_cpp='$CPP $CPPFLAGS'
17550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17553
17554
17555 fi
17556
17557   fi
17558   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
17559 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
17560
17561   if test x$glibcxx_cv_func_finitef_use = x"yes"; then
17562
17563 for ac_func in finitef
17564 do
17565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17566 echo "$as_me:$LINENO: checking for $ac_func" >&5
17567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17568 if eval "test \"\${$as_ac_var+set}\" = set"; then
17569   echo $ECHO_N "(cached) $ECHO_C" >&6
17570 else
17571   if test x$gcc_no_link = xyes; then
17572   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17573 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17574    { (exit 1); exit 1; }; }
17575 fi
17576 cat >conftest.$ac_ext <<_ACEOF
17577 /* confdefs.h.  */
17578 _ACEOF
17579 cat confdefs.h >>conftest.$ac_ext
17580 cat >>conftest.$ac_ext <<_ACEOF
17581 /* end confdefs.h.  */
17582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17584 #define $ac_func innocuous_$ac_func
17585
17586 /* System header to define __stub macros and hopefully few prototypes,
17587     which can conflict with char $ac_func (); below.
17588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17589     <limits.h> exists even on freestanding compilers.  */
17590
17591 #ifdef __STDC__
17592 # include <limits.h>
17593 #else
17594 # include <assert.h>
17595 #endif
17596
17597 #undef $ac_func
17598
17599 /* Override any gcc2 internal prototype to avoid an error.  */
17600 #ifdef __cplusplus
17601 extern "C"
17602 {
17603 #endif
17604 /* We use char because int might match the return type of a gcc2
17605    builtin and then its argument prototype would still apply.  */
17606 char $ac_func ();
17607 /* The GNU C library defines this for functions which it implements
17608     to always fail with ENOSYS.  Some functions are actually named
17609     something starting with __ and the normal name is an alias.  */
17610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17611 choke me
17612 #else
17613 char (*f) () = $ac_func;
17614 #endif
17615 #ifdef __cplusplus
17616 }
17617 #endif
17618
17619 int
17620 main ()
17621 {
17622 return f != $ac_func;
17623   ;
17624   return 0;
17625 }
17626 _ACEOF
17627 rm -f conftest.$ac_objext conftest$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629   (eval $ac_link) 2>conftest.er1
17630   ac_status=$?
17631   grep -v '^ *+' conftest.er1 >conftest.err
17632   rm -f conftest.er1
17633   cat conftest.err >&5
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); } &&
17636          { ac_try='test -z "$ac_c_werror_flag"
17637                          || test ! -s conftest.err'
17638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639   (eval $ac_try) 2>&5
17640   ac_status=$?
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); }; } &&
17643          { ac_try='test -s conftest$ac_exeext'
17644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645   (eval $ac_try) 2>&5
17646   ac_status=$?
17647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648   (exit $ac_status); }; }; then
17649   eval "$as_ac_var=yes"
17650 else
17651   echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17653
17654 eval "$as_ac_var=no"
17655 fi
17656 rm -f conftest.err conftest.$ac_objext \
17657       conftest$ac_exeext conftest.$ac_ext
17658 fi
17659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17661 if test `eval echo '${'$as_ac_var'}'` = yes; then
17662   cat >>confdefs.h <<_ACEOF
17663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17664 _ACEOF
17665
17666 fi
17667 done
17668
17669   else
17670
17671   echo "$as_me:$LINENO: checking for _finitef declaration" >&5
17672 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
17673   if test x${glibcxx_cv_func__finitef_use+set} != xset; then
17674     if test "${glibcxx_cv_func__finitef_use+set}" = set; then
17675   echo $ECHO_N "(cached) $ECHO_C" >&6
17676 else
17677
17678
17679
17680       ac_ext=cc
17681 ac_cpp='$CXXCPP $CPPFLAGS'
17682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17685
17686       cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h.  */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h.  */
17692 #include <math.h>
17693                       #ifdef HAVE_IEEEFP_H
17694                       #include <ieeefp.h>
17695                       #endif
17696
17697 int
17698 main ()
17699 {
17700  _finitef(0);
17701   ;
17702   return 0;
17703 }
17704 _ACEOF
17705 rm -f conftest.$ac_objext
17706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17707   (eval $ac_compile) 2>conftest.er1
17708   ac_status=$?
17709   grep -v '^ *+' conftest.er1 >conftest.err
17710   rm -f conftest.er1
17711   cat conftest.err >&5
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); } &&
17714          { ac_try='test -z "$ac_cxx_werror_flag"
17715                          || test ! -s conftest.err'
17716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17717   (eval $ac_try) 2>&5
17718   ac_status=$?
17719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720   (exit $ac_status); }; } &&
17721          { ac_try='test -s conftest.$ac_objext'
17722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723   (eval $ac_try) 2>&5
17724   ac_status=$?
17725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726   (exit $ac_status); }; }; then
17727   glibcxx_cv_func__finitef_use=yes
17728 else
17729   echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17731
17732 glibcxx_cv_func__finitef_use=no
17733 fi
17734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17735       ac_ext=c
17736 ac_cpp='$CPP $CPPFLAGS'
17737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17740
17741
17742 fi
17743
17744   fi
17745   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
17746 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
17747
17748     if test x$glibcxx_cv_func__finitef_use = x"yes"; then
17749
17750 for ac_func in _finitef
17751 do
17752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17753 echo "$as_me:$LINENO: checking for $ac_func" >&5
17754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17755 if eval "test \"\${$as_ac_var+set}\" = set"; then
17756   echo $ECHO_N "(cached) $ECHO_C" >&6
17757 else
17758   if test x$gcc_no_link = xyes; then
17759   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17760 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17761    { (exit 1); exit 1; }; }
17762 fi
17763 cat >conftest.$ac_ext <<_ACEOF
17764 /* confdefs.h.  */
17765 _ACEOF
17766 cat confdefs.h >>conftest.$ac_ext
17767 cat >>conftest.$ac_ext <<_ACEOF
17768 /* end confdefs.h.  */
17769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17771 #define $ac_func innocuous_$ac_func
17772
17773 /* System header to define __stub macros and hopefully few prototypes,
17774     which can conflict with char $ac_func (); below.
17775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17776     <limits.h> exists even on freestanding compilers.  */
17777
17778 #ifdef __STDC__
17779 # include <limits.h>
17780 #else
17781 # include <assert.h>
17782 #endif
17783
17784 #undef $ac_func
17785
17786 /* Override any gcc2 internal prototype to avoid an error.  */
17787 #ifdef __cplusplus
17788 extern "C"
17789 {
17790 #endif
17791 /* We use char because int might match the return type of a gcc2
17792    builtin and then its argument prototype would still apply.  */
17793 char $ac_func ();
17794 /* The GNU C library defines this for functions which it implements
17795     to always fail with ENOSYS.  Some functions are actually named
17796     something starting with __ and the normal name is an alias.  */
17797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17798 choke me
17799 #else
17800 char (*f) () = $ac_func;
17801 #endif
17802 #ifdef __cplusplus
17803 }
17804 #endif
17805
17806 int
17807 main ()
17808 {
17809 return f != $ac_func;
17810   ;
17811   return 0;
17812 }
17813 _ACEOF
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17816   (eval $ac_link) 2>conftest.er1
17817   ac_status=$?
17818   grep -v '^ *+' conftest.er1 >conftest.err
17819   rm -f conftest.er1
17820   cat conftest.err >&5
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); } &&
17823          { ac_try='test -z "$ac_c_werror_flag"
17824                          || test ! -s conftest.err'
17825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826   (eval $ac_try) 2>&5
17827   ac_status=$?
17828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); }; } &&
17830          { ac_try='test -s conftest$ac_exeext'
17831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832   (eval $ac_try) 2>&5
17833   ac_status=$?
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); }; }; then
17836   eval "$as_ac_var=yes"
17837 else
17838   echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17840
17841 eval "$as_ac_var=no"
17842 fi
17843 rm -f conftest.err conftest.$ac_objext \
17844       conftest$ac_exeext conftest.$ac_ext
17845 fi
17846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17848 if test `eval echo '${'$as_ac_var'}'` = yes; then
17849   cat >>confdefs.h <<_ACEOF
17850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17851 _ACEOF
17852
17853 fi
17854 done
17855
17856     fi
17857   fi
17858
17859
17860
17861   echo "$as_me:$LINENO: checking for long double trig functions" >&5
17862 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
17863   if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
17864   echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866
17867
17868
17869     ac_ext=cc
17870 ac_cpp='$CXXCPP $CPPFLAGS'
17871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17874
17875     cat >conftest.$ac_ext <<_ACEOF
17876 /* confdefs.h.  */
17877 _ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h.  */
17881 #include <math.h>
17882 int
17883 main ()
17884 {
17885  `for x in acosl asinl atanl \
17886                                           cosl sinl tanl \
17887                                           coshl sinhl tanhl; do echo "$x (0);"; done`
17888   ;
17889   return 0;
17890 }
17891 _ACEOF
17892 rm -f conftest.$ac_objext
17893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17894   (eval $ac_compile) 2>conftest.er1
17895   ac_status=$?
17896   grep -v '^ *+' conftest.er1 >conftest.err
17897   rm -f conftest.er1
17898   cat conftest.err >&5
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); } &&
17901          { ac_try='test -z "$ac_cxx_werror_flag"
17902                          || test ! -s conftest.err'
17903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904   (eval $ac_try) 2>&5
17905   ac_status=$?
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); }; } &&
17908          { ac_try='test -s conftest.$ac_objext'
17909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910   (eval $ac_try) 2>&5
17911   ac_status=$?
17912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913   (exit $ac_status); }; }; then
17914   glibcxx_cv_func_long_double_trig_use=yes
17915 else
17916   echo "$as_me: failed program was:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17918
17919 glibcxx_cv_func_long_double_trig_use=no
17920 fi
17921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17922     ac_ext=c
17923 ac_cpp='$CPP $CPPFLAGS'
17924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17927
17928 fi
17929
17930   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
17931 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
17932   if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942 for ac_func in acosl asinl atanl \
17943                                           cosl sinl tanl \
17944                                           coshl sinhl tanhl
17945 do
17946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17947 echo "$as_me:$LINENO: checking for $ac_func" >&5
17948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17949 if eval "test \"\${$as_ac_var+set}\" = set"; then
17950   echo $ECHO_N "(cached) $ECHO_C" >&6
17951 else
17952   if test x$gcc_no_link = xyes; then
17953   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17954 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17955    { (exit 1); exit 1; }; }
17956 fi
17957 cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h.  */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h.  */
17963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17965 #define $ac_func innocuous_$ac_func
17966
17967 /* System header to define __stub macros and hopefully few prototypes,
17968     which can conflict with char $ac_func (); below.
17969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17970     <limits.h> exists even on freestanding compilers.  */
17971
17972 #ifdef __STDC__
17973 # include <limits.h>
17974 #else
17975 # include <assert.h>
17976 #endif
17977
17978 #undef $ac_func
17979
17980 /* Override any gcc2 internal prototype to avoid an error.  */
17981 #ifdef __cplusplus
17982 extern "C"
17983 {
17984 #endif
17985 /* We use char because int might match the return type of a gcc2
17986    builtin and then its argument prototype would still apply.  */
17987 char $ac_func ();
17988 /* The GNU C library defines this for functions which it implements
17989     to always fail with ENOSYS.  Some functions are actually named
17990     something starting with __ and the normal name is an alias.  */
17991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17992 choke me
17993 #else
17994 char (*f) () = $ac_func;
17995 #endif
17996 #ifdef __cplusplus
17997 }
17998 #endif
17999
18000 int
18001 main ()
18002 {
18003 return f != $ac_func;
18004   ;
18005   return 0;
18006 }
18007 _ACEOF
18008 rm -f conftest.$ac_objext conftest$ac_exeext
18009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18010   (eval $ac_link) 2>conftest.er1
18011   ac_status=$?
18012   grep -v '^ *+' conftest.er1 >conftest.err
18013   rm -f conftest.er1
18014   cat conftest.err >&5
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); } &&
18017          { ac_try='test -z "$ac_c_werror_flag"
18018                          || test ! -s conftest.err'
18019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18020   (eval $ac_try) 2>&5
18021   ac_status=$?
18022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023   (exit $ac_status); }; } &&
18024          { ac_try='test -s conftest$ac_exeext'
18025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026   (eval $ac_try) 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; }; then
18030   eval "$as_ac_var=yes"
18031 else
18032   echo "$as_me: failed program was:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18034
18035 eval "$as_ac_var=no"
18036 fi
18037 rm -f conftest.err conftest.$ac_objext \
18038       conftest$ac_exeext conftest.$ac_ext
18039 fi
18040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18042 if test `eval echo '${'$as_ac_var'}'` = yes; then
18043   cat >>confdefs.h <<_ACEOF
18044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18045 _ACEOF
18046
18047 fi
18048 done
18049
18050   fi
18051
18052
18053   echo "$as_me:$LINENO: checking for long double round functions" >&5
18054 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
18055   if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
18056   echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18058
18059
18060
18061     ac_ext=cc
18062 ac_cpp='$CXXCPP $CPPFLAGS'
18063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18066
18067     cat >conftest.$ac_ext <<_ACEOF
18068 /* confdefs.h.  */
18069 _ACEOF
18070 cat confdefs.h >>conftest.$ac_ext
18071 cat >>conftest.$ac_ext <<_ACEOF
18072 /* end confdefs.h.  */
18073 #include <math.h>
18074 int
18075 main ()
18076 {
18077  `for x in ceill floorl; do echo "$x (0);"; done`
18078   ;
18079   return 0;
18080 }
18081 _ACEOF
18082 rm -f conftest.$ac_objext
18083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18084   (eval $ac_compile) 2>conftest.er1
18085   ac_status=$?
18086   grep -v '^ *+' conftest.er1 >conftest.err
18087   rm -f conftest.er1
18088   cat conftest.err >&5
18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090   (exit $ac_status); } &&
18091          { ac_try='test -z "$ac_cxx_werror_flag"
18092                          || test ! -s conftest.err'
18093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18094   (eval $ac_try) 2>&5
18095   ac_status=$?
18096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097   (exit $ac_status); }; } &&
18098          { ac_try='test -s conftest.$ac_objext'
18099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100   (eval $ac_try) 2>&5
18101   ac_status=$?
18102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103   (exit $ac_status); }; }; then
18104   glibcxx_cv_func_long_double_round_use=yes
18105 else
18106   echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18108
18109 glibcxx_cv_func_long_double_round_use=no
18110 fi
18111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18112     ac_ext=c
18113 ac_cpp='$CPP $CPPFLAGS'
18114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18117
18118 fi
18119
18120   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
18121 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
18122   if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
18123
18124
18125 for ac_func in ceill floorl
18126 do
18127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18128 echo "$as_me:$LINENO: checking for $ac_func" >&5
18129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18130 if eval "test \"\${$as_ac_var+set}\" = set"; then
18131   echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133   if test x$gcc_no_link = xyes; then
18134   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18135 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18136    { (exit 1); exit 1; }; }
18137 fi
18138 cat >conftest.$ac_ext <<_ACEOF
18139 /* confdefs.h.  */
18140 _ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h.  */
18144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18146 #define $ac_func innocuous_$ac_func
18147
18148 /* System header to define __stub macros and hopefully few prototypes,
18149     which can conflict with char $ac_func (); below.
18150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18151     <limits.h> exists even on freestanding compilers.  */
18152
18153 #ifdef __STDC__
18154 # include <limits.h>
18155 #else
18156 # include <assert.h>
18157 #endif
18158
18159 #undef $ac_func
18160
18161 /* Override any gcc2 internal prototype to avoid an error.  */
18162 #ifdef __cplusplus
18163 extern "C"
18164 {
18165 #endif
18166 /* We use char because int might match the return type of a gcc2
18167    builtin and then its argument prototype would still apply.  */
18168 char $ac_func ();
18169 /* The GNU C library defines this for functions which it implements
18170     to always fail with ENOSYS.  Some functions are actually named
18171     something starting with __ and the normal name is an alias.  */
18172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18173 choke me
18174 #else
18175 char (*f) () = $ac_func;
18176 #endif
18177 #ifdef __cplusplus
18178 }
18179 #endif
18180
18181 int
18182 main ()
18183 {
18184 return f != $ac_func;
18185   ;
18186   return 0;
18187 }
18188 _ACEOF
18189 rm -f conftest.$ac_objext conftest$ac_exeext
18190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18191   (eval $ac_link) 2>conftest.er1
18192   ac_status=$?
18193   grep -v '^ *+' conftest.er1 >conftest.err
18194   rm -f conftest.er1
18195   cat conftest.err >&5
18196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197   (exit $ac_status); } &&
18198          { ac_try='test -z "$ac_c_werror_flag"
18199                          || test ! -s conftest.err'
18200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201   (eval $ac_try) 2>&5
18202   ac_status=$?
18203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204   (exit $ac_status); }; } &&
18205          { ac_try='test -s conftest$ac_exeext'
18206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18207   (eval $ac_try) 2>&5
18208   ac_status=$?
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); }; }; then
18211   eval "$as_ac_var=yes"
18212 else
18213   echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18215
18216 eval "$as_ac_var=no"
18217 fi
18218 rm -f conftest.err conftest.$ac_objext \
18219       conftest$ac_exeext conftest.$ac_ext
18220 fi
18221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18223 if test `eval echo '${'$as_ac_var'}'` = yes; then
18224   cat >>confdefs.h <<_ACEOF
18225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18226 _ACEOF
18227
18228 fi
18229 done
18230
18231   fi
18232
18233
18234
18235   echo "$as_me:$LINENO: checking for isnanl declaration" >&5
18236 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
18237   if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
18238     if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
18239   echo $ECHO_N "(cached) $ECHO_C" >&6
18240 else
18241
18242
18243
18244       ac_ext=cc
18245 ac_cpp='$CXXCPP $CPPFLAGS'
18246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18249
18250       cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h.  */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h.  */
18256 #include <math.h>
18257                       #ifdef HAVE_IEEEFP_H
18258                       #include <ieeefp.h>
18259                       #endif
18260
18261 int
18262 main ()
18263 {
18264  isnanl(0);
18265   ;
18266   return 0;
18267 }
18268 _ACEOF
18269 rm -f conftest.$ac_objext
18270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18271   (eval $ac_compile) 2>conftest.er1
18272   ac_status=$?
18273   grep -v '^ *+' conftest.er1 >conftest.err
18274   rm -f conftest.er1
18275   cat conftest.err >&5
18276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277   (exit $ac_status); } &&
18278          { ac_try='test -z "$ac_cxx_werror_flag"
18279                          || test ! -s conftest.err'
18280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281   (eval $ac_try) 2>&5
18282   ac_status=$?
18283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284   (exit $ac_status); }; } &&
18285          { ac_try='test -s conftest.$ac_objext'
18286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287   (eval $ac_try) 2>&5
18288   ac_status=$?
18289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290   (exit $ac_status); }; }; then
18291   glibcxx_cv_func_isnanl_use=yes
18292 else
18293   echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18295
18296 glibcxx_cv_func_isnanl_use=no
18297 fi
18298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18299       ac_ext=c
18300 ac_cpp='$CPP $CPPFLAGS'
18301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18304
18305
18306 fi
18307
18308   fi
18309   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
18310 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
18311
18312   if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
18313
18314 for ac_func in isnanl
18315 do
18316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18317 echo "$as_me:$LINENO: checking for $ac_func" >&5
18318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18319 if eval "test \"\${$as_ac_var+set}\" = set"; then
18320   echo $ECHO_N "(cached) $ECHO_C" >&6
18321 else
18322   if test x$gcc_no_link = xyes; then
18323   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18324 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18325    { (exit 1); exit 1; }; }
18326 fi
18327 cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h.  */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h.  */
18333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18335 #define $ac_func innocuous_$ac_func
18336
18337 /* System header to define __stub macros and hopefully few prototypes,
18338     which can conflict with char $ac_func (); below.
18339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18340     <limits.h> exists even on freestanding compilers.  */
18341
18342 #ifdef __STDC__
18343 # include <limits.h>
18344 #else
18345 # include <assert.h>
18346 #endif
18347
18348 #undef $ac_func
18349
18350 /* Override any gcc2 internal prototype to avoid an error.  */
18351 #ifdef __cplusplus
18352 extern "C"
18353 {
18354 #endif
18355 /* We use char because int might match the return type of a gcc2
18356    builtin and then its argument prototype would still apply.  */
18357 char $ac_func ();
18358 /* The GNU C library defines this for functions which it implements
18359     to always fail with ENOSYS.  Some functions are actually named
18360     something starting with __ and the normal name is an alias.  */
18361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18362 choke me
18363 #else
18364 char (*f) () = $ac_func;
18365 #endif
18366 #ifdef __cplusplus
18367 }
18368 #endif
18369
18370 int
18371 main ()
18372 {
18373 return f != $ac_func;
18374   ;
18375   return 0;
18376 }
18377 _ACEOF
18378 rm -f conftest.$ac_objext conftest$ac_exeext
18379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18380   (eval $ac_link) 2>conftest.er1
18381   ac_status=$?
18382   grep -v '^ *+' conftest.er1 >conftest.err
18383   rm -f conftest.er1
18384   cat conftest.err >&5
18385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386   (exit $ac_status); } &&
18387          { ac_try='test -z "$ac_c_werror_flag"
18388                          || test ! -s conftest.err'
18389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390   (eval $ac_try) 2>&5
18391   ac_status=$?
18392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393   (exit $ac_status); }; } &&
18394          { ac_try='test -s conftest$ac_exeext'
18395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396   (eval $ac_try) 2>&5
18397   ac_status=$?
18398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399   (exit $ac_status); }; }; then
18400   eval "$as_ac_var=yes"
18401 else
18402   echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18404
18405 eval "$as_ac_var=no"
18406 fi
18407 rm -f conftest.err conftest.$ac_objext \
18408       conftest$ac_exeext conftest.$ac_ext
18409 fi
18410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18411 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18412 if test `eval echo '${'$as_ac_var'}'` = yes; then
18413   cat >>confdefs.h <<_ACEOF
18414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18415 _ACEOF
18416
18417 fi
18418 done
18419
18420   else
18421
18422   echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
18423 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
18424   if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
18425     if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
18426   echo $ECHO_N "(cached) $ECHO_C" >&6
18427 else
18428
18429
18430
18431       ac_ext=cc
18432 ac_cpp='$CXXCPP $CPPFLAGS'
18433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18436
18437       cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h.  */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h.  */
18443 #include <math.h>
18444                       #ifdef HAVE_IEEEFP_H
18445                       #include <ieeefp.h>
18446                       #endif
18447
18448 int
18449 main ()
18450 {
18451  _isnanl(0);
18452   ;
18453   return 0;
18454 }
18455 _ACEOF
18456 rm -f conftest.$ac_objext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18458   (eval $ac_compile) 2>conftest.er1
18459   ac_status=$?
18460   grep -v '^ *+' conftest.er1 >conftest.err
18461   rm -f conftest.er1
18462   cat conftest.err >&5
18463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464   (exit $ac_status); } &&
18465          { ac_try='test -z "$ac_cxx_werror_flag"
18466                          || test ! -s conftest.err'
18467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468   (eval $ac_try) 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; } &&
18472          { ac_try='test -s conftest.$ac_objext'
18473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474   (eval $ac_try) 2>&5
18475   ac_status=$?
18476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); }; }; then
18478   glibcxx_cv_func__isnanl_use=yes
18479 else
18480   echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18482
18483 glibcxx_cv_func__isnanl_use=no
18484 fi
18485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18486       ac_ext=c
18487 ac_cpp='$CPP $CPPFLAGS'
18488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18491
18492
18493 fi
18494
18495   fi
18496   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
18497 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
18498
18499     if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
18500
18501 for ac_func in _isnanl
18502 do
18503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18504 echo "$as_me:$LINENO: checking for $ac_func" >&5
18505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18506 if eval "test \"\${$as_ac_var+set}\" = set"; then
18507   echo $ECHO_N "(cached) $ECHO_C" >&6
18508 else
18509   if test x$gcc_no_link = xyes; then
18510   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18512    { (exit 1); exit 1; }; }
18513 fi
18514 cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h.  */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h.  */
18520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18522 #define $ac_func innocuous_$ac_func
18523
18524 /* System header to define __stub macros and hopefully few prototypes,
18525     which can conflict with char $ac_func (); below.
18526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18527     <limits.h> exists even on freestanding compilers.  */
18528
18529 #ifdef __STDC__
18530 # include <limits.h>
18531 #else
18532 # include <assert.h>
18533 #endif
18534
18535 #undef $ac_func
18536
18537 /* Override any gcc2 internal prototype to avoid an error.  */
18538 #ifdef __cplusplus
18539 extern "C"
18540 {
18541 #endif
18542 /* We use char because int might match the return type of a gcc2
18543    builtin and then its argument prototype would still apply.  */
18544 char $ac_func ();
18545 /* The GNU C library defines this for functions which it implements
18546     to always fail with ENOSYS.  Some functions are actually named
18547     something starting with __ and the normal name is an alias.  */
18548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18549 choke me
18550 #else
18551 char (*f) () = $ac_func;
18552 #endif
18553 #ifdef __cplusplus
18554 }
18555 #endif
18556
18557 int
18558 main ()
18559 {
18560 return f != $ac_func;
18561   ;
18562   return 0;
18563 }
18564 _ACEOF
18565 rm -f conftest.$ac_objext conftest$ac_exeext
18566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18567   (eval $ac_link) 2>conftest.er1
18568   ac_status=$?
18569   grep -v '^ *+' conftest.er1 >conftest.err
18570   rm -f conftest.er1
18571   cat conftest.err >&5
18572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573   (exit $ac_status); } &&
18574          { ac_try='test -z "$ac_c_werror_flag"
18575                          || test ! -s conftest.err'
18576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577   (eval $ac_try) 2>&5
18578   ac_status=$?
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); }; } &&
18581          { ac_try='test -s conftest$ac_exeext'
18582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583   (eval $ac_try) 2>&5
18584   ac_status=$?
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); }; }; then
18587   eval "$as_ac_var=yes"
18588 else
18589   echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18591
18592 eval "$as_ac_var=no"
18593 fi
18594 rm -f conftest.err conftest.$ac_objext \
18595       conftest$ac_exeext conftest.$ac_ext
18596 fi
18597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18599 if test `eval echo '${'$as_ac_var'}'` = yes; then
18600   cat >>confdefs.h <<_ACEOF
18601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18602 _ACEOF
18603
18604 fi
18605 done
18606
18607     fi
18608   fi
18609
18610
18611
18612   echo "$as_me:$LINENO: checking for isinfl declaration" >&5
18613 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
18614   if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
18615     if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
18616   echo $ECHO_N "(cached) $ECHO_C" >&6
18617 else
18618
18619
18620
18621       ac_ext=cc
18622 ac_cpp='$CXXCPP $CPPFLAGS'
18623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18626
18627       cat >conftest.$ac_ext <<_ACEOF
18628 /* confdefs.h.  */
18629 _ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h.  */
18633 #include <math.h>
18634                       #ifdef HAVE_IEEEFP_H
18635                       #include <ieeefp.h>
18636                       #endif
18637
18638 int
18639 main ()
18640 {
18641  isinfl(0);
18642   ;
18643   return 0;
18644 }
18645 _ACEOF
18646 rm -f conftest.$ac_objext
18647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18648   (eval $ac_compile) 2>conftest.er1
18649   ac_status=$?
18650   grep -v '^ *+' conftest.er1 >conftest.err
18651   rm -f conftest.er1
18652   cat conftest.err >&5
18653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654   (exit $ac_status); } &&
18655          { ac_try='test -z "$ac_cxx_werror_flag"
18656                          || test ! -s conftest.err'
18657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658   (eval $ac_try) 2>&5
18659   ac_status=$?
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); }; } &&
18662          { ac_try='test -s conftest.$ac_objext'
18663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664   (eval $ac_try) 2>&5
18665   ac_status=$?
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); }; }; then
18668   glibcxx_cv_func_isinfl_use=yes
18669 else
18670   echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18672
18673 glibcxx_cv_func_isinfl_use=no
18674 fi
18675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18676       ac_ext=c
18677 ac_cpp='$CPP $CPPFLAGS'
18678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18681
18682
18683 fi
18684
18685   fi
18686   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
18687 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
18688
18689   if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
18690
18691 for ac_func in isinfl
18692 do
18693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18694 echo "$as_me:$LINENO: checking for $ac_func" >&5
18695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18696 if eval "test \"\${$as_ac_var+set}\" = set"; then
18697   echo $ECHO_N "(cached) $ECHO_C" >&6
18698 else
18699   if test x$gcc_no_link = xyes; then
18700   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18701 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18702    { (exit 1); exit 1; }; }
18703 fi
18704 cat >conftest.$ac_ext <<_ACEOF
18705 /* confdefs.h.  */
18706 _ACEOF
18707 cat confdefs.h >>conftest.$ac_ext
18708 cat >>conftest.$ac_ext <<_ACEOF
18709 /* end confdefs.h.  */
18710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18712 #define $ac_func innocuous_$ac_func
18713
18714 /* System header to define __stub macros and hopefully few prototypes,
18715     which can conflict with char $ac_func (); below.
18716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18717     <limits.h> exists even on freestanding compilers.  */
18718
18719 #ifdef __STDC__
18720 # include <limits.h>
18721 #else
18722 # include <assert.h>
18723 #endif
18724
18725 #undef $ac_func
18726
18727 /* Override any gcc2 internal prototype to avoid an error.  */
18728 #ifdef __cplusplus
18729 extern "C"
18730 {
18731 #endif
18732 /* We use char because int might match the return type of a gcc2
18733    builtin and then its argument prototype would still apply.  */
18734 char $ac_func ();
18735 /* The GNU C library defines this for functions which it implements
18736     to always fail with ENOSYS.  Some functions are actually named
18737     something starting with __ and the normal name is an alias.  */
18738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18739 choke me
18740 #else
18741 char (*f) () = $ac_func;
18742 #endif
18743 #ifdef __cplusplus
18744 }
18745 #endif
18746
18747 int
18748 main ()
18749 {
18750 return f != $ac_func;
18751   ;
18752   return 0;
18753 }
18754 _ACEOF
18755 rm -f conftest.$ac_objext conftest$ac_exeext
18756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18757   (eval $ac_link) 2>conftest.er1
18758   ac_status=$?
18759   grep -v '^ *+' conftest.er1 >conftest.err
18760   rm -f conftest.er1
18761   cat conftest.err >&5
18762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763   (exit $ac_status); } &&
18764          { ac_try='test -z "$ac_c_werror_flag"
18765                          || test ! -s conftest.err'
18766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767   (eval $ac_try) 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; } &&
18771          { ac_try='test -s conftest$ac_exeext'
18772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773   (eval $ac_try) 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); }; }; then
18777   eval "$as_ac_var=yes"
18778 else
18779   echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18781
18782 eval "$as_ac_var=no"
18783 fi
18784 rm -f conftest.err conftest.$ac_objext \
18785       conftest$ac_exeext conftest.$ac_ext
18786 fi
18787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18788 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18789 if test `eval echo '${'$as_ac_var'}'` = yes; then
18790   cat >>confdefs.h <<_ACEOF
18791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18792 _ACEOF
18793
18794 fi
18795 done
18796
18797   else
18798
18799   echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
18800 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
18801   if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
18802     if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
18803   echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805
18806
18807
18808       ac_ext=cc
18809 ac_cpp='$CXXCPP $CPPFLAGS'
18810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18813
18814       cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h.  */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h.  */
18820 #include <math.h>
18821                       #ifdef HAVE_IEEEFP_H
18822                       #include <ieeefp.h>
18823                       #endif
18824
18825 int
18826 main ()
18827 {
18828  _isinfl(0);
18829   ;
18830   return 0;
18831 }
18832 _ACEOF
18833 rm -f conftest.$ac_objext
18834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18835   (eval $ac_compile) 2>conftest.er1
18836   ac_status=$?
18837   grep -v '^ *+' conftest.er1 >conftest.err
18838   rm -f conftest.er1
18839   cat conftest.err >&5
18840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841   (exit $ac_status); } &&
18842          { ac_try='test -z "$ac_cxx_werror_flag"
18843                          || test ! -s conftest.err'
18844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845   (eval $ac_try) 2>&5
18846   ac_status=$?
18847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848   (exit $ac_status); }; } &&
18849          { ac_try='test -s conftest.$ac_objext'
18850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18851   (eval $ac_try) 2>&5
18852   ac_status=$?
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); }; }; then
18855   glibcxx_cv_func__isinfl_use=yes
18856 else
18857   echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18859
18860 glibcxx_cv_func__isinfl_use=no
18861 fi
18862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18863       ac_ext=c
18864 ac_cpp='$CPP $CPPFLAGS'
18865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18868
18869
18870 fi
18871
18872   fi
18873   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
18874 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
18875
18876     if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
18877
18878 for ac_func in _isinfl
18879 do
18880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18881 echo "$as_me:$LINENO: checking for $ac_func" >&5
18882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18883 if eval "test \"\${$as_ac_var+set}\" = set"; then
18884   echo $ECHO_N "(cached) $ECHO_C" >&6
18885 else
18886   if test x$gcc_no_link = xyes; then
18887   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18888 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18889    { (exit 1); exit 1; }; }
18890 fi
18891 cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h.  */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h.  */
18897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18899 #define $ac_func innocuous_$ac_func
18900
18901 /* System header to define __stub macros and hopefully few prototypes,
18902     which can conflict with char $ac_func (); below.
18903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18904     <limits.h> exists even on freestanding compilers.  */
18905
18906 #ifdef __STDC__
18907 # include <limits.h>
18908 #else
18909 # include <assert.h>
18910 #endif
18911
18912 #undef $ac_func
18913
18914 /* Override any gcc2 internal prototype to avoid an error.  */
18915 #ifdef __cplusplus
18916 extern "C"
18917 {
18918 #endif
18919 /* We use char because int might match the return type of a gcc2
18920    builtin and then its argument prototype would still apply.  */
18921 char $ac_func ();
18922 /* The GNU C library defines this for functions which it implements
18923     to always fail with ENOSYS.  Some functions are actually named
18924     something starting with __ and the normal name is an alias.  */
18925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18926 choke me
18927 #else
18928 char (*f) () = $ac_func;
18929 #endif
18930 #ifdef __cplusplus
18931 }
18932 #endif
18933
18934 int
18935 main ()
18936 {
18937 return f != $ac_func;
18938   ;
18939   return 0;
18940 }
18941 _ACEOF
18942 rm -f conftest.$ac_objext conftest$ac_exeext
18943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18944   (eval $ac_link) 2>conftest.er1
18945   ac_status=$?
18946   grep -v '^ *+' conftest.er1 >conftest.err
18947   rm -f conftest.er1
18948   cat conftest.err >&5
18949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950   (exit $ac_status); } &&
18951          { ac_try='test -z "$ac_c_werror_flag"
18952                          || test ! -s conftest.err'
18953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954   (eval $ac_try) 2>&5
18955   ac_status=$?
18956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957   (exit $ac_status); }; } &&
18958          { ac_try='test -s conftest$ac_exeext'
18959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960   (eval $ac_try) 2>&5
18961   ac_status=$?
18962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963   (exit $ac_status); }; }; then
18964   eval "$as_ac_var=yes"
18965 else
18966   echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18968
18969 eval "$as_ac_var=no"
18970 fi
18971 rm -f conftest.err conftest.$ac_objext \
18972       conftest$ac_exeext conftest.$ac_ext
18973 fi
18974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18976 if test `eval echo '${'$as_ac_var'}'` = yes; then
18977   cat >>confdefs.h <<_ACEOF
18978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18979 _ACEOF
18980
18981 fi
18982 done
18983
18984     fi
18985   fi
18986
18987
18988
18989   echo "$as_me:$LINENO: checking for copysignl declaration" >&5
18990 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
18991   if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
18992     if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
18993   echo $ECHO_N "(cached) $ECHO_C" >&6
18994 else
18995
18996
18997
18998       ac_ext=cc
18999 ac_cpp='$CXXCPP $CPPFLAGS'
19000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19003
19004       cat >conftest.$ac_ext <<_ACEOF
19005 /* confdefs.h.  */
19006 _ACEOF
19007 cat confdefs.h >>conftest.$ac_ext
19008 cat >>conftest.$ac_ext <<_ACEOF
19009 /* end confdefs.h.  */
19010 #include <math.h>
19011 int
19012 main ()
19013 {
19014  copysignl(0, 0);
19015   ;
19016   return 0;
19017 }
19018 _ACEOF
19019 rm -f conftest.$ac_objext
19020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19021   (eval $ac_compile) 2>conftest.er1
19022   ac_status=$?
19023   grep -v '^ *+' conftest.er1 >conftest.err
19024   rm -f conftest.er1
19025   cat conftest.err >&5
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); } &&
19028          { ac_try='test -z "$ac_cxx_werror_flag"
19029                          || test ! -s conftest.err'
19030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031   (eval $ac_try) 2>&5
19032   ac_status=$?
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); }; } &&
19035          { ac_try='test -s conftest.$ac_objext'
19036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037   (eval $ac_try) 2>&5
19038   ac_status=$?
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); }; }; then
19041   glibcxx_cv_func_copysignl_use=yes
19042 else
19043   echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19045
19046 glibcxx_cv_func_copysignl_use=no
19047 fi
19048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19049       ac_ext=c
19050 ac_cpp='$CPP $CPPFLAGS'
19051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19054
19055
19056 fi
19057
19058   fi
19059   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
19060 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
19061
19062   if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
19063
19064 for ac_func in copysignl
19065 do
19066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19067 echo "$as_me:$LINENO: checking for $ac_func" >&5
19068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19069 if eval "test \"\${$as_ac_var+set}\" = set"; then
19070   echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072   if test x$gcc_no_link = xyes; then
19073   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19075    { (exit 1); exit 1; }; }
19076 fi
19077 cat >conftest.$ac_ext <<_ACEOF
19078 /* confdefs.h.  */
19079 _ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h.  */
19083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19085 #define $ac_func innocuous_$ac_func
19086
19087 /* System header to define __stub macros and hopefully few prototypes,
19088     which can conflict with char $ac_func (); below.
19089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19090     <limits.h> exists even on freestanding compilers.  */
19091
19092 #ifdef __STDC__
19093 # include <limits.h>
19094 #else
19095 # include <assert.h>
19096 #endif
19097
19098 #undef $ac_func
19099
19100 /* Override any gcc2 internal prototype to avoid an error.  */
19101 #ifdef __cplusplus
19102 extern "C"
19103 {
19104 #endif
19105 /* We use char because int might match the return type of a gcc2
19106    builtin and then its argument prototype would still apply.  */
19107 char $ac_func ();
19108 /* The GNU C library defines this for functions which it implements
19109     to always fail with ENOSYS.  Some functions are actually named
19110     something starting with __ and the normal name is an alias.  */
19111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19112 choke me
19113 #else
19114 char (*f) () = $ac_func;
19115 #endif
19116 #ifdef __cplusplus
19117 }
19118 #endif
19119
19120 int
19121 main ()
19122 {
19123 return f != $ac_func;
19124   ;
19125   return 0;
19126 }
19127 _ACEOF
19128 rm -f conftest.$ac_objext conftest$ac_exeext
19129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19130   (eval $ac_link) 2>conftest.er1
19131   ac_status=$?
19132   grep -v '^ *+' conftest.er1 >conftest.err
19133   rm -f conftest.er1
19134   cat conftest.err >&5
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); } &&
19137          { ac_try='test -z "$ac_c_werror_flag"
19138                          || test ! -s conftest.err'
19139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140   (eval $ac_try) 2>&5
19141   ac_status=$?
19142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143   (exit $ac_status); }; } &&
19144          { ac_try='test -s conftest$ac_exeext'
19145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146   (eval $ac_try) 2>&5
19147   ac_status=$?
19148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149   (exit $ac_status); }; }; then
19150   eval "$as_ac_var=yes"
19151 else
19152   echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19154
19155 eval "$as_ac_var=no"
19156 fi
19157 rm -f conftest.err conftest.$ac_objext \
19158       conftest$ac_exeext conftest.$ac_ext
19159 fi
19160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19162 if test `eval echo '${'$as_ac_var'}'` = yes; then
19163   cat >>confdefs.h <<_ACEOF
19164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19165 _ACEOF
19166
19167 fi
19168 done
19169
19170   else
19171
19172   echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
19173 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
19174   if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
19175     if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
19176   echo $ECHO_N "(cached) $ECHO_C" >&6
19177 else
19178
19179
19180
19181       ac_ext=cc
19182 ac_cpp='$CXXCPP $CPPFLAGS'
19183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19186
19187       cat >conftest.$ac_ext <<_ACEOF
19188 /* confdefs.h.  */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h.  */
19193 #include <math.h>
19194 int
19195 main ()
19196 {
19197  _copysignl(0, 0);
19198   ;
19199   return 0;
19200 }
19201 _ACEOF
19202 rm -f conftest.$ac_objext
19203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19204   (eval $ac_compile) 2>conftest.er1
19205   ac_status=$?
19206   grep -v '^ *+' conftest.er1 >conftest.err
19207   rm -f conftest.er1
19208   cat conftest.err >&5
19209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210   (exit $ac_status); } &&
19211          { ac_try='test -z "$ac_cxx_werror_flag"
19212                          || test ! -s conftest.err'
19213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214   (eval $ac_try) 2>&5
19215   ac_status=$?
19216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217   (exit $ac_status); }; } &&
19218          { ac_try='test -s conftest.$ac_objext'
19219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220   (eval $ac_try) 2>&5
19221   ac_status=$?
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); }; }; then
19224   glibcxx_cv_func__copysignl_use=yes
19225 else
19226   echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19228
19229 glibcxx_cv_func__copysignl_use=no
19230 fi
19231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19232       ac_ext=c
19233 ac_cpp='$CPP $CPPFLAGS'
19234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19237
19238
19239 fi
19240
19241   fi
19242   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
19243 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
19244
19245     if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
19246
19247 for ac_func in _copysignl
19248 do
19249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19250 echo "$as_me:$LINENO: checking for $ac_func" >&5
19251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19252 if eval "test \"\${$as_ac_var+set}\" = set"; then
19253   echo $ECHO_N "(cached) $ECHO_C" >&6
19254 else
19255   if test x$gcc_no_link = xyes; then
19256   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19257 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19258    { (exit 1); exit 1; }; }
19259 fi
19260 cat >conftest.$ac_ext <<_ACEOF
19261 /* confdefs.h.  */
19262 _ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h.  */
19266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19268 #define $ac_func innocuous_$ac_func
19269
19270 /* System header to define __stub macros and hopefully few prototypes,
19271     which can conflict with char $ac_func (); below.
19272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19273     <limits.h> exists even on freestanding compilers.  */
19274
19275 #ifdef __STDC__
19276 # include <limits.h>
19277 #else
19278 # include <assert.h>
19279 #endif
19280
19281 #undef $ac_func
19282
19283 /* Override any gcc2 internal prototype to avoid an error.  */
19284 #ifdef __cplusplus
19285 extern "C"
19286 {
19287 #endif
19288 /* We use char because int might match the return type of a gcc2
19289    builtin and then its argument prototype would still apply.  */
19290 char $ac_func ();
19291 /* The GNU C library defines this for functions which it implements
19292     to always fail with ENOSYS.  Some functions are actually named
19293     something starting with __ and the normal name is an alias.  */
19294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19295 choke me
19296 #else
19297 char (*f) () = $ac_func;
19298 #endif
19299 #ifdef __cplusplus
19300 }
19301 #endif
19302
19303 int
19304 main ()
19305 {
19306 return f != $ac_func;
19307   ;
19308   return 0;
19309 }
19310 _ACEOF
19311 rm -f conftest.$ac_objext conftest$ac_exeext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19313   (eval $ac_link) 2>conftest.er1
19314   ac_status=$?
19315   grep -v '^ *+' conftest.er1 >conftest.err
19316   rm -f conftest.er1
19317   cat conftest.err >&5
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); } &&
19320          { ac_try='test -z "$ac_c_werror_flag"
19321                          || test ! -s conftest.err'
19322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323   (eval $ac_try) 2>&5
19324   ac_status=$?
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); }; } &&
19327          { ac_try='test -s conftest$ac_exeext'
19328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329   (eval $ac_try) 2>&5
19330   ac_status=$?
19331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332   (exit $ac_status); }; }; then
19333   eval "$as_ac_var=yes"
19334 else
19335   echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19337
19338 eval "$as_ac_var=no"
19339 fi
19340 rm -f conftest.err conftest.$ac_objext \
19341       conftest$ac_exeext conftest.$ac_ext
19342 fi
19343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19345 if test `eval echo '${'$as_ac_var'}'` = yes; then
19346   cat >>confdefs.h <<_ACEOF
19347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19348 _ACEOF
19349
19350 fi
19351 done
19352
19353     fi
19354   fi
19355
19356
19357
19358   echo "$as_me:$LINENO: checking for atan2l declaration" >&5
19359 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
19360   if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
19361     if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
19362   echo $ECHO_N "(cached) $ECHO_C" >&6
19363 else
19364
19365
19366
19367       ac_ext=cc
19368 ac_cpp='$CXXCPP $CPPFLAGS'
19369 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19370 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19371 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19372
19373       cat >conftest.$ac_ext <<_ACEOF
19374 /* confdefs.h.  */
19375 _ACEOF
19376 cat confdefs.h >>conftest.$ac_ext
19377 cat >>conftest.$ac_ext <<_ACEOF
19378 /* end confdefs.h.  */
19379 #include <math.h>
19380 int
19381 main ()
19382 {
19383  atan2l(0, 0);
19384   ;
19385   return 0;
19386 }
19387 _ACEOF
19388 rm -f conftest.$ac_objext
19389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19390   (eval $ac_compile) 2>conftest.er1
19391   ac_status=$?
19392   grep -v '^ *+' conftest.er1 >conftest.err
19393   rm -f conftest.er1
19394   cat conftest.err >&5
19395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396   (exit $ac_status); } &&
19397          { ac_try='test -z "$ac_cxx_werror_flag"
19398                          || test ! -s conftest.err'
19399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400   (eval $ac_try) 2>&5
19401   ac_status=$?
19402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403   (exit $ac_status); }; } &&
19404          { ac_try='test -s conftest.$ac_objext'
19405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406   (eval $ac_try) 2>&5
19407   ac_status=$?
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); }; }; then
19410   glibcxx_cv_func_atan2l_use=yes
19411 else
19412   echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19414
19415 glibcxx_cv_func_atan2l_use=no
19416 fi
19417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19418       ac_ext=c
19419 ac_cpp='$CPP $CPPFLAGS'
19420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19423
19424
19425 fi
19426
19427   fi
19428   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
19429 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
19430
19431   if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
19432
19433 for ac_func in atan2l
19434 do
19435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19436 echo "$as_me:$LINENO: checking for $ac_func" >&5
19437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19438 if eval "test \"\${$as_ac_var+set}\" = set"; then
19439   echo $ECHO_N "(cached) $ECHO_C" >&6
19440 else
19441   if test x$gcc_no_link = xyes; then
19442   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19443 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19444    { (exit 1); exit 1; }; }
19445 fi
19446 cat >conftest.$ac_ext <<_ACEOF
19447 /* confdefs.h.  */
19448 _ACEOF
19449 cat confdefs.h >>conftest.$ac_ext
19450 cat >>conftest.$ac_ext <<_ACEOF
19451 /* end confdefs.h.  */
19452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19454 #define $ac_func innocuous_$ac_func
19455
19456 /* System header to define __stub macros and hopefully few prototypes,
19457     which can conflict with char $ac_func (); below.
19458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19459     <limits.h> exists even on freestanding compilers.  */
19460
19461 #ifdef __STDC__
19462 # include <limits.h>
19463 #else
19464 # include <assert.h>
19465 #endif
19466
19467 #undef $ac_func
19468
19469 /* Override any gcc2 internal prototype to avoid an error.  */
19470 #ifdef __cplusplus
19471 extern "C"
19472 {
19473 #endif
19474 /* We use char because int might match the return type of a gcc2
19475    builtin and then its argument prototype would still apply.  */
19476 char $ac_func ();
19477 /* The GNU C library defines this for functions which it implements
19478     to always fail with ENOSYS.  Some functions are actually named
19479     something starting with __ and the normal name is an alias.  */
19480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19481 choke me
19482 #else
19483 char (*f) () = $ac_func;
19484 #endif
19485 #ifdef __cplusplus
19486 }
19487 #endif
19488
19489 int
19490 main ()
19491 {
19492 return f != $ac_func;
19493   ;
19494   return 0;
19495 }
19496 _ACEOF
19497 rm -f conftest.$ac_objext conftest$ac_exeext
19498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19499   (eval $ac_link) 2>conftest.er1
19500   ac_status=$?
19501   grep -v '^ *+' conftest.er1 >conftest.err
19502   rm -f conftest.er1
19503   cat conftest.err >&5
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); } &&
19506          { ac_try='test -z "$ac_c_werror_flag"
19507                          || test ! -s conftest.err'
19508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509   (eval $ac_try) 2>&5
19510   ac_status=$?
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); }; } &&
19513          { ac_try='test -s conftest$ac_exeext'
19514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515   (eval $ac_try) 2>&5
19516   ac_status=$?
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); }; }; then
19519   eval "$as_ac_var=yes"
19520 else
19521   echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19523
19524 eval "$as_ac_var=no"
19525 fi
19526 rm -f conftest.err conftest.$ac_objext \
19527       conftest$ac_exeext conftest.$ac_ext
19528 fi
19529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19531 if test `eval echo '${'$as_ac_var'}'` = yes; then
19532   cat >>confdefs.h <<_ACEOF
19533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19534 _ACEOF
19535
19536 fi
19537 done
19538
19539   else
19540
19541   echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
19542 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
19543   if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
19544     if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
19545   echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547
19548
19549
19550       ac_ext=cc
19551 ac_cpp='$CXXCPP $CPPFLAGS'
19552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19555
19556       cat >conftest.$ac_ext <<_ACEOF
19557 /* confdefs.h.  */
19558 _ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h.  */
19562 #include <math.h>
19563 int
19564 main ()
19565 {
19566  _atan2l(0, 0);
19567   ;
19568   return 0;
19569 }
19570 _ACEOF
19571 rm -f conftest.$ac_objext
19572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19573   (eval $ac_compile) 2>conftest.er1
19574   ac_status=$?
19575   grep -v '^ *+' conftest.er1 >conftest.err
19576   rm -f conftest.er1
19577   cat conftest.err >&5
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); } &&
19580          { ac_try='test -z "$ac_cxx_werror_flag"
19581                          || test ! -s conftest.err'
19582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583   (eval $ac_try) 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }; } &&
19587          { ac_try='test -s conftest.$ac_objext'
19588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19589   (eval $ac_try) 2>&5
19590   ac_status=$?
19591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592   (exit $ac_status); }; }; then
19593   glibcxx_cv_func__atan2l_use=yes
19594 else
19595   echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19597
19598 glibcxx_cv_func__atan2l_use=no
19599 fi
19600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19601       ac_ext=c
19602 ac_cpp='$CPP $CPPFLAGS'
19603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19606
19607
19608 fi
19609
19610   fi
19611   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
19612 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
19613
19614     if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
19615
19616 for ac_func in _atan2l
19617 do
19618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19619 echo "$as_me:$LINENO: checking for $ac_func" >&5
19620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19621 if eval "test \"\${$as_ac_var+set}\" = set"; then
19622   echo $ECHO_N "(cached) $ECHO_C" >&6
19623 else
19624   if test x$gcc_no_link = xyes; then
19625   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19626 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19627    { (exit 1); exit 1; }; }
19628 fi
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h.  */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h.  */
19635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19637 #define $ac_func innocuous_$ac_func
19638
19639 /* System header to define __stub macros and hopefully few prototypes,
19640     which can conflict with char $ac_func (); below.
19641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19642     <limits.h> exists even on freestanding compilers.  */
19643
19644 #ifdef __STDC__
19645 # include <limits.h>
19646 #else
19647 # include <assert.h>
19648 #endif
19649
19650 #undef $ac_func
19651
19652 /* Override any gcc2 internal prototype to avoid an error.  */
19653 #ifdef __cplusplus
19654 extern "C"
19655 {
19656 #endif
19657 /* We use char because int might match the return type of a gcc2
19658    builtin and then its argument prototype would still apply.  */
19659 char $ac_func ();
19660 /* The GNU C library defines this for functions which it implements
19661     to always fail with ENOSYS.  Some functions are actually named
19662     something starting with __ and the normal name is an alias.  */
19663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19664 choke me
19665 #else
19666 char (*f) () = $ac_func;
19667 #endif
19668 #ifdef __cplusplus
19669 }
19670 #endif
19671
19672 int
19673 main ()
19674 {
19675 return f != $ac_func;
19676   ;
19677   return 0;
19678 }
19679 _ACEOF
19680 rm -f conftest.$ac_objext conftest$ac_exeext
19681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19682   (eval $ac_link) 2>conftest.er1
19683   ac_status=$?
19684   grep -v '^ *+' conftest.er1 >conftest.err
19685   rm -f conftest.er1
19686   cat conftest.err >&5
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); } &&
19689          { ac_try='test -z "$ac_c_werror_flag"
19690                          || test ! -s conftest.err'
19691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692   (eval $ac_try) 2>&5
19693   ac_status=$?
19694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695   (exit $ac_status); }; } &&
19696          { ac_try='test -s conftest$ac_exeext'
19697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19698   (eval $ac_try) 2>&5
19699   ac_status=$?
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); }; }; then
19702   eval "$as_ac_var=yes"
19703 else
19704   echo "$as_me: failed program was:" >&5
19705 sed 's/^/| /' conftest.$ac_ext >&5
19706
19707 eval "$as_ac_var=no"
19708 fi
19709 rm -f conftest.err conftest.$ac_objext \
19710       conftest$ac_exeext conftest.$ac_ext
19711 fi
19712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19714 if test `eval echo '${'$as_ac_var'}'` = yes; then
19715   cat >>confdefs.h <<_ACEOF
19716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19717 _ACEOF
19718
19719 fi
19720 done
19721
19722     fi
19723   fi
19724
19725
19726
19727   echo "$as_me:$LINENO: checking for expl declaration" >&5
19728 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
19729   if test x${glibcxx_cv_func_expl_use+set} != xset; then
19730     if test "${glibcxx_cv_func_expl_use+set}" = set; then
19731   echo $ECHO_N "(cached) $ECHO_C" >&6
19732 else
19733
19734
19735
19736       ac_ext=cc
19737 ac_cpp='$CXXCPP $CPPFLAGS'
19738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19741
19742       cat >conftest.$ac_ext <<_ACEOF
19743 /* confdefs.h.  */
19744 _ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h.  */
19748 #include <math.h>
19749                       #ifdef HAVE_IEEEFP_H
19750                       #include <ieeefp.h>
19751                       #endif
19752
19753 int
19754 main ()
19755 {
19756  expl(0);
19757   ;
19758   return 0;
19759 }
19760 _ACEOF
19761 rm -f conftest.$ac_objext
19762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19763   (eval $ac_compile) 2>conftest.er1
19764   ac_status=$?
19765   grep -v '^ *+' conftest.er1 >conftest.err
19766   rm -f conftest.er1
19767   cat conftest.err >&5
19768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769   (exit $ac_status); } &&
19770          { ac_try='test -z "$ac_cxx_werror_flag"
19771                          || test ! -s conftest.err'
19772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19773   (eval $ac_try) 2>&5
19774   ac_status=$?
19775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776   (exit $ac_status); }; } &&
19777          { ac_try='test -s conftest.$ac_objext'
19778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779   (eval $ac_try) 2>&5
19780   ac_status=$?
19781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782   (exit $ac_status); }; }; then
19783   glibcxx_cv_func_expl_use=yes
19784 else
19785   echo "$as_me: failed program was:" >&5
19786 sed 's/^/| /' conftest.$ac_ext >&5
19787
19788 glibcxx_cv_func_expl_use=no
19789 fi
19790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19791       ac_ext=c
19792 ac_cpp='$CPP $CPPFLAGS'
19793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19796
19797
19798 fi
19799
19800   fi
19801   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
19802 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
19803
19804   if test x$glibcxx_cv_func_expl_use = x"yes"; then
19805
19806 for ac_func in expl
19807 do
19808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19809 echo "$as_me:$LINENO: checking for $ac_func" >&5
19810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19811 if eval "test \"\${$as_ac_var+set}\" = set"; then
19812   echo $ECHO_N "(cached) $ECHO_C" >&6
19813 else
19814   if test x$gcc_no_link = xyes; then
19815   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19816 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19817    { (exit 1); exit 1; }; }
19818 fi
19819 cat >conftest.$ac_ext <<_ACEOF
19820 /* confdefs.h.  */
19821 _ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h.  */
19825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19827 #define $ac_func innocuous_$ac_func
19828
19829 /* System header to define __stub macros and hopefully few prototypes,
19830     which can conflict with char $ac_func (); below.
19831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19832     <limits.h> exists even on freestanding compilers.  */
19833
19834 #ifdef __STDC__
19835 # include <limits.h>
19836 #else
19837 # include <assert.h>
19838 #endif
19839
19840 #undef $ac_func
19841
19842 /* Override any gcc2 internal prototype to avoid an error.  */
19843 #ifdef __cplusplus
19844 extern "C"
19845 {
19846 #endif
19847 /* We use char because int might match the return type of a gcc2
19848    builtin and then its argument prototype would still apply.  */
19849 char $ac_func ();
19850 /* The GNU C library defines this for functions which it implements
19851     to always fail with ENOSYS.  Some functions are actually named
19852     something starting with __ and the normal name is an alias.  */
19853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19854 choke me
19855 #else
19856 char (*f) () = $ac_func;
19857 #endif
19858 #ifdef __cplusplus
19859 }
19860 #endif
19861
19862 int
19863 main ()
19864 {
19865 return f != $ac_func;
19866   ;
19867   return 0;
19868 }
19869 _ACEOF
19870 rm -f conftest.$ac_objext conftest$ac_exeext
19871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19872   (eval $ac_link) 2>conftest.er1
19873   ac_status=$?
19874   grep -v '^ *+' conftest.er1 >conftest.err
19875   rm -f conftest.er1
19876   cat conftest.err >&5
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); } &&
19879          { ac_try='test -z "$ac_c_werror_flag"
19880                          || test ! -s conftest.err'
19881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882   (eval $ac_try) 2>&5
19883   ac_status=$?
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); }; } &&
19886          { ac_try='test -s conftest$ac_exeext'
19887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19888   (eval $ac_try) 2>&5
19889   ac_status=$?
19890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891   (exit $ac_status); }; }; then
19892   eval "$as_ac_var=yes"
19893 else
19894   echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19896
19897 eval "$as_ac_var=no"
19898 fi
19899 rm -f conftest.err conftest.$ac_objext \
19900       conftest$ac_exeext conftest.$ac_ext
19901 fi
19902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19904 if test `eval echo '${'$as_ac_var'}'` = yes; then
19905   cat >>confdefs.h <<_ACEOF
19906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19907 _ACEOF
19908
19909 fi
19910 done
19911
19912   else
19913
19914   echo "$as_me:$LINENO: checking for _expl declaration" >&5
19915 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
19916   if test x${glibcxx_cv_func__expl_use+set} != xset; then
19917     if test "${glibcxx_cv_func__expl_use+set}" = set; then
19918   echo $ECHO_N "(cached) $ECHO_C" >&6
19919 else
19920
19921
19922
19923       ac_ext=cc
19924 ac_cpp='$CXXCPP $CPPFLAGS'
19925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19928
19929       cat >conftest.$ac_ext <<_ACEOF
19930 /* confdefs.h.  */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h.  */
19935 #include <math.h>
19936                       #ifdef HAVE_IEEEFP_H
19937                       #include <ieeefp.h>
19938                       #endif
19939
19940 int
19941 main ()
19942 {
19943  _expl(0);
19944   ;
19945   return 0;
19946 }
19947 _ACEOF
19948 rm -f conftest.$ac_objext
19949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19950   (eval $ac_compile) 2>conftest.er1
19951   ac_status=$?
19952   grep -v '^ *+' conftest.er1 >conftest.err
19953   rm -f conftest.er1
19954   cat conftest.err >&5
19955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19956   (exit $ac_status); } &&
19957          { ac_try='test -z "$ac_cxx_werror_flag"
19958                          || test ! -s conftest.err'
19959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19960   (eval $ac_try) 2>&5
19961   ac_status=$?
19962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963   (exit $ac_status); }; } &&
19964          { ac_try='test -s conftest.$ac_objext'
19965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19966   (eval $ac_try) 2>&5
19967   ac_status=$?
19968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969   (exit $ac_status); }; }; then
19970   glibcxx_cv_func__expl_use=yes
19971 else
19972   echo "$as_me: failed program was:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19974
19975 glibcxx_cv_func__expl_use=no
19976 fi
19977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19978       ac_ext=c
19979 ac_cpp='$CPP $CPPFLAGS'
19980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19983
19984
19985 fi
19986
19987   fi
19988   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
19989 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
19990
19991     if test x$glibcxx_cv_func__expl_use = x"yes"; then
19992
19993 for ac_func in _expl
19994 do
19995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19996 echo "$as_me:$LINENO: checking for $ac_func" >&5
19997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19998 if eval "test \"\${$as_ac_var+set}\" = set"; then
19999   echo $ECHO_N "(cached) $ECHO_C" >&6
20000 else
20001   if test x$gcc_no_link = xyes; then
20002   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20003 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20004    { (exit 1); exit 1; }; }
20005 fi
20006 cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h.  */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h.  */
20012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20014 #define $ac_func innocuous_$ac_func
20015
20016 /* System header to define __stub macros and hopefully few prototypes,
20017     which can conflict with char $ac_func (); below.
20018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20019     <limits.h> exists even on freestanding compilers.  */
20020
20021 #ifdef __STDC__
20022 # include <limits.h>
20023 #else
20024 # include <assert.h>
20025 #endif
20026
20027 #undef $ac_func
20028
20029 /* Override any gcc2 internal prototype to avoid an error.  */
20030 #ifdef __cplusplus
20031 extern "C"
20032 {
20033 #endif
20034 /* We use char because int might match the return type of a gcc2
20035    builtin and then its argument prototype would still apply.  */
20036 char $ac_func ();
20037 /* The GNU C library defines this for functions which it implements
20038     to always fail with ENOSYS.  Some functions are actually named
20039     something starting with __ and the normal name is an alias.  */
20040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20041 choke me
20042 #else
20043 char (*f) () = $ac_func;
20044 #endif
20045 #ifdef __cplusplus
20046 }
20047 #endif
20048
20049 int
20050 main ()
20051 {
20052 return f != $ac_func;
20053   ;
20054   return 0;
20055 }
20056 _ACEOF
20057 rm -f conftest.$ac_objext conftest$ac_exeext
20058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20059   (eval $ac_link) 2>conftest.er1
20060   ac_status=$?
20061   grep -v '^ *+' conftest.er1 >conftest.err
20062   rm -f conftest.er1
20063   cat conftest.err >&5
20064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065   (exit $ac_status); } &&
20066          { ac_try='test -z "$ac_c_werror_flag"
20067                          || test ! -s conftest.err'
20068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069   (eval $ac_try) 2>&5
20070   ac_status=$?
20071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072   (exit $ac_status); }; } &&
20073          { ac_try='test -s conftest$ac_exeext'
20074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075   (eval $ac_try) 2>&5
20076   ac_status=$?
20077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078   (exit $ac_status); }; }; then
20079   eval "$as_ac_var=yes"
20080 else
20081   echo "$as_me: failed program was:" >&5
20082 sed 's/^/| /' conftest.$ac_ext >&5
20083
20084 eval "$as_ac_var=no"
20085 fi
20086 rm -f conftest.err conftest.$ac_objext \
20087       conftest$ac_exeext conftest.$ac_ext
20088 fi
20089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20091 if test `eval echo '${'$as_ac_var'}'` = yes; then
20092   cat >>confdefs.h <<_ACEOF
20093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20094 _ACEOF
20095
20096 fi
20097 done
20098
20099     fi
20100   fi
20101
20102
20103
20104   echo "$as_me:$LINENO: checking for fabsl declaration" >&5
20105 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
20106   if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
20107     if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
20108   echo $ECHO_N "(cached) $ECHO_C" >&6
20109 else
20110
20111
20112
20113       ac_ext=cc
20114 ac_cpp='$CXXCPP $CPPFLAGS'
20115 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20116 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20117 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20118
20119       cat >conftest.$ac_ext <<_ACEOF
20120 /* confdefs.h.  */
20121 _ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h.  */
20125 #include <math.h>
20126                       #ifdef HAVE_IEEEFP_H
20127                       #include <ieeefp.h>
20128                       #endif
20129
20130 int
20131 main ()
20132 {
20133  fabsl(0);
20134   ;
20135   return 0;
20136 }
20137 _ACEOF
20138 rm -f conftest.$ac_objext
20139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20140   (eval $ac_compile) 2>conftest.er1
20141   ac_status=$?
20142   grep -v '^ *+' conftest.er1 >conftest.err
20143   rm -f conftest.er1
20144   cat conftest.err >&5
20145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146   (exit $ac_status); } &&
20147          { ac_try='test -z "$ac_cxx_werror_flag"
20148                          || test ! -s conftest.err'
20149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20150   (eval $ac_try) 2>&5
20151   ac_status=$?
20152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153   (exit $ac_status); }; } &&
20154          { ac_try='test -s conftest.$ac_objext'
20155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156   (eval $ac_try) 2>&5
20157   ac_status=$?
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); }; }; then
20160   glibcxx_cv_func_fabsl_use=yes
20161 else
20162   echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20164
20165 glibcxx_cv_func_fabsl_use=no
20166 fi
20167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20168       ac_ext=c
20169 ac_cpp='$CPP $CPPFLAGS'
20170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20173
20174
20175 fi
20176
20177   fi
20178   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
20179 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
20180
20181   if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
20182
20183 for ac_func in fabsl
20184 do
20185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20186 echo "$as_me:$LINENO: checking for $ac_func" >&5
20187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20188 if eval "test \"\${$as_ac_var+set}\" = set"; then
20189   echo $ECHO_N "(cached) $ECHO_C" >&6
20190 else
20191   if test x$gcc_no_link = xyes; then
20192   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20193 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20194    { (exit 1); exit 1; }; }
20195 fi
20196 cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20204 #define $ac_func innocuous_$ac_func
20205
20206 /* System header to define __stub macros and hopefully few prototypes,
20207     which can conflict with char $ac_func (); below.
20208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20209     <limits.h> exists even on freestanding compilers.  */
20210
20211 #ifdef __STDC__
20212 # include <limits.h>
20213 #else
20214 # include <assert.h>
20215 #endif
20216
20217 #undef $ac_func
20218
20219 /* Override any gcc2 internal prototype to avoid an error.  */
20220 #ifdef __cplusplus
20221 extern "C"
20222 {
20223 #endif
20224 /* We use char because int might match the return type of a gcc2
20225    builtin and then its argument prototype would still apply.  */
20226 char $ac_func ();
20227 /* The GNU C library defines this for functions which it implements
20228     to always fail with ENOSYS.  Some functions are actually named
20229     something starting with __ and the normal name is an alias.  */
20230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20231 choke me
20232 #else
20233 char (*f) () = $ac_func;
20234 #endif
20235 #ifdef __cplusplus
20236 }
20237 #endif
20238
20239 int
20240 main ()
20241 {
20242 return f != $ac_func;
20243   ;
20244   return 0;
20245 }
20246 _ACEOF
20247 rm -f conftest.$ac_objext conftest$ac_exeext
20248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20249   (eval $ac_link) 2>conftest.er1
20250   ac_status=$?
20251   grep -v '^ *+' conftest.er1 >conftest.err
20252   rm -f conftest.er1
20253   cat conftest.err >&5
20254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255   (exit $ac_status); } &&
20256          { ac_try='test -z "$ac_c_werror_flag"
20257                          || test ! -s conftest.err'
20258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259   (eval $ac_try) 2>&5
20260   ac_status=$?
20261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262   (exit $ac_status); }; } &&
20263          { ac_try='test -s conftest$ac_exeext'
20264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265   (eval $ac_try) 2>&5
20266   ac_status=$?
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); }; }; then
20269   eval "$as_ac_var=yes"
20270 else
20271   echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20273
20274 eval "$as_ac_var=no"
20275 fi
20276 rm -f conftest.err conftest.$ac_objext \
20277       conftest$ac_exeext conftest.$ac_ext
20278 fi
20279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20281 if test `eval echo '${'$as_ac_var'}'` = yes; then
20282   cat >>confdefs.h <<_ACEOF
20283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20284 _ACEOF
20285
20286 fi
20287 done
20288
20289   else
20290
20291   echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
20292 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
20293   if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
20294     if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
20295   echo $ECHO_N "(cached) $ECHO_C" >&6
20296 else
20297
20298
20299
20300       ac_ext=cc
20301 ac_cpp='$CXXCPP $CPPFLAGS'
20302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20305
20306       cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h.  */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h.  */
20312 #include <math.h>
20313                       #ifdef HAVE_IEEEFP_H
20314                       #include <ieeefp.h>
20315                       #endif
20316
20317 int
20318 main ()
20319 {
20320  _fabsl(0);
20321   ;
20322   return 0;
20323 }
20324 _ACEOF
20325 rm -f conftest.$ac_objext
20326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20327   (eval $ac_compile) 2>conftest.er1
20328   ac_status=$?
20329   grep -v '^ *+' conftest.er1 >conftest.err
20330   rm -f conftest.er1
20331   cat conftest.err >&5
20332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); } &&
20334          { ac_try='test -z "$ac_cxx_werror_flag"
20335                          || test ! -s conftest.err'
20336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337   (eval $ac_try) 2>&5
20338   ac_status=$?
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); }; } &&
20341          { ac_try='test -s conftest.$ac_objext'
20342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343   (eval $ac_try) 2>&5
20344   ac_status=$?
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); }; }; then
20347   glibcxx_cv_func__fabsl_use=yes
20348 else
20349   echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20351
20352 glibcxx_cv_func__fabsl_use=no
20353 fi
20354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20355       ac_ext=c
20356 ac_cpp='$CPP $CPPFLAGS'
20357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20360
20361
20362 fi
20363
20364   fi
20365   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
20366 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
20367
20368     if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
20369
20370 for ac_func in _fabsl
20371 do
20372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20373 echo "$as_me:$LINENO: checking for $ac_func" >&5
20374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20375 if eval "test \"\${$as_ac_var+set}\" = set"; then
20376   echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378   if test x$gcc_no_link = xyes; then
20379   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20380 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20381    { (exit 1); exit 1; }; }
20382 fi
20383 cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h.  */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h.  */
20389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20390    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20391 #define $ac_func innocuous_$ac_func
20392
20393 /* System header to define __stub macros and hopefully few prototypes,
20394     which can conflict with char $ac_func (); below.
20395     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20396     <limits.h> exists even on freestanding compilers.  */
20397
20398 #ifdef __STDC__
20399 # include <limits.h>
20400 #else
20401 # include <assert.h>
20402 #endif
20403
20404 #undef $ac_func
20405
20406 /* Override any gcc2 internal prototype to avoid an error.  */
20407 #ifdef __cplusplus
20408 extern "C"
20409 {
20410 #endif
20411 /* We use char because int might match the return type of a gcc2
20412    builtin and then its argument prototype would still apply.  */
20413 char $ac_func ();
20414 /* The GNU C library defines this for functions which it implements
20415     to always fail with ENOSYS.  Some functions are actually named
20416     something starting with __ and the normal name is an alias.  */
20417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20418 choke me
20419 #else
20420 char (*f) () = $ac_func;
20421 #endif
20422 #ifdef __cplusplus
20423 }
20424 #endif
20425
20426 int
20427 main ()
20428 {
20429 return f != $ac_func;
20430   ;
20431   return 0;
20432 }
20433 _ACEOF
20434 rm -f conftest.$ac_objext conftest$ac_exeext
20435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20436   (eval $ac_link) 2>conftest.er1
20437   ac_status=$?
20438   grep -v '^ *+' conftest.er1 >conftest.err
20439   rm -f conftest.er1
20440   cat conftest.err >&5
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); } &&
20443          { ac_try='test -z "$ac_c_werror_flag"
20444                          || test ! -s conftest.err'
20445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446   (eval $ac_try) 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); }; } &&
20450          { ac_try='test -s conftest$ac_exeext'
20451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20452   (eval $ac_try) 2>&5
20453   ac_status=$?
20454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455   (exit $ac_status); }; }; then
20456   eval "$as_ac_var=yes"
20457 else
20458   echo "$as_me: failed program was:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20460
20461 eval "$as_ac_var=no"
20462 fi
20463 rm -f conftest.err conftest.$ac_objext \
20464       conftest$ac_exeext conftest.$ac_ext
20465 fi
20466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20468 if test `eval echo '${'$as_ac_var'}'` = yes; then
20469   cat >>confdefs.h <<_ACEOF
20470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20471 _ACEOF
20472
20473 fi
20474 done
20475
20476     fi
20477   fi
20478
20479
20480
20481   echo "$as_me:$LINENO: checking for fmodl declaration" >&5
20482 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
20483   if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
20484     if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
20485   echo $ECHO_N "(cached) $ECHO_C" >&6
20486 else
20487
20488
20489
20490       ac_ext=cc
20491 ac_cpp='$CXXCPP $CPPFLAGS'
20492 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20495
20496       cat >conftest.$ac_ext <<_ACEOF
20497 /* confdefs.h.  */
20498 _ACEOF
20499 cat confdefs.h >>conftest.$ac_ext
20500 cat >>conftest.$ac_ext <<_ACEOF
20501 /* end confdefs.h.  */
20502 #include <math.h>
20503 int
20504 main ()
20505 {
20506  fmodl(0, 0);
20507   ;
20508   return 0;
20509 }
20510 _ACEOF
20511 rm -f conftest.$ac_objext
20512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20513   (eval $ac_compile) 2>conftest.er1
20514   ac_status=$?
20515   grep -v '^ *+' conftest.er1 >conftest.err
20516   rm -f conftest.er1
20517   cat conftest.err >&5
20518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519   (exit $ac_status); } &&
20520          { ac_try='test -z "$ac_cxx_werror_flag"
20521                          || test ! -s conftest.err'
20522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523   (eval $ac_try) 2>&5
20524   ac_status=$?
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); }; } &&
20527          { ac_try='test -s conftest.$ac_objext'
20528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20529   (eval $ac_try) 2>&5
20530   ac_status=$?
20531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); }; }; then
20533   glibcxx_cv_func_fmodl_use=yes
20534 else
20535   echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20537
20538 glibcxx_cv_func_fmodl_use=no
20539 fi
20540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20541       ac_ext=c
20542 ac_cpp='$CPP $CPPFLAGS'
20543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20546
20547
20548 fi
20549
20550   fi
20551   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
20552 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
20553
20554   if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
20555
20556 for ac_func in fmodl
20557 do
20558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20559 echo "$as_me:$LINENO: checking for $ac_func" >&5
20560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20561 if eval "test \"\${$as_ac_var+set}\" = set"; then
20562   echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564   if test x$gcc_no_link = xyes; then
20565   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20567    { (exit 1); exit 1; }; }
20568 fi
20569 cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h.  */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h.  */
20575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20577 #define $ac_func innocuous_$ac_func
20578
20579 /* System header to define __stub macros and hopefully few prototypes,
20580     which can conflict with char $ac_func (); below.
20581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20582     <limits.h> exists even on freestanding compilers.  */
20583
20584 #ifdef __STDC__
20585 # include <limits.h>
20586 #else
20587 # include <assert.h>
20588 #endif
20589
20590 #undef $ac_func
20591
20592 /* Override any gcc2 internal prototype to avoid an error.  */
20593 #ifdef __cplusplus
20594 extern "C"
20595 {
20596 #endif
20597 /* We use char because int might match the return type of a gcc2
20598    builtin and then its argument prototype would still apply.  */
20599 char $ac_func ();
20600 /* The GNU C library defines this for functions which it implements
20601     to always fail with ENOSYS.  Some functions are actually named
20602     something starting with __ and the normal name is an alias.  */
20603 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20604 choke me
20605 #else
20606 char (*f) () = $ac_func;
20607 #endif
20608 #ifdef __cplusplus
20609 }
20610 #endif
20611
20612 int
20613 main ()
20614 {
20615 return f != $ac_func;
20616   ;
20617   return 0;
20618 }
20619 _ACEOF
20620 rm -f conftest.$ac_objext conftest$ac_exeext
20621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20622   (eval $ac_link) 2>conftest.er1
20623   ac_status=$?
20624   grep -v '^ *+' conftest.er1 >conftest.err
20625   rm -f conftest.er1
20626   cat conftest.err >&5
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); } &&
20629          { ac_try='test -z "$ac_c_werror_flag"
20630                          || test ! -s conftest.err'
20631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20632   (eval $ac_try) 2>&5
20633   ac_status=$?
20634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20635   (exit $ac_status); }; } &&
20636          { ac_try='test -s conftest$ac_exeext'
20637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20638   (eval $ac_try) 2>&5
20639   ac_status=$?
20640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641   (exit $ac_status); }; }; then
20642   eval "$as_ac_var=yes"
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647 eval "$as_ac_var=no"
20648 fi
20649 rm -f conftest.err conftest.$ac_objext \
20650       conftest$ac_exeext conftest.$ac_ext
20651 fi
20652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20653 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20654 if test `eval echo '${'$as_ac_var'}'` = yes; then
20655   cat >>confdefs.h <<_ACEOF
20656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20657 _ACEOF
20658
20659 fi
20660 done
20661
20662   else
20663
20664   echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
20665 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
20666   if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
20667     if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
20668   echo $ECHO_N "(cached) $ECHO_C" >&6
20669 else
20670
20671
20672
20673       ac_ext=cc
20674 ac_cpp='$CXXCPP $CPPFLAGS'
20675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20678
20679       cat >conftest.$ac_ext <<_ACEOF
20680 /* confdefs.h.  */
20681 _ACEOF
20682 cat confdefs.h >>conftest.$ac_ext
20683 cat >>conftest.$ac_ext <<_ACEOF
20684 /* end confdefs.h.  */
20685 #include <math.h>
20686 int
20687 main ()
20688 {
20689  _fmodl(0, 0);
20690   ;
20691   return 0;
20692 }
20693 _ACEOF
20694 rm -f conftest.$ac_objext
20695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20696   (eval $ac_compile) 2>conftest.er1
20697   ac_status=$?
20698   grep -v '^ *+' conftest.er1 >conftest.err
20699   rm -f conftest.er1
20700   cat conftest.err >&5
20701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702   (exit $ac_status); } &&
20703          { ac_try='test -z "$ac_cxx_werror_flag"
20704                          || test ! -s conftest.err'
20705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706   (eval $ac_try) 2>&5
20707   ac_status=$?
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); }; } &&
20710          { ac_try='test -s conftest.$ac_objext'
20711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712   (eval $ac_try) 2>&5
20713   ac_status=$?
20714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715   (exit $ac_status); }; }; then
20716   glibcxx_cv_func__fmodl_use=yes
20717 else
20718   echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20720
20721 glibcxx_cv_func__fmodl_use=no
20722 fi
20723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20724       ac_ext=c
20725 ac_cpp='$CPP $CPPFLAGS'
20726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20729
20730
20731 fi
20732
20733   fi
20734   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
20735 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
20736
20737     if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
20738
20739 for ac_func in _fmodl
20740 do
20741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20742 echo "$as_me:$LINENO: checking for $ac_func" >&5
20743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20744 if eval "test \"\${$as_ac_var+set}\" = set"; then
20745   echo $ECHO_N "(cached) $ECHO_C" >&6
20746 else
20747   if test x$gcc_no_link = xyes; then
20748   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20749 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20750    { (exit 1); exit 1; }; }
20751 fi
20752 cat >conftest.$ac_ext <<_ACEOF
20753 /* confdefs.h.  */
20754 _ACEOF
20755 cat confdefs.h >>conftest.$ac_ext
20756 cat >>conftest.$ac_ext <<_ACEOF
20757 /* end confdefs.h.  */
20758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20760 #define $ac_func innocuous_$ac_func
20761
20762 /* System header to define __stub macros and hopefully few prototypes,
20763     which can conflict with char $ac_func (); below.
20764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20765     <limits.h> exists even on freestanding compilers.  */
20766
20767 #ifdef __STDC__
20768 # include <limits.h>
20769 #else
20770 # include <assert.h>
20771 #endif
20772
20773 #undef $ac_func
20774
20775 /* Override any gcc2 internal prototype to avoid an error.  */
20776 #ifdef __cplusplus
20777 extern "C"
20778 {
20779 #endif
20780 /* We use char because int might match the return type of a gcc2
20781    builtin and then its argument prototype would still apply.  */
20782 char $ac_func ();
20783 /* The GNU C library defines this for functions which it implements
20784     to always fail with ENOSYS.  Some functions are actually named
20785     something starting with __ and the normal name is an alias.  */
20786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20787 choke me
20788 #else
20789 char (*f) () = $ac_func;
20790 #endif
20791 #ifdef __cplusplus
20792 }
20793 #endif
20794
20795 int
20796 main ()
20797 {
20798 return f != $ac_func;
20799   ;
20800   return 0;
20801 }
20802 _ACEOF
20803 rm -f conftest.$ac_objext conftest$ac_exeext
20804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20805   (eval $ac_link) 2>conftest.er1
20806   ac_status=$?
20807   grep -v '^ *+' conftest.er1 >conftest.err
20808   rm -f conftest.er1
20809   cat conftest.err >&5
20810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811   (exit $ac_status); } &&
20812          { ac_try='test -z "$ac_c_werror_flag"
20813                          || test ! -s conftest.err'
20814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815   (eval $ac_try) 2>&5
20816   ac_status=$?
20817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818   (exit $ac_status); }; } &&
20819          { ac_try='test -s conftest$ac_exeext'
20820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821   (eval $ac_try) 2>&5
20822   ac_status=$?
20823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824   (exit $ac_status); }; }; then
20825   eval "$as_ac_var=yes"
20826 else
20827   echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20829
20830 eval "$as_ac_var=no"
20831 fi
20832 rm -f conftest.err conftest.$ac_objext \
20833       conftest$ac_exeext conftest.$ac_ext
20834 fi
20835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20837 if test `eval echo '${'$as_ac_var'}'` = yes; then
20838   cat >>confdefs.h <<_ACEOF
20839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20840 _ACEOF
20841
20842 fi
20843 done
20844
20845     fi
20846   fi
20847
20848
20849
20850   echo "$as_me:$LINENO: checking for frexpl declaration" >&5
20851 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
20852   if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
20853     if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
20854   echo $ECHO_N "(cached) $ECHO_C" >&6
20855 else
20856
20857
20858
20859       ac_ext=cc
20860 ac_cpp='$CXXCPP $CPPFLAGS'
20861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20864
20865       cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h.  */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h.  */
20871 #include <math.h>
20872 int
20873 main ()
20874 {
20875  frexpl(0, 0);
20876   ;
20877   return 0;
20878 }
20879 _ACEOF
20880 rm -f conftest.$ac_objext
20881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20882   (eval $ac_compile) 2>conftest.er1
20883   ac_status=$?
20884   grep -v '^ *+' conftest.er1 >conftest.err
20885   rm -f conftest.er1
20886   cat conftest.err >&5
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); } &&
20889          { ac_try='test -z "$ac_cxx_werror_flag"
20890                          || test ! -s conftest.err'
20891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892   (eval $ac_try) 2>&5
20893   ac_status=$?
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); }; } &&
20896          { ac_try='test -s conftest.$ac_objext'
20897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20898   (eval $ac_try) 2>&5
20899   ac_status=$?
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); }; }; then
20902   glibcxx_cv_func_frexpl_use=yes
20903 else
20904   echo "$as_me: failed program was:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20906
20907 glibcxx_cv_func_frexpl_use=no
20908 fi
20909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20910       ac_ext=c
20911 ac_cpp='$CPP $CPPFLAGS'
20912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20915
20916
20917 fi
20918
20919   fi
20920   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
20921 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
20922
20923   if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
20924
20925 for ac_func in frexpl
20926 do
20927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20928 echo "$as_me:$LINENO: checking for $ac_func" >&5
20929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20930 if eval "test \"\${$as_ac_var+set}\" = set"; then
20931   echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933   if test x$gcc_no_link = xyes; then
20934   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20935 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20936    { (exit 1); exit 1; }; }
20937 fi
20938 cat >conftest.$ac_ext <<_ACEOF
20939 /* confdefs.h.  */
20940 _ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h.  */
20944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20946 #define $ac_func innocuous_$ac_func
20947
20948 /* System header to define __stub macros and hopefully few prototypes,
20949     which can conflict with char $ac_func (); below.
20950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20951     <limits.h> exists even on freestanding compilers.  */
20952
20953 #ifdef __STDC__
20954 # include <limits.h>
20955 #else
20956 # include <assert.h>
20957 #endif
20958
20959 #undef $ac_func
20960
20961 /* Override any gcc2 internal prototype to avoid an error.  */
20962 #ifdef __cplusplus
20963 extern "C"
20964 {
20965 #endif
20966 /* We use char because int might match the return type of a gcc2
20967    builtin and then its argument prototype would still apply.  */
20968 char $ac_func ();
20969 /* The GNU C library defines this for functions which it implements
20970     to always fail with ENOSYS.  Some functions are actually named
20971     something starting with __ and the normal name is an alias.  */
20972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20973 choke me
20974 #else
20975 char (*f) () = $ac_func;
20976 #endif
20977 #ifdef __cplusplus
20978 }
20979 #endif
20980
20981 int
20982 main ()
20983 {
20984 return f != $ac_func;
20985   ;
20986   return 0;
20987 }
20988 _ACEOF
20989 rm -f conftest.$ac_objext conftest$ac_exeext
20990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20991   (eval $ac_link) 2>conftest.er1
20992   ac_status=$?
20993   grep -v '^ *+' conftest.er1 >conftest.err
20994   rm -f conftest.er1
20995   cat conftest.err >&5
20996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997   (exit $ac_status); } &&
20998          { ac_try='test -z "$ac_c_werror_flag"
20999                          || test ! -s conftest.err'
21000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001   (eval $ac_try) 2>&5
21002   ac_status=$?
21003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004   (exit $ac_status); }; } &&
21005          { ac_try='test -s conftest$ac_exeext'
21006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007   (eval $ac_try) 2>&5
21008   ac_status=$?
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); }; }; then
21011   eval "$as_ac_var=yes"
21012 else
21013   echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21015
21016 eval "$as_ac_var=no"
21017 fi
21018 rm -f conftest.err conftest.$ac_objext \
21019       conftest$ac_exeext conftest.$ac_ext
21020 fi
21021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21023 if test `eval echo '${'$as_ac_var'}'` = yes; then
21024   cat >>confdefs.h <<_ACEOF
21025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21026 _ACEOF
21027
21028 fi
21029 done
21030
21031   else
21032
21033   echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
21034 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
21035   if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
21036     if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
21037   echo $ECHO_N "(cached) $ECHO_C" >&6
21038 else
21039
21040
21041
21042       ac_ext=cc
21043 ac_cpp='$CXXCPP $CPPFLAGS'
21044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21047
21048       cat >conftest.$ac_ext <<_ACEOF
21049 /* confdefs.h.  */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h.  */
21054 #include <math.h>
21055 int
21056 main ()
21057 {
21058  _frexpl(0, 0);
21059   ;
21060   return 0;
21061 }
21062 _ACEOF
21063 rm -f conftest.$ac_objext
21064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21065   (eval $ac_compile) 2>conftest.er1
21066   ac_status=$?
21067   grep -v '^ *+' conftest.er1 >conftest.err
21068   rm -f conftest.er1
21069   cat conftest.err >&5
21070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071   (exit $ac_status); } &&
21072          { ac_try='test -z "$ac_cxx_werror_flag"
21073                          || test ! -s conftest.err'
21074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075   (eval $ac_try) 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); }; } &&
21079          { ac_try='test -s conftest.$ac_objext'
21080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081   (eval $ac_try) 2>&5
21082   ac_status=$?
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); }; }; then
21085   glibcxx_cv_func__frexpl_use=yes
21086 else
21087   echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21089
21090 glibcxx_cv_func__frexpl_use=no
21091 fi
21092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21093       ac_ext=c
21094 ac_cpp='$CPP $CPPFLAGS'
21095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21098
21099
21100 fi
21101
21102   fi
21103   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
21104 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
21105
21106     if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
21107
21108 for ac_func in _frexpl
21109 do
21110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21111 echo "$as_me:$LINENO: checking for $ac_func" >&5
21112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21113 if eval "test \"\${$as_ac_var+set}\" = set"; then
21114   echo $ECHO_N "(cached) $ECHO_C" >&6
21115 else
21116   if test x$gcc_no_link = xyes; then
21117   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21118 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21119    { (exit 1); exit 1; }; }
21120 fi
21121 cat >conftest.$ac_ext <<_ACEOF
21122 /* confdefs.h.  */
21123 _ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h.  */
21127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21129 #define $ac_func innocuous_$ac_func
21130
21131 /* System header to define __stub macros and hopefully few prototypes,
21132     which can conflict with char $ac_func (); below.
21133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21134     <limits.h> exists even on freestanding compilers.  */
21135
21136 #ifdef __STDC__
21137 # include <limits.h>
21138 #else
21139 # include <assert.h>
21140 #endif
21141
21142 #undef $ac_func
21143
21144 /* Override any gcc2 internal prototype to avoid an error.  */
21145 #ifdef __cplusplus
21146 extern "C"
21147 {
21148 #endif
21149 /* We use char because int might match the return type of a gcc2
21150    builtin and then its argument prototype would still apply.  */
21151 char $ac_func ();
21152 /* The GNU C library defines this for functions which it implements
21153     to always fail with ENOSYS.  Some functions are actually named
21154     something starting with __ and the normal name is an alias.  */
21155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21156 choke me
21157 #else
21158 char (*f) () = $ac_func;
21159 #endif
21160 #ifdef __cplusplus
21161 }
21162 #endif
21163
21164 int
21165 main ()
21166 {
21167 return f != $ac_func;
21168   ;
21169   return 0;
21170 }
21171 _ACEOF
21172 rm -f conftest.$ac_objext conftest$ac_exeext
21173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21174   (eval $ac_link) 2>conftest.er1
21175   ac_status=$?
21176   grep -v '^ *+' conftest.er1 >conftest.err
21177   rm -f conftest.er1
21178   cat conftest.err >&5
21179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180   (exit $ac_status); } &&
21181          { ac_try='test -z "$ac_c_werror_flag"
21182                          || test ! -s conftest.err'
21183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21184   (eval $ac_try) 2>&5
21185   ac_status=$?
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); }; } &&
21188          { ac_try='test -s conftest$ac_exeext'
21189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21190   (eval $ac_try) 2>&5
21191   ac_status=$?
21192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); }; }; then
21194   eval "$as_ac_var=yes"
21195 else
21196   echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21198
21199 eval "$as_ac_var=no"
21200 fi
21201 rm -f conftest.err conftest.$ac_objext \
21202       conftest$ac_exeext conftest.$ac_ext
21203 fi
21204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21205 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21206 if test `eval echo '${'$as_ac_var'}'` = yes; then
21207   cat >>confdefs.h <<_ACEOF
21208 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21209 _ACEOF
21210
21211 fi
21212 done
21213
21214     fi
21215   fi
21216
21217
21218
21219   echo "$as_me:$LINENO: checking for hypotl declaration" >&5
21220 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
21221   if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
21222     if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
21223   echo $ECHO_N "(cached) $ECHO_C" >&6
21224 else
21225
21226
21227
21228       ac_ext=cc
21229 ac_cpp='$CXXCPP $CPPFLAGS'
21230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21233
21234       cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h.  */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h.  */
21240 #include <math.h>
21241 int
21242 main ()
21243 {
21244  hypotl(0, 0);
21245   ;
21246   return 0;
21247 }
21248 _ACEOF
21249 rm -f conftest.$ac_objext
21250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21251   (eval $ac_compile) 2>conftest.er1
21252   ac_status=$?
21253   grep -v '^ *+' conftest.er1 >conftest.err
21254   rm -f conftest.er1
21255   cat conftest.err >&5
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); } &&
21258          { ac_try='test -z "$ac_cxx_werror_flag"
21259                          || test ! -s conftest.err'
21260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261   (eval $ac_try) 2>&5
21262   ac_status=$?
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); }; } &&
21265          { ac_try='test -s conftest.$ac_objext'
21266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267   (eval $ac_try) 2>&5
21268   ac_status=$?
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); }; }; then
21271   glibcxx_cv_func_hypotl_use=yes
21272 else
21273   echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276 glibcxx_cv_func_hypotl_use=no
21277 fi
21278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21279       ac_ext=c
21280 ac_cpp='$CPP $CPPFLAGS'
21281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21284
21285
21286 fi
21287
21288   fi
21289   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
21290 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
21291
21292   if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
21293
21294 for ac_func in hypotl
21295 do
21296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21297 echo "$as_me:$LINENO: checking for $ac_func" >&5
21298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21299 if eval "test \"\${$as_ac_var+set}\" = set"; then
21300   echo $ECHO_N "(cached) $ECHO_C" >&6
21301 else
21302   if test x$gcc_no_link = xyes; then
21303   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21304 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21305    { (exit 1); exit 1; }; }
21306 fi
21307 cat >conftest.$ac_ext <<_ACEOF
21308 /* confdefs.h.  */
21309 _ACEOF
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h.  */
21313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21315 #define $ac_func innocuous_$ac_func
21316
21317 /* System header to define __stub macros and hopefully few prototypes,
21318     which can conflict with char $ac_func (); below.
21319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21320     <limits.h> exists even on freestanding compilers.  */
21321
21322 #ifdef __STDC__
21323 # include <limits.h>
21324 #else
21325 # include <assert.h>
21326 #endif
21327
21328 #undef $ac_func
21329
21330 /* Override any gcc2 internal prototype to avoid an error.  */
21331 #ifdef __cplusplus
21332 extern "C"
21333 {
21334 #endif
21335 /* We use char because int might match the return type of a gcc2
21336    builtin and then its argument prototype would still apply.  */
21337 char $ac_func ();
21338 /* The GNU C library defines this for functions which it implements
21339     to always fail with ENOSYS.  Some functions are actually named
21340     something starting with __ and the normal name is an alias.  */
21341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21342 choke me
21343 #else
21344 char (*f) () = $ac_func;
21345 #endif
21346 #ifdef __cplusplus
21347 }
21348 #endif
21349
21350 int
21351 main ()
21352 {
21353 return f != $ac_func;
21354   ;
21355   return 0;
21356 }
21357 _ACEOF
21358 rm -f conftest.$ac_objext conftest$ac_exeext
21359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21360   (eval $ac_link) 2>conftest.er1
21361   ac_status=$?
21362   grep -v '^ *+' conftest.er1 >conftest.err
21363   rm -f conftest.er1
21364   cat conftest.err >&5
21365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366   (exit $ac_status); } &&
21367          { ac_try='test -z "$ac_c_werror_flag"
21368                          || test ! -s conftest.err'
21369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21370   (eval $ac_try) 2>&5
21371   ac_status=$?
21372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373   (exit $ac_status); }; } &&
21374          { ac_try='test -s conftest$ac_exeext'
21375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376   (eval $ac_try) 2>&5
21377   ac_status=$?
21378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379   (exit $ac_status); }; }; then
21380   eval "$as_ac_var=yes"
21381 else
21382   echo "$as_me: failed program was:" >&5
21383 sed 's/^/| /' conftest.$ac_ext >&5
21384
21385 eval "$as_ac_var=no"
21386 fi
21387 rm -f conftest.err conftest.$ac_objext \
21388       conftest$ac_exeext conftest.$ac_ext
21389 fi
21390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21392 if test `eval echo '${'$as_ac_var'}'` = yes; then
21393   cat >>confdefs.h <<_ACEOF
21394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21395 _ACEOF
21396
21397 fi
21398 done
21399
21400   else
21401
21402   echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
21403 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
21404   if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
21405     if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
21406   echo $ECHO_N "(cached) $ECHO_C" >&6
21407 else
21408
21409
21410
21411       ac_ext=cc
21412 ac_cpp='$CXXCPP $CPPFLAGS'
21413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21416
21417       cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h.  */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h.  */
21423 #include <math.h>
21424 int
21425 main ()
21426 {
21427  _hypotl(0, 0);
21428   ;
21429   return 0;
21430 }
21431 _ACEOF
21432 rm -f conftest.$ac_objext
21433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21434   (eval $ac_compile) 2>conftest.er1
21435   ac_status=$?
21436   grep -v '^ *+' conftest.er1 >conftest.err
21437   rm -f conftest.er1
21438   cat conftest.err >&5
21439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440   (exit $ac_status); } &&
21441          { ac_try='test -z "$ac_cxx_werror_flag"
21442                          || test ! -s conftest.err'
21443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444   (eval $ac_try) 2>&5
21445   ac_status=$?
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); }; } &&
21448          { ac_try='test -s conftest.$ac_objext'
21449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450   (eval $ac_try) 2>&5
21451   ac_status=$?
21452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); }; }; then
21454   glibcxx_cv_func__hypotl_use=yes
21455 else
21456   echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21458
21459 glibcxx_cv_func__hypotl_use=no
21460 fi
21461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21462       ac_ext=c
21463 ac_cpp='$CPP $CPPFLAGS'
21464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21467
21468
21469 fi
21470
21471   fi
21472   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
21473 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
21474
21475     if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
21476
21477 for ac_func in _hypotl
21478 do
21479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21480 echo "$as_me:$LINENO: checking for $ac_func" >&5
21481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21482 if eval "test \"\${$as_ac_var+set}\" = set"; then
21483   echo $ECHO_N "(cached) $ECHO_C" >&6
21484 else
21485   if test x$gcc_no_link = xyes; then
21486   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21488    { (exit 1); exit 1; }; }
21489 fi
21490 cat >conftest.$ac_ext <<_ACEOF
21491 /* confdefs.h.  */
21492 _ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h.  */
21496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21498 #define $ac_func innocuous_$ac_func
21499
21500 /* System header to define __stub macros and hopefully few prototypes,
21501     which can conflict with char $ac_func (); below.
21502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21503     <limits.h> exists even on freestanding compilers.  */
21504
21505 #ifdef __STDC__
21506 # include <limits.h>
21507 #else
21508 # include <assert.h>
21509 #endif
21510
21511 #undef $ac_func
21512
21513 /* Override any gcc2 internal prototype to avoid an error.  */
21514 #ifdef __cplusplus
21515 extern "C"
21516 {
21517 #endif
21518 /* We use char because int might match the return type of a gcc2
21519    builtin and then its argument prototype would still apply.  */
21520 char $ac_func ();
21521 /* The GNU C library defines this for functions which it implements
21522     to always fail with ENOSYS.  Some functions are actually named
21523     something starting with __ and the normal name is an alias.  */
21524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21525 choke me
21526 #else
21527 char (*f) () = $ac_func;
21528 #endif
21529 #ifdef __cplusplus
21530 }
21531 #endif
21532
21533 int
21534 main ()
21535 {
21536 return f != $ac_func;
21537   ;
21538   return 0;
21539 }
21540 _ACEOF
21541 rm -f conftest.$ac_objext conftest$ac_exeext
21542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21543   (eval $ac_link) 2>conftest.er1
21544   ac_status=$?
21545   grep -v '^ *+' conftest.er1 >conftest.err
21546   rm -f conftest.er1
21547   cat conftest.err >&5
21548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549   (exit $ac_status); } &&
21550          { ac_try='test -z "$ac_c_werror_flag"
21551                          || test ! -s conftest.err'
21552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553   (eval $ac_try) 2>&5
21554   ac_status=$?
21555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556   (exit $ac_status); }; } &&
21557          { ac_try='test -s conftest$ac_exeext'
21558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559   (eval $ac_try) 2>&5
21560   ac_status=$?
21561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562   (exit $ac_status); }; }; then
21563   eval "$as_ac_var=yes"
21564 else
21565   echo "$as_me: failed program was:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21567
21568 eval "$as_ac_var=no"
21569 fi
21570 rm -f conftest.err conftest.$ac_objext \
21571       conftest$ac_exeext conftest.$ac_ext
21572 fi
21573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21575 if test `eval echo '${'$as_ac_var'}'` = yes; then
21576   cat >>confdefs.h <<_ACEOF
21577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21578 _ACEOF
21579
21580 fi
21581 done
21582
21583     fi
21584   fi
21585
21586
21587
21588   echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
21589 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
21590   if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
21591     if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
21592   echo $ECHO_N "(cached) $ECHO_C" >&6
21593 else
21594
21595
21596
21597       ac_ext=cc
21598 ac_cpp='$CXXCPP $CPPFLAGS'
21599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21602
21603       cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h.  */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h.  */
21609 #include <math.h>
21610 int
21611 main ()
21612 {
21613  ldexpl(0, 0);
21614   ;
21615   return 0;
21616 }
21617 _ACEOF
21618 rm -f conftest.$ac_objext
21619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21620   (eval $ac_compile) 2>conftest.er1
21621   ac_status=$?
21622   grep -v '^ *+' conftest.er1 >conftest.err
21623   rm -f conftest.er1
21624   cat conftest.err >&5
21625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626   (exit $ac_status); } &&
21627          { ac_try='test -z "$ac_cxx_werror_flag"
21628                          || test ! -s conftest.err'
21629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21630   (eval $ac_try) 2>&5
21631   ac_status=$?
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); }; } &&
21634          { ac_try='test -s conftest.$ac_objext'
21635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21636   (eval $ac_try) 2>&5
21637   ac_status=$?
21638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639   (exit $ac_status); }; }; then
21640   glibcxx_cv_func_ldexpl_use=yes
21641 else
21642   echo "$as_me: failed program was:" >&5
21643 sed 's/^/| /' conftest.$ac_ext >&5
21644
21645 glibcxx_cv_func_ldexpl_use=no
21646 fi
21647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21648       ac_ext=c
21649 ac_cpp='$CPP $CPPFLAGS'
21650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21653
21654
21655 fi
21656
21657   fi
21658   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
21659 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
21660
21661   if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
21662
21663 for ac_func in ldexpl
21664 do
21665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21666 echo "$as_me:$LINENO: checking for $ac_func" >&5
21667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21668 if eval "test \"\${$as_ac_var+set}\" = set"; then
21669   echo $ECHO_N "(cached) $ECHO_C" >&6
21670 else
21671   if test x$gcc_no_link = xyes; then
21672   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21673 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21674    { (exit 1); exit 1; }; }
21675 fi
21676 cat >conftest.$ac_ext <<_ACEOF
21677 /* confdefs.h.  */
21678 _ACEOF
21679 cat confdefs.h >>conftest.$ac_ext
21680 cat >>conftest.$ac_ext <<_ACEOF
21681 /* end confdefs.h.  */
21682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21684 #define $ac_func innocuous_$ac_func
21685
21686 /* System header to define __stub macros and hopefully few prototypes,
21687     which can conflict with char $ac_func (); below.
21688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21689     <limits.h> exists even on freestanding compilers.  */
21690
21691 #ifdef __STDC__
21692 # include <limits.h>
21693 #else
21694 # include <assert.h>
21695 #endif
21696
21697 #undef $ac_func
21698
21699 /* Override any gcc2 internal prototype to avoid an error.  */
21700 #ifdef __cplusplus
21701 extern "C"
21702 {
21703 #endif
21704 /* We use char because int might match the return type of a gcc2
21705    builtin and then its argument prototype would still apply.  */
21706 char $ac_func ();
21707 /* The GNU C library defines this for functions which it implements
21708     to always fail with ENOSYS.  Some functions are actually named
21709     something starting with __ and the normal name is an alias.  */
21710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21711 choke me
21712 #else
21713 char (*f) () = $ac_func;
21714 #endif
21715 #ifdef __cplusplus
21716 }
21717 #endif
21718
21719 int
21720 main ()
21721 {
21722 return f != $ac_func;
21723   ;
21724   return 0;
21725 }
21726 _ACEOF
21727 rm -f conftest.$ac_objext conftest$ac_exeext
21728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21729   (eval $ac_link) 2>conftest.er1
21730   ac_status=$?
21731   grep -v '^ *+' conftest.er1 >conftest.err
21732   rm -f conftest.er1
21733   cat conftest.err >&5
21734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735   (exit $ac_status); } &&
21736          { ac_try='test -z "$ac_c_werror_flag"
21737                          || test ! -s conftest.err'
21738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739   (eval $ac_try) 2>&5
21740   ac_status=$?
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); }; } &&
21743          { ac_try='test -s conftest$ac_exeext'
21744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745   (eval $ac_try) 2>&5
21746   ac_status=$?
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); }; }; then
21749   eval "$as_ac_var=yes"
21750 else
21751   echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21753
21754 eval "$as_ac_var=no"
21755 fi
21756 rm -f conftest.err conftest.$ac_objext \
21757       conftest$ac_exeext conftest.$ac_ext
21758 fi
21759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21761 if test `eval echo '${'$as_ac_var'}'` = yes; then
21762   cat >>confdefs.h <<_ACEOF
21763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21764 _ACEOF
21765
21766 fi
21767 done
21768
21769   else
21770
21771   echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
21772 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
21773   if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
21774     if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
21775   echo $ECHO_N "(cached) $ECHO_C" >&6
21776 else
21777
21778
21779
21780       ac_ext=cc
21781 ac_cpp='$CXXCPP $CPPFLAGS'
21782 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21783 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21784 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21785
21786       cat >conftest.$ac_ext <<_ACEOF
21787 /* confdefs.h.  */
21788 _ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h.  */
21792 #include <math.h>
21793 int
21794 main ()
21795 {
21796  _ldexpl(0, 0);
21797   ;
21798   return 0;
21799 }
21800 _ACEOF
21801 rm -f conftest.$ac_objext
21802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21803   (eval $ac_compile) 2>conftest.er1
21804   ac_status=$?
21805   grep -v '^ *+' conftest.er1 >conftest.err
21806   rm -f conftest.er1
21807   cat conftest.err >&5
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); } &&
21810          { ac_try='test -z "$ac_cxx_werror_flag"
21811                          || test ! -s conftest.err'
21812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21813   (eval $ac_try) 2>&5
21814   ac_status=$?
21815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816   (exit $ac_status); }; } &&
21817          { ac_try='test -s conftest.$ac_objext'
21818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21819   (eval $ac_try) 2>&5
21820   ac_status=$?
21821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822   (exit $ac_status); }; }; then
21823   glibcxx_cv_func__ldexpl_use=yes
21824 else
21825   echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21827
21828 glibcxx_cv_func__ldexpl_use=no
21829 fi
21830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21831       ac_ext=c
21832 ac_cpp='$CPP $CPPFLAGS'
21833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21836
21837
21838 fi
21839
21840   fi
21841   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
21842 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
21843
21844     if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
21845
21846 for ac_func in _ldexpl
21847 do
21848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21849 echo "$as_me:$LINENO: checking for $ac_func" >&5
21850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21851 if eval "test \"\${$as_ac_var+set}\" = set"; then
21852   echo $ECHO_N "(cached) $ECHO_C" >&6
21853 else
21854   if test x$gcc_no_link = xyes; then
21855   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21857    { (exit 1); exit 1; }; }
21858 fi
21859 cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h.  */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h.  */
21865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21867 #define $ac_func innocuous_$ac_func
21868
21869 /* System header to define __stub macros and hopefully few prototypes,
21870     which can conflict with char $ac_func (); below.
21871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21872     <limits.h> exists even on freestanding compilers.  */
21873
21874 #ifdef __STDC__
21875 # include <limits.h>
21876 #else
21877 # include <assert.h>
21878 #endif
21879
21880 #undef $ac_func
21881
21882 /* Override any gcc2 internal prototype to avoid an error.  */
21883 #ifdef __cplusplus
21884 extern "C"
21885 {
21886 #endif
21887 /* We use char because int might match the return type of a gcc2
21888    builtin and then its argument prototype would still apply.  */
21889 char $ac_func ();
21890 /* The GNU C library defines this for functions which it implements
21891     to always fail with ENOSYS.  Some functions are actually named
21892     something starting with __ and the normal name is an alias.  */
21893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21894 choke me
21895 #else
21896 char (*f) () = $ac_func;
21897 #endif
21898 #ifdef __cplusplus
21899 }
21900 #endif
21901
21902 int
21903 main ()
21904 {
21905 return f != $ac_func;
21906   ;
21907   return 0;
21908 }
21909 _ACEOF
21910 rm -f conftest.$ac_objext conftest$ac_exeext
21911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21912   (eval $ac_link) 2>conftest.er1
21913   ac_status=$?
21914   grep -v '^ *+' conftest.er1 >conftest.err
21915   rm -f conftest.er1
21916   cat conftest.err >&5
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); } &&
21919          { ac_try='test -z "$ac_c_werror_flag"
21920                          || test ! -s conftest.err'
21921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21922   (eval $ac_try) 2>&5
21923   ac_status=$?
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); }; } &&
21926          { ac_try='test -s conftest$ac_exeext'
21927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928   (eval $ac_try) 2>&5
21929   ac_status=$?
21930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931   (exit $ac_status); }; }; then
21932   eval "$as_ac_var=yes"
21933 else
21934   echo "$as_me: failed program was:" >&5
21935 sed 's/^/| /' conftest.$ac_ext >&5
21936
21937 eval "$as_ac_var=no"
21938 fi
21939 rm -f conftest.err conftest.$ac_objext \
21940       conftest$ac_exeext conftest.$ac_ext
21941 fi
21942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21944 if test `eval echo '${'$as_ac_var'}'` = yes; then
21945   cat >>confdefs.h <<_ACEOF
21946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21947 _ACEOF
21948
21949 fi
21950 done
21951
21952     fi
21953   fi
21954
21955
21956
21957   echo "$as_me:$LINENO: checking for logl declaration" >&5
21958 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
21959   if test x${glibcxx_cv_func_logl_use+set} != xset; then
21960     if test "${glibcxx_cv_func_logl_use+set}" = set; then
21961   echo $ECHO_N "(cached) $ECHO_C" >&6
21962 else
21963
21964
21965
21966       ac_ext=cc
21967 ac_cpp='$CXXCPP $CPPFLAGS'
21968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21971
21972       cat >conftest.$ac_ext <<_ACEOF
21973 /* confdefs.h.  */
21974 _ACEOF
21975 cat confdefs.h >>conftest.$ac_ext
21976 cat >>conftest.$ac_ext <<_ACEOF
21977 /* end confdefs.h.  */
21978 #include <math.h>
21979                       #ifdef HAVE_IEEEFP_H
21980                       #include <ieeefp.h>
21981                       #endif
21982
21983 int
21984 main ()
21985 {
21986  logl(0);
21987   ;
21988   return 0;
21989 }
21990 _ACEOF
21991 rm -f conftest.$ac_objext
21992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21993   (eval $ac_compile) 2>conftest.er1
21994   ac_status=$?
21995   grep -v '^ *+' conftest.er1 >conftest.err
21996   rm -f conftest.er1
21997   cat conftest.err >&5
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); } &&
22000          { ac_try='test -z "$ac_cxx_werror_flag"
22001                          || test ! -s conftest.err'
22002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22003   (eval $ac_try) 2>&5
22004   ac_status=$?
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); }; } &&
22007          { ac_try='test -s conftest.$ac_objext'
22008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22009   (eval $ac_try) 2>&5
22010   ac_status=$?
22011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012   (exit $ac_status); }; }; then
22013   glibcxx_cv_func_logl_use=yes
22014 else
22015   echo "$as_me: failed program was:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22017
22018 glibcxx_cv_func_logl_use=no
22019 fi
22020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22021       ac_ext=c
22022 ac_cpp='$CPP $CPPFLAGS'
22023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22026
22027
22028 fi
22029
22030   fi
22031   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
22032 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
22033
22034   if test x$glibcxx_cv_func_logl_use = x"yes"; then
22035
22036 for ac_func in logl
22037 do
22038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22039 echo "$as_me:$LINENO: checking for $ac_func" >&5
22040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22041 if eval "test \"\${$as_ac_var+set}\" = set"; then
22042   echo $ECHO_N "(cached) $ECHO_C" >&6
22043 else
22044   if test x$gcc_no_link = xyes; then
22045   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22046 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22047    { (exit 1); exit 1; }; }
22048 fi
22049 cat >conftest.$ac_ext <<_ACEOF
22050 /* confdefs.h.  */
22051 _ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h.  */
22055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22057 #define $ac_func innocuous_$ac_func
22058
22059 /* System header to define __stub macros and hopefully few prototypes,
22060     which can conflict with char $ac_func (); below.
22061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22062     <limits.h> exists even on freestanding compilers.  */
22063
22064 #ifdef __STDC__
22065 # include <limits.h>
22066 #else
22067 # include <assert.h>
22068 #endif
22069
22070 #undef $ac_func
22071
22072 /* Override any gcc2 internal prototype to avoid an error.  */
22073 #ifdef __cplusplus
22074 extern "C"
22075 {
22076 #endif
22077 /* We use char because int might match the return type of a gcc2
22078    builtin and then its argument prototype would still apply.  */
22079 char $ac_func ();
22080 /* The GNU C library defines this for functions which it implements
22081     to always fail with ENOSYS.  Some functions are actually named
22082     something starting with __ and the normal name is an alias.  */
22083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22084 choke me
22085 #else
22086 char (*f) () = $ac_func;
22087 #endif
22088 #ifdef __cplusplus
22089 }
22090 #endif
22091
22092 int
22093 main ()
22094 {
22095 return f != $ac_func;
22096   ;
22097   return 0;
22098 }
22099 _ACEOF
22100 rm -f conftest.$ac_objext conftest$ac_exeext
22101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22102   (eval $ac_link) 2>conftest.er1
22103   ac_status=$?
22104   grep -v '^ *+' conftest.er1 >conftest.err
22105   rm -f conftest.er1
22106   cat conftest.err >&5
22107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108   (exit $ac_status); } &&
22109          { ac_try='test -z "$ac_c_werror_flag"
22110                          || test ! -s conftest.err'
22111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112   (eval $ac_try) 2>&5
22113   ac_status=$?
22114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115   (exit $ac_status); }; } &&
22116          { ac_try='test -s conftest$ac_exeext'
22117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118   (eval $ac_try) 2>&5
22119   ac_status=$?
22120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121   (exit $ac_status); }; }; then
22122   eval "$as_ac_var=yes"
22123 else
22124   echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22126
22127 eval "$as_ac_var=no"
22128 fi
22129 rm -f conftest.err conftest.$ac_objext \
22130       conftest$ac_exeext conftest.$ac_ext
22131 fi
22132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22133 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22134 if test `eval echo '${'$as_ac_var'}'` = yes; then
22135   cat >>confdefs.h <<_ACEOF
22136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22137 _ACEOF
22138
22139 fi
22140 done
22141
22142   else
22143
22144   echo "$as_me:$LINENO: checking for _logl declaration" >&5
22145 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
22146   if test x${glibcxx_cv_func__logl_use+set} != xset; then
22147     if test "${glibcxx_cv_func__logl_use+set}" = set; then
22148   echo $ECHO_N "(cached) $ECHO_C" >&6
22149 else
22150
22151
22152
22153       ac_ext=cc
22154 ac_cpp='$CXXCPP $CPPFLAGS'
22155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22158
22159       cat >conftest.$ac_ext <<_ACEOF
22160 /* confdefs.h.  */
22161 _ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h.  */
22165 #include <math.h>
22166                       #ifdef HAVE_IEEEFP_H
22167                       #include <ieeefp.h>
22168                       #endif
22169
22170 int
22171 main ()
22172 {
22173  _logl(0);
22174   ;
22175   return 0;
22176 }
22177 _ACEOF
22178 rm -f conftest.$ac_objext
22179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22180   (eval $ac_compile) 2>conftest.er1
22181   ac_status=$?
22182   grep -v '^ *+' conftest.er1 >conftest.err
22183   rm -f conftest.er1
22184   cat conftest.err >&5
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); } &&
22187          { ac_try='test -z "$ac_cxx_werror_flag"
22188                          || test ! -s conftest.err'
22189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190   (eval $ac_try) 2>&5
22191   ac_status=$?
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); }; } &&
22194          { ac_try='test -s conftest.$ac_objext'
22195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196   (eval $ac_try) 2>&5
22197   ac_status=$?
22198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199   (exit $ac_status); }; }; then
22200   glibcxx_cv_func__logl_use=yes
22201 else
22202   echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22204
22205 glibcxx_cv_func__logl_use=no
22206 fi
22207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22208       ac_ext=c
22209 ac_cpp='$CPP $CPPFLAGS'
22210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22213
22214
22215 fi
22216
22217   fi
22218   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
22219 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
22220
22221     if test x$glibcxx_cv_func__logl_use = x"yes"; then
22222
22223 for ac_func in _logl
22224 do
22225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22226 echo "$as_me:$LINENO: checking for $ac_func" >&5
22227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22228 if eval "test \"\${$as_ac_var+set}\" = set"; then
22229   echo $ECHO_N "(cached) $ECHO_C" >&6
22230 else
22231   if test x$gcc_no_link = xyes; then
22232   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22233 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22234    { (exit 1); exit 1; }; }
22235 fi
22236 cat >conftest.$ac_ext <<_ACEOF
22237 /* confdefs.h.  */
22238 _ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h.  */
22242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22244 #define $ac_func innocuous_$ac_func
22245
22246 /* System header to define __stub macros and hopefully few prototypes,
22247     which can conflict with char $ac_func (); below.
22248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22249     <limits.h> exists even on freestanding compilers.  */
22250
22251 #ifdef __STDC__
22252 # include <limits.h>
22253 #else
22254 # include <assert.h>
22255 #endif
22256
22257 #undef $ac_func
22258
22259 /* Override any gcc2 internal prototype to avoid an error.  */
22260 #ifdef __cplusplus
22261 extern "C"
22262 {
22263 #endif
22264 /* We use char because int might match the return type of a gcc2
22265    builtin and then its argument prototype would still apply.  */
22266 char $ac_func ();
22267 /* The GNU C library defines this for functions which it implements
22268     to always fail with ENOSYS.  Some functions are actually named
22269     something starting with __ and the normal name is an alias.  */
22270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22271 choke me
22272 #else
22273 char (*f) () = $ac_func;
22274 #endif
22275 #ifdef __cplusplus
22276 }
22277 #endif
22278
22279 int
22280 main ()
22281 {
22282 return f != $ac_func;
22283   ;
22284   return 0;
22285 }
22286 _ACEOF
22287 rm -f conftest.$ac_objext conftest$ac_exeext
22288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22289   (eval $ac_link) 2>conftest.er1
22290   ac_status=$?
22291   grep -v '^ *+' conftest.er1 >conftest.err
22292   rm -f conftest.er1
22293   cat conftest.err >&5
22294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295   (exit $ac_status); } &&
22296          { ac_try='test -z "$ac_c_werror_flag"
22297                          || test ! -s conftest.err'
22298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299   (eval $ac_try) 2>&5
22300   ac_status=$?
22301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302   (exit $ac_status); }; } &&
22303          { ac_try='test -s conftest$ac_exeext'
22304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305   (eval $ac_try) 2>&5
22306   ac_status=$?
22307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308   (exit $ac_status); }; }; then
22309   eval "$as_ac_var=yes"
22310 else
22311   echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22313
22314 eval "$as_ac_var=no"
22315 fi
22316 rm -f conftest.err conftest.$ac_objext \
22317       conftest$ac_exeext conftest.$ac_ext
22318 fi
22319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22321 if test `eval echo '${'$as_ac_var'}'` = yes; then
22322   cat >>confdefs.h <<_ACEOF
22323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22324 _ACEOF
22325
22326 fi
22327 done
22328
22329     fi
22330   fi
22331
22332
22333
22334   echo "$as_me:$LINENO: checking for log10l declaration" >&5
22335 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
22336   if test x${glibcxx_cv_func_log10l_use+set} != xset; then
22337     if test "${glibcxx_cv_func_log10l_use+set}" = set; then
22338   echo $ECHO_N "(cached) $ECHO_C" >&6
22339 else
22340
22341
22342
22343       ac_ext=cc
22344 ac_cpp='$CXXCPP $CPPFLAGS'
22345 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22346 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22347 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22348
22349       cat >conftest.$ac_ext <<_ACEOF
22350 /* confdefs.h.  */
22351 _ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h.  */
22355 #include <math.h>
22356                       #ifdef HAVE_IEEEFP_H
22357                       #include <ieeefp.h>
22358                       #endif
22359
22360 int
22361 main ()
22362 {
22363  log10l(0);
22364   ;
22365   return 0;
22366 }
22367 _ACEOF
22368 rm -f conftest.$ac_objext
22369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22370   (eval $ac_compile) 2>conftest.er1
22371   ac_status=$?
22372   grep -v '^ *+' conftest.er1 >conftest.err
22373   rm -f conftest.er1
22374   cat conftest.err >&5
22375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376   (exit $ac_status); } &&
22377          { ac_try='test -z "$ac_cxx_werror_flag"
22378                          || test ! -s conftest.err'
22379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380   (eval $ac_try) 2>&5
22381   ac_status=$?
22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383   (exit $ac_status); }; } &&
22384          { ac_try='test -s conftest.$ac_objext'
22385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386   (eval $ac_try) 2>&5
22387   ac_status=$?
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; }; then
22390   glibcxx_cv_func_log10l_use=yes
22391 else
22392   echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22394
22395 glibcxx_cv_func_log10l_use=no
22396 fi
22397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22398       ac_ext=c
22399 ac_cpp='$CPP $CPPFLAGS'
22400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22403
22404
22405 fi
22406
22407   fi
22408   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
22409 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
22410
22411   if test x$glibcxx_cv_func_log10l_use = x"yes"; then
22412
22413 for ac_func in log10l
22414 do
22415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22416 echo "$as_me:$LINENO: checking for $ac_func" >&5
22417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22418 if eval "test \"\${$as_ac_var+set}\" = set"; then
22419   echo $ECHO_N "(cached) $ECHO_C" >&6
22420 else
22421   if test x$gcc_no_link = xyes; then
22422   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22423 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22424    { (exit 1); exit 1; }; }
22425 fi
22426 cat >conftest.$ac_ext <<_ACEOF
22427 /* confdefs.h.  */
22428 _ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h.  */
22432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22434 #define $ac_func innocuous_$ac_func
22435
22436 /* System header to define __stub macros and hopefully few prototypes,
22437     which can conflict with char $ac_func (); below.
22438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22439     <limits.h> exists even on freestanding compilers.  */
22440
22441 #ifdef __STDC__
22442 # include <limits.h>
22443 #else
22444 # include <assert.h>
22445 #endif
22446
22447 #undef $ac_func
22448
22449 /* Override any gcc2 internal prototype to avoid an error.  */
22450 #ifdef __cplusplus
22451 extern "C"
22452 {
22453 #endif
22454 /* We use char because int might match the return type of a gcc2
22455    builtin and then its argument prototype would still apply.  */
22456 char $ac_func ();
22457 /* The GNU C library defines this for functions which it implements
22458     to always fail with ENOSYS.  Some functions are actually named
22459     something starting with __ and the normal name is an alias.  */
22460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22461 choke me
22462 #else
22463 char (*f) () = $ac_func;
22464 #endif
22465 #ifdef __cplusplus
22466 }
22467 #endif
22468
22469 int
22470 main ()
22471 {
22472 return f != $ac_func;
22473   ;
22474   return 0;
22475 }
22476 _ACEOF
22477 rm -f conftest.$ac_objext conftest$ac_exeext
22478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22479   (eval $ac_link) 2>conftest.er1
22480   ac_status=$?
22481   grep -v '^ *+' conftest.er1 >conftest.err
22482   rm -f conftest.er1
22483   cat conftest.err >&5
22484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485   (exit $ac_status); } &&
22486          { ac_try='test -z "$ac_c_werror_flag"
22487                          || test ! -s conftest.err'
22488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22489   (eval $ac_try) 2>&5
22490   ac_status=$?
22491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22492   (exit $ac_status); }; } &&
22493          { ac_try='test -s conftest$ac_exeext'
22494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495   (eval $ac_try) 2>&5
22496   ac_status=$?
22497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498   (exit $ac_status); }; }; then
22499   eval "$as_ac_var=yes"
22500 else
22501   echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22503
22504 eval "$as_ac_var=no"
22505 fi
22506 rm -f conftest.err conftest.$ac_objext \
22507       conftest$ac_exeext conftest.$ac_ext
22508 fi
22509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22511 if test `eval echo '${'$as_ac_var'}'` = yes; then
22512   cat >>confdefs.h <<_ACEOF
22513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22514 _ACEOF
22515
22516 fi
22517 done
22518
22519   else
22520
22521   echo "$as_me:$LINENO: checking for _log10l declaration" >&5
22522 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
22523   if test x${glibcxx_cv_func__log10l_use+set} != xset; then
22524     if test "${glibcxx_cv_func__log10l_use+set}" = set; then
22525   echo $ECHO_N "(cached) $ECHO_C" >&6
22526 else
22527
22528
22529
22530       ac_ext=cc
22531 ac_cpp='$CXXCPP $CPPFLAGS'
22532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22535
22536       cat >conftest.$ac_ext <<_ACEOF
22537 /* confdefs.h.  */
22538 _ACEOF
22539 cat confdefs.h >>conftest.$ac_ext
22540 cat >>conftest.$ac_ext <<_ACEOF
22541 /* end confdefs.h.  */
22542 #include <math.h>
22543                       #ifdef HAVE_IEEEFP_H
22544                       #include <ieeefp.h>
22545                       #endif
22546
22547 int
22548 main ()
22549 {
22550  _log10l(0);
22551   ;
22552   return 0;
22553 }
22554 _ACEOF
22555 rm -f conftest.$ac_objext
22556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22557   (eval $ac_compile) 2>conftest.er1
22558   ac_status=$?
22559   grep -v '^ *+' conftest.er1 >conftest.err
22560   rm -f conftest.er1
22561   cat conftest.err >&5
22562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); } &&
22564          { ac_try='test -z "$ac_cxx_werror_flag"
22565                          || test ! -s conftest.err'
22566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22567   (eval $ac_try) 2>&5
22568   ac_status=$?
22569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570   (exit $ac_status); }; } &&
22571          { ac_try='test -s conftest.$ac_objext'
22572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22573   (eval $ac_try) 2>&5
22574   ac_status=$?
22575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576   (exit $ac_status); }; }; then
22577   glibcxx_cv_func__log10l_use=yes
22578 else
22579   echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22581
22582 glibcxx_cv_func__log10l_use=no
22583 fi
22584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22585       ac_ext=c
22586 ac_cpp='$CPP $CPPFLAGS'
22587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22590
22591
22592 fi
22593
22594   fi
22595   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
22596 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
22597
22598     if test x$glibcxx_cv_func__log10l_use = x"yes"; then
22599
22600 for ac_func in _log10l
22601 do
22602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22603 echo "$as_me:$LINENO: checking for $ac_func" >&5
22604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22605 if eval "test \"\${$as_ac_var+set}\" = set"; then
22606   echo $ECHO_N "(cached) $ECHO_C" >&6
22607 else
22608   if test x$gcc_no_link = xyes; then
22609   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22610 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22611    { (exit 1); exit 1; }; }
22612 fi
22613 cat >conftest.$ac_ext <<_ACEOF
22614 /* confdefs.h.  */
22615 _ACEOF
22616 cat confdefs.h >>conftest.$ac_ext
22617 cat >>conftest.$ac_ext <<_ACEOF
22618 /* end confdefs.h.  */
22619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22620    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22621 #define $ac_func innocuous_$ac_func
22622
22623 /* System header to define __stub macros and hopefully few prototypes,
22624     which can conflict with char $ac_func (); below.
22625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22626     <limits.h> exists even on freestanding compilers.  */
22627
22628 #ifdef __STDC__
22629 # include <limits.h>
22630 #else
22631 # include <assert.h>
22632 #endif
22633
22634 #undef $ac_func
22635
22636 /* Override any gcc2 internal prototype to avoid an error.  */
22637 #ifdef __cplusplus
22638 extern "C"
22639 {
22640 #endif
22641 /* We use char because int might match the return type of a gcc2
22642    builtin and then its argument prototype would still apply.  */
22643 char $ac_func ();
22644 /* The GNU C library defines this for functions which it implements
22645     to always fail with ENOSYS.  Some functions are actually named
22646     something starting with __ and the normal name is an alias.  */
22647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22648 choke me
22649 #else
22650 char (*f) () = $ac_func;
22651 #endif
22652 #ifdef __cplusplus
22653 }
22654 #endif
22655
22656 int
22657 main ()
22658 {
22659 return f != $ac_func;
22660   ;
22661   return 0;
22662 }
22663 _ACEOF
22664 rm -f conftest.$ac_objext conftest$ac_exeext
22665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22666   (eval $ac_link) 2>conftest.er1
22667   ac_status=$?
22668   grep -v '^ *+' conftest.er1 >conftest.err
22669   rm -f conftest.er1
22670   cat conftest.err >&5
22671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672   (exit $ac_status); } &&
22673          { ac_try='test -z "$ac_c_werror_flag"
22674                          || test ! -s conftest.err'
22675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22676   (eval $ac_try) 2>&5
22677   ac_status=$?
22678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679   (exit $ac_status); }; } &&
22680          { ac_try='test -s conftest$ac_exeext'
22681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682   (eval $ac_try) 2>&5
22683   ac_status=$?
22684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685   (exit $ac_status); }; }; then
22686   eval "$as_ac_var=yes"
22687 else
22688   echo "$as_me: failed program was:" >&5
22689 sed 's/^/| /' conftest.$ac_ext >&5
22690
22691 eval "$as_ac_var=no"
22692 fi
22693 rm -f conftest.err conftest.$ac_objext \
22694       conftest$ac_exeext conftest.$ac_ext
22695 fi
22696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22698 if test `eval echo '${'$as_ac_var'}'` = yes; then
22699   cat >>confdefs.h <<_ACEOF
22700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22701 _ACEOF
22702
22703 fi
22704 done
22705
22706     fi
22707   fi
22708
22709
22710
22711   echo "$as_me:$LINENO: checking for modfl declaration" >&5
22712 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
22713   if test x${glibcxx_cv_func_modfl_use+set} != xset; then
22714     if test "${glibcxx_cv_func_modfl_use+set}" = set; then
22715   echo $ECHO_N "(cached) $ECHO_C" >&6
22716 else
22717
22718
22719
22720       ac_ext=cc
22721 ac_cpp='$CXXCPP $CPPFLAGS'
22722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22725
22726       cat >conftest.$ac_ext <<_ACEOF
22727 /* confdefs.h.  */
22728 _ACEOF
22729 cat confdefs.h >>conftest.$ac_ext
22730 cat >>conftest.$ac_ext <<_ACEOF
22731 /* end confdefs.h.  */
22732 #include <math.h>
22733 int
22734 main ()
22735 {
22736  modfl(0, 0);
22737   ;
22738   return 0;
22739 }
22740 _ACEOF
22741 rm -f conftest.$ac_objext
22742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22743   (eval $ac_compile) 2>conftest.er1
22744   ac_status=$?
22745   grep -v '^ *+' conftest.er1 >conftest.err
22746   rm -f conftest.er1
22747   cat conftest.err >&5
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); } &&
22750          { ac_try='test -z "$ac_cxx_werror_flag"
22751                          || test ! -s conftest.err'
22752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22753   (eval $ac_try) 2>&5
22754   ac_status=$?
22755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756   (exit $ac_status); }; } &&
22757          { ac_try='test -s conftest.$ac_objext'
22758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22759   (eval $ac_try) 2>&5
22760   ac_status=$?
22761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762   (exit $ac_status); }; }; then
22763   glibcxx_cv_func_modfl_use=yes
22764 else
22765   echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22767
22768 glibcxx_cv_func_modfl_use=no
22769 fi
22770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22771       ac_ext=c
22772 ac_cpp='$CPP $CPPFLAGS'
22773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22776
22777
22778 fi
22779
22780   fi
22781   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
22782 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
22783
22784   if test x$glibcxx_cv_func_modfl_use = x"yes"; then
22785
22786 for ac_func in modfl
22787 do
22788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22789 echo "$as_me:$LINENO: checking for $ac_func" >&5
22790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22791 if eval "test \"\${$as_ac_var+set}\" = set"; then
22792   echo $ECHO_N "(cached) $ECHO_C" >&6
22793 else
22794   if test x$gcc_no_link = xyes; then
22795   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22797    { (exit 1); exit 1; }; }
22798 fi
22799 cat >conftest.$ac_ext <<_ACEOF
22800 /* confdefs.h.  */
22801 _ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h.  */
22805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22807 #define $ac_func innocuous_$ac_func
22808
22809 /* System header to define __stub macros and hopefully few prototypes,
22810     which can conflict with char $ac_func (); below.
22811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22812     <limits.h> exists even on freestanding compilers.  */
22813
22814 #ifdef __STDC__
22815 # include <limits.h>
22816 #else
22817 # include <assert.h>
22818 #endif
22819
22820 #undef $ac_func
22821
22822 /* Override any gcc2 internal prototype to avoid an error.  */
22823 #ifdef __cplusplus
22824 extern "C"
22825 {
22826 #endif
22827 /* We use char because int might match the return type of a gcc2
22828    builtin and then its argument prototype would still apply.  */
22829 char $ac_func ();
22830 /* The GNU C library defines this for functions which it implements
22831     to always fail with ENOSYS.  Some functions are actually named
22832     something starting with __ and the normal name is an alias.  */
22833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22834 choke me
22835 #else
22836 char (*f) () = $ac_func;
22837 #endif
22838 #ifdef __cplusplus
22839 }
22840 #endif
22841
22842 int
22843 main ()
22844 {
22845 return f != $ac_func;
22846   ;
22847   return 0;
22848 }
22849 _ACEOF
22850 rm -f conftest.$ac_objext conftest$ac_exeext
22851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22852   (eval $ac_link) 2>conftest.er1
22853   ac_status=$?
22854   grep -v '^ *+' conftest.er1 >conftest.err
22855   rm -f conftest.er1
22856   cat conftest.err >&5
22857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858   (exit $ac_status); } &&
22859          { ac_try='test -z "$ac_c_werror_flag"
22860                          || test ! -s conftest.err'
22861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22862   (eval $ac_try) 2>&5
22863   ac_status=$?
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); }; } &&
22866          { ac_try='test -s conftest$ac_exeext'
22867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22868   (eval $ac_try) 2>&5
22869   ac_status=$?
22870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871   (exit $ac_status); }; }; then
22872   eval "$as_ac_var=yes"
22873 else
22874   echo "$as_me: failed program was:" >&5
22875 sed 's/^/| /' conftest.$ac_ext >&5
22876
22877 eval "$as_ac_var=no"
22878 fi
22879 rm -f conftest.err conftest.$ac_objext \
22880       conftest$ac_exeext conftest.$ac_ext
22881 fi
22882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22884 if test `eval echo '${'$as_ac_var'}'` = yes; then
22885   cat >>confdefs.h <<_ACEOF
22886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22887 _ACEOF
22888
22889 fi
22890 done
22891
22892   else
22893
22894   echo "$as_me:$LINENO: checking for _modfl declaration" >&5
22895 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
22896   if test x${glibcxx_cv_func__modfl_use+set} != xset; then
22897     if test "${glibcxx_cv_func__modfl_use+set}" = set; then
22898   echo $ECHO_N "(cached) $ECHO_C" >&6
22899 else
22900
22901
22902
22903       ac_ext=cc
22904 ac_cpp='$CXXCPP $CPPFLAGS'
22905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22908
22909       cat >conftest.$ac_ext <<_ACEOF
22910 /* confdefs.h.  */
22911 _ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h.  */
22915 #include <math.h>
22916 int
22917 main ()
22918 {
22919  _modfl(0, 0);
22920   ;
22921   return 0;
22922 }
22923 _ACEOF
22924 rm -f conftest.$ac_objext
22925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22926   (eval $ac_compile) 2>conftest.er1
22927   ac_status=$?
22928   grep -v '^ *+' conftest.er1 >conftest.err
22929   rm -f conftest.er1
22930   cat conftest.err >&5
22931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932   (exit $ac_status); } &&
22933          { ac_try='test -z "$ac_cxx_werror_flag"
22934                          || test ! -s conftest.err'
22935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22936   (eval $ac_try) 2>&5
22937   ac_status=$?
22938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939   (exit $ac_status); }; } &&
22940          { ac_try='test -s conftest.$ac_objext'
22941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22942   (eval $ac_try) 2>&5
22943   ac_status=$?
22944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945   (exit $ac_status); }; }; then
22946   glibcxx_cv_func__modfl_use=yes
22947 else
22948   echo "$as_me: failed program was:" >&5
22949 sed 's/^/| /' conftest.$ac_ext >&5
22950
22951 glibcxx_cv_func__modfl_use=no
22952 fi
22953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22954       ac_ext=c
22955 ac_cpp='$CPP $CPPFLAGS'
22956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22959
22960
22961 fi
22962
22963   fi
22964   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
22965 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
22966
22967     if test x$glibcxx_cv_func__modfl_use = x"yes"; then
22968
22969 for ac_func in _modfl
22970 do
22971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22972 echo "$as_me:$LINENO: checking for $ac_func" >&5
22973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22974 if eval "test \"\${$as_ac_var+set}\" = set"; then
22975   echo $ECHO_N "(cached) $ECHO_C" >&6
22976 else
22977   if test x$gcc_no_link = xyes; then
22978   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22980    { (exit 1); exit 1; }; }
22981 fi
22982 cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h.  */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h.  */
22988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22990 #define $ac_func innocuous_$ac_func
22991
22992 /* System header to define __stub macros and hopefully few prototypes,
22993     which can conflict with char $ac_func (); below.
22994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22995     <limits.h> exists even on freestanding compilers.  */
22996
22997 #ifdef __STDC__
22998 # include <limits.h>
22999 #else
23000 # include <assert.h>
23001 #endif
23002
23003 #undef $ac_func
23004
23005 /* Override any gcc2 internal prototype to avoid an error.  */
23006 #ifdef __cplusplus
23007 extern "C"
23008 {
23009 #endif
23010 /* We use char because int might match the return type of a gcc2
23011    builtin and then its argument prototype would still apply.  */
23012 char $ac_func ();
23013 /* The GNU C library defines this for functions which it implements
23014     to always fail with ENOSYS.  Some functions are actually named
23015     something starting with __ and the normal name is an alias.  */
23016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23017 choke me
23018 #else
23019 char (*f) () = $ac_func;
23020 #endif
23021 #ifdef __cplusplus
23022 }
23023 #endif
23024
23025 int
23026 main ()
23027 {
23028 return f != $ac_func;
23029   ;
23030   return 0;
23031 }
23032 _ACEOF
23033 rm -f conftest.$ac_objext conftest$ac_exeext
23034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23035   (eval $ac_link) 2>conftest.er1
23036   ac_status=$?
23037   grep -v '^ *+' conftest.er1 >conftest.err
23038   rm -f conftest.er1
23039   cat conftest.err >&5
23040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } &&
23042          { ac_try='test -z "$ac_c_werror_flag"
23043                          || test ! -s conftest.err'
23044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045   (eval $ac_try) 2>&5
23046   ac_status=$?
23047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048   (exit $ac_status); }; } &&
23049          { ac_try='test -s conftest$ac_exeext'
23050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051   (eval $ac_try) 2>&5
23052   ac_status=$?
23053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054   (exit $ac_status); }; }; then
23055   eval "$as_ac_var=yes"
23056 else
23057   echo "$as_me: failed program was:" >&5
23058 sed 's/^/| /' conftest.$ac_ext >&5
23059
23060 eval "$as_ac_var=no"
23061 fi
23062 rm -f conftest.err conftest.$ac_objext \
23063       conftest$ac_exeext conftest.$ac_ext
23064 fi
23065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23067 if test `eval echo '${'$as_ac_var'}'` = yes; then
23068   cat >>confdefs.h <<_ACEOF
23069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23070 _ACEOF
23071
23072 fi
23073 done
23074
23075     fi
23076   fi
23077
23078
23079
23080   echo "$as_me:$LINENO: checking for powl declaration" >&5
23081 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
23082   if test x${glibcxx_cv_func_powl_use+set} != xset; then
23083     if test "${glibcxx_cv_func_powl_use+set}" = set; then
23084   echo $ECHO_N "(cached) $ECHO_C" >&6
23085 else
23086
23087
23088
23089       ac_ext=cc
23090 ac_cpp='$CXXCPP $CPPFLAGS'
23091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23094
23095       cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h.  */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h.  */
23101 #include <math.h>
23102 int
23103 main ()
23104 {
23105  powl(0, 0);
23106   ;
23107   return 0;
23108 }
23109 _ACEOF
23110 rm -f conftest.$ac_objext
23111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23112   (eval $ac_compile) 2>conftest.er1
23113   ac_status=$?
23114   grep -v '^ *+' conftest.er1 >conftest.err
23115   rm -f conftest.er1
23116   cat conftest.err >&5
23117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118   (exit $ac_status); } &&
23119          { ac_try='test -z "$ac_cxx_werror_flag"
23120                          || test ! -s conftest.err'
23121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23122   (eval $ac_try) 2>&5
23123   ac_status=$?
23124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125   (exit $ac_status); }; } &&
23126          { ac_try='test -s conftest.$ac_objext'
23127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23128   (eval $ac_try) 2>&5
23129   ac_status=$?
23130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131   (exit $ac_status); }; }; then
23132   glibcxx_cv_func_powl_use=yes
23133 else
23134   echo "$as_me: failed program was:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23136
23137 glibcxx_cv_func_powl_use=no
23138 fi
23139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23140       ac_ext=c
23141 ac_cpp='$CPP $CPPFLAGS'
23142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23145
23146
23147 fi
23148
23149   fi
23150   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
23151 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
23152
23153   if test x$glibcxx_cv_func_powl_use = x"yes"; then
23154
23155 for ac_func in powl
23156 do
23157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23158 echo "$as_me:$LINENO: checking for $ac_func" >&5
23159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23160 if eval "test \"\${$as_ac_var+set}\" = set"; then
23161   echo $ECHO_N "(cached) $ECHO_C" >&6
23162 else
23163   if test x$gcc_no_link = xyes; then
23164   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23165 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23166    { (exit 1); exit 1; }; }
23167 fi
23168 cat >conftest.$ac_ext <<_ACEOF
23169 /* confdefs.h.  */
23170 _ACEOF
23171 cat confdefs.h >>conftest.$ac_ext
23172 cat >>conftest.$ac_ext <<_ACEOF
23173 /* end confdefs.h.  */
23174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23176 #define $ac_func innocuous_$ac_func
23177
23178 /* System header to define __stub macros and hopefully few prototypes,
23179     which can conflict with char $ac_func (); below.
23180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23181     <limits.h> exists even on freestanding compilers.  */
23182
23183 #ifdef __STDC__
23184 # include <limits.h>
23185 #else
23186 # include <assert.h>
23187 #endif
23188
23189 #undef $ac_func
23190
23191 /* Override any gcc2 internal prototype to avoid an error.  */
23192 #ifdef __cplusplus
23193 extern "C"
23194 {
23195 #endif
23196 /* We use char because int might match the return type of a gcc2
23197    builtin and then its argument prototype would still apply.  */
23198 char $ac_func ();
23199 /* The GNU C library defines this for functions which it implements
23200     to always fail with ENOSYS.  Some functions are actually named
23201     something starting with __ and the normal name is an alias.  */
23202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23203 choke me
23204 #else
23205 char (*f) () = $ac_func;
23206 #endif
23207 #ifdef __cplusplus
23208 }
23209 #endif
23210
23211 int
23212 main ()
23213 {
23214 return f != $ac_func;
23215   ;
23216   return 0;
23217 }
23218 _ACEOF
23219 rm -f conftest.$ac_objext conftest$ac_exeext
23220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23221   (eval $ac_link) 2>conftest.er1
23222   ac_status=$?
23223   grep -v '^ *+' conftest.er1 >conftest.err
23224   rm -f conftest.er1
23225   cat conftest.err >&5
23226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227   (exit $ac_status); } &&
23228          { ac_try='test -z "$ac_c_werror_flag"
23229                          || test ! -s conftest.err'
23230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231   (eval $ac_try) 2>&5
23232   ac_status=$?
23233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234   (exit $ac_status); }; } &&
23235          { ac_try='test -s conftest$ac_exeext'
23236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237   (eval $ac_try) 2>&5
23238   ac_status=$?
23239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240   (exit $ac_status); }; }; then
23241   eval "$as_ac_var=yes"
23242 else
23243   echo "$as_me: failed program was:" >&5
23244 sed 's/^/| /' conftest.$ac_ext >&5
23245
23246 eval "$as_ac_var=no"
23247 fi
23248 rm -f conftest.err conftest.$ac_objext \
23249       conftest$ac_exeext conftest.$ac_ext
23250 fi
23251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23253 if test `eval echo '${'$as_ac_var'}'` = yes; then
23254   cat >>confdefs.h <<_ACEOF
23255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23256 _ACEOF
23257
23258 fi
23259 done
23260
23261   else
23262
23263   echo "$as_me:$LINENO: checking for _powl declaration" >&5
23264 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
23265   if test x${glibcxx_cv_func__powl_use+set} != xset; then
23266     if test "${glibcxx_cv_func__powl_use+set}" = set; then
23267   echo $ECHO_N "(cached) $ECHO_C" >&6
23268 else
23269
23270
23271
23272       ac_ext=cc
23273 ac_cpp='$CXXCPP $CPPFLAGS'
23274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23277
23278       cat >conftest.$ac_ext <<_ACEOF
23279 /* confdefs.h.  */
23280 _ACEOF
23281 cat confdefs.h >>conftest.$ac_ext
23282 cat >>conftest.$ac_ext <<_ACEOF
23283 /* end confdefs.h.  */
23284 #include <math.h>
23285 int
23286 main ()
23287 {
23288  _powl(0, 0);
23289   ;
23290   return 0;
23291 }
23292 _ACEOF
23293 rm -f conftest.$ac_objext
23294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23295   (eval $ac_compile) 2>conftest.er1
23296   ac_status=$?
23297   grep -v '^ *+' conftest.er1 >conftest.err
23298   rm -f conftest.er1
23299   cat conftest.err >&5
23300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301   (exit $ac_status); } &&
23302          { ac_try='test -z "$ac_cxx_werror_flag"
23303                          || test ! -s conftest.err'
23304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305   (eval $ac_try) 2>&5
23306   ac_status=$?
23307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308   (exit $ac_status); }; } &&
23309          { ac_try='test -s conftest.$ac_objext'
23310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23311   (eval $ac_try) 2>&5
23312   ac_status=$?
23313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314   (exit $ac_status); }; }; then
23315   glibcxx_cv_func__powl_use=yes
23316 else
23317   echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23319
23320 glibcxx_cv_func__powl_use=no
23321 fi
23322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23323       ac_ext=c
23324 ac_cpp='$CPP $CPPFLAGS'
23325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23328
23329
23330 fi
23331
23332   fi
23333   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
23334 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
23335
23336     if test x$glibcxx_cv_func__powl_use = x"yes"; then
23337
23338 for ac_func in _powl
23339 do
23340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23341 echo "$as_me:$LINENO: checking for $ac_func" >&5
23342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23343 if eval "test \"\${$as_ac_var+set}\" = set"; then
23344   echo $ECHO_N "(cached) $ECHO_C" >&6
23345 else
23346   if test x$gcc_no_link = xyes; then
23347   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23348 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23349    { (exit 1); exit 1; }; }
23350 fi
23351 cat >conftest.$ac_ext <<_ACEOF
23352 /* confdefs.h.  */
23353 _ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h.  */
23357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23359 #define $ac_func innocuous_$ac_func
23360
23361 /* System header to define __stub macros and hopefully few prototypes,
23362     which can conflict with char $ac_func (); below.
23363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23364     <limits.h> exists even on freestanding compilers.  */
23365
23366 #ifdef __STDC__
23367 # include <limits.h>
23368 #else
23369 # include <assert.h>
23370 #endif
23371
23372 #undef $ac_func
23373
23374 /* Override any gcc2 internal prototype to avoid an error.  */
23375 #ifdef __cplusplus
23376 extern "C"
23377 {
23378 #endif
23379 /* We use char because int might match the return type of a gcc2
23380    builtin and then its argument prototype would still apply.  */
23381 char $ac_func ();
23382 /* The GNU C library defines this for functions which it implements
23383     to always fail with ENOSYS.  Some functions are actually named
23384     something starting with __ and the normal name is an alias.  */
23385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23386 choke me
23387 #else
23388 char (*f) () = $ac_func;
23389 #endif
23390 #ifdef __cplusplus
23391 }
23392 #endif
23393
23394 int
23395 main ()
23396 {
23397 return f != $ac_func;
23398   ;
23399   return 0;
23400 }
23401 _ACEOF
23402 rm -f conftest.$ac_objext conftest$ac_exeext
23403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23404   (eval $ac_link) 2>conftest.er1
23405   ac_status=$?
23406   grep -v '^ *+' conftest.er1 >conftest.err
23407   rm -f conftest.er1
23408   cat conftest.err >&5
23409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410   (exit $ac_status); } &&
23411          { ac_try='test -z "$ac_c_werror_flag"
23412                          || test ! -s conftest.err'
23413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414   (eval $ac_try) 2>&5
23415   ac_status=$?
23416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417   (exit $ac_status); }; } &&
23418          { ac_try='test -s conftest$ac_exeext'
23419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420   (eval $ac_try) 2>&5
23421   ac_status=$?
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); }; }; then
23424   eval "$as_ac_var=yes"
23425 else
23426   echo "$as_me: failed program was:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23428
23429 eval "$as_ac_var=no"
23430 fi
23431 rm -f conftest.err conftest.$ac_objext \
23432       conftest$ac_exeext conftest.$ac_ext
23433 fi
23434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23436 if test `eval echo '${'$as_ac_var'}'` = yes; then
23437   cat >>confdefs.h <<_ACEOF
23438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23439 _ACEOF
23440
23441 fi
23442 done
23443
23444     fi
23445   fi
23446
23447
23448
23449   echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
23450 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
23451   if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
23452     if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
23453   echo $ECHO_N "(cached) $ECHO_C" >&6
23454 else
23455
23456
23457
23458       ac_ext=cc
23459 ac_cpp='$CXXCPP $CPPFLAGS'
23460 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23461 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23462 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23463
23464       cat >conftest.$ac_ext <<_ACEOF
23465 /* confdefs.h.  */
23466 _ACEOF
23467 cat confdefs.h >>conftest.$ac_ext
23468 cat >>conftest.$ac_ext <<_ACEOF
23469 /* end confdefs.h.  */
23470 #include <math.h>
23471                       #ifdef HAVE_IEEEFP_H
23472                       #include <ieeefp.h>
23473                       #endif
23474
23475 int
23476 main ()
23477 {
23478  sqrtl(0);
23479   ;
23480   return 0;
23481 }
23482 _ACEOF
23483 rm -f conftest.$ac_objext
23484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23485   (eval $ac_compile) 2>conftest.er1
23486   ac_status=$?
23487   grep -v '^ *+' conftest.er1 >conftest.err
23488   rm -f conftest.er1
23489   cat conftest.err >&5
23490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491   (exit $ac_status); } &&
23492          { ac_try='test -z "$ac_cxx_werror_flag"
23493                          || test ! -s conftest.err'
23494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495   (eval $ac_try) 2>&5
23496   ac_status=$?
23497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498   (exit $ac_status); }; } &&
23499          { ac_try='test -s conftest.$ac_objext'
23500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501   (eval $ac_try) 2>&5
23502   ac_status=$?
23503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504   (exit $ac_status); }; }; then
23505   glibcxx_cv_func_sqrtl_use=yes
23506 else
23507   echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.$ac_ext >&5
23509
23510 glibcxx_cv_func_sqrtl_use=no
23511 fi
23512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23513       ac_ext=c
23514 ac_cpp='$CPP $CPPFLAGS'
23515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23518
23519
23520 fi
23521
23522   fi
23523   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
23524 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
23525
23526   if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
23527
23528 for ac_func in sqrtl
23529 do
23530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23531 echo "$as_me:$LINENO: checking for $ac_func" >&5
23532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23533 if eval "test \"\${$as_ac_var+set}\" = set"; then
23534   echo $ECHO_N "(cached) $ECHO_C" >&6
23535 else
23536   if test x$gcc_no_link = xyes; then
23537   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23538 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23539    { (exit 1); exit 1; }; }
23540 fi
23541 cat >conftest.$ac_ext <<_ACEOF
23542 /* confdefs.h.  */
23543 _ACEOF
23544 cat confdefs.h >>conftest.$ac_ext
23545 cat >>conftest.$ac_ext <<_ACEOF
23546 /* end confdefs.h.  */
23547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23549 #define $ac_func innocuous_$ac_func
23550
23551 /* System header to define __stub macros and hopefully few prototypes,
23552     which can conflict with char $ac_func (); below.
23553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23554     <limits.h> exists even on freestanding compilers.  */
23555
23556 #ifdef __STDC__
23557 # include <limits.h>
23558 #else
23559 # include <assert.h>
23560 #endif
23561
23562 #undef $ac_func
23563
23564 /* Override any gcc2 internal prototype to avoid an error.  */
23565 #ifdef __cplusplus
23566 extern "C"
23567 {
23568 #endif
23569 /* We use char because int might match the return type of a gcc2
23570    builtin and then its argument prototype would still apply.  */
23571 char $ac_func ();
23572 /* The GNU C library defines this for functions which it implements
23573     to always fail with ENOSYS.  Some functions are actually named
23574     something starting with __ and the normal name is an alias.  */
23575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23576 choke me
23577 #else
23578 char (*f) () = $ac_func;
23579 #endif
23580 #ifdef __cplusplus
23581 }
23582 #endif
23583
23584 int
23585 main ()
23586 {
23587 return f != $ac_func;
23588   ;
23589   return 0;
23590 }
23591 _ACEOF
23592 rm -f conftest.$ac_objext conftest$ac_exeext
23593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23594   (eval $ac_link) 2>conftest.er1
23595   ac_status=$?
23596   grep -v '^ *+' conftest.er1 >conftest.err
23597   rm -f conftest.er1
23598   cat conftest.err >&5
23599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600   (exit $ac_status); } &&
23601          { ac_try='test -z "$ac_c_werror_flag"
23602                          || test ! -s conftest.err'
23603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23604   (eval $ac_try) 2>&5
23605   ac_status=$?
23606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607   (exit $ac_status); }; } &&
23608          { ac_try='test -s conftest$ac_exeext'
23609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23610   (eval $ac_try) 2>&5
23611   ac_status=$?
23612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613   (exit $ac_status); }; }; then
23614   eval "$as_ac_var=yes"
23615 else
23616   echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23618
23619 eval "$as_ac_var=no"
23620 fi
23621 rm -f conftest.err conftest.$ac_objext \
23622       conftest$ac_exeext conftest.$ac_ext
23623 fi
23624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23626 if test `eval echo '${'$as_ac_var'}'` = yes; then
23627   cat >>confdefs.h <<_ACEOF
23628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23629 _ACEOF
23630
23631 fi
23632 done
23633
23634   else
23635
23636   echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
23637 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
23638   if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
23639     if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
23640   echo $ECHO_N "(cached) $ECHO_C" >&6
23641 else
23642
23643
23644
23645       ac_ext=cc
23646 ac_cpp='$CXXCPP $CPPFLAGS'
23647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23650
23651       cat >conftest.$ac_ext <<_ACEOF
23652 /* confdefs.h.  */
23653 _ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h.  */
23657 #include <math.h>
23658                       #ifdef HAVE_IEEEFP_H
23659                       #include <ieeefp.h>
23660                       #endif
23661
23662 int
23663 main ()
23664 {
23665  _sqrtl(0);
23666   ;
23667   return 0;
23668 }
23669 _ACEOF
23670 rm -f conftest.$ac_objext
23671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23672   (eval $ac_compile) 2>conftest.er1
23673   ac_status=$?
23674   grep -v '^ *+' conftest.er1 >conftest.err
23675   rm -f conftest.er1
23676   cat conftest.err >&5
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); } &&
23679          { ac_try='test -z "$ac_cxx_werror_flag"
23680                          || test ! -s conftest.err'
23681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23682   (eval $ac_try) 2>&5
23683   ac_status=$?
23684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685   (exit $ac_status); }; } &&
23686          { ac_try='test -s conftest.$ac_objext'
23687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23688   (eval $ac_try) 2>&5
23689   ac_status=$?
23690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691   (exit $ac_status); }; }; then
23692   glibcxx_cv_func__sqrtl_use=yes
23693 else
23694   echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23696
23697 glibcxx_cv_func__sqrtl_use=no
23698 fi
23699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23700       ac_ext=c
23701 ac_cpp='$CPP $CPPFLAGS'
23702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23705
23706
23707 fi
23708
23709   fi
23710   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
23711 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
23712
23713     if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
23714
23715 for ac_func in _sqrtl
23716 do
23717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23718 echo "$as_me:$LINENO: checking for $ac_func" >&5
23719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23720 if eval "test \"\${$as_ac_var+set}\" = set"; then
23721   echo $ECHO_N "(cached) $ECHO_C" >&6
23722 else
23723   if test x$gcc_no_link = xyes; then
23724   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23725 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23726    { (exit 1); exit 1; }; }
23727 fi
23728 cat >conftest.$ac_ext <<_ACEOF
23729 /* confdefs.h.  */
23730 _ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h.  */
23734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23736 #define $ac_func innocuous_$ac_func
23737
23738 /* System header to define __stub macros and hopefully few prototypes,
23739     which can conflict with char $ac_func (); below.
23740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23741     <limits.h> exists even on freestanding compilers.  */
23742
23743 #ifdef __STDC__
23744 # include <limits.h>
23745 #else
23746 # include <assert.h>
23747 #endif
23748
23749 #undef $ac_func
23750
23751 /* Override any gcc2 internal prototype to avoid an error.  */
23752 #ifdef __cplusplus
23753 extern "C"
23754 {
23755 #endif
23756 /* We use char because int might match the return type of a gcc2
23757    builtin and then its argument prototype would still apply.  */
23758 char $ac_func ();
23759 /* The GNU C library defines this for functions which it implements
23760     to always fail with ENOSYS.  Some functions are actually named
23761     something starting with __ and the normal name is an alias.  */
23762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23763 choke me
23764 #else
23765 char (*f) () = $ac_func;
23766 #endif
23767 #ifdef __cplusplus
23768 }
23769 #endif
23770
23771 int
23772 main ()
23773 {
23774 return f != $ac_func;
23775   ;
23776   return 0;
23777 }
23778 _ACEOF
23779 rm -f conftest.$ac_objext conftest$ac_exeext
23780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23781   (eval $ac_link) 2>conftest.er1
23782   ac_status=$?
23783   grep -v '^ *+' conftest.er1 >conftest.err
23784   rm -f conftest.er1
23785   cat conftest.err >&5
23786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787   (exit $ac_status); } &&
23788          { ac_try='test -z "$ac_c_werror_flag"
23789                          || test ! -s conftest.err'
23790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791   (eval $ac_try) 2>&5
23792   ac_status=$?
23793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794   (exit $ac_status); }; } &&
23795          { ac_try='test -s conftest$ac_exeext'
23796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23797   (eval $ac_try) 2>&5
23798   ac_status=$?
23799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800   (exit $ac_status); }; }; then
23801   eval "$as_ac_var=yes"
23802 else
23803   echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23805
23806 eval "$as_ac_var=no"
23807 fi
23808 rm -f conftest.err conftest.$ac_objext \
23809       conftest$ac_exeext conftest.$ac_ext
23810 fi
23811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23813 if test `eval echo '${'$as_ac_var'}'` = yes; then
23814   cat >>confdefs.h <<_ACEOF
23815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23816 _ACEOF
23817
23818 fi
23819 done
23820
23821     fi
23822   fi
23823
23824
23825
23826   echo "$as_me:$LINENO: checking for sincosl declaration" >&5
23827 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
23828   if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
23829     if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
23830   echo $ECHO_N "(cached) $ECHO_C" >&6
23831 else
23832
23833
23834
23835       ac_ext=cc
23836 ac_cpp='$CXXCPP $CPPFLAGS'
23837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23840
23841       cat >conftest.$ac_ext <<_ACEOF
23842 /* confdefs.h.  */
23843 _ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h.  */
23847 #include <math.h>
23848 int
23849 main ()
23850 {
23851  sincosl(0, 0, 0);
23852   ;
23853   return 0;
23854 }
23855 _ACEOF
23856 rm -f conftest.$ac_objext
23857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23858   (eval $ac_compile) 2>conftest.er1
23859   ac_status=$?
23860   grep -v '^ *+' conftest.er1 >conftest.err
23861   rm -f conftest.er1
23862   cat conftest.err >&5
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); } &&
23865          { ac_try='test -z "$ac_cxx_werror_flag"
23866                          || test ! -s conftest.err'
23867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868   (eval $ac_try) 2>&5
23869   ac_status=$?
23870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871   (exit $ac_status); }; } &&
23872          { ac_try='test -s conftest.$ac_objext'
23873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23874   (eval $ac_try) 2>&5
23875   ac_status=$?
23876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877   (exit $ac_status); }; }; then
23878   glibcxx_cv_func_sincosl_use=yes
23879 else
23880   echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23882
23883 glibcxx_cv_func_sincosl_use=no
23884 fi
23885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23886       ac_ext=c
23887 ac_cpp='$CPP $CPPFLAGS'
23888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23891
23892
23893 fi
23894
23895   fi
23896   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
23897 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
23898
23899   if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
23900
23901 for ac_func in sincosl
23902 do
23903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23904 echo "$as_me:$LINENO: checking for $ac_func" >&5
23905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23906 if eval "test \"\${$as_ac_var+set}\" = set"; then
23907   echo $ECHO_N "(cached) $ECHO_C" >&6
23908 else
23909   if test x$gcc_no_link = xyes; then
23910   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23911 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23912    { (exit 1); exit 1; }; }
23913 fi
23914 cat >conftest.$ac_ext <<_ACEOF
23915 /* confdefs.h.  */
23916 _ACEOF
23917 cat confdefs.h >>conftest.$ac_ext
23918 cat >>conftest.$ac_ext <<_ACEOF
23919 /* end confdefs.h.  */
23920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23922 #define $ac_func innocuous_$ac_func
23923
23924 /* System header to define __stub macros and hopefully few prototypes,
23925     which can conflict with char $ac_func (); below.
23926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23927     <limits.h> exists even on freestanding compilers.  */
23928
23929 #ifdef __STDC__
23930 # include <limits.h>
23931 #else
23932 # include <assert.h>
23933 #endif
23934
23935 #undef $ac_func
23936
23937 /* Override any gcc2 internal prototype to avoid an error.  */
23938 #ifdef __cplusplus
23939 extern "C"
23940 {
23941 #endif
23942 /* We use char because int might match the return type of a gcc2
23943    builtin and then its argument prototype would still apply.  */
23944 char $ac_func ();
23945 /* The GNU C library defines this for functions which it implements
23946     to always fail with ENOSYS.  Some functions are actually named
23947     something starting with __ and the normal name is an alias.  */
23948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23949 choke me
23950 #else
23951 char (*f) () = $ac_func;
23952 #endif
23953 #ifdef __cplusplus
23954 }
23955 #endif
23956
23957 int
23958 main ()
23959 {
23960 return f != $ac_func;
23961   ;
23962   return 0;
23963 }
23964 _ACEOF
23965 rm -f conftest.$ac_objext conftest$ac_exeext
23966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23967   (eval $ac_link) 2>conftest.er1
23968   ac_status=$?
23969   grep -v '^ *+' conftest.er1 >conftest.err
23970   rm -f conftest.er1
23971   cat conftest.err >&5
23972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973   (exit $ac_status); } &&
23974          { ac_try='test -z "$ac_c_werror_flag"
23975                          || test ! -s conftest.err'
23976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977   (eval $ac_try) 2>&5
23978   ac_status=$?
23979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980   (exit $ac_status); }; } &&
23981          { ac_try='test -s conftest$ac_exeext'
23982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23983   (eval $ac_try) 2>&5
23984   ac_status=$?
23985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986   (exit $ac_status); }; }; then
23987   eval "$as_ac_var=yes"
23988 else
23989   echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23991
23992 eval "$as_ac_var=no"
23993 fi
23994 rm -f conftest.err conftest.$ac_objext \
23995       conftest$ac_exeext conftest.$ac_ext
23996 fi
23997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23999 if test `eval echo '${'$as_ac_var'}'` = yes; then
24000   cat >>confdefs.h <<_ACEOF
24001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24002 _ACEOF
24003
24004 fi
24005 done
24006
24007   else
24008
24009   echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
24010 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
24011   if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
24012     if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
24013   echo $ECHO_N "(cached) $ECHO_C" >&6
24014 else
24015
24016
24017
24018       ac_ext=cc
24019 ac_cpp='$CXXCPP $CPPFLAGS'
24020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24023
24024       cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h.  */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h.  */
24030 #include <math.h>
24031 int
24032 main ()
24033 {
24034  _sincosl(0, 0, 0);
24035   ;
24036   return 0;
24037 }
24038 _ACEOF
24039 rm -f conftest.$ac_objext
24040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24041   (eval $ac_compile) 2>conftest.er1
24042   ac_status=$?
24043   grep -v '^ *+' conftest.er1 >conftest.err
24044   rm -f conftest.er1
24045   cat conftest.err >&5
24046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047   (exit $ac_status); } &&
24048          { ac_try='test -z "$ac_cxx_werror_flag"
24049                          || test ! -s conftest.err'
24050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24051   (eval $ac_try) 2>&5
24052   ac_status=$?
24053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); }; } &&
24055          { ac_try='test -s conftest.$ac_objext'
24056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24057   (eval $ac_try) 2>&5
24058   ac_status=$?
24059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060   (exit $ac_status); }; }; then
24061   glibcxx_cv_func__sincosl_use=yes
24062 else
24063   echo "$as_me: failed program was:" >&5
24064 sed 's/^/| /' conftest.$ac_ext >&5
24065
24066 glibcxx_cv_func__sincosl_use=no
24067 fi
24068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24069       ac_ext=c
24070 ac_cpp='$CPP $CPPFLAGS'
24071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24074
24075
24076 fi
24077
24078   fi
24079   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
24080 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
24081
24082     if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
24083
24084 for ac_func in _sincosl
24085 do
24086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24087 echo "$as_me:$LINENO: checking for $ac_func" >&5
24088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24089 if eval "test \"\${$as_ac_var+set}\" = set"; then
24090   echo $ECHO_N "(cached) $ECHO_C" >&6
24091 else
24092   if test x$gcc_no_link = xyes; then
24093   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24094 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24095    { (exit 1); exit 1; }; }
24096 fi
24097 cat >conftest.$ac_ext <<_ACEOF
24098 /* confdefs.h.  */
24099 _ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h.  */
24103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24105 #define $ac_func innocuous_$ac_func
24106
24107 /* System header to define __stub macros and hopefully few prototypes,
24108     which can conflict with char $ac_func (); below.
24109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24110     <limits.h> exists even on freestanding compilers.  */
24111
24112 #ifdef __STDC__
24113 # include <limits.h>
24114 #else
24115 # include <assert.h>
24116 #endif
24117
24118 #undef $ac_func
24119
24120 /* Override any gcc2 internal prototype to avoid an error.  */
24121 #ifdef __cplusplus
24122 extern "C"
24123 {
24124 #endif
24125 /* We use char because int might match the return type of a gcc2
24126    builtin and then its argument prototype would still apply.  */
24127 char $ac_func ();
24128 /* The GNU C library defines this for functions which it implements
24129     to always fail with ENOSYS.  Some functions are actually named
24130     something starting with __ and the normal name is an alias.  */
24131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24132 choke me
24133 #else
24134 char (*f) () = $ac_func;
24135 #endif
24136 #ifdef __cplusplus
24137 }
24138 #endif
24139
24140 int
24141 main ()
24142 {
24143 return f != $ac_func;
24144   ;
24145   return 0;
24146 }
24147 _ACEOF
24148 rm -f conftest.$ac_objext conftest$ac_exeext
24149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24150   (eval $ac_link) 2>conftest.er1
24151   ac_status=$?
24152   grep -v '^ *+' conftest.er1 >conftest.err
24153   rm -f conftest.er1
24154   cat conftest.err >&5
24155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156   (exit $ac_status); } &&
24157          { ac_try='test -z "$ac_c_werror_flag"
24158                          || test ! -s conftest.err'
24159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160   (eval $ac_try) 2>&5
24161   ac_status=$?
24162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163   (exit $ac_status); }; } &&
24164          { ac_try='test -s conftest$ac_exeext'
24165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24166   (eval $ac_try) 2>&5
24167   ac_status=$?
24168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169   (exit $ac_status); }; }; then
24170   eval "$as_ac_var=yes"
24171 else
24172   echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24174
24175 eval "$as_ac_var=no"
24176 fi
24177 rm -f conftest.err conftest.$ac_objext \
24178       conftest$ac_exeext conftest.$ac_ext
24179 fi
24180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24182 if test `eval echo '${'$as_ac_var'}'` = yes; then
24183   cat >>confdefs.h <<_ACEOF
24184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24185 _ACEOF
24186
24187 fi
24188 done
24189
24190     fi
24191   fi
24192
24193
24194
24195   echo "$as_me:$LINENO: checking for finitel declaration" >&5
24196 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
24197   if test x${glibcxx_cv_func_finitel_use+set} != xset; then
24198     if test "${glibcxx_cv_func_finitel_use+set}" = set; then
24199   echo $ECHO_N "(cached) $ECHO_C" >&6
24200 else
24201
24202
24203
24204       ac_ext=cc
24205 ac_cpp='$CXXCPP $CPPFLAGS'
24206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24209
24210       cat >conftest.$ac_ext <<_ACEOF
24211 /* confdefs.h.  */
24212 _ACEOF
24213 cat confdefs.h >>conftest.$ac_ext
24214 cat >>conftest.$ac_ext <<_ACEOF
24215 /* end confdefs.h.  */
24216 #include <math.h>
24217                       #ifdef HAVE_IEEEFP_H
24218                       #include <ieeefp.h>
24219                       #endif
24220
24221 int
24222 main ()
24223 {
24224  finitel(0);
24225   ;
24226   return 0;
24227 }
24228 _ACEOF
24229 rm -f conftest.$ac_objext
24230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24231   (eval $ac_compile) 2>conftest.er1
24232   ac_status=$?
24233   grep -v '^ *+' conftest.er1 >conftest.err
24234   rm -f conftest.er1
24235   cat conftest.err >&5
24236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237   (exit $ac_status); } &&
24238          { ac_try='test -z "$ac_cxx_werror_flag"
24239                          || test ! -s conftest.err'
24240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24241   (eval $ac_try) 2>&5
24242   ac_status=$?
24243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244   (exit $ac_status); }; } &&
24245          { ac_try='test -s conftest.$ac_objext'
24246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24247   (eval $ac_try) 2>&5
24248   ac_status=$?
24249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250   (exit $ac_status); }; }; then
24251   glibcxx_cv_func_finitel_use=yes
24252 else
24253   echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24255
24256 glibcxx_cv_func_finitel_use=no
24257 fi
24258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24259       ac_ext=c
24260 ac_cpp='$CPP $CPPFLAGS'
24261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24264
24265
24266 fi
24267
24268   fi
24269   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
24270 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
24271
24272   if test x$glibcxx_cv_func_finitel_use = x"yes"; then
24273
24274 for ac_func in finitel
24275 do
24276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24277 echo "$as_me:$LINENO: checking for $ac_func" >&5
24278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24279 if eval "test \"\${$as_ac_var+set}\" = set"; then
24280   echo $ECHO_N "(cached) $ECHO_C" >&6
24281 else
24282   if test x$gcc_no_link = xyes; then
24283   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24284 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24285    { (exit 1); exit 1; }; }
24286 fi
24287 cat >conftest.$ac_ext <<_ACEOF
24288 /* confdefs.h.  */
24289 _ACEOF
24290 cat confdefs.h >>conftest.$ac_ext
24291 cat >>conftest.$ac_ext <<_ACEOF
24292 /* end confdefs.h.  */
24293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24295 #define $ac_func innocuous_$ac_func
24296
24297 /* System header to define __stub macros and hopefully few prototypes,
24298     which can conflict with char $ac_func (); below.
24299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24300     <limits.h> exists even on freestanding compilers.  */
24301
24302 #ifdef __STDC__
24303 # include <limits.h>
24304 #else
24305 # include <assert.h>
24306 #endif
24307
24308 #undef $ac_func
24309
24310 /* Override any gcc2 internal prototype to avoid an error.  */
24311 #ifdef __cplusplus
24312 extern "C"
24313 {
24314 #endif
24315 /* We use char because int might match the return type of a gcc2
24316    builtin and then its argument prototype would still apply.  */
24317 char $ac_func ();
24318 /* The GNU C library defines this for functions which it implements
24319     to always fail with ENOSYS.  Some functions are actually named
24320     something starting with __ and the normal name is an alias.  */
24321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24322 choke me
24323 #else
24324 char (*f) () = $ac_func;
24325 #endif
24326 #ifdef __cplusplus
24327 }
24328 #endif
24329
24330 int
24331 main ()
24332 {
24333 return f != $ac_func;
24334   ;
24335   return 0;
24336 }
24337 _ACEOF
24338 rm -f conftest.$ac_objext conftest$ac_exeext
24339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24340   (eval $ac_link) 2>conftest.er1
24341   ac_status=$?
24342   grep -v '^ *+' conftest.er1 >conftest.err
24343   rm -f conftest.er1
24344   cat conftest.err >&5
24345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346   (exit $ac_status); } &&
24347          { ac_try='test -z "$ac_c_werror_flag"
24348                          || test ! -s conftest.err'
24349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24350   (eval $ac_try) 2>&5
24351   ac_status=$?
24352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353   (exit $ac_status); }; } &&
24354          { ac_try='test -s conftest$ac_exeext'
24355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24356   (eval $ac_try) 2>&5
24357   ac_status=$?
24358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359   (exit $ac_status); }; }; then
24360   eval "$as_ac_var=yes"
24361 else
24362   echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24364
24365 eval "$as_ac_var=no"
24366 fi
24367 rm -f conftest.err conftest.$ac_objext \
24368       conftest$ac_exeext conftest.$ac_ext
24369 fi
24370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24372 if test `eval echo '${'$as_ac_var'}'` = yes; then
24373   cat >>confdefs.h <<_ACEOF
24374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24375 _ACEOF
24376
24377 fi
24378 done
24379
24380   else
24381
24382   echo "$as_me:$LINENO: checking for _finitel declaration" >&5
24383 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
24384   if test x${glibcxx_cv_func__finitel_use+set} != xset; then
24385     if test "${glibcxx_cv_func__finitel_use+set}" = set; then
24386   echo $ECHO_N "(cached) $ECHO_C" >&6
24387 else
24388
24389
24390
24391       ac_ext=cc
24392 ac_cpp='$CXXCPP $CPPFLAGS'
24393 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24394 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24395 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24396
24397       cat >conftest.$ac_ext <<_ACEOF
24398 /* confdefs.h.  */
24399 _ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h.  */
24403 #include <math.h>
24404                       #ifdef HAVE_IEEEFP_H
24405                       #include <ieeefp.h>
24406                       #endif
24407
24408 int
24409 main ()
24410 {
24411  _finitel(0);
24412   ;
24413   return 0;
24414 }
24415 _ACEOF
24416 rm -f conftest.$ac_objext
24417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24418   (eval $ac_compile) 2>conftest.er1
24419   ac_status=$?
24420   grep -v '^ *+' conftest.er1 >conftest.err
24421   rm -f conftest.er1
24422   cat conftest.err >&5
24423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424   (exit $ac_status); } &&
24425          { ac_try='test -z "$ac_cxx_werror_flag"
24426                          || test ! -s conftest.err'
24427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428   (eval $ac_try) 2>&5
24429   ac_status=$?
24430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431   (exit $ac_status); }; } &&
24432          { ac_try='test -s conftest.$ac_objext'
24433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24434   (eval $ac_try) 2>&5
24435   ac_status=$?
24436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437   (exit $ac_status); }; }; then
24438   glibcxx_cv_func__finitel_use=yes
24439 else
24440   echo "$as_me: failed program was:" >&5
24441 sed 's/^/| /' conftest.$ac_ext >&5
24442
24443 glibcxx_cv_func__finitel_use=no
24444 fi
24445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24446       ac_ext=c
24447 ac_cpp='$CPP $CPPFLAGS'
24448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24451
24452
24453 fi
24454
24455   fi
24456   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
24457 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
24458
24459     if test x$glibcxx_cv_func__finitel_use = x"yes"; then
24460
24461 for ac_func in _finitel
24462 do
24463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24464 echo "$as_me:$LINENO: checking for $ac_func" >&5
24465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24466 if eval "test \"\${$as_ac_var+set}\" = set"; then
24467   echo $ECHO_N "(cached) $ECHO_C" >&6
24468 else
24469   if test x$gcc_no_link = xyes; then
24470   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24471 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24472    { (exit 1); exit 1; }; }
24473 fi
24474 cat >conftest.$ac_ext <<_ACEOF
24475 /* confdefs.h.  */
24476 _ACEOF
24477 cat confdefs.h >>conftest.$ac_ext
24478 cat >>conftest.$ac_ext <<_ACEOF
24479 /* end confdefs.h.  */
24480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24482 #define $ac_func innocuous_$ac_func
24483
24484 /* System header to define __stub macros and hopefully few prototypes,
24485     which can conflict with char $ac_func (); below.
24486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24487     <limits.h> exists even on freestanding compilers.  */
24488
24489 #ifdef __STDC__
24490 # include <limits.h>
24491 #else
24492 # include <assert.h>
24493 #endif
24494
24495 #undef $ac_func
24496
24497 /* Override any gcc2 internal prototype to avoid an error.  */
24498 #ifdef __cplusplus
24499 extern "C"
24500 {
24501 #endif
24502 /* We use char because int might match the return type of a gcc2
24503    builtin and then its argument prototype would still apply.  */
24504 char $ac_func ();
24505 /* The GNU C library defines this for functions which it implements
24506     to always fail with ENOSYS.  Some functions are actually named
24507     something starting with __ and the normal name is an alias.  */
24508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24509 choke me
24510 #else
24511 char (*f) () = $ac_func;
24512 #endif
24513 #ifdef __cplusplus
24514 }
24515 #endif
24516
24517 int
24518 main ()
24519 {
24520 return f != $ac_func;
24521   ;
24522   return 0;
24523 }
24524 _ACEOF
24525 rm -f conftest.$ac_objext conftest$ac_exeext
24526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24527   (eval $ac_link) 2>conftest.er1
24528   ac_status=$?
24529   grep -v '^ *+' conftest.er1 >conftest.err
24530   rm -f conftest.er1
24531   cat conftest.err >&5
24532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533   (exit $ac_status); } &&
24534          { ac_try='test -z "$ac_c_werror_flag"
24535                          || test ! -s conftest.err'
24536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537   (eval $ac_try) 2>&5
24538   ac_status=$?
24539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540   (exit $ac_status); }; } &&
24541          { ac_try='test -s conftest$ac_exeext'
24542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543   (eval $ac_try) 2>&5
24544   ac_status=$?
24545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546   (exit $ac_status); }; }; then
24547   eval "$as_ac_var=yes"
24548 else
24549   echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552 eval "$as_ac_var=no"
24553 fi
24554 rm -f conftest.err conftest.$ac_objext \
24555       conftest$ac_exeext conftest.$ac_ext
24556 fi
24557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24559 if test `eval echo '${'$as_ac_var'}'` = yes; then
24560   cat >>confdefs.h <<_ACEOF
24561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24562 _ACEOF
24563
24564 fi
24565 done
24566
24567     fi
24568   fi
24569
24570
24571
24572
24573   echo "$as_me:$LINENO: checking for _float trig functions" >&5
24574 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
24575   if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
24576   echo $ECHO_N "(cached) $ECHO_C" >&6
24577 else
24578
24579
24580
24581     ac_ext=cc
24582 ac_cpp='$CXXCPP $CPPFLAGS'
24583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24586
24587     cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h.  */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h.  */
24593 #include <math.h>
24594 int
24595 main ()
24596 {
24597  `for x in _acosf _asinf _atanf \
24598                                           _cosf _sinf _tanf \
24599                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done`
24600   ;
24601   return 0;
24602 }
24603 _ACEOF
24604 rm -f conftest.$ac_objext
24605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24606   (eval $ac_compile) 2>conftest.er1
24607   ac_status=$?
24608   grep -v '^ *+' conftest.er1 >conftest.err
24609   rm -f conftest.er1
24610   cat conftest.err >&5
24611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612   (exit $ac_status); } &&
24613          { ac_try='test -z "$ac_cxx_werror_flag"
24614                          || test ! -s conftest.err'
24615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24616   (eval $ac_try) 2>&5
24617   ac_status=$?
24618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619   (exit $ac_status); }; } &&
24620          { ac_try='test -s conftest.$ac_objext'
24621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24622   (eval $ac_try) 2>&5
24623   ac_status=$?
24624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625   (exit $ac_status); }; }; then
24626   glibcxx_cv_func__float_trig_use=yes
24627 else
24628   echo "$as_me: failed program was:" >&5
24629 sed 's/^/| /' conftest.$ac_ext >&5
24630
24631 glibcxx_cv_func__float_trig_use=no
24632 fi
24633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24634     ac_ext=c
24635 ac_cpp='$CPP $CPPFLAGS'
24636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24639
24640 fi
24641
24642   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
24643 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
24644   if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654 for ac_func in _acosf _asinf _atanf \
24655                                           _cosf _sinf _tanf \
24656                                           _coshf _sinhf _tanhf
24657 do
24658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24659 echo "$as_me:$LINENO: checking for $ac_func" >&5
24660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24661 if eval "test \"\${$as_ac_var+set}\" = set"; then
24662   echo $ECHO_N "(cached) $ECHO_C" >&6
24663 else
24664   if test x$gcc_no_link = xyes; then
24665   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24666 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24667    { (exit 1); exit 1; }; }
24668 fi
24669 cat >conftest.$ac_ext <<_ACEOF
24670 /* confdefs.h.  */
24671 _ACEOF
24672 cat confdefs.h >>conftest.$ac_ext
24673 cat >>conftest.$ac_ext <<_ACEOF
24674 /* end confdefs.h.  */
24675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24677 #define $ac_func innocuous_$ac_func
24678
24679 /* System header to define __stub macros and hopefully few prototypes,
24680     which can conflict with char $ac_func (); below.
24681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24682     <limits.h> exists even on freestanding compilers.  */
24683
24684 #ifdef __STDC__
24685 # include <limits.h>
24686 #else
24687 # include <assert.h>
24688 #endif
24689
24690 #undef $ac_func
24691
24692 /* Override any gcc2 internal prototype to avoid an error.  */
24693 #ifdef __cplusplus
24694 extern "C"
24695 {
24696 #endif
24697 /* We use char because int might match the return type of a gcc2
24698    builtin and then its argument prototype would still apply.  */
24699 char $ac_func ();
24700 /* The GNU C library defines this for functions which it implements
24701     to always fail with ENOSYS.  Some functions are actually named
24702     something starting with __ and the normal name is an alias.  */
24703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24704 choke me
24705 #else
24706 char (*f) () = $ac_func;
24707 #endif
24708 #ifdef __cplusplus
24709 }
24710 #endif
24711
24712 int
24713 main ()
24714 {
24715 return f != $ac_func;
24716   ;
24717   return 0;
24718 }
24719 _ACEOF
24720 rm -f conftest.$ac_objext conftest$ac_exeext
24721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24722   (eval $ac_link) 2>conftest.er1
24723   ac_status=$?
24724   grep -v '^ *+' conftest.er1 >conftest.err
24725   rm -f conftest.er1
24726   cat conftest.err >&5
24727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728   (exit $ac_status); } &&
24729          { ac_try='test -z "$ac_c_werror_flag"
24730                          || test ! -s conftest.err'
24731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732   (eval $ac_try) 2>&5
24733   ac_status=$?
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); }; } &&
24736          { ac_try='test -s conftest$ac_exeext'
24737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24738   (eval $ac_try) 2>&5
24739   ac_status=$?
24740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741   (exit $ac_status); }; }; then
24742   eval "$as_ac_var=yes"
24743 else
24744   echo "$as_me: failed program was:" >&5
24745 sed 's/^/| /' conftest.$ac_ext >&5
24746
24747 eval "$as_ac_var=no"
24748 fi
24749 rm -f conftest.err conftest.$ac_objext \
24750       conftest$ac_exeext conftest.$ac_ext
24751 fi
24752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24754 if test `eval echo '${'$as_ac_var'}'` = yes; then
24755   cat >>confdefs.h <<_ACEOF
24756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24757 _ACEOF
24758
24759 fi
24760 done
24761
24762   fi
24763
24764
24765   echo "$as_me:$LINENO: checking for _float round functions" >&5
24766 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
24767   if test "${glibcxx_cv_func__float_round_use+set}" = set; then
24768   echo $ECHO_N "(cached) $ECHO_C" >&6
24769 else
24770
24771
24772
24773     ac_ext=cc
24774 ac_cpp='$CXXCPP $CPPFLAGS'
24775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24778
24779     cat >conftest.$ac_ext <<_ACEOF
24780 /* confdefs.h.  */
24781 _ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h.  */
24785 #include <math.h>
24786 int
24787 main ()
24788 {
24789  `for x in _ceilf _floorf; do echo "$x (0);"; done`
24790   ;
24791   return 0;
24792 }
24793 _ACEOF
24794 rm -f conftest.$ac_objext
24795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24796   (eval $ac_compile) 2>conftest.er1
24797   ac_status=$?
24798   grep -v '^ *+' conftest.er1 >conftest.err
24799   rm -f conftest.er1
24800   cat conftest.err >&5
24801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802   (exit $ac_status); } &&
24803          { ac_try='test -z "$ac_cxx_werror_flag"
24804                          || test ! -s conftest.err'
24805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806   (eval $ac_try) 2>&5
24807   ac_status=$?
24808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809   (exit $ac_status); }; } &&
24810          { ac_try='test -s conftest.$ac_objext'
24811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812   (eval $ac_try) 2>&5
24813   ac_status=$?
24814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815   (exit $ac_status); }; }; then
24816   glibcxx_cv_func__float_round_use=yes
24817 else
24818   echo "$as_me: failed program was:" >&5
24819 sed 's/^/| /' conftest.$ac_ext >&5
24820
24821 glibcxx_cv_func__float_round_use=no
24822 fi
24823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24824     ac_ext=c
24825 ac_cpp='$CPP $CPPFLAGS'
24826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24829
24830 fi
24831
24832   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
24833 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
24834   if test x$glibcxx_cv_func__float_round_use = x"yes"; then
24835
24836
24837 for ac_func in _ceilf _floorf
24838 do
24839 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24840 echo "$as_me:$LINENO: checking for $ac_func" >&5
24841 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24842 if eval "test \"\${$as_ac_var+set}\" = set"; then
24843   echo $ECHO_N "(cached) $ECHO_C" >&6
24844 else
24845   if test x$gcc_no_link = xyes; then
24846   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24848    { (exit 1); exit 1; }; }
24849 fi
24850 cat >conftest.$ac_ext <<_ACEOF
24851 /* confdefs.h.  */
24852 _ACEOF
24853 cat confdefs.h >>conftest.$ac_ext
24854 cat >>conftest.$ac_ext <<_ACEOF
24855 /* end confdefs.h.  */
24856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24858 #define $ac_func innocuous_$ac_func
24859
24860 /* System header to define __stub macros and hopefully few prototypes,
24861     which can conflict with char $ac_func (); below.
24862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24863     <limits.h> exists even on freestanding compilers.  */
24864
24865 #ifdef __STDC__
24866 # include <limits.h>
24867 #else
24868 # include <assert.h>
24869 #endif
24870
24871 #undef $ac_func
24872
24873 /* Override any gcc2 internal prototype to avoid an error.  */
24874 #ifdef __cplusplus
24875 extern "C"
24876 {
24877 #endif
24878 /* We use char because int might match the return type of a gcc2
24879    builtin and then its argument prototype would still apply.  */
24880 char $ac_func ();
24881 /* The GNU C library defines this for functions which it implements
24882     to always fail with ENOSYS.  Some functions are actually named
24883     something starting with __ and the normal name is an alias.  */
24884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24885 choke me
24886 #else
24887 char (*f) () = $ac_func;
24888 #endif
24889 #ifdef __cplusplus
24890 }
24891 #endif
24892
24893 int
24894 main ()
24895 {
24896 return f != $ac_func;
24897   ;
24898   return 0;
24899 }
24900 _ACEOF
24901 rm -f conftest.$ac_objext conftest$ac_exeext
24902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24903   (eval $ac_link) 2>conftest.er1
24904   ac_status=$?
24905   grep -v '^ *+' conftest.er1 >conftest.err
24906   rm -f conftest.er1
24907   cat conftest.err >&5
24908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909   (exit $ac_status); } &&
24910          { ac_try='test -z "$ac_c_werror_flag"
24911                          || test ! -s conftest.err'
24912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24913   (eval $ac_try) 2>&5
24914   ac_status=$?
24915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916   (exit $ac_status); }; } &&
24917          { ac_try='test -s conftest$ac_exeext'
24918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24919   (eval $ac_try) 2>&5
24920   ac_status=$?
24921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922   (exit $ac_status); }; }; then
24923   eval "$as_ac_var=yes"
24924 else
24925   echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24927
24928 eval "$as_ac_var=no"
24929 fi
24930 rm -f conftest.err conftest.$ac_objext \
24931       conftest$ac_exeext conftest.$ac_ext
24932 fi
24933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24935 if test `eval echo '${'$as_ac_var'}'` = yes; then
24936   cat >>confdefs.h <<_ACEOF
24937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24938 _ACEOF
24939
24940 fi
24941 done
24942
24943   fi
24944
24945
24946
24947   echo "$as_me:$LINENO: checking for _long double trig functions" >&5
24948 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
24949   if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
24950   echo $ECHO_N "(cached) $ECHO_C" >&6
24951 else
24952
24953
24954
24955     ac_ext=cc
24956 ac_cpp='$CXXCPP $CPPFLAGS'
24957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24960
24961     cat >conftest.$ac_ext <<_ACEOF
24962 /* confdefs.h.  */
24963 _ACEOF
24964 cat confdefs.h >>conftest.$ac_ext
24965 cat >>conftest.$ac_ext <<_ACEOF
24966 /* end confdefs.h.  */
24967 #include <math.h>
24968 int
24969 main ()
24970 {
24971  `for x in _acosl _asinl _atanl \
24972                                           _cosl _sinl _tanl \
24973                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done`
24974   ;
24975   return 0;
24976 }
24977 _ACEOF
24978 rm -f conftest.$ac_objext
24979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24980   (eval $ac_compile) 2>conftest.er1
24981   ac_status=$?
24982   grep -v '^ *+' conftest.er1 >conftest.err
24983   rm -f conftest.er1
24984   cat conftest.err >&5
24985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986   (exit $ac_status); } &&
24987          { ac_try='test -z "$ac_cxx_werror_flag"
24988                          || test ! -s conftest.err'
24989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990   (eval $ac_try) 2>&5
24991   ac_status=$?
24992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993   (exit $ac_status); }; } &&
24994          { ac_try='test -s conftest.$ac_objext'
24995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996   (eval $ac_try) 2>&5
24997   ac_status=$?
24998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999   (exit $ac_status); }; }; then
25000   glibcxx_cv_func__long_double_trig_use=yes
25001 else
25002   echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25004
25005 glibcxx_cv_func__long_double_trig_use=no
25006 fi
25007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25008     ac_ext=c
25009 ac_cpp='$CPP $CPPFLAGS'
25010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25013
25014 fi
25015
25016   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
25017 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
25018   if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028 for ac_func in _acosl _asinl _atanl \
25029                                           _cosl _sinl _tanl \
25030                                           _coshl _sinhl _tanhl
25031 do
25032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25033 echo "$as_me:$LINENO: checking for $ac_func" >&5
25034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25035 if eval "test \"\${$as_ac_var+set}\" = set"; then
25036   echo $ECHO_N "(cached) $ECHO_C" >&6
25037 else
25038   if test x$gcc_no_link = xyes; then
25039   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25040 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25041    { (exit 1); exit 1; }; }
25042 fi
25043 cat >conftest.$ac_ext <<_ACEOF
25044 /* confdefs.h.  */
25045 _ACEOF
25046 cat confdefs.h >>conftest.$ac_ext
25047 cat >>conftest.$ac_ext <<_ACEOF
25048 /* end confdefs.h.  */
25049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25051 #define $ac_func innocuous_$ac_func
25052
25053 /* System header to define __stub macros and hopefully few prototypes,
25054     which can conflict with char $ac_func (); below.
25055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25056     <limits.h> exists even on freestanding compilers.  */
25057
25058 #ifdef __STDC__
25059 # include <limits.h>
25060 #else
25061 # include <assert.h>
25062 #endif
25063
25064 #undef $ac_func
25065
25066 /* Override any gcc2 internal prototype to avoid an error.  */
25067 #ifdef __cplusplus
25068 extern "C"
25069 {
25070 #endif
25071 /* We use char because int might match the return type of a gcc2
25072    builtin and then its argument prototype would still apply.  */
25073 char $ac_func ();
25074 /* The GNU C library defines this for functions which it implements
25075     to always fail with ENOSYS.  Some functions are actually named
25076     something starting with __ and the normal name is an alias.  */
25077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25078 choke me
25079 #else
25080 char (*f) () = $ac_func;
25081 #endif
25082 #ifdef __cplusplus
25083 }
25084 #endif
25085
25086 int
25087 main ()
25088 {
25089 return f != $ac_func;
25090   ;
25091   return 0;
25092 }
25093 _ACEOF
25094 rm -f conftest.$ac_objext conftest$ac_exeext
25095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25096   (eval $ac_link) 2>conftest.er1
25097   ac_status=$?
25098   grep -v '^ *+' conftest.er1 >conftest.err
25099   rm -f conftest.er1
25100   cat conftest.err >&5
25101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102   (exit $ac_status); } &&
25103          { ac_try='test -z "$ac_c_werror_flag"
25104                          || test ! -s conftest.err'
25105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25106   (eval $ac_try) 2>&5
25107   ac_status=$?
25108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109   (exit $ac_status); }; } &&
25110          { ac_try='test -s conftest$ac_exeext'
25111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25112   (eval $ac_try) 2>&5
25113   ac_status=$?
25114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115   (exit $ac_status); }; }; then
25116   eval "$as_ac_var=yes"
25117 else
25118   echo "$as_me: failed program was:" >&5
25119 sed 's/^/| /' conftest.$ac_ext >&5
25120
25121 eval "$as_ac_var=no"
25122 fi
25123 rm -f conftest.err conftest.$ac_objext \
25124       conftest$ac_exeext conftest.$ac_ext
25125 fi
25126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25128 if test `eval echo '${'$as_ac_var'}'` = yes; then
25129   cat >>confdefs.h <<_ACEOF
25130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25131 _ACEOF
25132
25133 fi
25134 done
25135
25136   fi
25137
25138
25139   echo "$as_me:$LINENO: checking for _long double round functions" >&5
25140 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
25141   if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
25142   echo $ECHO_N "(cached) $ECHO_C" >&6
25143 else
25144
25145
25146
25147     ac_ext=cc
25148 ac_cpp='$CXXCPP $CPPFLAGS'
25149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25152
25153     cat >conftest.$ac_ext <<_ACEOF
25154 /* confdefs.h.  */
25155 _ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h.  */
25159 #include <math.h>
25160 int
25161 main ()
25162 {
25163  `for x in _ceill _floorl; do echo "$x (0);"; done`
25164   ;
25165   return 0;
25166 }
25167 _ACEOF
25168 rm -f conftest.$ac_objext
25169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25170   (eval $ac_compile) 2>conftest.er1
25171   ac_status=$?
25172   grep -v '^ *+' conftest.er1 >conftest.err
25173   rm -f conftest.er1
25174   cat conftest.err >&5
25175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25176   (exit $ac_status); } &&
25177          { ac_try='test -z "$ac_cxx_werror_flag"
25178                          || test ! -s conftest.err'
25179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180   (eval $ac_try) 2>&5
25181   ac_status=$?
25182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183   (exit $ac_status); }; } &&
25184          { ac_try='test -s conftest.$ac_objext'
25185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186   (eval $ac_try) 2>&5
25187   ac_status=$?
25188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189   (exit $ac_status); }; }; then
25190   glibcxx_cv_func__long_double_round_use=yes
25191 else
25192   echo "$as_me: failed program was:" >&5
25193 sed 's/^/| /' conftest.$ac_ext >&5
25194
25195 glibcxx_cv_func__long_double_round_use=no
25196 fi
25197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25198     ac_ext=c
25199 ac_cpp='$CPP $CPPFLAGS'
25200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25203
25204 fi
25205
25206   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
25207 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
25208   if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
25209
25210
25211 for ac_func in _ceill _floorl
25212 do
25213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25214 echo "$as_me:$LINENO: checking for $ac_func" >&5
25215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25216 if eval "test \"\${$as_ac_var+set}\" = set"; then
25217   echo $ECHO_N "(cached) $ECHO_C" >&6
25218 else
25219   if test x$gcc_no_link = xyes; then
25220   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25221 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25222    { (exit 1); exit 1; }; }
25223 fi
25224 cat >conftest.$ac_ext <<_ACEOF
25225 /* confdefs.h.  */
25226 _ACEOF
25227 cat confdefs.h >>conftest.$ac_ext
25228 cat >>conftest.$ac_ext <<_ACEOF
25229 /* end confdefs.h.  */
25230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25232 #define $ac_func innocuous_$ac_func
25233
25234 /* System header to define __stub macros and hopefully few prototypes,
25235     which can conflict with char $ac_func (); below.
25236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25237     <limits.h> exists even on freestanding compilers.  */
25238
25239 #ifdef __STDC__
25240 # include <limits.h>
25241 #else
25242 # include <assert.h>
25243 #endif
25244
25245 #undef $ac_func
25246
25247 /* Override any gcc2 internal prototype to avoid an error.  */
25248 #ifdef __cplusplus
25249 extern "C"
25250 {
25251 #endif
25252 /* We use char because int might match the return type of a gcc2
25253    builtin and then its argument prototype would still apply.  */
25254 char $ac_func ();
25255 /* The GNU C library defines this for functions which it implements
25256     to always fail with ENOSYS.  Some functions are actually named
25257     something starting with __ and the normal name is an alias.  */
25258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25259 choke me
25260 #else
25261 char (*f) () = $ac_func;
25262 #endif
25263 #ifdef __cplusplus
25264 }
25265 #endif
25266
25267 int
25268 main ()
25269 {
25270 return f != $ac_func;
25271   ;
25272   return 0;
25273 }
25274 _ACEOF
25275 rm -f conftest.$ac_objext conftest$ac_exeext
25276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25277   (eval $ac_link) 2>conftest.er1
25278   ac_status=$?
25279   grep -v '^ *+' conftest.er1 >conftest.err
25280   rm -f conftest.er1
25281   cat conftest.err >&5
25282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283   (exit $ac_status); } &&
25284          { ac_try='test -z "$ac_c_werror_flag"
25285                          || test ! -s conftest.err'
25286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25287   (eval $ac_try) 2>&5
25288   ac_status=$?
25289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25290   (exit $ac_status); }; } &&
25291          { ac_try='test -s conftest$ac_exeext'
25292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25293   (eval $ac_try) 2>&5
25294   ac_status=$?
25295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296   (exit $ac_status); }; }; then
25297   eval "$as_ac_var=yes"
25298 else
25299   echo "$as_me: failed program was:" >&5
25300 sed 's/^/| /' conftest.$ac_ext >&5
25301
25302 eval "$as_ac_var=no"
25303 fi
25304 rm -f conftest.err conftest.$ac_objext \
25305       conftest$ac_exeext conftest.$ac_ext
25306 fi
25307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25309 if test `eval echo '${'$as_ac_var'}'` = yes; then
25310   cat >>confdefs.h <<_ACEOF
25311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25312 _ACEOF
25313
25314 fi
25315 done
25316
25317   fi
25318
25319
25320   LIBS="$ac_save_LIBS"
25321   CXXFLAGS="$ac_save_CXXFLAGS"
25322
25323
25324
25325   echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
25326 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
25327   if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
25328     if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
25329   echo $ECHO_N "(cached) $ECHO_C" >&6
25330 else
25331
25332
25333
25334       ac_ext=cc
25335 ac_cpp='$CXXCPP $CPPFLAGS'
25336 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25337 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25338 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25339
25340       cat >conftest.$ac_ext <<_ACEOF
25341 /* confdefs.h.  */
25342 _ACEOF
25343 cat confdefs.h >>conftest.$ac_ext
25344 cat >>conftest.$ac_ext <<_ACEOF
25345 /* end confdefs.h.  */
25346 #include <math.h>
25347 int
25348 main ()
25349 {
25350  __builtin_abs(0);
25351   ;
25352   return 0;
25353 }
25354 _ACEOF
25355 rm -f conftest.$ac_objext
25356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25357   (eval $ac_compile) 2>conftest.er1
25358   ac_status=$?
25359   grep -v '^ *+' conftest.er1 >conftest.err
25360   rm -f conftest.er1
25361   cat conftest.err >&5
25362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363   (exit $ac_status); } &&
25364          { ac_try='test -z "$ac_cxx_werror_flag"
25365                          || test ! -s conftest.err'
25366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25367   (eval $ac_try) 2>&5
25368   ac_status=$?
25369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370   (exit $ac_status); }; } &&
25371          { ac_try='test -s conftest.$ac_objext'
25372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25373   (eval $ac_try) 2>&5
25374   ac_status=$?
25375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376   (exit $ac_status); }; }; then
25377   glibcxx_cv_func___builtin_abs_use=yes
25378 else
25379   echo "$as_me: failed program was:" >&5
25380 sed 's/^/| /' conftest.$ac_ext >&5
25381
25382 glibcxx_cv_func___builtin_abs_use=no
25383 fi
25384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25385       ac_ext=c
25386 ac_cpp='$CPP $CPPFLAGS'
25387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25390
25391
25392 fi
25393
25394   fi
25395   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
25396 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
25397   if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
25398     echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
25399 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
25400     if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
25401       if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
25402   echo $ECHO_N "(cached) $ECHO_C" >&6
25403 else
25404
25405         if test x$gcc_no_link = xyes; then
25406   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25407 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25408    { (exit 1); exit 1; }; }
25409 fi
25410 cat >conftest.$ac_ext <<_ACEOF
25411 /* confdefs.h.  */
25412 _ACEOF
25413 cat confdefs.h >>conftest.$ac_ext
25414 cat >>conftest.$ac_ext <<_ACEOF
25415 /* end confdefs.h.  */
25416 #include <math.h>
25417 int
25418 main ()
25419 {
25420  __builtin_abs(0);
25421   ;
25422   return 0;
25423 }
25424 _ACEOF
25425 rm -f conftest.$ac_objext conftest$ac_exeext
25426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25427   (eval $ac_link) 2>conftest.er1
25428   ac_status=$?
25429   grep -v '^ *+' conftest.er1 >conftest.err
25430   rm -f conftest.er1
25431   cat conftest.err >&5
25432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433   (exit $ac_status); } &&
25434          { ac_try='test -z "$ac_c_werror_flag"
25435                          || test ! -s conftest.err'
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); }; } &&
25441          { ac_try='test -s conftest$ac_exeext'
25442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25443   (eval $ac_try) 2>&5
25444   ac_status=$?
25445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446   (exit $ac_status); }; }; then
25447   glibcxx_cv_func___builtin_abs_link=yes
25448 else
25449   echo "$as_me: failed program was:" >&5
25450 sed 's/^/| /' conftest.$ac_ext >&5
25451
25452 glibcxx_cv_func___builtin_abs_link=no
25453 fi
25454 rm -f conftest.err conftest.$ac_objext \
25455       conftest$ac_exeext conftest.$ac_ext
25456
25457 fi
25458
25459     fi
25460     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
25461 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
25462     if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
25463       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25464       cat >>confdefs.h <<_ACEOF
25465 #define ${ac_tr_func} 1
25466 _ACEOF
25467
25468     fi
25469   fi
25470
25471
25472   echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
25473 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
25474   if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
25475     if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
25476   echo $ECHO_N "(cached) $ECHO_C" >&6
25477 else
25478
25479
25480
25481       ac_ext=cc
25482 ac_cpp='$CXXCPP $CPPFLAGS'
25483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25486
25487       cat >conftest.$ac_ext <<_ACEOF
25488 /* confdefs.h.  */
25489 _ACEOF
25490 cat confdefs.h >>conftest.$ac_ext
25491 cat >>conftest.$ac_ext <<_ACEOF
25492 /* end confdefs.h.  */
25493 #include <math.h>
25494 int
25495 main ()
25496 {
25497  __builtin_fabsf(0);
25498   ;
25499   return 0;
25500 }
25501 _ACEOF
25502 rm -f conftest.$ac_objext
25503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25504   (eval $ac_compile) 2>conftest.er1
25505   ac_status=$?
25506   grep -v '^ *+' conftest.er1 >conftest.err
25507   rm -f conftest.er1
25508   cat conftest.err >&5
25509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510   (exit $ac_status); } &&
25511          { ac_try='test -z "$ac_cxx_werror_flag"
25512                          || test ! -s conftest.err'
25513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25514   (eval $ac_try) 2>&5
25515   ac_status=$?
25516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517   (exit $ac_status); }; } &&
25518          { ac_try='test -s conftest.$ac_objext'
25519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25520   (eval $ac_try) 2>&5
25521   ac_status=$?
25522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523   (exit $ac_status); }; }; then
25524   glibcxx_cv_func___builtin_fabsf_use=yes
25525 else
25526   echo "$as_me: failed program was:" >&5
25527 sed 's/^/| /' conftest.$ac_ext >&5
25528
25529 glibcxx_cv_func___builtin_fabsf_use=no
25530 fi
25531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25532       ac_ext=c
25533 ac_cpp='$CPP $CPPFLAGS'
25534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25537
25538
25539 fi
25540
25541   fi
25542   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
25543 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
25544   if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
25545     echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
25546 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
25547     if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
25548       if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
25549   echo $ECHO_N "(cached) $ECHO_C" >&6
25550 else
25551
25552         if test x$gcc_no_link = xyes; then
25553   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25554 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25555    { (exit 1); exit 1; }; }
25556 fi
25557 cat >conftest.$ac_ext <<_ACEOF
25558 /* confdefs.h.  */
25559 _ACEOF
25560 cat confdefs.h >>conftest.$ac_ext
25561 cat >>conftest.$ac_ext <<_ACEOF
25562 /* end confdefs.h.  */
25563 #include <math.h>
25564 int
25565 main ()
25566 {
25567  __builtin_fabsf(0);
25568   ;
25569   return 0;
25570 }
25571 _ACEOF
25572 rm -f conftest.$ac_objext conftest$ac_exeext
25573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25574   (eval $ac_link) 2>conftest.er1
25575   ac_status=$?
25576   grep -v '^ *+' conftest.er1 >conftest.err
25577   rm -f conftest.er1
25578   cat conftest.err >&5
25579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580   (exit $ac_status); } &&
25581          { ac_try='test -z "$ac_c_werror_flag"
25582                          || test ! -s conftest.err'
25583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25584   (eval $ac_try) 2>&5
25585   ac_status=$?
25586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587   (exit $ac_status); }; } &&
25588          { ac_try='test -s conftest$ac_exeext'
25589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590   (eval $ac_try) 2>&5
25591   ac_status=$?
25592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593   (exit $ac_status); }; }; then
25594   glibcxx_cv_func___builtin_fabsf_link=yes
25595 else
25596   echo "$as_me: failed program was:" >&5
25597 sed 's/^/| /' conftest.$ac_ext >&5
25598
25599 glibcxx_cv_func___builtin_fabsf_link=no
25600 fi
25601 rm -f conftest.err conftest.$ac_objext \
25602       conftest$ac_exeext conftest.$ac_ext
25603
25604 fi
25605
25606     fi
25607     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
25608 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
25609     if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
25610       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25611       cat >>confdefs.h <<_ACEOF
25612 #define ${ac_tr_func} 1
25613 _ACEOF
25614
25615     fi
25616   fi
25617
25618
25619   echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
25620 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
25621   if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
25622     if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
25623   echo $ECHO_N "(cached) $ECHO_C" >&6
25624 else
25625
25626
25627
25628       ac_ext=cc
25629 ac_cpp='$CXXCPP $CPPFLAGS'
25630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25633
25634       cat >conftest.$ac_ext <<_ACEOF
25635 /* confdefs.h.  */
25636 _ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h.  */
25640 #include <math.h>
25641 int
25642 main ()
25643 {
25644  __builtin_fabs(0);
25645   ;
25646   return 0;
25647 }
25648 _ACEOF
25649 rm -f conftest.$ac_objext
25650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25651   (eval $ac_compile) 2>conftest.er1
25652   ac_status=$?
25653   grep -v '^ *+' conftest.er1 >conftest.err
25654   rm -f conftest.er1
25655   cat conftest.err >&5
25656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657   (exit $ac_status); } &&
25658          { ac_try='test -z "$ac_cxx_werror_flag"
25659                          || test ! -s conftest.err'
25660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25661   (eval $ac_try) 2>&5
25662   ac_status=$?
25663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664   (exit $ac_status); }; } &&
25665          { ac_try='test -s conftest.$ac_objext'
25666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25667   (eval $ac_try) 2>&5
25668   ac_status=$?
25669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670   (exit $ac_status); }; }; then
25671   glibcxx_cv_func___builtin_fabs_use=yes
25672 else
25673   echo "$as_me: failed program was:" >&5
25674 sed 's/^/| /' conftest.$ac_ext >&5
25675
25676 glibcxx_cv_func___builtin_fabs_use=no
25677 fi
25678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25679       ac_ext=c
25680 ac_cpp='$CPP $CPPFLAGS'
25681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25684
25685
25686 fi
25687
25688   fi
25689   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
25690 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
25691   if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
25692     echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
25693 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
25694     if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
25695       if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
25696   echo $ECHO_N "(cached) $ECHO_C" >&6
25697 else
25698
25699         if test x$gcc_no_link = xyes; then
25700   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25701 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25702    { (exit 1); exit 1; }; }
25703 fi
25704 cat >conftest.$ac_ext <<_ACEOF
25705 /* confdefs.h.  */
25706 _ACEOF
25707 cat confdefs.h >>conftest.$ac_ext
25708 cat >>conftest.$ac_ext <<_ACEOF
25709 /* end confdefs.h.  */
25710 #include <math.h>
25711 int
25712 main ()
25713 {
25714  __builtin_fabs(0);
25715   ;
25716   return 0;
25717 }
25718 _ACEOF
25719 rm -f conftest.$ac_objext conftest$ac_exeext
25720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25721   (eval $ac_link) 2>conftest.er1
25722   ac_status=$?
25723   grep -v '^ *+' conftest.er1 >conftest.err
25724   rm -f conftest.er1
25725   cat conftest.err >&5
25726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727   (exit $ac_status); } &&
25728          { ac_try='test -z "$ac_c_werror_flag"
25729                          || test ! -s conftest.err'
25730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25731   (eval $ac_try) 2>&5
25732   ac_status=$?
25733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734   (exit $ac_status); }; } &&
25735          { ac_try='test -s conftest$ac_exeext'
25736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737   (eval $ac_try) 2>&5
25738   ac_status=$?
25739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740   (exit $ac_status); }; }; then
25741   glibcxx_cv_func___builtin_fabs_link=yes
25742 else
25743   echo "$as_me: failed program was:" >&5
25744 sed 's/^/| /' conftest.$ac_ext >&5
25745
25746 glibcxx_cv_func___builtin_fabs_link=no
25747 fi
25748 rm -f conftest.err conftest.$ac_objext \
25749       conftest$ac_exeext conftest.$ac_ext
25750
25751 fi
25752
25753     fi
25754     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
25755 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
25756     if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
25757       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25758       cat >>confdefs.h <<_ACEOF
25759 #define ${ac_tr_func} 1
25760 _ACEOF
25761
25762     fi
25763   fi
25764
25765
25766   echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
25767 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
25768   if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
25769     if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
25770   echo $ECHO_N "(cached) $ECHO_C" >&6
25771 else
25772
25773
25774
25775       ac_ext=cc
25776 ac_cpp='$CXXCPP $CPPFLAGS'
25777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25780
25781       cat >conftest.$ac_ext <<_ACEOF
25782 /* confdefs.h.  */
25783 _ACEOF
25784 cat confdefs.h >>conftest.$ac_ext
25785 cat >>conftest.$ac_ext <<_ACEOF
25786 /* end confdefs.h.  */
25787 #include <math.h>
25788 int
25789 main ()
25790 {
25791  __builtin_fabsl(0);
25792   ;
25793   return 0;
25794 }
25795 _ACEOF
25796 rm -f conftest.$ac_objext
25797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25798   (eval $ac_compile) 2>conftest.er1
25799   ac_status=$?
25800   grep -v '^ *+' conftest.er1 >conftest.err
25801   rm -f conftest.er1
25802   cat conftest.err >&5
25803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804   (exit $ac_status); } &&
25805          { ac_try='test -z "$ac_cxx_werror_flag"
25806                          || test ! -s conftest.err'
25807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808   (eval $ac_try) 2>&5
25809   ac_status=$?
25810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811   (exit $ac_status); }; } &&
25812          { ac_try='test -s conftest.$ac_objext'
25813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25814   (eval $ac_try) 2>&5
25815   ac_status=$?
25816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817   (exit $ac_status); }; }; then
25818   glibcxx_cv_func___builtin_fabsl_use=yes
25819 else
25820   echo "$as_me: failed program was:" >&5
25821 sed 's/^/| /' conftest.$ac_ext >&5
25822
25823 glibcxx_cv_func___builtin_fabsl_use=no
25824 fi
25825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25826       ac_ext=c
25827 ac_cpp='$CPP $CPPFLAGS'
25828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25831
25832
25833 fi
25834
25835   fi
25836   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
25837 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
25838   if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
25839     echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
25840 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
25841     if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
25842       if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
25843   echo $ECHO_N "(cached) $ECHO_C" >&6
25844 else
25845
25846         if test x$gcc_no_link = xyes; then
25847   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25848 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25849    { (exit 1); exit 1; }; }
25850 fi
25851 cat >conftest.$ac_ext <<_ACEOF
25852 /* confdefs.h.  */
25853 _ACEOF
25854 cat confdefs.h >>conftest.$ac_ext
25855 cat >>conftest.$ac_ext <<_ACEOF
25856 /* end confdefs.h.  */
25857 #include <math.h>
25858 int
25859 main ()
25860 {
25861  __builtin_fabsl(0);
25862   ;
25863   return 0;
25864 }
25865 _ACEOF
25866 rm -f conftest.$ac_objext conftest$ac_exeext
25867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25868   (eval $ac_link) 2>conftest.er1
25869   ac_status=$?
25870   grep -v '^ *+' conftest.er1 >conftest.err
25871   rm -f conftest.er1
25872   cat conftest.err >&5
25873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874   (exit $ac_status); } &&
25875          { ac_try='test -z "$ac_c_werror_flag"
25876                          || test ! -s conftest.err'
25877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25878   (eval $ac_try) 2>&5
25879   ac_status=$?
25880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881   (exit $ac_status); }; } &&
25882          { ac_try='test -s conftest$ac_exeext'
25883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25884   (eval $ac_try) 2>&5
25885   ac_status=$?
25886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887   (exit $ac_status); }; }; then
25888   glibcxx_cv_func___builtin_fabsl_link=yes
25889 else
25890   echo "$as_me: failed program was:" >&5
25891 sed 's/^/| /' conftest.$ac_ext >&5
25892
25893 glibcxx_cv_func___builtin_fabsl_link=no
25894 fi
25895 rm -f conftest.err conftest.$ac_objext \
25896       conftest$ac_exeext conftest.$ac_ext
25897
25898 fi
25899
25900     fi
25901     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
25902 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
25903     if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
25904       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
25905       cat >>confdefs.h <<_ACEOF
25906 #define ${ac_tr_func} 1
25907 _ACEOF
25908
25909     fi
25910   fi
25911
25912
25913   echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
25914 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
25915   if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
25916     if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
25917   echo $ECHO_N "(cached) $ECHO_C" >&6
25918 else
25919
25920
25921
25922       ac_ext=cc
25923 ac_cpp='$CXXCPP $CPPFLAGS'
25924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25927
25928       cat >conftest.$ac_ext <<_ACEOF
25929 /* confdefs.h.  */
25930 _ACEOF
25931 cat confdefs.h >>conftest.$ac_ext
25932 cat >>conftest.$ac_ext <<_ACEOF
25933 /* end confdefs.h.  */
25934 #include <math.h>
25935 int
25936 main ()
25937 {
25938  __builtin_labs(0);
25939   ;
25940   return 0;
25941 }
25942 _ACEOF
25943 rm -f conftest.$ac_objext
25944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25945   (eval $ac_compile) 2>conftest.er1
25946   ac_status=$?
25947   grep -v '^ *+' conftest.er1 >conftest.err
25948   rm -f conftest.er1
25949   cat conftest.err >&5
25950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951   (exit $ac_status); } &&
25952          { ac_try='test -z "$ac_cxx_werror_flag"
25953                          || test ! -s conftest.err'
25954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25955   (eval $ac_try) 2>&5
25956   ac_status=$?
25957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958   (exit $ac_status); }; } &&
25959          { ac_try='test -s conftest.$ac_objext'
25960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25961   (eval $ac_try) 2>&5
25962   ac_status=$?
25963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964   (exit $ac_status); }; }; then
25965   glibcxx_cv_func___builtin_labs_use=yes
25966 else
25967   echo "$as_me: failed program was:" >&5
25968 sed 's/^/| /' conftest.$ac_ext >&5
25969
25970 glibcxx_cv_func___builtin_labs_use=no
25971 fi
25972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25973       ac_ext=c
25974 ac_cpp='$CPP $CPPFLAGS'
25975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25978
25979
25980 fi
25981
25982   fi
25983   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
25984 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
25985   if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
25986     echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
25987 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
25988     if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
25989       if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
25990   echo $ECHO_N "(cached) $ECHO_C" >&6
25991 else
25992
25993         if test x$gcc_no_link = xyes; then
25994   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25996    { (exit 1); exit 1; }; }
25997 fi
25998 cat >conftest.$ac_ext <<_ACEOF
25999 /* confdefs.h.  */
26000 _ACEOF
26001 cat confdefs.h >>conftest.$ac_ext
26002 cat >>conftest.$ac_ext <<_ACEOF
26003 /* end confdefs.h.  */
26004 #include <math.h>
26005 int
26006 main ()
26007 {
26008  __builtin_labs(0);
26009   ;
26010   return 0;
26011 }
26012 _ACEOF
26013 rm -f conftest.$ac_objext conftest$ac_exeext
26014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26015   (eval $ac_link) 2>conftest.er1
26016   ac_status=$?
26017   grep -v '^ *+' conftest.er1 >conftest.err
26018   rm -f conftest.er1
26019   cat conftest.err >&5
26020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021   (exit $ac_status); } &&
26022          { ac_try='test -z "$ac_c_werror_flag"
26023                          || test ! -s conftest.err'
26024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26025   (eval $ac_try) 2>&5
26026   ac_status=$?
26027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26028   (exit $ac_status); }; } &&
26029          { ac_try='test -s conftest$ac_exeext'
26030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26031   (eval $ac_try) 2>&5
26032   ac_status=$?
26033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034   (exit $ac_status); }; }; then
26035   glibcxx_cv_func___builtin_labs_link=yes
26036 else
26037   echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.$ac_ext >&5
26039
26040 glibcxx_cv_func___builtin_labs_link=no
26041 fi
26042 rm -f conftest.err conftest.$ac_objext \
26043       conftest$ac_exeext conftest.$ac_ext
26044
26045 fi
26046
26047     fi
26048     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
26049 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
26050     if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
26051       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26052       cat >>confdefs.h <<_ACEOF
26053 #define ${ac_tr_func} 1
26054 _ACEOF
26055
26056     fi
26057   fi
26058
26059
26060
26061   echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
26062 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
26063   if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
26064     if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
26065   echo $ECHO_N "(cached) $ECHO_C" >&6
26066 else
26067
26068
26069
26070       ac_ext=cc
26071 ac_cpp='$CXXCPP $CPPFLAGS'
26072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26075
26076       cat >conftest.$ac_ext <<_ACEOF
26077 /* confdefs.h.  */
26078 _ACEOF
26079 cat confdefs.h >>conftest.$ac_ext
26080 cat >>conftest.$ac_ext <<_ACEOF
26081 /* end confdefs.h.  */
26082 #include <math.h>
26083 int
26084 main ()
26085 {
26086  __builtin_sqrtf(0);
26087   ;
26088   return 0;
26089 }
26090 _ACEOF
26091 rm -f conftest.$ac_objext
26092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26093   (eval $ac_compile) 2>conftest.er1
26094   ac_status=$?
26095   grep -v '^ *+' conftest.er1 >conftest.err
26096   rm -f conftest.er1
26097   cat conftest.err >&5
26098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099   (exit $ac_status); } &&
26100          { ac_try='test -z "$ac_cxx_werror_flag"
26101                          || test ! -s conftest.err'
26102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26103   (eval $ac_try) 2>&5
26104   ac_status=$?
26105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106   (exit $ac_status); }; } &&
26107          { ac_try='test -s conftest.$ac_objext'
26108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109   (eval $ac_try) 2>&5
26110   ac_status=$?
26111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112   (exit $ac_status); }; }; then
26113   glibcxx_cv_func___builtin_sqrtf_use=yes
26114 else
26115   echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26117
26118 glibcxx_cv_func___builtin_sqrtf_use=no
26119 fi
26120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26121       ac_ext=c
26122 ac_cpp='$CPP $CPPFLAGS'
26123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26126
26127
26128 fi
26129
26130   fi
26131   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
26132 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
26133   if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
26134     echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
26135 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
26136     if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
26137       if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
26138   echo $ECHO_N "(cached) $ECHO_C" >&6
26139 else
26140
26141         if test x$gcc_no_link = xyes; then
26142   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26143 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26144    { (exit 1); exit 1; }; }
26145 fi
26146 cat >conftest.$ac_ext <<_ACEOF
26147 /* confdefs.h.  */
26148 _ACEOF
26149 cat confdefs.h >>conftest.$ac_ext
26150 cat >>conftest.$ac_ext <<_ACEOF
26151 /* end confdefs.h.  */
26152 #include <math.h>
26153 int
26154 main ()
26155 {
26156  __builtin_sqrtf(0);
26157   ;
26158   return 0;
26159 }
26160 _ACEOF
26161 rm -f conftest.$ac_objext conftest$ac_exeext
26162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26163   (eval $ac_link) 2>conftest.er1
26164   ac_status=$?
26165   grep -v '^ *+' conftest.er1 >conftest.err
26166   rm -f conftest.er1
26167   cat conftest.err >&5
26168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169   (exit $ac_status); } &&
26170          { ac_try='test -z "$ac_c_werror_flag"
26171                          || test ! -s conftest.err'
26172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26173   (eval $ac_try) 2>&5
26174   ac_status=$?
26175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176   (exit $ac_status); }; } &&
26177          { ac_try='test -s conftest$ac_exeext'
26178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26179   (eval $ac_try) 2>&5
26180   ac_status=$?
26181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182   (exit $ac_status); }; }; then
26183   glibcxx_cv_func___builtin_sqrtf_link=yes
26184 else
26185   echo "$as_me: failed program was:" >&5
26186 sed 's/^/| /' conftest.$ac_ext >&5
26187
26188 glibcxx_cv_func___builtin_sqrtf_link=no
26189 fi
26190 rm -f conftest.err conftest.$ac_objext \
26191       conftest$ac_exeext conftest.$ac_ext
26192
26193 fi
26194
26195     fi
26196     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
26197 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
26198     if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
26199       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26200       cat >>confdefs.h <<_ACEOF
26201 #define ${ac_tr_func} 1
26202 _ACEOF
26203
26204     fi
26205   fi
26206
26207
26208   echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
26209 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
26210   if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
26211     if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
26212   echo $ECHO_N "(cached) $ECHO_C" >&6
26213 else
26214
26215
26216
26217       ac_ext=cc
26218 ac_cpp='$CXXCPP $CPPFLAGS'
26219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26222
26223       cat >conftest.$ac_ext <<_ACEOF
26224 /* confdefs.h.  */
26225 _ACEOF
26226 cat confdefs.h >>conftest.$ac_ext
26227 cat >>conftest.$ac_ext <<_ACEOF
26228 /* end confdefs.h.  */
26229 #include <math.h>
26230 int
26231 main ()
26232 {
26233  __builtin_sqrt(0);
26234   ;
26235   return 0;
26236 }
26237 _ACEOF
26238 rm -f conftest.$ac_objext
26239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26240   (eval $ac_compile) 2>conftest.er1
26241   ac_status=$?
26242   grep -v '^ *+' conftest.er1 >conftest.err
26243   rm -f conftest.er1
26244   cat conftest.err >&5
26245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26246   (exit $ac_status); } &&
26247          { ac_try='test -z "$ac_cxx_werror_flag"
26248                          || test ! -s conftest.err'
26249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26250   (eval $ac_try) 2>&5
26251   ac_status=$?
26252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253   (exit $ac_status); }; } &&
26254          { ac_try='test -s conftest.$ac_objext'
26255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256   (eval $ac_try) 2>&5
26257   ac_status=$?
26258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259   (exit $ac_status); }; }; then
26260   glibcxx_cv_func___builtin_sqrt_use=yes
26261 else
26262   echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26264
26265 glibcxx_cv_func___builtin_sqrt_use=no
26266 fi
26267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26268       ac_ext=c
26269 ac_cpp='$CPP $CPPFLAGS'
26270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26273
26274
26275 fi
26276
26277   fi
26278   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
26279 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
26280   if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
26281     echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
26282 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
26283     if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
26284       if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
26285   echo $ECHO_N "(cached) $ECHO_C" >&6
26286 else
26287
26288         if test x$gcc_no_link = xyes; then
26289   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26290 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26291    { (exit 1); exit 1; }; }
26292 fi
26293 cat >conftest.$ac_ext <<_ACEOF
26294 /* confdefs.h.  */
26295 _ACEOF
26296 cat confdefs.h >>conftest.$ac_ext
26297 cat >>conftest.$ac_ext <<_ACEOF
26298 /* end confdefs.h.  */
26299 #include <math.h>
26300 int
26301 main ()
26302 {
26303  __builtin_sqrt(0);
26304   ;
26305   return 0;
26306 }
26307 _ACEOF
26308 rm -f conftest.$ac_objext conftest$ac_exeext
26309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26310   (eval $ac_link) 2>conftest.er1
26311   ac_status=$?
26312   grep -v '^ *+' conftest.er1 >conftest.err
26313   rm -f conftest.er1
26314   cat conftest.err >&5
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); } &&
26317          { ac_try='test -z "$ac_c_werror_flag"
26318                          || test ! -s conftest.err'
26319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26320   (eval $ac_try) 2>&5
26321   ac_status=$?
26322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323   (exit $ac_status); }; } &&
26324          { ac_try='test -s conftest$ac_exeext'
26325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26326   (eval $ac_try) 2>&5
26327   ac_status=$?
26328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329   (exit $ac_status); }; }; then
26330   glibcxx_cv_func___builtin_sqrt_link=yes
26331 else
26332   echo "$as_me: failed program was:" >&5
26333 sed 's/^/| /' conftest.$ac_ext >&5
26334
26335 glibcxx_cv_func___builtin_sqrt_link=no
26336 fi
26337 rm -f conftest.err conftest.$ac_objext \
26338       conftest$ac_exeext conftest.$ac_ext
26339
26340 fi
26341
26342     fi
26343     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
26344 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
26345     if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
26346       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26347       cat >>confdefs.h <<_ACEOF
26348 #define ${ac_tr_func} 1
26349 _ACEOF
26350
26351     fi
26352   fi
26353
26354
26355   echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
26356 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
26357   if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
26358     if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
26359   echo $ECHO_N "(cached) $ECHO_C" >&6
26360 else
26361
26362
26363
26364       ac_ext=cc
26365 ac_cpp='$CXXCPP $CPPFLAGS'
26366 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26367 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26368 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26369
26370       cat >conftest.$ac_ext <<_ACEOF
26371 /* confdefs.h.  */
26372 _ACEOF
26373 cat confdefs.h >>conftest.$ac_ext
26374 cat >>conftest.$ac_ext <<_ACEOF
26375 /* end confdefs.h.  */
26376 #include <math.h>
26377 int
26378 main ()
26379 {
26380  __builtin_sqrtl(0);
26381   ;
26382   return 0;
26383 }
26384 _ACEOF
26385 rm -f conftest.$ac_objext
26386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26387   (eval $ac_compile) 2>conftest.er1
26388   ac_status=$?
26389   grep -v '^ *+' conftest.er1 >conftest.err
26390   rm -f conftest.er1
26391   cat conftest.err >&5
26392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393   (exit $ac_status); } &&
26394          { ac_try='test -z "$ac_cxx_werror_flag"
26395                          || test ! -s conftest.err'
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); }; } &&
26401          { ac_try='test -s conftest.$ac_objext'
26402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26403   (eval $ac_try) 2>&5
26404   ac_status=$?
26405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406   (exit $ac_status); }; }; then
26407   glibcxx_cv_func___builtin_sqrtl_use=yes
26408 else
26409   echo "$as_me: failed program was:" >&5
26410 sed 's/^/| /' conftest.$ac_ext >&5
26411
26412 glibcxx_cv_func___builtin_sqrtl_use=no
26413 fi
26414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26415       ac_ext=c
26416 ac_cpp='$CPP $CPPFLAGS'
26417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26420
26421
26422 fi
26423
26424   fi
26425   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
26426 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
26427   if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
26428     echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
26429 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
26430     if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
26431       if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
26432   echo $ECHO_N "(cached) $ECHO_C" >&6
26433 else
26434
26435         if test x$gcc_no_link = xyes; then
26436   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26437 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26438    { (exit 1); exit 1; }; }
26439 fi
26440 cat >conftest.$ac_ext <<_ACEOF
26441 /* confdefs.h.  */
26442 _ACEOF
26443 cat confdefs.h >>conftest.$ac_ext
26444 cat >>conftest.$ac_ext <<_ACEOF
26445 /* end confdefs.h.  */
26446 #include <math.h>
26447 int
26448 main ()
26449 {
26450  __builtin_sqrtl(0);
26451   ;
26452   return 0;
26453 }
26454 _ACEOF
26455 rm -f conftest.$ac_objext conftest$ac_exeext
26456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26457   (eval $ac_link) 2>conftest.er1
26458   ac_status=$?
26459   grep -v '^ *+' conftest.er1 >conftest.err
26460   rm -f conftest.er1
26461   cat conftest.err >&5
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); } &&
26464          { ac_try='test -z "$ac_c_werror_flag"
26465                          || test ! -s conftest.err'
26466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26467   (eval $ac_try) 2>&5
26468   ac_status=$?
26469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26470   (exit $ac_status); }; } &&
26471          { ac_try='test -s conftest$ac_exeext'
26472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26473   (eval $ac_try) 2>&5
26474   ac_status=$?
26475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26476   (exit $ac_status); }; }; then
26477   glibcxx_cv_func___builtin_sqrtl_link=yes
26478 else
26479   echo "$as_me: failed program was:" >&5
26480 sed 's/^/| /' conftest.$ac_ext >&5
26481
26482 glibcxx_cv_func___builtin_sqrtl_link=no
26483 fi
26484 rm -f conftest.err conftest.$ac_objext \
26485       conftest$ac_exeext conftest.$ac_ext
26486
26487 fi
26488
26489     fi
26490     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
26491 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
26492     if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
26493       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26494       cat >>confdefs.h <<_ACEOF
26495 #define ${ac_tr_func} 1
26496 _ACEOF
26497
26498     fi
26499   fi
26500
26501
26502
26503   echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
26504 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
26505   if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
26506     if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
26507   echo $ECHO_N "(cached) $ECHO_C" >&6
26508 else
26509
26510
26511
26512       ac_ext=cc
26513 ac_cpp='$CXXCPP $CPPFLAGS'
26514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26517
26518       cat >conftest.$ac_ext <<_ACEOF
26519 /* confdefs.h.  */
26520 _ACEOF
26521 cat confdefs.h >>conftest.$ac_ext
26522 cat >>conftest.$ac_ext <<_ACEOF
26523 /* end confdefs.h.  */
26524 #include <math.h>
26525 int
26526 main ()
26527 {
26528  __builtin_sinf(0);
26529   ;
26530   return 0;
26531 }
26532 _ACEOF
26533 rm -f conftest.$ac_objext
26534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26535   (eval $ac_compile) 2>conftest.er1
26536   ac_status=$?
26537   grep -v '^ *+' conftest.er1 >conftest.err
26538   rm -f conftest.er1
26539   cat conftest.err >&5
26540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541   (exit $ac_status); } &&
26542          { ac_try='test -z "$ac_cxx_werror_flag"
26543                          || test ! -s conftest.err'
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); }; } &&
26549          { ac_try='test -s conftest.$ac_objext'
26550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26551   (eval $ac_try) 2>&5
26552   ac_status=$?
26553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554   (exit $ac_status); }; }; then
26555   glibcxx_cv_func___builtin_sinf_use=yes
26556 else
26557   echo "$as_me: failed program was:" >&5
26558 sed 's/^/| /' conftest.$ac_ext >&5
26559
26560 glibcxx_cv_func___builtin_sinf_use=no
26561 fi
26562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26563       ac_ext=c
26564 ac_cpp='$CPP $CPPFLAGS'
26565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26568
26569
26570 fi
26571
26572   fi
26573   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
26574 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
26575   if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
26576     echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
26577 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
26578     if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
26579       if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
26580   echo $ECHO_N "(cached) $ECHO_C" >&6
26581 else
26582
26583         if test x$gcc_no_link = xyes; then
26584   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26586    { (exit 1); exit 1; }; }
26587 fi
26588 cat >conftest.$ac_ext <<_ACEOF
26589 /* confdefs.h.  */
26590 _ACEOF
26591 cat confdefs.h >>conftest.$ac_ext
26592 cat >>conftest.$ac_ext <<_ACEOF
26593 /* end confdefs.h.  */
26594 #include <math.h>
26595 int
26596 main ()
26597 {
26598  __builtin_sinf(0);
26599   ;
26600   return 0;
26601 }
26602 _ACEOF
26603 rm -f conftest.$ac_objext conftest$ac_exeext
26604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26605   (eval $ac_link) 2>conftest.er1
26606   ac_status=$?
26607   grep -v '^ *+' conftest.er1 >conftest.err
26608   rm -f conftest.er1
26609   cat conftest.err >&5
26610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611   (exit $ac_status); } &&
26612          { ac_try='test -z "$ac_c_werror_flag"
26613                          || test ! -s conftest.err'
26614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26615   (eval $ac_try) 2>&5
26616   ac_status=$?
26617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618   (exit $ac_status); }; } &&
26619          { ac_try='test -s conftest$ac_exeext'
26620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26621   (eval $ac_try) 2>&5
26622   ac_status=$?
26623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624   (exit $ac_status); }; }; then
26625   glibcxx_cv_func___builtin_sinf_link=yes
26626 else
26627   echo "$as_me: failed program was:" >&5
26628 sed 's/^/| /' conftest.$ac_ext >&5
26629
26630 glibcxx_cv_func___builtin_sinf_link=no
26631 fi
26632 rm -f conftest.err conftest.$ac_objext \
26633       conftest$ac_exeext conftest.$ac_ext
26634
26635 fi
26636
26637     fi
26638     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
26639 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
26640     if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
26641       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26642       cat >>confdefs.h <<_ACEOF
26643 #define ${ac_tr_func} 1
26644 _ACEOF
26645
26646     fi
26647   fi
26648
26649
26650   echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
26651 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
26652   if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
26653     if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
26654   echo $ECHO_N "(cached) $ECHO_C" >&6
26655 else
26656
26657
26658
26659       ac_ext=cc
26660 ac_cpp='$CXXCPP $CPPFLAGS'
26661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26664
26665       cat >conftest.$ac_ext <<_ACEOF
26666 /* confdefs.h.  */
26667 _ACEOF
26668 cat confdefs.h >>conftest.$ac_ext
26669 cat >>conftest.$ac_ext <<_ACEOF
26670 /* end confdefs.h.  */
26671 #include <math.h>
26672 int
26673 main ()
26674 {
26675  __builtin_sin(0);
26676   ;
26677   return 0;
26678 }
26679 _ACEOF
26680 rm -f conftest.$ac_objext
26681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26682   (eval $ac_compile) 2>conftest.er1
26683   ac_status=$?
26684   grep -v '^ *+' conftest.er1 >conftest.err
26685   rm -f conftest.er1
26686   cat conftest.err >&5
26687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688   (exit $ac_status); } &&
26689          { ac_try='test -z "$ac_cxx_werror_flag"
26690                          || test ! -s conftest.err'
26691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692   (eval $ac_try) 2>&5
26693   ac_status=$?
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); }; } &&
26696          { ac_try='test -s conftest.$ac_objext'
26697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698   (eval $ac_try) 2>&5
26699   ac_status=$?
26700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701   (exit $ac_status); }; }; then
26702   glibcxx_cv_func___builtin_sin_use=yes
26703 else
26704   echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26706
26707 glibcxx_cv_func___builtin_sin_use=no
26708 fi
26709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26710       ac_ext=c
26711 ac_cpp='$CPP $CPPFLAGS'
26712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26715
26716
26717 fi
26718
26719   fi
26720   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
26721 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
26722   if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
26723     echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
26724 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
26725     if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
26726       if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
26727   echo $ECHO_N "(cached) $ECHO_C" >&6
26728 else
26729
26730         if test x$gcc_no_link = xyes; then
26731   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26732 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26733    { (exit 1); exit 1; }; }
26734 fi
26735 cat >conftest.$ac_ext <<_ACEOF
26736 /* confdefs.h.  */
26737 _ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h.  */
26741 #include <math.h>
26742 int
26743 main ()
26744 {
26745  __builtin_sin(0);
26746   ;
26747   return 0;
26748 }
26749 _ACEOF
26750 rm -f conftest.$ac_objext conftest$ac_exeext
26751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26752   (eval $ac_link) 2>conftest.er1
26753   ac_status=$?
26754   grep -v '^ *+' conftest.er1 >conftest.err
26755   rm -f conftest.er1
26756   cat conftest.err >&5
26757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758   (exit $ac_status); } &&
26759          { ac_try='test -z "$ac_c_werror_flag"
26760                          || test ! -s conftest.err'
26761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26762   (eval $ac_try) 2>&5
26763   ac_status=$?
26764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765   (exit $ac_status); }; } &&
26766          { ac_try='test -s conftest$ac_exeext'
26767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26768   (eval $ac_try) 2>&5
26769   ac_status=$?
26770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771   (exit $ac_status); }; }; then
26772   glibcxx_cv_func___builtin_sin_link=yes
26773 else
26774   echo "$as_me: failed program was:" >&5
26775 sed 's/^/| /' conftest.$ac_ext >&5
26776
26777 glibcxx_cv_func___builtin_sin_link=no
26778 fi
26779 rm -f conftest.err conftest.$ac_objext \
26780       conftest$ac_exeext conftest.$ac_ext
26781
26782 fi
26783
26784     fi
26785     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
26786 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
26787     if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
26788       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26789       cat >>confdefs.h <<_ACEOF
26790 #define ${ac_tr_func} 1
26791 _ACEOF
26792
26793     fi
26794   fi
26795
26796
26797   echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
26798 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
26799   if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
26800     if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
26801   echo $ECHO_N "(cached) $ECHO_C" >&6
26802 else
26803
26804
26805
26806       ac_ext=cc
26807 ac_cpp='$CXXCPP $CPPFLAGS'
26808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26811
26812       cat >conftest.$ac_ext <<_ACEOF
26813 /* confdefs.h.  */
26814 _ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h.  */
26818 #include <math.h>
26819 int
26820 main ()
26821 {
26822  __builtin_sinl(0);
26823   ;
26824   return 0;
26825 }
26826 _ACEOF
26827 rm -f conftest.$ac_objext
26828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26829   (eval $ac_compile) 2>conftest.er1
26830   ac_status=$?
26831   grep -v '^ *+' conftest.er1 >conftest.err
26832   rm -f conftest.er1
26833   cat conftest.err >&5
26834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835   (exit $ac_status); } &&
26836          { ac_try='test -z "$ac_cxx_werror_flag"
26837                          || test ! -s conftest.err'
26838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26839   (eval $ac_try) 2>&5
26840   ac_status=$?
26841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842   (exit $ac_status); }; } &&
26843          { ac_try='test -s conftest.$ac_objext'
26844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26845   (eval $ac_try) 2>&5
26846   ac_status=$?
26847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848   (exit $ac_status); }; }; then
26849   glibcxx_cv_func___builtin_sinl_use=yes
26850 else
26851   echo "$as_me: failed program was:" >&5
26852 sed 's/^/| /' conftest.$ac_ext >&5
26853
26854 glibcxx_cv_func___builtin_sinl_use=no
26855 fi
26856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26857       ac_ext=c
26858 ac_cpp='$CPP $CPPFLAGS'
26859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26862
26863
26864 fi
26865
26866   fi
26867   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
26868 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
26869   if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
26870     echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
26871 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
26872     if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
26873       if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
26874   echo $ECHO_N "(cached) $ECHO_C" >&6
26875 else
26876
26877         if test x$gcc_no_link = xyes; then
26878   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
26879 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
26880    { (exit 1); exit 1; }; }
26881 fi
26882 cat >conftest.$ac_ext <<_ACEOF
26883 /* confdefs.h.  */
26884 _ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h.  */
26888 #include <math.h>
26889 int
26890 main ()
26891 {
26892  __builtin_sinl(0);
26893   ;
26894   return 0;
26895 }
26896 _ACEOF
26897 rm -f conftest.$ac_objext conftest$ac_exeext
26898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26899   (eval $ac_link) 2>conftest.er1
26900   ac_status=$?
26901   grep -v '^ *+' conftest.er1 >conftest.err
26902   rm -f conftest.er1
26903   cat conftest.err >&5
26904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905   (exit $ac_status); } &&
26906          { ac_try='test -z "$ac_c_werror_flag"
26907                          || test ! -s conftest.err'
26908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26909   (eval $ac_try) 2>&5
26910   ac_status=$?
26911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912   (exit $ac_status); }; } &&
26913          { ac_try='test -s conftest$ac_exeext'
26914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26915   (eval $ac_try) 2>&5
26916   ac_status=$?
26917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918   (exit $ac_status); }; }; then
26919   glibcxx_cv_func___builtin_sinl_link=yes
26920 else
26921   echo "$as_me: failed program was:" >&5
26922 sed 's/^/| /' conftest.$ac_ext >&5
26923
26924 glibcxx_cv_func___builtin_sinl_link=no
26925 fi
26926 rm -f conftest.err conftest.$ac_objext \
26927       conftest$ac_exeext conftest.$ac_ext
26928
26929 fi
26930
26931     fi
26932     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
26933 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
26934     if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
26935       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
26936       cat >>confdefs.h <<_ACEOF
26937 #define ${ac_tr_func} 1
26938 _ACEOF
26939
26940     fi
26941   fi
26942
26943
26944
26945   echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
26946 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
26947   if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
26948     if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
26949   echo $ECHO_N "(cached) $ECHO_C" >&6
26950 else
26951
26952
26953
26954       ac_ext=cc
26955 ac_cpp='$CXXCPP $CPPFLAGS'
26956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26957 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26959
26960       cat >conftest.$ac_ext <<_ACEOF
26961 /* confdefs.h.  */
26962 _ACEOF
26963 cat confdefs.h >>conftest.$ac_ext
26964 cat >>conftest.$ac_ext <<_ACEOF
26965 /* end confdefs.h.  */
26966 #include <math.h>
26967 int
26968 main ()
26969 {
26970  __builtin_cosf(0);
26971   ;
26972   return 0;
26973 }
26974 _ACEOF
26975 rm -f conftest.$ac_objext
26976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26977   (eval $ac_compile) 2>conftest.er1
26978   ac_status=$?
26979   grep -v '^ *+' conftest.er1 >conftest.err
26980   rm -f conftest.er1
26981   cat conftest.err >&5
26982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26983   (exit $ac_status); } &&
26984          { ac_try='test -z "$ac_cxx_werror_flag"
26985                          || test ! -s conftest.err'
26986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26987   (eval $ac_try) 2>&5
26988   ac_status=$?
26989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990   (exit $ac_status); }; } &&
26991          { ac_try='test -s conftest.$ac_objext'
26992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26993   (eval $ac_try) 2>&5
26994   ac_status=$?
26995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26996   (exit $ac_status); }; }; then
26997   glibcxx_cv_func___builtin_cosf_use=yes
26998 else
26999   echo "$as_me: failed program was:" >&5
27000 sed 's/^/| /' conftest.$ac_ext >&5
27001
27002 glibcxx_cv_func___builtin_cosf_use=no
27003 fi
27004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27005       ac_ext=c
27006 ac_cpp='$CPP $CPPFLAGS'
27007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27010
27011
27012 fi
27013
27014   fi
27015   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
27016 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
27017   if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
27018     echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
27019 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
27020     if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
27021       if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
27022   echo $ECHO_N "(cached) $ECHO_C" >&6
27023 else
27024
27025         if test x$gcc_no_link = xyes; then
27026   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27027 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27028    { (exit 1); exit 1; }; }
27029 fi
27030 cat >conftest.$ac_ext <<_ACEOF
27031 /* confdefs.h.  */
27032 _ACEOF
27033 cat confdefs.h >>conftest.$ac_ext
27034 cat >>conftest.$ac_ext <<_ACEOF
27035 /* end confdefs.h.  */
27036 #include <math.h>
27037 int
27038 main ()
27039 {
27040  __builtin_cosf(0);
27041   ;
27042   return 0;
27043 }
27044 _ACEOF
27045 rm -f conftest.$ac_objext conftest$ac_exeext
27046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27047   (eval $ac_link) 2>conftest.er1
27048   ac_status=$?
27049   grep -v '^ *+' conftest.er1 >conftest.err
27050   rm -f conftest.er1
27051   cat conftest.err >&5
27052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053   (exit $ac_status); } &&
27054          { ac_try='test -z "$ac_c_werror_flag"
27055                          || test ! -s conftest.err'
27056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057   (eval $ac_try) 2>&5
27058   ac_status=$?
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); }; } &&
27061          { ac_try='test -s conftest$ac_exeext'
27062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27063   (eval $ac_try) 2>&5
27064   ac_status=$?
27065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066   (exit $ac_status); }; }; then
27067   glibcxx_cv_func___builtin_cosf_link=yes
27068 else
27069   echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27071
27072 glibcxx_cv_func___builtin_cosf_link=no
27073 fi
27074 rm -f conftest.err conftest.$ac_objext \
27075       conftest$ac_exeext conftest.$ac_ext
27076
27077 fi
27078
27079     fi
27080     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
27081 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
27082     if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
27083       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27084       cat >>confdefs.h <<_ACEOF
27085 #define ${ac_tr_func} 1
27086 _ACEOF
27087
27088     fi
27089   fi
27090
27091
27092   echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
27093 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
27094   if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
27095     if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
27096   echo $ECHO_N "(cached) $ECHO_C" >&6
27097 else
27098
27099
27100
27101       ac_ext=cc
27102 ac_cpp='$CXXCPP $CPPFLAGS'
27103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27106
27107       cat >conftest.$ac_ext <<_ACEOF
27108 /* confdefs.h.  */
27109 _ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h.  */
27113 #include <math.h>
27114 int
27115 main ()
27116 {
27117  __builtin_cos(0);
27118   ;
27119   return 0;
27120 }
27121 _ACEOF
27122 rm -f conftest.$ac_objext
27123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27124   (eval $ac_compile) 2>conftest.er1
27125   ac_status=$?
27126   grep -v '^ *+' conftest.er1 >conftest.err
27127   rm -f conftest.er1
27128   cat conftest.err >&5
27129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130   (exit $ac_status); } &&
27131          { ac_try='test -z "$ac_cxx_werror_flag"
27132                          || test ! -s conftest.err'
27133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27134   (eval $ac_try) 2>&5
27135   ac_status=$?
27136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137   (exit $ac_status); }; } &&
27138          { ac_try='test -s conftest.$ac_objext'
27139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27140   (eval $ac_try) 2>&5
27141   ac_status=$?
27142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143   (exit $ac_status); }; }; then
27144   glibcxx_cv_func___builtin_cos_use=yes
27145 else
27146   echo "$as_me: failed program was:" >&5
27147 sed 's/^/| /' conftest.$ac_ext >&5
27148
27149 glibcxx_cv_func___builtin_cos_use=no
27150 fi
27151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27152       ac_ext=c
27153 ac_cpp='$CPP $CPPFLAGS'
27154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27157
27158
27159 fi
27160
27161   fi
27162   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
27163 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
27164   if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
27165     echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
27166 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
27167     if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
27168       if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
27169   echo $ECHO_N "(cached) $ECHO_C" >&6
27170 else
27171
27172         if test x$gcc_no_link = xyes; then
27173   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27174 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27175    { (exit 1); exit 1; }; }
27176 fi
27177 cat >conftest.$ac_ext <<_ACEOF
27178 /* confdefs.h.  */
27179 _ACEOF
27180 cat confdefs.h >>conftest.$ac_ext
27181 cat >>conftest.$ac_ext <<_ACEOF
27182 /* end confdefs.h.  */
27183 #include <math.h>
27184 int
27185 main ()
27186 {
27187  __builtin_cos(0);
27188   ;
27189   return 0;
27190 }
27191 _ACEOF
27192 rm -f conftest.$ac_objext conftest$ac_exeext
27193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27194   (eval $ac_link) 2>conftest.er1
27195   ac_status=$?
27196   grep -v '^ *+' conftest.er1 >conftest.err
27197   rm -f conftest.er1
27198   cat conftest.err >&5
27199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200   (exit $ac_status); } &&
27201          { ac_try='test -z "$ac_c_werror_flag"
27202                          || test ! -s conftest.err'
27203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27204   (eval $ac_try) 2>&5
27205   ac_status=$?
27206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207   (exit $ac_status); }; } &&
27208          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
27214   glibcxx_cv_func___builtin_cos_link=yes
27215 else
27216   echo "$as_me: failed program was:" >&5
27217 sed 's/^/| /' conftest.$ac_ext >&5
27218
27219 glibcxx_cv_func___builtin_cos_link=no
27220 fi
27221 rm -f conftest.err conftest.$ac_objext \
27222       conftest$ac_exeext conftest.$ac_ext
27223
27224 fi
27225
27226     fi
27227     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
27228 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
27229     if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
27230       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27231       cat >>confdefs.h <<_ACEOF
27232 #define ${ac_tr_func} 1
27233 _ACEOF
27234
27235     fi
27236   fi
27237
27238
27239   echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
27240 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
27241   if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
27242     if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
27243   echo $ECHO_N "(cached) $ECHO_C" >&6
27244 else
27245
27246
27247
27248       ac_ext=cc
27249 ac_cpp='$CXXCPP $CPPFLAGS'
27250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27253
27254       cat >conftest.$ac_ext <<_ACEOF
27255 /* confdefs.h.  */
27256 _ACEOF
27257 cat confdefs.h >>conftest.$ac_ext
27258 cat >>conftest.$ac_ext <<_ACEOF
27259 /* end confdefs.h.  */
27260 #include <math.h>
27261 int
27262 main ()
27263 {
27264  __builtin_cosl(0);
27265   ;
27266   return 0;
27267 }
27268 _ACEOF
27269 rm -f conftest.$ac_objext
27270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27271   (eval $ac_compile) 2>conftest.er1
27272   ac_status=$?
27273   grep -v '^ *+' conftest.er1 >conftest.err
27274   rm -f conftest.er1
27275   cat conftest.err >&5
27276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277   (exit $ac_status); } &&
27278          { ac_try='test -z "$ac_cxx_werror_flag"
27279                          || test ! -s conftest.err'
27280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27281   (eval $ac_try) 2>&5
27282   ac_status=$?
27283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27284   (exit $ac_status); }; } &&
27285          { ac_try='test -s conftest.$ac_objext'
27286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27287   (eval $ac_try) 2>&5
27288   ac_status=$?
27289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290   (exit $ac_status); }; }; then
27291   glibcxx_cv_func___builtin_cosl_use=yes
27292 else
27293   echo "$as_me: failed program was:" >&5
27294 sed 's/^/| /' conftest.$ac_ext >&5
27295
27296 glibcxx_cv_func___builtin_cosl_use=no
27297 fi
27298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27299       ac_ext=c
27300 ac_cpp='$CPP $CPPFLAGS'
27301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27304
27305
27306 fi
27307
27308   fi
27309   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
27310 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
27311   if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
27312     echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
27313 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
27314     if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
27315       if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
27316   echo $ECHO_N "(cached) $ECHO_C" >&6
27317 else
27318
27319         if test x$gcc_no_link = xyes; then
27320   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27321 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27322    { (exit 1); exit 1; }; }
27323 fi
27324 cat >conftest.$ac_ext <<_ACEOF
27325 /* confdefs.h.  */
27326 _ACEOF
27327 cat confdefs.h >>conftest.$ac_ext
27328 cat >>conftest.$ac_ext <<_ACEOF
27329 /* end confdefs.h.  */
27330 #include <math.h>
27331 int
27332 main ()
27333 {
27334  __builtin_cosl(0);
27335   ;
27336   return 0;
27337 }
27338 _ACEOF
27339 rm -f conftest.$ac_objext conftest$ac_exeext
27340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27341   (eval $ac_link) 2>conftest.er1
27342   ac_status=$?
27343   grep -v '^ *+' conftest.er1 >conftest.err
27344   rm -f conftest.er1
27345   cat conftest.err >&5
27346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347   (exit $ac_status); } &&
27348          { ac_try='test -z "$ac_c_werror_flag"
27349                          || test ! -s conftest.err'
27350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27351   (eval $ac_try) 2>&5
27352   ac_status=$?
27353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354   (exit $ac_status); }; } &&
27355          { ac_try='test -s conftest$ac_exeext'
27356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27357   (eval $ac_try) 2>&5
27358   ac_status=$?
27359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360   (exit $ac_status); }; }; then
27361   glibcxx_cv_func___builtin_cosl_link=yes
27362 else
27363   echo "$as_me: failed program was:" >&5
27364 sed 's/^/| /' conftest.$ac_ext >&5
27365
27366 glibcxx_cv_func___builtin_cosl_link=no
27367 fi
27368 rm -f conftest.err conftest.$ac_objext \
27369       conftest$ac_exeext conftest.$ac_ext
27370
27371 fi
27372
27373     fi
27374     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
27375 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
27376     if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
27377       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
27378       cat >>confdefs.h <<_ACEOF
27379 #define ${ac_tr_func} 1
27380 _ACEOF
27381
27382     fi
27383   fi
27384
27385
27386               dummyvar=no
27387   if test x$dummyvar = x"yes"; then
27388     cat >>confdefs.h <<\_ACEOF
27389 #define HAVE___BUILTIN_ABS 1
27390 _ACEOF
27391
27392     cat >>confdefs.h <<\_ACEOF
27393 #define HAVE___BUILTIN_LABS 1
27394 _ACEOF
27395
27396     cat >>confdefs.h <<\_ACEOF
27397 #define HAVE___BUILTIN_COS 1
27398 _ACEOF
27399
27400     cat >>confdefs.h <<\_ACEOF
27401 #define HAVE___BUILTIN_COSF 1
27402 _ACEOF
27403
27404     cat >>confdefs.h <<\_ACEOF
27405 #define HAVE___BUILTIN_COSL 1
27406 _ACEOF
27407
27408     cat >>confdefs.h <<\_ACEOF
27409 #define HAVE___BUILTIN_FABS 1
27410 _ACEOF
27411
27412     cat >>confdefs.h <<\_ACEOF
27413 #define HAVE___BUILTIN_FABSF 1
27414 _ACEOF
27415
27416     cat >>confdefs.h <<\_ACEOF
27417 #define HAVE___BUILTIN_FABSL 1
27418 _ACEOF
27419
27420     cat >>confdefs.h <<\_ACEOF
27421 #define HAVE___BUILTIN_SIN 1
27422 _ACEOF
27423
27424     cat >>confdefs.h <<\_ACEOF
27425 #define HAVE___BUILTIN_SINF 1
27426 _ACEOF
27427
27428     cat >>confdefs.h <<\_ACEOF
27429 #define HAVE___BUILTIN_SINL 1
27430 _ACEOF
27431
27432     cat >>confdefs.h <<\_ACEOF
27433 #define HAVE___BUILTIN_SQRT 1
27434 _ACEOF
27435
27436     cat >>confdefs.h <<\_ACEOF
27437 #define HAVE___BUILTIN_SQRTF 1
27438 _ACEOF
27439
27440     cat >>confdefs.h <<\_ACEOF
27441 #define HAVE___BUILTIN_SQRTL 1
27442 _ACEOF
27443
27444   fi
27445
27446
27447
27448 echo "$as_me:$LINENO: checking for main in -lm" >&5
27449 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
27450 if test "${ac_cv_lib_m_main+set}" = set; then
27451   echo $ECHO_N "(cached) $ECHO_C" >&6
27452 else
27453   ac_check_lib_save_LIBS=$LIBS
27454 LIBS="-lm  $LIBS"
27455 if test x$gcc_no_link = xyes; then
27456   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27457 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27458    { (exit 1); exit 1; }; }
27459 fi
27460 cat >conftest.$ac_ext <<_ACEOF
27461 /* confdefs.h.  */
27462 _ACEOF
27463 cat confdefs.h >>conftest.$ac_ext
27464 cat >>conftest.$ac_ext <<_ACEOF
27465 /* end confdefs.h.  */
27466
27467
27468 int
27469 main ()
27470 {
27471 main ();
27472   ;
27473   return 0;
27474 }
27475 _ACEOF
27476 rm -f conftest.$ac_objext conftest$ac_exeext
27477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27478   (eval $ac_link) 2>conftest.er1
27479   ac_status=$?
27480   grep -v '^ *+' conftest.er1 >conftest.err
27481   rm -f conftest.er1
27482   cat conftest.err >&5
27483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484   (exit $ac_status); } &&
27485          { ac_try='test -z "$ac_c_werror_flag"
27486                          || test ! -s conftest.err'
27487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27488   (eval $ac_try) 2>&5
27489   ac_status=$?
27490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491   (exit $ac_status); }; } &&
27492          { ac_try='test -s conftest$ac_exeext'
27493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27494   (eval $ac_try) 2>&5
27495   ac_status=$?
27496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497   (exit $ac_status); }; }; then
27498   ac_cv_lib_m_main=yes
27499 else
27500   echo "$as_me: failed program was:" >&5
27501 sed 's/^/| /' conftest.$ac_ext >&5
27502
27503 ac_cv_lib_m_main=no
27504 fi
27505 rm -f conftest.err conftest.$ac_objext \
27506       conftest$ac_exeext conftest.$ac_ext
27507 LIBS=$ac_check_lib_save_LIBS
27508 fi
27509 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
27510 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
27511 if test $ac_cv_lib_m_main = yes; then
27512   cat >>confdefs.h <<_ACEOF
27513 #define HAVE_LIBM 1
27514 _ACEOF
27515
27516   LIBS="-lm $LIBS"
27517
27518 fi
27519
27520
27521 for ac_func in copysignf
27522 do
27523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27524 echo "$as_me:$LINENO: checking for $ac_func" >&5
27525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27526 if eval "test \"\${$as_ac_var+set}\" = set"; then
27527   echo $ECHO_N "(cached) $ECHO_C" >&6
27528 else
27529   if test x$gcc_no_link = xyes; then
27530   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27531 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27532    { (exit 1); exit 1; }; }
27533 fi
27534 cat >conftest.$ac_ext <<_ACEOF
27535 /* confdefs.h.  */
27536 _ACEOF
27537 cat confdefs.h >>conftest.$ac_ext
27538 cat >>conftest.$ac_ext <<_ACEOF
27539 /* end confdefs.h.  */
27540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27541    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27542 #define $ac_func innocuous_$ac_func
27543
27544 /* System header to define __stub macros and hopefully few prototypes,
27545     which can conflict with char $ac_func (); below.
27546     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27547     <limits.h> exists even on freestanding compilers.  */
27548
27549 #ifdef __STDC__
27550 # include <limits.h>
27551 #else
27552 # include <assert.h>
27553 #endif
27554
27555 #undef $ac_func
27556
27557 /* Override any gcc2 internal prototype to avoid an error.  */
27558 #ifdef __cplusplus
27559 extern "C"
27560 {
27561 #endif
27562 /* We use char because int might match the return type of a gcc2
27563    builtin and then its argument prototype would still apply.  */
27564 char $ac_func ();
27565 /* The GNU C library defines this for functions which it implements
27566     to always fail with ENOSYS.  Some functions are actually named
27567     something starting with __ and the normal name is an alias.  */
27568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27569 choke me
27570 #else
27571 char (*f) () = $ac_func;
27572 #endif
27573 #ifdef __cplusplus
27574 }
27575 #endif
27576
27577 int
27578 main ()
27579 {
27580 return f != $ac_func;
27581   ;
27582   return 0;
27583 }
27584 _ACEOF
27585 rm -f conftest.$ac_objext conftest$ac_exeext
27586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27587   (eval $ac_link) 2>conftest.er1
27588   ac_status=$?
27589   grep -v '^ *+' conftest.er1 >conftest.err
27590   rm -f conftest.er1
27591   cat conftest.err >&5
27592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593   (exit $ac_status); } &&
27594          { ac_try='test -z "$ac_c_werror_flag"
27595                          || test ! -s conftest.err'
27596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27597   (eval $ac_try) 2>&5
27598   ac_status=$?
27599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600   (exit $ac_status); }; } &&
27601          { ac_try='test -s conftest$ac_exeext'
27602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603   (eval $ac_try) 2>&5
27604   ac_status=$?
27605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606   (exit $ac_status); }; }; then
27607   eval "$as_ac_var=yes"
27608 else
27609   echo "$as_me: failed program was:" >&5
27610 sed 's/^/| /' conftest.$ac_ext >&5
27611
27612 eval "$as_ac_var=no"
27613 fi
27614 rm -f conftest.err conftest.$ac_objext \
27615       conftest$ac_exeext conftest.$ac_ext
27616 fi
27617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27619 if test `eval echo '${'$as_ac_var'}'` = yes; then
27620   cat >>confdefs.h <<_ACEOF
27621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27622 _ACEOF
27623
27624 else
27625   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
27626 fi
27627 done
27628
27629
27630
27631 for ac_func in __signbit
27632 do
27633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27634 echo "$as_me:$LINENO: checking for $ac_func" >&5
27635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27636 if eval "test \"\${$as_ac_var+set}\" = set"; then
27637   echo $ECHO_N "(cached) $ECHO_C" >&6
27638 else
27639   if test x$gcc_no_link = xyes; then
27640   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27641 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27642    { (exit 1); exit 1; }; }
27643 fi
27644 cat >conftest.$ac_ext <<_ACEOF
27645 /* confdefs.h.  */
27646 _ACEOF
27647 cat confdefs.h >>conftest.$ac_ext
27648 cat >>conftest.$ac_ext <<_ACEOF
27649 /* end confdefs.h.  */
27650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27652 #define $ac_func innocuous_$ac_func
27653
27654 /* System header to define __stub macros and hopefully few prototypes,
27655     which can conflict with char $ac_func (); below.
27656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27657     <limits.h> exists even on freestanding compilers.  */
27658
27659 #ifdef __STDC__
27660 # include <limits.h>
27661 #else
27662 # include <assert.h>
27663 #endif
27664
27665 #undef $ac_func
27666
27667 /* Override any gcc2 internal prototype to avoid an error.  */
27668 #ifdef __cplusplus
27669 extern "C"
27670 {
27671 #endif
27672 /* We use char because int might match the return type of a gcc2
27673    builtin and then its argument prototype would still apply.  */
27674 char $ac_func ();
27675 /* The GNU C library defines this for functions which it implements
27676     to always fail with ENOSYS.  Some functions are actually named
27677     something starting with __ and the normal name is an alias.  */
27678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27679 choke me
27680 #else
27681 char (*f) () = $ac_func;
27682 #endif
27683 #ifdef __cplusplus
27684 }
27685 #endif
27686
27687 int
27688 main ()
27689 {
27690 return f != $ac_func;
27691   ;
27692   return 0;
27693 }
27694 _ACEOF
27695 rm -f conftest.$ac_objext conftest$ac_exeext
27696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27697   (eval $ac_link) 2>conftest.er1
27698   ac_status=$?
27699   grep -v '^ *+' conftest.er1 >conftest.err
27700   rm -f conftest.er1
27701   cat conftest.err >&5
27702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703   (exit $ac_status); } &&
27704          { ac_try='test -z "$ac_c_werror_flag"
27705                          || test ! -s conftest.err'
27706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27707   (eval $ac_try) 2>&5
27708   ac_status=$?
27709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710   (exit $ac_status); }; } &&
27711          { ac_try='test -s conftest$ac_exeext'
27712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27713   (eval $ac_try) 2>&5
27714   ac_status=$?
27715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27716   (exit $ac_status); }; }; then
27717   eval "$as_ac_var=yes"
27718 else
27719   echo "$as_me: failed program was:" >&5
27720 sed 's/^/| /' conftest.$ac_ext >&5
27721
27722 eval "$as_ac_var=no"
27723 fi
27724 rm -f conftest.err conftest.$ac_objext \
27725       conftest$ac_exeext conftest.$ac_ext
27726 fi
27727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27729 if test `eval echo '${'$as_ac_var'}'` = yes; then
27730   cat >>confdefs.h <<_ACEOF
27731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27732 _ACEOF
27733
27734 else
27735   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
27736 fi
27737 done
27738
27739
27740 for ac_func in __signbitf
27741 do
27742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27743 echo "$as_me:$LINENO: checking for $ac_func" >&5
27744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27745 if eval "test \"\${$as_ac_var+set}\" = set"; then
27746   echo $ECHO_N "(cached) $ECHO_C" >&6
27747 else
27748   if test x$gcc_no_link = xyes; then
27749   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27750 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27751    { (exit 1); exit 1; }; }
27752 fi
27753 cat >conftest.$ac_ext <<_ACEOF
27754 /* confdefs.h.  */
27755 _ACEOF
27756 cat confdefs.h >>conftest.$ac_ext
27757 cat >>conftest.$ac_ext <<_ACEOF
27758 /* end confdefs.h.  */
27759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27761 #define $ac_func innocuous_$ac_func
27762
27763 /* System header to define __stub macros and hopefully few prototypes,
27764     which can conflict with char $ac_func (); below.
27765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27766     <limits.h> exists even on freestanding compilers.  */
27767
27768 #ifdef __STDC__
27769 # include <limits.h>
27770 #else
27771 # include <assert.h>
27772 #endif
27773
27774 #undef $ac_func
27775
27776 /* Override any gcc2 internal prototype to avoid an error.  */
27777 #ifdef __cplusplus
27778 extern "C"
27779 {
27780 #endif
27781 /* We use char because int might match the return type of a gcc2
27782    builtin and then its argument prototype would still apply.  */
27783 char $ac_func ();
27784 /* The GNU C library defines this for functions which it implements
27785     to always fail with ENOSYS.  Some functions are actually named
27786     something starting with __ and the normal name is an alias.  */
27787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27788 choke me
27789 #else
27790 char (*f) () = $ac_func;
27791 #endif
27792 #ifdef __cplusplus
27793 }
27794 #endif
27795
27796 int
27797 main ()
27798 {
27799 return f != $ac_func;
27800   ;
27801   return 0;
27802 }
27803 _ACEOF
27804 rm -f conftest.$ac_objext conftest$ac_exeext
27805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27806   (eval $ac_link) 2>conftest.er1
27807   ac_status=$?
27808   grep -v '^ *+' conftest.er1 >conftest.err
27809   rm -f conftest.er1
27810   cat conftest.err >&5
27811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812   (exit $ac_status); } &&
27813          { ac_try='test -z "$ac_c_werror_flag"
27814                          || test ! -s conftest.err'
27815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816   (eval $ac_try) 2>&5
27817   ac_status=$?
27818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819   (exit $ac_status); }; } &&
27820          { ac_try='test -s conftest$ac_exeext'
27821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822   (eval $ac_try) 2>&5
27823   ac_status=$?
27824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825   (exit $ac_status); }; }; then
27826   eval "$as_ac_var=yes"
27827 else
27828   echo "$as_me: failed program was:" >&5
27829 sed 's/^/| /' conftest.$ac_ext >&5
27830
27831 eval "$as_ac_var=no"
27832 fi
27833 rm -f conftest.err conftest.$ac_objext \
27834       conftest$ac_exeext conftest.$ac_ext
27835 fi
27836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27838 if test `eval echo '${'$as_ac_var'}'` = yes; then
27839   cat >>confdefs.h <<_ACEOF
27840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27841 _ACEOF
27842
27843 else
27844   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
27845 fi
27846 done
27847
27848
27849           if test x$ac_cv_func_copysignl = x"yes"; then
27850
27851 for ac_func in __signbitl
27852 do
27853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27854 echo "$as_me:$LINENO: checking for $ac_func" >&5
27855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27856 if eval "test \"\${$as_ac_var+set}\" = set"; then
27857   echo $ECHO_N "(cached) $ECHO_C" >&6
27858 else
27859   if test x$gcc_no_link = xyes; then
27860   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27862    { (exit 1); exit 1; }; }
27863 fi
27864 cat >conftest.$ac_ext <<_ACEOF
27865 /* confdefs.h.  */
27866 _ACEOF
27867 cat confdefs.h >>conftest.$ac_ext
27868 cat >>conftest.$ac_ext <<_ACEOF
27869 /* end confdefs.h.  */
27870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27872 #define $ac_func innocuous_$ac_func
27873
27874 /* System header to define __stub macros and hopefully few prototypes,
27875     which can conflict with char $ac_func (); below.
27876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27877     <limits.h> exists even on freestanding compilers.  */
27878
27879 #ifdef __STDC__
27880 # include <limits.h>
27881 #else
27882 # include <assert.h>
27883 #endif
27884
27885 #undef $ac_func
27886
27887 /* Override any gcc2 internal prototype to avoid an error.  */
27888 #ifdef __cplusplus
27889 extern "C"
27890 {
27891 #endif
27892 /* We use char because int might match the return type of a gcc2
27893    builtin and then its argument prototype would still apply.  */
27894 char $ac_func ();
27895 /* The GNU C library defines this for functions which it implements
27896     to always fail with ENOSYS.  Some functions are actually named
27897     something starting with __ and the normal name is an alias.  */
27898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27899 choke me
27900 #else
27901 char (*f) () = $ac_func;
27902 #endif
27903 #ifdef __cplusplus
27904 }
27905 #endif
27906
27907 int
27908 main ()
27909 {
27910 return f != $ac_func;
27911   ;
27912   return 0;
27913 }
27914 _ACEOF
27915 rm -f conftest.$ac_objext conftest$ac_exeext
27916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27917   (eval $ac_link) 2>conftest.er1
27918   ac_status=$?
27919   grep -v '^ *+' conftest.er1 >conftest.err
27920   rm -f conftest.er1
27921   cat conftest.err >&5
27922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27923   (exit $ac_status); } &&
27924          { ac_try='test -z "$ac_c_werror_flag"
27925                          || test ! -s conftest.err'
27926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27927   (eval $ac_try) 2>&5
27928   ac_status=$?
27929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930   (exit $ac_status); }; } &&
27931          { ac_try='test -s conftest$ac_exeext'
27932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27933   (eval $ac_try) 2>&5
27934   ac_status=$?
27935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936   (exit $ac_status); }; }; then
27937   eval "$as_ac_var=yes"
27938 else
27939   echo "$as_me: failed program was:" >&5
27940 sed 's/^/| /' conftest.$ac_ext >&5
27941
27942 eval "$as_ac_var=no"
27943 fi
27944 rm -f conftest.err conftest.$ac_objext \
27945       conftest$ac_exeext conftest.$ac_ext
27946 fi
27947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27949 if test `eval echo '${'$as_ac_var'}'` = yes; then
27950   cat >>confdefs.h <<_ACEOF
27951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27952 _ACEOF
27953
27954 else
27955   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
27956 fi
27957 done
27958
27959   fi
27960
27961   # XXX Review this.  Nothing uses it.
27962   if test -n "$LIBMATHOBJS"; then
27963     need_libmath=yes
27964   fi
27965
27966
27967
27968   # Test wchar.h for mbstate_t, which is needed for char_traits and
27969   # others even if wchar_t support is not on.
27970   echo "$as_me:$LINENO: checking for mbstate_t" >&5
27971 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
27972   cat >conftest.$ac_ext <<_ACEOF
27973 /* confdefs.h.  */
27974 _ACEOF
27975 cat confdefs.h >>conftest.$ac_ext
27976 cat >>conftest.$ac_ext <<_ACEOF
27977 /* end confdefs.h.  */
27978 #include <wchar.h>
27979 int
27980 main ()
27981 {
27982 mbstate_t teststate;
27983   ;
27984   return 0;
27985 }
27986 _ACEOF
27987 rm -f conftest.$ac_objext
27988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27989   (eval $ac_compile) 2>conftest.er1
27990   ac_status=$?
27991   grep -v '^ *+' conftest.er1 >conftest.err
27992   rm -f conftest.er1
27993   cat conftest.err >&5
27994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995   (exit $ac_status); } &&
27996          { ac_try='test -z "$ac_c_werror_flag"
27997                          || test ! -s conftest.err'
27998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27999   (eval $ac_try) 2>&5
28000   ac_status=$?
28001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28002   (exit $ac_status); }; } &&
28003          { ac_try='test -s conftest.$ac_objext'
28004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28005   (eval $ac_try) 2>&5
28006   ac_status=$?
28007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008   (exit $ac_status); }; }; then
28009   have_mbstate_t=yes
28010 else
28011   echo "$as_me: failed program was:" >&5
28012 sed 's/^/| /' conftest.$ac_ext >&5
28013
28014 have_mbstate_t=no
28015 fi
28016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28017   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
28018 echo "${ECHO_T}$have_mbstate_t" >&6
28019   if test x"$have_mbstate_t" = xyes; then
28020     cat >>confdefs.h <<\_ACEOF
28021 #define HAVE_MBSTATE_T 1
28022 _ACEOF
28023
28024   fi
28025
28026   # Sanity check for existence of ISO C99 headers for extended encoding.
28027
28028 for ac_header in wchar.h
28029 do
28030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
28037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28039 else
28040   # Is the header compilable?
28041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28043 cat >conftest.$ac_ext <<_ACEOF
28044 /* confdefs.h.  */
28045 _ACEOF
28046 cat confdefs.h >>conftest.$ac_ext
28047 cat >>conftest.$ac_ext <<_ACEOF
28048 /* end confdefs.h.  */
28049 $ac_includes_default
28050 #include <$ac_header>
28051 _ACEOF
28052 rm -f conftest.$ac_objext
28053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28054   (eval $ac_compile) 2>conftest.er1
28055   ac_status=$?
28056   grep -v '^ *+' conftest.er1 >conftest.err
28057   rm -f conftest.er1
28058   cat conftest.err >&5
28059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060   (exit $ac_status); } &&
28061          { ac_try='test -z "$ac_c_werror_flag"
28062                          || test ! -s conftest.err'
28063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28064   (eval $ac_try) 2>&5
28065   ac_status=$?
28066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067   (exit $ac_status); }; } &&
28068          { ac_try='test -s conftest.$ac_objext'
28069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28070   (eval $ac_try) 2>&5
28071   ac_status=$?
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); }; }; then
28074   ac_header_compiler=yes
28075 else
28076   echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28078
28079 ac_header_compiler=no
28080 fi
28081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28083 echo "${ECHO_T}$ac_header_compiler" >&6
28084
28085 # Is the header present?
28086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28088 cat >conftest.$ac_ext <<_ACEOF
28089 /* confdefs.h.  */
28090 _ACEOF
28091 cat confdefs.h >>conftest.$ac_ext
28092 cat >>conftest.$ac_ext <<_ACEOF
28093 /* end confdefs.h.  */
28094 #include <$ac_header>
28095 _ACEOF
28096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28097   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28098   ac_status=$?
28099   grep -v '^ *+' conftest.er1 >conftest.err
28100   rm -f conftest.er1
28101   cat conftest.err >&5
28102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103   (exit $ac_status); } >/dev/null; then
28104   if test -s conftest.err; then
28105     ac_cpp_err=$ac_c_preproc_warn_flag
28106     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28107   else
28108     ac_cpp_err=
28109   fi
28110 else
28111   ac_cpp_err=yes
28112 fi
28113 if test -z "$ac_cpp_err"; then
28114   ac_header_preproc=yes
28115 else
28116   echo "$as_me: failed program was:" >&5
28117 sed 's/^/| /' conftest.$ac_ext >&5
28118
28119   ac_header_preproc=no
28120 fi
28121 rm -f conftest.err conftest.$ac_ext
28122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28123 echo "${ECHO_T}$ac_header_preproc" >&6
28124
28125 # So?  What about this header?
28126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28127   yes:no: )
28128     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28132     ac_header_preproc=yes
28133     ;;
28134   no:yes:* )
28135     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28137     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28138 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28139     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28141     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28142 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28145     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28147     (
28148       cat <<\_ASBOX
28149 ## ----------------------------------------- ##
28150 ## Report this to the package-unused lists.  ##
28151 ## ----------------------------------------- ##
28152 _ASBOX
28153     ) |
28154       sed "s/^/$as_me: WARNING:     /" >&2
28155     ;;
28156 esac
28157 echo "$as_me:$LINENO: checking for $ac_header" >&5
28158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28160   echo $ECHO_N "(cached) $ECHO_C" >&6
28161 else
28162   eval "$as_ac_Header=\$ac_header_preproc"
28163 fi
28164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28166
28167 fi
28168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28169   cat >>confdefs.h <<_ACEOF
28170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28171 _ACEOF
28172  ac_has_wchar_h=yes
28173 else
28174   ac_has_wchar_h=no
28175 fi
28176
28177 done
28178
28179
28180 for ac_header in wctype.h
28181 do
28182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28184   echo "$as_me:$LINENO: checking for $ac_header" >&5
28185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28187   echo $ECHO_N "(cached) $ECHO_C" >&6
28188 fi
28189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28191 else
28192   # Is the header compilable?
28193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28195 cat >conftest.$ac_ext <<_ACEOF
28196 /* confdefs.h.  */
28197 _ACEOF
28198 cat confdefs.h >>conftest.$ac_ext
28199 cat >>conftest.$ac_ext <<_ACEOF
28200 /* end confdefs.h.  */
28201 $ac_includes_default
28202 #include <$ac_header>
28203 _ACEOF
28204 rm -f conftest.$ac_objext
28205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28206   (eval $ac_compile) 2>conftest.er1
28207   ac_status=$?
28208   grep -v '^ *+' conftest.er1 >conftest.err
28209   rm -f conftest.er1
28210   cat conftest.err >&5
28211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212   (exit $ac_status); } &&
28213          { ac_try='test -z "$ac_c_werror_flag"
28214                          || test ! -s conftest.err'
28215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28216   (eval $ac_try) 2>&5
28217   ac_status=$?
28218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219   (exit $ac_status); }; } &&
28220          { ac_try='test -s conftest.$ac_objext'
28221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28222   (eval $ac_try) 2>&5
28223   ac_status=$?
28224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225   (exit $ac_status); }; }; then
28226   ac_header_compiler=yes
28227 else
28228   echo "$as_me: failed program was:" >&5
28229 sed 's/^/| /' conftest.$ac_ext >&5
28230
28231 ac_header_compiler=no
28232 fi
28233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28235 echo "${ECHO_T}$ac_header_compiler" >&6
28236
28237 # Is the header present?
28238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28240 cat >conftest.$ac_ext <<_ACEOF
28241 /* confdefs.h.  */
28242 _ACEOF
28243 cat confdefs.h >>conftest.$ac_ext
28244 cat >>conftest.$ac_ext <<_ACEOF
28245 /* end confdefs.h.  */
28246 #include <$ac_header>
28247 _ACEOF
28248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28249   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28250   ac_status=$?
28251   grep -v '^ *+' conftest.er1 >conftest.err
28252   rm -f conftest.er1
28253   cat conftest.err >&5
28254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255   (exit $ac_status); } >/dev/null; then
28256   if test -s conftest.err; then
28257     ac_cpp_err=$ac_c_preproc_warn_flag
28258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28259   else
28260     ac_cpp_err=
28261   fi
28262 else
28263   ac_cpp_err=yes
28264 fi
28265 if test -z "$ac_cpp_err"; then
28266   ac_header_preproc=yes
28267 else
28268   echo "$as_me: failed program was:" >&5
28269 sed 's/^/| /' conftest.$ac_ext >&5
28270
28271   ac_header_preproc=no
28272 fi
28273 rm -f conftest.err conftest.$ac_ext
28274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28275 echo "${ECHO_T}$ac_header_preproc" >&6
28276
28277 # So?  What about this header?
28278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28279   yes:no: )
28280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28284     ac_header_preproc=yes
28285     ;;
28286   no:yes:* )
28287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28299     (
28300       cat <<\_ASBOX
28301 ## ----------------------------------------- ##
28302 ## Report this to the package-unused lists.  ##
28303 ## ----------------------------------------- ##
28304 _ASBOX
28305     ) |
28306       sed "s/^/$as_me: WARNING:     /" >&2
28307     ;;
28308 esac
28309 echo "$as_me:$LINENO: checking for $ac_header" >&5
28310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28312   echo $ECHO_N "(cached) $ECHO_C" >&6
28313 else
28314   eval "$as_ac_Header=\$ac_header_preproc"
28315 fi
28316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28318
28319 fi
28320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28321   cat >>confdefs.h <<_ACEOF
28322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28323 _ACEOF
28324  ac_has_wctype_h=yes
28325 else
28326   ac_has_wctype_h=no
28327 fi
28328
28329 done
28330
28331
28332   # Only continue checking if the ISO C99 headers exist and support is on.
28333   if test x"$ac_has_wchar_h" = xyes &&
28334      test x"$ac_has_wctype_h" = xyes &&
28335      test x"$enable_c_mbchar" != xno; then
28336
28337     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
28338     # numeric_limits can instantiate type_traits<wchar_t>
28339     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
28340 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
28341     cat >conftest.$ac_ext <<_ACEOF
28342 /* confdefs.h.  */
28343 _ACEOF
28344 cat confdefs.h >>conftest.$ac_ext
28345 cat >>conftest.$ac_ext <<_ACEOF
28346 /* end confdefs.h.  */
28347 #include <wchar.h>
28348 int
28349 main ()
28350 {
28351 int i = WCHAR_MIN; int j = WCHAR_MAX;
28352   ;
28353   return 0;
28354 }
28355 _ACEOF
28356 rm -f conftest.$ac_objext
28357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28358   (eval $ac_compile) 2>conftest.er1
28359   ac_status=$?
28360   grep -v '^ *+' conftest.er1 >conftest.err
28361   rm -f conftest.er1
28362   cat conftest.err >&5
28363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364   (exit $ac_status); } &&
28365          { ac_try='test -z "$ac_c_werror_flag"
28366                          || test ! -s conftest.err'
28367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28368   (eval $ac_try) 2>&5
28369   ac_status=$?
28370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371   (exit $ac_status); }; } &&
28372          { ac_try='test -s conftest.$ac_objext'
28373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28374   (eval $ac_try) 2>&5
28375   ac_status=$?
28376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377   (exit $ac_status); }; }; then
28378   has_wchar_minmax=yes
28379 else
28380   echo "$as_me: failed program was:" >&5
28381 sed 's/^/| /' conftest.$ac_ext >&5
28382
28383 has_wchar_minmax=no
28384 fi
28385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28386     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
28387 echo "${ECHO_T}$has_wchar_minmax" >&6
28388
28389     # Test wchar.h for WEOF, which is what we use to determine whether
28390     # to specialize for char_traits<wchar_t> or not.
28391     echo "$as_me:$LINENO: checking for WEOF" >&5
28392 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
28393     cat >conftest.$ac_ext <<_ACEOF
28394 /* confdefs.h.  */
28395 _ACEOF
28396 cat confdefs.h >>conftest.$ac_ext
28397 cat >>conftest.$ac_ext <<_ACEOF
28398 /* end confdefs.h.  */
28399
28400       #include <wchar.h>
28401       #include <stddef.h>
28402 int
28403 main ()
28404 {
28405 wint_t i = WEOF;
28406   ;
28407   return 0;
28408 }
28409 _ACEOF
28410 rm -f conftest.$ac_objext
28411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28412   (eval $ac_compile) 2>conftest.er1
28413   ac_status=$?
28414   grep -v '^ *+' conftest.er1 >conftest.err
28415   rm -f conftest.er1
28416   cat conftest.err >&5
28417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418   (exit $ac_status); } &&
28419          { ac_try='test -z "$ac_c_werror_flag"
28420                          || test ! -s conftest.err'
28421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28422   (eval $ac_try) 2>&5
28423   ac_status=$?
28424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425   (exit $ac_status); }; } &&
28426          { ac_try='test -s conftest.$ac_objext'
28427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28428   (eval $ac_try) 2>&5
28429   ac_status=$?
28430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431   (exit $ac_status); }; }; then
28432   has_weof=yes
28433 else
28434   echo "$as_me: failed program was:" >&5
28435 sed 's/^/| /' conftest.$ac_ext >&5
28436
28437 has_weof=no
28438 fi
28439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28440     echo "$as_me:$LINENO: result: $has_weof" >&5
28441 echo "${ECHO_T}$has_weof" >&6
28442
28443     # Tests for wide character functions used in char_traits<wchar_t>.
28444     ac_wfuncs=yes
28445
28446
28447
28448
28449
28450
28451 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
28452 do
28453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28454 echo "$as_me:$LINENO: checking for $ac_func" >&5
28455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28456 if eval "test \"\${$as_ac_var+set}\" = set"; then
28457   echo $ECHO_N "(cached) $ECHO_C" >&6
28458 else
28459   if test x$gcc_no_link = xyes; then
28460   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28461 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28462    { (exit 1); exit 1; }; }
28463 fi
28464 cat >conftest.$ac_ext <<_ACEOF
28465 /* confdefs.h.  */
28466 _ACEOF
28467 cat confdefs.h >>conftest.$ac_ext
28468 cat >>conftest.$ac_ext <<_ACEOF
28469 /* end confdefs.h.  */
28470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28472 #define $ac_func innocuous_$ac_func
28473
28474 /* System header to define __stub macros and hopefully few prototypes,
28475     which can conflict with char $ac_func (); below.
28476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28477     <limits.h> exists even on freestanding compilers.  */
28478
28479 #ifdef __STDC__
28480 # include <limits.h>
28481 #else
28482 # include <assert.h>
28483 #endif
28484
28485 #undef $ac_func
28486
28487 /* Override any gcc2 internal prototype to avoid an error.  */
28488 #ifdef __cplusplus
28489 extern "C"
28490 {
28491 #endif
28492 /* We use char because int might match the return type of a gcc2
28493    builtin and then its argument prototype would still apply.  */
28494 char $ac_func ();
28495 /* The GNU C library defines this for functions which it implements
28496     to always fail with ENOSYS.  Some functions are actually named
28497     something starting with __ and the normal name is an alias.  */
28498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28499 choke me
28500 #else
28501 char (*f) () = $ac_func;
28502 #endif
28503 #ifdef __cplusplus
28504 }
28505 #endif
28506
28507 int
28508 main ()
28509 {
28510 return f != $ac_func;
28511   ;
28512   return 0;
28513 }
28514 _ACEOF
28515 rm -f conftest.$ac_objext conftest$ac_exeext
28516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28517   (eval $ac_link) 2>conftest.er1
28518   ac_status=$?
28519   grep -v '^ *+' conftest.er1 >conftest.err
28520   rm -f conftest.er1
28521   cat conftest.err >&5
28522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523   (exit $ac_status); } &&
28524          { ac_try='test -z "$ac_c_werror_flag"
28525                          || test ! -s conftest.err'
28526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28527   (eval $ac_try) 2>&5
28528   ac_status=$?
28529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530   (exit $ac_status); }; } &&
28531          { ac_try='test -s conftest$ac_exeext'
28532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28533   (eval $ac_try) 2>&5
28534   ac_status=$?
28535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536   (exit $ac_status); }; }; then
28537   eval "$as_ac_var=yes"
28538 else
28539   echo "$as_me: failed program was:" >&5
28540 sed 's/^/| /' conftest.$ac_ext >&5
28541
28542 eval "$as_ac_var=no"
28543 fi
28544 rm -f conftest.err conftest.$ac_objext \
28545       conftest$ac_exeext conftest.$ac_ext
28546 fi
28547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28549 if test `eval echo '${'$as_ac_var'}'` = yes; then
28550   cat >>confdefs.h <<_ACEOF
28551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28552 _ACEOF
28553
28554 else
28555   ac_wfuncs=no
28556 fi
28557 done
28558
28559
28560     # Checks for names injected into std:: by the c_std headers.
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574
28575
28576
28577
28578
28579
28580
28581
28582
28583
28584
28585
28586
28587
28588
28589
28590
28591
28592
28593
28594
28595
28596
28597
28598
28599
28600
28601
28602
28603
28604
28605
28606
28607 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
28608     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
28609     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
28610     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
28611     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
28612     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
28613 do
28614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28615 echo "$as_me:$LINENO: checking for $ac_func" >&5
28616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28617 if eval "test \"\${$as_ac_var+set}\" = set"; then
28618   echo $ECHO_N "(cached) $ECHO_C" >&6
28619 else
28620   if test x$gcc_no_link = xyes; then
28621   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28623    { (exit 1); exit 1; }; }
28624 fi
28625 cat >conftest.$ac_ext <<_ACEOF
28626 /* confdefs.h.  */
28627 _ACEOF
28628 cat confdefs.h >>conftest.$ac_ext
28629 cat >>conftest.$ac_ext <<_ACEOF
28630 /* end confdefs.h.  */
28631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28633 #define $ac_func innocuous_$ac_func
28634
28635 /* System header to define __stub macros and hopefully few prototypes,
28636     which can conflict with char $ac_func (); below.
28637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28638     <limits.h> exists even on freestanding compilers.  */
28639
28640 #ifdef __STDC__
28641 # include <limits.h>
28642 #else
28643 # include <assert.h>
28644 #endif
28645
28646 #undef $ac_func
28647
28648 /* Override any gcc2 internal prototype to avoid an error.  */
28649 #ifdef __cplusplus
28650 extern "C"
28651 {
28652 #endif
28653 /* We use char because int might match the return type of a gcc2
28654    builtin and then its argument prototype would still apply.  */
28655 char $ac_func ();
28656 /* The GNU C library defines this for functions which it implements
28657     to always fail with ENOSYS.  Some functions are actually named
28658     something starting with __ and the normal name is an alias.  */
28659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28660 choke me
28661 #else
28662 char (*f) () = $ac_func;
28663 #endif
28664 #ifdef __cplusplus
28665 }
28666 #endif
28667
28668 int
28669 main ()
28670 {
28671 return f != $ac_func;
28672   ;
28673   return 0;
28674 }
28675 _ACEOF
28676 rm -f conftest.$ac_objext conftest$ac_exeext
28677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28678   (eval $ac_link) 2>conftest.er1
28679   ac_status=$?
28680   grep -v '^ *+' conftest.er1 >conftest.err
28681   rm -f conftest.er1
28682   cat conftest.err >&5
28683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684   (exit $ac_status); } &&
28685          { ac_try='test -z "$ac_c_werror_flag"
28686                          || test ! -s conftest.err'
28687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688   (eval $ac_try) 2>&5
28689   ac_status=$?
28690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691   (exit $ac_status); }; } &&
28692          { ac_try='test -s conftest$ac_exeext'
28693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28694   (eval $ac_try) 2>&5
28695   ac_status=$?
28696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697   (exit $ac_status); }; }; then
28698   eval "$as_ac_var=yes"
28699 else
28700   echo "$as_me: failed program was:" >&5
28701 sed 's/^/| /' conftest.$ac_ext >&5
28702
28703 eval "$as_ac_var=no"
28704 fi
28705 rm -f conftest.err conftest.$ac_objext \
28706       conftest$ac_exeext conftest.$ac_ext
28707 fi
28708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28709 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28710 if test `eval echo '${'$as_ac_var'}'` = yes; then
28711   cat >>confdefs.h <<_ACEOF
28712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28713 _ACEOF
28714
28715 else
28716   ac_wfuncs=no
28717 fi
28718 done
28719
28720
28721     # Checks for wide character functions that are not required
28722     # for basic wchar_t support.  Don't disable support if they are missing.
28723     # Injection of these is wrapped with guard macros.
28724
28725
28726
28727
28728
28729 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
28730 do
28731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28732 echo "$as_me:$LINENO: checking for $ac_func" >&5
28733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28734 if eval "test \"\${$as_ac_var+set}\" = set"; then
28735   echo $ECHO_N "(cached) $ECHO_C" >&6
28736 else
28737   if test x$gcc_no_link = xyes; then
28738   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28739 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28740    { (exit 1); exit 1; }; }
28741 fi
28742 cat >conftest.$ac_ext <<_ACEOF
28743 /* confdefs.h.  */
28744 _ACEOF
28745 cat confdefs.h >>conftest.$ac_ext
28746 cat >>conftest.$ac_ext <<_ACEOF
28747 /* end confdefs.h.  */
28748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28750 #define $ac_func innocuous_$ac_func
28751
28752 /* System header to define __stub macros and hopefully few prototypes,
28753     which can conflict with char $ac_func (); below.
28754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28755     <limits.h> exists even on freestanding compilers.  */
28756
28757 #ifdef __STDC__
28758 # include <limits.h>
28759 #else
28760 # include <assert.h>
28761 #endif
28762
28763 #undef $ac_func
28764
28765 /* Override any gcc2 internal prototype to avoid an error.  */
28766 #ifdef __cplusplus
28767 extern "C"
28768 {
28769 #endif
28770 /* We use char because int might match the return type of a gcc2
28771    builtin and then its argument prototype would still apply.  */
28772 char $ac_func ();
28773 /* The GNU C library defines this for functions which it implements
28774     to always fail with ENOSYS.  Some functions are actually named
28775     something starting with __ and the normal name is an alias.  */
28776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28777 choke me
28778 #else
28779 char (*f) () = $ac_func;
28780 #endif
28781 #ifdef __cplusplus
28782 }
28783 #endif
28784
28785 int
28786 main ()
28787 {
28788 return f != $ac_func;
28789   ;
28790   return 0;
28791 }
28792 _ACEOF
28793 rm -f conftest.$ac_objext conftest$ac_exeext
28794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28795   (eval $ac_link) 2>conftest.er1
28796   ac_status=$?
28797   grep -v '^ *+' conftest.er1 >conftest.err
28798   rm -f conftest.er1
28799   cat conftest.err >&5
28800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28801   (exit $ac_status); } &&
28802          { ac_try='test -z "$ac_c_werror_flag"
28803                          || test ! -s conftest.err'
28804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805   (eval $ac_try) 2>&5
28806   ac_status=$?
28807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808   (exit $ac_status); }; } &&
28809          { ac_try='test -s conftest$ac_exeext'
28810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811   (eval $ac_try) 2>&5
28812   ac_status=$?
28813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814   (exit $ac_status); }; }; then
28815   eval "$as_ac_var=yes"
28816 else
28817   echo "$as_me: failed program was:" >&5
28818 sed 's/^/| /' conftest.$ac_ext >&5
28819
28820 eval "$as_ac_var=no"
28821 fi
28822 rm -f conftest.err conftest.$ac_objext \
28823       conftest$ac_exeext conftest.$ac_ext
28824 fi
28825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28827 if test `eval echo '${'$as_ac_var'}'` = yes; then
28828   cat >>confdefs.h <<_ACEOF
28829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28830 _ACEOF
28831
28832 fi
28833 done
28834
28835
28836     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
28837 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
28838     if test x"$has_weof" = xyes &&
28839        test x"$has_wchar_minmax" = xyes &&
28840        test x"$ac_wfuncs" = xyes;
28841     then
28842       ac_isoC99_wchar_t=yes
28843     else
28844       ac_isoC99_wchar_t=no
28845     fi
28846     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
28847 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
28848
28849     # Use iconv for wchar_t to char conversions. As such, check for
28850     # X/Open Portability Guide, version 2 features (XPG2).
28851     if test "${ac_cv_header_iconv_h+set}" = set; then
28852   echo "$as_me:$LINENO: checking for iconv.h" >&5
28853 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28854 if test "${ac_cv_header_iconv_h+set}" = set; then
28855   echo $ECHO_N "(cached) $ECHO_C" >&6
28856 fi
28857 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28858 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28859 else
28860   # Is the header compilable?
28861 echo "$as_me:$LINENO: checking iconv.h usability" >&5
28862 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
28863 cat >conftest.$ac_ext <<_ACEOF
28864 /* confdefs.h.  */
28865 _ACEOF
28866 cat confdefs.h >>conftest.$ac_ext
28867 cat >>conftest.$ac_ext <<_ACEOF
28868 /* end confdefs.h.  */
28869 $ac_includes_default
28870 #include <iconv.h>
28871 _ACEOF
28872 rm -f conftest.$ac_objext
28873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28874   (eval $ac_compile) 2>conftest.er1
28875   ac_status=$?
28876   grep -v '^ *+' conftest.er1 >conftest.err
28877   rm -f conftest.er1
28878   cat conftest.err >&5
28879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28880   (exit $ac_status); } &&
28881          { ac_try='test -z "$ac_c_werror_flag"
28882                          || test ! -s conftest.err'
28883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884   (eval $ac_try) 2>&5
28885   ac_status=$?
28886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887   (exit $ac_status); }; } &&
28888          { ac_try='test -s conftest.$ac_objext'
28889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890   (eval $ac_try) 2>&5
28891   ac_status=$?
28892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893   (exit $ac_status); }; }; then
28894   ac_header_compiler=yes
28895 else
28896   echo "$as_me: failed program was:" >&5
28897 sed 's/^/| /' conftest.$ac_ext >&5
28898
28899 ac_header_compiler=no
28900 fi
28901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28902 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28903 echo "${ECHO_T}$ac_header_compiler" >&6
28904
28905 # Is the header present?
28906 echo "$as_me:$LINENO: checking iconv.h presence" >&5
28907 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
28908 cat >conftest.$ac_ext <<_ACEOF
28909 /* confdefs.h.  */
28910 _ACEOF
28911 cat confdefs.h >>conftest.$ac_ext
28912 cat >>conftest.$ac_ext <<_ACEOF
28913 /* end confdefs.h.  */
28914 #include <iconv.h>
28915 _ACEOF
28916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28918   ac_status=$?
28919   grep -v '^ *+' conftest.er1 >conftest.err
28920   rm -f conftest.er1
28921   cat conftest.err >&5
28922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923   (exit $ac_status); } >/dev/null; then
28924   if test -s conftest.err; then
28925     ac_cpp_err=$ac_c_preproc_warn_flag
28926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28927   else
28928     ac_cpp_err=
28929   fi
28930 else
28931   ac_cpp_err=yes
28932 fi
28933 if test -z "$ac_cpp_err"; then
28934   ac_header_preproc=yes
28935 else
28936   echo "$as_me: failed program was:" >&5
28937 sed 's/^/| /' conftest.$ac_ext >&5
28938
28939   ac_header_preproc=no
28940 fi
28941 rm -f conftest.err conftest.$ac_ext
28942 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28943 echo "${ECHO_T}$ac_header_preproc" >&6
28944
28945 # So?  What about this header?
28946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28947   yes:no: )
28948     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
28949 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28950     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
28951 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
28952     ac_header_preproc=yes
28953     ;;
28954   no:yes:* )
28955     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
28956 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
28957     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
28958 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
28959     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
28960 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
28961     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
28962 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28963     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
28964 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
28965     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
28966 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
28967     (
28968       cat <<\_ASBOX
28969 ## ----------------------------------------- ##
28970 ## Report this to the package-unused lists.  ##
28971 ## ----------------------------------------- ##
28972 _ASBOX
28973     ) |
28974       sed "s/^/$as_me: WARNING:     /" >&2
28975     ;;
28976 esac
28977 echo "$as_me:$LINENO: checking for iconv.h" >&5
28978 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
28979 if test "${ac_cv_header_iconv_h+set}" = set; then
28980   echo $ECHO_N "(cached) $ECHO_C" >&6
28981 else
28982   ac_cv_header_iconv_h=$ac_header_preproc
28983 fi
28984 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
28985 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
28986
28987 fi
28988 if test $ac_cv_header_iconv_h = yes; then
28989   ac_has_iconv_h=yes
28990 else
28991   ac_has_iconv_h=no
28992 fi
28993
28994
28995     if test "${ac_cv_header_langinfo_h+set}" = set; then
28996   echo "$as_me:$LINENO: checking for langinfo.h" >&5
28997 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
28998 if test "${ac_cv_header_langinfo_h+set}" = set; then
28999   echo $ECHO_N "(cached) $ECHO_C" >&6
29000 fi
29001 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
29002 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
29003 else
29004   # Is the header compilable?
29005 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
29006 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
29007 cat >conftest.$ac_ext <<_ACEOF
29008 /* confdefs.h.  */
29009 _ACEOF
29010 cat confdefs.h >>conftest.$ac_ext
29011 cat >>conftest.$ac_ext <<_ACEOF
29012 /* end confdefs.h.  */
29013 $ac_includes_default
29014 #include <langinfo.h>
29015 _ACEOF
29016 rm -f conftest.$ac_objext
29017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29018   (eval $ac_compile) 2>conftest.er1
29019   ac_status=$?
29020   grep -v '^ *+' conftest.er1 >conftest.err
29021   rm -f conftest.er1
29022   cat conftest.err >&5
29023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024   (exit $ac_status); } &&
29025          { ac_try='test -z "$ac_c_werror_flag"
29026                          || test ! -s conftest.err'
29027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028   (eval $ac_try) 2>&5
29029   ac_status=$?
29030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031   (exit $ac_status); }; } &&
29032          { ac_try='test -s conftest.$ac_objext'
29033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29034   (eval $ac_try) 2>&5
29035   ac_status=$?
29036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037   (exit $ac_status); }; }; then
29038   ac_header_compiler=yes
29039 else
29040   echo "$as_me: failed program was:" >&5
29041 sed 's/^/| /' conftest.$ac_ext >&5
29042
29043 ac_header_compiler=no
29044 fi
29045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29047 echo "${ECHO_T}$ac_header_compiler" >&6
29048
29049 # Is the header present?
29050 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
29051 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
29052 cat >conftest.$ac_ext <<_ACEOF
29053 /* confdefs.h.  */
29054 _ACEOF
29055 cat confdefs.h >>conftest.$ac_ext
29056 cat >>conftest.$ac_ext <<_ACEOF
29057 /* end confdefs.h.  */
29058 #include <langinfo.h>
29059 _ACEOF
29060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29062   ac_status=$?
29063   grep -v '^ *+' conftest.er1 >conftest.err
29064   rm -f conftest.er1
29065   cat conftest.err >&5
29066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067   (exit $ac_status); } >/dev/null; then
29068   if test -s conftest.err; then
29069     ac_cpp_err=$ac_c_preproc_warn_flag
29070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29071   else
29072     ac_cpp_err=
29073   fi
29074 else
29075   ac_cpp_err=yes
29076 fi
29077 if test -z "$ac_cpp_err"; then
29078   ac_header_preproc=yes
29079 else
29080   echo "$as_me: failed program was:" >&5
29081 sed 's/^/| /' conftest.$ac_ext >&5
29082
29083   ac_header_preproc=no
29084 fi
29085 rm -f conftest.err conftest.$ac_ext
29086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29087 echo "${ECHO_T}$ac_header_preproc" >&6
29088
29089 # So?  What about this header?
29090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29091   yes:no: )
29092     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
29093 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29094     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
29095 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
29096     ac_header_preproc=yes
29097     ;;
29098   no:yes:* )
29099     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
29100 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
29101     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
29102 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
29103     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
29104 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
29105     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
29106 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29107     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
29108 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
29109     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
29110 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
29111     (
29112       cat <<\_ASBOX
29113 ## ----------------------------------------- ##
29114 ## Report this to the package-unused lists.  ##
29115 ## ----------------------------------------- ##
29116 _ASBOX
29117     ) |
29118       sed "s/^/$as_me: WARNING:     /" >&2
29119     ;;
29120 esac
29121 echo "$as_me:$LINENO: checking for langinfo.h" >&5
29122 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
29123 if test "${ac_cv_header_langinfo_h+set}" = set; then
29124   echo $ECHO_N "(cached) $ECHO_C" >&6
29125 else
29126   ac_cv_header_langinfo_h=$ac_header_preproc
29127 fi
29128 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
29129 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
29130
29131 fi
29132 if test $ac_cv_header_langinfo_h = yes; then
29133   ac_has_langinfo_h=yes
29134 else
29135   ac_has_langinfo_h=no
29136 fi
29137
29138
29139
29140     # Check for existence of libiconv.a providing XPG2 wchar_t support.
29141     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
29142 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
29143 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
29144   echo $ECHO_N "(cached) $ECHO_C" >&6
29145 else
29146   ac_check_lib_save_LIBS=$LIBS
29147 LIBS="-liconv  $LIBS"
29148 if test x$gcc_no_link = xyes; then
29149   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29150 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29151    { (exit 1); exit 1; }; }
29152 fi
29153 cat >conftest.$ac_ext <<_ACEOF
29154 /* confdefs.h.  */
29155 _ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h.  */
29159
29160 /* Override any gcc2 internal prototype to avoid an error.  */
29161 #ifdef __cplusplus
29162 extern "C"
29163 #endif
29164 /* We use char because int might match the return type of a gcc2
29165    builtin and then its argument prototype would still apply.  */
29166 char iconv ();
29167 int
29168 main ()
29169 {
29170 iconv ();
29171   ;
29172   return 0;
29173 }
29174 _ACEOF
29175 rm -f conftest.$ac_objext conftest$ac_exeext
29176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29177   (eval $ac_link) 2>conftest.er1
29178   ac_status=$?
29179   grep -v '^ *+' conftest.er1 >conftest.err
29180   rm -f conftest.er1
29181   cat conftest.err >&5
29182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183   (exit $ac_status); } &&
29184          { ac_try='test -z "$ac_c_werror_flag"
29185                          || test ! -s conftest.err'
29186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29187   (eval $ac_try) 2>&5
29188   ac_status=$?
29189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190   (exit $ac_status); }; } &&
29191          { ac_try='test -s conftest$ac_exeext'
29192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29193   (eval $ac_try) 2>&5
29194   ac_status=$?
29195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196   (exit $ac_status); }; }; then
29197   ac_cv_lib_iconv_iconv=yes
29198 else
29199   echo "$as_me: failed program was:" >&5
29200 sed 's/^/| /' conftest.$ac_ext >&5
29201
29202 ac_cv_lib_iconv_iconv=no
29203 fi
29204 rm -f conftest.err conftest.$ac_objext \
29205       conftest$ac_exeext conftest.$ac_ext
29206 LIBS=$ac_check_lib_save_LIBS
29207 fi
29208 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
29209 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
29210 if test $ac_cv_lib_iconv_iconv = yes; then
29211   LIBICONV="-liconv"
29212 fi
29213
29214     ac_save_LIBS="$LIBS"
29215     LIBS="$LIBS $LIBICONV"
29216
29217
29218
29219
29220
29221
29222 for ac_func in iconv_open iconv_close iconv nl_langinfo
29223 do
29224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29225 echo "$as_me:$LINENO: checking for $ac_func" >&5
29226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29227 if eval "test \"\${$as_ac_var+set}\" = set"; then
29228   echo $ECHO_N "(cached) $ECHO_C" >&6
29229 else
29230   if test x$gcc_no_link = xyes; then
29231   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29232 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29233    { (exit 1); exit 1; }; }
29234 fi
29235 cat >conftest.$ac_ext <<_ACEOF
29236 /* confdefs.h.  */
29237 _ACEOF
29238 cat confdefs.h >>conftest.$ac_ext
29239 cat >>conftest.$ac_ext <<_ACEOF
29240 /* end confdefs.h.  */
29241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29243 #define $ac_func innocuous_$ac_func
29244
29245 /* System header to define __stub macros and hopefully few prototypes,
29246     which can conflict with char $ac_func (); below.
29247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29248     <limits.h> exists even on freestanding compilers.  */
29249
29250 #ifdef __STDC__
29251 # include <limits.h>
29252 #else
29253 # include <assert.h>
29254 #endif
29255
29256 #undef $ac_func
29257
29258 /* Override any gcc2 internal prototype to avoid an error.  */
29259 #ifdef __cplusplus
29260 extern "C"
29261 {
29262 #endif
29263 /* We use char because int might match the return type of a gcc2
29264    builtin and then its argument prototype would still apply.  */
29265 char $ac_func ();
29266 /* The GNU C library defines this for functions which it implements
29267     to always fail with ENOSYS.  Some functions are actually named
29268     something starting with __ and the normal name is an alias.  */
29269 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29270 choke me
29271 #else
29272 char (*f) () = $ac_func;
29273 #endif
29274 #ifdef __cplusplus
29275 }
29276 #endif
29277
29278 int
29279 main ()
29280 {
29281 return f != $ac_func;
29282   ;
29283   return 0;
29284 }
29285 _ACEOF
29286 rm -f conftest.$ac_objext conftest$ac_exeext
29287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29288   (eval $ac_link) 2>conftest.er1
29289   ac_status=$?
29290   grep -v '^ *+' conftest.er1 >conftest.err
29291   rm -f conftest.er1
29292   cat conftest.err >&5
29293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294   (exit $ac_status); } &&
29295          { ac_try='test -z "$ac_c_werror_flag"
29296                          || test ! -s conftest.err'
29297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29298   (eval $ac_try) 2>&5
29299   ac_status=$?
29300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301   (exit $ac_status); }; } &&
29302          { ac_try='test -s conftest$ac_exeext'
29303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29304   (eval $ac_try) 2>&5
29305   ac_status=$?
29306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307   (exit $ac_status); }; }; then
29308   eval "$as_ac_var=yes"
29309 else
29310   echo "$as_me: failed program was:" >&5
29311 sed 's/^/| /' conftest.$ac_ext >&5
29312
29313 eval "$as_ac_var=no"
29314 fi
29315 rm -f conftest.err conftest.$ac_objext \
29316       conftest$ac_exeext conftest.$ac_ext
29317 fi
29318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29319 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29320 if test `eval echo '${'$as_ac_var'}'` = yes; then
29321   cat >>confdefs.h <<_ACEOF
29322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29323 _ACEOF
29324  ac_XPG2funcs=yes
29325 else
29326   ac_XPG2funcs=no
29327 fi
29328 done
29329
29330
29331     LIBS="$ac_save_LIBS"
29332
29333     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
29334 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
29335     if test x"$ac_has_iconv_h" = xyes &&
29336        test x"$ac_has_langinfo_h" = xyes &&
29337        test x"$ac_XPG2funcs" = xyes;
29338     then
29339       ac_XPG2_wchar_t=yes
29340     else
29341       ac_XPG2_wchar_t=no
29342     fi
29343     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
29344 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
29345
29346     # At the moment, only enable wchar_t specializations if all the
29347     # above support is present.
29348     if test x"$ac_isoC99_wchar_t" = xyes &&
29349        test x"$ac_XPG2_wchar_t" = xyes;
29350     then
29351       cat >>confdefs.h <<\_ACEOF
29352 #define _GLIBCXX_USE_WCHAR_T 1
29353 _ACEOF
29354
29355       enable_wchar_t=yes
29356     fi
29357   fi
29358   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
29359 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
29360   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
29361 echo "${ECHO_T}$enable_wchar_t" >&6
29362
29363
29364   ac_test_CXXFLAGS="${CXXFLAGS+set}"
29365   ac_save_CXXFLAGS="$CXXFLAGS"
29366   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
29367
29368
29369   echo "$as_me:$LINENO: checking for strtold declaration" >&5
29370 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
29371   if test x${glibcxx_cv_func_strtold_use+set} != xset; then
29372     if test "${glibcxx_cv_func_strtold_use+set}" = set; then
29373   echo $ECHO_N "(cached) $ECHO_C" >&6
29374 else
29375
29376
29377
29378       ac_ext=cc
29379 ac_cpp='$CXXCPP $CPPFLAGS'
29380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29383
29384       cat >conftest.$ac_ext <<_ACEOF
29385 /* confdefs.h.  */
29386 _ACEOF
29387 cat confdefs.h >>conftest.$ac_ext
29388 cat >>conftest.$ac_ext <<_ACEOF
29389 /* end confdefs.h.  */
29390 #include <stdlib.h>
29391 int
29392 main ()
29393 {
29394  strtold(0, 0);
29395   ;
29396   return 0;
29397 }
29398 _ACEOF
29399 rm -f conftest.$ac_objext
29400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29401   (eval $ac_compile) 2>conftest.er1
29402   ac_status=$?
29403   grep -v '^ *+' conftest.er1 >conftest.err
29404   rm -f conftest.er1
29405   cat conftest.err >&5
29406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407   (exit $ac_status); } &&
29408          { ac_try='test -z "$ac_cxx_werror_flag"
29409                          || test ! -s conftest.err'
29410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411   (eval $ac_try) 2>&5
29412   ac_status=$?
29413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414   (exit $ac_status); }; } &&
29415          { ac_try='test -s conftest.$ac_objext'
29416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29417   (eval $ac_try) 2>&5
29418   ac_status=$?
29419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420   (exit $ac_status); }; }; then
29421   glibcxx_cv_func_strtold_use=yes
29422 else
29423   echo "$as_me: failed program was:" >&5
29424 sed 's/^/| /' conftest.$ac_ext >&5
29425
29426 glibcxx_cv_func_strtold_use=no
29427 fi
29428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29429       ac_ext=c
29430 ac_cpp='$CPP $CPPFLAGS'
29431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29434
29435
29436 fi
29437
29438   fi
29439   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
29440 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
29441   if test x$glibcxx_cv_func_strtold_use = x"yes"; then
29442
29443 for ac_func in strtold
29444 do
29445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29446 echo "$as_me:$LINENO: checking for $ac_func" >&5
29447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29448 if eval "test \"\${$as_ac_var+set}\" = set"; then
29449   echo $ECHO_N "(cached) $ECHO_C" >&6
29450 else
29451   if test x$gcc_no_link = xyes; then
29452   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29453 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29454    { (exit 1); exit 1; }; }
29455 fi
29456 cat >conftest.$ac_ext <<_ACEOF
29457 /* confdefs.h.  */
29458 _ACEOF
29459 cat confdefs.h >>conftest.$ac_ext
29460 cat >>conftest.$ac_ext <<_ACEOF
29461 /* end confdefs.h.  */
29462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29464 #define $ac_func innocuous_$ac_func
29465
29466 /* System header to define __stub macros and hopefully few prototypes,
29467     which can conflict with char $ac_func (); below.
29468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29469     <limits.h> exists even on freestanding compilers.  */
29470
29471 #ifdef __STDC__
29472 # include <limits.h>
29473 #else
29474 # include <assert.h>
29475 #endif
29476
29477 #undef $ac_func
29478
29479 /* Override any gcc2 internal prototype to avoid an error.  */
29480 #ifdef __cplusplus
29481 extern "C"
29482 {
29483 #endif
29484 /* We use char because int might match the return type of a gcc2
29485    builtin and then its argument prototype would still apply.  */
29486 char $ac_func ();
29487 /* The GNU C library defines this for functions which it implements
29488     to always fail with ENOSYS.  Some functions are actually named
29489     something starting with __ and the normal name is an alias.  */
29490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29491 choke me
29492 #else
29493 char (*f) () = $ac_func;
29494 #endif
29495 #ifdef __cplusplus
29496 }
29497 #endif
29498
29499 int
29500 main ()
29501 {
29502 return f != $ac_func;
29503   ;
29504   return 0;
29505 }
29506 _ACEOF
29507 rm -f conftest.$ac_objext conftest$ac_exeext
29508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29509   (eval $ac_link) 2>conftest.er1
29510   ac_status=$?
29511   grep -v '^ *+' conftest.er1 >conftest.err
29512   rm -f conftest.er1
29513   cat conftest.err >&5
29514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515   (exit $ac_status); } &&
29516          { ac_try='test -z "$ac_c_werror_flag"
29517                          || test ! -s conftest.err'
29518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29519   (eval $ac_try) 2>&5
29520   ac_status=$?
29521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522   (exit $ac_status); }; } &&
29523          { ac_try='test -s conftest$ac_exeext'
29524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525   (eval $ac_try) 2>&5
29526   ac_status=$?
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); }; }; then
29529   eval "$as_ac_var=yes"
29530 else
29531   echo "$as_me: failed program was:" >&5
29532 sed 's/^/| /' conftest.$ac_ext >&5
29533
29534 eval "$as_ac_var=no"
29535 fi
29536 rm -f conftest.err conftest.$ac_objext \
29537       conftest$ac_exeext conftest.$ac_ext
29538 fi
29539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29541 if test `eval echo '${'$as_ac_var'}'` = yes; then
29542   cat >>confdefs.h <<_ACEOF
29543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29544 _ACEOF
29545
29546 fi
29547 done
29548
29549   fi
29550
29551
29552   echo "$as_me:$LINENO: checking for strtof declaration" >&5
29553 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
29554   if test x${glibcxx_cv_func_strtof_use+set} != xset; then
29555     if test "${glibcxx_cv_func_strtof_use+set}" = set; then
29556   echo $ECHO_N "(cached) $ECHO_C" >&6
29557 else
29558
29559
29560
29561       ac_ext=cc
29562 ac_cpp='$CXXCPP $CPPFLAGS'
29563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29566
29567       cat >conftest.$ac_ext <<_ACEOF
29568 /* confdefs.h.  */
29569 _ACEOF
29570 cat confdefs.h >>conftest.$ac_ext
29571 cat >>conftest.$ac_ext <<_ACEOF
29572 /* end confdefs.h.  */
29573 #include <stdlib.h>
29574 int
29575 main ()
29576 {
29577  strtof(0, 0);
29578   ;
29579   return 0;
29580 }
29581 _ACEOF
29582 rm -f conftest.$ac_objext
29583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29584   (eval $ac_compile) 2>conftest.er1
29585   ac_status=$?
29586   grep -v '^ *+' conftest.er1 >conftest.err
29587   rm -f conftest.er1
29588   cat conftest.err >&5
29589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590   (exit $ac_status); } &&
29591          { ac_try='test -z "$ac_cxx_werror_flag"
29592                          || test ! -s conftest.err'
29593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29594   (eval $ac_try) 2>&5
29595   ac_status=$?
29596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29597   (exit $ac_status); }; } &&
29598          { ac_try='test -s conftest.$ac_objext'
29599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29600   (eval $ac_try) 2>&5
29601   ac_status=$?
29602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); }; }; then
29604   glibcxx_cv_func_strtof_use=yes
29605 else
29606   echo "$as_me: failed program was:" >&5
29607 sed 's/^/| /' conftest.$ac_ext >&5
29608
29609 glibcxx_cv_func_strtof_use=no
29610 fi
29611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29612       ac_ext=c
29613 ac_cpp='$CPP $CPPFLAGS'
29614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29617
29618
29619 fi
29620
29621   fi
29622   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
29623 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
29624   if test x$glibcxx_cv_func_strtof_use = x"yes"; then
29625
29626 for ac_func in strtof
29627 do
29628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29629 echo "$as_me:$LINENO: checking for $ac_func" >&5
29630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29631 if eval "test \"\${$as_ac_var+set}\" = set"; then
29632   echo $ECHO_N "(cached) $ECHO_C" >&6
29633 else
29634   if test x$gcc_no_link = xyes; then
29635   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29637    { (exit 1); exit 1; }; }
29638 fi
29639 cat >conftest.$ac_ext <<_ACEOF
29640 /* confdefs.h.  */
29641 _ACEOF
29642 cat confdefs.h >>conftest.$ac_ext
29643 cat >>conftest.$ac_ext <<_ACEOF
29644 /* end confdefs.h.  */
29645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29647 #define $ac_func innocuous_$ac_func
29648
29649 /* System header to define __stub macros and hopefully few prototypes,
29650     which can conflict with char $ac_func (); below.
29651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29652     <limits.h> exists even on freestanding compilers.  */
29653
29654 #ifdef __STDC__
29655 # include <limits.h>
29656 #else
29657 # include <assert.h>
29658 #endif
29659
29660 #undef $ac_func
29661
29662 /* Override any gcc2 internal prototype to avoid an error.  */
29663 #ifdef __cplusplus
29664 extern "C"
29665 {
29666 #endif
29667 /* We use char because int might match the return type of a gcc2
29668    builtin and then its argument prototype would still apply.  */
29669 char $ac_func ();
29670 /* The GNU C library defines this for functions which it implements
29671     to always fail with ENOSYS.  Some functions are actually named
29672     something starting with __ and the normal name is an alias.  */
29673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29674 choke me
29675 #else
29676 char (*f) () = $ac_func;
29677 #endif
29678 #ifdef __cplusplus
29679 }
29680 #endif
29681
29682 int
29683 main ()
29684 {
29685 return f != $ac_func;
29686   ;
29687   return 0;
29688 }
29689 _ACEOF
29690 rm -f conftest.$ac_objext conftest$ac_exeext
29691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29692   (eval $ac_link) 2>conftest.er1
29693   ac_status=$?
29694   grep -v '^ *+' conftest.er1 >conftest.err
29695   rm -f conftest.er1
29696   cat conftest.err >&5
29697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698   (exit $ac_status); } &&
29699          { ac_try='test -z "$ac_c_werror_flag"
29700                          || test ! -s conftest.err'
29701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29702   (eval $ac_try) 2>&5
29703   ac_status=$?
29704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705   (exit $ac_status); }; } &&
29706          { ac_try='test -s conftest$ac_exeext'
29707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29708   (eval $ac_try) 2>&5
29709   ac_status=$?
29710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711   (exit $ac_status); }; }; then
29712   eval "$as_ac_var=yes"
29713 else
29714   echo "$as_me: failed program was:" >&5
29715 sed 's/^/| /' conftest.$ac_ext >&5
29716
29717 eval "$as_ac_var=no"
29718 fi
29719 rm -f conftest.err conftest.$ac_objext \
29720       conftest$ac_exeext conftest.$ac_ext
29721 fi
29722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29724 if test `eval echo '${'$as_ac_var'}'` = yes; then
29725   cat >>confdefs.h <<_ACEOF
29726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29727 _ACEOF
29728
29729 fi
29730 done
29731
29732   fi
29733
29734
29735   CXXFLAGS="$ac_save_CXXFLAGS"
29736
29737
29738   # For showmanyc_helper().
29739
29740
29741 for ac_header in sys/ioctl.h sys/filio.h
29742 do
29743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29745   echo "$as_me:$LINENO: checking for $ac_header" >&5
29746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29748   echo $ECHO_N "(cached) $ECHO_C" >&6
29749 fi
29750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29752 else
29753   # Is the header compilable?
29754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29756 cat >conftest.$ac_ext <<_ACEOF
29757 /* confdefs.h.  */
29758 _ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h.  */
29762 $ac_includes_default
29763 #include <$ac_header>
29764 _ACEOF
29765 rm -f conftest.$ac_objext
29766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29767   (eval $ac_compile) 2>conftest.er1
29768   ac_status=$?
29769   grep -v '^ *+' conftest.er1 >conftest.err
29770   rm -f conftest.er1
29771   cat conftest.err >&5
29772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773   (exit $ac_status); } &&
29774          { ac_try='test -z "$ac_c_werror_flag"
29775                          || test ! -s conftest.err'
29776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29777   (eval $ac_try) 2>&5
29778   ac_status=$?
29779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780   (exit $ac_status); }; } &&
29781          { ac_try='test -s conftest.$ac_objext'
29782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29783   (eval $ac_try) 2>&5
29784   ac_status=$?
29785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786   (exit $ac_status); }; }; then
29787   ac_header_compiler=yes
29788 else
29789   echo "$as_me: failed program was:" >&5
29790 sed 's/^/| /' conftest.$ac_ext >&5
29791
29792 ac_header_compiler=no
29793 fi
29794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29796 echo "${ECHO_T}$ac_header_compiler" >&6
29797
29798 # Is the header present?
29799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29801 cat >conftest.$ac_ext <<_ACEOF
29802 /* confdefs.h.  */
29803 _ACEOF
29804 cat confdefs.h >>conftest.$ac_ext
29805 cat >>conftest.$ac_ext <<_ACEOF
29806 /* end confdefs.h.  */
29807 #include <$ac_header>
29808 _ACEOF
29809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29811   ac_status=$?
29812   grep -v '^ *+' conftest.er1 >conftest.err
29813   rm -f conftest.er1
29814   cat conftest.err >&5
29815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816   (exit $ac_status); } >/dev/null; then
29817   if test -s conftest.err; then
29818     ac_cpp_err=$ac_c_preproc_warn_flag
29819     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29820   else
29821     ac_cpp_err=
29822   fi
29823 else
29824   ac_cpp_err=yes
29825 fi
29826 if test -z "$ac_cpp_err"; then
29827   ac_header_preproc=yes
29828 else
29829   echo "$as_me: failed program was:" >&5
29830 sed 's/^/| /' conftest.$ac_ext >&5
29831
29832   ac_header_preproc=no
29833 fi
29834 rm -f conftest.err conftest.$ac_ext
29835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29836 echo "${ECHO_T}$ac_header_preproc" >&6
29837
29838 # So?  What about this header?
29839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29840   yes:no: )
29841     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29845     ac_header_preproc=yes
29846     ;;
29847   no:yes:* )
29848     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29850     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29851 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29852     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29854     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29855 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29856     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29858     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29860     (
29861       cat <<\_ASBOX
29862 ## ----------------------------------------- ##
29863 ## Report this to the package-unused lists.  ##
29864 ## ----------------------------------------- ##
29865 _ASBOX
29866     ) |
29867       sed "s/^/$as_me: WARNING:     /" >&2
29868     ;;
29869 esac
29870 echo "$as_me:$LINENO: checking for $ac_header" >&5
29871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29873   echo $ECHO_N "(cached) $ECHO_C" >&6
29874 else
29875   eval "$as_ac_Header=\$ac_header_preproc"
29876 fi
29877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29879
29880 fi
29881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29882   cat >>confdefs.h <<_ACEOF
29883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29884 _ACEOF
29885
29886 fi
29887
29888 done
29889
29890
29891   if test "${glibcxx_cv_POLL+set}" = set; then
29892   echo $ECHO_N "(cached) $ECHO_C" >&6
29893 else
29894
29895     if test x$gcc_no_link = xyes; then
29896   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29897 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29898    { (exit 1); exit 1; }; }
29899 fi
29900 cat >conftest.$ac_ext <<_ACEOF
29901 /* confdefs.h.  */
29902 _ACEOF
29903 cat confdefs.h >>conftest.$ac_ext
29904 cat >>conftest.$ac_ext <<_ACEOF
29905 /* end confdefs.h.  */
29906 #include <poll.h>
29907 int
29908 main ()
29909 {
29910 struct pollfd pfd[1];
29911        pfd[0].events = POLLIN;
29912        poll(pfd, 1, 0);
29913   ;
29914   return 0;
29915 }
29916 _ACEOF
29917 rm -f conftest.$ac_objext conftest$ac_exeext
29918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29919   (eval $ac_link) 2>conftest.er1
29920   ac_status=$?
29921   grep -v '^ *+' conftest.er1 >conftest.err
29922   rm -f conftest.er1
29923   cat conftest.err >&5
29924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925   (exit $ac_status); } &&
29926          { ac_try='test -z "$ac_c_werror_flag"
29927                          || test ! -s conftest.err'
29928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29929   (eval $ac_try) 2>&5
29930   ac_status=$?
29931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932   (exit $ac_status); }; } &&
29933          { ac_try='test -s conftest$ac_exeext'
29934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935   (eval $ac_try) 2>&5
29936   ac_status=$?
29937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938   (exit $ac_status); }; }; then
29939   glibcxx_cv_POLL=yes
29940 else
29941   echo "$as_me: failed program was:" >&5
29942 sed 's/^/| /' conftest.$ac_ext >&5
29943
29944 glibcxx_cv_POLL=no
29945 fi
29946 rm -f conftest.err conftest.$ac_objext \
29947       conftest$ac_exeext conftest.$ac_ext
29948
29949 fi
29950
29951   if test $glibcxx_cv_POLL = yes; then
29952     cat >>confdefs.h <<\_ACEOF
29953 #define HAVE_POLL 1
29954 _ACEOF
29955
29956   fi
29957
29958
29959   if test "${glibcxx_cv_S_ISREG+set}" = set; then
29960   echo $ECHO_N "(cached) $ECHO_C" >&6
29961 else
29962
29963     if test x$gcc_no_link = xyes; then
29964   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29965 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29966    { (exit 1); exit 1; }; }
29967 fi
29968 cat >conftest.$ac_ext <<_ACEOF
29969 /* confdefs.h.  */
29970 _ACEOF
29971 cat confdefs.h >>conftest.$ac_ext
29972 cat >>conftest.$ac_ext <<_ACEOF
29973 /* end confdefs.h.  */
29974 #include <sys/stat.h>
29975 int
29976 main ()
29977 {
29978 struct stat buffer;
29979        fstat(0, &buffer);
29980        S_ISREG(buffer.st_mode);
29981   ;
29982   return 0;
29983 }
29984 _ACEOF
29985 rm -f conftest.$ac_objext conftest$ac_exeext
29986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29987   (eval $ac_link) 2>conftest.er1
29988   ac_status=$?
29989   grep -v '^ *+' conftest.er1 >conftest.err
29990   rm -f conftest.er1
29991   cat conftest.err >&5
29992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993   (exit $ac_status); } &&
29994          { ac_try='test -z "$ac_c_werror_flag"
29995                          || test ! -s conftest.err'
29996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29997   (eval $ac_try) 2>&5
29998   ac_status=$?
29999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000   (exit $ac_status); }; } &&
30001          { ac_try='test -s conftest$ac_exeext'
30002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30003   (eval $ac_try) 2>&5
30004   ac_status=$?
30005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006   (exit $ac_status); }; }; then
30007   glibcxx_cv_S_ISREG=yes
30008 else
30009   echo "$as_me: failed program was:" >&5
30010 sed 's/^/| /' conftest.$ac_ext >&5
30011
30012 glibcxx_cv_S_ISREG=no
30013 fi
30014 rm -f conftest.err conftest.$ac_objext \
30015       conftest$ac_exeext conftest.$ac_ext
30016
30017 fi
30018
30019   if test "${glibcxx_cv_S_IFREG+set}" = set; then
30020   echo $ECHO_N "(cached) $ECHO_C" >&6
30021 else
30022
30023     if test x$gcc_no_link = xyes; then
30024   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30025 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30026    { (exit 1); exit 1; }; }
30027 fi
30028 cat >conftest.$ac_ext <<_ACEOF
30029 /* confdefs.h.  */
30030 _ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h.  */
30034 #include <sys/stat.h>
30035 int
30036 main ()
30037 {
30038 struct stat buffer;
30039        fstat(0, &buffer);
30040        S_IFREG & buffer.st_mode;
30041   ;
30042   return 0;
30043 }
30044 _ACEOF
30045 rm -f conftest.$ac_objext conftest$ac_exeext
30046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30047   (eval $ac_link) 2>conftest.er1
30048   ac_status=$?
30049   grep -v '^ *+' conftest.er1 >conftest.err
30050   rm -f conftest.er1
30051   cat conftest.err >&5
30052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053   (exit $ac_status); } &&
30054          { ac_try='test -z "$ac_c_werror_flag"
30055                          || test ! -s conftest.err'
30056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30057   (eval $ac_try) 2>&5
30058   ac_status=$?
30059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060   (exit $ac_status); }; } &&
30061          { ac_try='test -s conftest$ac_exeext'
30062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30063   (eval $ac_try) 2>&5
30064   ac_status=$?
30065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066   (exit $ac_status); }; }; then
30067   glibcxx_cv_S_IFREG=yes
30068 else
30069   echo "$as_me: failed program was:" >&5
30070 sed 's/^/| /' conftest.$ac_ext >&5
30071
30072 glibcxx_cv_S_IFREG=no
30073 fi
30074 rm -f conftest.err conftest.$ac_objext \
30075       conftest$ac_exeext conftest.$ac_ext
30076
30077 fi
30078
30079   if test $glibcxx_cv_S_ISREG = yes; then
30080     cat >>confdefs.h <<\_ACEOF
30081 #define HAVE_S_ISREG 1
30082 _ACEOF
30083
30084   elif test $glibcxx_cv_S_IFREG = yes; then
30085     cat >>confdefs.h <<\_ACEOF
30086 #define HAVE_S_IFREG 1
30087 _ACEOF
30088
30089   fi
30090
30091
30092   # For xsputn_2().
30093
30094 for ac_header in sys/uio.h
30095 do
30096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30098   echo "$as_me:$LINENO: checking for $ac_header" >&5
30099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30101   echo $ECHO_N "(cached) $ECHO_C" >&6
30102 fi
30103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30105 else
30106   # Is the header compilable?
30107 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30109 cat >conftest.$ac_ext <<_ACEOF
30110 /* confdefs.h.  */
30111 _ACEOF
30112 cat confdefs.h >>conftest.$ac_ext
30113 cat >>conftest.$ac_ext <<_ACEOF
30114 /* end confdefs.h.  */
30115 $ac_includes_default
30116 #include <$ac_header>
30117 _ACEOF
30118 rm -f conftest.$ac_objext
30119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30120   (eval $ac_compile) 2>conftest.er1
30121   ac_status=$?
30122   grep -v '^ *+' conftest.er1 >conftest.err
30123   rm -f conftest.er1
30124   cat conftest.err >&5
30125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126   (exit $ac_status); } &&
30127          { ac_try='test -z "$ac_c_werror_flag"
30128                          || test ! -s conftest.err'
30129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30130   (eval $ac_try) 2>&5
30131   ac_status=$?
30132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133   (exit $ac_status); }; } &&
30134          { ac_try='test -s conftest.$ac_objext'
30135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30136   (eval $ac_try) 2>&5
30137   ac_status=$?
30138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139   (exit $ac_status); }; }; then
30140   ac_header_compiler=yes
30141 else
30142   echo "$as_me: failed program was:" >&5
30143 sed 's/^/| /' conftest.$ac_ext >&5
30144
30145 ac_header_compiler=no
30146 fi
30147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30148 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30149 echo "${ECHO_T}$ac_header_compiler" >&6
30150
30151 # Is the header present?
30152 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30154 cat >conftest.$ac_ext <<_ACEOF
30155 /* confdefs.h.  */
30156 _ACEOF
30157 cat confdefs.h >>conftest.$ac_ext
30158 cat >>conftest.$ac_ext <<_ACEOF
30159 /* end confdefs.h.  */
30160 #include <$ac_header>
30161 _ACEOF
30162 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30163   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30164   ac_status=$?
30165   grep -v '^ *+' conftest.er1 >conftest.err
30166   rm -f conftest.er1
30167   cat conftest.err >&5
30168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30169   (exit $ac_status); } >/dev/null; then
30170   if test -s conftest.err; then
30171     ac_cpp_err=$ac_c_preproc_warn_flag
30172     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30173   else
30174     ac_cpp_err=
30175   fi
30176 else
30177   ac_cpp_err=yes
30178 fi
30179 if test -z "$ac_cpp_err"; then
30180   ac_header_preproc=yes
30181 else
30182   echo "$as_me: failed program was:" >&5
30183 sed 's/^/| /' conftest.$ac_ext >&5
30184
30185   ac_header_preproc=no
30186 fi
30187 rm -f conftest.err conftest.$ac_ext
30188 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30189 echo "${ECHO_T}$ac_header_preproc" >&6
30190
30191 # So?  What about this header?
30192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30193   yes:no: )
30194     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30198     ac_header_preproc=yes
30199     ;;
30200   no:yes:* )
30201     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30203     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30204 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30205     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30207     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30208 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30211     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30213     (
30214       cat <<\_ASBOX
30215 ## ----------------------------------------- ##
30216 ## Report this to the package-unused lists.  ##
30217 ## ----------------------------------------- ##
30218 _ASBOX
30219     ) |
30220       sed "s/^/$as_me: WARNING:     /" >&2
30221     ;;
30222 esac
30223 echo "$as_me:$LINENO: checking for $ac_header" >&5
30224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30226   echo $ECHO_N "(cached) $ECHO_C" >&6
30227 else
30228   eval "$as_ac_Header=\$ac_header_preproc"
30229 fi
30230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30232
30233 fi
30234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30235   cat >>confdefs.h <<_ACEOF
30236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30237 _ACEOF
30238
30239 fi
30240
30241 done
30242
30243
30244   if test "${glibcxx_cv_WRITEV+set}" = set; then
30245   echo $ECHO_N "(cached) $ECHO_C" >&6
30246 else
30247
30248     if test x$gcc_no_link = xyes; then
30249   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30250 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30251    { (exit 1); exit 1; }; }
30252 fi
30253 cat >conftest.$ac_ext <<_ACEOF
30254 /* confdefs.h.  */
30255 _ACEOF
30256 cat confdefs.h >>conftest.$ac_ext
30257 cat >>conftest.$ac_ext <<_ACEOF
30258 /* end confdefs.h.  */
30259 #include <sys/uio.h>
30260 int
30261 main ()
30262 {
30263 struct iovec iov[2];
30264        writev(0, iov, 0);
30265   ;
30266   return 0;
30267 }
30268 _ACEOF
30269 rm -f conftest.$ac_objext conftest$ac_exeext
30270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30271   (eval $ac_link) 2>conftest.er1
30272   ac_status=$?
30273   grep -v '^ *+' conftest.er1 >conftest.err
30274   rm -f conftest.er1
30275   cat conftest.err >&5
30276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277   (exit $ac_status); } &&
30278          { ac_try='test -z "$ac_c_werror_flag"
30279                          || test ! -s conftest.err'
30280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30281   (eval $ac_try) 2>&5
30282   ac_status=$?
30283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284   (exit $ac_status); }; } &&
30285          { ac_try='test -s conftest$ac_exeext'
30286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30287   (eval $ac_try) 2>&5
30288   ac_status=$?
30289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290   (exit $ac_status); }; }; then
30291   glibcxx_cv_WRITEV=yes
30292 else
30293   echo "$as_me: failed program was:" >&5
30294 sed 's/^/| /' conftest.$ac_ext >&5
30295
30296 glibcxx_cv_WRITEV=no
30297 fi
30298 rm -f conftest.err conftest.$ac_objext \
30299       conftest$ac_exeext conftest.$ac_ext
30300
30301 fi
30302
30303   if test $glibcxx_cv_WRITEV = yes; then
30304     cat >>confdefs.h <<\_ACEOF
30305 #define HAVE_WRITEV 1
30306 _ACEOF
30307
30308   fi
30309
30310
30311   # For the __streamoff_base_type typedef.
30312
30313   if test "${glibcxx_cv_INT64_T+set}" = set; then
30314   echo $ECHO_N "(cached) $ECHO_C" >&6
30315 else
30316
30317     cat >conftest.$ac_ext <<_ACEOF
30318 /* confdefs.h.  */
30319 _ACEOF
30320 cat confdefs.h >>conftest.$ac_ext
30321 cat >>conftest.$ac_ext <<_ACEOF
30322 /* end confdefs.h.  */
30323 #include <stdint.h>
30324 int
30325 main ()
30326 {
30327 int64_t var;
30328   ;
30329   return 0;
30330 }
30331 _ACEOF
30332 rm -f conftest.$ac_objext
30333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30334   (eval $ac_compile) 2>conftest.er1
30335   ac_status=$?
30336   grep -v '^ *+' conftest.er1 >conftest.err
30337   rm -f conftest.er1
30338   cat conftest.err >&5
30339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30340   (exit $ac_status); } &&
30341          { ac_try='test -z "$ac_c_werror_flag"
30342                          || test ! -s conftest.err'
30343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30344   (eval $ac_try) 2>&5
30345   ac_status=$?
30346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347   (exit $ac_status); }; } &&
30348          { ac_try='test -s conftest.$ac_objext'
30349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30350   (eval $ac_try) 2>&5
30351   ac_status=$?
30352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30353   (exit $ac_status); }; }; then
30354   glibcxx_cv_INT64_T=yes
30355 else
30356   echo "$as_me: failed program was:" >&5
30357 sed 's/^/| /' conftest.$ac_ext >&5
30358
30359 glibcxx_cv_INT64_T=no
30360 fi
30361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30362
30363 fi
30364
30365   if test $glibcxx_cv_INT64_T = yes; then
30366     cat >>confdefs.h <<\_ACEOF
30367 #define HAVE_INT64_T 1
30368 _ACEOF
30369
30370   fi
30371
30372
30373   # For LFS support.
30374
30375
30376
30377   ac_ext=cc
30378 ac_cpp='$CXXCPP $CPPFLAGS'
30379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30382
30383   ac_save_CXXFLAGS="$CXXFLAGS"
30384   CXXFLAGS="$CXXFLAGS -fno-exceptions"
30385   if test "${glibcxx_cv_LFS+set}" = set; then
30386   echo $ECHO_N "(cached) $ECHO_C" >&6
30387 else
30388
30389     if test x$gcc_no_link = xyes; then
30390   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30391 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30392    { (exit 1); exit 1; }; }
30393 fi
30394 cat >conftest.$ac_ext <<_ACEOF
30395 /* confdefs.h.  */
30396 _ACEOF
30397 cat confdefs.h >>conftest.$ac_ext
30398 cat >>conftest.$ac_ext <<_ACEOF
30399 /* end confdefs.h.  */
30400 #include <unistd.h>
30401        #include <stdio.h>
30402
30403 int
30404 main ()
30405 {
30406 FILE* fp;
30407        fopen64("t", "w");
30408        fseeko64(fp, 0, SEEK_CUR);
30409        ftello64(fp);
30410        lseek64(1, 0, SEEK_CUR);
30411   ;
30412   return 0;
30413 }
30414 _ACEOF
30415 rm -f conftest.$ac_objext conftest$ac_exeext
30416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30417   (eval $ac_link) 2>conftest.er1
30418   ac_status=$?
30419   grep -v '^ *+' conftest.er1 >conftest.err
30420   rm -f conftest.er1
30421   cat conftest.err >&5
30422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423   (exit $ac_status); } &&
30424          { ac_try='test -z "$ac_cxx_werror_flag"
30425                          || test ! -s conftest.err'
30426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30427   (eval $ac_try) 2>&5
30428   ac_status=$?
30429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430   (exit $ac_status); }; } &&
30431          { ac_try='test -s conftest$ac_exeext'
30432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433   (eval $ac_try) 2>&5
30434   ac_status=$?
30435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436   (exit $ac_status); }; }; then
30437   glibcxx_cv_LFS=yes
30438 else
30439   echo "$as_me: failed program was:" >&5
30440 sed 's/^/| /' conftest.$ac_ext >&5
30441
30442 glibcxx_cv_LFS=no
30443 fi
30444 rm -f conftest.err conftest.$ac_objext \
30445       conftest$ac_exeext conftest.$ac_ext
30446
30447 fi
30448
30449   if test $glibcxx_cv_LFS = yes; then
30450     cat >>confdefs.h <<\_ACEOF
30451 #define _GLIBCXX_USE_LFS 1
30452 _ACEOF
30453
30454   fi
30455   CXXFLAGS="$ac_save_CXXFLAGS"
30456   ac_ext=c
30457 ac_cpp='$CPP $CPPFLAGS'
30458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30461
30462
30463
30464
30465   if test "${ac_cv_header_locale_h+set}" = set; then
30466   echo "$as_me:$LINENO: checking for locale.h" >&5
30467 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30468 if test "${ac_cv_header_locale_h+set}" = set; then
30469   echo $ECHO_N "(cached) $ECHO_C" >&6
30470 fi
30471 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30472 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30473 else
30474   # Is the header compilable?
30475 echo "$as_me:$LINENO: checking locale.h usability" >&5
30476 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
30477 cat >conftest.$ac_ext <<_ACEOF
30478 /* confdefs.h.  */
30479 _ACEOF
30480 cat confdefs.h >>conftest.$ac_ext
30481 cat >>conftest.$ac_ext <<_ACEOF
30482 /* end confdefs.h.  */
30483 $ac_includes_default
30484 #include <locale.h>
30485 _ACEOF
30486 rm -f conftest.$ac_objext
30487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30488   (eval $ac_compile) 2>conftest.er1
30489   ac_status=$?
30490   grep -v '^ *+' conftest.er1 >conftest.err
30491   rm -f conftest.er1
30492   cat conftest.err >&5
30493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494   (exit $ac_status); } &&
30495          { ac_try='test -z "$ac_c_werror_flag"
30496                          || test ! -s conftest.err'
30497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30498   (eval $ac_try) 2>&5
30499   ac_status=$?
30500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30501   (exit $ac_status); }; } &&
30502          { ac_try='test -s conftest.$ac_objext'
30503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30504   (eval $ac_try) 2>&5
30505   ac_status=$?
30506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507   (exit $ac_status); }; }; then
30508   ac_header_compiler=yes
30509 else
30510   echo "$as_me: failed program was:" >&5
30511 sed 's/^/| /' conftest.$ac_ext >&5
30512
30513 ac_header_compiler=no
30514 fi
30515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30516 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30517 echo "${ECHO_T}$ac_header_compiler" >&6
30518
30519 # Is the header present?
30520 echo "$as_me:$LINENO: checking locale.h presence" >&5
30521 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
30522 cat >conftest.$ac_ext <<_ACEOF
30523 /* confdefs.h.  */
30524 _ACEOF
30525 cat confdefs.h >>conftest.$ac_ext
30526 cat >>conftest.$ac_ext <<_ACEOF
30527 /* end confdefs.h.  */
30528 #include <locale.h>
30529 _ACEOF
30530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30532   ac_status=$?
30533   grep -v '^ *+' conftest.er1 >conftest.err
30534   rm -f conftest.er1
30535   cat conftest.err >&5
30536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537   (exit $ac_status); } >/dev/null; then
30538   if test -s conftest.err; then
30539     ac_cpp_err=$ac_c_preproc_warn_flag
30540     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30541   else
30542     ac_cpp_err=
30543   fi
30544 else
30545   ac_cpp_err=yes
30546 fi
30547 if test -z "$ac_cpp_err"; then
30548   ac_header_preproc=yes
30549 else
30550   echo "$as_me: failed program was:" >&5
30551 sed 's/^/| /' conftest.$ac_ext >&5
30552
30553   ac_header_preproc=no
30554 fi
30555 rm -f conftest.err conftest.$ac_ext
30556 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30557 echo "${ECHO_T}$ac_header_preproc" >&6
30558
30559 # So?  What about this header?
30560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30561   yes:no: )
30562     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
30563 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30564     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
30565 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
30566     ac_header_preproc=yes
30567     ;;
30568   no:yes:* )
30569     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
30570 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
30571     { echo "$as_me:$LINENO: WARNING: locale.h:     check for missing prerequisite headers?" >&5
30572 echo "$as_me: WARNING: locale.h:     check for missing prerequisite headers?" >&2;}
30573     { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
30574 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
30575     { echo "$as_me:$LINENO: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&5
30576 echo "$as_me: WARNING: locale.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30577     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
30578 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
30579     { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
30580 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
30581     (
30582       cat <<\_ASBOX
30583 ## ----------------------------------------- ##
30584 ## Report this to the package-unused lists.  ##
30585 ## ----------------------------------------- ##
30586 _ASBOX
30587     ) |
30588       sed "s/^/$as_me: WARNING:     /" >&2
30589     ;;
30590 esac
30591 echo "$as_me:$LINENO: checking for locale.h" >&5
30592 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
30593 if test "${ac_cv_header_locale_h+set}" = set; then
30594   echo $ECHO_N "(cached) $ECHO_C" >&6
30595 else
30596   ac_cv_header_locale_h=$ac_header_preproc
30597 fi
30598 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
30599 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
30600
30601 fi
30602 if test $ac_cv_header_locale_h = yes; then
30603
30604     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
30605 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
30606 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
30607   echo $ECHO_N "(cached) $ECHO_C" >&6
30608 else
30609   if test x$gcc_no_link = xyes; then
30610   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30612    { (exit 1); exit 1; }; }
30613 fi
30614 cat >conftest.$ac_ext <<_ACEOF
30615 /* confdefs.h.  */
30616 _ACEOF
30617 cat confdefs.h >>conftest.$ac_ext
30618 cat >>conftest.$ac_ext <<_ACEOF
30619 /* end confdefs.h.  */
30620 #include <locale.h>
30621 int
30622 main ()
30623 {
30624 return LC_MESSAGES
30625   ;
30626   return 0;
30627 }
30628 _ACEOF
30629 rm -f conftest.$ac_objext conftest$ac_exeext
30630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30631   (eval $ac_link) 2>conftest.er1
30632   ac_status=$?
30633   grep -v '^ *+' conftest.er1 >conftest.err
30634   rm -f conftest.er1
30635   cat conftest.err >&5
30636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637   (exit $ac_status); } &&
30638          { ac_try='test -z "$ac_c_werror_flag"
30639                          || test ! -s conftest.err'
30640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30641   (eval $ac_try) 2>&5
30642   ac_status=$?
30643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644   (exit $ac_status); }; } &&
30645          { ac_try='test -s conftest$ac_exeext'
30646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30647   (eval $ac_try) 2>&5
30648   ac_status=$?
30649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30650   (exit $ac_status); }; }; then
30651   ac_cv_val_LC_MESSAGES=yes
30652 else
30653   echo "$as_me: failed program was:" >&5
30654 sed 's/^/| /' conftest.$ac_ext >&5
30655
30656 ac_cv_val_LC_MESSAGES=no
30657 fi
30658 rm -f conftest.err conftest.$ac_objext \
30659       conftest$ac_exeext conftest.$ac_ext
30660 fi
30661 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
30662 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
30663     if test $ac_cv_val_LC_MESSAGES = yes; then
30664       cat >>confdefs.h <<\_ACEOF
30665 #define HAVE_LC_MESSAGES 1
30666 _ACEOF
30667
30668     fi
30669
30670 fi
30671
30672
30673
30674
30675   cat >conftest.$ac_ext <<_ACEOF
30676 /* confdefs.h.  */
30677 _ACEOF
30678 cat confdefs.h >>conftest.$ac_ext
30679 cat >>conftest.$ac_ext <<_ACEOF
30680 /* end confdefs.h.  */
30681 #include <setjmp.h>
30682 int
30683 main ()
30684 {
30685 sigjmp_buf env;
30686      while (! sigsetjmp (env, 1))
30687        siglongjmp (env, 1);
30688
30689   ;
30690   return 0;
30691 }
30692 _ACEOF
30693 rm -f conftest.$ac_objext
30694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30695   (eval $ac_compile) 2>conftest.er1
30696   ac_status=$?
30697   grep -v '^ *+' conftest.er1 >conftest.err
30698   rm -f conftest.er1
30699   cat conftest.err >&5
30700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701   (exit $ac_status); } &&
30702          { ac_try='test -z "$ac_c_werror_flag"
30703                          || test ! -s conftest.err'
30704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30705   (eval $ac_try) 2>&5
30706   ac_status=$?
30707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30708   (exit $ac_status); }; } &&
30709          { ac_try='test -s conftest.$ac_objext'
30710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30711   (eval $ac_try) 2>&5
30712   ac_status=$?
30713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714   (exit $ac_status); }; }; then
30715
30716 cat >>confdefs.h <<\_ACEOF
30717 #define HAVE_SIGSETJMP 1
30718 _ACEOF
30719
30720 else
30721   echo "$as_me: failed program was:" >&5
30722 sed 's/^/| /' conftest.$ac_ext >&5
30723
30724 fi
30725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30726
30727   if test x$gcc_no_link = xyes; then
30728   if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30729     ac_cv_func_mmap_fixed_mapped=no
30730   fi
30731 fi
30732 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
30733
30734
30735 for ac_header in stdlib.h unistd.h
30736 do
30737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30739   echo "$as_me:$LINENO: checking for $ac_header" >&5
30740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30742   echo $ECHO_N "(cached) $ECHO_C" >&6
30743 fi
30744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30746 else
30747   # Is the header compilable?
30748 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30750 cat >conftest.$ac_ext <<_ACEOF
30751 /* confdefs.h.  */
30752 _ACEOF
30753 cat confdefs.h >>conftest.$ac_ext
30754 cat >>conftest.$ac_ext <<_ACEOF
30755 /* end confdefs.h.  */
30756 $ac_includes_default
30757 #include <$ac_header>
30758 _ACEOF
30759 rm -f conftest.$ac_objext
30760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30761   (eval $ac_compile) 2>conftest.er1
30762   ac_status=$?
30763   grep -v '^ *+' conftest.er1 >conftest.err
30764   rm -f conftest.er1
30765   cat conftest.err >&5
30766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767   (exit $ac_status); } &&
30768          { ac_try='test -z "$ac_c_werror_flag"
30769                          || test ! -s conftest.err'
30770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30771   (eval $ac_try) 2>&5
30772   ac_status=$?
30773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774   (exit $ac_status); }; } &&
30775          { ac_try='test -s conftest.$ac_objext'
30776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30777   (eval $ac_try) 2>&5
30778   ac_status=$?
30779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30780   (exit $ac_status); }; }; then
30781   ac_header_compiler=yes
30782 else
30783   echo "$as_me: failed program was:" >&5
30784 sed 's/^/| /' conftest.$ac_ext >&5
30785
30786 ac_header_compiler=no
30787 fi
30788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30790 echo "${ECHO_T}$ac_header_compiler" >&6
30791
30792 # Is the header present?
30793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30795 cat >conftest.$ac_ext <<_ACEOF
30796 /* confdefs.h.  */
30797 _ACEOF
30798 cat confdefs.h >>conftest.$ac_ext
30799 cat >>conftest.$ac_ext <<_ACEOF
30800 /* end confdefs.h.  */
30801 #include <$ac_header>
30802 _ACEOF
30803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30804   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30805   ac_status=$?
30806   grep -v '^ *+' conftest.er1 >conftest.err
30807   rm -f conftest.er1
30808   cat conftest.err >&5
30809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810   (exit $ac_status); } >/dev/null; then
30811   if test -s conftest.err; then
30812     ac_cpp_err=$ac_c_preproc_warn_flag
30813     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30814   else
30815     ac_cpp_err=
30816   fi
30817 else
30818   ac_cpp_err=yes
30819 fi
30820 if test -z "$ac_cpp_err"; then
30821   ac_header_preproc=yes
30822 else
30823   echo "$as_me: failed program was:" >&5
30824 sed 's/^/| /' conftest.$ac_ext >&5
30825
30826   ac_header_preproc=no
30827 fi
30828 rm -f conftest.err conftest.$ac_ext
30829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30830 echo "${ECHO_T}$ac_header_preproc" >&6
30831
30832 # So?  What about this header?
30833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30834   yes:no: )
30835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30839     ac_header_preproc=yes
30840     ;;
30841   no:yes:* )
30842     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30844     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30845 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30846     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30848     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30849 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30852     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30854     (
30855       cat <<\_ASBOX
30856 ## ----------------------------------------- ##
30857 ## Report this to the package-unused lists.  ##
30858 ## ----------------------------------------- ##
30859 _ASBOX
30860     ) |
30861       sed "s/^/$as_me: WARNING:     /" >&2
30862     ;;
30863 esac
30864 echo "$as_me:$LINENO: checking for $ac_header" >&5
30865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30867   echo $ECHO_N "(cached) $ECHO_C" >&6
30868 else
30869   eval "$as_ac_Header=\$ac_header_preproc"
30870 fi
30871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30873
30874 fi
30875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30876   cat >>confdefs.h <<_ACEOF
30877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30878 _ACEOF
30879
30880 fi
30881
30882 done
30883
30884
30885 for ac_func in getpagesize
30886 do
30887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30888 echo "$as_me:$LINENO: checking for $ac_func" >&5
30889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30890 if eval "test \"\${$as_ac_var+set}\" = set"; then
30891   echo $ECHO_N "(cached) $ECHO_C" >&6
30892 else
30893   if test x$gcc_no_link = xyes; then
30894   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
30895 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
30896    { (exit 1); exit 1; }; }
30897 fi
30898 cat >conftest.$ac_ext <<_ACEOF
30899 /* confdefs.h.  */
30900 _ACEOF
30901 cat confdefs.h >>conftest.$ac_ext
30902 cat >>conftest.$ac_ext <<_ACEOF
30903 /* end confdefs.h.  */
30904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30906 #define $ac_func innocuous_$ac_func
30907
30908 /* System header to define __stub macros and hopefully few prototypes,
30909     which can conflict with char $ac_func (); below.
30910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30911     <limits.h> exists even on freestanding compilers.  */
30912
30913 #ifdef __STDC__
30914 # include <limits.h>
30915 #else
30916 # include <assert.h>
30917 #endif
30918
30919 #undef $ac_func
30920
30921 /* Override any gcc2 internal prototype to avoid an error.  */
30922 #ifdef __cplusplus
30923 extern "C"
30924 {
30925 #endif
30926 /* We use char because int might match the return type of a gcc2
30927    builtin and then its argument prototype would still apply.  */
30928 char $ac_func ();
30929 /* The GNU C library defines this for functions which it implements
30930     to always fail with ENOSYS.  Some functions are actually named
30931     something starting with __ and the normal name is an alias.  */
30932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30933 choke me
30934 #else
30935 char (*f) () = $ac_func;
30936 #endif
30937 #ifdef __cplusplus
30938 }
30939 #endif
30940
30941 int
30942 main ()
30943 {
30944 return f != $ac_func;
30945   ;
30946   return 0;
30947 }
30948 _ACEOF
30949 rm -f conftest.$ac_objext conftest$ac_exeext
30950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30951   (eval $ac_link) 2>conftest.er1
30952   ac_status=$?
30953   grep -v '^ *+' conftest.er1 >conftest.err
30954   rm -f conftest.er1
30955   cat conftest.err >&5
30956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957   (exit $ac_status); } &&
30958          { ac_try='test -z "$ac_c_werror_flag"
30959                          || test ! -s conftest.err'
30960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30961   (eval $ac_try) 2>&5
30962   ac_status=$?
30963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964   (exit $ac_status); }; } &&
30965          { ac_try='test -s conftest$ac_exeext'
30966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30967   (eval $ac_try) 2>&5
30968   ac_status=$?
30969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970   (exit $ac_status); }; }; then
30971   eval "$as_ac_var=yes"
30972 else
30973   echo "$as_me: failed program was:" >&5
30974 sed 's/^/| /' conftest.$ac_ext >&5
30975
30976 eval "$as_ac_var=no"
30977 fi
30978 rm -f conftest.err conftest.$ac_objext \
30979       conftest$ac_exeext conftest.$ac_ext
30980 fi
30981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30983 if test `eval echo '${'$as_ac_var'}'` = yes; then
30984   cat >>confdefs.h <<_ACEOF
30985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30986 _ACEOF
30987
30988 fi
30989 done
30990
30991 echo "$as_me:$LINENO: checking for working mmap" >&5
30992 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30993 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30994   echo $ECHO_N "(cached) $ECHO_C" >&6
30995 else
30996   if test "$cross_compiling" = yes; then
30997   ac_cv_func_mmap_fixed_mapped=no
30998 else
30999   cat >conftest.$ac_ext <<_ACEOF
31000 /* confdefs.h.  */
31001 _ACEOF
31002 cat confdefs.h >>conftest.$ac_ext
31003 cat >>conftest.$ac_ext <<_ACEOF
31004 /* end confdefs.h.  */
31005 $ac_includes_default
31006 /* malloc might have been renamed as rpl_malloc. */
31007 #undef malloc
31008
31009 /* Thanks to Mike Haertel and Jim Avera for this test.
31010    Here is a matrix of mmap possibilities:
31011         mmap private not fixed
31012         mmap private fixed at somewhere currently unmapped
31013         mmap private fixed at somewhere already mapped
31014         mmap shared not fixed
31015         mmap shared fixed at somewhere currently unmapped
31016         mmap shared fixed at somewhere already mapped
31017    For private mappings, we should verify that changes cannot be read()
31018    back from the file, nor mmap's back from the file at a different
31019    address.  (There have been systems where private was not correctly
31020    implemented like the infamous i386 svr4.0, and systems where the
31021    VM page cache was not coherent with the file system buffer cache
31022    like early versions of FreeBSD and possibly contemporary NetBSD.)
31023    For shared mappings, we should conversely verify that changes get
31024    propagated back to all the places they're supposed to be.
31025
31026    Grep wants private fixed already mapped.
31027    The main things grep needs to know about mmap are:
31028    * does it exist and is it safe to write into the mmap'd area
31029    * how to use it (BSD variants)  */
31030
31031 #include <fcntl.h>
31032 #include <sys/mman.h>
31033
31034 #if !STDC_HEADERS && !HAVE_STDLIB_H
31035 char *malloc ();
31036 #endif
31037
31038 /* This mess was copied from the GNU getpagesize.h.  */
31039 #if !HAVE_GETPAGESIZE
31040 /* Assume that all systems that can run configure have sys/param.h.  */
31041 # if !HAVE_SYS_PARAM_H
31042 #  define HAVE_SYS_PARAM_H 1
31043 # endif
31044
31045 # ifdef _SC_PAGESIZE
31046 #  define getpagesize() sysconf(_SC_PAGESIZE)
31047 # else /* no _SC_PAGESIZE */
31048 #  if HAVE_SYS_PARAM_H
31049 #   include <sys/param.h>
31050 #   ifdef EXEC_PAGESIZE
31051 #    define getpagesize() EXEC_PAGESIZE
31052 #   else /* no EXEC_PAGESIZE */
31053 #    ifdef NBPG
31054 #     define getpagesize() NBPG * CLSIZE
31055 #     ifndef CLSIZE
31056 #      define CLSIZE 1
31057 #     endif /* no CLSIZE */
31058 #    else /* no NBPG */
31059 #     ifdef NBPC
31060 #      define getpagesize() NBPC
31061 #     else /* no NBPC */
31062 #      ifdef PAGESIZE
31063 #       define getpagesize() PAGESIZE
31064 #      endif /* PAGESIZE */
31065 #     endif /* no NBPC */
31066 #    endif /* no NBPG */
31067 #   endif /* no EXEC_PAGESIZE */
31068 #  else /* no HAVE_SYS_PARAM_H */
31069 #   define getpagesize() 8192   /* punt totally */
31070 #  endif /* no HAVE_SYS_PARAM_H */
31071 # endif /* no _SC_PAGESIZE */
31072
31073 #endif /* no HAVE_GETPAGESIZE */
31074
31075 int
31076 main ()
31077 {
31078   char *data, *data2, *data3;
31079   int i, pagesize;
31080   int fd;
31081
31082   pagesize = getpagesize ();
31083
31084   /* First, make a file with some known garbage in it. */
31085   data = (char *) malloc (pagesize);
31086   if (!data)
31087     exit (1);
31088   for (i = 0; i < pagesize; ++i)
31089     *(data + i) = rand ();
31090   umask (0);
31091   fd = creat ("conftest.mmap", 0600);
31092   if (fd < 0)
31093     exit (1);
31094   if (write (fd, data, pagesize) != pagesize)
31095     exit (1);
31096   close (fd);
31097
31098   /* Next, try to mmap the file at a fixed address which already has
31099      something else allocated at it.  If we can, also make sure that
31100      we see the same garbage.  */
31101   fd = open ("conftest.mmap", O_RDWR);
31102   if (fd < 0)
31103     exit (1);
31104   data2 = (char *) malloc (2 * pagesize);
31105   if (!data2)
31106     exit (1);
31107   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
31108   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31109                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
31110     exit (1);
31111   for (i = 0; i < pagesize; ++i)
31112     if (*(data + i) != *(data2 + i))
31113       exit (1);
31114
31115   /* Finally, make sure that changes to the mapped area do not
31116      percolate back to the file as seen by read().  (This is a bug on
31117      some variants of i386 svr4.0.)  */
31118   for (i = 0; i < pagesize; ++i)
31119     *(data2 + i) = *(data2 + i) + 1;
31120   data3 = (char *) malloc (pagesize);
31121   if (!data3)
31122     exit (1);
31123   if (read (fd, data3, pagesize) != pagesize)
31124     exit (1);
31125   for (i = 0; i < pagesize; ++i)
31126     if (*(data + i) != *(data3 + i))
31127       exit (1);
31128   close (fd);
31129   exit (0);
31130 }
31131 _ACEOF
31132 rm -f conftest$ac_exeext
31133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31134   (eval $ac_link) 2>&5
31135   ac_status=$?
31136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31139   (eval $ac_try) 2>&5
31140   ac_status=$?
31141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142   (exit $ac_status); }; }; then
31143   ac_cv_func_mmap_fixed_mapped=yes
31144 else
31145   echo "$as_me: program exited with status $ac_status" >&5
31146 echo "$as_me: failed program was:" >&5
31147 sed 's/^/| /' conftest.$ac_ext >&5
31148
31149 ( exit $ac_status )
31150 ac_cv_func_mmap_fixed_mapped=no
31151 fi
31152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31153 fi
31154 fi
31155 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31156 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
31157 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31158
31159 cat >>confdefs.h <<\_ACEOF
31160 #define HAVE_MMAP 1
31161 _ACEOF
31162
31163 fi
31164 rm -f conftest.mmap
31165
31166 fi
31167
31168 else
31169
31170   # This lets us hard-code the functionality we know we'll have in the cross
31171   # target environment.  "Let" is a sugar-coated word placed on an especially
31172   # dull and tedious hack, actually.
31173   #
31174   # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
31175   # that involve linking, can't be used:
31176   #    "cannot open sim-crt0.o"
31177   #    "cannot open crt0.o"
31178   # etc.  All this is because there currently exists no unified, consistent
31179   # way for top level CC information to be passed down to target directories:
31180   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
31181   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
31182   # crosses can be removed.
31183
31184   # If Canadian cross, then don't pick up tools from the build directory.
31185   # Used only in GLIBCXX_EXPORT_INCLUDES.
31186   if test -n "$with_cross_host" &&
31187      test x"$build_alias" != x"$with_cross_host" &&
31188      test x"$build" != x"$target";
31189   then
31190     CANADIAN=yes
31191   else
31192     CANADIAN=no
31193   fi
31194
31195   # Construct crosses by hand, eliminating bits that need ld...
31196   # GLIBCXX_CHECK_COMPILER_FEATURES
31197   # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
31198   # GLIBCXX_CHECK_MATH_SUPPORT
31199
31200   # First, test for "known" system libraries.  We may be using newlib even
31201   # on a hosted environment.
31202   if test "x${with_newlib}" = "xyes"; then
31203     os_include_dir="os/newlib"
31204     cat >>confdefs.h <<\_ACEOF
31205 #define HAVE_HYPOT 1
31206 _ACEOF
31207
31208
31209     # GLIBCXX_CHECK_STDLIB_SUPPORT
31210     cat >>confdefs.h <<\_ACEOF
31211 #define HAVE_STRTOF 1
31212 _ACEOF
31213
31214     cat >>confdefs.h <<\_ACEOF
31215 #define HAVE_STRTOLD 1
31216 _ACEOF
31217
31218     # AC_FUNC_MMAP
31219     cat >>confdefs.h <<\_ACEOF
31220 #define HAVE_MMAP 1
31221 _ACEOF
31222
31223
31224     cat >>confdefs.h <<\_ACEOF
31225 #define HAVE_ACOSF 1
31226 _ACEOF
31227
31228     cat >>confdefs.h <<\_ACEOF
31229 #define HAVE_ASINF 1
31230 _ACEOF
31231
31232     cat >>confdefs.h <<\_ACEOF
31233 #define HAVE_ATAN2F 1
31234 _ACEOF
31235
31236     cat >>confdefs.h <<\_ACEOF
31237 #define HAVE_ATANF 1
31238 _ACEOF
31239
31240     cat >>confdefs.h <<\_ACEOF
31241 #define HAVE_CEILF 1
31242 _ACEOF
31243
31244     cat >>confdefs.h <<\_ACEOF
31245 #define HAVE_COPYSIGN 1
31246 _ACEOF
31247
31248     cat >>confdefs.h <<\_ACEOF
31249 #define HAVE_COPYSIGNF 1
31250 _ACEOF
31251
31252     cat >>confdefs.h <<\_ACEOF
31253 #define HAVE_COSF 1
31254 _ACEOF
31255
31256     cat >>confdefs.h <<\_ACEOF
31257 #define HAVE_COSHF 1
31258 _ACEOF
31259
31260     cat >>confdefs.h <<\_ACEOF
31261 #define HAVE_EXPF 1
31262 _ACEOF
31263
31264     cat >>confdefs.h <<\_ACEOF
31265 #define HAVE_FABSF 1
31266 _ACEOF
31267
31268     cat >>confdefs.h <<\_ACEOF
31269 #define HAVE_FLOORF 1
31270 _ACEOF
31271
31272     cat >>confdefs.h <<\_ACEOF
31273 #define HAVE_FMODF 1
31274 _ACEOF
31275
31276     cat >>confdefs.h <<\_ACEOF
31277 #define HAVE_FREXPF 1
31278 _ACEOF
31279
31280     cat >>confdefs.h <<\_ACEOF
31281 #define HAVE_LDEXPF 1
31282 _ACEOF
31283
31284     cat >>confdefs.h <<\_ACEOF
31285 #define HAVE_LOG10F 1
31286 _ACEOF
31287
31288     cat >>confdefs.h <<\_ACEOF
31289 #define HAVE_LOGF 1
31290 _ACEOF
31291
31292     cat >>confdefs.h <<\_ACEOF
31293 #define HAVE_MODFF 1
31294 _ACEOF
31295
31296     cat >>confdefs.h <<\_ACEOF
31297 #define HAVE_POWF 1
31298 _ACEOF
31299
31300     cat >>confdefs.h <<\_ACEOF
31301 #define HAVE_SINF 1
31302 _ACEOF
31303
31304     cat >>confdefs.h <<\_ACEOF
31305 #define HAVE_SINHF 1
31306 _ACEOF
31307
31308     cat >>confdefs.h <<\_ACEOF
31309 #define HAVE_SQRTF 1
31310 _ACEOF
31311
31312     cat >>confdefs.h <<\_ACEOF
31313 #define HAVE_TANF 1
31314 _ACEOF
31315
31316     cat >>confdefs.h <<\_ACEOF
31317 #define HAVE_TANHF 1
31318 _ACEOF
31319
31320
31321     cat >>confdefs.h <<\_ACEOF
31322 #define HAVE_S_ISREG 1
31323 _ACEOF
31324
31325     cat >>confdefs.h <<\_ACEOF
31326 #define HAVE_S_IFREG 1
31327 _ACEOF
31328
31329   else
31330
31331 # Base decisions on target environment.
31332 case "${host}" in
31333   *-darwin*)
31334     # Darwin versions vary, but the linker should work in a cross environment,
31335     # so we just check for all the features here.
31336     # Check for available headers.
31337
31338
31339
31340
31341
31342
31343
31344
31345
31346
31347
31348
31349
31350 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
31351     machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
31352     sys/types.h
31353 do
31354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31356   echo "$as_me:$LINENO: checking for $ac_header" >&5
31357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31359   echo $ECHO_N "(cached) $ECHO_C" >&6
31360 fi
31361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31363 else
31364   # Is the header compilable?
31365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31367 cat >conftest.$ac_ext <<_ACEOF
31368 /* confdefs.h.  */
31369 _ACEOF
31370 cat confdefs.h >>conftest.$ac_ext
31371 cat >>conftest.$ac_ext <<_ACEOF
31372 /* end confdefs.h.  */
31373 $ac_includes_default
31374 #include <$ac_header>
31375 _ACEOF
31376 rm -f conftest.$ac_objext
31377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31378   (eval $ac_compile) 2>conftest.er1
31379   ac_status=$?
31380   grep -v '^ *+' conftest.er1 >conftest.err
31381   rm -f conftest.er1
31382   cat conftest.err >&5
31383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31384   (exit $ac_status); } &&
31385          { ac_try='test -z "$ac_c_werror_flag"
31386                          || test ! -s conftest.err'
31387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31388   (eval $ac_try) 2>&5
31389   ac_status=$?
31390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391   (exit $ac_status); }; } &&
31392          { ac_try='test -s conftest.$ac_objext'
31393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31394   (eval $ac_try) 2>&5
31395   ac_status=$?
31396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397   (exit $ac_status); }; }; then
31398   ac_header_compiler=yes
31399 else
31400   echo "$as_me: failed program was:" >&5
31401 sed 's/^/| /' conftest.$ac_ext >&5
31402
31403 ac_header_compiler=no
31404 fi
31405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31407 echo "${ECHO_T}$ac_header_compiler" >&6
31408
31409 # Is the header present?
31410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31412 cat >conftest.$ac_ext <<_ACEOF
31413 /* confdefs.h.  */
31414 _ACEOF
31415 cat confdefs.h >>conftest.$ac_ext
31416 cat >>conftest.$ac_ext <<_ACEOF
31417 /* end confdefs.h.  */
31418 #include <$ac_header>
31419 _ACEOF
31420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31422   ac_status=$?
31423   grep -v '^ *+' conftest.er1 >conftest.err
31424   rm -f conftest.er1
31425   cat conftest.err >&5
31426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427   (exit $ac_status); } >/dev/null; then
31428   if test -s conftest.err; then
31429     ac_cpp_err=$ac_c_preproc_warn_flag
31430     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31431   else
31432     ac_cpp_err=
31433   fi
31434 else
31435   ac_cpp_err=yes
31436 fi
31437 if test -z "$ac_cpp_err"; then
31438   ac_header_preproc=yes
31439 else
31440   echo "$as_me: failed program was:" >&5
31441 sed 's/^/| /' conftest.$ac_ext >&5
31442
31443   ac_header_preproc=no
31444 fi
31445 rm -f conftest.err conftest.$ac_ext
31446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31447 echo "${ECHO_T}$ac_header_preproc" >&6
31448
31449 # So?  What about this header?
31450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31451   yes:no: )
31452     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31456     ac_header_preproc=yes
31457     ;;
31458   no:yes:* )
31459     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31461     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31462 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31463     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31465     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31466 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31469     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31471     (
31472       cat <<\_ASBOX
31473 ## ----------------------------------------- ##
31474 ## Report this to the package-unused lists.  ##
31475 ## ----------------------------------------- ##
31476 _ASBOX
31477     ) |
31478       sed "s/^/$as_me: WARNING:     /" >&2
31479     ;;
31480 esac
31481 echo "$as_me:$LINENO: checking for $ac_header" >&5
31482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31484   echo $ECHO_N "(cached) $ECHO_C" >&6
31485 else
31486   eval "$as_ac_Header=\$ac_header_preproc"
31487 fi
31488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31490
31491 fi
31492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31493   cat >>confdefs.h <<_ACEOF
31494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31495 _ACEOF
31496
31497 fi
31498
31499 done
31500
31501
31502
31503   # All these tests are for C++; save the language and the compiler flags.
31504   # The CXXFLAGS thing is suspicious, but based on similar bits previously
31505   # found in GLIBCXX_CONFIGURE.
31506
31507
31508   ac_ext=cc
31509 ac_cpp='$CXXCPP $CPPFLAGS'
31510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31513
31514   ac_test_CXXFLAGS="${CXXFLAGS+set}"
31515   ac_save_CXXFLAGS="$CXXFLAGS"
31516
31517   # Check for maintainer-mode bits.
31518   if test x"$USE_MAINTAINER_MODE" = xno; then
31519     WERROR=''
31520   else
31521     WERROR='-Werror'
31522   fi
31523
31524   # Check for -ffunction-sections -fdata-sections
31525   echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
31526 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
31527   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
31528   cat >conftest.$ac_ext <<_ACEOF
31529 /* confdefs.h.  */
31530 _ACEOF
31531 cat confdefs.h >>conftest.$ac_ext
31532 cat >>conftest.$ac_ext <<_ACEOF
31533 /* end confdefs.h.  */
31534
31535 int
31536 main ()
31537 {
31538 int foo;
31539   ;
31540   return 0;
31541 }
31542 _ACEOF
31543 rm -f conftest.$ac_objext
31544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31545   (eval $ac_compile) 2>conftest.er1
31546   ac_status=$?
31547   grep -v '^ *+' conftest.er1 >conftest.err
31548   rm -f conftest.er1
31549   cat conftest.err >&5
31550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31551   (exit $ac_status); } &&
31552          { ac_try='test -z "$ac_cxx_werror_flag"
31553                          || test ! -s conftest.err'
31554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31555   (eval $ac_try) 2>&5
31556   ac_status=$?
31557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558   (exit $ac_status); }; } &&
31559          { ac_try='test -s conftest.$ac_objext'
31560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31561   (eval $ac_try) 2>&5
31562   ac_status=$?
31563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31564   (exit $ac_status); }; }; then
31565   ac_fdsections=yes
31566 else
31567   echo "$as_me: failed program was:" >&5
31568 sed 's/^/| /' conftest.$ac_ext >&5
31569
31570 ac_fdsections=no
31571 fi
31572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31573   if test "$ac_test_CXXFLAGS" = set; then
31574     CXXFLAGS="$ac_save_CXXFLAGS"
31575   else
31576     # this is the suspicious part
31577     CXXFLAGS=''
31578   fi
31579   if test x"$ac_fdsections" = x"yes"; then
31580     SECTION_FLAGS='-ffunction-sections -fdata-sections'
31581   fi
31582   echo "$as_me:$LINENO: result: $ac_fdsections" >&5
31583 echo "${ECHO_T}$ac_fdsections" >&6
31584
31585   ac_ext=c
31586 ac_cpp='$CPP $CPPFLAGS'
31587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31590
31591
31592
31593
31594     # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
31595
31596   ac_test_CXXFLAGS="${CXXFLAGS+set}"
31597   ac_save_CXXFLAGS="$CXXFLAGS"
31598   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
31599
31600     echo "$as_me:$LINENO: checking for sin in -lm" >&5
31601 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
31602 if test "${ac_cv_lib_m_sin+set}" = set; then
31603   echo $ECHO_N "(cached) $ECHO_C" >&6
31604 else
31605   ac_check_lib_save_LIBS=$LIBS
31606 LIBS="-lm  $LIBS"
31607 if test x$gcc_no_link = xyes; then
31608   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31609 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31610    { (exit 1); exit 1; }; }
31611 fi
31612 cat >conftest.$ac_ext <<_ACEOF
31613 /* confdefs.h.  */
31614 _ACEOF
31615 cat confdefs.h >>conftest.$ac_ext
31616 cat >>conftest.$ac_ext <<_ACEOF
31617 /* end confdefs.h.  */
31618
31619 /* Override any gcc2 internal prototype to avoid an error.  */
31620 #ifdef __cplusplus
31621 extern "C"
31622 #endif
31623 /* We use char because int might match the return type of a gcc2
31624    builtin and then its argument prototype would still apply.  */
31625 char sin ();
31626 int
31627 main ()
31628 {
31629 sin ();
31630   ;
31631   return 0;
31632 }
31633 _ACEOF
31634 rm -f conftest.$ac_objext conftest$ac_exeext
31635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31636   (eval $ac_link) 2>conftest.er1
31637   ac_status=$?
31638   grep -v '^ *+' conftest.er1 >conftest.err
31639   rm -f conftest.er1
31640   cat conftest.err >&5
31641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642   (exit $ac_status); } &&
31643          { ac_try='test -z "$ac_c_werror_flag"
31644                          || test ! -s conftest.err'
31645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31646   (eval $ac_try) 2>&5
31647   ac_status=$?
31648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649   (exit $ac_status); }; } &&
31650          { ac_try='test -s conftest$ac_exeext'
31651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31652   (eval $ac_try) 2>&5
31653   ac_status=$?
31654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655   (exit $ac_status); }; }; then
31656   ac_cv_lib_m_sin=yes
31657 else
31658   echo "$as_me: failed program was:" >&5
31659 sed 's/^/| /' conftest.$ac_ext >&5
31660
31661 ac_cv_lib_m_sin=no
31662 fi
31663 rm -f conftest.err conftest.$ac_objext \
31664       conftest$ac_exeext conftest.$ac_ext
31665 LIBS=$ac_check_lib_save_LIBS
31666 fi
31667 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
31668 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
31669 if test $ac_cv_lib_m_sin = yes; then
31670   libm="-lm"
31671 fi
31672
31673   ac_save_LIBS="$LIBS"
31674   LIBS="$LIBS $libm"
31675
31676     echo "$as_me:$LINENO: checking for sqrtf in -lmx" >&5
31677 echo $ECHO_N "checking for sqrtf in -lmx... $ECHO_C" >&6
31678 if test "${ac_cv_lib_mx_sqrtf+set}" = set; then
31679   echo $ECHO_N "(cached) $ECHO_C" >&6
31680 else
31681   ac_check_lib_save_LIBS=$LIBS
31682 LIBS="-lmx  $LIBS"
31683 if test x$gcc_no_link = xyes; then
31684   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31685 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31686    { (exit 1); exit 1; }; }
31687 fi
31688 cat >conftest.$ac_ext <<_ACEOF
31689 /* confdefs.h.  */
31690 _ACEOF
31691 cat confdefs.h >>conftest.$ac_ext
31692 cat >>conftest.$ac_ext <<_ACEOF
31693 /* end confdefs.h.  */
31694
31695 /* Override any gcc2 internal prototype to avoid an error.  */
31696 #ifdef __cplusplus
31697 extern "C"
31698 #endif
31699 /* We use char because int might match the return type of a gcc2
31700    builtin and then its argument prototype would still apply.  */
31701 char sqrtf ();
31702 int
31703 main ()
31704 {
31705 sqrtf ();
31706   ;
31707   return 0;
31708 }
31709 _ACEOF
31710 rm -f conftest.$ac_objext conftest$ac_exeext
31711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31712   (eval $ac_link) 2>conftest.er1
31713   ac_status=$?
31714   grep -v '^ *+' conftest.er1 >conftest.err
31715   rm -f conftest.er1
31716   cat conftest.err >&5
31717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718   (exit $ac_status); } &&
31719          { ac_try='test -z "$ac_c_werror_flag"
31720                          || test ! -s conftest.err'
31721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31722   (eval $ac_try) 2>&5
31723   ac_status=$?
31724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725   (exit $ac_status); }; } &&
31726          { ac_try='test -s conftest$ac_exeext'
31727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31728   (eval $ac_try) 2>&5
31729   ac_status=$?
31730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731   (exit $ac_status); }; }; then
31732   ac_cv_lib_mx_sqrtf=yes
31733 else
31734   echo "$as_me: failed program was:" >&5
31735 sed 's/^/| /' conftest.$ac_ext >&5
31736
31737 ac_cv_lib_mx_sqrtf=no
31738 fi
31739 rm -f conftest.err conftest.$ac_objext \
31740       conftest$ac_exeext conftest.$ac_ext
31741 LIBS=$ac_check_lib_save_LIBS
31742 fi
31743 echo "$as_me:$LINENO: result: $ac_cv_lib_mx_sqrtf" >&5
31744 echo "${ECHO_T}$ac_cv_lib_mx_sqrtf" >&6
31745 if test $ac_cv_lib_mx_sqrtf = yes; then
31746   libmx="-lmx"
31747 fi
31748
31749     LIBS="$LIBS $libmx"
31750
31751
31752
31753   echo "$as_me:$LINENO: checking for isinf declaration" >&5
31754 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
31755   if test x${glibcxx_cv_func_isinf_use+set} != xset; then
31756     if test "${glibcxx_cv_func_isinf_use+set}" = set; then
31757   echo $ECHO_N "(cached) $ECHO_C" >&6
31758 else
31759
31760
31761
31762       ac_ext=cc
31763 ac_cpp='$CXXCPP $CPPFLAGS'
31764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31767
31768       cat >conftest.$ac_ext <<_ACEOF
31769 /* confdefs.h.  */
31770 _ACEOF
31771 cat confdefs.h >>conftest.$ac_ext
31772 cat >>conftest.$ac_ext <<_ACEOF
31773 /* end confdefs.h.  */
31774 #include <math.h>
31775                       #ifdef HAVE_IEEEFP_H
31776                       #include <ieeefp.h>
31777                       #endif
31778
31779 int
31780 main ()
31781 {
31782  isinf(0);
31783   ;
31784   return 0;
31785 }
31786 _ACEOF
31787 rm -f conftest.$ac_objext
31788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31789   (eval $ac_compile) 2>conftest.er1
31790   ac_status=$?
31791   grep -v '^ *+' conftest.er1 >conftest.err
31792   rm -f conftest.er1
31793   cat conftest.err >&5
31794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795   (exit $ac_status); } &&
31796          { ac_try='test -z "$ac_cxx_werror_flag"
31797                          || test ! -s conftest.err'
31798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31799   (eval $ac_try) 2>&5
31800   ac_status=$?
31801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31802   (exit $ac_status); }; } &&
31803          { ac_try='test -s conftest.$ac_objext'
31804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31805   (eval $ac_try) 2>&5
31806   ac_status=$?
31807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808   (exit $ac_status); }; }; then
31809   glibcxx_cv_func_isinf_use=yes
31810 else
31811   echo "$as_me: failed program was:" >&5
31812 sed 's/^/| /' conftest.$ac_ext >&5
31813
31814 glibcxx_cv_func_isinf_use=no
31815 fi
31816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31817       ac_ext=c
31818 ac_cpp='$CPP $CPPFLAGS'
31819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31822
31823
31824 fi
31825
31826   fi
31827   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
31828 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
31829
31830   if test x$glibcxx_cv_func_isinf_use = x"yes"; then
31831
31832 for ac_func in isinf
31833 do
31834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31835 echo "$as_me:$LINENO: checking for $ac_func" >&5
31836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31837 if eval "test \"\${$as_ac_var+set}\" = set"; then
31838   echo $ECHO_N "(cached) $ECHO_C" >&6
31839 else
31840   if test x$gcc_no_link = xyes; then
31841   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
31842 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
31843    { (exit 1); exit 1; }; }
31844 fi
31845 cat >conftest.$ac_ext <<_ACEOF
31846 /* confdefs.h.  */
31847 _ACEOF
31848 cat confdefs.h >>conftest.$ac_ext
31849 cat >>conftest.$ac_ext <<_ACEOF
31850 /* end confdefs.h.  */
31851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31853 #define $ac_func innocuous_$ac_func
31854
31855 /* System header to define __stub macros and hopefully few prototypes,
31856     which can conflict with char $ac_func (); below.
31857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31858     <limits.h> exists even on freestanding compilers.  */
31859
31860 #ifdef __STDC__
31861 # include <limits.h>
31862 #else
31863 # include <assert.h>
31864 #endif
31865
31866 #undef $ac_func
31867
31868 /* Override any gcc2 internal prototype to avoid an error.  */
31869 #ifdef __cplusplus
31870 extern "C"
31871 {
31872 #endif
31873 /* We use char because int might match the return type of a gcc2
31874    builtin and then its argument prototype would still apply.  */
31875 char $ac_func ();
31876 /* The GNU C library defines this for functions which it implements
31877     to always fail with ENOSYS.  Some functions are actually named
31878     something starting with __ and the normal name is an alias.  */
31879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31880 choke me
31881 #else
31882 char (*f) () = $ac_func;
31883 #endif
31884 #ifdef __cplusplus
31885 }
31886 #endif
31887
31888 int
31889 main ()
31890 {
31891 return f != $ac_func;
31892   ;
31893   return 0;
31894 }
31895 _ACEOF
31896 rm -f conftest.$ac_objext conftest$ac_exeext
31897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31898   (eval $ac_link) 2>conftest.er1
31899   ac_status=$?
31900   grep -v '^ *+' conftest.er1 >conftest.err
31901   rm -f conftest.er1
31902   cat conftest.err >&5
31903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904   (exit $ac_status); } &&
31905          { ac_try='test -z "$ac_c_werror_flag"
31906                          || test ! -s conftest.err'
31907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31908   (eval $ac_try) 2>&5
31909   ac_status=$?
31910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911   (exit $ac_status); }; } &&
31912          { ac_try='test -s conftest$ac_exeext'
31913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31914   (eval $ac_try) 2>&5
31915   ac_status=$?
31916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917   (exit $ac_status); }; }; then
31918   eval "$as_ac_var=yes"
31919 else
31920   echo "$as_me: failed program was:" >&5
31921 sed 's/^/| /' conftest.$ac_ext >&5
31922
31923 eval "$as_ac_var=no"
31924 fi
31925 rm -f conftest.err conftest.$ac_objext \
31926       conftest$ac_exeext conftest.$ac_ext
31927 fi
31928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31929 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31930 if test `eval echo '${'$as_ac_var'}'` = yes; then
31931   cat >>confdefs.h <<_ACEOF
31932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31933 _ACEOF
31934
31935 fi
31936 done
31937
31938   else
31939
31940   echo "$as_me:$LINENO: checking for _isinf declaration" >&5
31941 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
31942   if test x${glibcxx_cv_func__isinf_use+set} != xset; then
31943     if test "${glibcxx_cv_func__isinf_use+set}" = set; then
31944   echo $ECHO_N "(cached) $ECHO_C" >&6
31945 else
31946
31947
31948
31949       ac_ext=cc
31950 ac_cpp='$CXXCPP $CPPFLAGS'
31951 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31952 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31953 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31954
31955       cat >conftest.$ac_ext <<_ACEOF
31956 /* confdefs.h.  */
31957 _ACEOF
31958 cat confdefs.h >>conftest.$ac_ext
31959 cat >>conftest.$ac_ext <<_ACEOF
31960 /* end confdefs.h.  */
31961 #include <math.h>
31962                       #ifdef HAVE_IEEEFP_H
31963                       #include <ieeefp.h>
31964                       #endif
31965
31966 int
31967 main ()
31968 {
31969  _isinf(0);
31970   ;
31971   return 0;
31972 }
31973 _ACEOF
31974 rm -f conftest.$ac_objext
31975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31976   (eval $ac_compile) 2>conftest.er1
31977   ac_status=$?
31978   grep -v '^ *+' conftest.er1 >conftest.err
31979   rm -f conftest.er1
31980   cat conftest.err >&5
31981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982   (exit $ac_status); } &&
31983          { ac_try='test -z "$ac_cxx_werror_flag"
31984                          || test ! -s conftest.err'
31985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31986   (eval $ac_try) 2>&5
31987   ac_status=$?
31988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989   (exit $ac_status); }; } &&
31990          { ac_try='test -s conftest.$ac_objext'
31991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31992   (eval $ac_try) 2>&5
31993   ac_status=$?
31994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995   (exit $ac_status); }; }; then
31996   glibcxx_cv_func__isinf_use=yes
31997 else
31998   echo "$as_me: failed program was:" >&5
31999 sed 's/^/| /' conftest.$ac_ext >&5
32000
32001 glibcxx_cv_func__isinf_use=no
32002 fi
32003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32004       ac_ext=c
32005 ac_cpp='$CPP $CPPFLAGS'
32006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32009
32010
32011 fi
32012
32013   fi
32014   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
32015 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
32016
32017     if test x$glibcxx_cv_func__isinf_use = x"yes"; then
32018
32019 for ac_func in _isinf
32020 do
32021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32022 echo "$as_me:$LINENO: checking for $ac_func" >&5
32023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32024 if eval "test \"\${$as_ac_var+set}\" = set"; then
32025   echo $ECHO_N "(cached) $ECHO_C" >&6
32026 else
32027   if test x$gcc_no_link = xyes; then
32028   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32029 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32030    { (exit 1); exit 1; }; }
32031 fi
32032 cat >conftest.$ac_ext <<_ACEOF
32033 /* confdefs.h.  */
32034 _ACEOF
32035 cat confdefs.h >>conftest.$ac_ext
32036 cat >>conftest.$ac_ext <<_ACEOF
32037 /* end confdefs.h.  */
32038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32040 #define $ac_func innocuous_$ac_func
32041
32042 /* System header to define __stub macros and hopefully few prototypes,
32043     which can conflict with char $ac_func (); below.
32044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32045     <limits.h> exists even on freestanding compilers.  */
32046
32047 #ifdef __STDC__
32048 # include <limits.h>
32049 #else
32050 # include <assert.h>
32051 #endif
32052
32053 #undef $ac_func
32054
32055 /* Override any gcc2 internal prototype to avoid an error.  */
32056 #ifdef __cplusplus
32057 extern "C"
32058 {
32059 #endif
32060 /* We use char because int might match the return type of a gcc2
32061    builtin and then its argument prototype would still apply.  */
32062 char $ac_func ();
32063 /* The GNU C library defines this for functions which it implements
32064     to always fail with ENOSYS.  Some functions are actually named
32065     something starting with __ and the normal name is an alias.  */
32066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32067 choke me
32068 #else
32069 char (*f) () = $ac_func;
32070 #endif
32071 #ifdef __cplusplus
32072 }
32073 #endif
32074
32075 int
32076 main ()
32077 {
32078 return f != $ac_func;
32079   ;
32080   return 0;
32081 }
32082 _ACEOF
32083 rm -f conftest.$ac_objext conftest$ac_exeext
32084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32085   (eval $ac_link) 2>conftest.er1
32086   ac_status=$?
32087   grep -v '^ *+' conftest.er1 >conftest.err
32088   rm -f conftest.er1
32089   cat conftest.err >&5
32090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32091   (exit $ac_status); } &&
32092          { ac_try='test -z "$ac_c_werror_flag"
32093                          || test ! -s conftest.err'
32094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32095   (eval $ac_try) 2>&5
32096   ac_status=$?
32097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098   (exit $ac_status); }; } &&
32099          { ac_try='test -s conftest$ac_exeext'
32100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32101   (eval $ac_try) 2>&5
32102   ac_status=$?
32103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32104   (exit $ac_status); }; }; then
32105   eval "$as_ac_var=yes"
32106 else
32107   echo "$as_me: failed program was:" >&5
32108 sed 's/^/| /' conftest.$ac_ext >&5
32109
32110 eval "$as_ac_var=no"
32111 fi
32112 rm -f conftest.err conftest.$ac_objext \
32113       conftest$ac_exeext conftest.$ac_ext
32114 fi
32115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32117 if test `eval echo '${'$as_ac_var'}'` = yes; then
32118   cat >>confdefs.h <<_ACEOF
32119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32120 _ACEOF
32121
32122 fi
32123 done
32124
32125     fi
32126   fi
32127
32128
32129
32130   echo "$as_me:$LINENO: checking for isnan declaration" >&5
32131 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
32132   if test x${glibcxx_cv_func_isnan_use+set} != xset; then
32133     if test "${glibcxx_cv_func_isnan_use+set}" = set; then
32134   echo $ECHO_N "(cached) $ECHO_C" >&6
32135 else
32136
32137
32138
32139       ac_ext=cc
32140 ac_cpp='$CXXCPP $CPPFLAGS'
32141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32144
32145       cat >conftest.$ac_ext <<_ACEOF
32146 /* confdefs.h.  */
32147 _ACEOF
32148 cat confdefs.h >>conftest.$ac_ext
32149 cat >>conftest.$ac_ext <<_ACEOF
32150 /* end confdefs.h.  */
32151 #include <math.h>
32152                       #ifdef HAVE_IEEEFP_H
32153                       #include <ieeefp.h>
32154                       #endif
32155
32156 int
32157 main ()
32158 {
32159  isnan(0);
32160   ;
32161   return 0;
32162 }
32163 _ACEOF
32164 rm -f conftest.$ac_objext
32165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32166   (eval $ac_compile) 2>conftest.er1
32167   ac_status=$?
32168   grep -v '^ *+' conftest.er1 >conftest.err
32169   rm -f conftest.er1
32170   cat conftest.err >&5
32171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172   (exit $ac_status); } &&
32173          { ac_try='test -z "$ac_cxx_werror_flag"
32174                          || test ! -s conftest.err'
32175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32176   (eval $ac_try) 2>&5
32177   ac_status=$?
32178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179   (exit $ac_status); }; } &&
32180          { ac_try='test -s conftest.$ac_objext'
32181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32182   (eval $ac_try) 2>&5
32183   ac_status=$?
32184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32185   (exit $ac_status); }; }; then
32186   glibcxx_cv_func_isnan_use=yes
32187 else
32188   echo "$as_me: failed program was:" >&5
32189 sed 's/^/| /' conftest.$ac_ext >&5
32190
32191 glibcxx_cv_func_isnan_use=no
32192 fi
32193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32194       ac_ext=c
32195 ac_cpp='$CPP $CPPFLAGS'
32196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32199
32200
32201 fi
32202
32203   fi
32204   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
32205 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
32206
32207   if test x$glibcxx_cv_func_isnan_use = x"yes"; then
32208
32209 for ac_func in isnan
32210 do
32211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32212 echo "$as_me:$LINENO: checking for $ac_func" >&5
32213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32214 if eval "test \"\${$as_ac_var+set}\" = set"; then
32215   echo $ECHO_N "(cached) $ECHO_C" >&6
32216 else
32217   if test x$gcc_no_link = xyes; then
32218   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32219 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32220    { (exit 1); exit 1; }; }
32221 fi
32222 cat >conftest.$ac_ext <<_ACEOF
32223 /* confdefs.h.  */
32224 _ACEOF
32225 cat confdefs.h >>conftest.$ac_ext
32226 cat >>conftest.$ac_ext <<_ACEOF
32227 /* end confdefs.h.  */
32228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32230 #define $ac_func innocuous_$ac_func
32231
32232 /* System header to define __stub macros and hopefully few prototypes,
32233     which can conflict with char $ac_func (); below.
32234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32235     <limits.h> exists even on freestanding compilers.  */
32236
32237 #ifdef __STDC__
32238 # include <limits.h>
32239 #else
32240 # include <assert.h>
32241 #endif
32242
32243 #undef $ac_func
32244
32245 /* Override any gcc2 internal prototype to avoid an error.  */
32246 #ifdef __cplusplus
32247 extern "C"
32248 {
32249 #endif
32250 /* We use char because int might match the return type of a gcc2
32251    builtin and then its argument prototype would still apply.  */
32252 char $ac_func ();
32253 /* The GNU C library defines this for functions which it implements
32254     to always fail with ENOSYS.  Some functions are actually named
32255     something starting with __ and the normal name is an alias.  */
32256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32257 choke me
32258 #else
32259 char (*f) () = $ac_func;
32260 #endif
32261 #ifdef __cplusplus
32262 }
32263 #endif
32264
32265 int
32266 main ()
32267 {
32268 return f != $ac_func;
32269   ;
32270   return 0;
32271 }
32272 _ACEOF
32273 rm -f conftest.$ac_objext conftest$ac_exeext
32274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32275   (eval $ac_link) 2>conftest.er1
32276   ac_status=$?
32277   grep -v '^ *+' conftest.er1 >conftest.err
32278   rm -f conftest.er1
32279   cat conftest.err >&5
32280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281   (exit $ac_status); } &&
32282          { ac_try='test -z "$ac_c_werror_flag"
32283                          || test ! -s conftest.err'
32284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32285   (eval $ac_try) 2>&5
32286   ac_status=$?
32287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288   (exit $ac_status); }; } &&
32289          { ac_try='test -s conftest$ac_exeext'
32290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32291   (eval $ac_try) 2>&5
32292   ac_status=$?
32293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294   (exit $ac_status); }; }; then
32295   eval "$as_ac_var=yes"
32296 else
32297   echo "$as_me: failed program was:" >&5
32298 sed 's/^/| /' conftest.$ac_ext >&5
32299
32300 eval "$as_ac_var=no"
32301 fi
32302 rm -f conftest.err conftest.$ac_objext \
32303       conftest$ac_exeext conftest.$ac_ext
32304 fi
32305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32307 if test `eval echo '${'$as_ac_var'}'` = yes; then
32308   cat >>confdefs.h <<_ACEOF
32309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32310 _ACEOF
32311
32312 fi
32313 done
32314
32315   else
32316
32317   echo "$as_me:$LINENO: checking for _isnan declaration" >&5
32318 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
32319   if test x${glibcxx_cv_func__isnan_use+set} != xset; then
32320     if test "${glibcxx_cv_func__isnan_use+set}" = set; then
32321   echo $ECHO_N "(cached) $ECHO_C" >&6
32322 else
32323
32324
32325
32326       ac_ext=cc
32327 ac_cpp='$CXXCPP $CPPFLAGS'
32328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32331
32332       cat >conftest.$ac_ext <<_ACEOF
32333 /* confdefs.h.  */
32334 _ACEOF
32335 cat confdefs.h >>conftest.$ac_ext
32336 cat >>conftest.$ac_ext <<_ACEOF
32337 /* end confdefs.h.  */
32338 #include <math.h>
32339                       #ifdef HAVE_IEEEFP_H
32340                       #include <ieeefp.h>
32341                       #endif
32342
32343 int
32344 main ()
32345 {
32346  _isnan(0);
32347   ;
32348   return 0;
32349 }
32350 _ACEOF
32351 rm -f conftest.$ac_objext
32352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32353   (eval $ac_compile) 2>conftest.er1
32354   ac_status=$?
32355   grep -v '^ *+' conftest.er1 >conftest.err
32356   rm -f conftest.er1
32357   cat conftest.err >&5
32358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359   (exit $ac_status); } &&
32360          { ac_try='test -z "$ac_cxx_werror_flag"
32361                          || test ! -s conftest.err'
32362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32363   (eval $ac_try) 2>&5
32364   ac_status=$?
32365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366   (exit $ac_status); }; } &&
32367          { ac_try='test -s conftest.$ac_objext'
32368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32369   (eval $ac_try) 2>&5
32370   ac_status=$?
32371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372   (exit $ac_status); }; }; then
32373   glibcxx_cv_func__isnan_use=yes
32374 else
32375   echo "$as_me: failed program was:" >&5
32376 sed 's/^/| /' conftest.$ac_ext >&5
32377
32378 glibcxx_cv_func__isnan_use=no
32379 fi
32380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32381       ac_ext=c
32382 ac_cpp='$CPP $CPPFLAGS'
32383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32386
32387
32388 fi
32389
32390   fi
32391   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
32392 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
32393
32394     if test x$glibcxx_cv_func__isnan_use = x"yes"; then
32395
32396 for ac_func in _isnan
32397 do
32398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32399 echo "$as_me:$LINENO: checking for $ac_func" >&5
32400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32401 if eval "test \"\${$as_ac_var+set}\" = set"; then
32402   echo $ECHO_N "(cached) $ECHO_C" >&6
32403 else
32404   if test x$gcc_no_link = xyes; then
32405   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32407    { (exit 1); exit 1; }; }
32408 fi
32409 cat >conftest.$ac_ext <<_ACEOF
32410 /* confdefs.h.  */
32411 _ACEOF
32412 cat confdefs.h >>conftest.$ac_ext
32413 cat >>conftest.$ac_ext <<_ACEOF
32414 /* end confdefs.h.  */
32415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32417 #define $ac_func innocuous_$ac_func
32418
32419 /* System header to define __stub macros and hopefully few prototypes,
32420     which can conflict with char $ac_func (); below.
32421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32422     <limits.h> exists even on freestanding compilers.  */
32423
32424 #ifdef __STDC__
32425 # include <limits.h>
32426 #else
32427 # include <assert.h>
32428 #endif
32429
32430 #undef $ac_func
32431
32432 /* Override any gcc2 internal prototype to avoid an error.  */
32433 #ifdef __cplusplus
32434 extern "C"
32435 {
32436 #endif
32437 /* We use char because int might match the return type of a gcc2
32438    builtin and then its argument prototype would still apply.  */
32439 char $ac_func ();
32440 /* The GNU C library defines this for functions which it implements
32441     to always fail with ENOSYS.  Some functions are actually named
32442     something starting with __ and the normal name is an alias.  */
32443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32444 choke me
32445 #else
32446 char (*f) () = $ac_func;
32447 #endif
32448 #ifdef __cplusplus
32449 }
32450 #endif
32451
32452 int
32453 main ()
32454 {
32455 return f != $ac_func;
32456   ;
32457   return 0;
32458 }
32459 _ACEOF
32460 rm -f conftest.$ac_objext conftest$ac_exeext
32461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32462   (eval $ac_link) 2>conftest.er1
32463   ac_status=$?
32464   grep -v '^ *+' conftest.er1 >conftest.err
32465   rm -f conftest.er1
32466   cat conftest.err >&5
32467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32468   (exit $ac_status); } &&
32469          { ac_try='test -z "$ac_c_werror_flag"
32470                          || test ! -s conftest.err'
32471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32472   (eval $ac_try) 2>&5
32473   ac_status=$?
32474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475   (exit $ac_status); }; } &&
32476          { ac_try='test -s conftest$ac_exeext'
32477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32478   (eval $ac_try) 2>&5
32479   ac_status=$?
32480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481   (exit $ac_status); }; }; then
32482   eval "$as_ac_var=yes"
32483 else
32484   echo "$as_me: failed program was:" >&5
32485 sed 's/^/| /' conftest.$ac_ext >&5
32486
32487 eval "$as_ac_var=no"
32488 fi
32489 rm -f conftest.err conftest.$ac_objext \
32490       conftest$ac_exeext conftest.$ac_ext
32491 fi
32492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32494 if test `eval echo '${'$as_ac_var'}'` = yes; then
32495   cat >>confdefs.h <<_ACEOF
32496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32497 _ACEOF
32498
32499 fi
32500 done
32501
32502     fi
32503   fi
32504
32505
32506
32507   echo "$as_me:$LINENO: checking for finite declaration" >&5
32508 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
32509   if test x${glibcxx_cv_func_finite_use+set} != xset; then
32510     if test "${glibcxx_cv_func_finite_use+set}" = set; then
32511   echo $ECHO_N "(cached) $ECHO_C" >&6
32512 else
32513
32514
32515
32516       ac_ext=cc
32517 ac_cpp='$CXXCPP $CPPFLAGS'
32518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32521
32522       cat >conftest.$ac_ext <<_ACEOF
32523 /* confdefs.h.  */
32524 _ACEOF
32525 cat confdefs.h >>conftest.$ac_ext
32526 cat >>conftest.$ac_ext <<_ACEOF
32527 /* end confdefs.h.  */
32528 #include <math.h>
32529                       #ifdef HAVE_IEEEFP_H
32530                       #include <ieeefp.h>
32531                       #endif
32532
32533 int
32534 main ()
32535 {
32536  finite(0);
32537   ;
32538   return 0;
32539 }
32540 _ACEOF
32541 rm -f conftest.$ac_objext
32542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32543   (eval $ac_compile) 2>conftest.er1
32544   ac_status=$?
32545   grep -v '^ *+' conftest.er1 >conftest.err
32546   rm -f conftest.er1
32547   cat conftest.err >&5
32548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549   (exit $ac_status); } &&
32550          { ac_try='test -z "$ac_cxx_werror_flag"
32551                          || test ! -s conftest.err'
32552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32553   (eval $ac_try) 2>&5
32554   ac_status=$?
32555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32556   (exit $ac_status); }; } &&
32557          { ac_try='test -s conftest.$ac_objext'
32558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32559   (eval $ac_try) 2>&5
32560   ac_status=$?
32561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562   (exit $ac_status); }; }; then
32563   glibcxx_cv_func_finite_use=yes
32564 else
32565   echo "$as_me: failed program was:" >&5
32566 sed 's/^/| /' conftest.$ac_ext >&5
32567
32568 glibcxx_cv_func_finite_use=no
32569 fi
32570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32571       ac_ext=c
32572 ac_cpp='$CPP $CPPFLAGS'
32573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32576
32577
32578 fi
32579
32580   fi
32581   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
32582 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
32583
32584   if test x$glibcxx_cv_func_finite_use = x"yes"; then
32585
32586 for ac_func in finite
32587 do
32588 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32589 echo "$as_me:$LINENO: checking for $ac_func" >&5
32590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32591 if eval "test \"\${$as_ac_var+set}\" = set"; then
32592   echo $ECHO_N "(cached) $ECHO_C" >&6
32593 else
32594   if test x$gcc_no_link = xyes; then
32595   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32597    { (exit 1); exit 1; }; }
32598 fi
32599 cat >conftest.$ac_ext <<_ACEOF
32600 /* confdefs.h.  */
32601 _ACEOF
32602 cat confdefs.h >>conftest.$ac_ext
32603 cat >>conftest.$ac_ext <<_ACEOF
32604 /* end confdefs.h.  */
32605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32607 #define $ac_func innocuous_$ac_func
32608
32609 /* System header to define __stub macros and hopefully few prototypes,
32610     which can conflict with char $ac_func (); below.
32611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32612     <limits.h> exists even on freestanding compilers.  */
32613
32614 #ifdef __STDC__
32615 # include <limits.h>
32616 #else
32617 # include <assert.h>
32618 #endif
32619
32620 #undef $ac_func
32621
32622 /* Override any gcc2 internal prototype to avoid an error.  */
32623 #ifdef __cplusplus
32624 extern "C"
32625 {
32626 #endif
32627 /* We use char because int might match the return type of a gcc2
32628    builtin and then its argument prototype would still apply.  */
32629 char $ac_func ();
32630 /* The GNU C library defines this for functions which it implements
32631     to always fail with ENOSYS.  Some functions are actually named
32632     something starting with __ and the normal name is an alias.  */
32633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32634 choke me
32635 #else
32636 char (*f) () = $ac_func;
32637 #endif
32638 #ifdef __cplusplus
32639 }
32640 #endif
32641
32642 int
32643 main ()
32644 {
32645 return f != $ac_func;
32646   ;
32647   return 0;
32648 }
32649 _ACEOF
32650 rm -f conftest.$ac_objext conftest$ac_exeext
32651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32652   (eval $ac_link) 2>conftest.er1
32653   ac_status=$?
32654   grep -v '^ *+' conftest.er1 >conftest.err
32655   rm -f conftest.er1
32656   cat conftest.err >&5
32657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658   (exit $ac_status); } &&
32659          { ac_try='test -z "$ac_c_werror_flag"
32660                          || test ! -s conftest.err'
32661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662   (eval $ac_try) 2>&5
32663   ac_status=$?
32664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665   (exit $ac_status); }; } &&
32666          { ac_try='test -s conftest$ac_exeext'
32667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32668   (eval $ac_try) 2>&5
32669   ac_status=$?
32670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671   (exit $ac_status); }; }; then
32672   eval "$as_ac_var=yes"
32673 else
32674   echo "$as_me: failed program was:" >&5
32675 sed 's/^/| /' conftest.$ac_ext >&5
32676
32677 eval "$as_ac_var=no"
32678 fi
32679 rm -f conftest.err conftest.$ac_objext \
32680       conftest$ac_exeext conftest.$ac_ext
32681 fi
32682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32684 if test `eval echo '${'$as_ac_var'}'` = yes; then
32685   cat >>confdefs.h <<_ACEOF
32686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32687 _ACEOF
32688
32689 fi
32690 done
32691
32692   else
32693
32694   echo "$as_me:$LINENO: checking for _finite declaration" >&5
32695 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
32696   if test x${glibcxx_cv_func__finite_use+set} != xset; then
32697     if test "${glibcxx_cv_func__finite_use+set}" = set; then
32698   echo $ECHO_N "(cached) $ECHO_C" >&6
32699 else
32700
32701
32702
32703       ac_ext=cc
32704 ac_cpp='$CXXCPP $CPPFLAGS'
32705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32708
32709       cat >conftest.$ac_ext <<_ACEOF
32710 /* confdefs.h.  */
32711 _ACEOF
32712 cat confdefs.h >>conftest.$ac_ext
32713 cat >>conftest.$ac_ext <<_ACEOF
32714 /* end confdefs.h.  */
32715 #include <math.h>
32716                       #ifdef HAVE_IEEEFP_H
32717                       #include <ieeefp.h>
32718                       #endif
32719
32720 int
32721 main ()
32722 {
32723  _finite(0);
32724   ;
32725   return 0;
32726 }
32727 _ACEOF
32728 rm -f conftest.$ac_objext
32729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32730   (eval $ac_compile) 2>conftest.er1
32731   ac_status=$?
32732   grep -v '^ *+' conftest.er1 >conftest.err
32733   rm -f conftest.er1
32734   cat conftest.err >&5
32735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736   (exit $ac_status); } &&
32737          { ac_try='test -z "$ac_cxx_werror_flag"
32738                          || test ! -s conftest.err'
32739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32740   (eval $ac_try) 2>&5
32741   ac_status=$?
32742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743   (exit $ac_status); }; } &&
32744          { ac_try='test -s conftest.$ac_objext'
32745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32746   (eval $ac_try) 2>&5
32747   ac_status=$?
32748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32749   (exit $ac_status); }; }; then
32750   glibcxx_cv_func__finite_use=yes
32751 else
32752   echo "$as_me: failed program was:" >&5
32753 sed 's/^/| /' conftest.$ac_ext >&5
32754
32755 glibcxx_cv_func__finite_use=no
32756 fi
32757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32758       ac_ext=c
32759 ac_cpp='$CPP $CPPFLAGS'
32760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32763
32764
32765 fi
32766
32767   fi
32768   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
32769 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
32770
32771     if test x$glibcxx_cv_func__finite_use = x"yes"; then
32772
32773 for ac_func in _finite
32774 do
32775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32776 echo "$as_me:$LINENO: checking for $ac_func" >&5
32777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32778 if eval "test \"\${$as_ac_var+set}\" = set"; then
32779   echo $ECHO_N "(cached) $ECHO_C" >&6
32780 else
32781   if test x$gcc_no_link = xyes; then
32782   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32784    { (exit 1); exit 1; }; }
32785 fi
32786 cat >conftest.$ac_ext <<_ACEOF
32787 /* confdefs.h.  */
32788 _ACEOF
32789 cat confdefs.h >>conftest.$ac_ext
32790 cat >>conftest.$ac_ext <<_ACEOF
32791 /* end confdefs.h.  */
32792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32794 #define $ac_func innocuous_$ac_func
32795
32796 /* System header to define __stub macros and hopefully few prototypes,
32797     which can conflict with char $ac_func (); below.
32798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32799     <limits.h> exists even on freestanding compilers.  */
32800
32801 #ifdef __STDC__
32802 # include <limits.h>
32803 #else
32804 # include <assert.h>
32805 #endif
32806
32807 #undef $ac_func
32808
32809 /* Override any gcc2 internal prototype to avoid an error.  */
32810 #ifdef __cplusplus
32811 extern "C"
32812 {
32813 #endif
32814 /* We use char because int might match the return type of a gcc2
32815    builtin and then its argument prototype would still apply.  */
32816 char $ac_func ();
32817 /* The GNU C library defines this for functions which it implements
32818     to always fail with ENOSYS.  Some functions are actually named
32819     something starting with __ and the normal name is an alias.  */
32820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32821 choke me
32822 #else
32823 char (*f) () = $ac_func;
32824 #endif
32825 #ifdef __cplusplus
32826 }
32827 #endif
32828
32829 int
32830 main ()
32831 {
32832 return f != $ac_func;
32833   ;
32834   return 0;
32835 }
32836 _ACEOF
32837 rm -f conftest.$ac_objext conftest$ac_exeext
32838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32839   (eval $ac_link) 2>conftest.er1
32840   ac_status=$?
32841   grep -v '^ *+' conftest.er1 >conftest.err
32842   rm -f conftest.er1
32843   cat conftest.err >&5
32844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845   (exit $ac_status); } &&
32846          { ac_try='test -z "$ac_c_werror_flag"
32847                          || test ! -s conftest.err'
32848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32849   (eval $ac_try) 2>&5
32850   ac_status=$?
32851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32852   (exit $ac_status); }; } &&
32853          { ac_try='test -s conftest$ac_exeext'
32854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32855   (eval $ac_try) 2>&5
32856   ac_status=$?
32857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858   (exit $ac_status); }; }; then
32859   eval "$as_ac_var=yes"
32860 else
32861   echo "$as_me: failed program was:" >&5
32862 sed 's/^/| /' conftest.$ac_ext >&5
32863
32864 eval "$as_ac_var=no"
32865 fi
32866 rm -f conftest.err conftest.$ac_objext \
32867       conftest$ac_exeext conftest.$ac_ext
32868 fi
32869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32871 if test `eval echo '${'$as_ac_var'}'` = yes; then
32872   cat >>confdefs.h <<_ACEOF
32873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32874 _ACEOF
32875
32876 fi
32877 done
32878
32879     fi
32880   fi
32881
32882
32883
32884   echo "$as_me:$LINENO: checking for copysign declaration" >&5
32885 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
32886   if test x${glibcxx_cv_func_copysign_use+set} != xset; then
32887     if test "${glibcxx_cv_func_copysign_use+set}" = set; then
32888   echo $ECHO_N "(cached) $ECHO_C" >&6
32889 else
32890
32891
32892
32893       ac_ext=cc
32894 ac_cpp='$CXXCPP $CPPFLAGS'
32895 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32896 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32897 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32898
32899       cat >conftest.$ac_ext <<_ACEOF
32900 /* confdefs.h.  */
32901 _ACEOF
32902 cat confdefs.h >>conftest.$ac_ext
32903 cat >>conftest.$ac_ext <<_ACEOF
32904 /* end confdefs.h.  */
32905 #include <math.h>
32906 int
32907 main ()
32908 {
32909  copysign(0, 0);
32910   ;
32911   return 0;
32912 }
32913 _ACEOF
32914 rm -f conftest.$ac_objext
32915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32916   (eval $ac_compile) 2>conftest.er1
32917   ac_status=$?
32918   grep -v '^ *+' conftest.er1 >conftest.err
32919   rm -f conftest.er1
32920   cat conftest.err >&5
32921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922   (exit $ac_status); } &&
32923          { ac_try='test -z "$ac_cxx_werror_flag"
32924                          || test ! -s conftest.err'
32925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32926   (eval $ac_try) 2>&5
32927   ac_status=$?
32928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929   (exit $ac_status); }; } &&
32930          { ac_try='test -s conftest.$ac_objext'
32931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32932   (eval $ac_try) 2>&5
32933   ac_status=$?
32934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935   (exit $ac_status); }; }; then
32936   glibcxx_cv_func_copysign_use=yes
32937 else
32938   echo "$as_me: failed program was:" >&5
32939 sed 's/^/| /' conftest.$ac_ext >&5
32940
32941 glibcxx_cv_func_copysign_use=no
32942 fi
32943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32944       ac_ext=c
32945 ac_cpp='$CPP $CPPFLAGS'
32946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32949
32950
32951 fi
32952
32953   fi
32954   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
32955 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
32956
32957   if test x$glibcxx_cv_func_copysign_use = x"yes"; then
32958
32959 for ac_func in copysign
32960 do
32961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32962 echo "$as_me:$LINENO: checking for $ac_func" >&5
32963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32964 if eval "test \"\${$as_ac_var+set}\" = set"; then
32965   echo $ECHO_N "(cached) $ECHO_C" >&6
32966 else
32967   if test x$gcc_no_link = xyes; then
32968   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
32969 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
32970    { (exit 1); exit 1; }; }
32971 fi
32972 cat >conftest.$ac_ext <<_ACEOF
32973 /* confdefs.h.  */
32974 _ACEOF
32975 cat confdefs.h >>conftest.$ac_ext
32976 cat >>conftest.$ac_ext <<_ACEOF
32977 /* end confdefs.h.  */
32978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32980 #define $ac_func innocuous_$ac_func
32981
32982 /* System header to define __stub macros and hopefully few prototypes,
32983     which can conflict with char $ac_func (); below.
32984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32985     <limits.h> exists even on freestanding compilers.  */
32986
32987 #ifdef __STDC__
32988 # include <limits.h>
32989 #else
32990 # include <assert.h>
32991 #endif
32992
32993 #undef $ac_func
32994
32995 /* Override any gcc2 internal prototype to avoid an error.  */
32996 #ifdef __cplusplus
32997 extern "C"
32998 {
32999 #endif
33000 /* We use char because int might match the return type of a gcc2
33001    builtin and then its argument prototype would still apply.  */
33002 char $ac_func ();
33003 /* The GNU C library defines this for functions which it implements
33004     to always fail with ENOSYS.  Some functions are actually named
33005     something starting with __ and the normal name is an alias.  */
33006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33007 choke me
33008 #else
33009 char (*f) () = $ac_func;
33010 #endif
33011 #ifdef __cplusplus
33012 }
33013 #endif
33014
33015 int
33016 main ()
33017 {
33018 return f != $ac_func;
33019   ;
33020   return 0;
33021 }
33022 _ACEOF
33023 rm -f conftest.$ac_objext conftest$ac_exeext
33024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33025   (eval $ac_link) 2>conftest.er1
33026   ac_status=$?
33027   grep -v '^ *+' conftest.er1 >conftest.err
33028   rm -f conftest.er1
33029   cat conftest.err >&5
33030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33031   (exit $ac_status); } &&
33032          { ac_try='test -z "$ac_c_werror_flag"
33033                          || test ! -s conftest.err'
33034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33035   (eval $ac_try) 2>&5
33036   ac_status=$?
33037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038   (exit $ac_status); }; } &&
33039          { ac_try='test -s conftest$ac_exeext'
33040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33041   (eval $ac_try) 2>&5
33042   ac_status=$?
33043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044   (exit $ac_status); }; }; then
33045   eval "$as_ac_var=yes"
33046 else
33047   echo "$as_me: failed program was:" >&5
33048 sed 's/^/| /' conftest.$ac_ext >&5
33049
33050 eval "$as_ac_var=no"
33051 fi
33052 rm -f conftest.err conftest.$ac_objext \
33053       conftest$ac_exeext conftest.$ac_ext
33054 fi
33055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33057 if test `eval echo '${'$as_ac_var'}'` = yes; then
33058   cat >>confdefs.h <<_ACEOF
33059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33060 _ACEOF
33061
33062 fi
33063 done
33064
33065   else
33066
33067   echo "$as_me:$LINENO: checking for _copysign declaration" >&5
33068 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
33069   if test x${glibcxx_cv_func__copysign_use+set} != xset; then
33070     if test "${glibcxx_cv_func__copysign_use+set}" = set; then
33071   echo $ECHO_N "(cached) $ECHO_C" >&6
33072 else
33073
33074
33075
33076       ac_ext=cc
33077 ac_cpp='$CXXCPP $CPPFLAGS'
33078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33081
33082       cat >conftest.$ac_ext <<_ACEOF
33083 /* confdefs.h.  */
33084 _ACEOF
33085 cat confdefs.h >>conftest.$ac_ext
33086 cat >>conftest.$ac_ext <<_ACEOF
33087 /* end confdefs.h.  */
33088 #include <math.h>
33089 int
33090 main ()
33091 {
33092  _copysign(0, 0);
33093   ;
33094   return 0;
33095 }
33096 _ACEOF
33097 rm -f conftest.$ac_objext
33098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33099   (eval $ac_compile) 2>conftest.er1
33100   ac_status=$?
33101   grep -v '^ *+' conftest.er1 >conftest.err
33102   rm -f conftest.er1
33103   cat conftest.err >&5
33104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33105   (exit $ac_status); } &&
33106          { ac_try='test -z "$ac_cxx_werror_flag"
33107                          || test ! -s conftest.err'
33108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33109   (eval $ac_try) 2>&5
33110   ac_status=$?
33111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33112   (exit $ac_status); }; } &&
33113          { ac_try='test -s conftest.$ac_objext'
33114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33115   (eval $ac_try) 2>&5
33116   ac_status=$?
33117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118   (exit $ac_status); }; }; then
33119   glibcxx_cv_func__copysign_use=yes
33120 else
33121   echo "$as_me: failed program was:" >&5
33122 sed 's/^/| /' conftest.$ac_ext >&5
33123
33124 glibcxx_cv_func__copysign_use=no
33125 fi
33126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33127       ac_ext=c
33128 ac_cpp='$CPP $CPPFLAGS'
33129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33132
33133
33134 fi
33135
33136   fi
33137   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
33138 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
33139
33140     if test x$glibcxx_cv_func__copysign_use = x"yes"; then
33141
33142 for ac_func in _copysign
33143 do
33144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33145 echo "$as_me:$LINENO: checking for $ac_func" >&5
33146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33147 if eval "test \"\${$as_ac_var+set}\" = set"; then
33148   echo $ECHO_N "(cached) $ECHO_C" >&6
33149 else
33150   if test x$gcc_no_link = xyes; then
33151   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33152 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33153    { (exit 1); exit 1; }; }
33154 fi
33155 cat >conftest.$ac_ext <<_ACEOF
33156 /* confdefs.h.  */
33157 _ACEOF
33158 cat confdefs.h >>conftest.$ac_ext
33159 cat >>conftest.$ac_ext <<_ACEOF
33160 /* end confdefs.h.  */
33161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33163 #define $ac_func innocuous_$ac_func
33164
33165 /* System header to define __stub macros and hopefully few prototypes,
33166     which can conflict with char $ac_func (); below.
33167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33168     <limits.h> exists even on freestanding compilers.  */
33169
33170 #ifdef __STDC__
33171 # include <limits.h>
33172 #else
33173 # include <assert.h>
33174 #endif
33175
33176 #undef $ac_func
33177
33178 /* Override any gcc2 internal prototype to avoid an error.  */
33179 #ifdef __cplusplus
33180 extern "C"
33181 {
33182 #endif
33183 /* We use char because int might match the return type of a gcc2
33184    builtin and then its argument prototype would still apply.  */
33185 char $ac_func ();
33186 /* The GNU C library defines this for functions which it implements
33187     to always fail with ENOSYS.  Some functions are actually named
33188     something starting with __ and the normal name is an alias.  */
33189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33190 choke me
33191 #else
33192 char (*f) () = $ac_func;
33193 #endif
33194 #ifdef __cplusplus
33195 }
33196 #endif
33197
33198 int
33199 main ()
33200 {
33201 return f != $ac_func;
33202   ;
33203   return 0;
33204 }
33205 _ACEOF
33206 rm -f conftest.$ac_objext conftest$ac_exeext
33207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33208   (eval $ac_link) 2>conftest.er1
33209   ac_status=$?
33210   grep -v '^ *+' conftest.er1 >conftest.err
33211   rm -f conftest.er1
33212   cat conftest.err >&5
33213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33214   (exit $ac_status); } &&
33215          { ac_try='test -z "$ac_c_werror_flag"
33216                          || test ! -s conftest.err'
33217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33218   (eval $ac_try) 2>&5
33219   ac_status=$?
33220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221   (exit $ac_status); }; } &&
33222          { ac_try='test -s conftest$ac_exeext'
33223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33224   (eval $ac_try) 2>&5
33225   ac_status=$?
33226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33227   (exit $ac_status); }; }; then
33228   eval "$as_ac_var=yes"
33229 else
33230   echo "$as_me: failed program was:" >&5
33231 sed 's/^/| /' conftest.$ac_ext >&5
33232
33233 eval "$as_ac_var=no"
33234 fi
33235 rm -f conftest.err conftest.$ac_objext \
33236       conftest$ac_exeext conftest.$ac_ext
33237 fi
33238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33240 if test `eval echo '${'$as_ac_var'}'` = yes; then
33241   cat >>confdefs.h <<_ACEOF
33242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33243 _ACEOF
33244
33245 fi
33246 done
33247
33248     fi
33249   fi
33250
33251
33252
33253   echo "$as_me:$LINENO: checking for sincos declaration" >&5
33254 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
33255   if test x${glibcxx_cv_func_sincos_use+set} != xset; then
33256     if test "${glibcxx_cv_func_sincos_use+set}" = set; then
33257   echo $ECHO_N "(cached) $ECHO_C" >&6
33258 else
33259
33260
33261
33262       ac_ext=cc
33263 ac_cpp='$CXXCPP $CPPFLAGS'
33264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33267
33268       cat >conftest.$ac_ext <<_ACEOF
33269 /* confdefs.h.  */
33270 _ACEOF
33271 cat confdefs.h >>conftest.$ac_ext
33272 cat >>conftest.$ac_ext <<_ACEOF
33273 /* end confdefs.h.  */
33274 #include <math.h>
33275 int
33276 main ()
33277 {
33278  sincos(0, 0, 0);
33279   ;
33280   return 0;
33281 }
33282 _ACEOF
33283 rm -f conftest.$ac_objext
33284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33285   (eval $ac_compile) 2>conftest.er1
33286   ac_status=$?
33287   grep -v '^ *+' conftest.er1 >conftest.err
33288   rm -f conftest.er1
33289   cat conftest.err >&5
33290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291   (exit $ac_status); } &&
33292          { ac_try='test -z "$ac_cxx_werror_flag"
33293                          || test ! -s conftest.err'
33294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33295   (eval $ac_try) 2>&5
33296   ac_status=$?
33297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298   (exit $ac_status); }; } &&
33299          { ac_try='test -s conftest.$ac_objext'
33300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33301   (eval $ac_try) 2>&5
33302   ac_status=$?
33303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304   (exit $ac_status); }; }; then
33305   glibcxx_cv_func_sincos_use=yes
33306 else
33307   echo "$as_me: failed program was:" >&5
33308 sed 's/^/| /' conftest.$ac_ext >&5
33309
33310 glibcxx_cv_func_sincos_use=no
33311 fi
33312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33313       ac_ext=c
33314 ac_cpp='$CPP $CPPFLAGS'
33315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33318
33319
33320 fi
33321
33322   fi
33323   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
33324 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
33325
33326   if test x$glibcxx_cv_func_sincos_use = x"yes"; then
33327
33328 for ac_func in sincos
33329 do
33330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33331 echo "$as_me:$LINENO: checking for $ac_func" >&5
33332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33333 if eval "test \"\${$as_ac_var+set}\" = set"; then
33334   echo $ECHO_N "(cached) $ECHO_C" >&6
33335 else
33336   if test x$gcc_no_link = xyes; then
33337   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33338 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33339    { (exit 1); exit 1; }; }
33340 fi
33341 cat >conftest.$ac_ext <<_ACEOF
33342 /* confdefs.h.  */
33343 _ACEOF
33344 cat confdefs.h >>conftest.$ac_ext
33345 cat >>conftest.$ac_ext <<_ACEOF
33346 /* end confdefs.h.  */
33347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33349 #define $ac_func innocuous_$ac_func
33350
33351 /* System header to define __stub macros and hopefully few prototypes,
33352     which can conflict with char $ac_func (); below.
33353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33354     <limits.h> exists even on freestanding compilers.  */
33355
33356 #ifdef __STDC__
33357 # include <limits.h>
33358 #else
33359 # include <assert.h>
33360 #endif
33361
33362 #undef $ac_func
33363
33364 /* Override any gcc2 internal prototype to avoid an error.  */
33365 #ifdef __cplusplus
33366 extern "C"
33367 {
33368 #endif
33369 /* We use char because int might match the return type of a gcc2
33370    builtin and then its argument prototype would still apply.  */
33371 char $ac_func ();
33372 /* The GNU C library defines this for functions which it implements
33373     to always fail with ENOSYS.  Some functions are actually named
33374     something starting with __ and the normal name is an alias.  */
33375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33376 choke me
33377 #else
33378 char (*f) () = $ac_func;
33379 #endif
33380 #ifdef __cplusplus
33381 }
33382 #endif
33383
33384 int
33385 main ()
33386 {
33387 return f != $ac_func;
33388   ;
33389   return 0;
33390 }
33391 _ACEOF
33392 rm -f conftest.$ac_objext conftest$ac_exeext
33393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33394   (eval $ac_link) 2>conftest.er1
33395   ac_status=$?
33396   grep -v '^ *+' conftest.er1 >conftest.err
33397   rm -f conftest.er1
33398   cat conftest.err >&5
33399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400   (exit $ac_status); } &&
33401          { ac_try='test -z "$ac_c_werror_flag"
33402                          || test ! -s conftest.err'
33403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33404   (eval $ac_try) 2>&5
33405   ac_status=$?
33406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407   (exit $ac_status); }; } &&
33408          { ac_try='test -s conftest$ac_exeext'
33409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33410   (eval $ac_try) 2>&5
33411   ac_status=$?
33412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33413   (exit $ac_status); }; }; then
33414   eval "$as_ac_var=yes"
33415 else
33416   echo "$as_me: failed program was:" >&5
33417 sed 's/^/| /' conftest.$ac_ext >&5
33418
33419 eval "$as_ac_var=no"
33420 fi
33421 rm -f conftest.err conftest.$ac_objext \
33422       conftest$ac_exeext conftest.$ac_ext
33423 fi
33424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33425 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33426 if test `eval echo '${'$as_ac_var'}'` = yes; then
33427   cat >>confdefs.h <<_ACEOF
33428 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33429 _ACEOF
33430
33431 fi
33432 done
33433
33434   else
33435
33436   echo "$as_me:$LINENO: checking for _sincos declaration" >&5
33437 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
33438   if test x${glibcxx_cv_func__sincos_use+set} != xset; then
33439     if test "${glibcxx_cv_func__sincos_use+set}" = set; then
33440   echo $ECHO_N "(cached) $ECHO_C" >&6
33441 else
33442
33443
33444
33445       ac_ext=cc
33446 ac_cpp='$CXXCPP $CPPFLAGS'
33447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33450
33451       cat >conftest.$ac_ext <<_ACEOF
33452 /* confdefs.h.  */
33453 _ACEOF
33454 cat confdefs.h >>conftest.$ac_ext
33455 cat >>conftest.$ac_ext <<_ACEOF
33456 /* end confdefs.h.  */
33457 #include <math.h>
33458 int
33459 main ()
33460 {
33461  _sincos(0, 0, 0);
33462   ;
33463   return 0;
33464 }
33465 _ACEOF
33466 rm -f conftest.$ac_objext
33467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33468   (eval $ac_compile) 2>conftest.er1
33469   ac_status=$?
33470   grep -v '^ *+' conftest.er1 >conftest.err
33471   rm -f conftest.er1
33472   cat conftest.err >&5
33473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474   (exit $ac_status); } &&
33475          { ac_try='test -z "$ac_cxx_werror_flag"
33476                          || test ! -s conftest.err'
33477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33478   (eval $ac_try) 2>&5
33479   ac_status=$?
33480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481   (exit $ac_status); }; } &&
33482          { ac_try='test -s conftest.$ac_objext'
33483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33484   (eval $ac_try) 2>&5
33485   ac_status=$?
33486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487   (exit $ac_status); }; }; then
33488   glibcxx_cv_func__sincos_use=yes
33489 else
33490   echo "$as_me: failed program was:" >&5
33491 sed 's/^/| /' conftest.$ac_ext >&5
33492
33493 glibcxx_cv_func__sincos_use=no
33494 fi
33495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33496       ac_ext=c
33497 ac_cpp='$CPP $CPPFLAGS'
33498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33501
33502
33503 fi
33504
33505   fi
33506   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
33507 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
33508
33509     if test x$glibcxx_cv_func__sincos_use = x"yes"; then
33510
33511 for ac_func in _sincos
33512 do
33513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33514 echo "$as_me:$LINENO: checking for $ac_func" >&5
33515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33516 if eval "test \"\${$as_ac_var+set}\" = set"; then
33517   echo $ECHO_N "(cached) $ECHO_C" >&6
33518 else
33519   if test x$gcc_no_link = xyes; then
33520   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33521 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33522    { (exit 1); exit 1; }; }
33523 fi
33524 cat >conftest.$ac_ext <<_ACEOF
33525 /* confdefs.h.  */
33526 _ACEOF
33527 cat confdefs.h >>conftest.$ac_ext
33528 cat >>conftest.$ac_ext <<_ACEOF
33529 /* end confdefs.h.  */
33530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33532 #define $ac_func innocuous_$ac_func
33533
33534 /* System header to define __stub macros and hopefully few prototypes,
33535     which can conflict with char $ac_func (); below.
33536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33537     <limits.h> exists even on freestanding compilers.  */
33538
33539 #ifdef __STDC__
33540 # include <limits.h>
33541 #else
33542 # include <assert.h>
33543 #endif
33544
33545 #undef $ac_func
33546
33547 /* Override any gcc2 internal prototype to avoid an error.  */
33548 #ifdef __cplusplus
33549 extern "C"
33550 {
33551 #endif
33552 /* We use char because int might match the return type of a gcc2
33553    builtin and then its argument prototype would still apply.  */
33554 char $ac_func ();
33555 /* The GNU C library defines this for functions which it implements
33556     to always fail with ENOSYS.  Some functions are actually named
33557     something starting with __ and the normal name is an alias.  */
33558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33559 choke me
33560 #else
33561 char (*f) () = $ac_func;
33562 #endif
33563 #ifdef __cplusplus
33564 }
33565 #endif
33566
33567 int
33568 main ()
33569 {
33570 return f != $ac_func;
33571   ;
33572   return 0;
33573 }
33574 _ACEOF
33575 rm -f conftest.$ac_objext conftest$ac_exeext
33576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33577   (eval $ac_link) 2>conftest.er1
33578   ac_status=$?
33579   grep -v '^ *+' conftest.er1 >conftest.err
33580   rm -f conftest.er1
33581   cat conftest.err >&5
33582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33583   (exit $ac_status); } &&
33584          { ac_try='test -z "$ac_c_werror_flag"
33585                          || test ! -s conftest.err'
33586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33587   (eval $ac_try) 2>&5
33588   ac_status=$?
33589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590   (exit $ac_status); }; } &&
33591          { ac_try='test -s conftest$ac_exeext'
33592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33593   (eval $ac_try) 2>&5
33594   ac_status=$?
33595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596   (exit $ac_status); }; }; then
33597   eval "$as_ac_var=yes"
33598 else
33599   echo "$as_me: failed program was:" >&5
33600 sed 's/^/| /' conftest.$ac_ext >&5
33601
33602 eval "$as_ac_var=no"
33603 fi
33604 rm -f conftest.err conftest.$ac_objext \
33605       conftest$ac_exeext conftest.$ac_ext
33606 fi
33607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33609 if test `eval echo '${'$as_ac_var'}'` = yes; then
33610   cat >>confdefs.h <<_ACEOF
33611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33612 _ACEOF
33613
33614 fi
33615 done
33616
33617     fi
33618   fi
33619
33620
33621
33622   echo "$as_me:$LINENO: checking for fpclass declaration" >&5
33623 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
33624   if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
33625     if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
33626   echo $ECHO_N "(cached) $ECHO_C" >&6
33627 else
33628
33629
33630
33631       ac_ext=cc
33632 ac_cpp='$CXXCPP $CPPFLAGS'
33633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33636
33637       cat >conftest.$ac_ext <<_ACEOF
33638 /* confdefs.h.  */
33639 _ACEOF
33640 cat confdefs.h >>conftest.$ac_ext
33641 cat >>conftest.$ac_ext <<_ACEOF
33642 /* end confdefs.h.  */
33643 #include <math.h>
33644                       #ifdef HAVE_IEEEFP_H
33645                       #include <ieeefp.h>
33646                       #endif
33647
33648 int
33649 main ()
33650 {
33651  fpclass(0);
33652   ;
33653   return 0;
33654 }
33655 _ACEOF
33656 rm -f conftest.$ac_objext
33657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33658   (eval $ac_compile) 2>conftest.er1
33659   ac_status=$?
33660   grep -v '^ *+' conftest.er1 >conftest.err
33661   rm -f conftest.er1
33662   cat conftest.err >&5
33663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33664   (exit $ac_status); } &&
33665          { ac_try='test -z "$ac_cxx_werror_flag"
33666                          || test ! -s conftest.err'
33667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33668   (eval $ac_try) 2>&5
33669   ac_status=$?
33670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671   (exit $ac_status); }; } &&
33672          { ac_try='test -s conftest.$ac_objext'
33673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33674   (eval $ac_try) 2>&5
33675   ac_status=$?
33676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33677   (exit $ac_status); }; }; then
33678   glibcxx_cv_func_fpclass_use=yes
33679 else
33680   echo "$as_me: failed program was:" >&5
33681 sed 's/^/| /' conftest.$ac_ext >&5
33682
33683 glibcxx_cv_func_fpclass_use=no
33684 fi
33685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33686       ac_ext=c
33687 ac_cpp='$CPP $CPPFLAGS'
33688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33691
33692
33693 fi
33694
33695   fi
33696   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
33697 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
33698
33699   if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
33700
33701 for ac_func in fpclass
33702 do
33703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33704 echo "$as_me:$LINENO: checking for $ac_func" >&5
33705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33706 if eval "test \"\${$as_ac_var+set}\" = set"; then
33707   echo $ECHO_N "(cached) $ECHO_C" >&6
33708 else
33709   if test x$gcc_no_link = xyes; then
33710   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33711 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33712    { (exit 1); exit 1; }; }
33713 fi
33714 cat >conftest.$ac_ext <<_ACEOF
33715 /* confdefs.h.  */
33716 _ACEOF
33717 cat confdefs.h >>conftest.$ac_ext
33718 cat >>conftest.$ac_ext <<_ACEOF
33719 /* end confdefs.h.  */
33720 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33722 #define $ac_func innocuous_$ac_func
33723
33724 /* System header to define __stub macros and hopefully few prototypes,
33725     which can conflict with char $ac_func (); below.
33726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33727     <limits.h> exists even on freestanding compilers.  */
33728
33729 #ifdef __STDC__
33730 # include <limits.h>
33731 #else
33732 # include <assert.h>
33733 #endif
33734
33735 #undef $ac_func
33736
33737 /* Override any gcc2 internal prototype to avoid an error.  */
33738 #ifdef __cplusplus
33739 extern "C"
33740 {
33741 #endif
33742 /* We use char because int might match the return type of a gcc2
33743    builtin and then its argument prototype would still apply.  */
33744 char $ac_func ();
33745 /* The GNU C library defines this for functions which it implements
33746     to always fail with ENOSYS.  Some functions are actually named
33747     something starting with __ and the normal name is an alias.  */
33748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33749 choke me
33750 #else
33751 char (*f) () = $ac_func;
33752 #endif
33753 #ifdef __cplusplus
33754 }
33755 #endif
33756
33757 int
33758 main ()
33759 {
33760 return f != $ac_func;
33761   ;
33762   return 0;
33763 }
33764 _ACEOF
33765 rm -f conftest.$ac_objext conftest$ac_exeext
33766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33767   (eval $ac_link) 2>conftest.er1
33768   ac_status=$?
33769   grep -v '^ *+' conftest.er1 >conftest.err
33770   rm -f conftest.er1
33771   cat conftest.err >&5
33772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33773   (exit $ac_status); } &&
33774          { ac_try='test -z "$ac_c_werror_flag"
33775                          || test ! -s conftest.err'
33776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33777   (eval $ac_try) 2>&5
33778   ac_status=$?
33779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33780   (exit $ac_status); }; } &&
33781          { ac_try='test -s conftest$ac_exeext'
33782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33783   (eval $ac_try) 2>&5
33784   ac_status=$?
33785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786   (exit $ac_status); }; }; then
33787   eval "$as_ac_var=yes"
33788 else
33789   echo "$as_me: failed program was:" >&5
33790 sed 's/^/| /' conftest.$ac_ext >&5
33791
33792 eval "$as_ac_var=no"
33793 fi
33794 rm -f conftest.err conftest.$ac_objext \
33795       conftest$ac_exeext conftest.$ac_ext
33796 fi
33797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33798 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33799 if test `eval echo '${'$as_ac_var'}'` = yes; then
33800   cat >>confdefs.h <<_ACEOF
33801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33802 _ACEOF
33803
33804 fi
33805 done
33806
33807   else
33808
33809   echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
33810 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
33811   if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
33812     if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
33813   echo $ECHO_N "(cached) $ECHO_C" >&6
33814 else
33815
33816
33817
33818       ac_ext=cc
33819 ac_cpp='$CXXCPP $CPPFLAGS'
33820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33823
33824       cat >conftest.$ac_ext <<_ACEOF
33825 /* confdefs.h.  */
33826 _ACEOF
33827 cat confdefs.h >>conftest.$ac_ext
33828 cat >>conftest.$ac_ext <<_ACEOF
33829 /* end confdefs.h.  */
33830 #include <math.h>
33831                       #ifdef HAVE_IEEEFP_H
33832                       #include <ieeefp.h>
33833                       #endif
33834
33835 int
33836 main ()
33837 {
33838  _fpclass(0);
33839   ;
33840   return 0;
33841 }
33842 _ACEOF
33843 rm -f conftest.$ac_objext
33844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33845   (eval $ac_compile) 2>conftest.er1
33846   ac_status=$?
33847   grep -v '^ *+' conftest.er1 >conftest.err
33848   rm -f conftest.er1
33849   cat conftest.err >&5
33850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33851   (exit $ac_status); } &&
33852          { ac_try='test -z "$ac_cxx_werror_flag"
33853                          || test ! -s conftest.err'
33854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33855   (eval $ac_try) 2>&5
33856   ac_status=$?
33857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33858   (exit $ac_status); }; } &&
33859          { ac_try='test -s conftest.$ac_objext'
33860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33861   (eval $ac_try) 2>&5
33862   ac_status=$?
33863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864   (exit $ac_status); }; }; then
33865   glibcxx_cv_func__fpclass_use=yes
33866 else
33867   echo "$as_me: failed program was:" >&5
33868 sed 's/^/| /' conftest.$ac_ext >&5
33869
33870 glibcxx_cv_func__fpclass_use=no
33871 fi
33872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33873       ac_ext=c
33874 ac_cpp='$CPP $CPPFLAGS'
33875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33878
33879
33880 fi
33881
33882   fi
33883   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
33884 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
33885
33886     if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
33887
33888 for ac_func in _fpclass
33889 do
33890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33891 echo "$as_me:$LINENO: checking for $ac_func" >&5
33892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33893 if eval "test \"\${$as_ac_var+set}\" = set"; then
33894   echo $ECHO_N "(cached) $ECHO_C" >&6
33895 else
33896   if test x$gcc_no_link = xyes; then
33897   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
33898 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
33899    { (exit 1); exit 1; }; }
33900 fi
33901 cat >conftest.$ac_ext <<_ACEOF
33902 /* confdefs.h.  */
33903 _ACEOF
33904 cat confdefs.h >>conftest.$ac_ext
33905 cat >>conftest.$ac_ext <<_ACEOF
33906 /* end confdefs.h.  */
33907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33908    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33909 #define $ac_func innocuous_$ac_func
33910
33911 /* System header to define __stub macros and hopefully few prototypes,
33912     which can conflict with char $ac_func (); below.
33913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33914     <limits.h> exists even on freestanding compilers.  */
33915
33916 #ifdef __STDC__
33917 # include <limits.h>
33918 #else
33919 # include <assert.h>
33920 #endif
33921
33922 #undef $ac_func
33923
33924 /* Override any gcc2 internal prototype to avoid an error.  */
33925 #ifdef __cplusplus
33926 extern "C"
33927 {
33928 #endif
33929 /* We use char because int might match the return type of a gcc2
33930    builtin and then its argument prototype would still apply.  */
33931 char $ac_func ();
33932 /* The GNU C library defines this for functions which it implements
33933     to always fail with ENOSYS.  Some functions are actually named
33934     something starting with __ and the normal name is an alias.  */
33935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33936 choke me
33937 #else
33938 char (*f) () = $ac_func;
33939 #endif
33940 #ifdef __cplusplus
33941 }
33942 #endif
33943
33944 int
33945 main ()
33946 {
33947 return f != $ac_func;
33948   ;
33949   return 0;
33950 }
33951 _ACEOF
33952 rm -f conftest.$ac_objext conftest$ac_exeext
33953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33954   (eval $ac_link) 2>conftest.er1
33955   ac_status=$?
33956   grep -v '^ *+' conftest.er1 >conftest.err
33957   rm -f conftest.er1
33958   cat conftest.err >&5
33959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33960   (exit $ac_status); } &&
33961          { ac_try='test -z "$ac_c_werror_flag"
33962                          || test ! -s conftest.err'
33963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33964   (eval $ac_try) 2>&5
33965   ac_status=$?
33966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33967   (exit $ac_status); }; } &&
33968          { ac_try='test -s conftest$ac_exeext'
33969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33970   (eval $ac_try) 2>&5
33971   ac_status=$?
33972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973   (exit $ac_status); }; }; then
33974   eval "$as_ac_var=yes"
33975 else
33976   echo "$as_me: failed program was:" >&5
33977 sed 's/^/| /' conftest.$ac_ext >&5
33978
33979 eval "$as_ac_var=no"
33980 fi
33981 rm -f conftest.err conftest.$ac_objext \
33982       conftest$ac_exeext conftest.$ac_ext
33983 fi
33984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33985 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33986 if test `eval echo '${'$as_ac_var'}'` = yes; then
33987   cat >>confdefs.h <<_ACEOF
33988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33989 _ACEOF
33990
33991 fi
33992 done
33993
33994     fi
33995   fi
33996
33997
33998
33999   echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
34000 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
34001   if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
34002     if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
34003   echo $ECHO_N "(cached) $ECHO_C" >&6
34004 else
34005
34006
34007
34008       ac_ext=cc
34009 ac_cpp='$CXXCPP $CPPFLAGS'
34010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34013
34014       cat >conftest.$ac_ext <<_ACEOF
34015 /* confdefs.h.  */
34016 _ACEOF
34017 cat confdefs.h >>conftest.$ac_ext
34018 cat >>conftest.$ac_ext <<_ACEOF
34019 /* end confdefs.h.  */
34020 #include <math.h>
34021                       #ifdef HAVE_IEEEFP_H
34022                       #include <ieeefp.h>
34023                       #endif
34024
34025 int
34026 main ()
34027 {
34028  qfpclass(0);
34029   ;
34030   return 0;
34031 }
34032 _ACEOF
34033 rm -f conftest.$ac_objext
34034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34035   (eval $ac_compile) 2>conftest.er1
34036   ac_status=$?
34037   grep -v '^ *+' conftest.er1 >conftest.err
34038   rm -f conftest.er1
34039   cat conftest.err >&5
34040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041   (exit $ac_status); } &&
34042          { ac_try='test -z "$ac_cxx_werror_flag"
34043                          || test ! -s conftest.err'
34044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34045   (eval $ac_try) 2>&5
34046   ac_status=$?
34047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048   (exit $ac_status); }; } &&
34049          { ac_try='test -s conftest.$ac_objext'
34050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34051   (eval $ac_try) 2>&5
34052   ac_status=$?
34053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34054   (exit $ac_status); }; }; then
34055   glibcxx_cv_func_qfpclass_use=yes
34056 else
34057   echo "$as_me: failed program was:" >&5
34058 sed 's/^/| /' conftest.$ac_ext >&5
34059
34060 glibcxx_cv_func_qfpclass_use=no
34061 fi
34062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34063       ac_ext=c
34064 ac_cpp='$CPP $CPPFLAGS'
34065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34068
34069
34070 fi
34071
34072   fi
34073   echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
34074 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
34075
34076   if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
34077
34078 for ac_func in qfpclass
34079 do
34080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34081 echo "$as_me:$LINENO: checking for $ac_func" >&5
34082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34083 if eval "test \"\${$as_ac_var+set}\" = set"; then
34084   echo $ECHO_N "(cached) $ECHO_C" >&6
34085 else
34086   if test x$gcc_no_link = xyes; then
34087   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34088 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34089    { (exit 1); exit 1; }; }
34090 fi
34091 cat >conftest.$ac_ext <<_ACEOF
34092 /* confdefs.h.  */
34093 _ACEOF
34094 cat confdefs.h >>conftest.$ac_ext
34095 cat >>conftest.$ac_ext <<_ACEOF
34096 /* end confdefs.h.  */
34097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34099 #define $ac_func innocuous_$ac_func
34100
34101 /* System header to define __stub macros and hopefully few prototypes,
34102     which can conflict with char $ac_func (); below.
34103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34104     <limits.h> exists even on freestanding compilers.  */
34105
34106 #ifdef __STDC__
34107 # include <limits.h>
34108 #else
34109 # include <assert.h>
34110 #endif
34111
34112 #undef $ac_func
34113
34114 /* Override any gcc2 internal prototype to avoid an error.  */
34115 #ifdef __cplusplus
34116 extern "C"
34117 {
34118 #endif
34119 /* We use char because int might match the return type of a gcc2
34120    builtin and then its argument prototype would still apply.  */
34121 char $ac_func ();
34122 /* The GNU C library defines this for functions which it implements
34123     to always fail with ENOSYS.  Some functions are actually named
34124     something starting with __ and the normal name is an alias.  */
34125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34126 choke me
34127 #else
34128 char (*f) () = $ac_func;
34129 #endif
34130 #ifdef __cplusplus
34131 }
34132 #endif
34133
34134 int
34135 main ()
34136 {
34137 return f != $ac_func;
34138   ;
34139   return 0;
34140 }
34141 _ACEOF
34142 rm -f conftest.$ac_objext conftest$ac_exeext
34143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34144   (eval $ac_link) 2>conftest.er1
34145   ac_status=$?
34146   grep -v '^ *+' conftest.er1 >conftest.err
34147   rm -f conftest.er1
34148   cat conftest.err >&5
34149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150   (exit $ac_status); } &&
34151          { ac_try='test -z "$ac_c_werror_flag"
34152                          || test ! -s conftest.err'
34153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34154   (eval $ac_try) 2>&5
34155   ac_status=$?
34156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157   (exit $ac_status); }; } &&
34158          { ac_try='test -s conftest$ac_exeext'
34159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34160   (eval $ac_try) 2>&5
34161   ac_status=$?
34162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163   (exit $ac_status); }; }; then
34164   eval "$as_ac_var=yes"
34165 else
34166   echo "$as_me: failed program was:" >&5
34167 sed 's/^/| /' conftest.$ac_ext >&5
34168
34169 eval "$as_ac_var=no"
34170 fi
34171 rm -f conftest.err conftest.$ac_objext \
34172       conftest$ac_exeext conftest.$ac_ext
34173 fi
34174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34176 if test `eval echo '${'$as_ac_var'}'` = yes; then
34177   cat >>confdefs.h <<_ACEOF
34178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34179 _ACEOF
34180
34181 fi
34182 done
34183
34184   else
34185
34186   echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
34187 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
34188   if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
34189     if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
34190   echo $ECHO_N "(cached) $ECHO_C" >&6
34191 else
34192
34193
34194
34195       ac_ext=cc
34196 ac_cpp='$CXXCPP $CPPFLAGS'
34197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34200
34201       cat >conftest.$ac_ext <<_ACEOF
34202 /* confdefs.h.  */
34203 _ACEOF
34204 cat confdefs.h >>conftest.$ac_ext
34205 cat >>conftest.$ac_ext <<_ACEOF
34206 /* end confdefs.h.  */
34207 #include <math.h>
34208                       #ifdef HAVE_IEEEFP_H
34209                       #include <ieeefp.h>
34210                       #endif
34211
34212 int
34213 main ()
34214 {
34215  _qfpclass(0);
34216   ;
34217   return 0;
34218 }
34219 _ACEOF
34220 rm -f conftest.$ac_objext
34221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34222   (eval $ac_compile) 2>conftest.er1
34223   ac_status=$?
34224   grep -v '^ *+' conftest.er1 >conftest.err
34225   rm -f conftest.er1
34226   cat conftest.err >&5
34227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228   (exit $ac_status); } &&
34229          { ac_try='test -z "$ac_cxx_werror_flag"
34230                          || test ! -s conftest.err'
34231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34232   (eval $ac_try) 2>&5
34233   ac_status=$?
34234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34235   (exit $ac_status); }; } &&
34236          { ac_try='test -s conftest.$ac_objext'
34237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34238   (eval $ac_try) 2>&5
34239   ac_status=$?
34240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34241   (exit $ac_status); }; }; then
34242   glibcxx_cv_func__qfpclass_use=yes
34243 else
34244   echo "$as_me: failed program was:" >&5
34245 sed 's/^/| /' conftest.$ac_ext >&5
34246
34247 glibcxx_cv_func__qfpclass_use=no
34248 fi
34249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34250       ac_ext=c
34251 ac_cpp='$CPP $CPPFLAGS'
34252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34255
34256
34257 fi
34258
34259   fi
34260   echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
34261 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
34262
34263     if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
34264
34265 for ac_func in _qfpclass
34266 do
34267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34268 echo "$as_me:$LINENO: checking for $ac_func" >&5
34269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34270 if eval "test \"\${$as_ac_var+set}\" = set"; then
34271   echo $ECHO_N "(cached) $ECHO_C" >&6
34272 else
34273   if test x$gcc_no_link = xyes; then
34274   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34275 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34276    { (exit 1); exit 1; }; }
34277 fi
34278 cat >conftest.$ac_ext <<_ACEOF
34279 /* confdefs.h.  */
34280 _ACEOF
34281 cat confdefs.h >>conftest.$ac_ext
34282 cat >>conftest.$ac_ext <<_ACEOF
34283 /* end confdefs.h.  */
34284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34286 #define $ac_func innocuous_$ac_func
34287
34288 /* System header to define __stub macros and hopefully few prototypes,
34289     which can conflict with char $ac_func (); below.
34290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34291     <limits.h> exists even on freestanding compilers.  */
34292
34293 #ifdef __STDC__
34294 # include <limits.h>
34295 #else
34296 # include <assert.h>
34297 #endif
34298
34299 #undef $ac_func
34300
34301 /* Override any gcc2 internal prototype to avoid an error.  */
34302 #ifdef __cplusplus
34303 extern "C"
34304 {
34305 #endif
34306 /* We use char because int might match the return type of a gcc2
34307    builtin and then its argument prototype would still apply.  */
34308 char $ac_func ();
34309 /* The GNU C library defines this for functions which it implements
34310     to always fail with ENOSYS.  Some functions are actually named
34311     something starting with __ and the normal name is an alias.  */
34312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34313 choke me
34314 #else
34315 char (*f) () = $ac_func;
34316 #endif
34317 #ifdef __cplusplus
34318 }
34319 #endif
34320
34321 int
34322 main ()
34323 {
34324 return f != $ac_func;
34325   ;
34326   return 0;
34327 }
34328 _ACEOF
34329 rm -f conftest.$ac_objext conftest$ac_exeext
34330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34331   (eval $ac_link) 2>conftest.er1
34332   ac_status=$?
34333   grep -v '^ *+' conftest.er1 >conftest.err
34334   rm -f conftest.er1
34335   cat conftest.err >&5
34336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337   (exit $ac_status); } &&
34338          { ac_try='test -z "$ac_c_werror_flag"
34339                          || test ! -s conftest.err'
34340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34341   (eval $ac_try) 2>&5
34342   ac_status=$?
34343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34344   (exit $ac_status); }; } &&
34345          { ac_try='test -s conftest$ac_exeext'
34346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34347   (eval $ac_try) 2>&5
34348   ac_status=$?
34349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34350   (exit $ac_status); }; }; then
34351   eval "$as_ac_var=yes"
34352 else
34353   echo "$as_me: failed program was:" >&5
34354 sed 's/^/| /' conftest.$ac_ext >&5
34355
34356 eval "$as_ac_var=no"
34357 fi
34358 rm -f conftest.err conftest.$ac_objext \
34359       conftest$ac_exeext conftest.$ac_ext
34360 fi
34361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34363 if test `eval echo '${'$as_ac_var'}'` = yes; then
34364   cat >>confdefs.h <<_ACEOF
34365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34366 _ACEOF
34367
34368 fi
34369 done
34370
34371     fi
34372   fi
34373
34374
34375
34376   echo "$as_me:$LINENO: checking for hypot declaration" >&5
34377 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
34378   if test x${glibcxx_cv_func_hypot_use+set} != xset; then
34379     if test "${glibcxx_cv_func_hypot_use+set}" = set; then
34380   echo $ECHO_N "(cached) $ECHO_C" >&6
34381 else
34382
34383
34384
34385       ac_ext=cc
34386 ac_cpp='$CXXCPP $CPPFLAGS'
34387 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34388 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34389 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34390
34391       cat >conftest.$ac_ext <<_ACEOF
34392 /* confdefs.h.  */
34393 _ACEOF
34394 cat confdefs.h >>conftest.$ac_ext
34395 cat >>conftest.$ac_ext <<_ACEOF
34396 /* end confdefs.h.  */
34397 #include <math.h>
34398 int
34399 main ()
34400 {
34401  hypot(0, 0);
34402   ;
34403   return 0;
34404 }
34405 _ACEOF
34406 rm -f conftest.$ac_objext
34407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34408   (eval $ac_compile) 2>conftest.er1
34409   ac_status=$?
34410   grep -v '^ *+' conftest.er1 >conftest.err
34411   rm -f conftest.er1
34412   cat conftest.err >&5
34413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34414   (exit $ac_status); } &&
34415          { ac_try='test -z "$ac_cxx_werror_flag"
34416                          || test ! -s conftest.err'
34417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34418   (eval $ac_try) 2>&5
34419   ac_status=$?
34420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34421   (exit $ac_status); }; } &&
34422          { ac_try='test -s conftest.$ac_objext'
34423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34424   (eval $ac_try) 2>&5
34425   ac_status=$?
34426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34427   (exit $ac_status); }; }; then
34428   glibcxx_cv_func_hypot_use=yes
34429 else
34430   echo "$as_me: failed program was:" >&5
34431 sed 's/^/| /' conftest.$ac_ext >&5
34432
34433 glibcxx_cv_func_hypot_use=no
34434 fi
34435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34436       ac_ext=c
34437 ac_cpp='$CPP $CPPFLAGS'
34438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34441
34442
34443 fi
34444
34445   fi
34446   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
34447 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
34448
34449   if test x$glibcxx_cv_func_hypot_use = x"yes"; then
34450
34451 for ac_func in hypot
34452 do
34453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34454 echo "$as_me:$LINENO: checking for $ac_func" >&5
34455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34456 if eval "test \"\${$as_ac_var+set}\" = set"; then
34457   echo $ECHO_N "(cached) $ECHO_C" >&6
34458 else
34459   if test x$gcc_no_link = xyes; then
34460   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34461 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34462    { (exit 1); exit 1; }; }
34463 fi
34464 cat >conftest.$ac_ext <<_ACEOF
34465 /* confdefs.h.  */
34466 _ACEOF
34467 cat confdefs.h >>conftest.$ac_ext
34468 cat >>conftest.$ac_ext <<_ACEOF
34469 /* end confdefs.h.  */
34470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34472 #define $ac_func innocuous_$ac_func
34473
34474 /* System header to define __stub macros and hopefully few prototypes,
34475     which can conflict with char $ac_func (); below.
34476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34477     <limits.h> exists even on freestanding compilers.  */
34478
34479 #ifdef __STDC__
34480 # include <limits.h>
34481 #else
34482 # include <assert.h>
34483 #endif
34484
34485 #undef $ac_func
34486
34487 /* Override any gcc2 internal prototype to avoid an error.  */
34488 #ifdef __cplusplus
34489 extern "C"
34490 {
34491 #endif
34492 /* We use char because int might match the return type of a gcc2
34493    builtin and then its argument prototype would still apply.  */
34494 char $ac_func ();
34495 /* The GNU C library defines this for functions which it implements
34496     to always fail with ENOSYS.  Some functions are actually named
34497     something starting with __ and the normal name is an alias.  */
34498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34499 choke me
34500 #else
34501 char (*f) () = $ac_func;
34502 #endif
34503 #ifdef __cplusplus
34504 }
34505 #endif
34506
34507 int
34508 main ()
34509 {
34510 return f != $ac_func;
34511   ;
34512   return 0;
34513 }
34514 _ACEOF
34515 rm -f conftest.$ac_objext conftest$ac_exeext
34516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34517   (eval $ac_link) 2>conftest.er1
34518   ac_status=$?
34519   grep -v '^ *+' conftest.er1 >conftest.err
34520   rm -f conftest.er1
34521   cat conftest.err >&5
34522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523   (exit $ac_status); } &&
34524          { ac_try='test -z "$ac_c_werror_flag"
34525                          || test ! -s conftest.err'
34526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34527   (eval $ac_try) 2>&5
34528   ac_status=$?
34529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530   (exit $ac_status); }; } &&
34531          { ac_try='test -s conftest$ac_exeext'
34532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34533   (eval $ac_try) 2>&5
34534   ac_status=$?
34535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34536   (exit $ac_status); }; }; then
34537   eval "$as_ac_var=yes"
34538 else
34539   echo "$as_me: failed program was:" >&5
34540 sed 's/^/| /' conftest.$ac_ext >&5
34541
34542 eval "$as_ac_var=no"
34543 fi
34544 rm -f conftest.err conftest.$ac_objext \
34545       conftest$ac_exeext conftest.$ac_ext
34546 fi
34547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34549 if test `eval echo '${'$as_ac_var'}'` = yes; then
34550   cat >>confdefs.h <<_ACEOF
34551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34552 _ACEOF
34553
34554 fi
34555 done
34556
34557   else
34558
34559   echo "$as_me:$LINENO: checking for _hypot declaration" >&5
34560 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
34561   if test x${glibcxx_cv_func__hypot_use+set} != xset; then
34562     if test "${glibcxx_cv_func__hypot_use+set}" = set; then
34563   echo $ECHO_N "(cached) $ECHO_C" >&6
34564 else
34565
34566
34567
34568       ac_ext=cc
34569 ac_cpp='$CXXCPP $CPPFLAGS'
34570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34573
34574       cat >conftest.$ac_ext <<_ACEOF
34575 /* confdefs.h.  */
34576 _ACEOF
34577 cat confdefs.h >>conftest.$ac_ext
34578 cat >>conftest.$ac_ext <<_ACEOF
34579 /* end confdefs.h.  */
34580 #include <math.h>
34581 int
34582 main ()
34583 {
34584  _hypot(0, 0);
34585   ;
34586   return 0;
34587 }
34588 _ACEOF
34589 rm -f conftest.$ac_objext
34590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34591   (eval $ac_compile) 2>conftest.er1
34592   ac_status=$?
34593   grep -v '^ *+' conftest.er1 >conftest.err
34594   rm -f conftest.er1
34595   cat conftest.err >&5
34596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597   (exit $ac_status); } &&
34598          { ac_try='test -z "$ac_cxx_werror_flag"
34599                          || test ! -s conftest.err'
34600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34601   (eval $ac_try) 2>&5
34602   ac_status=$?
34603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34604   (exit $ac_status); }; } &&
34605          { ac_try='test -s conftest.$ac_objext'
34606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34607   (eval $ac_try) 2>&5
34608   ac_status=$?
34609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610   (exit $ac_status); }; }; then
34611   glibcxx_cv_func__hypot_use=yes
34612 else
34613   echo "$as_me: failed program was:" >&5
34614 sed 's/^/| /' conftest.$ac_ext >&5
34615
34616 glibcxx_cv_func__hypot_use=no
34617 fi
34618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34619       ac_ext=c
34620 ac_cpp='$CPP $CPPFLAGS'
34621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34624
34625
34626 fi
34627
34628   fi
34629   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
34630 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
34631
34632     if test x$glibcxx_cv_func__hypot_use = x"yes"; then
34633
34634 for ac_func in _hypot
34635 do
34636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34637 echo "$as_me:$LINENO: checking for $ac_func" >&5
34638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34639 if eval "test \"\${$as_ac_var+set}\" = set"; then
34640   echo $ECHO_N "(cached) $ECHO_C" >&6
34641 else
34642   if test x$gcc_no_link = xyes; then
34643   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34644 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34645    { (exit 1); exit 1; }; }
34646 fi
34647 cat >conftest.$ac_ext <<_ACEOF
34648 /* confdefs.h.  */
34649 _ACEOF
34650 cat confdefs.h >>conftest.$ac_ext
34651 cat >>conftest.$ac_ext <<_ACEOF
34652 /* end confdefs.h.  */
34653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34655 #define $ac_func innocuous_$ac_func
34656
34657 /* System header to define __stub macros and hopefully few prototypes,
34658     which can conflict with char $ac_func (); below.
34659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34660     <limits.h> exists even on freestanding compilers.  */
34661
34662 #ifdef __STDC__
34663 # include <limits.h>
34664 #else
34665 # include <assert.h>
34666 #endif
34667
34668 #undef $ac_func
34669
34670 /* Override any gcc2 internal prototype to avoid an error.  */
34671 #ifdef __cplusplus
34672 extern "C"
34673 {
34674 #endif
34675 /* We use char because int might match the return type of a gcc2
34676    builtin and then its argument prototype would still apply.  */
34677 char $ac_func ();
34678 /* The GNU C library defines this for functions which it implements
34679     to always fail with ENOSYS.  Some functions are actually named
34680     something starting with __ and the normal name is an alias.  */
34681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34682 choke me
34683 #else
34684 char (*f) () = $ac_func;
34685 #endif
34686 #ifdef __cplusplus
34687 }
34688 #endif
34689
34690 int
34691 main ()
34692 {
34693 return f != $ac_func;
34694   ;
34695   return 0;
34696 }
34697 _ACEOF
34698 rm -f conftest.$ac_objext conftest$ac_exeext
34699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34700   (eval $ac_link) 2>conftest.er1
34701   ac_status=$?
34702   grep -v '^ *+' conftest.er1 >conftest.err
34703   rm -f conftest.er1
34704   cat conftest.err >&5
34705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34706   (exit $ac_status); } &&
34707          { ac_try='test -z "$ac_c_werror_flag"
34708                          || test ! -s conftest.err'
34709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34710   (eval $ac_try) 2>&5
34711   ac_status=$?
34712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34713   (exit $ac_status); }; } &&
34714          { ac_try='test -s conftest$ac_exeext'
34715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34716   (eval $ac_try) 2>&5
34717   ac_status=$?
34718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719   (exit $ac_status); }; }; then
34720   eval "$as_ac_var=yes"
34721 else
34722   echo "$as_me: failed program was:" >&5
34723 sed 's/^/| /' conftest.$ac_ext >&5
34724
34725 eval "$as_ac_var=no"
34726 fi
34727 rm -f conftest.err conftest.$ac_objext \
34728       conftest$ac_exeext conftest.$ac_ext
34729 fi
34730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34732 if test `eval echo '${'$as_ac_var'}'` = yes; then
34733   cat >>confdefs.h <<_ACEOF
34734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34735 _ACEOF
34736
34737 fi
34738 done
34739
34740     fi
34741   fi
34742
34743
34744
34745   echo "$as_me:$LINENO: checking for float trig functions" >&5
34746 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
34747   if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
34748   echo $ECHO_N "(cached) $ECHO_C" >&6
34749 else
34750
34751
34752
34753     ac_ext=cc
34754 ac_cpp='$CXXCPP $CPPFLAGS'
34755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34758
34759     cat >conftest.$ac_ext <<_ACEOF
34760 /* confdefs.h.  */
34761 _ACEOF
34762 cat confdefs.h >>conftest.$ac_ext
34763 cat >>conftest.$ac_ext <<_ACEOF
34764 /* end confdefs.h.  */
34765 #include <math.h>
34766 int
34767 main ()
34768 {
34769  `for x in acosf asinf atanf \
34770                                           cosf sinf tanf \
34771                                           coshf sinhf tanhf; do echo "$x (0);"; done`
34772   ;
34773   return 0;
34774 }
34775 _ACEOF
34776 rm -f conftest.$ac_objext
34777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34778   (eval $ac_compile) 2>conftest.er1
34779   ac_status=$?
34780   grep -v '^ *+' conftest.er1 >conftest.err
34781   rm -f conftest.er1
34782   cat conftest.err >&5
34783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784   (exit $ac_status); } &&
34785          { ac_try='test -z "$ac_cxx_werror_flag"
34786                          || test ! -s conftest.err'
34787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34788   (eval $ac_try) 2>&5
34789   ac_status=$?
34790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791   (exit $ac_status); }; } &&
34792          { ac_try='test -s conftest.$ac_objext'
34793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34794   (eval $ac_try) 2>&5
34795   ac_status=$?
34796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797   (exit $ac_status); }; }; then
34798   glibcxx_cv_func_float_trig_use=yes
34799 else
34800   echo "$as_me: failed program was:" >&5
34801 sed 's/^/| /' conftest.$ac_ext >&5
34802
34803 glibcxx_cv_func_float_trig_use=no
34804 fi
34805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34806     ac_ext=c
34807 ac_cpp='$CPP $CPPFLAGS'
34808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34811
34812 fi
34813
34814   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
34815 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
34816   if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
34817
34818
34819
34820
34821
34822
34823
34824
34825
34826 for ac_func in acosf asinf atanf \
34827                                           cosf sinf tanf \
34828                                           coshf sinhf tanhf
34829 do
34830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34831 echo "$as_me:$LINENO: checking for $ac_func" >&5
34832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34833 if eval "test \"\${$as_ac_var+set}\" = set"; then
34834   echo $ECHO_N "(cached) $ECHO_C" >&6
34835 else
34836   if test x$gcc_no_link = xyes; then
34837   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
34838 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
34839    { (exit 1); exit 1; }; }
34840 fi
34841 cat >conftest.$ac_ext <<_ACEOF
34842 /* confdefs.h.  */
34843 _ACEOF
34844 cat confdefs.h >>conftest.$ac_ext
34845 cat >>conftest.$ac_ext <<_ACEOF
34846 /* end confdefs.h.  */
34847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34849 #define $ac_func innocuous_$ac_func
34850
34851 /* System header to define __stub macros and hopefully few prototypes,
34852     which can conflict with char $ac_func (); below.
34853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34854     <limits.h> exists even on freestanding compilers.  */
34855
34856 #ifdef __STDC__
34857 # include <limits.h>
34858 #else
34859 # include <assert.h>
34860 #endif
34861
34862 #undef $ac_func
34863
34864 /* Override any gcc2 internal prototype to avoid an error.  */
34865 #ifdef __cplusplus
34866 extern "C"
34867 {
34868 #endif
34869 /* We use char because int might match the return type of a gcc2
34870    builtin and then its argument prototype would still apply.  */
34871 char $ac_func ();
34872 /* The GNU C library defines this for functions which it implements
34873     to always fail with ENOSYS.  Some functions are actually named
34874     something starting with __ and the normal name is an alias.  */
34875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34876 choke me
34877 #else
34878 char (*f) () = $ac_func;
34879 #endif
34880 #ifdef __cplusplus
34881 }
34882 #endif
34883
34884 int
34885 main ()
34886 {
34887 return f != $ac_func;
34888   ;
34889   return 0;
34890 }
34891 _ACEOF
34892 rm -f conftest.$ac_objext conftest$ac_exeext
34893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34894   (eval $ac_link) 2>conftest.er1
34895   ac_status=$?
34896   grep -v '^ *+' conftest.er1 >conftest.err
34897   rm -f conftest.er1
34898   cat conftest.err >&5
34899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34900   (exit $ac_status); } &&
34901          { ac_try='test -z "$ac_c_werror_flag"
34902                          || test ! -s conftest.err'
34903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34904   (eval $ac_try) 2>&5
34905   ac_status=$?
34906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34907   (exit $ac_status); }; } &&
34908          { ac_try='test -s conftest$ac_exeext'
34909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34910   (eval $ac_try) 2>&5
34911   ac_status=$?
34912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34913   (exit $ac_status); }; }; then
34914   eval "$as_ac_var=yes"
34915 else
34916   echo "$as_me: failed program was:" >&5
34917 sed 's/^/| /' conftest.$ac_ext >&5
34918
34919 eval "$as_ac_var=no"
34920 fi
34921 rm -f conftest.err conftest.$ac_objext \
34922       conftest$ac_exeext conftest.$ac_ext
34923 fi
34924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34926 if test `eval echo '${'$as_ac_var'}'` = yes; then
34927   cat >>confdefs.h <<_ACEOF
34928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34929 _ACEOF
34930
34931 fi
34932 done
34933
34934   fi
34935
34936
34937   echo "$as_me:$LINENO: checking for float round functions" >&5
34938 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
34939   if test "${glibcxx_cv_func_float_round_use+set}" = set; then
34940   echo $ECHO_N "(cached) $ECHO_C" >&6
34941 else
34942
34943
34944
34945     ac_ext=cc
34946 ac_cpp='$CXXCPP $CPPFLAGS'
34947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34950
34951     cat >conftest.$ac_ext <<_ACEOF
34952 /* confdefs.h.  */
34953 _ACEOF
34954 cat confdefs.h >>conftest.$ac_ext
34955 cat >>conftest.$ac_ext <<_ACEOF
34956 /* end confdefs.h.  */
34957 #include <math.h>
34958 int
34959 main ()
34960 {
34961  `for x in ceilf floorf; do echo "$x (0);"; done`
34962   ;
34963   return 0;
34964 }
34965 _ACEOF
34966 rm -f conftest.$ac_objext
34967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34968   (eval $ac_compile) 2>conftest.er1
34969   ac_status=$?
34970   grep -v '^ *+' conftest.er1 >conftest.err
34971   rm -f conftest.er1
34972   cat conftest.err >&5
34973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974   (exit $ac_status); } &&
34975          { ac_try='test -z "$ac_cxx_werror_flag"
34976                          || test ! -s conftest.err'
34977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34978   (eval $ac_try) 2>&5
34979   ac_status=$?
34980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34981   (exit $ac_status); }; } &&
34982          { ac_try='test -s conftest.$ac_objext'
34983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34984   (eval $ac_try) 2>&5
34985   ac_status=$?
34986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34987   (exit $ac_status); }; }; then
34988   glibcxx_cv_func_float_round_use=yes
34989 else
34990   echo "$as_me: failed program was:" >&5
34991 sed 's/^/| /' conftest.$ac_ext >&5
34992
34993 glibcxx_cv_func_float_round_use=no
34994 fi
34995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34996     ac_ext=c
34997 ac_cpp='$CPP $CPPFLAGS'
34998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35001
35002 fi
35003
35004   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
35005 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
35006   if test x$glibcxx_cv_func_float_round_use = x"yes"; then
35007
35008
35009 for ac_func in ceilf floorf
35010 do
35011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35012 echo "$as_me:$LINENO: checking for $ac_func" >&5
35013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35014 if eval "test \"\${$as_ac_var+set}\" = set"; then
35015   echo $ECHO_N "(cached) $ECHO_C" >&6
35016 else
35017   if test x$gcc_no_link = xyes; then
35018   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35019 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35020    { (exit 1); exit 1; }; }
35021 fi
35022 cat >conftest.$ac_ext <<_ACEOF
35023 /* confdefs.h.  */
35024 _ACEOF
35025 cat confdefs.h >>conftest.$ac_ext
35026 cat >>conftest.$ac_ext <<_ACEOF
35027 /* end confdefs.h.  */
35028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35030 #define $ac_func innocuous_$ac_func
35031
35032 /* System header to define __stub macros and hopefully few prototypes,
35033     which can conflict with char $ac_func (); below.
35034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35035     <limits.h> exists even on freestanding compilers.  */
35036
35037 #ifdef __STDC__
35038 # include <limits.h>
35039 #else
35040 # include <assert.h>
35041 #endif
35042
35043 #undef $ac_func
35044
35045 /* Override any gcc2 internal prototype to avoid an error.  */
35046 #ifdef __cplusplus
35047 extern "C"
35048 {
35049 #endif
35050 /* We use char because int might match the return type of a gcc2
35051    builtin and then its argument prototype would still apply.  */
35052 char $ac_func ();
35053 /* The GNU C library defines this for functions which it implements
35054     to always fail with ENOSYS.  Some functions are actually named
35055     something starting with __ and the normal name is an alias.  */
35056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35057 choke me
35058 #else
35059 char (*f) () = $ac_func;
35060 #endif
35061 #ifdef __cplusplus
35062 }
35063 #endif
35064
35065 int
35066 main ()
35067 {
35068 return f != $ac_func;
35069   ;
35070   return 0;
35071 }
35072 _ACEOF
35073 rm -f conftest.$ac_objext conftest$ac_exeext
35074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35075   (eval $ac_link) 2>conftest.er1
35076   ac_status=$?
35077   grep -v '^ *+' conftest.er1 >conftest.err
35078   rm -f conftest.er1
35079   cat conftest.err >&5
35080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081   (exit $ac_status); } &&
35082          { ac_try='test -z "$ac_c_werror_flag"
35083                          || test ! -s conftest.err'
35084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35085   (eval $ac_try) 2>&5
35086   ac_status=$?
35087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35088   (exit $ac_status); }; } &&
35089          { ac_try='test -s conftest$ac_exeext'
35090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35091   (eval $ac_try) 2>&5
35092   ac_status=$?
35093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094   (exit $ac_status); }; }; then
35095   eval "$as_ac_var=yes"
35096 else
35097   echo "$as_me: failed program was:" >&5
35098 sed 's/^/| /' conftest.$ac_ext >&5
35099
35100 eval "$as_ac_var=no"
35101 fi
35102 rm -f conftest.err conftest.$ac_objext \
35103       conftest$ac_exeext conftest.$ac_ext
35104 fi
35105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35107 if test `eval echo '${'$as_ac_var'}'` = yes; then
35108   cat >>confdefs.h <<_ACEOF
35109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35110 _ACEOF
35111
35112 fi
35113 done
35114
35115   fi
35116
35117
35118
35119   echo "$as_me:$LINENO: checking for expf declaration" >&5
35120 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
35121   if test x${glibcxx_cv_func_expf_use+set} != xset; then
35122     if test "${glibcxx_cv_func_expf_use+set}" = set; then
35123   echo $ECHO_N "(cached) $ECHO_C" >&6
35124 else
35125
35126
35127
35128       ac_ext=cc
35129 ac_cpp='$CXXCPP $CPPFLAGS'
35130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35133
35134       cat >conftest.$ac_ext <<_ACEOF
35135 /* confdefs.h.  */
35136 _ACEOF
35137 cat confdefs.h >>conftest.$ac_ext
35138 cat >>conftest.$ac_ext <<_ACEOF
35139 /* end confdefs.h.  */
35140 #include <math.h>
35141                       #ifdef HAVE_IEEEFP_H
35142                       #include <ieeefp.h>
35143                       #endif
35144
35145 int
35146 main ()
35147 {
35148  expf(0);
35149   ;
35150   return 0;
35151 }
35152 _ACEOF
35153 rm -f conftest.$ac_objext
35154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35155   (eval $ac_compile) 2>conftest.er1
35156   ac_status=$?
35157   grep -v '^ *+' conftest.er1 >conftest.err
35158   rm -f conftest.er1
35159   cat conftest.err >&5
35160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161   (exit $ac_status); } &&
35162          { ac_try='test -z "$ac_cxx_werror_flag"
35163                          || test ! -s conftest.err'
35164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35165   (eval $ac_try) 2>&5
35166   ac_status=$?
35167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35168   (exit $ac_status); }; } &&
35169          { ac_try='test -s conftest.$ac_objext'
35170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35171   (eval $ac_try) 2>&5
35172   ac_status=$?
35173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174   (exit $ac_status); }; }; then
35175   glibcxx_cv_func_expf_use=yes
35176 else
35177   echo "$as_me: failed program was:" >&5
35178 sed 's/^/| /' conftest.$ac_ext >&5
35179
35180 glibcxx_cv_func_expf_use=no
35181 fi
35182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35183       ac_ext=c
35184 ac_cpp='$CPP $CPPFLAGS'
35185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35188
35189
35190 fi
35191
35192   fi
35193   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
35194 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
35195
35196   if test x$glibcxx_cv_func_expf_use = x"yes"; then
35197
35198 for ac_func in expf
35199 do
35200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35201 echo "$as_me:$LINENO: checking for $ac_func" >&5
35202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35203 if eval "test \"\${$as_ac_var+set}\" = set"; then
35204   echo $ECHO_N "(cached) $ECHO_C" >&6
35205 else
35206   if test x$gcc_no_link = xyes; then
35207   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35208 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35209    { (exit 1); exit 1; }; }
35210 fi
35211 cat >conftest.$ac_ext <<_ACEOF
35212 /* confdefs.h.  */
35213 _ACEOF
35214 cat confdefs.h >>conftest.$ac_ext
35215 cat >>conftest.$ac_ext <<_ACEOF
35216 /* end confdefs.h.  */
35217 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35218    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35219 #define $ac_func innocuous_$ac_func
35220
35221 /* System header to define __stub macros and hopefully few prototypes,
35222     which can conflict with char $ac_func (); below.
35223     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35224     <limits.h> exists even on freestanding compilers.  */
35225
35226 #ifdef __STDC__
35227 # include <limits.h>
35228 #else
35229 # include <assert.h>
35230 #endif
35231
35232 #undef $ac_func
35233
35234 /* Override any gcc2 internal prototype to avoid an error.  */
35235 #ifdef __cplusplus
35236 extern "C"
35237 {
35238 #endif
35239 /* We use char because int might match the return type of a gcc2
35240    builtin and then its argument prototype would still apply.  */
35241 char $ac_func ();
35242 /* The GNU C library defines this for functions which it implements
35243     to always fail with ENOSYS.  Some functions are actually named
35244     something starting with __ and the normal name is an alias.  */
35245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35246 choke me
35247 #else
35248 char (*f) () = $ac_func;
35249 #endif
35250 #ifdef __cplusplus
35251 }
35252 #endif
35253
35254 int
35255 main ()
35256 {
35257 return f != $ac_func;
35258   ;
35259   return 0;
35260 }
35261 _ACEOF
35262 rm -f conftest.$ac_objext conftest$ac_exeext
35263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35264   (eval $ac_link) 2>conftest.er1
35265   ac_status=$?
35266   grep -v '^ *+' conftest.er1 >conftest.err
35267   rm -f conftest.er1
35268   cat conftest.err >&5
35269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35270   (exit $ac_status); } &&
35271          { ac_try='test -z "$ac_c_werror_flag"
35272                          || test ! -s conftest.err'
35273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35274   (eval $ac_try) 2>&5
35275   ac_status=$?
35276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277   (exit $ac_status); }; } &&
35278          { ac_try='test -s conftest$ac_exeext'
35279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35280   (eval $ac_try) 2>&5
35281   ac_status=$?
35282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283   (exit $ac_status); }; }; then
35284   eval "$as_ac_var=yes"
35285 else
35286   echo "$as_me: failed program was:" >&5
35287 sed 's/^/| /' conftest.$ac_ext >&5
35288
35289 eval "$as_ac_var=no"
35290 fi
35291 rm -f conftest.err conftest.$ac_objext \
35292       conftest$ac_exeext conftest.$ac_ext
35293 fi
35294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35295 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35296 if test `eval echo '${'$as_ac_var'}'` = yes; then
35297   cat >>confdefs.h <<_ACEOF
35298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35299 _ACEOF
35300
35301 fi
35302 done
35303
35304   else
35305
35306   echo "$as_me:$LINENO: checking for _expf declaration" >&5
35307 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
35308   if test x${glibcxx_cv_func__expf_use+set} != xset; then
35309     if test "${glibcxx_cv_func__expf_use+set}" = set; then
35310   echo $ECHO_N "(cached) $ECHO_C" >&6
35311 else
35312
35313
35314
35315       ac_ext=cc
35316 ac_cpp='$CXXCPP $CPPFLAGS'
35317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35320
35321       cat >conftest.$ac_ext <<_ACEOF
35322 /* confdefs.h.  */
35323 _ACEOF
35324 cat confdefs.h >>conftest.$ac_ext
35325 cat >>conftest.$ac_ext <<_ACEOF
35326 /* end confdefs.h.  */
35327 #include <math.h>
35328                       #ifdef HAVE_IEEEFP_H
35329                       #include <ieeefp.h>
35330                       #endif
35331
35332 int
35333 main ()
35334 {
35335  _expf(0);
35336   ;
35337   return 0;
35338 }
35339 _ACEOF
35340 rm -f conftest.$ac_objext
35341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35342   (eval $ac_compile) 2>conftest.er1
35343   ac_status=$?
35344   grep -v '^ *+' conftest.er1 >conftest.err
35345   rm -f conftest.er1
35346   cat conftest.err >&5
35347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35348   (exit $ac_status); } &&
35349          { ac_try='test -z "$ac_cxx_werror_flag"
35350                          || test ! -s conftest.err'
35351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35352   (eval $ac_try) 2>&5
35353   ac_status=$?
35354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35355   (exit $ac_status); }; } &&
35356          { ac_try='test -s conftest.$ac_objext'
35357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35358   (eval $ac_try) 2>&5
35359   ac_status=$?
35360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35361   (exit $ac_status); }; }; then
35362   glibcxx_cv_func__expf_use=yes
35363 else
35364   echo "$as_me: failed program was:" >&5
35365 sed 's/^/| /' conftest.$ac_ext >&5
35366
35367 glibcxx_cv_func__expf_use=no
35368 fi
35369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35370       ac_ext=c
35371 ac_cpp='$CPP $CPPFLAGS'
35372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35375
35376
35377 fi
35378
35379   fi
35380   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
35381 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
35382
35383     if test x$glibcxx_cv_func__expf_use = x"yes"; then
35384
35385 for ac_func in _expf
35386 do
35387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35388 echo "$as_me:$LINENO: checking for $ac_func" >&5
35389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35390 if eval "test \"\${$as_ac_var+set}\" = set"; then
35391   echo $ECHO_N "(cached) $ECHO_C" >&6
35392 else
35393   if test x$gcc_no_link = xyes; then
35394   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35395 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35396    { (exit 1); exit 1; }; }
35397 fi
35398 cat >conftest.$ac_ext <<_ACEOF
35399 /* confdefs.h.  */
35400 _ACEOF
35401 cat confdefs.h >>conftest.$ac_ext
35402 cat >>conftest.$ac_ext <<_ACEOF
35403 /* end confdefs.h.  */
35404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35406 #define $ac_func innocuous_$ac_func
35407
35408 /* System header to define __stub macros and hopefully few prototypes,
35409     which can conflict with char $ac_func (); below.
35410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35411     <limits.h> exists even on freestanding compilers.  */
35412
35413 #ifdef __STDC__
35414 # include <limits.h>
35415 #else
35416 # include <assert.h>
35417 #endif
35418
35419 #undef $ac_func
35420
35421 /* Override any gcc2 internal prototype to avoid an error.  */
35422 #ifdef __cplusplus
35423 extern "C"
35424 {
35425 #endif
35426 /* We use char because int might match the return type of a gcc2
35427    builtin and then its argument prototype would still apply.  */
35428 char $ac_func ();
35429 /* The GNU C library defines this for functions which it implements
35430     to always fail with ENOSYS.  Some functions are actually named
35431     something starting with __ and the normal name is an alias.  */
35432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35433 choke me
35434 #else
35435 char (*f) () = $ac_func;
35436 #endif
35437 #ifdef __cplusplus
35438 }
35439 #endif
35440
35441 int
35442 main ()
35443 {
35444 return f != $ac_func;
35445   ;
35446   return 0;
35447 }
35448 _ACEOF
35449 rm -f conftest.$ac_objext conftest$ac_exeext
35450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35451   (eval $ac_link) 2>conftest.er1
35452   ac_status=$?
35453   grep -v '^ *+' conftest.er1 >conftest.err
35454   rm -f conftest.er1
35455   cat conftest.err >&5
35456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35457   (exit $ac_status); } &&
35458          { ac_try='test -z "$ac_c_werror_flag"
35459                          || test ! -s conftest.err'
35460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35461   (eval $ac_try) 2>&5
35462   ac_status=$?
35463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35464   (exit $ac_status); }; } &&
35465          { ac_try='test -s conftest$ac_exeext'
35466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35467   (eval $ac_try) 2>&5
35468   ac_status=$?
35469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35470   (exit $ac_status); }; }; then
35471   eval "$as_ac_var=yes"
35472 else
35473   echo "$as_me: failed program was:" >&5
35474 sed 's/^/| /' conftest.$ac_ext >&5
35475
35476 eval "$as_ac_var=no"
35477 fi
35478 rm -f conftest.err conftest.$ac_objext \
35479       conftest$ac_exeext conftest.$ac_ext
35480 fi
35481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35483 if test `eval echo '${'$as_ac_var'}'` = yes; then
35484   cat >>confdefs.h <<_ACEOF
35485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35486 _ACEOF
35487
35488 fi
35489 done
35490
35491     fi
35492   fi
35493
35494
35495
35496   echo "$as_me:$LINENO: checking for isnanf declaration" >&5
35497 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
35498   if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
35499     if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
35500   echo $ECHO_N "(cached) $ECHO_C" >&6
35501 else
35502
35503
35504
35505       ac_ext=cc
35506 ac_cpp='$CXXCPP $CPPFLAGS'
35507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35510
35511       cat >conftest.$ac_ext <<_ACEOF
35512 /* confdefs.h.  */
35513 _ACEOF
35514 cat confdefs.h >>conftest.$ac_ext
35515 cat >>conftest.$ac_ext <<_ACEOF
35516 /* end confdefs.h.  */
35517 #include <math.h>
35518                       #ifdef HAVE_IEEEFP_H
35519                       #include <ieeefp.h>
35520                       #endif
35521
35522 int
35523 main ()
35524 {
35525  isnanf(0);
35526   ;
35527   return 0;
35528 }
35529 _ACEOF
35530 rm -f conftest.$ac_objext
35531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35532   (eval $ac_compile) 2>conftest.er1
35533   ac_status=$?
35534   grep -v '^ *+' conftest.er1 >conftest.err
35535   rm -f conftest.er1
35536   cat conftest.err >&5
35537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35538   (exit $ac_status); } &&
35539          { ac_try='test -z "$ac_cxx_werror_flag"
35540                          || test ! -s conftest.err'
35541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35542   (eval $ac_try) 2>&5
35543   ac_status=$?
35544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35545   (exit $ac_status); }; } &&
35546          { ac_try='test -s conftest.$ac_objext'
35547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35548   (eval $ac_try) 2>&5
35549   ac_status=$?
35550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35551   (exit $ac_status); }; }; then
35552   glibcxx_cv_func_isnanf_use=yes
35553 else
35554   echo "$as_me: failed program was:" >&5
35555 sed 's/^/| /' conftest.$ac_ext >&5
35556
35557 glibcxx_cv_func_isnanf_use=no
35558 fi
35559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35560       ac_ext=c
35561 ac_cpp='$CPP $CPPFLAGS'
35562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35565
35566
35567 fi
35568
35569   fi
35570   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
35571 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
35572
35573   if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
35574
35575 for ac_func in isnanf
35576 do
35577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35578 echo "$as_me:$LINENO: checking for $ac_func" >&5
35579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35580 if eval "test \"\${$as_ac_var+set}\" = set"; then
35581   echo $ECHO_N "(cached) $ECHO_C" >&6
35582 else
35583   if test x$gcc_no_link = xyes; then
35584   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35586    { (exit 1); exit 1; }; }
35587 fi
35588 cat >conftest.$ac_ext <<_ACEOF
35589 /* confdefs.h.  */
35590 _ACEOF
35591 cat confdefs.h >>conftest.$ac_ext
35592 cat >>conftest.$ac_ext <<_ACEOF
35593 /* end confdefs.h.  */
35594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35596 #define $ac_func innocuous_$ac_func
35597
35598 /* System header to define __stub macros and hopefully few prototypes,
35599     which can conflict with char $ac_func (); below.
35600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35601     <limits.h> exists even on freestanding compilers.  */
35602
35603 #ifdef __STDC__
35604 # include <limits.h>
35605 #else
35606 # include <assert.h>
35607 #endif
35608
35609 #undef $ac_func
35610
35611 /* Override any gcc2 internal prototype to avoid an error.  */
35612 #ifdef __cplusplus
35613 extern "C"
35614 {
35615 #endif
35616 /* We use char because int might match the return type of a gcc2
35617    builtin and then its argument prototype would still apply.  */
35618 char $ac_func ();
35619 /* The GNU C library defines this for functions which it implements
35620     to always fail with ENOSYS.  Some functions are actually named
35621     something starting with __ and the normal name is an alias.  */
35622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35623 choke me
35624 #else
35625 char (*f) () = $ac_func;
35626 #endif
35627 #ifdef __cplusplus
35628 }
35629 #endif
35630
35631 int
35632 main ()
35633 {
35634 return f != $ac_func;
35635   ;
35636   return 0;
35637 }
35638 _ACEOF
35639 rm -f conftest.$ac_objext conftest$ac_exeext
35640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35641   (eval $ac_link) 2>conftest.er1
35642   ac_status=$?
35643   grep -v '^ *+' conftest.er1 >conftest.err
35644   rm -f conftest.er1
35645   cat conftest.err >&5
35646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35647   (exit $ac_status); } &&
35648          { ac_try='test -z "$ac_c_werror_flag"
35649                          || test ! -s conftest.err'
35650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35651   (eval $ac_try) 2>&5
35652   ac_status=$?
35653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654   (exit $ac_status); }; } &&
35655          { ac_try='test -s conftest$ac_exeext'
35656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35657   (eval $ac_try) 2>&5
35658   ac_status=$?
35659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660   (exit $ac_status); }; }; then
35661   eval "$as_ac_var=yes"
35662 else
35663   echo "$as_me: failed program was:" >&5
35664 sed 's/^/| /' conftest.$ac_ext >&5
35665
35666 eval "$as_ac_var=no"
35667 fi
35668 rm -f conftest.err conftest.$ac_objext \
35669       conftest$ac_exeext conftest.$ac_ext
35670 fi
35671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35673 if test `eval echo '${'$as_ac_var'}'` = yes; then
35674   cat >>confdefs.h <<_ACEOF
35675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35676 _ACEOF
35677
35678 fi
35679 done
35680
35681   else
35682
35683   echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
35684 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
35685   if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
35686     if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
35687   echo $ECHO_N "(cached) $ECHO_C" >&6
35688 else
35689
35690
35691
35692       ac_ext=cc
35693 ac_cpp='$CXXCPP $CPPFLAGS'
35694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35697
35698       cat >conftest.$ac_ext <<_ACEOF
35699 /* confdefs.h.  */
35700 _ACEOF
35701 cat confdefs.h >>conftest.$ac_ext
35702 cat >>conftest.$ac_ext <<_ACEOF
35703 /* end confdefs.h.  */
35704 #include <math.h>
35705                       #ifdef HAVE_IEEEFP_H
35706                       #include <ieeefp.h>
35707                       #endif
35708
35709 int
35710 main ()
35711 {
35712  _isnanf(0);
35713   ;
35714   return 0;
35715 }
35716 _ACEOF
35717 rm -f conftest.$ac_objext
35718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35719   (eval $ac_compile) 2>conftest.er1
35720   ac_status=$?
35721   grep -v '^ *+' conftest.er1 >conftest.err
35722   rm -f conftest.er1
35723   cat conftest.err >&5
35724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725   (exit $ac_status); } &&
35726          { ac_try='test -z "$ac_cxx_werror_flag"
35727                          || test ! -s conftest.err'
35728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35729   (eval $ac_try) 2>&5
35730   ac_status=$?
35731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35732   (exit $ac_status); }; } &&
35733          { ac_try='test -s conftest.$ac_objext'
35734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35735   (eval $ac_try) 2>&5
35736   ac_status=$?
35737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738   (exit $ac_status); }; }; then
35739   glibcxx_cv_func__isnanf_use=yes
35740 else
35741   echo "$as_me: failed program was:" >&5
35742 sed 's/^/| /' conftest.$ac_ext >&5
35743
35744 glibcxx_cv_func__isnanf_use=no
35745 fi
35746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35747       ac_ext=c
35748 ac_cpp='$CPP $CPPFLAGS'
35749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35752
35753
35754 fi
35755
35756   fi
35757   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
35758 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
35759
35760     if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
35761
35762 for ac_func in _isnanf
35763 do
35764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35765 echo "$as_me:$LINENO: checking for $ac_func" >&5
35766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35767 if eval "test \"\${$as_ac_var+set}\" = set"; then
35768   echo $ECHO_N "(cached) $ECHO_C" >&6
35769 else
35770   if test x$gcc_no_link = xyes; then
35771   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35772 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35773    { (exit 1); exit 1; }; }
35774 fi
35775 cat >conftest.$ac_ext <<_ACEOF
35776 /* confdefs.h.  */
35777 _ACEOF
35778 cat confdefs.h >>conftest.$ac_ext
35779 cat >>conftest.$ac_ext <<_ACEOF
35780 /* end confdefs.h.  */
35781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35783 #define $ac_func innocuous_$ac_func
35784
35785 /* System header to define __stub macros and hopefully few prototypes,
35786     which can conflict with char $ac_func (); below.
35787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35788     <limits.h> exists even on freestanding compilers.  */
35789
35790 #ifdef __STDC__
35791 # include <limits.h>
35792 #else
35793 # include <assert.h>
35794 #endif
35795
35796 #undef $ac_func
35797
35798 /* Override any gcc2 internal prototype to avoid an error.  */
35799 #ifdef __cplusplus
35800 extern "C"
35801 {
35802 #endif
35803 /* We use char because int might match the return type of a gcc2
35804    builtin and then its argument prototype would still apply.  */
35805 char $ac_func ();
35806 /* The GNU C library defines this for functions which it implements
35807     to always fail with ENOSYS.  Some functions are actually named
35808     something starting with __ and the normal name is an alias.  */
35809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35810 choke me
35811 #else
35812 char (*f) () = $ac_func;
35813 #endif
35814 #ifdef __cplusplus
35815 }
35816 #endif
35817
35818 int
35819 main ()
35820 {
35821 return f != $ac_func;
35822   ;
35823   return 0;
35824 }
35825 _ACEOF
35826 rm -f conftest.$ac_objext conftest$ac_exeext
35827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35828   (eval $ac_link) 2>conftest.er1
35829   ac_status=$?
35830   grep -v '^ *+' conftest.er1 >conftest.err
35831   rm -f conftest.er1
35832   cat conftest.err >&5
35833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35834   (exit $ac_status); } &&
35835          { ac_try='test -z "$ac_c_werror_flag"
35836                          || test ! -s conftest.err'
35837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35838   (eval $ac_try) 2>&5
35839   ac_status=$?
35840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35841   (exit $ac_status); }; } &&
35842          { ac_try='test -s conftest$ac_exeext'
35843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35844   (eval $ac_try) 2>&5
35845   ac_status=$?
35846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847   (exit $ac_status); }; }; then
35848   eval "$as_ac_var=yes"
35849 else
35850   echo "$as_me: failed program was:" >&5
35851 sed 's/^/| /' conftest.$ac_ext >&5
35852
35853 eval "$as_ac_var=no"
35854 fi
35855 rm -f conftest.err conftest.$ac_objext \
35856       conftest$ac_exeext conftest.$ac_ext
35857 fi
35858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35860 if test `eval echo '${'$as_ac_var'}'` = yes; then
35861   cat >>confdefs.h <<_ACEOF
35862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35863 _ACEOF
35864
35865 fi
35866 done
35867
35868     fi
35869   fi
35870
35871
35872
35873   echo "$as_me:$LINENO: checking for isinff declaration" >&5
35874 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
35875   if test x${glibcxx_cv_func_isinff_use+set} != xset; then
35876     if test "${glibcxx_cv_func_isinff_use+set}" = set; then
35877   echo $ECHO_N "(cached) $ECHO_C" >&6
35878 else
35879
35880
35881
35882       ac_ext=cc
35883 ac_cpp='$CXXCPP $CPPFLAGS'
35884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35887
35888       cat >conftest.$ac_ext <<_ACEOF
35889 /* confdefs.h.  */
35890 _ACEOF
35891 cat confdefs.h >>conftest.$ac_ext
35892 cat >>conftest.$ac_ext <<_ACEOF
35893 /* end confdefs.h.  */
35894 #include <math.h>
35895                       #ifdef HAVE_IEEEFP_H
35896                       #include <ieeefp.h>
35897                       #endif
35898
35899 int
35900 main ()
35901 {
35902  isinff(0);
35903   ;
35904   return 0;
35905 }
35906 _ACEOF
35907 rm -f conftest.$ac_objext
35908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35909   (eval $ac_compile) 2>conftest.er1
35910   ac_status=$?
35911   grep -v '^ *+' conftest.er1 >conftest.err
35912   rm -f conftest.er1
35913   cat conftest.err >&5
35914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35915   (exit $ac_status); } &&
35916          { ac_try='test -z "$ac_cxx_werror_flag"
35917                          || test ! -s conftest.err'
35918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35919   (eval $ac_try) 2>&5
35920   ac_status=$?
35921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35922   (exit $ac_status); }; } &&
35923          { ac_try='test -s conftest.$ac_objext'
35924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35925   (eval $ac_try) 2>&5
35926   ac_status=$?
35927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35928   (exit $ac_status); }; }; then
35929   glibcxx_cv_func_isinff_use=yes
35930 else
35931   echo "$as_me: failed program was:" >&5
35932 sed 's/^/| /' conftest.$ac_ext >&5
35933
35934 glibcxx_cv_func_isinff_use=no
35935 fi
35936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35937       ac_ext=c
35938 ac_cpp='$CPP $CPPFLAGS'
35939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35942
35943
35944 fi
35945
35946   fi
35947   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
35948 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
35949
35950   if test x$glibcxx_cv_func_isinff_use = x"yes"; then
35951
35952 for ac_func in isinff
35953 do
35954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35955 echo "$as_me:$LINENO: checking for $ac_func" >&5
35956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35957 if eval "test \"\${$as_ac_var+set}\" = set"; then
35958   echo $ECHO_N "(cached) $ECHO_C" >&6
35959 else
35960   if test x$gcc_no_link = xyes; then
35961   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
35962 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
35963    { (exit 1); exit 1; }; }
35964 fi
35965 cat >conftest.$ac_ext <<_ACEOF
35966 /* confdefs.h.  */
35967 _ACEOF
35968 cat confdefs.h >>conftest.$ac_ext
35969 cat >>conftest.$ac_ext <<_ACEOF
35970 /* end confdefs.h.  */
35971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35973 #define $ac_func innocuous_$ac_func
35974
35975 /* System header to define __stub macros and hopefully few prototypes,
35976     which can conflict with char $ac_func (); below.
35977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35978     <limits.h> exists even on freestanding compilers.  */
35979
35980 #ifdef __STDC__
35981 # include <limits.h>
35982 #else
35983 # include <assert.h>
35984 #endif
35985
35986 #undef $ac_func
35987
35988 /* Override any gcc2 internal prototype to avoid an error.  */
35989 #ifdef __cplusplus
35990 extern "C"
35991 {
35992 #endif
35993 /* We use char because int might match the return type of a gcc2
35994    builtin and then its argument prototype would still apply.  */
35995 char $ac_func ();
35996 /* The GNU C library defines this for functions which it implements
35997     to always fail with ENOSYS.  Some functions are actually named
35998     something starting with __ and the normal name is an alias.  */
35999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36000 choke me
36001 #else
36002 char (*f) () = $ac_func;
36003 #endif
36004 #ifdef __cplusplus
36005 }
36006 #endif
36007
36008 int
36009 main ()
36010 {
36011 return f != $ac_func;
36012   ;
36013   return 0;
36014 }
36015 _ACEOF
36016 rm -f conftest.$ac_objext conftest$ac_exeext
36017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36018   (eval $ac_link) 2>conftest.er1
36019   ac_status=$?
36020   grep -v '^ *+' conftest.er1 >conftest.err
36021   rm -f conftest.er1
36022   cat conftest.err >&5
36023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36024   (exit $ac_status); } &&
36025          { ac_try='test -z "$ac_c_werror_flag"
36026                          || test ! -s conftest.err'
36027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36028   (eval $ac_try) 2>&5
36029   ac_status=$?
36030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36031   (exit $ac_status); }; } &&
36032          { ac_try='test -s conftest$ac_exeext'
36033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36034   (eval $ac_try) 2>&5
36035   ac_status=$?
36036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36037   (exit $ac_status); }; }; then
36038   eval "$as_ac_var=yes"
36039 else
36040   echo "$as_me: failed program was:" >&5
36041 sed 's/^/| /' conftest.$ac_ext >&5
36042
36043 eval "$as_ac_var=no"
36044 fi
36045 rm -f conftest.err conftest.$ac_objext \
36046       conftest$ac_exeext conftest.$ac_ext
36047 fi
36048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36050 if test `eval echo '${'$as_ac_var'}'` = yes; then
36051   cat >>confdefs.h <<_ACEOF
36052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36053 _ACEOF
36054
36055 fi
36056 done
36057
36058   else
36059
36060   echo "$as_me:$LINENO: checking for _isinff declaration" >&5
36061 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
36062   if test x${glibcxx_cv_func__isinff_use+set} != xset; then
36063     if test "${glibcxx_cv_func__isinff_use+set}" = set; then
36064   echo $ECHO_N "(cached) $ECHO_C" >&6
36065 else
36066
36067
36068
36069       ac_ext=cc
36070 ac_cpp='$CXXCPP $CPPFLAGS'
36071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36074
36075       cat >conftest.$ac_ext <<_ACEOF
36076 /* confdefs.h.  */
36077 _ACEOF
36078 cat confdefs.h >>conftest.$ac_ext
36079 cat >>conftest.$ac_ext <<_ACEOF
36080 /* end confdefs.h.  */
36081 #include <math.h>
36082                       #ifdef HAVE_IEEEFP_H
36083                       #include <ieeefp.h>
36084                       #endif
36085
36086 int
36087 main ()
36088 {
36089  _isinff(0);
36090   ;
36091   return 0;
36092 }
36093 _ACEOF
36094 rm -f conftest.$ac_objext
36095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36096   (eval $ac_compile) 2>conftest.er1
36097   ac_status=$?
36098   grep -v '^ *+' conftest.er1 >conftest.err
36099   rm -f conftest.er1
36100   cat conftest.err >&5
36101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36102   (exit $ac_status); } &&
36103          { ac_try='test -z "$ac_cxx_werror_flag"
36104                          || test ! -s conftest.err'
36105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36106   (eval $ac_try) 2>&5
36107   ac_status=$?
36108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36109   (exit $ac_status); }; } &&
36110          { ac_try='test -s conftest.$ac_objext'
36111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36112   (eval $ac_try) 2>&5
36113   ac_status=$?
36114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36115   (exit $ac_status); }; }; then
36116   glibcxx_cv_func__isinff_use=yes
36117 else
36118   echo "$as_me: failed program was:" >&5
36119 sed 's/^/| /' conftest.$ac_ext >&5
36120
36121 glibcxx_cv_func__isinff_use=no
36122 fi
36123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36124       ac_ext=c
36125 ac_cpp='$CPP $CPPFLAGS'
36126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36129
36130
36131 fi
36132
36133   fi
36134   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
36135 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
36136
36137     if test x$glibcxx_cv_func__isinff_use = x"yes"; then
36138
36139 for ac_func in _isinff
36140 do
36141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36142 echo "$as_me:$LINENO: checking for $ac_func" >&5
36143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36144 if eval "test \"\${$as_ac_var+set}\" = set"; then
36145   echo $ECHO_N "(cached) $ECHO_C" >&6
36146 else
36147   if test x$gcc_no_link = xyes; then
36148   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36150    { (exit 1); exit 1; }; }
36151 fi
36152 cat >conftest.$ac_ext <<_ACEOF
36153 /* confdefs.h.  */
36154 _ACEOF
36155 cat confdefs.h >>conftest.$ac_ext
36156 cat >>conftest.$ac_ext <<_ACEOF
36157 /* end confdefs.h.  */
36158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36160 #define $ac_func innocuous_$ac_func
36161
36162 /* System header to define __stub macros and hopefully few prototypes,
36163     which can conflict with char $ac_func (); below.
36164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36165     <limits.h> exists even on freestanding compilers.  */
36166
36167 #ifdef __STDC__
36168 # include <limits.h>
36169 #else
36170 # include <assert.h>
36171 #endif
36172
36173 #undef $ac_func
36174
36175 /* Override any gcc2 internal prototype to avoid an error.  */
36176 #ifdef __cplusplus
36177 extern "C"
36178 {
36179 #endif
36180 /* We use char because int might match the return type of a gcc2
36181    builtin and then its argument prototype would still apply.  */
36182 char $ac_func ();
36183 /* The GNU C library defines this for functions which it implements
36184     to always fail with ENOSYS.  Some functions are actually named
36185     something starting with __ and the normal name is an alias.  */
36186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36187 choke me
36188 #else
36189 char (*f) () = $ac_func;
36190 #endif
36191 #ifdef __cplusplus
36192 }
36193 #endif
36194
36195 int
36196 main ()
36197 {
36198 return f != $ac_func;
36199   ;
36200   return 0;
36201 }
36202 _ACEOF
36203 rm -f conftest.$ac_objext conftest$ac_exeext
36204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36205   (eval $ac_link) 2>conftest.er1
36206   ac_status=$?
36207   grep -v '^ *+' conftest.er1 >conftest.err
36208   rm -f conftest.er1
36209   cat conftest.err >&5
36210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211   (exit $ac_status); } &&
36212          { ac_try='test -z "$ac_c_werror_flag"
36213                          || test ! -s conftest.err'
36214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36215   (eval $ac_try) 2>&5
36216   ac_status=$?
36217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36218   (exit $ac_status); }; } &&
36219          { ac_try='test -s conftest$ac_exeext'
36220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36221   (eval $ac_try) 2>&5
36222   ac_status=$?
36223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36224   (exit $ac_status); }; }; then
36225   eval "$as_ac_var=yes"
36226 else
36227   echo "$as_me: failed program was:" >&5
36228 sed 's/^/| /' conftest.$ac_ext >&5
36229
36230 eval "$as_ac_var=no"
36231 fi
36232 rm -f conftest.err conftest.$ac_objext \
36233       conftest$ac_exeext conftest.$ac_ext
36234 fi
36235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36237 if test `eval echo '${'$as_ac_var'}'` = yes; then
36238   cat >>confdefs.h <<_ACEOF
36239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36240 _ACEOF
36241
36242 fi
36243 done
36244
36245     fi
36246   fi
36247
36248
36249
36250   echo "$as_me:$LINENO: checking for atan2f declaration" >&5
36251 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
36252   if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
36253     if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
36254   echo $ECHO_N "(cached) $ECHO_C" >&6
36255 else
36256
36257
36258
36259       ac_ext=cc
36260 ac_cpp='$CXXCPP $CPPFLAGS'
36261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36264
36265       cat >conftest.$ac_ext <<_ACEOF
36266 /* confdefs.h.  */
36267 _ACEOF
36268 cat confdefs.h >>conftest.$ac_ext
36269 cat >>conftest.$ac_ext <<_ACEOF
36270 /* end confdefs.h.  */
36271 #include <math.h>
36272 int
36273 main ()
36274 {
36275  atan2f(0, 0);
36276   ;
36277   return 0;
36278 }
36279 _ACEOF
36280 rm -f conftest.$ac_objext
36281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36282   (eval $ac_compile) 2>conftest.er1
36283   ac_status=$?
36284   grep -v '^ *+' conftest.er1 >conftest.err
36285   rm -f conftest.er1
36286   cat conftest.err >&5
36287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36288   (exit $ac_status); } &&
36289          { ac_try='test -z "$ac_cxx_werror_flag"
36290                          || test ! -s conftest.err'
36291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36292   (eval $ac_try) 2>&5
36293   ac_status=$?
36294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36295   (exit $ac_status); }; } &&
36296          { ac_try='test -s conftest.$ac_objext'
36297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36298   (eval $ac_try) 2>&5
36299   ac_status=$?
36300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36301   (exit $ac_status); }; }; then
36302   glibcxx_cv_func_atan2f_use=yes
36303 else
36304   echo "$as_me: failed program was:" >&5
36305 sed 's/^/| /' conftest.$ac_ext >&5
36306
36307 glibcxx_cv_func_atan2f_use=no
36308 fi
36309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36310       ac_ext=c
36311 ac_cpp='$CPP $CPPFLAGS'
36312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36315
36316
36317 fi
36318
36319   fi
36320   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
36321 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
36322
36323   if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
36324
36325 for ac_func in atan2f
36326 do
36327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36328 echo "$as_me:$LINENO: checking for $ac_func" >&5
36329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36330 if eval "test \"\${$as_ac_var+set}\" = set"; then
36331   echo $ECHO_N "(cached) $ECHO_C" >&6
36332 else
36333   if test x$gcc_no_link = xyes; then
36334   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36335 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36336    { (exit 1); exit 1; }; }
36337 fi
36338 cat >conftest.$ac_ext <<_ACEOF
36339 /* confdefs.h.  */
36340 _ACEOF
36341 cat confdefs.h >>conftest.$ac_ext
36342 cat >>conftest.$ac_ext <<_ACEOF
36343 /* end confdefs.h.  */
36344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36346 #define $ac_func innocuous_$ac_func
36347
36348 /* System header to define __stub macros and hopefully few prototypes,
36349     which can conflict with char $ac_func (); below.
36350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36351     <limits.h> exists even on freestanding compilers.  */
36352
36353 #ifdef __STDC__
36354 # include <limits.h>
36355 #else
36356 # include <assert.h>
36357 #endif
36358
36359 #undef $ac_func
36360
36361 /* Override any gcc2 internal prototype to avoid an error.  */
36362 #ifdef __cplusplus
36363 extern "C"
36364 {
36365 #endif
36366 /* We use char because int might match the return type of a gcc2
36367    builtin and then its argument prototype would still apply.  */
36368 char $ac_func ();
36369 /* The GNU C library defines this for functions which it implements
36370     to always fail with ENOSYS.  Some functions are actually named
36371     something starting with __ and the normal name is an alias.  */
36372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36373 choke me
36374 #else
36375 char (*f) () = $ac_func;
36376 #endif
36377 #ifdef __cplusplus
36378 }
36379 #endif
36380
36381 int
36382 main ()
36383 {
36384 return f != $ac_func;
36385   ;
36386   return 0;
36387 }
36388 _ACEOF
36389 rm -f conftest.$ac_objext conftest$ac_exeext
36390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36391   (eval $ac_link) 2>conftest.er1
36392   ac_status=$?
36393   grep -v '^ *+' conftest.er1 >conftest.err
36394   rm -f conftest.er1
36395   cat conftest.err >&5
36396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36397   (exit $ac_status); } &&
36398          { ac_try='test -z "$ac_c_werror_flag"
36399                          || test ! -s conftest.err'
36400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36401   (eval $ac_try) 2>&5
36402   ac_status=$?
36403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404   (exit $ac_status); }; } &&
36405          { ac_try='test -s conftest$ac_exeext'
36406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36407   (eval $ac_try) 2>&5
36408   ac_status=$?
36409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36410   (exit $ac_status); }; }; then
36411   eval "$as_ac_var=yes"
36412 else
36413   echo "$as_me: failed program was:" >&5
36414 sed 's/^/| /' conftest.$ac_ext >&5
36415
36416 eval "$as_ac_var=no"
36417 fi
36418 rm -f conftest.err conftest.$ac_objext \
36419       conftest$ac_exeext conftest.$ac_ext
36420 fi
36421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36423 if test `eval echo '${'$as_ac_var'}'` = yes; then
36424   cat >>confdefs.h <<_ACEOF
36425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36426 _ACEOF
36427
36428 fi
36429 done
36430
36431   else
36432
36433   echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
36434 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
36435   if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
36436     if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
36437   echo $ECHO_N "(cached) $ECHO_C" >&6
36438 else
36439
36440
36441
36442       ac_ext=cc
36443 ac_cpp='$CXXCPP $CPPFLAGS'
36444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36447
36448       cat >conftest.$ac_ext <<_ACEOF
36449 /* confdefs.h.  */
36450 _ACEOF
36451 cat confdefs.h >>conftest.$ac_ext
36452 cat >>conftest.$ac_ext <<_ACEOF
36453 /* end confdefs.h.  */
36454 #include <math.h>
36455 int
36456 main ()
36457 {
36458  _atan2f(0, 0);
36459   ;
36460   return 0;
36461 }
36462 _ACEOF
36463 rm -f conftest.$ac_objext
36464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36465   (eval $ac_compile) 2>conftest.er1
36466   ac_status=$?
36467   grep -v '^ *+' conftest.er1 >conftest.err
36468   rm -f conftest.er1
36469   cat conftest.err >&5
36470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471   (exit $ac_status); } &&
36472          { ac_try='test -z "$ac_cxx_werror_flag"
36473                          || test ! -s conftest.err'
36474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36475   (eval $ac_try) 2>&5
36476   ac_status=$?
36477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36478   (exit $ac_status); }; } &&
36479          { ac_try='test -s conftest.$ac_objext'
36480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36481   (eval $ac_try) 2>&5
36482   ac_status=$?
36483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36484   (exit $ac_status); }; }; then
36485   glibcxx_cv_func__atan2f_use=yes
36486 else
36487   echo "$as_me: failed program was:" >&5
36488 sed 's/^/| /' conftest.$ac_ext >&5
36489
36490 glibcxx_cv_func__atan2f_use=no
36491 fi
36492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36493       ac_ext=c
36494 ac_cpp='$CPP $CPPFLAGS'
36495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36498
36499
36500 fi
36501
36502   fi
36503   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
36504 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
36505
36506     if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
36507
36508 for ac_func in _atan2f
36509 do
36510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36511 echo "$as_me:$LINENO: checking for $ac_func" >&5
36512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36513 if eval "test \"\${$as_ac_var+set}\" = set"; then
36514   echo $ECHO_N "(cached) $ECHO_C" >&6
36515 else
36516   if test x$gcc_no_link = xyes; then
36517   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36518 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36519    { (exit 1); exit 1; }; }
36520 fi
36521 cat >conftest.$ac_ext <<_ACEOF
36522 /* confdefs.h.  */
36523 _ACEOF
36524 cat confdefs.h >>conftest.$ac_ext
36525 cat >>conftest.$ac_ext <<_ACEOF
36526 /* end confdefs.h.  */
36527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36529 #define $ac_func innocuous_$ac_func
36530
36531 /* System header to define __stub macros and hopefully few prototypes,
36532     which can conflict with char $ac_func (); below.
36533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36534     <limits.h> exists even on freestanding compilers.  */
36535
36536 #ifdef __STDC__
36537 # include <limits.h>
36538 #else
36539 # include <assert.h>
36540 #endif
36541
36542 #undef $ac_func
36543
36544 /* Override any gcc2 internal prototype to avoid an error.  */
36545 #ifdef __cplusplus
36546 extern "C"
36547 {
36548 #endif
36549 /* We use char because int might match the return type of a gcc2
36550    builtin and then its argument prototype would still apply.  */
36551 char $ac_func ();
36552 /* The GNU C library defines this for functions which it implements
36553     to always fail with ENOSYS.  Some functions are actually named
36554     something starting with __ and the normal name is an alias.  */
36555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36556 choke me
36557 #else
36558 char (*f) () = $ac_func;
36559 #endif
36560 #ifdef __cplusplus
36561 }
36562 #endif
36563
36564 int
36565 main ()
36566 {
36567 return f != $ac_func;
36568   ;
36569   return 0;
36570 }
36571 _ACEOF
36572 rm -f conftest.$ac_objext conftest$ac_exeext
36573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36574   (eval $ac_link) 2>conftest.er1
36575   ac_status=$?
36576   grep -v '^ *+' conftest.er1 >conftest.err
36577   rm -f conftest.er1
36578   cat conftest.err >&5
36579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36580   (exit $ac_status); } &&
36581          { ac_try='test -z "$ac_c_werror_flag"
36582                          || test ! -s conftest.err'
36583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36584   (eval $ac_try) 2>&5
36585   ac_status=$?
36586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36587   (exit $ac_status); }; } &&
36588          { ac_try='test -s conftest$ac_exeext'
36589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36590   (eval $ac_try) 2>&5
36591   ac_status=$?
36592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36593   (exit $ac_status); }; }; then
36594   eval "$as_ac_var=yes"
36595 else
36596   echo "$as_me: failed program was:" >&5
36597 sed 's/^/| /' conftest.$ac_ext >&5
36598
36599 eval "$as_ac_var=no"
36600 fi
36601 rm -f conftest.err conftest.$ac_objext \
36602       conftest$ac_exeext conftest.$ac_ext
36603 fi
36604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36606 if test `eval echo '${'$as_ac_var'}'` = yes; then
36607   cat >>confdefs.h <<_ACEOF
36608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36609 _ACEOF
36610
36611 fi
36612 done
36613
36614     fi
36615   fi
36616
36617
36618
36619   echo "$as_me:$LINENO: checking for fabsf declaration" >&5
36620 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
36621   if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
36622     if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
36623   echo $ECHO_N "(cached) $ECHO_C" >&6
36624 else
36625
36626
36627
36628       ac_ext=cc
36629 ac_cpp='$CXXCPP $CPPFLAGS'
36630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36633
36634       cat >conftest.$ac_ext <<_ACEOF
36635 /* confdefs.h.  */
36636 _ACEOF
36637 cat confdefs.h >>conftest.$ac_ext
36638 cat >>conftest.$ac_ext <<_ACEOF
36639 /* end confdefs.h.  */
36640 #include <math.h>
36641                       #ifdef HAVE_IEEEFP_H
36642                       #include <ieeefp.h>
36643                       #endif
36644
36645 int
36646 main ()
36647 {
36648  fabsf(0);
36649   ;
36650   return 0;
36651 }
36652 _ACEOF
36653 rm -f conftest.$ac_objext
36654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36655   (eval $ac_compile) 2>conftest.er1
36656   ac_status=$?
36657   grep -v '^ *+' conftest.er1 >conftest.err
36658   rm -f conftest.er1
36659   cat conftest.err >&5
36660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661   (exit $ac_status); } &&
36662          { ac_try='test -z "$ac_cxx_werror_flag"
36663                          || test ! -s conftest.err'
36664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36665   (eval $ac_try) 2>&5
36666   ac_status=$?
36667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36668   (exit $ac_status); }; } &&
36669          { ac_try='test -s conftest.$ac_objext'
36670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36671   (eval $ac_try) 2>&5
36672   ac_status=$?
36673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36674   (exit $ac_status); }; }; then
36675   glibcxx_cv_func_fabsf_use=yes
36676 else
36677   echo "$as_me: failed program was:" >&5
36678 sed 's/^/| /' conftest.$ac_ext >&5
36679
36680 glibcxx_cv_func_fabsf_use=no
36681 fi
36682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36683       ac_ext=c
36684 ac_cpp='$CPP $CPPFLAGS'
36685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36688
36689
36690 fi
36691
36692   fi
36693   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
36694 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
36695
36696   if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
36697
36698 for ac_func in fabsf
36699 do
36700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36701 echo "$as_me:$LINENO: checking for $ac_func" >&5
36702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36703 if eval "test \"\${$as_ac_var+set}\" = set"; then
36704   echo $ECHO_N "(cached) $ECHO_C" >&6
36705 else
36706   if test x$gcc_no_link = xyes; then
36707   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36708 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36709    { (exit 1); exit 1; }; }
36710 fi
36711 cat >conftest.$ac_ext <<_ACEOF
36712 /* confdefs.h.  */
36713 _ACEOF
36714 cat confdefs.h >>conftest.$ac_ext
36715 cat >>conftest.$ac_ext <<_ACEOF
36716 /* end confdefs.h.  */
36717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36719 #define $ac_func innocuous_$ac_func
36720
36721 /* System header to define __stub macros and hopefully few prototypes,
36722     which can conflict with char $ac_func (); below.
36723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36724     <limits.h> exists even on freestanding compilers.  */
36725
36726 #ifdef __STDC__
36727 # include <limits.h>
36728 #else
36729 # include <assert.h>
36730 #endif
36731
36732 #undef $ac_func
36733
36734 /* Override any gcc2 internal prototype to avoid an error.  */
36735 #ifdef __cplusplus
36736 extern "C"
36737 {
36738 #endif
36739 /* We use char because int might match the return type of a gcc2
36740    builtin and then its argument prototype would still apply.  */
36741 char $ac_func ();
36742 /* The GNU C library defines this for functions which it implements
36743     to always fail with ENOSYS.  Some functions are actually named
36744     something starting with __ and the normal name is an alias.  */
36745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36746 choke me
36747 #else
36748 char (*f) () = $ac_func;
36749 #endif
36750 #ifdef __cplusplus
36751 }
36752 #endif
36753
36754 int
36755 main ()
36756 {
36757 return f != $ac_func;
36758   ;
36759   return 0;
36760 }
36761 _ACEOF
36762 rm -f conftest.$ac_objext conftest$ac_exeext
36763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36764   (eval $ac_link) 2>conftest.er1
36765   ac_status=$?
36766   grep -v '^ *+' conftest.er1 >conftest.err
36767   rm -f conftest.er1
36768   cat conftest.err >&5
36769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36770   (exit $ac_status); } &&
36771          { ac_try='test -z "$ac_c_werror_flag"
36772                          || test ! -s conftest.err'
36773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36774   (eval $ac_try) 2>&5
36775   ac_status=$?
36776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36777   (exit $ac_status); }; } &&
36778          { ac_try='test -s conftest$ac_exeext'
36779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36780   (eval $ac_try) 2>&5
36781   ac_status=$?
36782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36783   (exit $ac_status); }; }; then
36784   eval "$as_ac_var=yes"
36785 else
36786   echo "$as_me: failed program was:" >&5
36787 sed 's/^/| /' conftest.$ac_ext >&5
36788
36789 eval "$as_ac_var=no"
36790 fi
36791 rm -f conftest.err conftest.$ac_objext \
36792       conftest$ac_exeext conftest.$ac_ext
36793 fi
36794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36796 if test `eval echo '${'$as_ac_var'}'` = yes; then
36797   cat >>confdefs.h <<_ACEOF
36798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36799 _ACEOF
36800
36801 fi
36802 done
36803
36804   else
36805
36806   echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
36807 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
36808   if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
36809     if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
36810   echo $ECHO_N "(cached) $ECHO_C" >&6
36811 else
36812
36813
36814
36815       ac_ext=cc
36816 ac_cpp='$CXXCPP $CPPFLAGS'
36817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36820
36821       cat >conftest.$ac_ext <<_ACEOF
36822 /* confdefs.h.  */
36823 _ACEOF
36824 cat confdefs.h >>conftest.$ac_ext
36825 cat >>conftest.$ac_ext <<_ACEOF
36826 /* end confdefs.h.  */
36827 #include <math.h>
36828                       #ifdef HAVE_IEEEFP_H
36829                       #include <ieeefp.h>
36830                       #endif
36831
36832 int
36833 main ()
36834 {
36835  _fabsf(0);
36836   ;
36837   return 0;
36838 }
36839 _ACEOF
36840 rm -f conftest.$ac_objext
36841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36842   (eval $ac_compile) 2>conftest.er1
36843   ac_status=$?
36844   grep -v '^ *+' conftest.er1 >conftest.err
36845   rm -f conftest.er1
36846   cat conftest.err >&5
36847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36848   (exit $ac_status); } &&
36849          { ac_try='test -z "$ac_cxx_werror_flag"
36850                          || test ! -s conftest.err'
36851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36852   (eval $ac_try) 2>&5
36853   ac_status=$?
36854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855   (exit $ac_status); }; } &&
36856          { ac_try='test -s conftest.$ac_objext'
36857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36858   (eval $ac_try) 2>&5
36859   ac_status=$?
36860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36861   (exit $ac_status); }; }; then
36862   glibcxx_cv_func__fabsf_use=yes
36863 else
36864   echo "$as_me: failed program was:" >&5
36865 sed 's/^/| /' conftest.$ac_ext >&5
36866
36867 glibcxx_cv_func__fabsf_use=no
36868 fi
36869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36870       ac_ext=c
36871 ac_cpp='$CPP $CPPFLAGS'
36872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36875
36876
36877 fi
36878
36879   fi
36880   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
36881 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
36882
36883     if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
36884
36885 for ac_func in _fabsf
36886 do
36887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36888 echo "$as_me:$LINENO: checking for $ac_func" >&5
36889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36890 if eval "test \"\${$as_ac_var+set}\" = set"; then
36891   echo $ECHO_N "(cached) $ECHO_C" >&6
36892 else
36893   if test x$gcc_no_link = xyes; then
36894   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
36895 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
36896    { (exit 1); exit 1; }; }
36897 fi
36898 cat >conftest.$ac_ext <<_ACEOF
36899 /* confdefs.h.  */
36900 _ACEOF
36901 cat confdefs.h >>conftest.$ac_ext
36902 cat >>conftest.$ac_ext <<_ACEOF
36903 /* end confdefs.h.  */
36904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36906 #define $ac_func innocuous_$ac_func
36907
36908 /* System header to define __stub macros and hopefully few prototypes,
36909     which can conflict with char $ac_func (); below.
36910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36911     <limits.h> exists even on freestanding compilers.  */
36912
36913 #ifdef __STDC__
36914 # include <limits.h>
36915 #else
36916 # include <assert.h>
36917 #endif
36918
36919 #undef $ac_func
36920
36921 /* Override any gcc2 internal prototype to avoid an error.  */
36922 #ifdef __cplusplus
36923 extern "C"
36924 {
36925 #endif
36926 /* We use char because int might match the return type of a gcc2
36927    builtin and then its argument prototype would still apply.  */
36928 char $ac_func ();
36929 /* The GNU C library defines this for functions which it implements
36930     to always fail with ENOSYS.  Some functions are actually named
36931     something starting with __ and the normal name is an alias.  */
36932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36933 choke me
36934 #else
36935 char (*f) () = $ac_func;
36936 #endif
36937 #ifdef __cplusplus
36938 }
36939 #endif
36940
36941 int
36942 main ()
36943 {
36944 return f != $ac_func;
36945   ;
36946   return 0;
36947 }
36948 _ACEOF
36949 rm -f conftest.$ac_objext conftest$ac_exeext
36950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36951   (eval $ac_link) 2>conftest.er1
36952   ac_status=$?
36953   grep -v '^ *+' conftest.er1 >conftest.err
36954   rm -f conftest.er1
36955   cat conftest.err >&5
36956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36957   (exit $ac_status); } &&
36958          { ac_try='test -z "$ac_c_werror_flag"
36959                          || test ! -s conftest.err'
36960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36961   (eval $ac_try) 2>&5
36962   ac_status=$?
36963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36964   (exit $ac_status); }; } &&
36965          { ac_try='test -s conftest$ac_exeext'
36966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36967   (eval $ac_try) 2>&5
36968   ac_status=$?
36969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36970   (exit $ac_status); }; }; then
36971   eval "$as_ac_var=yes"
36972 else
36973   echo "$as_me: failed program was:" >&5
36974 sed 's/^/| /' conftest.$ac_ext >&5
36975
36976 eval "$as_ac_var=no"
36977 fi
36978 rm -f conftest.err conftest.$ac_objext \
36979       conftest$ac_exeext conftest.$ac_ext
36980 fi
36981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36983 if test `eval echo '${'$as_ac_var'}'` = yes; then
36984   cat >>confdefs.h <<_ACEOF
36985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36986 _ACEOF
36987
36988 fi
36989 done
36990
36991     fi
36992   fi
36993
36994
36995
36996   echo "$as_me:$LINENO: checking for fmodf declaration" >&5
36997 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
36998   if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
36999     if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
37000   echo $ECHO_N "(cached) $ECHO_C" >&6
37001 else
37002
37003
37004
37005       ac_ext=cc
37006 ac_cpp='$CXXCPP $CPPFLAGS'
37007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37010
37011       cat >conftest.$ac_ext <<_ACEOF
37012 /* confdefs.h.  */
37013 _ACEOF
37014 cat confdefs.h >>conftest.$ac_ext
37015 cat >>conftest.$ac_ext <<_ACEOF
37016 /* end confdefs.h.  */
37017 #include <math.h>
37018 int
37019 main ()
37020 {
37021  fmodf(0, 0);
37022   ;
37023   return 0;
37024 }
37025 _ACEOF
37026 rm -f conftest.$ac_objext
37027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37028   (eval $ac_compile) 2>conftest.er1
37029   ac_status=$?
37030   grep -v '^ *+' conftest.er1 >conftest.err
37031   rm -f conftest.er1
37032   cat conftest.err >&5
37033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37034   (exit $ac_status); } &&
37035          { ac_try='test -z "$ac_cxx_werror_flag"
37036                          || test ! -s conftest.err'
37037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37038   (eval $ac_try) 2>&5
37039   ac_status=$?
37040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37041   (exit $ac_status); }; } &&
37042          { ac_try='test -s conftest.$ac_objext'
37043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37044   (eval $ac_try) 2>&5
37045   ac_status=$?
37046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37047   (exit $ac_status); }; }; then
37048   glibcxx_cv_func_fmodf_use=yes
37049 else
37050   echo "$as_me: failed program was:" >&5
37051 sed 's/^/| /' conftest.$ac_ext >&5
37052
37053 glibcxx_cv_func_fmodf_use=no
37054 fi
37055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37056       ac_ext=c
37057 ac_cpp='$CPP $CPPFLAGS'
37058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37061
37062
37063 fi
37064
37065   fi
37066   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
37067 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
37068
37069   if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
37070
37071 for ac_func in fmodf
37072 do
37073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37074 echo "$as_me:$LINENO: checking for $ac_func" >&5
37075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37076 if eval "test \"\${$as_ac_var+set}\" = set"; then
37077   echo $ECHO_N "(cached) $ECHO_C" >&6
37078 else
37079   if test x$gcc_no_link = xyes; then
37080   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37081 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37082    { (exit 1); exit 1; }; }
37083 fi
37084 cat >conftest.$ac_ext <<_ACEOF
37085 /* confdefs.h.  */
37086 _ACEOF
37087 cat confdefs.h >>conftest.$ac_ext
37088 cat >>conftest.$ac_ext <<_ACEOF
37089 /* end confdefs.h.  */
37090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37091    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37092 #define $ac_func innocuous_$ac_func
37093
37094 /* System header to define __stub macros and hopefully few prototypes,
37095     which can conflict with char $ac_func (); below.
37096     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37097     <limits.h> exists even on freestanding compilers.  */
37098
37099 #ifdef __STDC__
37100 # include <limits.h>
37101 #else
37102 # include <assert.h>
37103 #endif
37104
37105 #undef $ac_func
37106
37107 /* Override any gcc2 internal prototype to avoid an error.  */
37108 #ifdef __cplusplus
37109 extern "C"
37110 {
37111 #endif
37112 /* We use char because int might match the return type of a gcc2
37113    builtin and then its argument prototype would still apply.  */
37114 char $ac_func ();
37115 /* The GNU C library defines this for functions which it implements
37116     to always fail with ENOSYS.  Some functions are actually named
37117     something starting with __ and the normal name is an alias.  */
37118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37119 choke me
37120 #else
37121 char (*f) () = $ac_func;
37122 #endif
37123 #ifdef __cplusplus
37124 }
37125 #endif
37126
37127 int
37128 main ()
37129 {
37130 return f != $ac_func;
37131   ;
37132   return 0;
37133 }
37134 _ACEOF
37135 rm -f conftest.$ac_objext conftest$ac_exeext
37136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37137   (eval $ac_link) 2>conftest.er1
37138   ac_status=$?
37139   grep -v '^ *+' conftest.er1 >conftest.err
37140   rm -f conftest.er1
37141   cat conftest.err >&5
37142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37143   (exit $ac_status); } &&
37144          { ac_try='test -z "$ac_c_werror_flag"
37145                          || test ! -s conftest.err'
37146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37147   (eval $ac_try) 2>&5
37148   ac_status=$?
37149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37150   (exit $ac_status); }; } &&
37151          { ac_try='test -s conftest$ac_exeext'
37152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37153   (eval $ac_try) 2>&5
37154   ac_status=$?
37155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37156   (exit $ac_status); }; }; then
37157   eval "$as_ac_var=yes"
37158 else
37159   echo "$as_me: failed program was:" >&5
37160 sed 's/^/| /' conftest.$ac_ext >&5
37161
37162 eval "$as_ac_var=no"
37163 fi
37164 rm -f conftest.err conftest.$ac_objext \
37165       conftest$ac_exeext conftest.$ac_ext
37166 fi
37167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37169 if test `eval echo '${'$as_ac_var'}'` = yes; then
37170   cat >>confdefs.h <<_ACEOF
37171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37172 _ACEOF
37173
37174 fi
37175 done
37176
37177   else
37178
37179   echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
37180 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
37181   if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
37182     if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
37183   echo $ECHO_N "(cached) $ECHO_C" >&6
37184 else
37185
37186
37187
37188       ac_ext=cc
37189 ac_cpp='$CXXCPP $CPPFLAGS'
37190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37193
37194       cat >conftest.$ac_ext <<_ACEOF
37195 /* confdefs.h.  */
37196 _ACEOF
37197 cat confdefs.h >>conftest.$ac_ext
37198 cat >>conftest.$ac_ext <<_ACEOF
37199 /* end confdefs.h.  */
37200 #include <math.h>
37201 int
37202 main ()
37203 {
37204  _fmodf(0, 0);
37205   ;
37206   return 0;
37207 }
37208 _ACEOF
37209 rm -f conftest.$ac_objext
37210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37211   (eval $ac_compile) 2>conftest.er1
37212   ac_status=$?
37213   grep -v '^ *+' conftest.er1 >conftest.err
37214   rm -f conftest.er1
37215   cat conftest.err >&5
37216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37217   (exit $ac_status); } &&
37218          { ac_try='test -z "$ac_cxx_werror_flag"
37219                          || test ! -s conftest.err'
37220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37221   (eval $ac_try) 2>&5
37222   ac_status=$?
37223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37224   (exit $ac_status); }; } &&
37225          { ac_try='test -s conftest.$ac_objext'
37226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37227   (eval $ac_try) 2>&5
37228   ac_status=$?
37229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37230   (exit $ac_status); }; }; then
37231   glibcxx_cv_func__fmodf_use=yes
37232 else
37233   echo "$as_me: failed program was:" >&5
37234 sed 's/^/| /' conftest.$ac_ext >&5
37235
37236 glibcxx_cv_func__fmodf_use=no
37237 fi
37238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37239       ac_ext=c
37240 ac_cpp='$CPP $CPPFLAGS'
37241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37244
37245
37246 fi
37247
37248   fi
37249   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
37250 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
37251
37252     if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
37253
37254 for ac_func in _fmodf
37255 do
37256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37257 echo "$as_me:$LINENO: checking for $ac_func" >&5
37258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37259 if eval "test \"\${$as_ac_var+set}\" = set"; then
37260   echo $ECHO_N "(cached) $ECHO_C" >&6
37261 else
37262   if test x$gcc_no_link = xyes; then
37263   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37264 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37265    { (exit 1); exit 1; }; }
37266 fi
37267 cat >conftest.$ac_ext <<_ACEOF
37268 /* confdefs.h.  */
37269 _ACEOF
37270 cat confdefs.h >>conftest.$ac_ext
37271 cat >>conftest.$ac_ext <<_ACEOF
37272 /* end confdefs.h.  */
37273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37275 #define $ac_func innocuous_$ac_func
37276
37277 /* System header to define __stub macros and hopefully few prototypes,
37278     which can conflict with char $ac_func (); below.
37279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37280     <limits.h> exists even on freestanding compilers.  */
37281
37282 #ifdef __STDC__
37283 # include <limits.h>
37284 #else
37285 # include <assert.h>
37286 #endif
37287
37288 #undef $ac_func
37289
37290 /* Override any gcc2 internal prototype to avoid an error.  */
37291 #ifdef __cplusplus
37292 extern "C"
37293 {
37294 #endif
37295 /* We use char because int might match the return type of a gcc2
37296    builtin and then its argument prototype would still apply.  */
37297 char $ac_func ();
37298 /* The GNU C library defines this for functions which it implements
37299     to always fail with ENOSYS.  Some functions are actually named
37300     something starting with __ and the normal name is an alias.  */
37301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37302 choke me
37303 #else
37304 char (*f) () = $ac_func;
37305 #endif
37306 #ifdef __cplusplus
37307 }
37308 #endif
37309
37310 int
37311 main ()
37312 {
37313 return f != $ac_func;
37314   ;
37315   return 0;
37316 }
37317 _ACEOF
37318 rm -f conftest.$ac_objext conftest$ac_exeext
37319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37320   (eval $ac_link) 2>conftest.er1
37321   ac_status=$?
37322   grep -v '^ *+' conftest.er1 >conftest.err
37323   rm -f conftest.er1
37324   cat conftest.err >&5
37325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326   (exit $ac_status); } &&
37327          { ac_try='test -z "$ac_c_werror_flag"
37328                          || test ! -s conftest.err'
37329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37330   (eval $ac_try) 2>&5
37331   ac_status=$?
37332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333   (exit $ac_status); }; } &&
37334          { ac_try='test -s conftest$ac_exeext'
37335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37336   (eval $ac_try) 2>&5
37337   ac_status=$?
37338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339   (exit $ac_status); }; }; then
37340   eval "$as_ac_var=yes"
37341 else
37342   echo "$as_me: failed program was:" >&5
37343 sed 's/^/| /' conftest.$ac_ext >&5
37344
37345 eval "$as_ac_var=no"
37346 fi
37347 rm -f conftest.err conftest.$ac_objext \
37348       conftest$ac_exeext conftest.$ac_ext
37349 fi
37350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37352 if test `eval echo '${'$as_ac_var'}'` = yes; then
37353   cat >>confdefs.h <<_ACEOF
37354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37355 _ACEOF
37356
37357 fi
37358 done
37359
37360     fi
37361   fi
37362
37363
37364
37365   echo "$as_me:$LINENO: checking for frexpf declaration" >&5
37366 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
37367   if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
37368     if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
37369   echo $ECHO_N "(cached) $ECHO_C" >&6
37370 else
37371
37372
37373
37374       ac_ext=cc
37375 ac_cpp='$CXXCPP $CPPFLAGS'
37376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37379
37380       cat >conftest.$ac_ext <<_ACEOF
37381 /* confdefs.h.  */
37382 _ACEOF
37383 cat confdefs.h >>conftest.$ac_ext
37384 cat >>conftest.$ac_ext <<_ACEOF
37385 /* end confdefs.h.  */
37386 #include <math.h>
37387 int
37388 main ()
37389 {
37390  frexpf(0, 0);
37391   ;
37392   return 0;
37393 }
37394 _ACEOF
37395 rm -f conftest.$ac_objext
37396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37397   (eval $ac_compile) 2>conftest.er1
37398   ac_status=$?
37399   grep -v '^ *+' conftest.er1 >conftest.err
37400   rm -f conftest.er1
37401   cat conftest.err >&5
37402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403   (exit $ac_status); } &&
37404          { ac_try='test -z "$ac_cxx_werror_flag"
37405                          || test ! -s conftest.err'
37406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37407   (eval $ac_try) 2>&5
37408   ac_status=$?
37409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410   (exit $ac_status); }; } &&
37411          { ac_try='test -s conftest.$ac_objext'
37412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37413   (eval $ac_try) 2>&5
37414   ac_status=$?
37415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416   (exit $ac_status); }; }; then
37417   glibcxx_cv_func_frexpf_use=yes
37418 else
37419   echo "$as_me: failed program was:" >&5
37420 sed 's/^/| /' conftest.$ac_ext >&5
37421
37422 glibcxx_cv_func_frexpf_use=no
37423 fi
37424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37425       ac_ext=c
37426 ac_cpp='$CPP $CPPFLAGS'
37427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37430
37431
37432 fi
37433
37434   fi
37435   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
37436 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
37437
37438   if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
37439
37440 for ac_func in frexpf
37441 do
37442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37443 echo "$as_me:$LINENO: checking for $ac_func" >&5
37444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37445 if eval "test \"\${$as_ac_var+set}\" = set"; then
37446   echo $ECHO_N "(cached) $ECHO_C" >&6
37447 else
37448   if test x$gcc_no_link = xyes; then
37449   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37450 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37451    { (exit 1); exit 1; }; }
37452 fi
37453 cat >conftest.$ac_ext <<_ACEOF
37454 /* confdefs.h.  */
37455 _ACEOF
37456 cat confdefs.h >>conftest.$ac_ext
37457 cat >>conftest.$ac_ext <<_ACEOF
37458 /* end confdefs.h.  */
37459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37460    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37461 #define $ac_func innocuous_$ac_func
37462
37463 /* System header to define __stub macros and hopefully few prototypes,
37464     which can conflict with char $ac_func (); below.
37465     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37466     <limits.h> exists even on freestanding compilers.  */
37467
37468 #ifdef __STDC__
37469 # include <limits.h>
37470 #else
37471 # include <assert.h>
37472 #endif
37473
37474 #undef $ac_func
37475
37476 /* Override any gcc2 internal prototype to avoid an error.  */
37477 #ifdef __cplusplus
37478 extern "C"
37479 {
37480 #endif
37481 /* We use char because int might match the return type of a gcc2
37482    builtin and then its argument prototype would still apply.  */
37483 char $ac_func ();
37484 /* The GNU C library defines this for functions which it implements
37485     to always fail with ENOSYS.  Some functions are actually named
37486     something starting with __ and the normal name is an alias.  */
37487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37488 choke me
37489 #else
37490 char (*f) () = $ac_func;
37491 #endif
37492 #ifdef __cplusplus
37493 }
37494 #endif
37495
37496 int
37497 main ()
37498 {
37499 return f != $ac_func;
37500   ;
37501   return 0;
37502 }
37503 _ACEOF
37504 rm -f conftest.$ac_objext conftest$ac_exeext
37505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37506   (eval $ac_link) 2>conftest.er1
37507   ac_status=$?
37508   grep -v '^ *+' conftest.er1 >conftest.err
37509   rm -f conftest.er1
37510   cat conftest.err >&5
37511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512   (exit $ac_status); } &&
37513          { ac_try='test -z "$ac_c_werror_flag"
37514                          || test ! -s conftest.err'
37515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37516   (eval $ac_try) 2>&5
37517   ac_status=$?
37518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37519   (exit $ac_status); }; } &&
37520          { ac_try='test -s conftest$ac_exeext'
37521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37522   (eval $ac_try) 2>&5
37523   ac_status=$?
37524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37525   (exit $ac_status); }; }; then
37526   eval "$as_ac_var=yes"
37527 else
37528   echo "$as_me: failed program was:" >&5
37529 sed 's/^/| /' conftest.$ac_ext >&5
37530
37531 eval "$as_ac_var=no"
37532 fi
37533 rm -f conftest.err conftest.$ac_objext \
37534       conftest$ac_exeext conftest.$ac_ext
37535 fi
37536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37538 if test `eval echo '${'$as_ac_var'}'` = yes; then
37539   cat >>confdefs.h <<_ACEOF
37540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37541 _ACEOF
37542
37543 fi
37544 done
37545
37546   else
37547
37548   echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
37549 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
37550   if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
37551     if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
37552   echo $ECHO_N "(cached) $ECHO_C" >&6
37553 else
37554
37555
37556
37557       ac_ext=cc
37558 ac_cpp='$CXXCPP $CPPFLAGS'
37559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37562
37563       cat >conftest.$ac_ext <<_ACEOF
37564 /* confdefs.h.  */
37565 _ACEOF
37566 cat confdefs.h >>conftest.$ac_ext
37567 cat >>conftest.$ac_ext <<_ACEOF
37568 /* end confdefs.h.  */
37569 #include <math.h>
37570 int
37571 main ()
37572 {
37573  _frexpf(0, 0);
37574   ;
37575   return 0;
37576 }
37577 _ACEOF
37578 rm -f conftest.$ac_objext
37579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37580   (eval $ac_compile) 2>conftest.er1
37581   ac_status=$?
37582   grep -v '^ *+' conftest.er1 >conftest.err
37583   rm -f conftest.er1
37584   cat conftest.err >&5
37585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37586   (exit $ac_status); } &&
37587          { ac_try='test -z "$ac_cxx_werror_flag"
37588                          || test ! -s conftest.err'
37589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37590   (eval $ac_try) 2>&5
37591   ac_status=$?
37592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37593   (exit $ac_status); }; } &&
37594          { ac_try='test -s conftest.$ac_objext'
37595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37596   (eval $ac_try) 2>&5
37597   ac_status=$?
37598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599   (exit $ac_status); }; }; then
37600   glibcxx_cv_func__frexpf_use=yes
37601 else
37602   echo "$as_me: failed program was:" >&5
37603 sed 's/^/| /' conftest.$ac_ext >&5
37604
37605 glibcxx_cv_func__frexpf_use=no
37606 fi
37607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37608       ac_ext=c
37609 ac_cpp='$CPP $CPPFLAGS'
37610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37613
37614
37615 fi
37616
37617   fi
37618   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
37619 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
37620
37621     if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
37622
37623 for ac_func in _frexpf
37624 do
37625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37626 echo "$as_me:$LINENO: checking for $ac_func" >&5
37627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37628 if eval "test \"\${$as_ac_var+set}\" = set"; then
37629   echo $ECHO_N "(cached) $ECHO_C" >&6
37630 else
37631   if test x$gcc_no_link = xyes; then
37632   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37634    { (exit 1); exit 1; }; }
37635 fi
37636 cat >conftest.$ac_ext <<_ACEOF
37637 /* confdefs.h.  */
37638 _ACEOF
37639 cat confdefs.h >>conftest.$ac_ext
37640 cat >>conftest.$ac_ext <<_ACEOF
37641 /* end confdefs.h.  */
37642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37644 #define $ac_func innocuous_$ac_func
37645
37646 /* System header to define __stub macros and hopefully few prototypes,
37647     which can conflict with char $ac_func (); below.
37648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37649     <limits.h> exists even on freestanding compilers.  */
37650
37651 #ifdef __STDC__
37652 # include <limits.h>
37653 #else
37654 # include <assert.h>
37655 #endif
37656
37657 #undef $ac_func
37658
37659 /* Override any gcc2 internal prototype to avoid an error.  */
37660 #ifdef __cplusplus
37661 extern "C"
37662 {
37663 #endif
37664 /* We use char because int might match the return type of a gcc2
37665    builtin and then its argument prototype would still apply.  */
37666 char $ac_func ();
37667 /* The GNU C library defines this for functions which it implements
37668     to always fail with ENOSYS.  Some functions are actually named
37669     something starting with __ and the normal name is an alias.  */
37670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37671 choke me
37672 #else
37673 char (*f) () = $ac_func;
37674 #endif
37675 #ifdef __cplusplus
37676 }
37677 #endif
37678
37679 int
37680 main ()
37681 {
37682 return f != $ac_func;
37683   ;
37684   return 0;
37685 }
37686 _ACEOF
37687 rm -f conftest.$ac_objext conftest$ac_exeext
37688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37689   (eval $ac_link) 2>conftest.er1
37690   ac_status=$?
37691   grep -v '^ *+' conftest.er1 >conftest.err
37692   rm -f conftest.er1
37693   cat conftest.err >&5
37694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37695   (exit $ac_status); } &&
37696          { ac_try='test -z "$ac_c_werror_flag"
37697                          || test ! -s conftest.err'
37698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37699   (eval $ac_try) 2>&5
37700   ac_status=$?
37701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37702   (exit $ac_status); }; } &&
37703          { ac_try='test -s conftest$ac_exeext'
37704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37705   (eval $ac_try) 2>&5
37706   ac_status=$?
37707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37708   (exit $ac_status); }; }; then
37709   eval "$as_ac_var=yes"
37710 else
37711   echo "$as_me: failed program was:" >&5
37712 sed 's/^/| /' conftest.$ac_ext >&5
37713
37714 eval "$as_ac_var=no"
37715 fi
37716 rm -f conftest.err conftest.$ac_objext \
37717       conftest$ac_exeext conftest.$ac_ext
37718 fi
37719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37721 if test `eval echo '${'$as_ac_var'}'` = yes; then
37722   cat >>confdefs.h <<_ACEOF
37723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37724 _ACEOF
37725
37726 fi
37727 done
37728
37729     fi
37730   fi
37731
37732
37733
37734   echo "$as_me:$LINENO: checking for hypotf declaration" >&5
37735 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
37736   if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
37737     if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
37738   echo $ECHO_N "(cached) $ECHO_C" >&6
37739 else
37740
37741
37742
37743       ac_ext=cc
37744 ac_cpp='$CXXCPP $CPPFLAGS'
37745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37748
37749       cat >conftest.$ac_ext <<_ACEOF
37750 /* confdefs.h.  */
37751 _ACEOF
37752 cat confdefs.h >>conftest.$ac_ext
37753 cat >>conftest.$ac_ext <<_ACEOF
37754 /* end confdefs.h.  */
37755 #include <math.h>
37756 int
37757 main ()
37758 {
37759  hypotf(0, 0);
37760   ;
37761   return 0;
37762 }
37763 _ACEOF
37764 rm -f conftest.$ac_objext
37765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37766   (eval $ac_compile) 2>conftest.er1
37767   ac_status=$?
37768   grep -v '^ *+' conftest.er1 >conftest.err
37769   rm -f conftest.er1
37770   cat conftest.err >&5
37771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772   (exit $ac_status); } &&
37773          { ac_try='test -z "$ac_cxx_werror_flag"
37774                          || test ! -s conftest.err'
37775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37776   (eval $ac_try) 2>&5
37777   ac_status=$?
37778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37779   (exit $ac_status); }; } &&
37780          { ac_try='test -s conftest.$ac_objext'
37781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37782   (eval $ac_try) 2>&5
37783   ac_status=$?
37784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37785   (exit $ac_status); }; }; then
37786   glibcxx_cv_func_hypotf_use=yes
37787 else
37788   echo "$as_me: failed program was:" >&5
37789 sed 's/^/| /' conftest.$ac_ext >&5
37790
37791 glibcxx_cv_func_hypotf_use=no
37792 fi
37793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37794       ac_ext=c
37795 ac_cpp='$CPP $CPPFLAGS'
37796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37799
37800
37801 fi
37802
37803   fi
37804   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
37805 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
37806
37807   if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
37808
37809 for ac_func in hypotf
37810 do
37811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37812 echo "$as_me:$LINENO: checking for $ac_func" >&5
37813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37814 if eval "test \"\${$as_ac_var+set}\" = set"; then
37815   echo $ECHO_N "(cached) $ECHO_C" >&6
37816 else
37817   if test x$gcc_no_link = xyes; then
37818   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
37819 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
37820    { (exit 1); exit 1; }; }
37821 fi
37822 cat >conftest.$ac_ext <<_ACEOF
37823 /* confdefs.h.  */
37824 _ACEOF
37825 cat confdefs.h >>conftest.$ac_ext
37826 cat >>conftest.$ac_ext <<_ACEOF
37827 /* end confdefs.h.  */
37828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37830 #define $ac_func innocuous_$ac_func
37831
37832 /* System header to define __stub macros and hopefully few prototypes,
37833     which can conflict with char $ac_func (); below.
37834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37835     <limits.h> exists even on freestanding compilers.  */
37836
37837 #ifdef __STDC__
37838 # include <limits.h>
37839 #else
37840 # include <assert.h>
37841 #endif
37842
37843 #undef $ac_func
37844
37845 /* Override any gcc2 internal prototype to avoid an error.  */
37846 #ifdef __cplusplus
37847 extern "C"
37848 {
37849 #endif
37850 /* We use char because int might match the return type of a gcc2
37851    builtin and then its argument prototype would still apply.  */
37852 char $ac_func ();
37853 /* The GNU C library defines this for functions which it implements
37854     to always fail with ENOSYS.  Some functions are actually named
37855     something starting with __ and the normal name is an alias.  */
37856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37857 choke me
37858 #else
37859 char (*f) () = $ac_func;
37860 #endif
37861 #ifdef __cplusplus
37862 }
37863 #endif
37864
37865 int
37866 main ()
37867 {
37868 return f != $ac_func;
37869   ;
37870   return 0;
37871 }
37872 _ACEOF
37873 rm -f conftest.$ac_objext conftest$ac_exeext
37874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37875   (eval $ac_link) 2>conftest.er1
37876   ac_status=$?
37877   grep -v '^ *+' conftest.er1 >conftest.err
37878   rm -f conftest.er1
37879   cat conftest.err >&5
37880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37881   (exit $ac_status); } &&
37882          { ac_try='test -z "$ac_c_werror_flag"
37883                          || test ! -s conftest.err'
37884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37885   (eval $ac_try) 2>&5
37886   ac_status=$?
37887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37888   (exit $ac_status); }; } &&
37889          { ac_try='test -s conftest$ac_exeext'
37890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37891   (eval $ac_try) 2>&5
37892   ac_status=$?
37893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37894   (exit $ac_status); }; }; then
37895   eval "$as_ac_var=yes"
37896 else
37897   echo "$as_me: failed program was:" >&5
37898 sed 's/^/| /' conftest.$ac_ext >&5
37899
37900 eval "$as_ac_var=no"
37901 fi
37902 rm -f conftest.err conftest.$ac_objext \
37903       conftest$ac_exeext conftest.$ac_ext
37904 fi
37905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37906 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37907 if test `eval echo '${'$as_ac_var'}'` = yes; then
37908   cat >>confdefs.h <<_ACEOF
37909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37910 _ACEOF
37911
37912 fi
37913 done
37914
37915   else
37916
37917   echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
37918 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
37919   if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
37920     if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
37921   echo $ECHO_N "(cached) $ECHO_C" >&6
37922 else
37923
37924
37925
37926       ac_ext=cc
37927 ac_cpp='$CXXCPP $CPPFLAGS'
37928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37931
37932       cat >conftest.$ac_ext <<_ACEOF
37933 /* confdefs.h.  */
37934 _ACEOF
37935 cat confdefs.h >>conftest.$ac_ext
37936 cat >>conftest.$ac_ext <<_ACEOF
37937 /* end confdefs.h.  */
37938 #include <math.h>
37939 int
37940 main ()
37941 {
37942  _hypotf(0, 0);
37943   ;
37944   return 0;
37945 }
37946 _ACEOF
37947 rm -f conftest.$ac_objext
37948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37949   (eval $ac_compile) 2>conftest.er1
37950   ac_status=$?
37951   grep -v '^ *+' conftest.er1 >conftest.err
37952   rm -f conftest.er1
37953   cat conftest.err >&5
37954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37955   (exit $ac_status); } &&
37956          { ac_try='test -z "$ac_cxx_werror_flag"
37957                          || test ! -s conftest.err'
37958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37959   (eval $ac_try) 2>&5
37960   ac_status=$?
37961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37962   (exit $ac_status); }; } &&
37963          { ac_try='test -s conftest.$ac_objext'
37964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37965   (eval $ac_try) 2>&5
37966   ac_status=$?
37967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37968   (exit $ac_status); }; }; then
37969   glibcxx_cv_func__hypotf_use=yes
37970 else
37971   echo "$as_me: failed program was:" >&5
37972 sed 's/^/| /' conftest.$ac_ext >&5
37973
37974 glibcxx_cv_func__hypotf_use=no
37975 fi
37976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37977       ac_ext=c
37978 ac_cpp='$CPP $CPPFLAGS'
37979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37982
37983
37984 fi
37985
37986   fi
37987   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
37988 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
37989
37990     if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
37991
37992 for ac_func in _hypotf
37993 do
37994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37995 echo "$as_me:$LINENO: checking for $ac_func" >&5
37996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37997 if eval "test \"\${$as_ac_var+set}\" = set"; then
37998   echo $ECHO_N "(cached) $ECHO_C" >&6
37999 else
38000   if test x$gcc_no_link = xyes; then
38001   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38002 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38003    { (exit 1); exit 1; }; }
38004 fi
38005 cat >conftest.$ac_ext <<_ACEOF
38006 /* confdefs.h.  */
38007 _ACEOF
38008 cat confdefs.h >>conftest.$ac_ext
38009 cat >>conftest.$ac_ext <<_ACEOF
38010 /* end confdefs.h.  */
38011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38013 #define $ac_func innocuous_$ac_func
38014
38015 /* System header to define __stub macros and hopefully few prototypes,
38016     which can conflict with char $ac_func (); below.
38017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38018     <limits.h> exists even on freestanding compilers.  */
38019
38020 #ifdef __STDC__
38021 # include <limits.h>
38022 #else
38023 # include <assert.h>
38024 #endif
38025
38026 #undef $ac_func
38027
38028 /* Override any gcc2 internal prototype to avoid an error.  */
38029 #ifdef __cplusplus
38030 extern "C"
38031 {
38032 #endif
38033 /* We use char because int might match the return type of a gcc2
38034    builtin and then its argument prototype would still apply.  */
38035 char $ac_func ();
38036 /* The GNU C library defines this for functions which it implements
38037     to always fail with ENOSYS.  Some functions are actually named
38038     something starting with __ and the normal name is an alias.  */
38039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38040 choke me
38041 #else
38042 char (*f) () = $ac_func;
38043 #endif
38044 #ifdef __cplusplus
38045 }
38046 #endif
38047
38048 int
38049 main ()
38050 {
38051 return f != $ac_func;
38052   ;
38053   return 0;
38054 }
38055 _ACEOF
38056 rm -f conftest.$ac_objext conftest$ac_exeext
38057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38058   (eval $ac_link) 2>conftest.er1
38059   ac_status=$?
38060   grep -v '^ *+' conftest.er1 >conftest.err
38061   rm -f conftest.er1
38062   cat conftest.err >&5
38063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38064   (exit $ac_status); } &&
38065          { ac_try='test -z "$ac_c_werror_flag"
38066                          || test ! -s conftest.err'
38067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38068   (eval $ac_try) 2>&5
38069   ac_status=$?
38070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38071   (exit $ac_status); }; } &&
38072          { ac_try='test -s conftest$ac_exeext'
38073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38074   (eval $ac_try) 2>&5
38075   ac_status=$?
38076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38077   (exit $ac_status); }; }; then
38078   eval "$as_ac_var=yes"
38079 else
38080   echo "$as_me: failed program was:" >&5
38081 sed 's/^/| /' conftest.$ac_ext >&5
38082
38083 eval "$as_ac_var=no"
38084 fi
38085 rm -f conftest.err conftest.$ac_objext \
38086       conftest$ac_exeext conftest.$ac_ext
38087 fi
38088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38090 if test `eval echo '${'$as_ac_var'}'` = yes; then
38091   cat >>confdefs.h <<_ACEOF
38092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38093 _ACEOF
38094
38095 fi
38096 done
38097
38098     fi
38099   fi
38100
38101
38102
38103   echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
38104 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
38105   if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
38106     if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
38107   echo $ECHO_N "(cached) $ECHO_C" >&6
38108 else
38109
38110
38111
38112       ac_ext=cc
38113 ac_cpp='$CXXCPP $CPPFLAGS'
38114 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38115 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38116 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38117
38118       cat >conftest.$ac_ext <<_ACEOF
38119 /* confdefs.h.  */
38120 _ACEOF
38121 cat confdefs.h >>conftest.$ac_ext
38122 cat >>conftest.$ac_ext <<_ACEOF
38123 /* end confdefs.h.  */
38124 #include <math.h>
38125 int
38126 main ()
38127 {
38128  ldexpf(0, 0);
38129   ;
38130   return 0;
38131 }
38132 _ACEOF
38133 rm -f conftest.$ac_objext
38134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38135   (eval $ac_compile) 2>conftest.er1
38136   ac_status=$?
38137   grep -v '^ *+' conftest.er1 >conftest.err
38138   rm -f conftest.er1
38139   cat conftest.err >&5
38140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38141   (exit $ac_status); } &&
38142          { ac_try='test -z "$ac_cxx_werror_flag"
38143                          || test ! -s conftest.err'
38144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38145   (eval $ac_try) 2>&5
38146   ac_status=$?
38147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38148   (exit $ac_status); }; } &&
38149          { ac_try='test -s conftest.$ac_objext'
38150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38151   (eval $ac_try) 2>&5
38152   ac_status=$?
38153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38154   (exit $ac_status); }; }; then
38155   glibcxx_cv_func_ldexpf_use=yes
38156 else
38157   echo "$as_me: failed program was:" >&5
38158 sed 's/^/| /' conftest.$ac_ext >&5
38159
38160 glibcxx_cv_func_ldexpf_use=no
38161 fi
38162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38163       ac_ext=c
38164 ac_cpp='$CPP $CPPFLAGS'
38165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38168
38169
38170 fi
38171
38172   fi
38173   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
38174 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
38175
38176   if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
38177
38178 for ac_func in ldexpf
38179 do
38180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38181 echo "$as_me:$LINENO: checking for $ac_func" >&5
38182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38183 if eval "test \"\${$as_ac_var+set}\" = set"; then
38184   echo $ECHO_N "(cached) $ECHO_C" >&6
38185 else
38186   if test x$gcc_no_link = xyes; then
38187   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38189    { (exit 1); exit 1; }; }
38190 fi
38191 cat >conftest.$ac_ext <<_ACEOF
38192 /* confdefs.h.  */
38193 _ACEOF
38194 cat confdefs.h >>conftest.$ac_ext
38195 cat >>conftest.$ac_ext <<_ACEOF
38196 /* end confdefs.h.  */
38197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38199 #define $ac_func innocuous_$ac_func
38200
38201 /* System header to define __stub macros and hopefully few prototypes,
38202     which can conflict with char $ac_func (); below.
38203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38204     <limits.h> exists even on freestanding compilers.  */
38205
38206 #ifdef __STDC__
38207 # include <limits.h>
38208 #else
38209 # include <assert.h>
38210 #endif
38211
38212 #undef $ac_func
38213
38214 /* Override any gcc2 internal prototype to avoid an error.  */
38215 #ifdef __cplusplus
38216 extern "C"
38217 {
38218 #endif
38219 /* We use char because int might match the return type of a gcc2
38220    builtin and then its argument prototype would still apply.  */
38221 char $ac_func ();
38222 /* The GNU C library defines this for functions which it implements
38223     to always fail with ENOSYS.  Some functions are actually named
38224     something starting with __ and the normal name is an alias.  */
38225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38226 choke me
38227 #else
38228 char (*f) () = $ac_func;
38229 #endif
38230 #ifdef __cplusplus
38231 }
38232 #endif
38233
38234 int
38235 main ()
38236 {
38237 return f != $ac_func;
38238   ;
38239   return 0;
38240 }
38241 _ACEOF
38242 rm -f conftest.$ac_objext conftest$ac_exeext
38243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38244   (eval $ac_link) 2>conftest.er1
38245   ac_status=$?
38246   grep -v '^ *+' conftest.er1 >conftest.err
38247   rm -f conftest.er1
38248   cat conftest.err >&5
38249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38250   (exit $ac_status); } &&
38251          { ac_try='test -z "$ac_c_werror_flag"
38252                          || test ! -s conftest.err'
38253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38254   (eval $ac_try) 2>&5
38255   ac_status=$?
38256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38257   (exit $ac_status); }; } &&
38258          { ac_try='test -s conftest$ac_exeext'
38259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38260   (eval $ac_try) 2>&5
38261   ac_status=$?
38262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38263   (exit $ac_status); }; }; then
38264   eval "$as_ac_var=yes"
38265 else
38266   echo "$as_me: failed program was:" >&5
38267 sed 's/^/| /' conftest.$ac_ext >&5
38268
38269 eval "$as_ac_var=no"
38270 fi
38271 rm -f conftest.err conftest.$ac_objext \
38272       conftest$ac_exeext conftest.$ac_ext
38273 fi
38274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38276 if test `eval echo '${'$as_ac_var'}'` = yes; then
38277   cat >>confdefs.h <<_ACEOF
38278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38279 _ACEOF
38280
38281 fi
38282 done
38283
38284   else
38285
38286   echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
38287 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
38288   if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
38289     if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
38290   echo $ECHO_N "(cached) $ECHO_C" >&6
38291 else
38292
38293
38294
38295       ac_ext=cc
38296 ac_cpp='$CXXCPP $CPPFLAGS'
38297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38300
38301       cat >conftest.$ac_ext <<_ACEOF
38302 /* confdefs.h.  */
38303 _ACEOF
38304 cat confdefs.h >>conftest.$ac_ext
38305 cat >>conftest.$ac_ext <<_ACEOF
38306 /* end confdefs.h.  */
38307 #include <math.h>
38308 int
38309 main ()
38310 {
38311  _ldexpf(0, 0);
38312   ;
38313   return 0;
38314 }
38315 _ACEOF
38316 rm -f conftest.$ac_objext
38317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38318   (eval $ac_compile) 2>conftest.er1
38319   ac_status=$?
38320   grep -v '^ *+' conftest.er1 >conftest.err
38321   rm -f conftest.er1
38322   cat conftest.err >&5
38323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38324   (exit $ac_status); } &&
38325          { ac_try='test -z "$ac_cxx_werror_flag"
38326                          || test ! -s conftest.err'
38327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38328   (eval $ac_try) 2>&5
38329   ac_status=$?
38330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38331   (exit $ac_status); }; } &&
38332          { ac_try='test -s conftest.$ac_objext'
38333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38334   (eval $ac_try) 2>&5
38335   ac_status=$?
38336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38337   (exit $ac_status); }; }; then
38338   glibcxx_cv_func__ldexpf_use=yes
38339 else
38340   echo "$as_me: failed program was:" >&5
38341 sed 's/^/| /' conftest.$ac_ext >&5
38342
38343 glibcxx_cv_func__ldexpf_use=no
38344 fi
38345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38346       ac_ext=c
38347 ac_cpp='$CPP $CPPFLAGS'
38348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38351
38352
38353 fi
38354
38355   fi
38356   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
38357 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
38358
38359     if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
38360
38361 for ac_func in _ldexpf
38362 do
38363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38364 echo "$as_me:$LINENO: checking for $ac_func" >&5
38365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38366 if eval "test \"\${$as_ac_var+set}\" = set"; then
38367   echo $ECHO_N "(cached) $ECHO_C" >&6
38368 else
38369   if test x$gcc_no_link = xyes; then
38370   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38371 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38372    { (exit 1); exit 1; }; }
38373 fi
38374 cat >conftest.$ac_ext <<_ACEOF
38375 /* confdefs.h.  */
38376 _ACEOF
38377 cat confdefs.h >>conftest.$ac_ext
38378 cat >>conftest.$ac_ext <<_ACEOF
38379 /* end confdefs.h.  */
38380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38382 #define $ac_func innocuous_$ac_func
38383
38384 /* System header to define __stub macros and hopefully few prototypes,
38385     which can conflict with char $ac_func (); below.
38386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38387     <limits.h> exists even on freestanding compilers.  */
38388
38389 #ifdef __STDC__
38390 # include <limits.h>
38391 #else
38392 # include <assert.h>
38393 #endif
38394
38395 #undef $ac_func
38396
38397 /* Override any gcc2 internal prototype to avoid an error.  */
38398 #ifdef __cplusplus
38399 extern "C"
38400 {
38401 #endif
38402 /* We use char because int might match the return type of a gcc2
38403    builtin and then its argument prototype would still apply.  */
38404 char $ac_func ();
38405 /* The GNU C library defines this for functions which it implements
38406     to always fail with ENOSYS.  Some functions are actually named
38407     something starting with __ and the normal name is an alias.  */
38408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38409 choke me
38410 #else
38411 char (*f) () = $ac_func;
38412 #endif
38413 #ifdef __cplusplus
38414 }
38415 #endif
38416
38417 int
38418 main ()
38419 {
38420 return f != $ac_func;
38421   ;
38422   return 0;
38423 }
38424 _ACEOF
38425 rm -f conftest.$ac_objext conftest$ac_exeext
38426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38427   (eval $ac_link) 2>conftest.er1
38428   ac_status=$?
38429   grep -v '^ *+' conftest.er1 >conftest.err
38430   rm -f conftest.er1
38431   cat conftest.err >&5
38432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38433   (exit $ac_status); } &&
38434          { ac_try='test -z "$ac_c_werror_flag"
38435                          || test ! -s conftest.err'
38436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38437   (eval $ac_try) 2>&5
38438   ac_status=$?
38439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38440   (exit $ac_status); }; } &&
38441          { ac_try='test -s conftest$ac_exeext'
38442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38443   (eval $ac_try) 2>&5
38444   ac_status=$?
38445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38446   (exit $ac_status); }; }; then
38447   eval "$as_ac_var=yes"
38448 else
38449   echo "$as_me: failed program was:" >&5
38450 sed 's/^/| /' conftest.$ac_ext >&5
38451
38452 eval "$as_ac_var=no"
38453 fi
38454 rm -f conftest.err conftest.$ac_objext \
38455       conftest$ac_exeext conftest.$ac_ext
38456 fi
38457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38459 if test `eval echo '${'$as_ac_var'}'` = yes; then
38460   cat >>confdefs.h <<_ACEOF
38461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38462 _ACEOF
38463
38464 fi
38465 done
38466
38467     fi
38468   fi
38469
38470
38471
38472   echo "$as_me:$LINENO: checking for logf declaration" >&5
38473 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
38474   if test x${glibcxx_cv_func_logf_use+set} != xset; then
38475     if test "${glibcxx_cv_func_logf_use+set}" = set; then
38476   echo $ECHO_N "(cached) $ECHO_C" >&6
38477 else
38478
38479
38480
38481       ac_ext=cc
38482 ac_cpp='$CXXCPP $CPPFLAGS'
38483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38486
38487       cat >conftest.$ac_ext <<_ACEOF
38488 /* confdefs.h.  */
38489 _ACEOF
38490 cat confdefs.h >>conftest.$ac_ext
38491 cat >>conftest.$ac_ext <<_ACEOF
38492 /* end confdefs.h.  */
38493 #include <math.h>
38494                       #ifdef HAVE_IEEEFP_H
38495                       #include <ieeefp.h>
38496                       #endif
38497
38498 int
38499 main ()
38500 {
38501  logf(0);
38502   ;
38503   return 0;
38504 }
38505 _ACEOF
38506 rm -f conftest.$ac_objext
38507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38508   (eval $ac_compile) 2>conftest.er1
38509   ac_status=$?
38510   grep -v '^ *+' conftest.er1 >conftest.err
38511   rm -f conftest.er1
38512   cat conftest.err >&5
38513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514   (exit $ac_status); } &&
38515          { ac_try='test -z "$ac_cxx_werror_flag"
38516                          || test ! -s conftest.err'
38517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38518   (eval $ac_try) 2>&5
38519   ac_status=$?
38520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521   (exit $ac_status); }; } &&
38522          { ac_try='test -s conftest.$ac_objext'
38523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38524   (eval $ac_try) 2>&5
38525   ac_status=$?
38526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527   (exit $ac_status); }; }; then
38528   glibcxx_cv_func_logf_use=yes
38529 else
38530   echo "$as_me: failed program was:" >&5
38531 sed 's/^/| /' conftest.$ac_ext >&5
38532
38533 glibcxx_cv_func_logf_use=no
38534 fi
38535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38536       ac_ext=c
38537 ac_cpp='$CPP $CPPFLAGS'
38538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38541
38542
38543 fi
38544
38545   fi
38546   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
38547 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
38548
38549   if test x$glibcxx_cv_func_logf_use = x"yes"; then
38550
38551 for ac_func in logf
38552 do
38553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38554 echo "$as_me:$LINENO: checking for $ac_func" >&5
38555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38556 if eval "test \"\${$as_ac_var+set}\" = set"; then
38557   echo $ECHO_N "(cached) $ECHO_C" >&6
38558 else
38559   if test x$gcc_no_link = xyes; then
38560   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38561 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38562    { (exit 1); exit 1; }; }
38563 fi
38564 cat >conftest.$ac_ext <<_ACEOF
38565 /* confdefs.h.  */
38566 _ACEOF
38567 cat confdefs.h >>conftest.$ac_ext
38568 cat >>conftest.$ac_ext <<_ACEOF
38569 /* end confdefs.h.  */
38570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38572 #define $ac_func innocuous_$ac_func
38573
38574 /* System header to define __stub macros and hopefully few prototypes,
38575     which can conflict with char $ac_func (); below.
38576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38577     <limits.h> exists even on freestanding compilers.  */
38578
38579 #ifdef __STDC__
38580 # include <limits.h>
38581 #else
38582 # include <assert.h>
38583 #endif
38584
38585 #undef $ac_func
38586
38587 /* Override any gcc2 internal prototype to avoid an error.  */
38588 #ifdef __cplusplus
38589 extern "C"
38590 {
38591 #endif
38592 /* We use char because int might match the return type of a gcc2
38593    builtin and then its argument prototype would still apply.  */
38594 char $ac_func ();
38595 /* The GNU C library defines this for functions which it implements
38596     to always fail with ENOSYS.  Some functions are actually named
38597     something starting with __ and the normal name is an alias.  */
38598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38599 choke me
38600 #else
38601 char (*f) () = $ac_func;
38602 #endif
38603 #ifdef __cplusplus
38604 }
38605 #endif
38606
38607 int
38608 main ()
38609 {
38610 return f != $ac_func;
38611   ;
38612   return 0;
38613 }
38614 _ACEOF
38615 rm -f conftest.$ac_objext conftest$ac_exeext
38616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38617   (eval $ac_link) 2>conftest.er1
38618   ac_status=$?
38619   grep -v '^ *+' conftest.er1 >conftest.err
38620   rm -f conftest.er1
38621   cat conftest.err >&5
38622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623   (exit $ac_status); } &&
38624          { ac_try='test -z "$ac_c_werror_flag"
38625                          || test ! -s conftest.err'
38626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38627   (eval $ac_try) 2>&5
38628   ac_status=$?
38629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630   (exit $ac_status); }; } &&
38631          { ac_try='test -s conftest$ac_exeext'
38632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38633   (eval $ac_try) 2>&5
38634   ac_status=$?
38635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38636   (exit $ac_status); }; }; then
38637   eval "$as_ac_var=yes"
38638 else
38639   echo "$as_me: failed program was:" >&5
38640 sed 's/^/| /' conftest.$ac_ext >&5
38641
38642 eval "$as_ac_var=no"
38643 fi
38644 rm -f conftest.err conftest.$ac_objext \
38645       conftest$ac_exeext conftest.$ac_ext
38646 fi
38647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38649 if test `eval echo '${'$as_ac_var'}'` = yes; then
38650   cat >>confdefs.h <<_ACEOF
38651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38652 _ACEOF
38653
38654 fi
38655 done
38656
38657   else
38658
38659   echo "$as_me:$LINENO: checking for _logf declaration" >&5
38660 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
38661   if test x${glibcxx_cv_func__logf_use+set} != xset; then
38662     if test "${glibcxx_cv_func__logf_use+set}" = set; then
38663   echo $ECHO_N "(cached) $ECHO_C" >&6
38664 else
38665
38666
38667
38668       ac_ext=cc
38669 ac_cpp='$CXXCPP $CPPFLAGS'
38670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38673
38674       cat >conftest.$ac_ext <<_ACEOF
38675 /* confdefs.h.  */
38676 _ACEOF
38677 cat confdefs.h >>conftest.$ac_ext
38678 cat >>conftest.$ac_ext <<_ACEOF
38679 /* end confdefs.h.  */
38680 #include <math.h>
38681                       #ifdef HAVE_IEEEFP_H
38682                       #include <ieeefp.h>
38683                       #endif
38684
38685 int
38686 main ()
38687 {
38688  _logf(0);
38689   ;
38690   return 0;
38691 }
38692 _ACEOF
38693 rm -f conftest.$ac_objext
38694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38695   (eval $ac_compile) 2>conftest.er1
38696   ac_status=$?
38697   grep -v '^ *+' conftest.er1 >conftest.err
38698   rm -f conftest.er1
38699   cat conftest.err >&5
38700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38701   (exit $ac_status); } &&
38702          { ac_try='test -z "$ac_cxx_werror_flag"
38703                          || test ! -s conftest.err'
38704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38705   (eval $ac_try) 2>&5
38706   ac_status=$?
38707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38708   (exit $ac_status); }; } &&
38709          { ac_try='test -s conftest.$ac_objext'
38710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38711   (eval $ac_try) 2>&5
38712   ac_status=$?
38713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38714   (exit $ac_status); }; }; then
38715   glibcxx_cv_func__logf_use=yes
38716 else
38717   echo "$as_me: failed program was:" >&5
38718 sed 's/^/| /' conftest.$ac_ext >&5
38719
38720 glibcxx_cv_func__logf_use=no
38721 fi
38722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38723       ac_ext=c
38724 ac_cpp='$CPP $CPPFLAGS'
38725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38728
38729
38730 fi
38731
38732   fi
38733   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
38734 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
38735
38736     if test x$glibcxx_cv_func__logf_use = x"yes"; then
38737
38738 for ac_func in _logf
38739 do
38740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38741 echo "$as_me:$LINENO: checking for $ac_func" >&5
38742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38743 if eval "test \"\${$as_ac_var+set}\" = set"; then
38744   echo $ECHO_N "(cached) $ECHO_C" >&6
38745 else
38746   if test x$gcc_no_link = xyes; then
38747   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38749    { (exit 1); exit 1; }; }
38750 fi
38751 cat >conftest.$ac_ext <<_ACEOF
38752 /* confdefs.h.  */
38753 _ACEOF
38754 cat confdefs.h >>conftest.$ac_ext
38755 cat >>conftest.$ac_ext <<_ACEOF
38756 /* end confdefs.h.  */
38757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38759 #define $ac_func innocuous_$ac_func
38760
38761 /* System header to define __stub macros and hopefully few prototypes,
38762     which can conflict with char $ac_func (); below.
38763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38764     <limits.h> exists even on freestanding compilers.  */
38765
38766 #ifdef __STDC__
38767 # include <limits.h>
38768 #else
38769 # include <assert.h>
38770 #endif
38771
38772 #undef $ac_func
38773
38774 /* Override any gcc2 internal prototype to avoid an error.  */
38775 #ifdef __cplusplus
38776 extern "C"
38777 {
38778 #endif
38779 /* We use char because int might match the return type of a gcc2
38780    builtin and then its argument prototype would still apply.  */
38781 char $ac_func ();
38782 /* The GNU C library defines this for functions which it implements
38783     to always fail with ENOSYS.  Some functions are actually named
38784     something starting with __ and the normal name is an alias.  */
38785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38786 choke me
38787 #else
38788 char (*f) () = $ac_func;
38789 #endif
38790 #ifdef __cplusplus
38791 }
38792 #endif
38793
38794 int
38795 main ()
38796 {
38797 return f != $ac_func;
38798   ;
38799   return 0;
38800 }
38801 _ACEOF
38802 rm -f conftest.$ac_objext conftest$ac_exeext
38803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38804   (eval $ac_link) 2>conftest.er1
38805   ac_status=$?
38806   grep -v '^ *+' conftest.er1 >conftest.err
38807   rm -f conftest.er1
38808   cat conftest.err >&5
38809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38810   (exit $ac_status); } &&
38811          { ac_try='test -z "$ac_c_werror_flag"
38812                          || test ! -s conftest.err'
38813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38814   (eval $ac_try) 2>&5
38815   ac_status=$?
38816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38817   (exit $ac_status); }; } &&
38818          { ac_try='test -s conftest$ac_exeext'
38819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38820   (eval $ac_try) 2>&5
38821   ac_status=$?
38822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823   (exit $ac_status); }; }; then
38824   eval "$as_ac_var=yes"
38825 else
38826   echo "$as_me: failed program was:" >&5
38827 sed 's/^/| /' conftest.$ac_ext >&5
38828
38829 eval "$as_ac_var=no"
38830 fi
38831 rm -f conftest.err conftest.$ac_objext \
38832       conftest$ac_exeext conftest.$ac_ext
38833 fi
38834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38836 if test `eval echo '${'$as_ac_var'}'` = yes; then
38837   cat >>confdefs.h <<_ACEOF
38838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38839 _ACEOF
38840
38841 fi
38842 done
38843
38844     fi
38845   fi
38846
38847
38848
38849   echo "$as_me:$LINENO: checking for log10f declaration" >&5
38850 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
38851   if test x${glibcxx_cv_func_log10f_use+set} != xset; then
38852     if test "${glibcxx_cv_func_log10f_use+set}" = set; then
38853   echo $ECHO_N "(cached) $ECHO_C" >&6
38854 else
38855
38856
38857
38858       ac_ext=cc
38859 ac_cpp='$CXXCPP $CPPFLAGS'
38860 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38861 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38862 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38863
38864       cat >conftest.$ac_ext <<_ACEOF
38865 /* confdefs.h.  */
38866 _ACEOF
38867 cat confdefs.h >>conftest.$ac_ext
38868 cat >>conftest.$ac_ext <<_ACEOF
38869 /* end confdefs.h.  */
38870 #include <math.h>
38871                       #ifdef HAVE_IEEEFP_H
38872                       #include <ieeefp.h>
38873                       #endif
38874
38875 int
38876 main ()
38877 {
38878  log10f(0);
38879   ;
38880   return 0;
38881 }
38882 _ACEOF
38883 rm -f conftest.$ac_objext
38884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38885   (eval $ac_compile) 2>conftest.er1
38886   ac_status=$?
38887   grep -v '^ *+' conftest.er1 >conftest.err
38888   rm -f conftest.er1
38889   cat conftest.err >&5
38890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38891   (exit $ac_status); } &&
38892          { ac_try='test -z "$ac_cxx_werror_flag"
38893                          || test ! -s conftest.err'
38894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38895   (eval $ac_try) 2>&5
38896   ac_status=$?
38897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38898   (exit $ac_status); }; } &&
38899          { ac_try='test -s conftest.$ac_objext'
38900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38901   (eval $ac_try) 2>&5
38902   ac_status=$?
38903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38904   (exit $ac_status); }; }; then
38905   glibcxx_cv_func_log10f_use=yes
38906 else
38907   echo "$as_me: failed program was:" >&5
38908 sed 's/^/| /' conftest.$ac_ext >&5
38909
38910 glibcxx_cv_func_log10f_use=no
38911 fi
38912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38913       ac_ext=c
38914 ac_cpp='$CPP $CPPFLAGS'
38915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38918
38919
38920 fi
38921
38922   fi
38923   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
38924 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
38925
38926   if test x$glibcxx_cv_func_log10f_use = x"yes"; then
38927
38928 for ac_func in log10f
38929 do
38930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38931 echo "$as_me:$LINENO: checking for $ac_func" >&5
38932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38933 if eval "test \"\${$as_ac_var+set}\" = set"; then
38934   echo $ECHO_N "(cached) $ECHO_C" >&6
38935 else
38936   if test x$gcc_no_link = xyes; then
38937   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
38938 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
38939    { (exit 1); exit 1; }; }
38940 fi
38941 cat >conftest.$ac_ext <<_ACEOF
38942 /* confdefs.h.  */
38943 _ACEOF
38944 cat confdefs.h >>conftest.$ac_ext
38945 cat >>conftest.$ac_ext <<_ACEOF
38946 /* end confdefs.h.  */
38947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38949 #define $ac_func innocuous_$ac_func
38950
38951 /* System header to define __stub macros and hopefully few prototypes,
38952     which can conflict with char $ac_func (); below.
38953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38954     <limits.h> exists even on freestanding compilers.  */
38955
38956 #ifdef __STDC__
38957 # include <limits.h>
38958 #else
38959 # include <assert.h>
38960 #endif
38961
38962 #undef $ac_func
38963
38964 /* Override any gcc2 internal prototype to avoid an error.  */
38965 #ifdef __cplusplus
38966 extern "C"
38967 {
38968 #endif
38969 /* We use char because int might match the return type of a gcc2
38970    builtin and then its argument prototype would still apply.  */
38971 char $ac_func ();
38972 /* The GNU C library defines this for functions which it implements
38973     to always fail with ENOSYS.  Some functions are actually named
38974     something starting with __ and the normal name is an alias.  */
38975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38976 choke me
38977 #else
38978 char (*f) () = $ac_func;
38979 #endif
38980 #ifdef __cplusplus
38981 }
38982 #endif
38983
38984 int
38985 main ()
38986 {
38987 return f != $ac_func;
38988   ;
38989   return 0;
38990 }
38991 _ACEOF
38992 rm -f conftest.$ac_objext conftest$ac_exeext
38993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38994   (eval $ac_link) 2>conftest.er1
38995   ac_status=$?
38996   grep -v '^ *+' conftest.er1 >conftest.err
38997   rm -f conftest.er1
38998   cat conftest.err >&5
38999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39000   (exit $ac_status); } &&
39001          { ac_try='test -z "$ac_c_werror_flag"
39002                          || test ! -s conftest.err'
39003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39004   (eval $ac_try) 2>&5
39005   ac_status=$?
39006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39007   (exit $ac_status); }; } &&
39008          { ac_try='test -s conftest$ac_exeext'
39009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39010   (eval $ac_try) 2>&5
39011   ac_status=$?
39012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39013   (exit $ac_status); }; }; then
39014   eval "$as_ac_var=yes"
39015 else
39016   echo "$as_me: failed program was:" >&5
39017 sed 's/^/| /' conftest.$ac_ext >&5
39018
39019 eval "$as_ac_var=no"
39020 fi
39021 rm -f conftest.err conftest.$ac_objext \
39022       conftest$ac_exeext conftest.$ac_ext
39023 fi
39024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39026 if test `eval echo '${'$as_ac_var'}'` = yes; then
39027   cat >>confdefs.h <<_ACEOF
39028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39029 _ACEOF
39030
39031 fi
39032 done
39033
39034   else
39035
39036   echo "$as_me:$LINENO: checking for _log10f declaration" >&5
39037 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
39038   if test x${glibcxx_cv_func__log10f_use+set} != xset; then
39039     if test "${glibcxx_cv_func__log10f_use+set}" = set; then
39040   echo $ECHO_N "(cached) $ECHO_C" >&6
39041 else
39042
39043
39044
39045       ac_ext=cc
39046 ac_cpp='$CXXCPP $CPPFLAGS'
39047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39050
39051       cat >conftest.$ac_ext <<_ACEOF
39052 /* confdefs.h.  */
39053 _ACEOF
39054 cat confdefs.h >>conftest.$ac_ext
39055 cat >>conftest.$ac_ext <<_ACEOF
39056 /* end confdefs.h.  */
39057 #include <math.h>
39058                       #ifdef HAVE_IEEEFP_H
39059                       #include <ieeefp.h>
39060                       #endif
39061
39062 int
39063 main ()
39064 {
39065  _log10f(0);
39066   ;
39067   return 0;
39068 }
39069 _ACEOF
39070 rm -f conftest.$ac_objext
39071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39072   (eval $ac_compile) 2>conftest.er1
39073   ac_status=$?
39074   grep -v '^ *+' conftest.er1 >conftest.err
39075   rm -f conftest.er1
39076   cat conftest.err >&5
39077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078   (exit $ac_status); } &&
39079          { ac_try='test -z "$ac_cxx_werror_flag"
39080                          || test ! -s conftest.err'
39081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39082   (eval $ac_try) 2>&5
39083   ac_status=$?
39084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39085   (exit $ac_status); }; } &&
39086          { ac_try='test -s conftest.$ac_objext'
39087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39088   (eval $ac_try) 2>&5
39089   ac_status=$?
39090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39091   (exit $ac_status); }; }; then
39092   glibcxx_cv_func__log10f_use=yes
39093 else
39094   echo "$as_me: failed program was:" >&5
39095 sed 's/^/| /' conftest.$ac_ext >&5
39096
39097 glibcxx_cv_func__log10f_use=no
39098 fi
39099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39100       ac_ext=c
39101 ac_cpp='$CPP $CPPFLAGS'
39102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39105
39106
39107 fi
39108
39109   fi
39110   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
39111 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
39112
39113     if test x$glibcxx_cv_func__log10f_use = x"yes"; then
39114
39115 for ac_func in _log10f
39116 do
39117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39118 echo "$as_me:$LINENO: checking for $ac_func" >&5
39119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39120 if eval "test \"\${$as_ac_var+set}\" = set"; then
39121   echo $ECHO_N "(cached) $ECHO_C" >&6
39122 else
39123   if test x$gcc_no_link = xyes; then
39124   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39125 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39126    { (exit 1); exit 1; }; }
39127 fi
39128 cat >conftest.$ac_ext <<_ACEOF
39129 /* confdefs.h.  */
39130 _ACEOF
39131 cat confdefs.h >>conftest.$ac_ext
39132 cat >>conftest.$ac_ext <<_ACEOF
39133 /* end confdefs.h.  */
39134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39135    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39136 #define $ac_func innocuous_$ac_func
39137
39138 /* System header to define __stub macros and hopefully few prototypes,
39139     which can conflict with char $ac_func (); below.
39140     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39141     <limits.h> exists even on freestanding compilers.  */
39142
39143 #ifdef __STDC__
39144 # include <limits.h>
39145 #else
39146 # include <assert.h>
39147 #endif
39148
39149 #undef $ac_func
39150
39151 /* Override any gcc2 internal prototype to avoid an error.  */
39152 #ifdef __cplusplus
39153 extern "C"
39154 {
39155 #endif
39156 /* We use char because int might match the return type of a gcc2
39157    builtin and then its argument prototype would still apply.  */
39158 char $ac_func ();
39159 /* The GNU C library defines this for functions which it implements
39160     to always fail with ENOSYS.  Some functions are actually named
39161     something starting with __ and the normal name is an alias.  */
39162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39163 choke me
39164 #else
39165 char (*f) () = $ac_func;
39166 #endif
39167 #ifdef __cplusplus
39168 }
39169 #endif
39170
39171 int
39172 main ()
39173 {
39174 return f != $ac_func;
39175   ;
39176   return 0;
39177 }
39178 _ACEOF
39179 rm -f conftest.$ac_objext conftest$ac_exeext
39180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39181   (eval $ac_link) 2>conftest.er1
39182   ac_status=$?
39183   grep -v '^ *+' conftest.er1 >conftest.err
39184   rm -f conftest.er1
39185   cat conftest.err >&5
39186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39187   (exit $ac_status); } &&
39188          { ac_try='test -z "$ac_c_werror_flag"
39189                          || test ! -s conftest.err'
39190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39191   (eval $ac_try) 2>&5
39192   ac_status=$?
39193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39194   (exit $ac_status); }; } &&
39195          { ac_try='test -s conftest$ac_exeext'
39196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39197   (eval $ac_try) 2>&5
39198   ac_status=$?
39199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39200   (exit $ac_status); }; }; then
39201   eval "$as_ac_var=yes"
39202 else
39203   echo "$as_me: failed program was:" >&5
39204 sed 's/^/| /' conftest.$ac_ext >&5
39205
39206 eval "$as_ac_var=no"
39207 fi
39208 rm -f conftest.err conftest.$ac_objext \
39209       conftest$ac_exeext conftest.$ac_ext
39210 fi
39211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39212 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39213 if test `eval echo '${'$as_ac_var'}'` = yes; then
39214   cat >>confdefs.h <<_ACEOF
39215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39216 _ACEOF
39217
39218 fi
39219 done
39220
39221     fi
39222   fi
39223
39224
39225
39226   echo "$as_me:$LINENO: checking for modff declaration" >&5
39227 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
39228   if test x${glibcxx_cv_func_modff_use+set} != xset; then
39229     if test "${glibcxx_cv_func_modff_use+set}" = set; then
39230   echo $ECHO_N "(cached) $ECHO_C" >&6
39231 else
39232
39233
39234
39235       ac_ext=cc
39236 ac_cpp='$CXXCPP $CPPFLAGS'
39237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39240
39241       cat >conftest.$ac_ext <<_ACEOF
39242 /* confdefs.h.  */
39243 _ACEOF
39244 cat confdefs.h >>conftest.$ac_ext
39245 cat >>conftest.$ac_ext <<_ACEOF
39246 /* end confdefs.h.  */
39247 #include <math.h>
39248 int
39249 main ()
39250 {
39251  modff(0, 0);
39252   ;
39253   return 0;
39254 }
39255 _ACEOF
39256 rm -f conftest.$ac_objext
39257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39258   (eval $ac_compile) 2>conftest.er1
39259   ac_status=$?
39260   grep -v '^ *+' conftest.er1 >conftest.err
39261   rm -f conftest.er1
39262   cat conftest.err >&5
39263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39264   (exit $ac_status); } &&
39265          { ac_try='test -z "$ac_cxx_werror_flag"
39266                          || test ! -s conftest.err'
39267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39268   (eval $ac_try) 2>&5
39269   ac_status=$?
39270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39271   (exit $ac_status); }; } &&
39272          { ac_try='test -s conftest.$ac_objext'
39273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39274   (eval $ac_try) 2>&5
39275   ac_status=$?
39276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277   (exit $ac_status); }; }; then
39278   glibcxx_cv_func_modff_use=yes
39279 else
39280   echo "$as_me: failed program was:" >&5
39281 sed 's/^/| /' conftest.$ac_ext >&5
39282
39283 glibcxx_cv_func_modff_use=no
39284 fi
39285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39286       ac_ext=c
39287 ac_cpp='$CPP $CPPFLAGS'
39288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39291
39292
39293 fi
39294
39295   fi
39296   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
39297 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
39298
39299   if test x$glibcxx_cv_func_modff_use = x"yes"; then
39300
39301 for ac_func in modff
39302 do
39303 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39304 echo "$as_me:$LINENO: checking for $ac_func" >&5
39305 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39306 if eval "test \"\${$as_ac_var+set}\" = set"; then
39307   echo $ECHO_N "(cached) $ECHO_C" >&6
39308 else
39309   if test x$gcc_no_link = xyes; then
39310   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39312    { (exit 1); exit 1; }; }
39313 fi
39314 cat >conftest.$ac_ext <<_ACEOF
39315 /* confdefs.h.  */
39316 _ACEOF
39317 cat confdefs.h >>conftest.$ac_ext
39318 cat >>conftest.$ac_ext <<_ACEOF
39319 /* end confdefs.h.  */
39320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39322 #define $ac_func innocuous_$ac_func
39323
39324 /* System header to define __stub macros and hopefully few prototypes,
39325     which can conflict with char $ac_func (); below.
39326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39327     <limits.h> exists even on freestanding compilers.  */
39328
39329 #ifdef __STDC__
39330 # include <limits.h>
39331 #else
39332 # include <assert.h>
39333 #endif
39334
39335 #undef $ac_func
39336
39337 /* Override any gcc2 internal prototype to avoid an error.  */
39338 #ifdef __cplusplus
39339 extern "C"
39340 {
39341 #endif
39342 /* We use char because int might match the return type of a gcc2
39343    builtin and then its argument prototype would still apply.  */
39344 char $ac_func ();
39345 /* The GNU C library defines this for functions which it implements
39346     to always fail with ENOSYS.  Some functions are actually named
39347     something starting with __ and the normal name is an alias.  */
39348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39349 choke me
39350 #else
39351 char (*f) () = $ac_func;
39352 #endif
39353 #ifdef __cplusplus
39354 }
39355 #endif
39356
39357 int
39358 main ()
39359 {
39360 return f != $ac_func;
39361   ;
39362   return 0;
39363 }
39364 _ACEOF
39365 rm -f conftest.$ac_objext conftest$ac_exeext
39366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39367   (eval $ac_link) 2>conftest.er1
39368   ac_status=$?
39369   grep -v '^ *+' conftest.er1 >conftest.err
39370   rm -f conftest.er1
39371   cat conftest.err >&5
39372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39373   (exit $ac_status); } &&
39374          { ac_try='test -z "$ac_c_werror_flag"
39375                          || test ! -s conftest.err'
39376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39377   (eval $ac_try) 2>&5
39378   ac_status=$?
39379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39380   (exit $ac_status); }; } &&
39381          { ac_try='test -s conftest$ac_exeext'
39382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39383   (eval $ac_try) 2>&5
39384   ac_status=$?
39385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39386   (exit $ac_status); }; }; then
39387   eval "$as_ac_var=yes"
39388 else
39389   echo "$as_me: failed program was:" >&5
39390 sed 's/^/| /' conftest.$ac_ext >&5
39391
39392 eval "$as_ac_var=no"
39393 fi
39394 rm -f conftest.err conftest.$ac_objext \
39395       conftest$ac_exeext conftest.$ac_ext
39396 fi
39397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39399 if test `eval echo '${'$as_ac_var'}'` = yes; then
39400   cat >>confdefs.h <<_ACEOF
39401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39402 _ACEOF
39403
39404 fi
39405 done
39406
39407   else
39408
39409   echo "$as_me:$LINENO: checking for _modff declaration" >&5
39410 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
39411   if test x${glibcxx_cv_func__modff_use+set} != xset; then
39412     if test "${glibcxx_cv_func__modff_use+set}" = set; then
39413   echo $ECHO_N "(cached) $ECHO_C" >&6
39414 else
39415
39416
39417
39418       ac_ext=cc
39419 ac_cpp='$CXXCPP $CPPFLAGS'
39420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39423
39424       cat >conftest.$ac_ext <<_ACEOF
39425 /* confdefs.h.  */
39426 _ACEOF
39427 cat confdefs.h >>conftest.$ac_ext
39428 cat >>conftest.$ac_ext <<_ACEOF
39429 /* end confdefs.h.  */
39430 #include <math.h>
39431 int
39432 main ()
39433 {
39434  _modff(0, 0);
39435   ;
39436   return 0;
39437 }
39438 _ACEOF
39439 rm -f conftest.$ac_objext
39440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39441   (eval $ac_compile) 2>conftest.er1
39442   ac_status=$?
39443   grep -v '^ *+' conftest.er1 >conftest.err
39444   rm -f conftest.er1
39445   cat conftest.err >&5
39446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39447   (exit $ac_status); } &&
39448          { ac_try='test -z "$ac_cxx_werror_flag"
39449                          || test ! -s conftest.err'
39450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39451   (eval $ac_try) 2>&5
39452   ac_status=$?
39453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39454   (exit $ac_status); }; } &&
39455          { ac_try='test -s conftest.$ac_objext'
39456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39457   (eval $ac_try) 2>&5
39458   ac_status=$?
39459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39460   (exit $ac_status); }; }; then
39461   glibcxx_cv_func__modff_use=yes
39462 else
39463   echo "$as_me: failed program was:" >&5
39464 sed 's/^/| /' conftest.$ac_ext >&5
39465
39466 glibcxx_cv_func__modff_use=no
39467 fi
39468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39469       ac_ext=c
39470 ac_cpp='$CPP $CPPFLAGS'
39471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39474
39475
39476 fi
39477
39478   fi
39479   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
39480 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
39481
39482     if test x$glibcxx_cv_func__modff_use = x"yes"; then
39483
39484 for ac_func in _modff
39485 do
39486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39487 echo "$as_me:$LINENO: checking for $ac_func" >&5
39488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39489 if eval "test \"\${$as_ac_var+set}\" = set"; then
39490   echo $ECHO_N "(cached) $ECHO_C" >&6
39491 else
39492   if test x$gcc_no_link = xyes; then
39493   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39495    { (exit 1); exit 1; }; }
39496 fi
39497 cat >conftest.$ac_ext <<_ACEOF
39498 /* confdefs.h.  */
39499 _ACEOF
39500 cat confdefs.h >>conftest.$ac_ext
39501 cat >>conftest.$ac_ext <<_ACEOF
39502 /* end confdefs.h.  */
39503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39505 #define $ac_func innocuous_$ac_func
39506
39507 /* System header to define __stub macros and hopefully few prototypes,
39508     which can conflict with char $ac_func (); below.
39509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39510     <limits.h> exists even on freestanding compilers.  */
39511
39512 #ifdef __STDC__
39513 # include <limits.h>
39514 #else
39515 # include <assert.h>
39516 #endif
39517
39518 #undef $ac_func
39519
39520 /* Override any gcc2 internal prototype to avoid an error.  */
39521 #ifdef __cplusplus
39522 extern "C"
39523 {
39524 #endif
39525 /* We use char because int might match the return type of a gcc2
39526    builtin and then its argument prototype would still apply.  */
39527 char $ac_func ();
39528 /* The GNU C library defines this for functions which it implements
39529     to always fail with ENOSYS.  Some functions are actually named
39530     something starting with __ and the normal name is an alias.  */
39531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39532 choke me
39533 #else
39534 char (*f) () = $ac_func;
39535 #endif
39536 #ifdef __cplusplus
39537 }
39538 #endif
39539
39540 int
39541 main ()
39542 {
39543 return f != $ac_func;
39544   ;
39545   return 0;
39546 }
39547 _ACEOF
39548 rm -f conftest.$ac_objext conftest$ac_exeext
39549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39550   (eval $ac_link) 2>conftest.er1
39551   ac_status=$?
39552   grep -v '^ *+' conftest.er1 >conftest.err
39553   rm -f conftest.er1
39554   cat conftest.err >&5
39555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39556   (exit $ac_status); } &&
39557          { ac_try='test -z "$ac_c_werror_flag"
39558                          || test ! -s conftest.err'
39559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39560   (eval $ac_try) 2>&5
39561   ac_status=$?
39562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39563   (exit $ac_status); }; } &&
39564          { ac_try='test -s conftest$ac_exeext'
39565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39566   (eval $ac_try) 2>&5
39567   ac_status=$?
39568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39569   (exit $ac_status); }; }; then
39570   eval "$as_ac_var=yes"
39571 else
39572   echo "$as_me: failed program was:" >&5
39573 sed 's/^/| /' conftest.$ac_ext >&5
39574
39575 eval "$as_ac_var=no"
39576 fi
39577 rm -f conftest.err conftest.$ac_objext \
39578       conftest$ac_exeext conftest.$ac_ext
39579 fi
39580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39582 if test `eval echo '${'$as_ac_var'}'` = yes; then
39583   cat >>confdefs.h <<_ACEOF
39584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39585 _ACEOF
39586
39587 fi
39588 done
39589
39590     fi
39591   fi
39592
39593
39594
39595   echo "$as_me:$LINENO: checking for powf declaration" >&5
39596 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
39597   if test x${glibcxx_cv_func_powf_use+set} != xset; then
39598     if test "${glibcxx_cv_func_powf_use+set}" = set; then
39599   echo $ECHO_N "(cached) $ECHO_C" >&6
39600 else
39601
39602
39603
39604       ac_ext=cc
39605 ac_cpp='$CXXCPP $CPPFLAGS'
39606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39609
39610       cat >conftest.$ac_ext <<_ACEOF
39611 /* confdefs.h.  */
39612 _ACEOF
39613 cat confdefs.h >>conftest.$ac_ext
39614 cat >>conftest.$ac_ext <<_ACEOF
39615 /* end confdefs.h.  */
39616 #include <math.h>
39617 int
39618 main ()
39619 {
39620  powf(0, 0);
39621   ;
39622   return 0;
39623 }
39624 _ACEOF
39625 rm -f conftest.$ac_objext
39626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39627   (eval $ac_compile) 2>conftest.er1
39628   ac_status=$?
39629   grep -v '^ *+' conftest.er1 >conftest.err
39630   rm -f conftest.er1
39631   cat conftest.err >&5
39632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39633   (exit $ac_status); } &&
39634          { ac_try='test -z "$ac_cxx_werror_flag"
39635                          || test ! -s conftest.err'
39636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39637   (eval $ac_try) 2>&5
39638   ac_status=$?
39639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39640   (exit $ac_status); }; } &&
39641          { ac_try='test -s conftest.$ac_objext'
39642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39643   (eval $ac_try) 2>&5
39644   ac_status=$?
39645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39646   (exit $ac_status); }; }; then
39647   glibcxx_cv_func_powf_use=yes
39648 else
39649   echo "$as_me: failed program was:" >&5
39650 sed 's/^/| /' conftest.$ac_ext >&5
39651
39652 glibcxx_cv_func_powf_use=no
39653 fi
39654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39655       ac_ext=c
39656 ac_cpp='$CPP $CPPFLAGS'
39657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39660
39661
39662 fi
39663
39664   fi
39665   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
39666 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
39667
39668   if test x$glibcxx_cv_func_powf_use = x"yes"; then
39669
39670 for ac_func in powf
39671 do
39672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39673 echo "$as_me:$LINENO: checking for $ac_func" >&5
39674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39675 if eval "test \"\${$as_ac_var+set}\" = set"; then
39676   echo $ECHO_N "(cached) $ECHO_C" >&6
39677 else
39678   if test x$gcc_no_link = xyes; then
39679   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39680 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39681    { (exit 1); exit 1; }; }
39682 fi
39683 cat >conftest.$ac_ext <<_ACEOF
39684 /* confdefs.h.  */
39685 _ACEOF
39686 cat confdefs.h >>conftest.$ac_ext
39687 cat >>conftest.$ac_ext <<_ACEOF
39688 /* end confdefs.h.  */
39689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39691 #define $ac_func innocuous_$ac_func
39692
39693 /* System header to define __stub macros and hopefully few prototypes,
39694     which can conflict with char $ac_func (); below.
39695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39696     <limits.h> exists even on freestanding compilers.  */
39697
39698 #ifdef __STDC__
39699 # include <limits.h>
39700 #else
39701 # include <assert.h>
39702 #endif
39703
39704 #undef $ac_func
39705
39706 /* Override any gcc2 internal prototype to avoid an error.  */
39707 #ifdef __cplusplus
39708 extern "C"
39709 {
39710 #endif
39711 /* We use char because int might match the return type of a gcc2
39712    builtin and then its argument prototype would still apply.  */
39713 char $ac_func ();
39714 /* The GNU C library defines this for functions which it implements
39715     to always fail with ENOSYS.  Some functions are actually named
39716     something starting with __ and the normal name is an alias.  */
39717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39718 choke me
39719 #else
39720 char (*f) () = $ac_func;
39721 #endif
39722 #ifdef __cplusplus
39723 }
39724 #endif
39725
39726 int
39727 main ()
39728 {
39729 return f != $ac_func;
39730   ;
39731   return 0;
39732 }
39733 _ACEOF
39734 rm -f conftest.$ac_objext conftest$ac_exeext
39735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39736   (eval $ac_link) 2>conftest.er1
39737   ac_status=$?
39738   grep -v '^ *+' conftest.er1 >conftest.err
39739   rm -f conftest.er1
39740   cat conftest.err >&5
39741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39742   (exit $ac_status); } &&
39743          { ac_try='test -z "$ac_c_werror_flag"
39744                          || test ! -s conftest.err'
39745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39746   (eval $ac_try) 2>&5
39747   ac_status=$?
39748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39749   (exit $ac_status); }; } &&
39750          { ac_try='test -s conftest$ac_exeext'
39751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39752   (eval $ac_try) 2>&5
39753   ac_status=$?
39754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39755   (exit $ac_status); }; }; then
39756   eval "$as_ac_var=yes"
39757 else
39758   echo "$as_me: failed program was:" >&5
39759 sed 's/^/| /' conftest.$ac_ext >&5
39760
39761 eval "$as_ac_var=no"
39762 fi
39763 rm -f conftest.err conftest.$ac_objext \
39764       conftest$ac_exeext conftest.$ac_ext
39765 fi
39766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39768 if test `eval echo '${'$as_ac_var'}'` = yes; then
39769   cat >>confdefs.h <<_ACEOF
39770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39771 _ACEOF
39772
39773 fi
39774 done
39775
39776   else
39777
39778   echo "$as_me:$LINENO: checking for _powf declaration" >&5
39779 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
39780   if test x${glibcxx_cv_func__powf_use+set} != xset; then
39781     if test "${glibcxx_cv_func__powf_use+set}" = set; then
39782   echo $ECHO_N "(cached) $ECHO_C" >&6
39783 else
39784
39785
39786
39787       ac_ext=cc
39788 ac_cpp='$CXXCPP $CPPFLAGS'
39789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39792
39793       cat >conftest.$ac_ext <<_ACEOF
39794 /* confdefs.h.  */
39795 _ACEOF
39796 cat confdefs.h >>conftest.$ac_ext
39797 cat >>conftest.$ac_ext <<_ACEOF
39798 /* end confdefs.h.  */
39799 #include <math.h>
39800 int
39801 main ()
39802 {
39803  _powf(0, 0);
39804   ;
39805   return 0;
39806 }
39807 _ACEOF
39808 rm -f conftest.$ac_objext
39809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39810   (eval $ac_compile) 2>conftest.er1
39811   ac_status=$?
39812   grep -v '^ *+' conftest.er1 >conftest.err
39813   rm -f conftest.er1
39814   cat conftest.err >&5
39815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39816   (exit $ac_status); } &&
39817          { ac_try='test -z "$ac_cxx_werror_flag"
39818                          || test ! -s conftest.err'
39819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39820   (eval $ac_try) 2>&5
39821   ac_status=$?
39822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39823   (exit $ac_status); }; } &&
39824          { ac_try='test -s conftest.$ac_objext'
39825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39826   (eval $ac_try) 2>&5
39827   ac_status=$?
39828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39829   (exit $ac_status); }; }; then
39830   glibcxx_cv_func__powf_use=yes
39831 else
39832   echo "$as_me: failed program was:" >&5
39833 sed 's/^/| /' conftest.$ac_ext >&5
39834
39835 glibcxx_cv_func__powf_use=no
39836 fi
39837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39838       ac_ext=c
39839 ac_cpp='$CPP $CPPFLAGS'
39840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39843
39844
39845 fi
39846
39847   fi
39848   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
39849 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
39850
39851     if test x$glibcxx_cv_func__powf_use = x"yes"; then
39852
39853 for ac_func in _powf
39854 do
39855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39856 echo "$as_me:$LINENO: checking for $ac_func" >&5
39857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39858 if eval "test \"\${$as_ac_var+set}\" = set"; then
39859   echo $ECHO_N "(cached) $ECHO_C" >&6
39860 else
39861   if test x$gcc_no_link = xyes; then
39862   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
39863 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
39864    { (exit 1); exit 1; }; }
39865 fi
39866 cat >conftest.$ac_ext <<_ACEOF
39867 /* confdefs.h.  */
39868 _ACEOF
39869 cat confdefs.h >>conftest.$ac_ext
39870 cat >>conftest.$ac_ext <<_ACEOF
39871 /* end confdefs.h.  */
39872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39874 #define $ac_func innocuous_$ac_func
39875
39876 /* System header to define __stub macros and hopefully few prototypes,
39877     which can conflict with char $ac_func (); below.
39878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39879     <limits.h> exists even on freestanding compilers.  */
39880
39881 #ifdef __STDC__
39882 # include <limits.h>
39883 #else
39884 # include <assert.h>
39885 #endif
39886
39887 #undef $ac_func
39888
39889 /* Override any gcc2 internal prototype to avoid an error.  */
39890 #ifdef __cplusplus
39891 extern "C"
39892 {
39893 #endif
39894 /* We use char because int might match the return type of a gcc2
39895    builtin and then its argument prototype would still apply.  */
39896 char $ac_func ();
39897 /* The GNU C library defines this for functions which it implements
39898     to always fail with ENOSYS.  Some functions are actually named
39899     something starting with __ and the normal name is an alias.  */
39900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39901 choke me
39902 #else
39903 char (*f) () = $ac_func;
39904 #endif
39905 #ifdef __cplusplus
39906 }
39907 #endif
39908
39909 int
39910 main ()
39911 {
39912 return f != $ac_func;
39913   ;
39914   return 0;
39915 }
39916 _ACEOF
39917 rm -f conftest.$ac_objext conftest$ac_exeext
39918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39919   (eval $ac_link) 2>conftest.er1
39920   ac_status=$?
39921   grep -v '^ *+' conftest.er1 >conftest.err
39922   rm -f conftest.er1
39923   cat conftest.err >&5
39924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39925   (exit $ac_status); } &&
39926          { ac_try='test -z "$ac_c_werror_flag"
39927                          || test ! -s conftest.err'
39928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39929   (eval $ac_try) 2>&5
39930   ac_status=$?
39931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39932   (exit $ac_status); }; } &&
39933          { ac_try='test -s conftest$ac_exeext'
39934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39935   (eval $ac_try) 2>&5
39936   ac_status=$?
39937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39938   (exit $ac_status); }; }; then
39939   eval "$as_ac_var=yes"
39940 else
39941   echo "$as_me: failed program was:" >&5
39942 sed 's/^/| /' conftest.$ac_ext >&5
39943
39944 eval "$as_ac_var=no"
39945 fi
39946 rm -f conftest.err conftest.$ac_objext \
39947       conftest$ac_exeext conftest.$ac_ext
39948 fi
39949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39951 if test `eval echo '${'$as_ac_var'}'` = yes; then
39952   cat >>confdefs.h <<_ACEOF
39953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39954 _ACEOF
39955
39956 fi
39957 done
39958
39959     fi
39960   fi
39961
39962
39963
39964   echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
39965 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
39966   if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
39967     if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
39968   echo $ECHO_N "(cached) $ECHO_C" >&6
39969 else
39970
39971
39972
39973       ac_ext=cc
39974 ac_cpp='$CXXCPP $CPPFLAGS'
39975 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39976 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39977 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39978
39979       cat >conftest.$ac_ext <<_ACEOF
39980 /* confdefs.h.  */
39981 _ACEOF
39982 cat confdefs.h >>conftest.$ac_ext
39983 cat >>conftest.$ac_ext <<_ACEOF
39984 /* end confdefs.h.  */
39985 #include <math.h>
39986                       #ifdef HAVE_IEEEFP_H
39987                       #include <ieeefp.h>
39988                       #endif
39989
39990 int
39991 main ()
39992 {
39993  sqrtf(0);
39994   ;
39995   return 0;
39996 }
39997 _ACEOF
39998 rm -f conftest.$ac_objext
39999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40000   (eval $ac_compile) 2>conftest.er1
40001   ac_status=$?
40002   grep -v '^ *+' conftest.er1 >conftest.err
40003   rm -f conftest.er1
40004   cat conftest.err >&5
40005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40006   (exit $ac_status); } &&
40007          { ac_try='test -z "$ac_cxx_werror_flag"
40008                          || test ! -s conftest.err'
40009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40010   (eval $ac_try) 2>&5
40011   ac_status=$?
40012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40013   (exit $ac_status); }; } &&
40014          { ac_try='test -s conftest.$ac_objext'
40015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40016   (eval $ac_try) 2>&5
40017   ac_status=$?
40018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40019   (exit $ac_status); }; }; then
40020   glibcxx_cv_func_sqrtf_use=yes
40021 else
40022   echo "$as_me: failed program was:" >&5
40023 sed 's/^/| /' conftest.$ac_ext >&5
40024
40025 glibcxx_cv_func_sqrtf_use=no
40026 fi
40027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40028       ac_ext=c
40029 ac_cpp='$CPP $CPPFLAGS'
40030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40033
40034
40035 fi
40036
40037   fi
40038   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
40039 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
40040
40041   if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
40042
40043 for ac_func in sqrtf
40044 do
40045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40046 echo "$as_me:$LINENO: checking for $ac_func" >&5
40047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40048 if eval "test \"\${$as_ac_var+set}\" = set"; then
40049   echo $ECHO_N "(cached) $ECHO_C" >&6
40050 else
40051   if test x$gcc_no_link = xyes; then
40052   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40053 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40054    { (exit 1); exit 1; }; }
40055 fi
40056 cat >conftest.$ac_ext <<_ACEOF
40057 /* confdefs.h.  */
40058 _ACEOF
40059 cat confdefs.h >>conftest.$ac_ext
40060 cat >>conftest.$ac_ext <<_ACEOF
40061 /* end confdefs.h.  */
40062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40064 #define $ac_func innocuous_$ac_func
40065
40066 /* System header to define __stub macros and hopefully few prototypes,
40067     which can conflict with char $ac_func (); below.
40068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40069     <limits.h> exists even on freestanding compilers.  */
40070
40071 #ifdef __STDC__
40072 # include <limits.h>
40073 #else
40074 # include <assert.h>
40075 #endif
40076
40077 #undef $ac_func
40078
40079 /* Override any gcc2 internal prototype to avoid an error.  */
40080 #ifdef __cplusplus
40081 extern "C"
40082 {
40083 #endif
40084 /* We use char because int might match the return type of a gcc2
40085    builtin and then its argument prototype would still apply.  */
40086 char $ac_func ();
40087 /* The GNU C library defines this for functions which it implements
40088     to always fail with ENOSYS.  Some functions are actually named
40089     something starting with __ and the normal name is an alias.  */
40090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40091 choke me
40092 #else
40093 char (*f) () = $ac_func;
40094 #endif
40095 #ifdef __cplusplus
40096 }
40097 #endif
40098
40099 int
40100 main ()
40101 {
40102 return f != $ac_func;
40103   ;
40104   return 0;
40105 }
40106 _ACEOF
40107 rm -f conftest.$ac_objext conftest$ac_exeext
40108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40109   (eval $ac_link) 2>conftest.er1
40110   ac_status=$?
40111   grep -v '^ *+' conftest.er1 >conftest.err
40112   rm -f conftest.er1
40113   cat conftest.err >&5
40114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40115   (exit $ac_status); } &&
40116          { ac_try='test -z "$ac_c_werror_flag"
40117                          || test ! -s conftest.err'
40118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40119   (eval $ac_try) 2>&5
40120   ac_status=$?
40121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40122   (exit $ac_status); }; } &&
40123          { ac_try='test -s conftest$ac_exeext'
40124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40125   (eval $ac_try) 2>&5
40126   ac_status=$?
40127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40128   (exit $ac_status); }; }; then
40129   eval "$as_ac_var=yes"
40130 else
40131   echo "$as_me: failed program was:" >&5
40132 sed 's/^/| /' conftest.$ac_ext >&5
40133
40134 eval "$as_ac_var=no"
40135 fi
40136 rm -f conftest.err conftest.$ac_objext \
40137       conftest$ac_exeext conftest.$ac_ext
40138 fi
40139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40141 if test `eval echo '${'$as_ac_var'}'` = yes; then
40142   cat >>confdefs.h <<_ACEOF
40143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40144 _ACEOF
40145
40146 fi
40147 done
40148
40149   else
40150
40151   echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
40152 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
40153   if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
40154     if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
40155   echo $ECHO_N "(cached) $ECHO_C" >&6
40156 else
40157
40158
40159
40160       ac_ext=cc
40161 ac_cpp='$CXXCPP $CPPFLAGS'
40162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40165
40166       cat >conftest.$ac_ext <<_ACEOF
40167 /* confdefs.h.  */
40168 _ACEOF
40169 cat confdefs.h >>conftest.$ac_ext
40170 cat >>conftest.$ac_ext <<_ACEOF
40171 /* end confdefs.h.  */
40172 #include <math.h>
40173                       #ifdef HAVE_IEEEFP_H
40174                       #include <ieeefp.h>
40175                       #endif
40176
40177 int
40178 main ()
40179 {
40180  _sqrtf(0);
40181   ;
40182   return 0;
40183 }
40184 _ACEOF
40185 rm -f conftest.$ac_objext
40186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40187   (eval $ac_compile) 2>conftest.er1
40188   ac_status=$?
40189   grep -v '^ *+' conftest.er1 >conftest.err
40190   rm -f conftest.er1
40191   cat conftest.err >&5
40192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40193   (exit $ac_status); } &&
40194          { ac_try='test -z "$ac_cxx_werror_flag"
40195                          || test ! -s conftest.err'
40196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40197   (eval $ac_try) 2>&5
40198   ac_status=$?
40199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40200   (exit $ac_status); }; } &&
40201          { ac_try='test -s conftest.$ac_objext'
40202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40203   (eval $ac_try) 2>&5
40204   ac_status=$?
40205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40206   (exit $ac_status); }; }; then
40207   glibcxx_cv_func__sqrtf_use=yes
40208 else
40209   echo "$as_me: failed program was:" >&5
40210 sed 's/^/| /' conftest.$ac_ext >&5
40211
40212 glibcxx_cv_func__sqrtf_use=no
40213 fi
40214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40215       ac_ext=c
40216 ac_cpp='$CPP $CPPFLAGS'
40217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40220
40221
40222 fi
40223
40224   fi
40225   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
40226 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
40227
40228     if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
40229
40230 for ac_func in _sqrtf
40231 do
40232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40233 echo "$as_me:$LINENO: checking for $ac_func" >&5
40234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40235 if eval "test \"\${$as_ac_var+set}\" = set"; then
40236   echo $ECHO_N "(cached) $ECHO_C" >&6
40237 else
40238   if test x$gcc_no_link = xyes; then
40239   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40240 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40241    { (exit 1); exit 1; }; }
40242 fi
40243 cat >conftest.$ac_ext <<_ACEOF
40244 /* confdefs.h.  */
40245 _ACEOF
40246 cat confdefs.h >>conftest.$ac_ext
40247 cat >>conftest.$ac_ext <<_ACEOF
40248 /* end confdefs.h.  */
40249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40251 #define $ac_func innocuous_$ac_func
40252
40253 /* System header to define __stub macros and hopefully few prototypes,
40254     which can conflict with char $ac_func (); below.
40255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40256     <limits.h> exists even on freestanding compilers.  */
40257
40258 #ifdef __STDC__
40259 # include <limits.h>
40260 #else
40261 # include <assert.h>
40262 #endif
40263
40264 #undef $ac_func
40265
40266 /* Override any gcc2 internal prototype to avoid an error.  */
40267 #ifdef __cplusplus
40268 extern "C"
40269 {
40270 #endif
40271 /* We use char because int might match the return type of a gcc2
40272    builtin and then its argument prototype would still apply.  */
40273 char $ac_func ();
40274 /* The GNU C library defines this for functions which it implements
40275     to always fail with ENOSYS.  Some functions are actually named
40276     something starting with __ and the normal name is an alias.  */
40277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40278 choke me
40279 #else
40280 char (*f) () = $ac_func;
40281 #endif
40282 #ifdef __cplusplus
40283 }
40284 #endif
40285
40286 int
40287 main ()
40288 {
40289 return f != $ac_func;
40290   ;
40291   return 0;
40292 }
40293 _ACEOF
40294 rm -f conftest.$ac_objext conftest$ac_exeext
40295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40296   (eval $ac_link) 2>conftest.er1
40297   ac_status=$?
40298   grep -v '^ *+' conftest.er1 >conftest.err
40299   rm -f conftest.er1
40300   cat conftest.err >&5
40301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40302   (exit $ac_status); } &&
40303          { ac_try='test -z "$ac_c_werror_flag"
40304                          || test ! -s conftest.err'
40305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40306   (eval $ac_try) 2>&5
40307   ac_status=$?
40308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40309   (exit $ac_status); }; } &&
40310          { ac_try='test -s conftest$ac_exeext'
40311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40312   (eval $ac_try) 2>&5
40313   ac_status=$?
40314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40315   (exit $ac_status); }; }; then
40316   eval "$as_ac_var=yes"
40317 else
40318   echo "$as_me: failed program was:" >&5
40319 sed 's/^/| /' conftest.$ac_ext >&5
40320
40321 eval "$as_ac_var=no"
40322 fi
40323 rm -f conftest.err conftest.$ac_objext \
40324       conftest$ac_exeext conftest.$ac_ext
40325 fi
40326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40328 if test `eval echo '${'$as_ac_var'}'` = yes; then
40329   cat >>confdefs.h <<_ACEOF
40330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40331 _ACEOF
40332
40333 fi
40334 done
40335
40336     fi
40337   fi
40338
40339
40340
40341   echo "$as_me:$LINENO: checking for sincosf declaration" >&5
40342 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
40343   if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
40344     if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
40345   echo $ECHO_N "(cached) $ECHO_C" >&6
40346 else
40347
40348
40349
40350       ac_ext=cc
40351 ac_cpp='$CXXCPP $CPPFLAGS'
40352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40355
40356       cat >conftest.$ac_ext <<_ACEOF
40357 /* confdefs.h.  */
40358 _ACEOF
40359 cat confdefs.h >>conftest.$ac_ext
40360 cat >>conftest.$ac_ext <<_ACEOF
40361 /* end confdefs.h.  */
40362 #include <math.h>
40363 int
40364 main ()
40365 {
40366  sincosf(0, 0, 0);
40367   ;
40368   return 0;
40369 }
40370 _ACEOF
40371 rm -f conftest.$ac_objext
40372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40373   (eval $ac_compile) 2>conftest.er1
40374   ac_status=$?
40375   grep -v '^ *+' conftest.er1 >conftest.err
40376   rm -f conftest.er1
40377   cat conftest.err >&5
40378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40379   (exit $ac_status); } &&
40380          { ac_try='test -z "$ac_cxx_werror_flag"
40381                          || test ! -s conftest.err'
40382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40383   (eval $ac_try) 2>&5
40384   ac_status=$?
40385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40386   (exit $ac_status); }; } &&
40387          { ac_try='test -s conftest.$ac_objext'
40388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40389   (eval $ac_try) 2>&5
40390   ac_status=$?
40391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40392   (exit $ac_status); }; }; then
40393   glibcxx_cv_func_sincosf_use=yes
40394 else
40395   echo "$as_me: failed program was:" >&5
40396 sed 's/^/| /' conftest.$ac_ext >&5
40397
40398 glibcxx_cv_func_sincosf_use=no
40399 fi
40400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40401       ac_ext=c
40402 ac_cpp='$CPP $CPPFLAGS'
40403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40406
40407
40408 fi
40409
40410   fi
40411   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
40412 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
40413
40414   if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
40415
40416 for ac_func in sincosf
40417 do
40418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40419 echo "$as_me:$LINENO: checking for $ac_func" >&5
40420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40421 if eval "test \"\${$as_ac_var+set}\" = set"; then
40422   echo $ECHO_N "(cached) $ECHO_C" >&6
40423 else
40424   if test x$gcc_no_link = xyes; then
40425   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40426 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40427    { (exit 1); exit 1; }; }
40428 fi
40429 cat >conftest.$ac_ext <<_ACEOF
40430 /* confdefs.h.  */
40431 _ACEOF
40432 cat confdefs.h >>conftest.$ac_ext
40433 cat >>conftest.$ac_ext <<_ACEOF
40434 /* end confdefs.h.  */
40435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40437 #define $ac_func innocuous_$ac_func
40438
40439 /* System header to define __stub macros and hopefully few prototypes,
40440     which can conflict with char $ac_func (); below.
40441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40442     <limits.h> exists even on freestanding compilers.  */
40443
40444 #ifdef __STDC__
40445 # include <limits.h>
40446 #else
40447 # include <assert.h>
40448 #endif
40449
40450 #undef $ac_func
40451
40452 /* Override any gcc2 internal prototype to avoid an error.  */
40453 #ifdef __cplusplus
40454 extern "C"
40455 {
40456 #endif
40457 /* We use char because int might match the return type of a gcc2
40458    builtin and then its argument prototype would still apply.  */
40459 char $ac_func ();
40460 /* The GNU C library defines this for functions which it implements
40461     to always fail with ENOSYS.  Some functions are actually named
40462     something starting with __ and the normal name is an alias.  */
40463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40464 choke me
40465 #else
40466 char (*f) () = $ac_func;
40467 #endif
40468 #ifdef __cplusplus
40469 }
40470 #endif
40471
40472 int
40473 main ()
40474 {
40475 return f != $ac_func;
40476   ;
40477   return 0;
40478 }
40479 _ACEOF
40480 rm -f conftest.$ac_objext conftest$ac_exeext
40481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40482   (eval $ac_link) 2>conftest.er1
40483   ac_status=$?
40484   grep -v '^ *+' conftest.er1 >conftest.err
40485   rm -f conftest.er1
40486   cat conftest.err >&5
40487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40488   (exit $ac_status); } &&
40489          { ac_try='test -z "$ac_c_werror_flag"
40490                          || test ! -s conftest.err'
40491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40492   (eval $ac_try) 2>&5
40493   ac_status=$?
40494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40495   (exit $ac_status); }; } &&
40496          { ac_try='test -s conftest$ac_exeext'
40497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40498   (eval $ac_try) 2>&5
40499   ac_status=$?
40500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40501   (exit $ac_status); }; }; then
40502   eval "$as_ac_var=yes"
40503 else
40504   echo "$as_me: failed program was:" >&5
40505 sed 's/^/| /' conftest.$ac_ext >&5
40506
40507 eval "$as_ac_var=no"
40508 fi
40509 rm -f conftest.err conftest.$ac_objext \
40510       conftest$ac_exeext conftest.$ac_ext
40511 fi
40512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40514 if test `eval echo '${'$as_ac_var'}'` = yes; then
40515   cat >>confdefs.h <<_ACEOF
40516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40517 _ACEOF
40518
40519 fi
40520 done
40521
40522   else
40523
40524   echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
40525 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
40526   if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
40527     if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
40528   echo $ECHO_N "(cached) $ECHO_C" >&6
40529 else
40530
40531
40532
40533       ac_ext=cc
40534 ac_cpp='$CXXCPP $CPPFLAGS'
40535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40538
40539       cat >conftest.$ac_ext <<_ACEOF
40540 /* confdefs.h.  */
40541 _ACEOF
40542 cat confdefs.h >>conftest.$ac_ext
40543 cat >>conftest.$ac_ext <<_ACEOF
40544 /* end confdefs.h.  */
40545 #include <math.h>
40546 int
40547 main ()
40548 {
40549  _sincosf(0, 0, 0);
40550   ;
40551   return 0;
40552 }
40553 _ACEOF
40554 rm -f conftest.$ac_objext
40555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40556   (eval $ac_compile) 2>conftest.er1
40557   ac_status=$?
40558   grep -v '^ *+' conftest.er1 >conftest.err
40559   rm -f conftest.er1
40560   cat conftest.err >&5
40561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40562   (exit $ac_status); } &&
40563          { ac_try='test -z "$ac_cxx_werror_flag"
40564                          || test ! -s conftest.err'
40565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40566   (eval $ac_try) 2>&5
40567   ac_status=$?
40568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40569   (exit $ac_status); }; } &&
40570          { ac_try='test -s conftest.$ac_objext'
40571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40572   (eval $ac_try) 2>&5
40573   ac_status=$?
40574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40575   (exit $ac_status); }; }; then
40576   glibcxx_cv_func__sincosf_use=yes
40577 else
40578   echo "$as_me: failed program was:" >&5
40579 sed 's/^/| /' conftest.$ac_ext >&5
40580
40581 glibcxx_cv_func__sincosf_use=no
40582 fi
40583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40584       ac_ext=c
40585 ac_cpp='$CPP $CPPFLAGS'
40586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40589
40590
40591 fi
40592
40593   fi
40594   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
40595 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
40596
40597     if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
40598
40599 for ac_func in _sincosf
40600 do
40601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40602 echo "$as_me:$LINENO: checking for $ac_func" >&5
40603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40604 if eval "test \"\${$as_ac_var+set}\" = set"; then
40605   echo $ECHO_N "(cached) $ECHO_C" >&6
40606 else
40607   if test x$gcc_no_link = xyes; then
40608   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40609 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40610    { (exit 1); exit 1; }; }
40611 fi
40612 cat >conftest.$ac_ext <<_ACEOF
40613 /* confdefs.h.  */
40614 _ACEOF
40615 cat confdefs.h >>conftest.$ac_ext
40616 cat >>conftest.$ac_ext <<_ACEOF
40617 /* end confdefs.h.  */
40618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40620 #define $ac_func innocuous_$ac_func
40621
40622 /* System header to define __stub macros and hopefully few prototypes,
40623     which can conflict with char $ac_func (); below.
40624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40625     <limits.h> exists even on freestanding compilers.  */
40626
40627 #ifdef __STDC__
40628 # include <limits.h>
40629 #else
40630 # include <assert.h>
40631 #endif
40632
40633 #undef $ac_func
40634
40635 /* Override any gcc2 internal prototype to avoid an error.  */
40636 #ifdef __cplusplus
40637 extern "C"
40638 {
40639 #endif
40640 /* We use char because int might match the return type of a gcc2
40641    builtin and then its argument prototype would still apply.  */
40642 char $ac_func ();
40643 /* The GNU C library defines this for functions which it implements
40644     to always fail with ENOSYS.  Some functions are actually named
40645     something starting with __ and the normal name is an alias.  */
40646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40647 choke me
40648 #else
40649 char (*f) () = $ac_func;
40650 #endif
40651 #ifdef __cplusplus
40652 }
40653 #endif
40654
40655 int
40656 main ()
40657 {
40658 return f != $ac_func;
40659   ;
40660   return 0;
40661 }
40662 _ACEOF
40663 rm -f conftest.$ac_objext conftest$ac_exeext
40664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40665   (eval $ac_link) 2>conftest.er1
40666   ac_status=$?
40667   grep -v '^ *+' conftest.er1 >conftest.err
40668   rm -f conftest.er1
40669   cat conftest.err >&5
40670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40671   (exit $ac_status); } &&
40672          { ac_try='test -z "$ac_c_werror_flag"
40673                          || test ! -s conftest.err'
40674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40675   (eval $ac_try) 2>&5
40676   ac_status=$?
40677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40678   (exit $ac_status); }; } &&
40679          { ac_try='test -s conftest$ac_exeext'
40680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40681   (eval $ac_try) 2>&5
40682   ac_status=$?
40683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40684   (exit $ac_status); }; }; then
40685   eval "$as_ac_var=yes"
40686 else
40687   echo "$as_me: failed program was:" >&5
40688 sed 's/^/| /' conftest.$ac_ext >&5
40689
40690 eval "$as_ac_var=no"
40691 fi
40692 rm -f conftest.err conftest.$ac_objext \
40693       conftest$ac_exeext conftest.$ac_ext
40694 fi
40695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40697 if test `eval echo '${'$as_ac_var'}'` = yes; then
40698   cat >>confdefs.h <<_ACEOF
40699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40700 _ACEOF
40701
40702 fi
40703 done
40704
40705     fi
40706   fi
40707
40708
40709
40710   echo "$as_me:$LINENO: checking for finitef declaration" >&5
40711 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
40712   if test x${glibcxx_cv_func_finitef_use+set} != xset; then
40713     if test "${glibcxx_cv_func_finitef_use+set}" = set; then
40714   echo $ECHO_N "(cached) $ECHO_C" >&6
40715 else
40716
40717
40718
40719       ac_ext=cc
40720 ac_cpp='$CXXCPP $CPPFLAGS'
40721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40724
40725       cat >conftest.$ac_ext <<_ACEOF
40726 /* confdefs.h.  */
40727 _ACEOF
40728 cat confdefs.h >>conftest.$ac_ext
40729 cat >>conftest.$ac_ext <<_ACEOF
40730 /* end confdefs.h.  */
40731 #include <math.h>
40732                       #ifdef HAVE_IEEEFP_H
40733                       #include <ieeefp.h>
40734                       #endif
40735
40736 int
40737 main ()
40738 {
40739  finitef(0);
40740   ;
40741   return 0;
40742 }
40743 _ACEOF
40744 rm -f conftest.$ac_objext
40745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40746   (eval $ac_compile) 2>conftest.er1
40747   ac_status=$?
40748   grep -v '^ *+' conftest.er1 >conftest.err
40749   rm -f conftest.er1
40750   cat conftest.err >&5
40751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40752   (exit $ac_status); } &&
40753          { ac_try='test -z "$ac_cxx_werror_flag"
40754                          || test ! -s conftest.err'
40755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40756   (eval $ac_try) 2>&5
40757   ac_status=$?
40758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40759   (exit $ac_status); }; } &&
40760          { ac_try='test -s conftest.$ac_objext'
40761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40762   (eval $ac_try) 2>&5
40763   ac_status=$?
40764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40765   (exit $ac_status); }; }; then
40766   glibcxx_cv_func_finitef_use=yes
40767 else
40768   echo "$as_me: failed program was:" >&5
40769 sed 's/^/| /' conftest.$ac_ext >&5
40770
40771 glibcxx_cv_func_finitef_use=no
40772 fi
40773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40774       ac_ext=c
40775 ac_cpp='$CPP $CPPFLAGS'
40776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40779
40780
40781 fi
40782
40783   fi
40784   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
40785 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
40786
40787   if test x$glibcxx_cv_func_finitef_use = x"yes"; then
40788
40789 for ac_func in finitef
40790 do
40791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40792 echo "$as_me:$LINENO: checking for $ac_func" >&5
40793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40794 if eval "test \"\${$as_ac_var+set}\" = set"; then
40795   echo $ECHO_N "(cached) $ECHO_C" >&6
40796 else
40797   if test x$gcc_no_link = xyes; then
40798   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40799 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40800    { (exit 1); exit 1; }; }
40801 fi
40802 cat >conftest.$ac_ext <<_ACEOF
40803 /* confdefs.h.  */
40804 _ACEOF
40805 cat confdefs.h >>conftest.$ac_ext
40806 cat >>conftest.$ac_ext <<_ACEOF
40807 /* end confdefs.h.  */
40808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40810 #define $ac_func innocuous_$ac_func
40811
40812 /* System header to define __stub macros and hopefully few prototypes,
40813     which can conflict with char $ac_func (); below.
40814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40815     <limits.h> exists even on freestanding compilers.  */
40816
40817 #ifdef __STDC__
40818 # include <limits.h>
40819 #else
40820 # include <assert.h>
40821 #endif
40822
40823 #undef $ac_func
40824
40825 /* Override any gcc2 internal prototype to avoid an error.  */
40826 #ifdef __cplusplus
40827 extern "C"
40828 {
40829 #endif
40830 /* We use char because int might match the return type of a gcc2
40831    builtin and then its argument prototype would still apply.  */
40832 char $ac_func ();
40833 /* The GNU C library defines this for functions which it implements
40834     to always fail with ENOSYS.  Some functions are actually named
40835     something starting with __ and the normal name is an alias.  */
40836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40837 choke me
40838 #else
40839 char (*f) () = $ac_func;
40840 #endif
40841 #ifdef __cplusplus
40842 }
40843 #endif
40844
40845 int
40846 main ()
40847 {
40848 return f != $ac_func;
40849   ;
40850   return 0;
40851 }
40852 _ACEOF
40853 rm -f conftest.$ac_objext conftest$ac_exeext
40854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40855   (eval $ac_link) 2>conftest.er1
40856   ac_status=$?
40857   grep -v '^ *+' conftest.er1 >conftest.err
40858   rm -f conftest.er1
40859   cat conftest.err >&5
40860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40861   (exit $ac_status); } &&
40862          { ac_try='test -z "$ac_c_werror_flag"
40863                          || test ! -s conftest.err'
40864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40865   (eval $ac_try) 2>&5
40866   ac_status=$?
40867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40868   (exit $ac_status); }; } &&
40869          { ac_try='test -s conftest$ac_exeext'
40870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40871   (eval $ac_try) 2>&5
40872   ac_status=$?
40873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40874   (exit $ac_status); }; }; then
40875   eval "$as_ac_var=yes"
40876 else
40877   echo "$as_me: failed program was:" >&5
40878 sed 's/^/| /' conftest.$ac_ext >&5
40879
40880 eval "$as_ac_var=no"
40881 fi
40882 rm -f conftest.err conftest.$ac_objext \
40883       conftest$ac_exeext conftest.$ac_ext
40884 fi
40885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40887 if test `eval echo '${'$as_ac_var'}'` = yes; then
40888   cat >>confdefs.h <<_ACEOF
40889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40890 _ACEOF
40891
40892 fi
40893 done
40894
40895   else
40896
40897   echo "$as_me:$LINENO: checking for _finitef declaration" >&5
40898 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
40899   if test x${glibcxx_cv_func__finitef_use+set} != xset; then
40900     if test "${glibcxx_cv_func__finitef_use+set}" = set; then
40901   echo $ECHO_N "(cached) $ECHO_C" >&6
40902 else
40903
40904
40905
40906       ac_ext=cc
40907 ac_cpp='$CXXCPP $CPPFLAGS'
40908 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40909 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40910 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40911
40912       cat >conftest.$ac_ext <<_ACEOF
40913 /* confdefs.h.  */
40914 _ACEOF
40915 cat confdefs.h >>conftest.$ac_ext
40916 cat >>conftest.$ac_ext <<_ACEOF
40917 /* end confdefs.h.  */
40918 #include <math.h>
40919                       #ifdef HAVE_IEEEFP_H
40920                       #include <ieeefp.h>
40921                       #endif
40922
40923 int
40924 main ()
40925 {
40926  _finitef(0);
40927   ;
40928   return 0;
40929 }
40930 _ACEOF
40931 rm -f conftest.$ac_objext
40932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40933   (eval $ac_compile) 2>conftest.er1
40934   ac_status=$?
40935   grep -v '^ *+' conftest.er1 >conftest.err
40936   rm -f conftest.er1
40937   cat conftest.err >&5
40938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40939   (exit $ac_status); } &&
40940          { ac_try='test -z "$ac_cxx_werror_flag"
40941                          || test ! -s conftest.err'
40942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40943   (eval $ac_try) 2>&5
40944   ac_status=$?
40945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40946   (exit $ac_status); }; } &&
40947          { ac_try='test -s conftest.$ac_objext'
40948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40949   (eval $ac_try) 2>&5
40950   ac_status=$?
40951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40952   (exit $ac_status); }; }; then
40953   glibcxx_cv_func__finitef_use=yes
40954 else
40955   echo "$as_me: failed program was:" >&5
40956 sed 's/^/| /' conftest.$ac_ext >&5
40957
40958 glibcxx_cv_func__finitef_use=no
40959 fi
40960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40961       ac_ext=c
40962 ac_cpp='$CPP $CPPFLAGS'
40963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40966
40967
40968 fi
40969
40970   fi
40971   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
40972 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
40973
40974     if test x$glibcxx_cv_func__finitef_use = x"yes"; then
40975
40976 for ac_func in _finitef
40977 do
40978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40979 echo "$as_me:$LINENO: checking for $ac_func" >&5
40980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40981 if eval "test \"\${$as_ac_var+set}\" = set"; then
40982   echo $ECHO_N "(cached) $ECHO_C" >&6
40983 else
40984   if test x$gcc_no_link = xyes; then
40985   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
40986 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
40987    { (exit 1); exit 1; }; }
40988 fi
40989 cat >conftest.$ac_ext <<_ACEOF
40990 /* confdefs.h.  */
40991 _ACEOF
40992 cat confdefs.h >>conftest.$ac_ext
40993 cat >>conftest.$ac_ext <<_ACEOF
40994 /* end confdefs.h.  */
40995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40997 #define $ac_func innocuous_$ac_func
40998
40999 /* System header to define __stub macros and hopefully few prototypes,
41000     which can conflict with char $ac_func (); below.
41001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41002     <limits.h> exists even on freestanding compilers.  */
41003
41004 #ifdef __STDC__
41005 # include <limits.h>
41006 #else
41007 # include <assert.h>
41008 #endif
41009
41010 #undef $ac_func
41011
41012 /* Override any gcc2 internal prototype to avoid an error.  */
41013 #ifdef __cplusplus
41014 extern "C"
41015 {
41016 #endif
41017 /* We use char because int might match the return type of a gcc2
41018    builtin and then its argument prototype would still apply.  */
41019 char $ac_func ();
41020 /* The GNU C library defines this for functions which it implements
41021     to always fail with ENOSYS.  Some functions are actually named
41022     something starting with __ and the normal name is an alias.  */
41023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41024 choke me
41025 #else
41026 char (*f) () = $ac_func;
41027 #endif
41028 #ifdef __cplusplus
41029 }
41030 #endif
41031
41032 int
41033 main ()
41034 {
41035 return f != $ac_func;
41036   ;
41037   return 0;
41038 }
41039 _ACEOF
41040 rm -f conftest.$ac_objext conftest$ac_exeext
41041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41042   (eval $ac_link) 2>conftest.er1
41043   ac_status=$?
41044   grep -v '^ *+' conftest.er1 >conftest.err
41045   rm -f conftest.er1
41046   cat conftest.err >&5
41047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41048   (exit $ac_status); } &&
41049          { ac_try='test -z "$ac_c_werror_flag"
41050                          || test ! -s conftest.err'
41051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41052   (eval $ac_try) 2>&5
41053   ac_status=$?
41054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41055   (exit $ac_status); }; } &&
41056          { ac_try='test -s conftest$ac_exeext'
41057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41058   (eval $ac_try) 2>&5
41059   ac_status=$?
41060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41061   (exit $ac_status); }; }; then
41062   eval "$as_ac_var=yes"
41063 else
41064   echo "$as_me: failed program was:" >&5
41065 sed 's/^/| /' conftest.$ac_ext >&5
41066
41067 eval "$as_ac_var=no"
41068 fi
41069 rm -f conftest.err conftest.$ac_objext \
41070       conftest$ac_exeext conftest.$ac_ext
41071 fi
41072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41074 if test `eval echo '${'$as_ac_var'}'` = yes; then
41075   cat >>confdefs.h <<_ACEOF
41076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41077 _ACEOF
41078
41079 fi
41080 done
41081
41082     fi
41083   fi
41084
41085
41086
41087   echo "$as_me:$LINENO: checking for long double trig functions" >&5
41088 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
41089   if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
41090   echo $ECHO_N "(cached) $ECHO_C" >&6
41091 else
41092
41093
41094
41095     ac_ext=cc
41096 ac_cpp='$CXXCPP $CPPFLAGS'
41097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41100
41101     cat >conftest.$ac_ext <<_ACEOF
41102 /* confdefs.h.  */
41103 _ACEOF
41104 cat confdefs.h >>conftest.$ac_ext
41105 cat >>conftest.$ac_ext <<_ACEOF
41106 /* end confdefs.h.  */
41107 #include <math.h>
41108 int
41109 main ()
41110 {
41111  `for x in acosl asinl atanl \
41112                                           cosl sinl tanl \
41113                                           coshl sinhl tanhl; do echo "$x (0);"; done`
41114   ;
41115   return 0;
41116 }
41117 _ACEOF
41118 rm -f conftest.$ac_objext
41119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41120   (eval $ac_compile) 2>conftest.er1
41121   ac_status=$?
41122   grep -v '^ *+' conftest.er1 >conftest.err
41123   rm -f conftest.er1
41124   cat conftest.err >&5
41125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41126   (exit $ac_status); } &&
41127          { ac_try='test -z "$ac_cxx_werror_flag"
41128                          || test ! -s conftest.err'
41129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41130   (eval $ac_try) 2>&5
41131   ac_status=$?
41132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41133   (exit $ac_status); }; } &&
41134          { ac_try='test -s conftest.$ac_objext'
41135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41136   (eval $ac_try) 2>&5
41137   ac_status=$?
41138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41139   (exit $ac_status); }; }; then
41140   glibcxx_cv_func_long_double_trig_use=yes
41141 else
41142   echo "$as_me: failed program was:" >&5
41143 sed 's/^/| /' conftest.$ac_ext >&5
41144
41145 glibcxx_cv_func_long_double_trig_use=no
41146 fi
41147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41148     ac_ext=c
41149 ac_cpp='$CPP $CPPFLAGS'
41150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41153
41154 fi
41155
41156   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
41157 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
41158   if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
41159
41160
41161
41162
41163
41164
41165
41166
41167
41168 for ac_func in acosl asinl atanl \
41169                                           cosl sinl tanl \
41170                                           coshl sinhl tanhl
41171 do
41172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41173 echo "$as_me:$LINENO: checking for $ac_func" >&5
41174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41175 if eval "test \"\${$as_ac_var+set}\" = set"; then
41176   echo $ECHO_N "(cached) $ECHO_C" >&6
41177 else
41178   if test x$gcc_no_link = xyes; then
41179   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41180 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41181    { (exit 1); exit 1; }; }
41182 fi
41183 cat >conftest.$ac_ext <<_ACEOF
41184 /* confdefs.h.  */
41185 _ACEOF
41186 cat confdefs.h >>conftest.$ac_ext
41187 cat >>conftest.$ac_ext <<_ACEOF
41188 /* end confdefs.h.  */
41189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41191 #define $ac_func innocuous_$ac_func
41192
41193 /* System header to define __stub macros and hopefully few prototypes,
41194     which can conflict with char $ac_func (); below.
41195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41196     <limits.h> exists even on freestanding compilers.  */
41197
41198 #ifdef __STDC__
41199 # include <limits.h>
41200 #else
41201 # include <assert.h>
41202 #endif
41203
41204 #undef $ac_func
41205
41206 /* Override any gcc2 internal prototype to avoid an error.  */
41207 #ifdef __cplusplus
41208 extern "C"
41209 {
41210 #endif
41211 /* We use char because int might match the return type of a gcc2
41212    builtin and then its argument prototype would still apply.  */
41213 char $ac_func ();
41214 /* The GNU C library defines this for functions which it implements
41215     to always fail with ENOSYS.  Some functions are actually named
41216     something starting with __ and the normal name is an alias.  */
41217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41218 choke me
41219 #else
41220 char (*f) () = $ac_func;
41221 #endif
41222 #ifdef __cplusplus
41223 }
41224 #endif
41225
41226 int
41227 main ()
41228 {
41229 return f != $ac_func;
41230   ;
41231   return 0;
41232 }
41233 _ACEOF
41234 rm -f conftest.$ac_objext conftest$ac_exeext
41235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41236   (eval $ac_link) 2>conftest.er1
41237   ac_status=$?
41238   grep -v '^ *+' conftest.er1 >conftest.err
41239   rm -f conftest.er1
41240   cat conftest.err >&5
41241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41242   (exit $ac_status); } &&
41243          { ac_try='test -z "$ac_c_werror_flag"
41244                          || test ! -s conftest.err'
41245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41246   (eval $ac_try) 2>&5
41247   ac_status=$?
41248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41249   (exit $ac_status); }; } &&
41250          { ac_try='test -s conftest$ac_exeext'
41251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41252   (eval $ac_try) 2>&5
41253   ac_status=$?
41254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41255   (exit $ac_status); }; }; then
41256   eval "$as_ac_var=yes"
41257 else
41258   echo "$as_me: failed program was:" >&5
41259 sed 's/^/| /' conftest.$ac_ext >&5
41260
41261 eval "$as_ac_var=no"
41262 fi
41263 rm -f conftest.err conftest.$ac_objext \
41264       conftest$ac_exeext conftest.$ac_ext
41265 fi
41266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41267 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41268 if test `eval echo '${'$as_ac_var'}'` = yes; then
41269   cat >>confdefs.h <<_ACEOF
41270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41271 _ACEOF
41272
41273 fi
41274 done
41275
41276   fi
41277
41278
41279   echo "$as_me:$LINENO: checking for long double round functions" >&5
41280 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
41281   if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
41282   echo $ECHO_N "(cached) $ECHO_C" >&6
41283 else
41284
41285
41286
41287     ac_ext=cc
41288 ac_cpp='$CXXCPP $CPPFLAGS'
41289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41292
41293     cat >conftest.$ac_ext <<_ACEOF
41294 /* confdefs.h.  */
41295 _ACEOF
41296 cat confdefs.h >>conftest.$ac_ext
41297 cat >>conftest.$ac_ext <<_ACEOF
41298 /* end confdefs.h.  */
41299 #include <math.h>
41300 int
41301 main ()
41302 {
41303  `for x in ceill floorl; do echo "$x (0);"; done`
41304   ;
41305   return 0;
41306 }
41307 _ACEOF
41308 rm -f conftest.$ac_objext
41309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41310   (eval $ac_compile) 2>conftest.er1
41311   ac_status=$?
41312   grep -v '^ *+' conftest.er1 >conftest.err
41313   rm -f conftest.er1
41314   cat conftest.err >&5
41315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41316   (exit $ac_status); } &&
41317          { ac_try='test -z "$ac_cxx_werror_flag"
41318                          || test ! -s conftest.err'
41319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41320   (eval $ac_try) 2>&5
41321   ac_status=$?
41322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41323   (exit $ac_status); }; } &&
41324          { ac_try='test -s conftest.$ac_objext'
41325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41326   (eval $ac_try) 2>&5
41327   ac_status=$?
41328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41329   (exit $ac_status); }; }; then
41330   glibcxx_cv_func_long_double_round_use=yes
41331 else
41332   echo "$as_me: failed program was:" >&5
41333 sed 's/^/| /' conftest.$ac_ext >&5
41334
41335 glibcxx_cv_func_long_double_round_use=no
41336 fi
41337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41338     ac_ext=c
41339 ac_cpp='$CPP $CPPFLAGS'
41340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41343
41344 fi
41345
41346   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
41347 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
41348   if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
41349
41350
41351 for ac_func in ceill floorl
41352 do
41353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41354 echo "$as_me:$LINENO: checking for $ac_func" >&5
41355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41356 if eval "test \"\${$as_ac_var+set}\" = set"; then
41357   echo $ECHO_N "(cached) $ECHO_C" >&6
41358 else
41359   if test x$gcc_no_link = xyes; then
41360   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41362    { (exit 1); exit 1; }; }
41363 fi
41364 cat >conftest.$ac_ext <<_ACEOF
41365 /* confdefs.h.  */
41366 _ACEOF
41367 cat confdefs.h >>conftest.$ac_ext
41368 cat >>conftest.$ac_ext <<_ACEOF
41369 /* end confdefs.h.  */
41370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41372 #define $ac_func innocuous_$ac_func
41373
41374 /* System header to define __stub macros and hopefully few prototypes,
41375     which can conflict with char $ac_func (); below.
41376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41377     <limits.h> exists even on freestanding compilers.  */
41378
41379 #ifdef __STDC__
41380 # include <limits.h>
41381 #else
41382 # include <assert.h>
41383 #endif
41384
41385 #undef $ac_func
41386
41387 /* Override any gcc2 internal prototype to avoid an error.  */
41388 #ifdef __cplusplus
41389 extern "C"
41390 {
41391 #endif
41392 /* We use char because int might match the return type of a gcc2
41393    builtin and then its argument prototype would still apply.  */
41394 char $ac_func ();
41395 /* The GNU C library defines this for functions which it implements
41396     to always fail with ENOSYS.  Some functions are actually named
41397     something starting with __ and the normal name is an alias.  */
41398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41399 choke me
41400 #else
41401 char (*f) () = $ac_func;
41402 #endif
41403 #ifdef __cplusplus
41404 }
41405 #endif
41406
41407 int
41408 main ()
41409 {
41410 return f != $ac_func;
41411   ;
41412   return 0;
41413 }
41414 _ACEOF
41415 rm -f conftest.$ac_objext conftest$ac_exeext
41416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41417   (eval $ac_link) 2>conftest.er1
41418   ac_status=$?
41419   grep -v '^ *+' conftest.er1 >conftest.err
41420   rm -f conftest.er1
41421   cat conftest.err >&5
41422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41423   (exit $ac_status); } &&
41424          { ac_try='test -z "$ac_c_werror_flag"
41425                          || test ! -s conftest.err'
41426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41427   (eval $ac_try) 2>&5
41428   ac_status=$?
41429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41430   (exit $ac_status); }; } &&
41431          { ac_try='test -s conftest$ac_exeext'
41432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41433   (eval $ac_try) 2>&5
41434   ac_status=$?
41435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41436   (exit $ac_status); }; }; then
41437   eval "$as_ac_var=yes"
41438 else
41439   echo "$as_me: failed program was:" >&5
41440 sed 's/^/| /' conftest.$ac_ext >&5
41441
41442 eval "$as_ac_var=no"
41443 fi
41444 rm -f conftest.err conftest.$ac_objext \
41445       conftest$ac_exeext conftest.$ac_ext
41446 fi
41447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41449 if test `eval echo '${'$as_ac_var'}'` = yes; then
41450   cat >>confdefs.h <<_ACEOF
41451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41452 _ACEOF
41453
41454 fi
41455 done
41456
41457   fi
41458
41459
41460
41461   echo "$as_me:$LINENO: checking for isnanl declaration" >&5
41462 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
41463   if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
41464     if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
41465   echo $ECHO_N "(cached) $ECHO_C" >&6
41466 else
41467
41468
41469
41470       ac_ext=cc
41471 ac_cpp='$CXXCPP $CPPFLAGS'
41472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41475
41476       cat >conftest.$ac_ext <<_ACEOF
41477 /* confdefs.h.  */
41478 _ACEOF
41479 cat confdefs.h >>conftest.$ac_ext
41480 cat >>conftest.$ac_ext <<_ACEOF
41481 /* end confdefs.h.  */
41482 #include <math.h>
41483                       #ifdef HAVE_IEEEFP_H
41484                       #include <ieeefp.h>
41485                       #endif
41486
41487 int
41488 main ()
41489 {
41490  isnanl(0);
41491   ;
41492   return 0;
41493 }
41494 _ACEOF
41495 rm -f conftest.$ac_objext
41496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41497   (eval $ac_compile) 2>conftest.er1
41498   ac_status=$?
41499   grep -v '^ *+' conftest.er1 >conftest.err
41500   rm -f conftest.er1
41501   cat conftest.err >&5
41502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41503   (exit $ac_status); } &&
41504          { ac_try='test -z "$ac_cxx_werror_flag"
41505                          || test ! -s conftest.err'
41506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41507   (eval $ac_try) 2>&5
41508   ac_status=$?
41509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41510   (exit $ac_status); }; } &&
41511          { ac_try='test -s conftest.$ac_objext'
41512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41513   (eval $ac_try) 2>&5
41514   ac_status=$?
41515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41516   (exit $ac_status); }; }; then
41517   glibcxx_cv_func_isnanl_use=yes
41518 else
41519   echo "$as_me: failed program was:" >&5
41520 sed 's/^/| /' conftest.$ac_ext >&5
41521
41522 glibcxx_cv_func_isnanl_use=no
41523 fi
41524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41525       ac_ext=c
41526 ac_cpp='$CPP $CPPFLAGS'
41527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41530
41531
41532 fi
41533
41534   fi
41535   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
41536 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
41537
41538   if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
41539
41540 for ac_func in isnanl
41541 do
41542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41543 echo "$as_me:$LINENO: checking for $ac_func" >&5
41544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41545 if eval "test \"\${$as_ac_var+set}\" = set"; then
41546   echo $ECHO_N "(cached) $ECHO_C" >&6
41547 else
41548   if test x$gcc_no_link = xyes; then
41549   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41551    { (exit 1); exit 1; }; }
41552 fi
41553 cat >conftest.$ac_ext <<_ACEOF
41554 /* confdefs.h.  */
41555 _ACEOF
41556 cat confdefs.h >>conftest.$ac_ext
41557 cat >>conftest.$ac_ext <<_ACEOF
41558 /* end confdefs.h.  */
41559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41561 #define $ac_func innocuous_$ac_func
41562
41563 /* System header to define __stub macros and hopefully few prototypes,
41564     which can conflict with char $ac_func (); below.
41565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41566     <limits.h> exists even on freestanding compilers.  */
41567
41568 #ifdef __STDC__
41569 # include <limits.h>
41570 #else
41571 # include <assert.h>
41572 #endif
41573
41574 #undef $ac_func
41575
41576 /* Override any gcc2 internal prototype to avoid an error.  */
41577 #ifdef __cplusplus
41578 extern "C"
41579 {
41580 #endif
41581 /* We use char because int might match the return type of a gcc2
41582    builtin and then its argument prototype would still apply.  */
41583 char $ac_func ();
41584 /* The GNU C library defines this for functions which it implements
41585     to always fail with ENOSYS.  Some functions are actually named
41586     something starting with __ and the normal name is an alias.  */
41587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41588 choke me
41589 #else
41590 char (*f) () = $ac_func;
41591 #endif
41592 #ifdef __cplusplus
41593 }
41594 #endif
41595
41596 int
41597 main ()
41598 {
41599 return f != $ac_func;
41600   ;
41601   return 0;
41602 }
41603 _ACEOF
41604 rm -f conftest.$ac_objext conftest$ac_exeext
41605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41606   (eval $ac_link) 2>conftest.er1
41607   ac_status=$?
41608   grep -v '^ *+' conftest.er1 >conftest.err
41609   rm -f conftest.er1
41610   cat conftest.err >&5
41611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41612   (exit $ac_status); } &&
41613          { ac_try='test -z "$ac_c_werror_flag"
41614                          || test ! -s conftest.err'
41615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41616   (eval $ac_try) 2>&5
41617   ac_status=$?
41618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41619   (exit $ac_status); }; } &&
41620          { ac_try='test -s conftest$ac_exeext'
41621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41622   (eval $ac_try) 2>&5
41623   ac_status=$?
41624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625   (exit $ac_status); }; }; then
41626   eval "$as_ac_var=yes"
41627 else
41628   echo "$as_me: failed program was:" >&5
41629 sed 's/^/| /' conftest.$ac_ext >&5
41630
41631 eval "$as_ac_var=no"
41632 fi
41633 rm -f conftest.err conftest.$ac_objext \
41634       conftest$ac_exeext conftest.$ac_ext
41635 fi
41636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41638 if test `eval echo '${'$as_ac_var'}'` = yes; then
41639   cat >>confdefs.h <<_ACEOF
41640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41641 _ACEOF
41642
41643 fi
41644 done
41645
41646   else
41647
41648   echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
41649 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
41650   if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
41651     if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
41652   echo $ECHO_N "(cached) $ECHO_C" >&6
41653 else
41654
41655
41656
41657       ac_ext=cc
41658 ac_cpp='$CXXCPP $CPPFLAGS'
41659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41662
41663       cat >conftest.$ac_ext <<_ACEOF
41664 /* confdefs.h.  */
41665 _ACEOF
41666 cat confdefs.h >>conftest.$ac_ext
41667 cat >>conftest.$ac_ext <<_ACEOF
41668 /* end confdefs.h.  */
41669 #include <math.h>
41670                       #ifdef HAVE_IEEEFP_H
41671                       #include <ieeefp.h>
41672                       #endif
41673
41674 int
41675 main ()
41676 {
41677  _isnanl(0);
41678   ;
41679   return 0;
41680 }
41681 _ACEOF
41682 rm -f conftest.$ac_objext
41683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41684   (eval $ac_compile) 2>conftest.er1
41685   ac_status=$?
41686   grep -v '^ *+' conftest.er1 >conftest.err
41687   rm -f conftest.er1
41688   cat conftest.err >&5
41689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41690   (exit $ac_status); } &&
41691          { ac_try='test -z "$ac_cxx_werror_flag"
41692                          || test ! -s conftest.err'
41693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41694   (eval $ac_try) 2>&5
41695   ac_status=$?
41696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41697   (exit $ac_status); }; } &&
41698          { ac_try='test -s conftest.$ac_objext'
41699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41700   (eval $ac_try) 2>&5
41701   ac_status=$?
41702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41703   (exit $ac_status); }; }; then
41704   glibcxx_cv_func__isnanl_use=yes
41705 else
41706   echo "$as_me: failed program was:" >&5
41707 sed 's/^/| /' conftest.$ac_ext >&5
41708
41709 glibcxx_cv_func__isnanl_use=no
41710 fi
41711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41712       ac_ext=c
41713 ac_cpp='$CPP $CPPFLAGS'
41714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41717
41718
41719 fi
41720
41721   fi
41722   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
41723 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
41724
41725     if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
41726
41727 for ac_func in _isnanl
41728 do
41729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41730 echo "$as_me:$LINENO: checking for $ac_func" >&5
41731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41732 if eval "test \"\${$as_ac_var+set}\" = set"; then
41733   echo $ECHO_N "(cached) $ECHO_C" >&6
41734 else
41735   if test x$gcc_no_link = xyes; then
41736   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41737 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41738    { (exit 1); exit 1; }; }
41739 fi
41740 cat >conftest.$ac_ext <<_ACEOF
41741 /* confdefs.h.  */
41742 _ACEOF
41743 cat confdefs.h >>conftest.$ac_ext
41744 cat >>conftest.$ac_ext <<_ACEOF
41745 /* end confdefs.h.  */
41746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41748 #define $ac_func innocuous_$ac_func
41749
41750 /* System header to define __stub macros and hopefully few prototypes,
41751     which can conflict with char $ac_func (); below.
41752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41753     <limits.h> exists even on freestanding compilers.  */
41754
41755 #ifdef __STDC__
41756 # include <limits.h>
41757 #else
41758 # include <assert.h>
41759 #endif
41760
41761 #undef $ac_func
41762
41763 /* Override any gcc2 internal prototype to avoid an error.  */
41764 #ifdef __cplusplus
41765 extern "C"
41766 {
41767 #endif
41768 /* We use char because int might match the return type of a gcc2
41769    builtin and then its argument prototype would still apply.  */
41770 char $ac_func ();
41771 /* The GNU C library defines this for functions which it implements
41772     to always fail with ENOSYS.  Some functions are actually named
41773     something starting with __ and the normal name is an alias.  */
41774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41775 choke me
41776 #else
41777 char (*f) () = $ac_func;
41778 #endif
41779 #ifdef __cplusplus
41780 }
41781 #endif
41782
41783 int
41784 main ()
41785 {
41786 return f != $ac_func;
41787   ;
41788   return 0;
41789 }
41790 _ACEOF
41791 rm -f conftest.$ac_objext conftest$ac_exeext
41792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41793   (eval $ac_link) 2>conftest.er1
41794   ac_status=$?
41795   grep -v '^ *+' conftest.er1 >conftest.err
41796   rm -f conftest.er1
41797   cat conftest.err >&5
41798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41799   (exit $ac_status); } &&
41800          { ac_try='test -z "$ac_c_werror_flag"
41801                          || test ! -s conftest.err'
41802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41803   (eval $ac_try) 2>&5
41804   ac_status=$?
41805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41806   (exit $ac_status); }; } &&
41807          { ac_try='test -s conftest$ac_exeext'
41808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41809   (eval $ac_try) 2>&5
41810   ac_status=$?
41811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41812   (exit $ac_status); }; }; then
41813   eval "$as_ac_var=yes"
41814 else
41815   echo "$as_me: failed program was:" >&5
41816 sed 's/^/| /' conftest.$ac_ext >&5
41817
41818 eval "$as_ac_var=no"
41819 fi
41820 rm -f conftest.err conftest.$ac_objext \
41821       conftest$ac_exeext conftest.$ac_ext
41822 fi
41823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41825 if test `eval echo '${'$as_ac_var'}'` = yes; then
41826   cat >>confdefs.h <<_ACEOF
41827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41828 _ACEOF
41829
41830 fi
41831 done
41832
41833     fi
41834   fi
41835
41836
41837
41838   echo "$as_me:$LINENO: checking for isinfl declaration" >&5
41839 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
41840   if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
41841     if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
41842   echo $ECHO_N "(cached) $ECHO_C" >&6
41843 else
41844
41845
41846
41847       ac_ext=cc
41848 ac_cpp='$CXXCPP $CPPFLAGS'
41849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41852
41853       cat >conftest.$ac_ext <<_ACEOF
41854 /* confdefs.h.  */
41855 _ACEOF
41856 cat confdefs.h >>conftest.$ac_ext
41857 cat >>conftest.$ac_ext <<_ACEOF
41858 /* end confdefs.h.  */
41859 #include <math.h>
41860                       #ifdef HAVE_IEEEFP_H
41861                       #include <ieeefp.h>
41862                       #endif
41863
41864 int
41865 main ()
41866 {
41867  isinfl(0);
41868   ;
41869   return 0;
41870 }
41871 _ACEOF
41872 rm -f conftest.$ac_objext
41873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41874   (eval $ac_compile) 2>conftest.er1
41875   ac_status=$?
41876   grep -v '^ *+' conftest.er1 >conftest.err
41877   rm -f conftest.er1
41878   cat conftest.err >&5
41879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41880   (exit $ac_status); } &&
41881          { ac_try='test -z "$ac_cxx_werror_flag"
41882                          || test ! -s conftest.err'
41883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41884   (eval $ac_try) 2>&5
41885   ac_status=$?
41886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41887   (exit $ac_status); }; } &&
41888          { ac_try='test -s conftest.$ac_objext'
41889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41890   (eval $ac_try) 2>&5
41891   ac_status=$?
41892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41893   (exit $ac_status); }; }; then
41894   glibcxx_cv_func_isinfl_use=yes
41895 else
41896   echo "$as_me: failed program was:" >&5
41897 sed 's/^/| /' conftest.$ac_ext >&5
41898
41899 glibcxx_cv_func_isinfl_use=no
41900 fi
41901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41902       ac_ext=c
41903 ac_cpp='$CPP $CPPFLAGS'
41904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41907
41908
41909 fi
41910
41911   fi
41912   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
41913 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
41914
41915   if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
41916
41917 for ac_func in isinfl
41918 do
41919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41920 echo "$as_me:$LINENO: checking for $ac_func" >&5
41921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41922 if eval "test \"\${$as_ac_var+set}\" = set"; then
41923   echo $ECHO_N "(cached) $ECHO_C" >&6
41924 else
41925   if test x$gcc_no_link = xyes; then
41926   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
41927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
41928    { (exit 1); exit 1; }; }
41929 fi
41930 cat >conftest.$ac_ext <<_ACEOF
41931 /* confdefs.h.  */
41932 _ACEOF
41933 cat confdefs.h >>conftest.$ac_ext
41934 cat >>conftest.$ac_ext <<_ACEOF
41935 /* end confdefs.h.  */
41936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41938 #define $ac_func innocuous_$ac_func
41939
41940 /* System header to define __stub macros and hopefully few prototypes,
41941     which can conflict with char $ac_func (); below.
41942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41943     <limits.h> exists even on freestanding compilers.  */
41944
41945 #ifdef __STDC__
41946 # include <limits.h>
41947 #else
41948 # include <assert.h>
41949 #endif
41950
41951 #undef $ac_func
41952
41953 /* Override any gcc2 internal prototype to avoid an error.  */
41954 #ifdef __cplusplus
41955 extern "C"
41956 {
41957 #endif
41958 /* We use char because int might match the return type of a gcc2
41959    builtin and then its argument prototype would still apply.  */
41960 char $ac_func ();
41961 /* The GNU C library defines this for functions which it implements
41962     to always fail with ENOSYS.  Some functions are actually named
41963     something starting with __ and the normal name is an alias.  */
41964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41965 choke me
41966 #else
41967 char (*f) () = $ac_func;
41968 #endif
41969 #ifdef __cplusplus
41970 }
41971 #endif
41972
41973 int
41974 main ()
41975 {
41976 return f != $ac_func;
41977   ;
41978   return 0;
41979 }
41980 _ACEOF
41981 rm -f conftest.$ac_objext conftest$ac_exeext
41982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41983   (eval $ac_link) 2>conftest.er1
41984   ac_status=$?
41985   grep -v '^ *+' conftest.er1 >conftest.err
41986   rm -f conftest.er1
41987   cat conftest.err >&5
41988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41989   (exit $ac_status); } &&
41990          { ac_try='test -z "$ac_c_werror_flag"
41991                          || test ! -s conftest.err'
41992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41993   (eval $ac_try) 2>&5
41994   ac_status=$?
41995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41996   (exit $ac_status); }; } &&
41997          { ac_try='test -s conftest$ac_exeext'
41998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41999   (eval $ac_try) 2>&5
42000   ac_status=$?
42001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42002   (exit $ac_status); }; }; then
42003   eval "$as_ac_var=yes"
42004 else
42005   echo "$as_me: failed program was:" >&5
42006 sed 's/^/| /' conftest.$ac_ext >&5
42007
42008 eval "$as_ac_var=no"
42009 fi
42010 rm -f conftest.err conftest.$ac_objext \
42011       conftest$ac_exeext conftest.$ac_ext
42012 fi
42013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42015 if test `eval echo '${'$as_ac_var'}'` = yes; then
42016   cat >>confdefs.h <<_ACEOF
42017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42018 _ACEOF
42019
42020 fi
42021 done
42022
42023   else
42024
42025   echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
42026 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
42027   if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
42028     if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
42029   echo $ECHO_N "(cached) $ECHO_C" >&6
42030 else
42031
42032
42033
42034       ac_ext=cc
42035 ac_cpp='$CXXCPP $CPPFLAGS'
42036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42039
42040       cat >conftest.$ac_ext <<_ACEOF
42041 /* confdefs.h.  */
42042 _ACEOF
42043 cat confdefs.h >>conftest.$ac_ext
42044 cat >>conftest.$ac_ext <<_ACEOF
42045 /* end confdefs.h.  */
42046 #include <math.h>
42047                       #ifdef HAVE_IEEEFP_H
42048                       #include <ieeefp.h>
42049                       #endif
42050
42051 int
42052 main ()
42053 {
42054  _isinfl(0);
42055   ;
42056   return 0;
42057 }
42058 _ACEOF
42059 rm -f conftest.$ac_objext
42060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42061   (eval $ac_compile) 2>conftest.er1
42062   ac_status=$?
42063   grep -v '^ *+' conftest.er1 >conftest.err
42064   rm -f conftest.er1
42065   cat conftest.err >&5
42066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42067   (exit $ac_status); } &&
42068          { ac_try='test -z "$ac_cxx_werror_flag"
42069                          || test ! -s conftest.err'
42070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42071   (eval $ac_try) 2>&5
42072   ac_status=$?
42073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42074   (exit $ac_status); }; } &&
42075          { ac_try='test -s conftest.$ac_objext'
42076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42077   (eval $ac_try) 2>&5
42078   ac_status=$?
42079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42080   (exit $ac_status); }; }; then
42081   glibcxx_cv_func__isinfl_use=yes
42082 else
42083   echo "$as_me: failed program was:" >&5
42084 sed 's/^/| /' conftest.$ac_ext >&5
42085
42086 glibcxx_cv_func__isinfl_use=no
42087 fi
42088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42089       ac_ext=c
42090 ac_cpp='$CPP $CPPFLAGS'
42091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42094
42095
42096 fi
42097
42098   fi
42099   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
42100 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
42101
42102     if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
42103
42104 for ac_func in _isinfl
42105 do
42106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42107 echo "$as_me:$LINENO: checking for $ac_func" >&5
42108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42109 if eval "test \"\${$as_ac_var+set}\" = set"; then
42110   echo $ECHO_N "(cached) $ECHO_C" >&6
42111 else
42112   if test x$gcc_no_link = xyes; then
42113   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42115    { (exit 1); exit 1; }; }
42116 fi
42117 cat >conftest.$ac_ext <<_ACEOF
42118 /* confdefs.h.  */
42119 _ACEOF
42120 cat confdefs.h >>conftest.$ac_ext
42121 cat >>conftest.$ac_ext <<_ACEOF
42122 /* end confdefs.h.  */
42123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42125 #define $ac_func innocuous_$ac_func
42126
42127 /* System header to define __stub macros and hopefully few prototypes,
42128     which can conflict with char $ac_func (); below.
42129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42130     <limits.h> exists even on freestanding compilers.  */
42131
42132 #ifdef __STDC__
42133 # include <limits.h>
42134 #else
42135 # include <assert.h>
42136 #endif
42137
42138 #undef $ac_func
42139
42140 /* Override any gcc2 internal prototype to avoid an error.  */
42141 #ifdef __cplusplus
42142 extern "C"
42143 {
42144 #endif
42145 /* We use char because int might match the return type of a gcc2
42146    builtin and then its argument prototype would still apply.  */
42147 char $ac_func ();
42148 /* The GNU C library defines this for functions which it implements
42149     to always fail with ENOSYS.  Some functions are actually named
42150     something starting with __ and the normal name is an alias.  */
42151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42152 choke me
42153 #else
42154 char (*f) () = $ac_func;
42155 #endif
42156 #ifdef __cplusplus
42157 }
42158 #endif
42159
42160 int
42161 main ()
42162 {
42163 return f != $ac_func;
42164   ;
42165   return 0;
42166 }
42167 _ACEOF
42168 rm -f conftest.$ac_objext conftest$ac_exeext
42169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42170   (eval $ac_link) 2>conftest.er1
42171   ac_status=$?
42172   grep -v '^ *+' conftest.er1 >conftest.err
42173   rm -f conftest.er1
42174   cat conftest.err >&5
42175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42176   (exit $ac_status); } &&
42177          { ac_try='test -z "$ac_c_werror_flag"
42178                          || test ! -s conftest.err'
42179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42180   (eval $ac_try) 2>&5
42181   ac_status=$?
42182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42183   (exit $ac_status); }; } &&
42184          { ac_try='test -s conftest$ac_exeext'
42185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42186   (eval $ac_try) 2>&5
42187   ac_status=$?
42188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42189   (exit $ac_status); }; }; then
42190   eval "$as_ac_var=yes"
42191 else
42192   echo "$as_me: failed program was:" >&5
42193 sed 's/^/| /' conftest.$ac_ext >&5
42194
42195 eval "$as_ac_var=no"
42196 fi
42197 rm -f conftest.err conftest.$ac_objext \
42198       conftest$ac_exeext conftest.$ac_ext
42199 fi
42200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42202 if test `eval echo '${'$as_ac_var'}'` = yes; then
42203   cat >>confdefs.h <<_ACEOF
42204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42205 _ACEOF
42206
42207 fi
42208 done
42209
42210     fi
42211   fi
42212
42213
42214
42215   echo "$as_me:$LINENO: checking for copysignl declaration" >&5
42216 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
42217   if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
42218     if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
42219   echo $ECHO_N "(cached) $ECHO_C" >&6
42220 else
42221
42222
42223
42224       ac_ext=cc
42225 ac_cpp='$CXXCPP $CPPFLAGS'
42226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42229
42230       cat >conftest.$ac_ext <<_ACEOF
42231 /* confdefs.h.  */
42232 _ACEOF
42233 cat confdefs.h >>conftest.$ac_ext
42234 cat >>conftest.$ac_ext <<_ACEOF
42235 /* end confdefs.h.  */
42236 #include <math.h>
42237 int
42238 main ()
42239 {
42240  copysignl(0, 0);
42241   ;
42242   return 0;
42243 }
42244 _ACEOF
42245 rm -f conftest.$ac_objext
42246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42247   (eval $ac_compile) 2>conftest.er1
42248   ac_status=$?
42249   grep -v '^ *+' conftest.er1 >conftest.err
42250   rm -f conftest.er1
42251   cat conftest.err >&5
42252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42253   (exit $ac_status); } &&
42254          { ac_try='test -z "$ac_cxx_werror_flag"
42255                          || test ! -s conftest.err'
42256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42257   (eval $ac_try) 2>&5
42258   ac_status=$?
42259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42260   (exit $ac_status); }; } &&
42261          { ac_try='test -s conftest.$ac_objext'
42262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42263   (eval $ac_try) 2>&5
42264   ac_status=$?
42265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42266   (exit $ac_status); }; }; then
42267   glibcxx_cv_func_copysignl_use=yes
42268 else
42269   echo "$as_me: failed program was:" >&5
42270 sed 's/^/| /' conftest.$ac_ext >&5
42271
42272 glibcxx_cv_func_copysignl_use=no
42273 fi
42274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42275       ac_ext=c
42276 ac_cpp='$CPP $CPPFLAGS'
42277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42280
42281
42282 fi
42283
42284   fi
42285   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
42286 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
42287
42288   if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
42289
42290 for ac_func in copysignl
42291 do
42292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42293 echo "$as_me:$LINENO: checking for $ac_func" >&5
42294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42295 if eval "test \"\${$as_ac_var+set}\" = set"; then
42296   echo $ECHO_N "(cached) $ECHO_C" >&6
42297 else
42298   if test x$gcc_no_link = xyes; then
42299   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42300 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42301    { (exit 1); exit 1; }; }
42302 fi
42303 cat >conftest.$ac_ext <<_ACEOF
42304 /* confdefs.h.  */
42305 _ACEOF
42306 cat confdefs.h >>conftest.$ac_ext
42307 cat >>conftest.$ac_ext <<_ACEOF
42308 /* end confdefs.h.  */
42309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42311 #define $ac_func innocuous_$ac_func
42312
42313 /* System header to define __stub macros and hopefully few prototypes,
42314     which can conflict with char $ac_func (); below.
42315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42316     <limits.h> exists even on freestanding compilers.  */
42317
42318 #ifdef __STDC__
42319 # include <limits.h>
42320 #else
42321 # include <assert.h>
42322 #endif
42323
42324 #undef $ac_func
42325
42326 /* Override any gcc2 internal prototype to avoid an error.  */
42327 #ifdef __cplusplus
42328 extern "C"
42329 {
42330 #endif
42331 /* We use char because int might match the return type of a gcc2
42332    builtin and then its argument prototype would still apply.  */
42333 char $ac_func ();
42334 /* The GNU C library defines this for functions which it implements
42335     to always fail with ENOSYS.  Some functions are actually named
42336     something starting with __ and the normal name is an alias.  */
42337 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42338 choke me
42339 #else
42340 char (*f) () = $ac_func;
42341 #endif
42342 #ifdef __cplusplus
42343 }
42344 #endif
42345
42346 int
42347 main ()
42348 {
42349 return f != $ac_func;
42350   ;
42351   return 0;
42352 }
42353 _ACEOF
42354 rm -f conftest.$ac_objext conftest$ac_exeext
42355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42356   (eval $ac_link) 2>conftest.er1
42357   ac_status=$?
42358   grep -v '^ *+' conftest.er1 >conftest.err
42359   rm -f conftest.er1
42360   cat conftest.err >&5
42361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42362   (exit $ac_status); } &&
42363          { ac_try='test -z "$ac_c_werror_flag"
42364                          || test ! -s conftest.err'
42365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42366   (eval $ac_try) 2>&5
42367   ac_status=$?
42368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42369   (exit $ac_status); }; } &&
42370          { ac_try='test -s conftest$ac_exeext'
42371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42372   (eval $ac_try) 2>&5
42373   ac_status=$?
42374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42375   (exit $ac_status); }; }; then
42376   eval "$as_ac_var=yes"
42377 else
42378   echo "$as_me: failed program was:" >&5
42379 sed 's/^/| /' conftest.$ac_ext >&5
42380
42381 eval "$as_ac_var=no"
42382 fi
42383 rm -f conftest.err conftest.$ac_objext \
42384       conftest$ac_exeext conftest.$ac_ext
42385 fi
42386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42387 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42388 if test `eval echo '${'$as_ac_var'}'` = yes; then
42389   cat >>confdefs.h <<_ACEOF
42390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42391 _ACEOF
42392
42393 fi
42394 done
42395
42396   else
42397
42398   echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
42399 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
42400   if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
42401     if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
42402   echo $ECHO_N "(cached) $ECHO_C" >&6
42403 else
42404
42405
42406
42407       ac_ext=cc
42408 ac_cpp='$CXXCPP $CPPFLAGS'
42409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42412
42413       cat >conftest.$ac_ext <<_ACEOF
42414 /* confdefs.h.  */
42415 _ACEOF
42416 cat confdefs.h >>conftest.$ac_ext
42417 cat >>conftest.$ac_ext <<_ACEOF
42418 /* end confdefs.h.  */
42419 #include <math.h>
42420 int
42421 main ()
42422 {
42423  _copysignl(0, 0);
42424   ;
42425   return 0;
42426 }
42427 _ACEOF
42428 rm -f conftest.$ac_objext
42429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42430   (eval $ac_compile) 2>conftest.er1
42431   ac_status=$?
42432   grep -v '^ *+' conftest.er1 >conftest.err
42433   rm -f conftest.er1
42434   cat conftest.err >&5
42435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42436   (exit $ac_status); } &&
42437          { ac_try='test -z "$ac_cxx_werror_flag"
42438                          || test ! -s conftest.err'
42439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42440   (eval $ac_try) 2>&5
42441   ac_status=$?
42442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42443   (exit $ac_status); }; } &&
42444          { ac_try='test -s conftest.$ac_objext'
42445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42446   (eval $ac_try) 2>&5
42447   ac_status=$?
42448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42449   (exit $ac_status); }; }; then
42450   glibcxx_cv_func__copysignl_use=yes
42451 else
42452   echo "$as_me: failed program was:" >&5
42453 sed 's/^/| /' conftest.$ac_ext >&5
42454
42455 glibcxx_cv_func__copysignl_use=no
42456 fi
42457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42458       ac_ext=c
42459 ac_cpp='$CPP $CPPFLAGS'
42460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42463
42464
42465 fi
42466
42467   fi
42468   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
42469 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
42470
42471     if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
42472
42473 for ac_func in _copysignl
42474 do
42475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42476 echo "$as_me:$LINENO: checking for $ac_func" >&5
42477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42478 if eval "test \"\${$as_ac_var+set}\" = set"; then
42479   echo $ECHO_N "(cached) $ECHO_C" >&6
42480 else
42481   if test x$gcc_no_link = xyes; then
42482   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42483 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42484    { (exit 1); exit 1; }; }
42485 fi
42486 cat >conftest.$ac_ext <<_ACEOF
42487 /* confdefs.h.  */
42488 _ACEOF
42489 cat confdefs.h >>conftest.$ac_ext
42490 cat >>conftest.$ac_ext <<_ACEOF
42491 /* end confdefs.h.  */
42492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42494 #define $ac_func innocuous_$ac_func
42495
42496 /* System header to define __stub macros and hopefully few prototypes,
42497     which can conflict with char $ac_func (); below.
42498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42499     <limits.h> exists even on freestanding compilers.  */
42500
42501 #ifdef __STDC__
42502 # include <limits.h>
42503 #else
42504 # include <assert.h>
42505 #endif
42506
42507 #undef $ac_func
42508
42509 /* Override any gcc2 internal prototype to avoid an error.  */
42510 #ifdef __cplusplus
42511 extern "C"
42512 {
42513 #endif
42514 /* We use char because int might match the return type of a gcc2
42515    builtin and then its argument prototype would still apply.  */
42516 char $ac_func ();
42517 /* The GNU C library defines this for functions which it implements
42518     to always fail with ENOSYS.  Some functions are actually named
42519     something starting with __ and the normal name is an alias.  */
42520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42521 choke me
42522 #else
42523 char (*f) () = $ac_func;
42524 #endif
42525 #ifdef __cplusplus
42526 }
42527 #endif
42528
42529 int
42530 main ()
42531 {
42532 return f != $ac_func;
42533   ;
42534   return 0;
42535 }
42536 _ACEOF
42537 rm -f conftest.$ac_objext conftest$ac_exeext
42538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42539   (eval $ac_link) 2>conftest.er1
42540   ac_status=$?
42541   grep -v '^ *+' conftest.er1 >conftest.err
42542   rm -f conftest.er1
42543   cat conftest.err >&5
42544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42545   (exit $ac_status); } &&
42546          { ac_try='test -z "$ac_c_werror_flag"
42547                          || test ! -s conftest.err'
42548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42549   (eval $ac_try) 2>&5
42550   ac_status=$?
42551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42552   (exit $ac_status); }; } &&
42553          { ac_try='test -s conftest$ac_exeext'
42554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42555   (eval $ac_try) 2>&5
42556   ac_status=$?
42557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42558   (exit $ac_status); }; }; then
42559   eval "$as_ac_var=yes"
42560 else
42561   echo "$as_me: failed program was:" >&5
42562 sed 's/^/| /' conftest.$ac_ext >&5
42563
42564 eval "$as_ac_var=no"
42565 fi
42566 rm -f conftest.err conftest.$ac_objext \
42567       conftest$ac_exeext conftest.$ac_ext
42568 fi
42569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42571 if test `eval echo '${'$as_ac_var'}'` = yes; then
42572   cat >>confdefs.h <<_ACEOF
42573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42574 _ACEOF
42575
42576 fi
42577 done
42578
42579     fi
42580   fi
42581
42582
42583
42584   echo "$as_me:$LINENO: checking for atan2l declaration" >&5
42585 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
42586   if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
42587     if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
42588   echo $ECHO_N "(cached) $ECHO_C" >&6
42589 else
42590
42591
42592
42593       ac_ext=cc
42594 ac_cpp='$CXXCPP $CPPFLAGS'
42595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42598
42599       cat >conftest.$ac_ext <<_ACEOF
42600 /* confdefs.h.  */
42601 _ACEOF
42602 cat confdefs.h >>conftest.$ac_ext
42603 cat >>conftest.$ac_ext <<_ACEOF
42604 /* end confdefs.h.  */
42605 #include <math.h>
42606 int
42607 main ()
42608 {
42609  atan2l(0, 0);
42610   ;
42611   return 0;
42612 }
42613 _ACEOF
42614 rm -f conftest.$ac_objext
42615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42616   (eval $ac_compile) 2>conftest.er1
42617   ac_status=$?
42618   grep -v '^ *+' conftest.er1 >conftest.err
42619   rm -f conftest.er1
42620   cat conftest.err >&5
42621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42622   (exit $ac_status); } &&
42623          { ac_try='test -z "$ac_cxx_werror_flag"
42624                          || test ! -s conftest.err'
42625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42626   (eval $ac_try) 2>&5
42627   ac_status=$?
42628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42629   (exit $ac_status); }; } &&
42630          { ac_try='test -s conftest.$ac_objext'
42631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42632   (eval $ac_try) 2>&5
42633   ac_status=$?
42634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42635   (exit $ac_status); }; }; then
42636   glibcxx_cv_func_atan2l_use=yes
42637 else
42638   echo "$as_me: failed program was:" >&5
42639 sed 's/^/| /' conftest.$ac_ext >&5
42640
42641 glibcxx_cv_func_atan2l_use=no
42642 fi
42643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42644       ac_ext=c
42645 ac_cpp='$CPP $CPPFLAGS'
42646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42649
42650
42651 fi
42652
42653   fi
42654   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
42655 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
42656
42657   if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
42658
42659 for ac_func in atan2l
42660 do
42661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42662 echo "$as_me:$LINENO: checking for $ac_func" >&5
42663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42664 if eval "test \"\${$as_ac_var+set}\" = set"; then
42665   echo $ECHO_N "(cached) $ECHO_C" >&6
42666 else
42667   if test x$gcc_no_link = xyes; then
42668   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42670    { (exit 1); exit 1; }; }
42671 fi
42672 cat >conftest.$ac_ext <<_ACEOF
42673 /* confdefs.h.  */
42674 _ACEOF
42675 cat confdefs.h >>conftest.$ac_ext
42676 cat >>conftest.$ac_ext <<_ACEOF
42677 /* end confdefs.h.  */
42678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42680 #define $ac_func innocuous_$ac_func
42681
42682 /* System header to define __stub macros and hopefully few prototypes,
42683     which can conflict with char $ac_func (); below.
42684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42685     <limits.h> exists even on freestanding compilers.  */
42686
42687 #ifdef __STDC__
42688 # include <limits.h>
42689 #else
42690 # include <assert.h>
42691 #endif
42692
42693 #undef $ac_func
42694
42695 /* Override any gcc2 internal prototype to avoid an error.  */
42696 #ifdef __cplusplus
42697 extern "C"
42698 {
42699 #endif
42700 /* We use char because int might match the return type of a gcc2
42701    builtin and then its argument prototype would still apply.  */
42702 char $ac_func ();
42703 /* The GNU C library defines this for functions which it implements
42704     to always fail with ENOSYS.  Some functions are actually named
42705     something starting with __ and the normal name is an alias.  */
42706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42707 choke me
42708 #else
42709 char (*f) () = $ac_func;
42710 #endif
42711 #ifdef __cplusplus
42712 }
42713 #endif
42714
42715 int
42716 main ()
42717 {
42718 return f != $ac_func;
42719   ;
42720   return 0;
42721 }
42722 _ACEOF
42723 rm -f conftest.$ac_objext conftest$ac_exeext
42724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42725   (eval $ac_link) 2>conftest.er1
42726   ac_status=$?
42727   grep -v '^ *+' conftest.er1 >conftest.err
42728   rm -f conftest.er1
42729   cat conftest.err >&5
42730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42731   (exit $ac_status); } &&
42732          { ac_try='test -z "$ac_c_werror_flag"
42733                          || test ! -s conftest.err'
42734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42735   (eval $ac_try) 2>&5
42736   ac_status=$?
42737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42738   (exit $ac_status); }; } &&
42739          { ac_try='test -s conftest$ac_exeext'
42740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42741   (eval $ac_try) 2>&5
42742   ac_status=$?
42743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42744   (exit $ac_status); }; }; then
42745   eval "$as_ac_var=yes"
42746 else
42747   echo "$as_me: failed program was:" >&5
42748 sed 's/^/| /' conftest.$ac_ext >&5
42749
42750 eval "$as_ac_var=no"
42751 fi
42752 rm -f conftest.err conftest.$ac_objext \
42753       conftest$ac_exeext conftest.$ac_ext
42754 fi
42755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42757 if test `eval echo '${'$as_ac_var'}'` = yes; then
42758   cat >>confdefs.h <<_ACEOF
42759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42760 _ACEOF
42761
42762 fi
42763 done
42764
42765   else
42766
42767   echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
42768 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
42769   if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
42770     if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
42771   echo $ECHO_N "(cached) $ECHO_C" >&6
42772 else
42773
42774
42775
42776       ac_ext=cc
42777 ac_cpp='$CXXCPP $CPPFLAGS'
42778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42781
42782       cat >conftest.$ac_ext <<_ACEOF
42783 /* confdefs.h.  */
42784 _ACEOF
42785 cat confdefs.h >>conftest.$ac_ext
42786 cat >>conftest.$ac_ext <<_ACEOF
42787 /* end confdefs.h.  */
42788 #include <math.h>
42789 int
42790 main ()
42791 {
42792  _atan2l(0, 0);
42793   ;
42794   return 0;
42795 }
42796 _ACEOF
42797 rm -f conftest.$ac_objext
42798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42799   (eval $ac_compile) 2>conftest.er1
42800   ac_status=$?
42801   grep -v '^ *+' conftest.er1 >conftest.err
42802   rm -f conftest.er1
42803   cat conftest.err >&5
42804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42805   (exit $ac_status); } &&
42806          { ac_try='test -z "$ac_cxx_werror_flag"
42807                          || test ! -s conftest.err'
42808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42809   (eval $ac_try) 2>&5
42810   ac_status=$?
42811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42812   (exit $ac_status); }; } &&
42813          { ac_try='test -s conftest.$ac_objext'
42814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42815   (eval $ac_try) 2>&5
42816   ac_status=$?
42817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42818   (exit $ac_status); }; }; then
42819   glibcxx_cv_func__atan2l_use=yes
42820 else
42821   echo "$as_me: failed program was:" >&5
42822 sed 's/^/| /' conftest.$ac_ext >&5
42823
42824 glibcxx_cv_func__atan2l_use=no
42825 fi
42826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42827       ac_ext=c
42828 ac_cpp='$CPP $CPPFLAGS'
42829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42832
42833
42834 fi
42835
42836   fi
42837   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
42838 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
42839
42840     if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
42841
42842 for ac_func in _atan2l
42843 do
42844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42845 echo "$as_me:$LINENO: checking for $ac_func" >&5
42846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42847 if eval "test \"\${$as_ac_var+set}\" = set"; then
42848   echo $ECHO_N "(cached) $ECHO_C" >&6
42849 else
42850   if test x$gcc_no_link = xyes; then
42851   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
42852 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
42853    { (exit 1); exit 1; }; }
42854 fi
42855 cat >conftest.$ac_ext <<_ACEOF
42856 /* confdefs.h.  */
42857 _ACEOF
42858 cat confdefs.h >>conftest.$ac_ext
42859 cat >>conftest.$ac_ext <<_ACEOF
42860 /* end confdefs.h.  */
42861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42863 #define $ac_func innocuous_$ac_func
42864
42865 /* System header to define __stub macros and hopefully few prototypes,
42866     which can conflict with char $ac_func (); below.
42867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42868     <limits.h> exists even on freestanding compilers.  */
42869
42870 #ifdef __STDC__
42871 # include <limits.h>
42872 #else
42873 # include <assert.h>
42874 #endif
42875
42876 #undef $ac_func
42877
42878 /* Override any gcc2 internal prototype to avoid an error.  */
42879 #ifdef __cplusplus
42880 extern "C"
42881 {
42882 #endif
42883 /* We use char because int might match the return type of a gcc2
42884    builtin and then its argument prototype would still apply.  */
42885 char $ac_func ();
42886 /* The GNU C library defines this for functions which it implements
42887     to always fail with ENOSYS.  Some functions are actually named
42888     something starting with __ and the normal name is an alias.  */
42889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42890 choke me
42891 #else
42892 char (*f) () = $ac_func;
42893 #endif
42894 #ifdef __cplusplus
42895 }
42896 #endif
42897
42898 int
42899 main ()
42900 {
42901 return f != $ac_func;
42902   ;
42903   return 0;
42904 }
42905 _ACEOF
42906 rm -f conftest.$ac_objext conftest$ac_exeext
42907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42908   (eval $ac_link) 2>conftest.er1
42909   ac_status=$?
42910   grep -v '^ *+' conftest.er1 >conftest.err
42911   rm -f conftest.er1
42912   cat conftest.err >&5
42913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42914   (exit $ac_status); } &&
42915          { ac_try='test -z "$ac_c_werror_flag"
42916                          || test ! -s conftest.err'
42917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42918   (eval $ac_try) 2>&5
42919   ac_status=$?
42920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42921   (exit $ac_status); }; } &&
42922          { ac_try='test -s conftest$ac_exeext'
42923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42924   (eval $ac_try) 2>&5
42925   ac_status=$?
42926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42927   (exit $ac_status); }; }; then
42928   eval "$as_ac_var=yes"
42929 else
42930   echo "$as_me: failed program was:" >&5
42931 sed 's/^/| /' conftest.$ac_ext >&5
42932
42933 eval "$as_ac_var=no"
42934 fi
42935 rm -f conftest.err conftest.$ac_objext \
42936       conftest$ac_exeext conftest.$ac_ext
42937 fi
42938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42940 if test `eval echo '${'$as_ac_var'}'` = yes; then
42941   cat >>confdefs.h <<_ACEOF
42942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42943 _ACEOF
42944
42945 fi
42946 done
42947
42948     fi
42949   fi
42950
42951
42952
42953   echo "$as_me:$LINENO: checking for expl declaration" >&5
42954 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
42955   if test x${glibcxx_cv_func_expl_use+set} != xset; then
42956     if test "${glibcxx_cv_func_expl_use+set}" = set; then
42957   echo $ECHO_N "(cached) $ECHO_C" >&6
42958 else
42959
42960
42961
42962       ac_ext=cc
42963 ac_cpp='$CXXCPP $CPPFLAGS'
42964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42967
42968       cat >conftest.$ac_ext <<_ACEOF
42969 /* confdefs.h.  */
42970 _ACEOF
42971 cat confdefs.h >>conftest.$ac_ext
42972 cat >>conftest.$ac_ext <<_ACEOF
42973 /* end confdefs.h.  */
42974 #include <math.h>
42975                       #ifdef HAVE_IEEEFP_H
42976                       #include <ieeefp.h>
42977                       #endif
42978
42979 int
42980 main ()
42981 {
42982  expl(0);
42983   ;
42984   return 0;
42985 }
42986 _ACEOF
42987 rm -f conftest.$ac_objext
42988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42989   (eval $ac_compile) 2>conftest.er1
42990   ac_status=$?
42991   grep -v '^ *+' conftest.er1 >conftest.err
42992   rm -f conftest.er1
42993   cat conftest.err >&5
42994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42995   (exit $ac_status); } &&
42996          { ac_try='test -z "$ac_cxx_werror_flag"
42997                          || test ! -s conftest.err'
42998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42999   (eval $ac_try) 2>&5
43000   ac_status=$?
43001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43002   (exit $ac_status); }; } &&
43003          { ac_try='test -s conftest.$ac_objext'
43004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43005   (eval $ac_try) 2>&5
43006   ac_status=$?
43007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43008   (exit $ac_status); }; }; then
43009   glibcxx_cv_func_expl_use=yes
43010 else
43011   echo "$as_me: failed program was:" >&5
43012 sed 's/^/| /' conftest.$ac_ext >&5
43013
43014 glibcxx_cv_func_expl_use=no
43015 fi
43016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43017       ac_ext=c
43018 ac_cpp='$CPP $CPPFLAGS'
43019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43022
43023
43024 fi
43025
43026   fi
43027   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
43028 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
43029
43030   if test x$glibcxx_cv_func_expl_use = x"yes"; then
43031
43032 for ac_func in expl
43033 do
43034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43035 echo "$as_me:$LINENO: checking for $ac_func" >&5
43036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43037 if eval "test \"\${$as_ac_var+set}\" = set"; then
43038   echo $ECHO_N "(cached) $ECHO_C" >&6
43039 else
43040   if test x$gcc_no_link = xyes; then
43041   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43042 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43043    { (exit 1); exit 1; }; }
43044 fi
43045 cat >conftest.$ac_ext <<_ACEOF
43046 /* confdefs.h.  */
43047 _ACEOF
43048 cat confdefs.h >>conftest.$ac_ext
43049 cat >>conftest.$ac_ext <<_ACEOF
43050 /* end confdefs.h.  */
43051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43053 #define $ac_func innocuous_$ac_func
43054
43055 /* System header to define __stub macros and hopefully few prototypes,
43056     which can conflict with char $ac_func (); below.
43057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43058     <limits.h> exists even on freestanding compilers.  */
43059
43060 #ifdef __STDC__
43061 # include <limits.h>
43062 #else
43063 # include <assert.h>
43064 #endif
43065
43066 #undef $ac_func
43067
43068 /* Override any gcc2 internal prototype to avoid an error.  */
43069 #ifdef __cplusplus
43070 extern "C"
43071 {
43072 #endif
43073 /* We use char because int might match the return type of a gcc2
43074    builtin and then its argument prototype would still apply.  */
43075 char $ac_func ();
43076 /* The GNU C library defines this for functions which it implements
43077     to always fail with ENOSYS.  Some functions are actually named
43078     something starting with __ and the normal name is an alias.  */
43079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43080 choke me
43081 #else
43082 char (*f) () = $ac_func;
43083 #endif
43084 #ifdef __cplusplus
43085 }
43086 #endif
43087
43088 int
43089 main ()
43090 {
43091 return f != $ac_func;
43092   ;
43093   return 0;
43094 }
43095 _ACEOF
43096 rm -f conftest.$ac_objext conftest$ac_exeext
43097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43098   (eval $ac_link) 2>conftest.er1
43099   ac_status=$?
43100   grep -v '^ *+' conftest.er1 >conftest.err
43101   rm -f conftest.er1
43102   cat conftest.err >&5
43103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43104   (exit $ac_status); } &&
43105          { ac_try='test -z "$ac_c_werror_flag"
43106                          || test ! -s conftest.err'
43107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43108   (eval $ac_try) 2>&5
43109   ac_status=$?
43110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43111   (exit $ac_status); }; } &&
43112          { ac_try='test -s conftest$ac_exeext'
43113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43114   (eval $ac_try) 2>&5
43115   ac_status=$?
43116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43117   (exit $ac_status); }; }; then
43118   eval "$as_ac_var=yes"
43119 else
43120   echo "$as_me: failed program was:" >&5
43121 sed 's/^/| /' conftest.$ac_ext >&5
43122
43123 eval "$as_ac_var=no"
43124 fi
43125 rm -f conftest.err conftest.$ac_objext \
43126       conftest$ac_exeext conftest.$ac_ext
43127 fi
43128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43130 if test `eval echo '${'$as_ac_var'}'` = yes; then
43131   cat >>confdefs.h <<_ACEOF
43132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43133 _ACEOF
43134
43135 fi
43136 done
43137
43138   else
43139
43140   echo "$as_me:$LINENO: checking for _expl declaration" >&5
43141 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
43142   if test x${glibcxx_cv_func__expl_use+set} != xset; then
43143     if test "${glibcxx_cv_func__expl_use+set}" = set; then
43144   echo $ECHO_N "(cached) $ECHO_C" >&6
43145 else
43146
43147
43148
43149       ac_ext=cc
43150 ac_cpp='$CXXCPP $CPPFLAGS'
43151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43154
43155       cat >conftest.$ac_ext <<_ACEOF
43156 /* confdefs.h.  */
43157 _ACEOF
43158 cat confdefs.h >>conftest.$ac_ext
43159 cat >>conftest.$ac_ext <<_ACEOF
43160 /* end confdefs.h.  */
43161 #include <math.h>
43162                       #ifdef HAVE_IEEEFP_H
43163                       #include <ieeefp.h>
43164                       #endif
43165
43166 int
43167 main ()
43168 {
43169  _expl(0);
43170   ;
43171   return 0;
43172 }
43173 _ACEOF
43174 rm -f conftest.$ac_objext
43175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43176   (eval $ac_compile) 2>conftest.er1
43177   ac_status=$?
43178   grep -v '^ *+' conftest.er1 >conftest.err
43179   rm -f conftest.er1
43180   cat conftest.err >&5
43181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43182   (exit $ac_status); } &&
43183          { ac_try='test -z "$ac_cxx_werror_flag"
43184                          || test ! -s conftest.err'
43185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43186   (eval $ac_try) 2>&5
43187   ac_status=$?
43188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43189   (exit $ac_status); }; } &&
43190          { ac_try='test -s conftest.$ac_objext'
43191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43192   (eval $ac_try) 2>&5
43193   ac_status=$?
43194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43195   (exit $ac_status); }; }; then
43196   glibcxx_cv_func__expl_use=yes
43197 else
43198   echo "$as_me: failed program was:" >&5
43199 sed 's/^/| /' conftest.$ac_ext >&5
43200
43201 glibcxx_cv_func__expl_use=no
43202 fi
43203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43204       ac_ext=c
43205 ac_cpp='$CPP $CPPFLAGS'
43206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43209
43210
43211 fi
43212
43213   fi
43214   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
43215 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
43216
43217     if test x$glibcxx_cv_func__expl_use = x"yes"; then
43218
43219 for ac_func in _expl
43220 do
43221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43222 echo "$as_me:$LINENO: checking for $ac_func" >&5
43223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43224 if eval "test \"\${$as_ac_var+set}\" = set"; then
43225   echo $ECHO_N "(cached) $ECHO_C" >&6
43226 else
43227   if test x$gcc_no_link = xyes; then
43228   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43229 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43230    { (exit 1); exit 1; }; }
43231 fi
43232 cat >conftest.$ac_ext <<_ACEOF
43233 /* confdefs.h.  */
43234 _ACEOF
43235 cat confdefs.h >>conftest.$ac_ext
43236 cat >>conftest.$ac_ext <<_ACEOF
43237 /* end confdefs.h.  */
43238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43239    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43240 #define $ac_func innocuous_$ac_func
43241
43242 /* System header to define __stub macros and hopefully few prototypes,
43243     which can conflict with char $ac_func (); below.
43244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43245     <limits.h> exists even on freestanding compilers.  */
43246
43247 #ifdef __STDC__
43248 # include <limits.h>
43249 #else
43250 # include <assert.h>
43251 #endif
43252
43253 #undef $ac_func
43254
43255 /* Override any gcc2 internal prototype to avoid an error.  */
43256 #ifdef __cplusplus
43257 extern "C"
43258 {
43259 #endif
43260 /* We use char because int might match the return type of a gcc2
43261    builtin and then its argument prototype would still apply.  */
43262 char $ac_func ();
43263 /* The GNU C library defines this for functions which it implements
43264     to always fail with ENOSYS.  Some functions are actually named
43265     something starting with __ and the normal name is an alias.  */
43266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43267 choke me
43268 #else
43269 char (*f) () = $ac_func;
43270 #endif
43271 #ifdef __cplusplus
43272 }
43273 #endif
43274
43275 int
43276 main ()
43277 {
43278 return f != $ac_func;
43279   ;
43280   return 0;
43281 }
43282 _ACEOF
43283 rm -f conftest.$ac_objext conftest$ac_exeext
43284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43285   (eval $ac_link) 2>conftest.er1
43286   ac_status=$?
43287   grep -v '^ *+' conftest.er1 >conftest.err
43288   rm -f conftest.er1
43289   cat conftest.err >&5
43290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43291   (exit $ac_status); } &&
43292          { ac_try='test -z "$ac_c_werror_flag"
43293                          || test ! -s conftest.err'
43294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43295   (eval $ac_try) 2>&5
43296   ac_status=$?
43297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43298   (exit $ac_status); }; } &&
43299          { ac_try='test -s conftest$ac_exeext'
43300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43301   (eval $ac_try) 2>&5
43302   ac_status=$?
43303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43304   (exit $ac_status); }; }; then
43305   eval "$as_ac_var=yes"
43306 else
43307   echo "$as_me: failed program was:" >&5
43308 sed 's/^/| /' conftest.$ac_ext >&5
43309
43310 eval "$as_ac_var=no"
43311 fi
43312 rm -f conftest.err conftest.$ac_objext \
43313       conftest$ac_exeext conftest.$ac_ext
43314 fi
43315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43316 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43317 if test `eval echo '${'$as_ac_var'}'` = yes; then
43318   cat >>confdefs.h <<_ACEOF
43319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43320 _ACEOF
43321
43322 fi
43323 done
43324
43325     fi
43326   fi
43327
43328
43329
43330   echo "$as_me:$LINENO: checking for fabsl declaration" >&5
43331 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
43332   if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
43333     if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
43334   echo $ECHO_N "(cached) $ECHO_C" >&6
43335 else
43336
43337
43338
43339       ac_ext=cc
43340 ac_cpp='$CXXCPP $CPPFLAGS'
43341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43344
43345       cat >conftest.$ac_ext <<_ACEOF
43346 /* confdefs.h.  */
43347 _ACEOF
43348 cat confdefs.h >>conftest.$ac_ext
43349 cat >>conftest.$ac_ext <<_ACEOF
43350 /* end confdefs.h.  */
43351 #include <math.h>
43352                       #ifdef HAVE_IEEEFP_H
43353                       #include <ieeefp.h>
43354                       #endif
43355
43356 int
43357 main ()
43358 {
43359  fabsl(0);
43360   ;
43361   return 0;
43362 }
43363 _ACEOF
43364 rm -f conftest.$ac_objext
43365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43366   (eval $ac_compile) 2>conftest.er1
43367   ac_status=$?
43368   grep -v '^ *+' conftest.er1 >conftest.err
43369   rm -f conftest.er1
43370   cat conftest.err >&5
43371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43372   (exit $ac_status); } &&
43373          { ac_try='test -z "$ac_cxx_werror_flag"
43374                          || test ! -s conftest.err'
43375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43376   (eval $ac_try) 2>&5
43377   ac_status=$?
43378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43379   (exit $ac_status); }; } &&
43380          { ac_try='test -s conftest.$ac_objext'
43381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43382   (eval $ac_try) 2>&5
43383   ac_status=$?
43384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43385   (exit $ac_status); }; }; then
43386   glibcxx_cv_func_fabsl_use=yes
43387 else
43388   echo "$as_me: failed program was:" >&5
43389 sed 's/^/| /' conftest.$ac_ext >&5
43390
43391 glibcxx_cv_func_fabsl_use=no
43392 fi
43393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43394       ac_ext=c
43395 ac_cpp='$CPP $CPPFLAGS'
43396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43399
43400
43401 fi
43402
43403   fi
43404   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
43405 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
43406
43407   if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
43408
43409 for ac_func in fabsl
43410 do
43411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43412 echo "$as_me:$LINENO: checking for $ac_func" >&5
43413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43414 if eval "test \"\${$as_ac_var+set}\" = set"; then
43415   echo $ECHO_N "(cached) $ECHO_C" >&6
43416 else
43417   if test x$gcc_no_link = xyes; then
43418   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43419 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43420    { (exit 1); exit 1; }; }
43421 fi
43422 cat >conftest.$ac_ext <<_ACEOF
43423 /* confdefs.h.  */
43424 _ACEOF
43425 cat confdefs.h >>conftest.$ac_ext
43426 cat >>conftest.$ac_ext <<_ACEOF
43427 /* end confdefs.h.  */
43428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43430 #define $ac_func innocuous_$ac_func
43431
43432 /* System header to define __stub macros and hopefully few prototypes,
43433     which can conflict with char $ac_func (); below.
43434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43435     <limits.h> exists even on freestanding compilers.  */
43436
43437 #ifdef __STDC__
43438 # include <limits.h>
43439 #else
43440 # include <assert.h>
43441 #endif
43442
43443 #undef $ac_func
43444
43445 /* Override any gcc2 internal prototype to avoid an error.  */
43446 #ifdef __cplusplus
43447 extern "C"
43448 {
43449 #endif
43450 /* We use char because int might match the return type of a gcc2
43451    builtin and then its argument prototype would still apply.  */
43452 char $ac_func ();
43453 /* The GNU C library defines this for functions which it implements
43454     to always fail with ENOSYS.  Some functions are actually named
43455     something starting with __ and the normal name is an alias.  */
43456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43457 choke me
43458 #else
43459 char (*f) () = $ac_func;
43460 #endif
43461 #ifdef __cplusplus
43462 }
43463 #endif
43464
43465 int
43466 main ()
43467 {
43468 return f != $ac_func;
43469   ;
43470   return 0;
43471 }
43472 _ACEOF
43473 rm -f conftest.$ac_objext conftest$ac_exeext
43474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43475   (eval $ac_link) 2>conftest.er1
43476   ac_status=$?
43477   grep -v '^ *+' conftest.er1 >conftest.err
43478   rm -f conftest.er1
43479   cat conftest.err >&5
43480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43481   (exit $ac_status); } &&
43482          { ac_try='test -z "$ac_c_werror_flag"
43483                          || test ! -s conftest.err'
43484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43485   (eval $ac_try) 2>&5
43486   ac_status=$?
43487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43488   (exit $ac_status); }; } &&
43489          { ac_try='test -s conftest$ac_exeext'
43490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43491   (eval $ac_try) 2>&5
43492   ac_status=$?
43493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43494   (exit $ac_status); }; }; then
43495   eval "$as_ac_var=yes"
43496 else
43497   echo "$as_me: failed program was:" >&5
43498 sed 's/^/| /' conftest.$ac_ext >&5
43499
43500 eval "$as_ac_var=no"
43501 fi
43502 rm -f conftest.err conftest.$ac_objext \
43503       conftest$ac_exeext conftest.$ac_ext
43504 fi
43505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43507 if test `eval echo '${'$as_ac_var'}'` = yes; then
43508   cat >>confdefs.h <<_ACEOF
43509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43510 _ACEOF
43511
43512 fi
43513 done
43514
43515   else
43516
43517   echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
43518 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
43519   if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
43520     if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
43521   echo $ECHO_N "(cached) $ECHO_C" >&6
43522 else
43523
43524
43525
43526       ac_ext=cc
43527 ac_cpp='$CXXCPP $CPPFLAGS'
43528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43531
43532       cat >conftest.$ac_ext <<_ACEOF
43533 /* confdefs.h.  */
43534 _ACEOF
43535 cat confdefs.h >>conftest.$ac_ext
43536 cat >>conftest.$ac_ext <<_ACEOF
43537 /* end confdefs.h.  */
43538 #include <math.h>
43539                       #ifdef HAVE_IEEEFP_H
43540                       #include <ieeefp.h>
43541                       #endif
43542
43543 int
43544 main ()
43545 {
43546  _fabsl(0);
43547   ;
43548   return 0;
43549 }
43550 _ACEOF
43551 rm -f conftest.$ac_objext
43552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43553   (eval $ac_compile) 2>conftest.er1
43554   ac_status=$?
43555   grep -v '^ *+' conftest.er1 >conftest.err
43556   rm -f conftest.er1
43557   cat conftest.err >&5
43558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43559   (exit $ac_status); } &&
43560          { ac_try='test -z "$ac_cxx_werror_flag"
43561                          || test ! -s conftest.err'
43562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43563   (eval $ac_try) 2>&5
43564   ac_status=$?
43565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43566   (exit $ac_status); }; } &&
43567          { ac_try='test -s conftest.$ac_objext'
43568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43569   (eval $ac_try) 2>&5
43570   ac_status=$?
43571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43572   (exit $ac_status); }; }; then
43573   glibcxx_cv_func__fabsl_use=yes
43574 else
43575   echo "$as_me: failed program was:" >&5
43576 sed 's/^/| /' conftest.$ac_ext >&5
43577
43578 glibcxx_cv_func__fabsl_use=no
43579 fi
43580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43581       ac_ext=c
43582 ac_cpp='$CPP $CPPFLAGS'
43583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43586
43587
43588 fi
43589
43590   fi
43591   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
43592 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
43593
43594     if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
43595
43596 for ac_func in _fabsl
43597 do
43598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43599 echo "$as_me:$LINENO: checking for $ac_func" >&5
43600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43601 if eval "test \"\${$as_ac_var+set}\" = set"; then
43602   echo $ECHO_N "(cached) $ECHO_C" >&6
43603 else
43604   if test x$gcc_no_link = xyes; then
43605   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43606 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43607    { (exit 1); exit 1; }; }
43608 fi
43609 cat >conftest.$ac_ext <<_ACEOF
43610 /* confdefs.h.  */
43611 _ACEOF
43612 cat confdefs.h >>conftest.$ac_ext
43613 cat >>conftest.$ac_ext <<_ACEOF
43614 /* end confdefs.h.  */
43615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43617 #define $ac_func innocuous_$ac_func
43618
43619 /* System header to define __stub macros and hopefully few prototypes,
43620     which can conflict with char $ac_func (); below.
43621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43622     <limits.h> exists even on freestanding compilers.  */
43623
43624 #ifdef __STDC__
43625 # include <limits.h>
43626 #else
43627 # include <assert.h>
43628 #endif
43629
43630 #undef $ac_func
43631
43632 /* Override any gcc2 internal prototype to avoid an error.  */
43633 #ifdef __cplusplus
43634 extern "C"
43635 {
43636 #endif
43637 /* We use char because int might match the return type of a gcc2
43638    builtin and then its argument prototype would still apply.  */
43639 char $ac_func ();
43640 /* The GNU C library defines this for functions which it implements
43641     to always fail with ENOSYS.  Some functions are actually named
43642     something starting with __ and the normal name is an alias.  */
43643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43644 choke me
43645 #else
43646 char (*f) () = $ac_func;
43647 #endif
43648 #ifdef __cplusplus
43649 }
43650 #endif
43651
43652 int
43653 main ()
43654 {
43655 return f != $ac_func;
43656   ;
43657   return 0;
43658 }
43659 _ACEOF
43660 rm -f conftest.$ac_objext conftest$ac_exeext
43661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43662   (eval $ac_link) 2>conftest.er1
43663   ac_status=$?
43664   grep -v '^ *+' conftest.er1 >conftest.err
43665   rm -f conftest.er1
43666   cat conftest.err >&5
43667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43668   (exit $ac_status); } &&
43669          { ac_try='test -z "$ac_c_werror_flag"
43670                          || test ! -s conftest.err'
43671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43672   (eval $ac_try) 2>&5
43673   ac_status=$?
43674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43675   (exit $ac_status); }; } &&
43676          { ac_try='test -s conftest$ac_exeext'
43677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43678   (eval $ac_try) 2>&5
43679   ac_status=$?
43680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43681   (exit $ac_status); }; }; then
43682   eval "$as_ac_var=yes"
43683 else
43684   echo "$as_me: failed program was:" >&5
43685 sed 's/^/| /' conftest.$ac_ext >&5
43686
43687 eval "$as_ac_var=no"
43688 fi
43689 rm -f conftest.err conftest.$ac_objext \
43690       conftest$ac_exeext conftest.$ac_ext
43691 fi
43692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43694 if test `eval echo '${'$as_ac_var'}'` = yes; then
43695   cat >>confdefs.h <<_ACEOF
43696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43697 _ACEOF
43698
43699 fi
43700 done
43701
43702     fi
43703   fi
43704
43705
43706
43707   echo "$as_me:$LINENO: checking for fmodl declaration" >&5
43708 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
43709   if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
43710     if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
43711   echo $ECHO_N "(cached) $ECHO_C" >&6
43712 else
43713
43714
43715
43716       ac_ext=cc
43717 ac_cpp='$CXXCPP $CPPFLAGS'
43718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43721
43722       cat >conftest.$ac_ext <<_ACEOF
43723 /* confdefs.h.  */
43724 _ACEOF
43725 cat confdefs.h >>conftest.$ac_ext
43726 cat >>conftest.$ac_ext <<_ACEOF
43727 /* end confdefs.h.  */
43728 #include <math.h>
43729 int
43730 main ()
43731 {
43732  fmodl(0, 0);
43733   ;
43734   return 0;
43735 }
43736 _ACEOF
43737 rm -f conftest.$ac_objext
43738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43739   (eval $ac_compile) 2>conftest.er1
43740   ac_status=$?
43741   grep -v '^ *+' conftest.er1 >conftest.err
43742   rm -f conftest.er1
43743   cat conftest.err >&5
43744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43745   (exit $ac_status); } &&
43746          { ac_try='test -z "$ac_cxx_werror_flag"
43747                          || test ! -s conftest.err'
43748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43749   (eval $ac_try) 2>&5
43750   ac_status=$?
43751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43752   (exit $ac_status); }; } &&
43753          { ac_try='test -s conftest.$ac_objext'
43754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43755   (eval $ac_try) 2>&5
43756   ac_status=$?
43757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43758   (exit $ac_status); }; }; then
43759   glibcxx_cv_func_fmodl_use=yes
43760 else
43761   echo "$as_me: failed program was:" >&5
43762 sed 's/^/| /' conftest.$ac_ext >&5
43763
43764 glibcxx_cv_func_fmodl_use=no
43765 fi
43766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43767       ac_ext=c
43768 ac_cpp='$CPP $CPPFLAGS'
43769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43772
43773
43774 fi
43775
43776   fi
43777   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
43778 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
43779
43780   if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
43781
43782 for ac_func in fmodl
43783 do
43784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43785 echo "$as_me:$LINENO: checking for $ac_func" >&5
43786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43787 if eval "test \"\${$as_ac_var+set}\" = set"; then
43788   echo $ECHO_N "(cached) $ECHO_C" >&6
43789 else
43790   if test x$gcc_no_link = xyes; then
43791   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43792 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43793    { (exit 1); exit 1; }; }
43794 fi
43795 cat >conftest.$ac_ext <<_ACEOF
43796 /* confdefs.h.  */
43797 _ACEOF
43798 cat confdefs.h >>conftest.$ac_ext
43799 cat >>conftest.$ac_ext <<_ACEOF
43800 /* end confdefs.h.  */
43801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43803 #define $ac_func innocuous_$ac_func
43804
43805 /* System header to define __stub macros and hopefully few prototypes,
43806     which can conflict with char $ac_func (); below.
43807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43808     <limits.h> exists even on freestanding compilers.  */
43809
43810 #ifdef __STDC__
43811 # include <limits.h>
43812 #else
43813 # include <assert.h>
43814 #endif
43815
43816 #undef $ac_func
43817
43818 /* Override any gcc2 internal prototype to avoid an error.  */
43819 #ifdef __cplusplus
43820 extern "C"
43821 {
43822 #endif
43823 /* We use char because int might match the return type of a gcc2
43824    builtin and then its argument prototype would still apply.  */
43825 char $ac_func ();
43826 /* The GNU C library defines this for functions which it implements
43827     to always fail with ENOSYS.  Some functions are actually named
43828     something starting with __ and the normal name is an alias.  */
43829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43830 choke me
43831 #else
43832 char (*f) () = $ac_func;
43833 #endif
43834 #ifdef __cplusplus
43835 }
43836 #endif
43837
43838 int
43839 main ()
43840 {
43841 return f != $ac_func;
43842   ;
43843   return 0;
43844 }
43845 _ACEOF
43846 rm -f conftest.$ac_objext conftest$ac_exeext
43847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43848   (eval $ac_link) 2>conftest.er1
43849   ac_status=$?
43850   grep -v '^ *+' conftest.er1 >conftest.err
43851   rm -f conftest.er1
43852   cat conftest.err >&5
43853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43854   (exit $ac_status); } &&
43855          { ac_try='test -z "$ac_c_werror_flag"
43856                          || test ! -s conftest.err'
43857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43858   (eval $ac_try) 2>&5
43859   ac_status=$?
43860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43861   (exit $ac_status); }; } &&
43862          { ac_try='test -s conftest$ac_exeext'
43863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43864   (eval $ac_try) 2>&5
43865   ac_status=$?
43866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43867   (exit $ac_status); }; }; then
43868   eval "$as_ac_var=yes"
43869 else
43870   echo "$as_me: failed program was:" >&5
43871 sed 's/^/| /' conftest.$ac_ext >&5
43872
43873 eval "$as_ac_var=no"
43874 fi
43875 rm -f conftest.err conftest.$ac_objext \
43876       conftest$ac_exeext conftest.$ac_ext
43877 fi
43878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43880 if test `eval echo '${'$as_ac_var'}'` = yes; then
43881   cat >>confdefs.h <<_ACEOF
43882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43883 _ACEOF
43884
43885 fi
43886 done
43887
43888   else
43889
43890   echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
43891 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
43892   if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
43893     if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
43894   echo $ECHO_N "(cached) $ECHO_C" >&6
43895 else
43896
43897
43898
43899       ac_ext=cc
43900 ac_cpp='$CXXCPP $CPPFLAGS'
43901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43904
43905       cat >conftest.$ac_ext <<_ACEOF
43906 /* confdefs.h.  */
43907 _ACEOF
43908 cat confdefs.h >>conftest.$ac_ext
43909 cat >>conftest.$ac_ext <<_ACEOF
43910 /* end confdefs.h.  */
43911 #include <math.h>
43912 int
43913 main ()
43914 {
43915  _fmodl(0, 0);
43916   ;
43917   return 0;
43918 }
43919 _ACEOF
43920 rm -f conftest.$ac_objext
43921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43922   (eval $ac_compile) 2>conftest.er1
43923   ac_status=$?
43924   grep -v '^ *+' conftest.er1 >conftest.err
43925   rm -f conftest.er1
43926   cat conftest.err >&5
43927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43928   (exit $ac_status); } &&
43929          { ac_try='test -z "$ac_cxx_werror_flag"
43930                          || test ! -s conftest.err'
43931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43932   (eval $ac_try) 2>&5
43933   ac_status=$?
43934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43935   (exit $ac_status); }; } &&
43936          { ac_try='test -s conftest.$ac_objext'
43937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43938   (eval $ac_try) 2>&5
43939   ac_status=$?
43940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43941   (exit $ac_status); }; }; then
43942   glibcxx_cv_func__fmodl_use=yes
43943 else
43944   echo "$as_me: failed program was:" >&5
43945 sed 's/^/| /' conftest.$ac_ext >&5
43946
43947 glibcxx_cv_func__fmodl_use=no
43948 fi
43949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43950       ac_ext=c
43951 ac_cpp='$CPP $CPPFLAGS'
43952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43955
43956
43957 fi
43958
43959   fi
43960   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
43961 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
43962
43963     if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
43964
43965 for ac_func in _fmodl
43966 do
43967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43968 echo "$as_me:$LINENO: checking for $ac_func" >&5
43969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43970 if eval "test \"\${$as_ac_var+set}\" = set"; then
43971   echo $ECHO_N "(cached) $ECHO_C" >&6
43972 else
43973   if test x$gcc_no_link = xyes; then
43974   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
43975 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
43976    { (exit 1); exit 1; }; }
43977 fi
43978 cat >conftest.$ac_ext <<_ACEOF
43979 /* confdefs.h.  */
43980 _ACEOF
43981 cat confdefs.h >>conftest.$ac_ext
43982 cat >>conftest.$ac_ext <<_ACEOF
43983 /* end confdefs.h.  */
43984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43986 #define $ac_func innocuous_$ac_func
43987
43988 /* System header to define __stub macros and hopefully few prototypes,
43989     which can conflict with char $ac_func (); below.
43990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43991     <limits.h> exists even on freestanding compilers.  */
43992
43993 #ifdef __STDC__
43994 # include <limits.h>
43995 #else
43996 # include <assert.h>
43997 #endif
43998
43999 #undef $ac_func
44000
44001 /* Override any gcc2 internal prototype to avoid an error.  */
44002 #ifdef __cplusplus
44003 extern "C"
44004 {
44005 #endif
44006 /* We use char because int might match the return type of a gcc2
44007    builtin and then its argument prototype would still apply.  */
44008 char $ac_func ();
44009 /* The GNU C library defines this for functions which it implements
44010     to always fail with ENOSYS.  Some functions are actually named
44011     something starting with __ and the normal name is an alias.  */
44012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44013 choke me
44014 #else
44015 char (*f) () = $ac_func;
44016 #endif
44017 #ifdef __cplusplus
44018 }
44019 #endif
44020
44021 int
44022 main ()
44023 {
44024 return f != $ac_func;
44025   ;
44026   return 0;
44027 }
44028 _ACEOF
44029 rm -f conftest.$ac_objext conftest$ac_exeext
44030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44031   (eval $ac_link) 2>conftest.er1
44032   ac_status=$?
44033   grep -v '^ *+' conftest.er1 >conftest.err
44034   rm -f conftest.er1
44035   cat conftest.err >&5
44036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44037   (exit $ac_status); } &&
44038          { ac_try='test -z "$ac_c_werror_flag"
44039                          || test ! -s conftest.err'
44040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44041   (eval $ac_try) 2>&5
44042   ac_status=$?
44043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44044   (exit $ac_status); }; } &&
44045          { ac_try='test -s conftest$ac_exeext'
44046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44047   (eval $ac_try) 2>&5
44048   ac_status=$?
44049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44050   (exit $ac_status); }; }; then
44051   eval "$as_ac_var=yes"
44052 else
44053   echo "$as_me: failed program was:" >&5
44054 sed 's/^/| /' conftest.$ac_ext >&5
44055
44056 eval "$as_ac_var=no"
44057 fi
44058 rm -f conftest.err conftest.$ac_objext \
44059       conftest$ac_exeext conftest.$ac_ext
44060 fi
44061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44063 if test `eval echo '${'$as_ac_var'}'` = yes; then
44064   cat >>confdefs.h <<_ACEOF
44065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44066 _ACEOF
44067
44068 fi
44069 done
44070
44071     fi
44072   fi
44073
44074
44075
44076   echo "$as_me:$LINENO: checking for frexpl declaration" >&5
44077 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
44078   if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
44079     if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
44080   echo $ECHO_N "(cached) $ECHO_C" >&6
44081 else
44082
44083
44084
44085       ac_ext=cc
44086 ac_cpp='$CXXCPP $CPPFLAGS'
44087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44090
44091       cat >conftest.$ac_ext <<_ACEOF
44092 /* confdefs.h.  */
44093 _ACEOF
44094 cat confdefs.h >>conftest.$ac_ext
44095 cat >>conftest.$ac_ext <<_ACEOF
44096 /* end confdefs.h.  */
44097 #include <math.h>
44098 int
44099 main ()
44100 {
44101  frexpl(0, 0);
44102   ;
44103   return 0;
44104 }
44105 _ACEOF
44106 rm -f conftest.$ac_objext
44107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44108   (eval $ac_compile) 2>conftest.er1
44109   ac_status=$?
44110   grep -v '^ *+' conftest.er1 >conftest.err
44111   rm -f conftest.er1
44112   cat conftest.err >&5
44113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44114   (exit $ac_status); } &&
44115          { ac_try='test -z "$ac_cxx_werror_flag"
44116                          || test ! -s conftest.err'
44117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44118   (eval $ac_try) 2>&5
44119   ac_status=$?
44120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44121   (exit $ac_status); }; } &&
44122          { ac_try='test -s conftest.$ac_objext'
44123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44124   (eval $ac_try) 2>&5
44125   ac_status=$?
44126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44127   (exit $ac_status); }; }; then
44128   glibcxx_cv_func_frexpl_use=yes
44129 else
44130   echo "$as_me: failed program was:" >&5
44131 sed 's/^/| /' conftest.$ac_ext >&5
44132
44133 glibcxx_cv_func_frexpl_use=no
44134 fi
44135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44136       ac_ext=c
44137 ac_cpp='$CPP $CPPFLAGS'
44138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44141
44142
44143 fi
44144
44145   fi
44146   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
44147 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
44148
44149   if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
44150
44151 for ac_func in frexpl
44152 do
44153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44154 echo "$as_me:$LINENO: checking for $ac_func" >&5
44155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44156 if eval "test \"\${$as_ac_var+set}\" = set"; then
44157   echo $ECHO_N "(cached) $ECHO_C" >&6
44158 else
44159   if test x$gcc_no_link = xyes; then
44160   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44161 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44162    { (exit 1); exit 1; }; }
44163 fi
44164 cat >conftest.$ac_ext <<_ACEOF
44165 /* confdefs.h.  */
44166 _ACEOF
44167 cat confdefs.h >>conftest.$ac_ext
44168 cat >>conftest.$ac_ext <<_ACEOF
44169 /* end confdefs.h.  */
44170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44172 #define $ac_func innocuous_$ac_func
44173
44174 /* System header to define __stub macros and hopefully few prototypes,
44175     which can conflict with char $ac_func (); below.
44176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44177     <limits.h> exists even on freestanding compilers.  */
44178
44179 #ifdef __STDC__
44180 # include <limits.h>
44181 #else
44182 # include <assert.h>
44183 #endif
44184
44185 #undef $ac_func
44186
44187 /* Override any gcc2 internal prototype to avoid an error.  */
44188 #ifdef __cplusplus
44189 extern "C"
44190 {
44191 #endif
44192 /* We use char because int might match the return type of a gcc2
44193    builtin and then its argument prototype would still apply.  */
44194 char $ac_func ();
44195 /* The GNU C library defines this for functions which it implements
44196     to always fail with ENOSYS.  Some functions are actually named
44197     something starting with __ and the normal name is an alias.  */
44198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44199 choke me
44200 #else
44201 char (*f) () = $ac_func;
44202 #endif
44203 #ifdef __cplusplus
44204 }
44205 #endif
44206
44207 int
44208 main ()
44209 {
44210 return f != $ac_func;
44211   ;
44212   return 0;
44213 }
44214 _ACEOF
44215 rm -f conftest.$ac_objext conftest$ac_exeext
44216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44217   (eval $ac_link) 2>conftest.er1
44218   ac_status=$?
44219   grep -v '^ *+' conftest.er1 >conftest.err
44220   rm -f conftest.er1
44221   cat conftest.err >&5
44222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44223   (exit $ac_status); } &&
44224          { ac_try='test -z "$ac_c_werror_flag"
44225                          || test ! -s conftest.err'
44226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44227   (eval $ac_try) 2>&5
44228   ac_status=$?
44229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44230   (exit $ac_status); }; } &&
44231          { ac_try='test -s conftest$ac_exeext'
44232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44233   (eval $ac_try) 2>&5
44234   ac_status=$?
44235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44236   (exit $ac_status); }; }; then
44237   eval "$as_ac_var=yes"
44238 else
44239   echo "$as_me: failed program was:" >&5
44240 sed 's/^/| /' conftest.$ac_ext >&5
44241
44242 eval "$as_ac_var=no"
44243 fi
44244 rm -f conftest.err conftest.$ac_objext \
44245       conftest$ac_exeext conftest.$ac_ext
44246 fi
44247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44249 if test `eval echo '${'$as_ac_var'}'` = yes; then
44250   cat >>confdefs.h <<_ACEOF
44251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44252 _ACEOF
44253
44254 fi
44255 done
44256
44257   else
44258
44259   echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
44260 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
44261   if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
44262     if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
44263   echo $ECHO_N "(cached) $ECHO_C" >&6
44264 else
44265
44266
44267
44268       ac_ext=cc
44269 ac_cpp='$CXXCPP $CPPFLAGS'
44270 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44271 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44272 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44273
44274       cat >conftest.$ac_ext <<_ACEOF
44275 /* confdefs.h.  */
44276 _ACEOF
44277 cat confdefs.h >>conftest.$ac_ext
44278 cat >>conftest.$ac_ext <<_ACEOF
44279 /* end confdefs.h.  */
44280 #include <math.h>
44281 int
44282 main ()
44283 {
44284  _frexpl(0, 0);
44285   ;
44286   return 0;
44287 }
44288 _ACEOF
44289 rm -f conftest.$ac_objext
44290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44291   (eval $ac_compile) 2>conftest.er1
44292   ac_status=$?
44293   grep -v '^ *+' conftest.er1 >conftest.err
44294   rm -f conftest.er1
44295   cat conftest.err >&5
44296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44297   (exit $ac_status); } &&
44298          { ac_try='test -z "$ac_cxx_werror_flag"
44299                          || test ! -s conftest.err'
44300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44301   (eval $ac_try) 2>&5
44302   ac_status=$?
44303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44304   (exit $ac_status); }; } &&
44305          { ac_try='test -s conftest.$ac_objext'
44306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44307   (eval $ac_try) 2>&5
44308   ac_status=$?
44309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44310   (exit $ac_status); }; }; then
44311   glibcxx_cv_func__frexpl_use=yes
44312 else
44313   echo "$as_me: failed program was:" >&5
44314 sed 's/^/| /' conftest.$ac_ext >&5
44315
44316 glibcxx_cv_func__frexpl_use=no
44317 fi
44318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44319       ac_ext=c
44320 ac_cpp='$CPP $CPPFLAGS'
44321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44324
44325
44326 fi
44327
44328   fi
44329   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
44330 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
44331
44332     if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
44333
44334 for ac_func in _frexpl
44335 do
44336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44337 echo "$as_me:$LINENO: checking for $ac_func" >&5
44338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44339 if eval "test \"\${$as_ac_var+set}\" = set"; then
44340   echo $ECHO_N "(cached) $ECHO_C" >&6
44341 else
44342   if test x$gcc_no_link = xyes; then
44343   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44344 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44345    { (exit 1); exit 1; }; }
44346 fi
44347 cat >conftest.$ac_ext <<_ACEOF
44348 /* confdefs.h.  */
44349 _ACEOF
44350 cat confdefs.h >>conftest.$ac_ext
44351 cat >>conftest.$ac_ext <<_ACEOF
44352 /* end confdefs.h.  */
44353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44355 #define $ac_func innocuous_$ac_func
44356
44357 /* System header to define __stub macros and hopefully few prototypes,
44358     which can conflict with char $ac_func (); below.
44359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44360     <limits.h> exists even on freestanding compilers.  */
44361
44362 #ifdef __STDC__
44363 # include <limits.h>
44364 #else
44365 # include <assert.h>
44366 #endif
44367
44368 #undef $ac_func
44369
44370 /* Override any gcc2 internal prototype to avoid an error.  */
44371 #ifdef __cplusplus
44372 extern "C"
44373 {
44374 #endif
44375 /* We use char because int might match the return type of a gcc2
44376    builtin and then its argument prototype would still apply.  */
44377 char $ac_func ();
44378 /* The GNU C library defines this for functions which it implements
44379     to always fail with ENOSYS.  Some functions are actually named
44380     something starting with __ and the normal name is an alias.  */
44381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44382 choke me
44383 #else
44384 char (*f) () = $ac_func;
44385 #endif
44386 #ifdef __cplusplus
44387 }
44388 #endif
44389
44390 int
44391 main ()
44392 {
44393 return f != $ac_func;
44394   ;
44395   return 0;
44396 }
44397 _ACEOF
44398 rm -f conftest.$ac_objext conftest$ac_exeext
44399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44400   (eval $ac_link) 2>conftest.er1
44401   ac_status=$?
44402   grep -v '^ *+' conftest.er1 >conftest.err
44403   rm -f conftest.er1
44404   cat conftest.err >&5
44405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44406   (exit $ac_status); } &&
44407          { ac_try='test -z "$ac_c_werror_flag"
44408                          || test ! -s conftest.err'
44409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44410   (eval $ac_try) 2>&5
44411   ac_status=$?
44412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44413   (exit $ac_status); }; } &&
44414          { ac_try='test -s conftest$ac_exeext'
44415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44416   (eval $ac_try) 2>&5
44417   ac_status=$?
44418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44419   (exit $ac_status); }; }; then
44420   eval "$as_ac_var=yes"
44421 else
44422   echo "$as_me: failed program was:" >&5
44423 sed 's/^/| /' conftest.$ac_ext >&5
44424
44425 eval "$as_ac_var=no"
44426 fi
44427 rm -f conftest.err conftest.$ac_objext \
44428       conftest$ac_exeext conftest.$ac_ext
44429 fi
44430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44431 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44432 if test `eval echo '${'$as_ac_var'}'` = yes; then
44433   cat >>confdefs.h <<_ACEOF
44434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44435 _ACEOF
44436
44437 fi
44438 done
44439
44440     fi
44441   fi
44442
44443
44444
44445   echo "$as_me:$LINENO: checking for hypotl declaration" >&5
44446 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
44447   if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
44448     if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
44449   echo $ECHO_N "(cached) $ECHO_C" >&6
44450 else
44451
44452
44453
44454       ac_ext=cc
44455 ac_cpp='$CXXCPP $CPPFLAGS'
44456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44459
44460       cat >conftest.$ac_ext <<_ACEOF
44461 /* confdefs.h.  */
44462 _ACEOF
44463 cat confdefs.h >>conftest.$ac_ext
44464 cat >>conftest.$ac_ext <<_ACEOF
44465 /* end confdefs.h.  */
44466 #include <math.h>
44467 int
44468 main ()
44469 {
44470  hypotl(0, 0);
44471   ;
44472   return 0;
44473 }
44474 _ACEOF
44475 rm -f conftest.$ac_objext
44476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44477   (eval $ac_compile) 2>conftest.er1
44478   ac_status=$?
44479   grep -v '^ *+' conftest.er1 >conftest.err
44480   rm -f conftest.er1
44481   cat conftest.err >&5
44482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44483   (exit $ac_status); } &&
44484          { ac_try='test -z "$ac_cxx_werror_flag"
44485                          || test ! -s conftest.err'
44486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44487   (eval $ac_try) 2>&5
44488   ac_status=$?
44489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44490   (exit $ac_status); }; } &&
44491          { ac_try='test -s conftest.$ac_objext'
44492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44493   (eval $ac_try) 2>&5
44494   ac_status=$?
44495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44496   (exit $ac_status); }; }; then
44497   glibcxx_cv_func_hypotl_use=yes
44498 else
44499   echo "$as_me: failed program was:" >&5
44500 sed 's/^/| /' conftest.$ac_ext >&5
44501
44502 glibcxx_cv_func_hypotl_use=no
44503 fi
44504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44505       ac_ext=c
44506 ac_cpp='$CPP $CPPFLAGS'
44507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44510
44511
44512 fi
44513
44514   fi
44515   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
44516 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
44517
44518   if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
44519
44520 for ac_func in hypotl
44521 do
44522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44523 echo "$as_me:$LINENO: checking for $ac_func" >&5
44524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44525 if eval "test \"\${$as_ac_var+set}\" = set"; then
44526   echo $ECHO_N "(cached) $ECHO_C" >&6
44527 else
44528   if test x$gcc_no_link = xyes; then
44529   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44530 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44531    { (exit 1); exit 1; }; }
44532 fi
44533 cat >conftest.$ac_ext <<_ACEOF
44534 /* confdefs.h.  */
44535 _ACEOF
44536 cat confdefs.h >>conftest.$ac_ext
44537 cat >>conftest.$ac_ext <<_ACEOF
44538 /* end confdefs.h.  */
44539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44541 #define $ac_func innocuous_$ac_func
44542
44543 /* System header to define __stub macros and hopefully few prototypes,
44544     which can conflict with char $ac_func (); below.
44545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44546     <limits.h> exists even on freestanding compilers.  */
44547
44548 #ifdef __STDC__
44549 # include <limits.h>
44550 #else
44551 # include <assert.h>
44552 #endif
44553
44554 #undef $ac_func
44555
44556 /* Override any gcc2 internal prototype to avoid an error.  */
44557 #ifdef __cplusplus
44558 extern "C"
44559 {
44560 #endif
44561 /* We use char because int might match the return type of a gcc2
44562    builtin and then its argument prototype would still apply.  */
44563 char $ac_func ();
44564 /* The GNU C library defines this for functions which it implements
44565     to always fail with ENOSYS.  Some functions are actually named
44566     something starting with __ and the normal name is an alias.  */
44567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44568 choke me
44569 #else
44570 char (*f) () = $ac_func;
44571 #endif
44572 #ifdef __cplusplus
44573 }
44574 #endif
44575
44576 int
44577 main ()
44578 {
44579 return f != $ac_func;
44580   ;
44581   return 0;
44582 }
44583 _ACEOF
44584 rm -f conftest.$ac_objext conftest$ac_exeext
44585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44586   (eval $ac_link) 2>conftest.er1
44587   ac_status=$?
44588   grep -v '^ *+' conftest.er1 >conftest.err
44589   rm -f conftest.er1
44590   cat conftest.err >&5
44591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44592   (exit $ac_status); } &&
44593          { ac_try='test -z "$ac_c_werror_flag"
44594                          || test ! -s conftest.err'
44595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44596   (eval $ac_try) 2>&5
44597   ac_status=$?
44598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44599   (exit $ac_status); }; } &&
44600          { ac_try='test -s conftest$ac_exeext'
44601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44602   (eval $ac_try) 2>&5
44603   ac_status=$?
44604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44605   (exit $ac_status); }; }; then
44606   eval "$as_ac_var=yes"
44607 else
44608   echo "$as_me: failed program was:" >&5
44609 sed 's/^/| /' conftest.$ac_ext >&5
44610
44611 eval "$as_ac_var=no"
44612 fi
44613 rm -f conftest.err conftest.$ac_objext \
44614       conftest$ac_exeext conftest.$ac_ext
44615 fi
44616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44618 if test `eval echo '${'$as_ac_var'}'` = yes; then
44619   cat >>confdefs.h <<_ACEOF
44620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44621 _ACEOF
44622
44623 fi
44624 done
44625
44626   else
44627
44628   echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
44629 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
44630   if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
44631     if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
44632   echo $ECHO_N "(cached) $ECHO_C" >&6
44633 else
44634
44635
44636
44637       ac_ext=cc
44638 ac_cpp='$CXXCPP $CPPFLAGS'
44639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44642
44643       cat >conftest.$ac_ext <<_ACEOF
44644 /* confdefs.h.  */
44645 _ACEOF
44646 cat confdefs.h >>conftest.$ac_ext
44647 cat >>conftest.$ac_ext <<_ACEOF
44648 /* end confdefs.h.  */
44649 #include <math.h>
44650 int
44651 main ()
44652 {
44653  _hypotl(0, 0);
44654   ;
44655   return 0;
44656 }
44657 _ACEOF
44658 rm -f conftest.$ac_objext
44659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44660   (eval $ac_compile) 2>conftest.er1
44661   ac_status=$?
44662   grep -v '^ *+' conftest.er1 >conftest.err
44663   rm -f conftest.er1
44664   cat conftest.err >&5
44665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44666   (exit $ac_status); } &&
44667          { ac_try='test -z "$ac_cxx_werror_flag"
44668                          || test ! -s conftest.err'
44669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44670   (eval $ac_try) 2>&5
44671   ac_status=$?
44672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44673   (exit $ac_status); }; } &&
44674          { ac_try='test -s conftest.$ac_objext'
44675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44676   (eval $ac_try) 2>&5
44677   ac_status=$?
44678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44679   (exit $ac_status); }; }; then
44680   glibcxx_cv_func__hypotl_use=yes
44681 else
44682   echo "$as_me: failed program was:" >&5
44683 sed 's/^/| /' conftest.$ac_ext >&5
44684
44685 glibcxx_cv_func__hypotl_use=no
44686 fi
44687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44688       ac_ext=c
44689 ac_cpp='$CPP $CPPFLAGS'
44690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44693
44694
44695 fi
44696
44697   fi
44698   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
44699 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
44700
44701     if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
44702
44703 for ac_func in _hypotl
44704 do
44705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44706 echo "$as_me:$LINENO: checking for $ac_func" >&5
44707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44708 if eval "test \"\${$as_ac_var+set}\" = set"; then
44709   echo $ECHO_N "(cached) $ECHO_C" >&6
44710 else
44711   if test x$gcc_no_link = xyes; then
44712   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44714    { (exit 1); exit 1; }; }
44715 fi
44716 cat >conftest.$ac_ext <<_ACEOF
44717 /* confdefs.h.  */
44718 _ACEOF
44719 cat confdefs.h >>conftest.$ac_ext
44720 cat >>conftest.$ac_ext <<_ACEOF
44721 /* end confdefs.h.  */
44722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44724 #define $ac_func innocuous_$ac_func
44725
44726 /* System header to define __stub macros and hopefully few prototypes,
44727     which can conflict with char $ac_func (); below.
44728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44729     <limits.h> exists even on freestanding compilers.  */
44730
44731 #ifdef __STDC__
44732 # include <limits.h>
44733 #else
44734 # include <assert.h>
44735 #endif
44736
44737 #undef $ac_func
44738
44739 /* Override any gcc2 internal prototype to avoid an error.  */
44740 #ifdef __cplusplus
44741 extern "C"
44742 {
44743 #endif
44744 /* We use char because int might match the return type of a gcc2
44745    builtin and then its argument prototype would still apply.  */
44746 char $ac_func ();
44747 /* The GNU C library defines this for functions which it implements
44748     to always fail with ENOSYS.  Some functions are actually named
44749     something starting with __ and the normal name is an alias.  */
44750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44751 choke me
44752 #else
44753 char (*f) () = $ac_func;
44754 #endif
44755 #ifdef __cplusplus
44756 }
44757 #endif
44758
44759 int
44760 main ()
44761 {
44762 return f != $ac_func;
44763   ;
44764   return 0;
44765 }
44766 _ACEOF
44767 rm -f conftest.$ac_objext conftest$ac_exeext
44768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44769   (eval $ac_link) 2>conftest.er1
44770   ac_status=$?
44771   grep -v '^ *+' conftest.er1 >conftest.err
44772   rm -f conftest.er1
44773   cat conftest.err >&5
44774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44775   (exit $ac_status); } &&
44776          { ac_try='test -z "$ac_c_werror_flag"
44777                          || test ! -s conftest.err'
44778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44779   (eval $ac_try) 2>&5
44780   ac_status=$?
44781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44782   (exit $ac_status); }; } &&
44783          { ac_try='test -s conftest$ac_exeext'
44784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44785   (eval $ac_try) 2>&5
44786   ac_status=$?
44787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44788   (exit $ac_status); }; }; then
44789   eval "$as_ac_var=yes"
44790 else
44791   echo "$as_me: failed program was:" >&5
44792 sed 's/^/| /' conftest.$ac_ext >&5
44793
44794 eval "$as_ac_var=no"
44795 fi
44796 rm -f conftest.err conftest.$ac_objext \
44797       conftest$ac_exeext conftest.$ac_ext
44798 fi
44799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44801 if test `eval echo '${'$as_ac_var'}'` = yes; then
44802   cat >>confdefs.h <<_ACEOF
44803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44804 _ACEOF
44805
44806 fi
44807 done
44808
44809     fi
44810   fi
44811
44812
44813
44814   echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
44815 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
44816   if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
44817     if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
44818   echo $ECHO_N "(cached) $ECHO_C" >&6
44819 else
44820
44821
44822
44823       ac_ext=cc
44824 ac_cpp='$CXXCPP $CPPFLAGS'
44825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44828
44829       cat >conftest.$ac_ext <<_ACEOF
44830 /* confdefs.h.  */
44831 _ACEOF
44832 cat confdefs.h >>conftest.$ac_ext
44833 cat >>conftest.$ac_ext <<_ACEOF
44834 /* end confdefs.h.  */
44835 #include <math.h>
44836 int
44837 main ()
44838 {
44839  ldexpl(0, 0);
44840   ;
44841   return 0;
44842 }
44843 _ACEOF
44844 rm -f conftest.$ac_objext
44845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44846   (eval $ac_compile) 2>conftest.er1
44847   ac_status=$?
44848   grep -v '^ *+' conftest.er1 >conftest.err
44849   rm -f conftest.er1
44850   cat conftest.err >&5
44851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44852   (exit $ac_status); } &&
44853          { ac_try='test -z "$ac_cxx_werror_flag"
44854                          || test ! -s conftest.err'
44855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44856   (eval $ac_try) 2>&5
44857   ac_status=$?
44858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44859   (exit $ac_status); }; } &&
44860          { ac_try='test -s conftest.$ac_objext'
44861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44862   (eval $ac_try) 2>&5
44863   ac_status=$?
44864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44865   (exit $ac_status); }; }; then
44866   glibcxx_cv_func_ldexpl_use=yes
44867 else
44868   echo "$as_me: failed program was:" >&5
44869 sed 's/^/| /' conftest.$ac_ext >&5
44870
44871 glibcxx_cv_func_ldexpl_use=no
44872 fi
44873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44874       ac_ext=c
44875 ac_cpp='$CPP $CPPFLAGS'
44876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44879
44880
44881 fi
44882
44883   fi
44884   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
44885 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
44886
44887   if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
44888
44889 for ac_func in ldexpl
44890 do
44891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44892 echo "$as_me:$LINENO: checking for $ac_func" >&5
44893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44894 if eval "test \"\${$as_ac_var+set}\" = set"; then
44895   echo $ECHO_N "(cached) $ECHO_C" >&6
44896 else
44897   if test x$gcc_no_link = xyes; then
44898   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
44899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
44900    { (exit 1); exit 1; }; }
44901 fi
44902 cat >conftest.$ac_ext <<_ACEOF
44903 /* confdefs.h.  */
44904 _ACEOF
44905 cat confdefs.h >>conftest.$ac_ext
44906 cat >>conftest.$ac_ext <<_ACEOF
44907 /* end confdefs.h.  */
44908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44910 #define $ac_func innocuous_$ac_func
44911
44912 /* System header to define __stub macros and hopefully few prototypes,
44913     which can conflict with char $ac_func (); below.
44914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44915     <limits.h> exists even on freestanding compilers.  */
44916
44917 #ifdef __STDC__
44918 # include <limits.h>
44919 #else
44920 # include <assert.h>
44921 #endif
44922
44923 #undef $ac_func
44924
44925 /* Override any gcc2 internal prototype to avoid an error.  */
44926 #ifdef __cplusplus
44927 extern "C"
44928 {
44929 #endif
44930 /* We use char because int might match the return type of a gcc2
44931    builtin and then its argument prototype would still apply.  */
44932 char $ac_func ();
44933 /* The GNU C library defines this for functions which it implements
44934     to always fail with ENOSYS.  Some functions are actually named
44935     something starting with __ and the normal name is an alias.  */
44936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44937 choke me
44938 #else
44939 char (*f) () = $ac_func;
44940 #endif
44941 #ifdef __cplusplus
44942 }
44943 #endif
44944
44945 int
44946 main ()
44947 {
44948 return f != $ac_func;
44949   ;
44950   return 0;
44951 }
44952 _ACEOF
44953 rm -f conftest.$ac_objext conftest$ac_exeext
44954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44955   (eval $ac_link) 2>conftest.er1
44956   ac_status=$?
44957   grep -v '^ *+' conftest.er1 >conftest.err
44958   rm -f conftest.er1
44959   cat conftest.err >&5
44960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44961   (exit $ac_status); } &&
44962          { ac_try='test -z "$ac_c_werror_flag"
44963                          || test ! -s conftest.err'
44964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44965   (eval $ac_try) 2>&5
44966   ac_status=$?
44967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44968   (exit $ac_status); }; } &&
44969          { ac_try='test -s conftest$ac_exeext'
44970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44971   (eval $ac_try) 2>&5
44972   ac_status=$?
44973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44974   (exit $ac_status); }; }; then
44975   eval "$as_ac_var=yes"
44976 else
44977   echo "$as_me: failed program was:" >&5
44978 sed 's/^/| /' conftest.$ac_ext >&5
44979
44980 eval "$as_ac_var=no"
44981 fi
44982 rm -f conftest.err conftest.$ac_objext \
44983       conftest$ac_exeext conftest.$ac_ext
44984 fi
44985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44987 if test `eval echo '${'$as_ac_var'}'` = yes; then
44988   cat >>confdefs.h <<_ACEOF
44989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44990 _ACEOF
44991
44992 fi
44993 done
44994
44995   else
44996
44997   echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
44998 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
44999   if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
45000     if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
45001   echo $ECHO_N "(cached) $ECHO_C" >&6
45002 else
45003
45004
45005
45006       ac_ext=cc
45007 ac_cpp='$CXXCPP $CPPFLAGS'
45008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45011
45012       cat >conftest.$ac_ext <<_ACEOF
45013 /* confdefs.h.  */
45014 _ACEOF
45015 cat confdefs.h >>conftest.$ac_ext
45016 cat >>conftest.$ac_ext <<_ACEOF
45017 /* end confdefs.h.  */
45018 #include <math.h>
45019 int
45020 main ()
45021 {
45022  _ldexpl(0, 0);
45023   ;
45024   return 0;
45025 }
45026 _ACEOF
45027 rm -f conftest.$ac_objext
45028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45029   (eval $ac_compile) 2>conftest.er1
45030   ac_status=$?
45031   grep -v '^ *+' conftest.er1 >conftest.err
45032   rm -f conftest.er1
45033   cat conftest.err >&5
45034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45035   (exit $ac_status); } &&
45036          { ac_try='test -z "$ac_cxx_werror_flag"
45037                          || test ! -s conftest.err'
45038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45039   (eval $ac_try) 2>&5
45040   ac_status=$?
45041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45042   (exit $ac_status); }; } &&
45043          { ac_try='test -s conftest.$ac_objext'
45044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45045   (eval $ac_try) 2>&5
45046   ac_status=$?
45047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45048   (exit $ac_status); }; }; then
45049   glibcxx_cv_func__ldexpl_use=yes
45050 else
45051   echo "$as_me: failed program was:" >&5
45052 sed 's/^/| /' conftest.$ac_ext >&5
45053
45054 glibcxx_cv_func__ldexpl_use=no
45055 fi
45056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45057       ac_ext=c
45058 ac_cpp='$CPP $CPPFLAGS'
45059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45062
45063
45064 fi
45065
45066   fi
45067   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
45068 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
45069
45070     if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
45071
45072 for ac_func in _ldexpl
45073 do
45074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45075 echo "$as_me:$LINENO: checking for $ac_func" >&5
45076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45077 if eval "test \"\${$as_ac_var+set}\" = set"; then
45078   echo $ECHO_N "(cached) $ECHO_C" >&6
45079 else
45080   if test x$gcc_no_link = xyes; then
45081   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45082 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45083    { (exit 1); exit 1; }; }
45084 fi
45085 cat >conftest.$ac_ext <<_ACEOF
45086 /* confdefs.h.  */
45087 _ACEOF
45088 cat confdefs.h >>conftest.$ac_ext
45089 cat >>conftest.$ac_ext <<_ACEOF
45090 /* end confdefs.h.  */
45091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45093 #define $ac_func innocuous_$ac_func
45094
45095 /* System header to define __stub macros and hopefully few prototypes,
45096     which can conflict with char $ac_func (); below.
45097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45098     <limits.h> exists even on freestanding compilers.  */
45099
45100 #ifdef __STDC__
45101 # include <limits.h>
45102 #else
45103 # include <assert.h>
45104 #endif
45105
45106 #undef $ac_func
45107
45108 /* Override any gcc2 internal prototype to avoid an error.  */
45109 #ifdef __cplusplus
45110 extern "C"
45111 {
45112 #endif
45113 /* We use char because int might match the return type of a gcc2
45114    builtin and then its argument prototype would still apply.  */
45115 char $ac_func ();
45116 /* The GNU C library defines this for functions which it implements
45117     to always fail with ENOSYS.  Some functions are actually named
45118     something starting with __ and the normal name is an alias.  */
45119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45120 choke me
45121 #else
45122 char (*f) () = $ac_func;
45123 #endif
45124 #ifdef __cplusplus
45125 }
45126 #endif
45127
45128 int
45129 main ()
45130 {
45131 return f != $ac_func;
45132   ;
45133   return 0;
45134 }
45135 _ACEOF
45136 rm -f conftest.$ac_objext conftest$ac_exeext
45137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45138   (eval $ac_link) 2>conftest.er1
45139   ac_status=$?
45140   grep -v '^ *+' conftest.er1 >conftest.err
45141   rm -f conftest.er1
45142   cat conftest.err >&5
45143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45144   (exit $ac_status); } &&
45145          { ac_try='test -z "$ac_c_werror_flag"
45146                          || test ! -s conftest.err'
45147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45148   (eval $ac_try) 2>&5
45149   ac_status=$?
45150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45151   (exit $ac_status); }; } &&
45152          { ac_try='test -s conftest$ac_exeext'
45153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45154   (eval $ac_try) 2>&5
45155   ac_status=$?
45156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45157   (exit $ac_status); }; }; then
45158   eval "$as_ac_var=yes"
45159 else
45160   echo "$as_me: failed program was:" >&5
45161 sed 's/^/| /' conftest.$ac_ext >&5
45162
45163 eval "$as_ac_var=no"
45164 fi
45165 rm -f conftest.err conftest.$ac_objext \
45166       conftest$ac_exeext conftest.$ac_ext
45167 fi
45168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45170 if test `eval echo '${'$as_ac_var'}'` = yes; then
45171   cat >>confdefs.h <<_ACEOF
45172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45173 _ACEOF
45174
45175 fi
45176 done
45177
45178     fi
45179   fi
45180
45181
45182
45183   echo "$as_me:$LINENO: checking for logl declaration" >&5
45184 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
45185   if test x${glibcxx_cv_func_logl_use+set} != xset; then
45186     if test "${glibcxx_cv_func_logl_use+set}" = set; then
45187   echo $ECHO_N "(cached) $ECHO_C" >&6
45188 else
45189
45190
45191
45192       ac_ext=cc
45193 ac_cpp='$CXXCPP $CPPFLAGS'
45194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45197
45198       cat >conftest.$ac_ext <<_ACEOF
45199 /* confdefs.h.  */
45200 _ACEOF
45201 cat confdefs.h >>conftest.$ac_ext
45202 cat >>conftest.$ac_ext <<_ACEOF
45203 /* end confdefs.h.  */
45204 #include <math.h>
45205                       #ifdef HAVE_IEEEFP_H
45206                       #include <ieeefp.h>
45207                       #endif
45208
45209 int
45210 main ()
45211 {
45212  logl(0);
45213   ;
45214   return 0;
45215 }
45216 _ACEOF
45217 rm -f conftest.$ac_objext
45218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45219   (eval $ac_compile) 2>conftest.er1
45220   ac_status=$?
45221   grep -v '^ *+' conftest.er1 >conftest.err
45222   rm -f conftest.er1
45223   cat conftest.err >&5
45224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45225   (exit $ac_status); } &&
45226          { ac_try='test -z "$ac_cxx_werror_flag"
45227                          || test ! -s conftest.err'
45228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45229   (eval $ac_try) 2>&5
45230   ac_status=$?
45231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45232   (exit $ac_status); }; } &&
45233          { ac_try='test -s conftest.$ac_objext'
45234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45235   (eval $ac_try) 2>&5
45236   ac_status=$?
45237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45238   (exit $ac_status); }; }; then
45239   glibcxx_cv_func_logl_use=yes
45240 else
45241   echo "$as_me: failed program was:" >&5
45242 sed 's/^/| /' conftest.$ac_ext >&5
45243
45244 glibcxx_cv_func_logl_use=no
45245 fi
45246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45247       ac_ext=c
45248 ac_cpp='$CPP $CPPFLAGS'
45249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45252
45253
45254 fi
45255
45256   fi
45257   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
45258 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
45259
45260   if test x$glibcxx_cv_func_logl_use = x"yes"; then
45261
45262 for ac_func in logl
45263 do
45264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45265 echo "$as_me:$LINENO: checking for $ac_func" >&5
45266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45267 if eval "test \"\${$as_ac_var+set}\" = set"; then
45268   echo $ECHO_N "(cached) $ECHO_C" >&6
45269 else
45270   if test x$gcc_no_link = xyes; then
45271   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45272 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45273    { (exit 1); exit 1; }; }
45274 fi
45275 cat >conftest.$ac_ext <<_ACEOF
45276 /* confdefs.h.  */
45277 _ACEOF
45278 cat confdefs.h >>conftest.$ac_ext
45279 cat >>conftest.$ac_ext <<_ACEOF
45280 /* end confdefs.h.  */
45281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45283 #define $ac_func innocuous_$ac_func
45284
45285 /* System header to define __stub macros and hopefully few prototypes,
45286     which can conflict with char $ac_func (); below.
45287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45288     <limits.h> exists even on freestanding compilers.  */
45289
45290 #ifdef __STDC__
45291 # include <limits.h>
45292 #else
45293 # include <assert.h>
45294 #endif
45295
45296 #undef $ac_func
45297
45298 /* Override any gcc2 internal prototype to avoid an error.  */
45299 #ifdef __cplusplus
45300 extern "C"
45301 {
45302 #endif
45303 /* We use char because int might match the return type of a gcc2
45304    builtin and then its argument prototype would still apply.  */
45305 char $ac_func ();
45306 /* The GNU C library defines this for functions which it implements
45307     to always fail with ENOSYS.  Some functions are actually named
45308     something starting with __ and the normal name is an alias.  */
45309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45310 choke me
45311 #else
45312 char (*f) () = $ac_func;
45313 #endif
45314 #ifdef __cplusplus
45315 }
45316 #endif
45317
45318 int
45319 main ()
45320 {
45321 return f != $ac_func;
45322   ;
45323   return 0;
45324 }
45325 _ACEOF
45326 rm -f conftest.$ac_objext conftest$ac_exeext
45327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45328   (eval $ac_link) 2>conftest.er1
45329   ac_status=$?
45330   grep -v '^ *+' conftest.er1 >conftest.err
45331   rm -f conftest.er1
45332   cat conftest.err >&5
45333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45334   (exit $ac_status); } &&
45335          { ac_try='test -z "$ac_c_werror_flag"
45336                          || test ! -s conftest.err'
45337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45338   (eval $ac_try) 2>&5
45339   ac_status=$?
45340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45341   (exit $ac_status); }; } &&
45342          { ac_try='test -s conftest$ac_exeext'
45343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45344   (eval $ac_try) 2>&5
45345   ac_status=$?
45346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45347   (exit $ac_status); }; }; then
45348   eval "$as_ac_var=yes"
45349 else
45350   echo "$as_me: failed program was:" >&5
45351 sed 's/^/| /' conftest.$ac_ext >&5
45352
45353 eval "$as_ac_var=no"
45354 fi
45355 rm -f conftest.err conftest.$ac_objext \
45356       conftest$ac_exeext conftest.$ac_ext
45357 fi
45358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45360 if test `eval echo '${'$as_ac_var'}'` = yes; then
45361   cat >>confdefs.h <<_ACEOF
45362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45363 _ACEOF
45364
45365 fi
45366 done
45367
45368   else
45369
45370   echo "$as_me:$LINENO: checking for _logl declaration" >&5
45371 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
45372   if test x${glibcxx_cv_func__logl_use+set} != xset; then
45373     if test "${glibcxx_cv_func__logl_use+set}" = set; then
45374   echo $ECHO_N "(cached) $ECHO_C" >&6
45375 else
45376
45377
45378
45379       ac_ext=cc
45380 ac_cpp='$CXXCPP $CPPFLAGS'
45381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45384
45385       cat >conftest.$ac_ext <<_ACEOF
45386 /* confdefs.h.  */
45387 _ACEOF
45388 cat confdefs.h >>conftest.$ac_ext
45389 cat >>conftest.$ac_ext <<_ACEOF
45390 /* end confdefs.h.  */
45391 #include <math.h>
45392                       #ifdef HAVE_IEEEFP_H
45393                       #include <ieeefp.h>
45394                       #endif
45395
45396 int
45397 main ()
45398 {
45399  _logl(0);
45400   ;
45401   return 0;
45402 }
45403 _ACEOF
45404 rm -f conftest.$ac_objext
45405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45406   (eval $ac_compile) 2>conftest.er1
45407   ac_status=$?
45408   grep -v '^ *+' conftest.er1 >conftest.err
45409   rm -f conftest.er1
45410   cat conftest.err >&5
45411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45412   (exit $ac_status); } &&
45413          { ac_try='test -z "$ac_cxx_werror_flag"
45414                          || test ! -s conftest.err'
45415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45416   (eval $ac_try) 2>&5
45417   ac_status=$?
45418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45419   (exit $ac_status); }; } &&
45420          { ac_try='test -s conftest.$ac_objext'
45421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45422   (eval $ac_try) 2>&5
45423   ac_status=$?
45424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45425   (exit $ac_status); }; }; then
45426   glibcxx_cv_func__logl_use=yes
45427 else
45428   echo "$as_me: failed program was:" >&5
45429 sed 's/^/| /' conftest.$ac_ext >&5
45430
45431 glibcxx_cv_func__logl_use=no
45432 fi
45433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45434       ac_ext=c
45435 ac_cpp='$CPP $CPPFLAGS'
45436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45439
45440
45441 fi
45442
45443   fi
45444   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
45445 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
45446
45447     if test x$glibcxx_cv_func__logl_use = x"yes"; then
45448
45449 for ac_func in _logl
45450 do
45451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45452 echo "$as_me:$LINENO: checking for $ac_func" >&5
45453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45454 if eval "test \"\${$as_ac_var+set}\" = set"; then
45455   echo $ECHO_N "(cached) $ECHO_C" >&6
45456 else
45457   if test x$gcc_no_link = xyes; then
45458   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45459 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45460    { (exit 1); exit 1; }; }
45461 fi
45462 cat >conftest.$ac_ext <<_ACEOF
45463 /* confdefs.h.  */
45464 _ACEOF
45465 cat confdefs.h >>conftest.$ac_ext
45466 cat >>conftest.$ac_ext <<_ACEOF
45467 /* end confdefs.h.  */
45468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45470 #define $ac_func innocuous_$ac_func
45471
45472 /* System header to define __stub macros and hopefully few prototypes,
45473     which can conflict with char $ac_func (); below.
45474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45475     <limits.h> exists even on freestanding compilers.  */
45476
45477 #ifdef __STDC__
45478 # include <limits.h>
45479 #else
45480 # include <assert.h>
45481 #endif
45482
45483 #undef $ac_func
45484
45485 /* Override any gcc2 internal prototype to avoid an error.  */
45486 #ifdef __cplusplus
45487 extern "C"
45488 {
45489 #endif
45490 /* We use char because int might match the return type of a gcc2
45491    builtin and then its argument prototype would still apply.  */
45492 char $ac_func ();
45493 /* The GNU C library defines this for functions which it implements
45494     to always fail with ENOSYS.  Some functions are actually named
45495     something starting with __ and the normal name is an alias.  */
45496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45497 choke me
45498 #else
45499 char (*f) () = $ac_func;
45500 #endif
45501 #ifdef __cplusplus
45502 }
45503 #endif
45504
45505 int
45506 main ()
45507 {
45508 return f != $ac_func;
45509   ;
45510   return 0;
45511 }
45512 _ACEOF
45513 rm -f conftest.$ac_objext conftest$ac_exeext
45514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45515   (eval $ac_link) 2>conftest.er1
45516   ac_status=$?
45517   grep -v '^ *+' conftest.er1 >conftest.err
45518   rm -f conftest.er1
45519   cat conftest.err >&5
45520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45521   (exit $ac_status); } &&
45522          { ac_try='test -z "$ac_c_werror_flag"
45523                          || test ! -s conftest.err'
45524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45525   (eval $ac_try) 2>&5
45526   ac_status=$?
45527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45528   (exit $ac_status); }; } &&
45529          { ac_try='test -s conftest$ac_exeext'
45530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45531   (eval $ac_try) 2>&5
45532   ac_status=$?
45533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45534   (exit $ac_status); }; }; then
45535   eval "$as_ac_var=yes"
45536 else
45537   echo "$as_me: failed program was:" >&5
45538 sed 's/^/| /' conftest.$ac_ext >&5
45539
45540 eval "$as_ac_var=no"
45541 fi
45542 rm -f conftest.err conftest.$ac_objext \
45543       conftest$ac_exeext conftest.$ac_ext
45544 fi
45545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45547 if test `eval echo '${'$as_ac_var'}'` = yes; then
45548   cat >>confdefs.h <<_ACEOF
45549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45550 _ACEOF
45551
45552 fi
45553 done
45554
45555     fi
45556   fi
45557
45558
45559
45560   echo "$as_me:$LINENO: checking for log10l declaration" >&5
45561 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
45562   if test x${glibcxx_cv_func_log10l_use+set} != xset; then
45563     if test "${glibcxx_cv_func_log10l_use+set}" = set; then
45564   echo $ECHO_N "(cached) $ECHO_C" >&6
45565 else
45566
45567
45568
45569       ac_ext=cc
45570 ac_cpp='$CXXCPP $CPPFLAGS'
45571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45574
45575       cat >conftest.$ac_ext <<_ACEOF
45576 /* confdefs.h.  */
45577 _ACEOF
45578 cat confdefs.h >>conftest.$ac_ext
45579 cat >>conftest.$ac_ext <<_ACEOF
45580 /* end confdefs.h.  */
45581 #include <math.h>
45582                       #ifdef HAVE_IEEEFP_H
45583                       #include <ieeefp.h>
45584                       #endif
45585
45586 int
45587 main ()
45588 {
45589  log10l(0);
45590   ;
45591   return 0;
45592 }
45593 _ACEOF
45594 rm -f conftest.$ac_objext
45595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45596   (eval $ac_compile) 2>conftest.er1
45597   ac_status=$?
45598   grep -v '^ *+' conftest.er1 >conftest.err
45599   rm -f conftest.er1
45600   cat conftest.err >&5
45601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45602   (exit $ac_status); } &&
45603          { ac_try='test -z "$ac_cxx_werror_flag"
45604                          || test ! -s conftest.err'
45605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45606   (eval $ac_try) 2>&5
45607   ac_status=$?
45608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45609   (exit $ac_status); }; } &&
45610          { ac_try='test -s conftest.$ac_objext'
45611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45612   (eval $ac_try) 2>&5
45613   ac_status=$?
45614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45615   (exit $ac_status); }; }; then
45616   glibcxx_cv_func_log10l_use=yes
45617 else
45618   echo "$as_me: failed program was:" >&5
45619 sed 's/^/| /' conftest.$ac_ext >&5
45620
45621 glibcxx_cv_func_log10l_use=no
45622 fi
45623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45624       ac_ext=c
45625 ac_cpp='$CPP $CPPFLAGS'
45626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45629
45630
45631 fi
45632
45633   fi
45634   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
45635 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
45636
45637   if test x$glibcxx_cv_func_log10l_use = x"yes"; then
45638
45639 for ac_func in log10l
45640 do
45641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45642 echo "$as_me:$LINENO: checking for $ac_func" >&5
45643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45644 if eval "test \"\${$as_ac_var+set}\" = set"; then
45645   echo $ECHO_N "(cached) $ECHO_C" >&6
45646 else
45647   if test x$gcc_no_link = xyes; then
45648   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45649 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45650    { (exit 1); exit 1; }; }
45651 fi
45652 cat >conftest.$ac_ext <<_ACEOF
45653 /* confdefs.h.  */
45654 _ACEOF
45655 cat confdefs.h >>conftest.$ac_ext
45656 cat >>conftest.$ac_ext <<_ACEOF
45657 /* end confdefs.h.  */
45658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45660 #define $ac_func innocuous_$ac_func
45661
45662 /* System header to define __stub macros and hopefully few prototypes,
45663     which can conflict with char $ac_func (); below.
45664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45665     <limits.h> exists even on freestanding compilers.  */
45666
45667 #ifdef __STDC__
45668 # include <limits.h>
45669 #else
45670 # include <assert.h>
45671 #endif
45672
45673 #undef $ac_func
45674
45675 /* Override any gcc2 internal prototype to avoid an error.  */
45676 #ifdef __cplusplus
45677 extern "C"
45678 {
45679 #endif
45680 /* We use char because int might match the return type of a gcc2
45681    builtin and then its argument prototype would still apply.  */
45682 char $ac_func ();
45683 /* The GNU C library defines this for functions which it implements
45684     to always fail with ENOSYS.  Some functions are actually named
45685     something starting with __ and the normal name is an alias.  */
45686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45687 choke me
45688 #else
45689 char (*f) () = $ac_func;
45690 #endif
45691 #ifdef __cplusplus
45692 }
45693 #endif
45694
45695 int
45696 main ()
45697 {
45698 return f != $ac_func;
45699   ;
45700   return 0;
45701 }
45702 _ACEOF
45703 rm -f conftest.$ac_objext conftest$ac_exeext
45704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45705   (eval $ac_link) 2>conftest.er1
45706   ac_status=$?
45707   grep -v '^ *+' conftest.er1 >conftest.err
45708   rm -f conftest.er1
45709   cat conftest.err >&5
45710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45711   (exit $ac_status); } &&
45712          { ac_try='test -z "$ac_c_werror_flag"
45713                          || test ! -s conftest.err'
45714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45715   (eval $ac_try) 2>&5
45716   ac_status=$?
45717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45718   (exit $ac_status); }; } &&
45719          { ac_try='test -s conftest$ac_exeext'
45720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45721   (eval $ac_try) 2>&5
45722   ac_status=$?
45723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45724   (exit $ac_status); }; }; then
45725   eval "$as_ac_var=yes"
45726 else
45727   echo "$as_me: failed program was:" >&5
45728 sed 's/^/| /' conftest.$ac_ext >&5
45729
45730 eval "$as_ac_var=no"
45731 fi
45732 rm -f conftest.err conftest.$ac_objext \
45733       conftest$ac_exeext conftest.$ac_ext
45734 fi
45735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45737 if test `eval echo '${'$as_ac_var'}'` = yes; then
45738   cat >>confdefs.h <<_ACEOF
45739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45740 _ACEOF
45741
45742 fi
45743 done
45744
45745   else
45746
45747   echo "$as_me:$LINENO: checking for _log10l declaration" >&5
45748 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
45749   if test x${glibcxx_cv_func__log10l_use+set} != xset; then
45750     if test "${glibcxx_cv_func__log10l_use+set}" = set; then
45751   echo $ECHO_N "(cached) $ECHO_C" >&6
45752 else
45753
45754
45755
45756       ac_ext=cc
45757 ac_cpp='$CXXCPP $CPPFLAGS'
45758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45761
45762       cat >conftest.$ac_ext <<_ACEOF
45763 /* confdefs.h.  */
45764 _ACEOF
45765 cat confdefs.h >>conftest.$ac_ext
45766 cat >>conftest.$ac_ext <<_ACEOF
45767 /* end confdefs.h.  */
45768 #include <math.h>
45769                       #ifdef HAVE_IEEEFP_H
45770                       #include <ieeefp.h>
45771                       #endif
45772
45773 int
45774 main ()
45775 {
45776  _log10l(0);
45777   ;
45778   return 0;
45779 }
45780 _ACEOF
45781 rm -f conftest.$ac_objext
45782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45783   (eval $ac_compile) 2>conftest.er1
45784   ac_status=$?
45785   grep -v '^ *+' conftest.er1 >conftest.err
45786   rm -f conftest.er1
45787   cat conftest.err >&5
45788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45789   (exit $ac_status); } &&
45790          { ac_try='test -z "$ac_cxx_werror_flag"
45791                          || test ! -s conftest.err'
45792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45793   (eval $ac_try) 2>&5
45794   ac_status=$?
45795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45796   (exit $ac_status); }; } &&
45797          { ac_try='test -s conftest.$ac_objext'
45798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45799   (eval $ac_try) 2>&5
45800   ac_status=$?
45801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45802   (exit $ac_status); }; }; then
45803   glibcxx_cv_func__log10l_use=yes
45804 else
45805   echo "$as_me: failed program was:" >&5
45806 sed 's/^/| /' conftest.$ac_ext >&5
45807
45808 glibcxx_cv_func__log10l_use=no
45809 fi
45810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45811       ac_ext=c
45812 ac_cpp='$CPP $CPPFLAGS'
45813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
45816
45817
45818 fi
45819
45820   fi
45821   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
45822 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
45823
45824     if test x$glibcxx_cv_func__log10l_use = x"yes"; then
45825
45826 for ac_func in _log10l
45827 do
45828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45829 echo "$as_me:$LINENO: checking for $ac_func" >&5
45830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45831 if eval "test \"\${$as_ac_var+set}\" = set"; then
45832   echo $ECHO_N "(cached) $ECHO_C" >&6
45833 else
45834   if test x$gcc_no_link = xyes; then
45835   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
45836 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
45837    { (exit 1); exit 1; }; }
45838 fi
45839 cat >conftest.$ac_ext <<_ACEOF
45840 /* confdefs.h.  */
45841 _ACEOF
45842 cat confdefs.h >>conftest.$ac_ext
45843 cat >>conftest.$ac_ext <<_ACEOF
45844 /* end confdefs.h.  */
45845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45847 #define $ac_func innocuous_$ac_func
45848
45849 /* System header to define __stub macros and hopefully few prototypes,
45850     which can conflict with char $ac_func (); below.
45851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45852     <limits.h> exists even on freestanding compilers.  */
45853
45854 #ifdef __STDC__
45855 # include <limits.h>
45856 #else
45857 # include <assert.h>
45858 #endif
45859
45860 #undef $ac_func
45861
45862 /* Override any gcc2 internal prototype to avoid an error.  */
45863 #ifdef __cplusplus
45864 extern "C"
45865 {
45866 #endif
45867 /* We use char because int might match the return type of a gcc2
45868    builtin and then its argument prototype would still apply.  */
45869 char $ac_func ();
45870 /* The GNU C library defines this for functions which it implements
45871     to always fail with ENOSYS.  Some functions are actually named
45872     something starting with __ and the normal name is an alias.  */
45873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45874 choke me
45875 #else
45876 char (*f) () = $ac_func;
45877 #endif
45878 #ifdef __cplusplus
45879 }
45880 #endif
45881
45882 int
45883 main ()
45884 {
45885 return f != $ac_func;
45886   ;
45887   return 0;
45888 }
45889 _ACEOF
45890 rm -f conftest.$ac_objext conftest$ac_exeext
45891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45892   (eval $ac_link) 2>conftest.er1
45893   ac_status=$?
45894   grep -v '^ *+' conftest.er1 >conftest.err
45895   rm -f conftest.er1
45896   cat conftest.err >&5
45897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45898   (exit $ac_status); } &&
45899          { ac_try='test -z "$ac_c_werror_flag"
45900                          || test ! -s conftest.err'
45901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45902   (eval $ac_try) 2>&5
45903   ac_status=$?
45904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45905   (exit $ac_status); }; } &&
45906          { ac_try='test -s conftest$ac_exeext'
45907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45908   (eval $ac_try) 2>&5
45909   ac_status=$?
45910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45911   (exit $ac_status); }; }; then
45912   eval "$as_ac_var=yes"
45913 else
45914   echo "$as_me: failed program was:" >&5
45915 sed 's/^/| /' conftest.$ac_ext >&5
45916
45917 eval "$as_ac_var=no"
45918 fi
45919 rm -f conftest.err conftest.$ac_objext \
45920       conftest$ac_exeext conftest.$ac_ext
45921 fi
45922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45924 if test `eval echo '${'$as_ac_var'}'` = yes; then
45925   cat >>confdefs.h <<_ACEOF
45926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45927 _ACEOF
45928
45929 fi
45930 done
45931
45932     fi
45933   fi
45934
45935
45936
45937   echo "$as_me:$LINENO: checking for modfl declaration" >&5
45938 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
45939   if test x${glibcxx_cv_func_modfl_use+set} != xset; then
45940     if test "${glibcxx_cv_func_modfl_use+set}" = set; then
45941   echo $ECHO_N "(cached) $ECHO_C" >&6
45942 else
45943
45944
45945
45946       ac_ext=cc
45947 ac_cpp='$CXXCPP $CPPFLAGS'
45948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45951
45952       cat >conftest.$ac_ext <<_ACEOF
45953 /* confdefs.h.  */
45954 _ACEOF
45955 cat confdefs.h >>conftest.$ac_ext
45956 cat >>conftest.$ac_ext <<_ACEOF
45957 /* end confdefs.h.  */
45958 #include <math.h>
45959 int
45960 main ()
45961 {
45962  modfl(0, 0);
45963   ;
45964   return 0;
45965 }
45966 _ACEOF
45967 rm -f conftest.$ac_objext
45968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45969   (eval $ac_compile) 2>conftest.er1
45970   ac_status=$?
45971   grep -v '^ *+' conftest.er1 >conftest.err
45972   rm -f conftest.er1
45973   cat conftest.err >&5
45974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45975   (exit $ac_status); } &&
45976          { ac_try='test -z "$ac_cxx_werror_flag"
45977                          || test ! -s conftest.err'
45978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45979   (eval $ac_try) 2>&5
45980   ac_status=$?
45981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45982   (exit $ac_status); }; } &&
45983          { ac_try='test -s conftest.$ac_objext'
45984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45985   (eval $ac_try) 2>&5
45986   ac_status=$?
45987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45988   (exit $ac_status); }; }; then
45989   glibcxx_cv_func_modfl_use=yes
45990 else
45991   echo "$as_me: failed program was:" >&5
45992 sed 's/^/| /' conftest.$ac_ext >&5
45993
45994 glibcxx_cv_func_modfl_use=no
45995 fi
45996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45997       ac_ext=c
45998 ac_cpp='$CPP $CPPFLAGS'
45999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46002
46003
46004 fi
46005
46006   fi
46007   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
46008 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
46009
46010   if test x$glibcxx_cv_func_modfl_use = x"yes"; then
46011
46012 for ac_func in modfl
46013 do
46014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46015 echo "$as_me:$LINENO: checking for $ac_func" >&5
46016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46017 if eval "test \"\${$as_ac_var+set}\" = set"; then
46018   echo $ECHO_N "(cached) $ECHO_C" >&6
46019 else
46020   if test x$gcc_no_link = xyes; then
46021   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46022 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46023    { (exit 1); exit 1; }; }
46024 fi
46025 cat >conftest.$ac_ext <<_ACEOF
46026 /* confdefs.h.  */
46027 _ACEOF
46028 cat confdefs.h >>conftest.$ac_ext
46029 cat >>conftest.$ac_ext <<_ACEOF
46030 /* end confdefs.h.  */
46031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46033 #define $ac_func innocuous_$ac_func
46034
46035 /* System header to define __stub macros and hopefully few prototypes,
46036     which can conflict with char $ac_func (); below.
46037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46038     <limits.h> exists even on freestanding compilers.  */
46039
46040 #ifdef __STDC__
46041 # include <limits.h>
46042 #else
46043 # include <assert.h>
46044 #endif
46045
46046 #undef $ac_func
46047
46048 /* Override any gcc2 internal prototype to avoid an error.  */
46049 #ifdef __cplusplus
46050 extern "C"
46051 {
46052 #endif
46053 /* We use char because int might match the return type of a gcc2
46054    builtin and then its argument prototype would still apply.  */
46055 char $ac_func ();
46056 /* The GNU C library defines this for functions which it implements
46057     to always fail with ENOSYS.  Some functions are actually named
46058     something starting with __ and the normal name is an alias.  */
46059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46060 choke me
46061 #else
46062 char (*f) () = $ac_func;
46063 #endif
46064 #ifdef __cplusplus
46065 }
46066 #endif
46067
46068 int
46069 main ()
46070 {
46071 return f != $ac_func;
46072   ;
46073   return 0;
46074 }
46075 _ACEOF
46076 rm -f conftest.$ac_objext conftest$ac_exeext
46077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46078   (eval $ac_link) 2>conftest.er1
46079   ac_status=$?
46080   grep -v '^ *+' conftest.er1 >conftest.err
46081   rm -f conftest.er1
46082   cat conftest.err >&5
46083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46084   (exit $ac_status); } &&
46085          { ac_try='test -z "$ac_c_werror_flag"
46086                          || test ! -s conftest.err'
46087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46088   (eval $ac_try) 2>&5
46089   ac_status=$?
46090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46091   (exit $ac_status); }; } &&
46092          { ac_try='test -s conftest$ac_exeext'
46093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46094   (eval $ac_try) 2>&5
46095   ac_status=$?
46096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46097   (exit $ac_status); }; }; then
46098   eval "$as_ac_var=yes"
46099 else
46100   echo "$as_me: failed program was:" >&5
46101 sed 's/^/| /' conftest.$ac_ext >&5
46102
46103 eval "$as_ac_var=no"
46104 fi
46105 rm -f conftest.err conftest.$ac_objext \
46106       conftest$ac_exeext conftest.$ac_ext
46107 fi
46108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46109 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46110 if test `eval echo '${'$as_ac_var'}'` = yes; then
46111   cat >>confdefs.h <<_ACEOF
46112 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46113 _ACEOF
46114
46115 fi
46116 done
46117
46118   else
46119
46120   echo "$as_me:$LINENO: checking for _modfl declaration" >&5
46121 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
46122   if test x${glibcxx_cv_func__modfl_use+set} != xset; then
46123     if test "${glibcxx_cv_func__modfl_use+set}" = set; then
46124   echo $ECHO_N "(cached) $ECHO_C" >&6
46125 else
46126
46127
46128
46129       ac_ext=cc
46130 ac_cpp='$CXXCPP $CPPFLAGS'
46131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46134
46135       cat >conftest.$ac_ext <<_ACEOF
46136 /* confdefs.h.  */
46137 _ACEOF
46138 cat confdefs.h >>conftest.$ac_ext
46139 cat >>conftest.$ac_ext <<_ACEOF
46140 /* end confdefs.h.  */
46141 #include <math.h>
46142 int
46143 main ()
46144 {
46145  _modfl(0, 0);
46146   ;
46147   return 0;
46148 }
46149 _ACEOF
46150 rm -f conftest.$ac_objext
46151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46152   (eval $ac_compile) 2>conftest.er1
46153   ac_status=$?
46154   grep -v '^ *+' conftest.er1 >conftest.err
46155   rm -f conftest.er1
46156   cat conftest.err >&5
46157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46158   (exit $ac_status); } &&
46159          { ac_try='test -z "$ac_cxx_werror_flag"
46160                          || test ! -s conftest.err'
46161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46162   (eval $ac_try) 2>&5
46163   ac_status=$?
46164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46165   (exit $ac_status); }; } &&
46166          { ac_try='test -s conftest.$ac_objext'
46167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46168   (eval $ac_try) 2>&5
46169   ac_status=$?
46170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46171   (exit $ac_status); }; }; then
46172   glibcxx_cv_func__modfl_use=yes
46173 else
46174   echo "$as_me: failed program was:" >&5
46175 sed 's/^/| /' conftest.$ac_ext >&5
46176
46177 glibcxx_cv_func__modfl_use=no
46178 fi
46179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46180       ac_ext=c
46181 ac_cpp='$CPP $CPPFLAGS'
46182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46185
46186
46187 fi
46188
46189   fi
46190   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
46191 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
46192
46193     if test x$glibcxx_cv_func__modfl_use = x"yes"; then
46194
46195 for ac_func in _modfl
46196 do
46197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46198 echo "$as_me:$LINENO: checking for $ac_func" >&5
46199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46200 if eval "test \"\${$as_ac_var+set}\" = set"; then
46201   echo $ECHO_N "(cached) $ECHO_C" >&6
46202 else
46203   if test x$gcc_no_link = xyes; then
46204   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46205 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46206    { (exit 1); exit 1; }; }
46207 fi
46208 cat >conftest.$ac_ext <<_ACEOF
46209 /* confdefs.h.  */
46210 _ACEOF
46211 cat confdefs.h >>conftest.$ac_ext
46212 cat >>conftest.$ac_ext <<_ACEOF
46213 /* end confdefs.h.  */
46214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46216 #define $ac_func innocuous_$ac_func
46217
46218 /* System header to define __stub macros and hopefully few prototypes,
46219     which can conflict with char $ac_func (); below.
46220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46221     <limits.h> exists even on freestanding compilers.  */
46222
46223 #ifdef __STDC__
46224 # include <limits.h>
46225 #else
46226 # include <assert.h>
46227 #endif
46228
46229 #undef $ac_func
46230
46231 /* Override any gcc2 internal prototype to avoid an error.  */
46232 #ifdef __cplusplus
46233 extern "C"
46234 {
46235 #endif
46236 /* We use char because int might match the return type of a gcc2
46237    builtin and then its argument prototype would still apply.  */
46238 char $ac_func ();
46239 /* The GNU C library defines this for functions which it implements
46240     to always fail with ENOSYS.  Some functions are actually named
46241     something starting with __ and the normal name is an alias.  */
46242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46243 choke me
46244 #else
46245 char (*f) () = $ac_func;
46246 #endif
46247 #ifdef __cplusplus
46248 }
46249 #endif
46250
46251 int
46252 main ()
46253 {
46254 return f != $ac_func;
46255   ;
46256   return 0;
46257 }
46258 _ACEOF
46259 rm -f conftest.$ac_objext conftest$ac_exeext
46260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46261   (eval $ac_link) 2>conftest.er1
46262   ac_status=$?
46263   grep -v '^ *+' conftest.er1 >conftest.err
46264   rm -f conftest.er1
46265   cat conftest.err >&5
46266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46267   (exit $ac_status); } &&
46268          { ac_try='test -z "$ac_c_werror_flag"
46269                          || test ! -s conftest.err'
46270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46271   (eval $ac_try) 2>&5
46272   ac_status=$?
46273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46274   (exit $ac_status); }; } &&
46275          { ac_try='test -s conftest$ac_exeext'
46276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46277   (eval $ac_try) 2>&5
46278   ac_status=$?
46279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46280   (exit $ac_status); }; }; then
46281   eval "$as_ac_var=yes"
46282 else
46283   echo "$as_me: failed program was:" >&5
46284 sed 's/^/| /' conftest.$ac_ext >&5
46285
46286 eval "$as_ac_var=no"
46287 fi
46288 rm -f conftest.err conftest.$ac_objext \
46289       conftest$ac_exeext conftest.$ac_ext
46290 fi
46291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46293 if test `eval echo '${'$as_ac_var'}'` = yes; then
46294   cat >>confdefs.h <<_ACEOF
46295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46296 _ACEOF
46297
46298 fi
46299 done
46300
46301     fi
46302   fi
46303
46304
46305
46306   echo "$as_me:$LINENO: checking for powl declaration" >&5
46307 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
46308   if test x${glibcxx_cv_func_powl_use+set} != xset; then
46309     if test "${glibcxx_cv_func_powl_use+set}" = set; then
46310   echo $ECHO_N "(cached) $ECHO_C" >&6
46311 else
46312
46313
46314
46315       ac_ext=cc
46316 ac_cpp='$CXXCPP $CPPFLAGS'
46317 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46318 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46319 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46320
46321       cat >conftest.$ac_ext <<_ACEOF
46322 /* confdefs.h.  */
46323 _ACEOF
46324 cat confdefs.h >>conftest.$ac_ext
46325 cat >>conftest.$ac_ext <<_ACEOF
46326 /* end confdefs.h.  */
46327 #include <math.h>
46328 int
46329 main ()
46330 {
46331  powl(0, 0);
46332   ;
46333   return 0;
46334 }
46335 _ACEOF
46336 rm -f conftest.$ac_objext
46337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46338   (eval $ac_compile) 2>conftest.er1
46339   ac_status=$?
46340   grep -v '^ *+' conftest.er1 >conftest.err
46341   rm -f conftest.er1
46342   cat conftest.err >&5
46343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46344   (exit $ac_status); } &&
46345          { ac_try='test -z "$ac_cxx_werror_flag"
46346                          || test ! -s conftest.err'
46347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46348   (eval $ac_try) 2>&5
46349   ac_status=$?
46350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46351   (exit $ac_status); }; } &&
46352          { ac_try='test -s conftest.$ac_objext'
46353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46354   (eval $ac_try) 2>&5
46355   ac_status=$?
46356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46357   (exit $ac_status); }; }; then
46358   glibcxx_cv_func_powl_use=yes
46359 else
46360   echo "$as_me: failed program was:" >&5
46361 sed 's/^/| /' conftest.$ac_ext >&5
46362
46363 glibcxx_cv_func_powl_use=no
46364 fi
46365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46366       ac_ext=c
46367 ac_cpp='$CPP $CPPFLAGS'
46368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46371
46372
46373 fi
46374
46375   fi
46376   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
46377 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
46378
46379   if test x$glibcxx_cv_func_powl_use = x"yes"; then
46380
46381 for ac_func in powl
46382 do
46383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46384 echo "$as_me:$LINENO: checking for $ac_func" >&5
46385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46386 if eval "test \"\${$as_ac_var+set}\" = set"; then
46387   echo $ECHO_N "(cached) $ECHO_C" >&6
46388 else
46389   if test x$gcc_no_link = xyes; then
46390   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46391 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46392    { (exit 1); exit 1; }; }
46393 fi
46394 cat >conftest.$ac_ext <<_ACEOF
46395 /* confdefs.h.  */
46396 _ACEOF
46397 cat confdefs.h >>conftest.$ac_ext
46398 cat >>conftest.$ac_ext <<_ACEOF
46399 /* end confdefs.h.  */
46400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46402 #define $ac_func innocuous_$ac_func
46403
46404 /* System header to define __stub macros and hopefully few prototypes,
46405     which can conflict with char $ac_func (); below.
46406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46407     <limits.h> exists even on freestanding compilers.  */
46408
46409 #ifdef __STDC__
46410 # include <limits.h>
46411 #else
46412 # include <assert.h>
46413 #endif
46414
46415 #undef $ac_func
46416
46417 /* Override any gcc2 internal prototype to avoid an error.  */
46418 #ifdef __cplusplus
46419 extern "C"
46420 {
46421 #endif
46422 /* We use char because int might match the return type of a gcc2
46423    builtin and then its argument prototype would still apply.  */
46424 char $ac_func ();
46425 /* The GNU C library defines this for functions which it implements
46426     to always fail with ENOSYS.  Some functions are actually named
46427     something starting with __ and the normal name is an alias.  */
46428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46429 choke me
46430 #else
46431 char (*f) () = $ac_func;
46432 #endif
46433 #ifdef __cplusplus
46434 }
46435 #endif
46436
46437 int
46438 main ()
46439 {
46440 return f != $ac_func;
46441   ;
46442   return 0;
46443 }
46444 _ACEOF
46445 rm -f conftest.$ac_objext conftest$ac_exeext
46446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46447   (eval $ac_link) 2>conftest.er1
46448   ac_status=$?
46449   grep -v '^ *+' conftest.er1 >conftest.err
46450   rm -f conftest.er1
46451   cat conftest.err >&5
46452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46453   (exit $ac_status); } &&
46454          { ac_try='test -z "$ac_c_werror_flag"
46455                          || test ! -s conftest.err'
46456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46457   (eval $ac_try) 2>&5
46458   ac_status=$?
46459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46460   (exit $ac_status); }; } &&
46461          { ac_try='test -s conftest$ac_exeext'
46462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46463   (eval $ac_try) 2>&5
46464   ac_status=$?
46465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46466   (exit $ac_status); }; }; then
46467   eval "$as_ac_var=yes"
46468 else
46469   echo "$as_me: failed program was:" >&5
46470 sed 's/^/| /' conftest.$ac_ext >&5
46471
46472 eval "$as_ac_var=no"
46473 fi
46474 rm -f conftest.err conftest.$ac_objext \
46475       conftest$ac_exeext conftest.$ac_ext
46476 fi
46477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46479 if test `eval echo '${'$as_ac_var'}'` = yes; then
46480   cat >>confdefs.h <<_ACEOF
46481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46482 _ACEOF
46483
46484 fi
46485 done
46486
46487   else
46488
46489   echo "$as_me:$LINENO: checking for _powl declaration" >&5
46490 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
46491   if test x${glibcxx_cv_func__powl_use+set} != xset; then
46492     if test "${glibcxx_cv_func__powl_use+set}" = set; then
46493   echo $ECHO_N "(cached) $ECHO_C" >&6
46494 else
46495
46496
46497
46498       ac_ext=cc
46499 ac_cpp='$CXXCPP $CPPFLAGS'
46500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46503
46504       cat >conftest.$ac_ext <<_ACEOF
46505 /* confdefs.h.  */
46506 _ACEOF
46507 cat confdefs.h >>conftest.$ac_ext
46508 cat >>conftest.$ac_ext <<_ACEOF
46509 /* end confdefs.h.  */
46510 #include <math.h>
46511 int
46512 main ()
46513 {
46514  _powl(0, 0);
46515   ;
46516   return 0;
46517 }
46518 _ACEOF
46519 rm -f conftest.$ac_objext
46520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46521   (eval $ac_compile) 2>conftest.er1
46522   ac_status=$?
46523   grep -v '^ *+' conftest.er1 >conftest.err
46524   rm -f conftest.er1
46525   cat conftest.err >&5
46526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46527   (exit $ac_status); } &&
46528          { ac_try='test -z "$ac_cxx_werror_flag"
46529                          || test ! -s conftest.err'
46530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46531   (eval $ac_try) 2>&5
46532   ac_status=$?
46533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46534   (exit $ac_status); }; } &&
46535          { ac_try='test -s conftest.$ac_objext'
46536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46537   (eval $ac_try) 2>&5
46538   ac_status=$?
46539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46540   (exit $ac_status); }; }; then
46541   glibcxx_cv_func__powl_use=yes
46542 else
46543   echo "$as_me: failed program was:" >&5
46544 sed 's/^/| /' conftest.$ac_ext >&5
46545
46546 glibcxx_cv_func__powl_use=no
46547 fi
46548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46549       ac_ext=c
46550 ac_cpp='$CPP $CPPFLAGS'
46551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46554
46555
46556 fi
46557
46558   fi
46559   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
46560 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
46561
46562     if test x$glibcxx_cv_func__powl_use = x"yes"; then
46563
46564 for ac_func in _powl
46565 do
46566 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46567 echo "$as_me:$LINENO: checking for $ac_func" >&5
46568 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46569 if eval "test \"\${$as_ac_var+set}\" = set"; then
46570   echo $ECHO_N "(cached) $ECHO_C" >&6
46571 else
46572   if test x$gcc_no_link = xyes; then
46573   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46574 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46575    { (exit 1); exit 1; }; }
46576 fi
46577 cat >conftest.$ac_ext <<_ACEOF
46578 /* confdefs.h.  */
46579 _ACEOF
46580 cat confdefs.h >>conftest.$ac_ext
46581 cat >>conftest.$ac_ext <<_ACEOF
46582 /* end confdefs.h.  */
46583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46585 #define $ac_func innocuous_$ac_func
46586
46587 /* System header to define __stub macros and hopefully few prototypes,
46588     which can conflict with char $ac_func (); below.
46589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46590     <limits.h> exists even on freestanding compilers.  */
46591
46592 #ifdef __STDC__
46593 # include <limits.h>
46594 #else
46595 # include <assert.h>
46596 #endif
46597
46598 #undef $ac_func
46599
46600 /* Override any gcc2 internal prototype to avoid an error.  */
46601 #ifdef __cplusplus
46602 extern "C"
46603 {
46604 #endif
46605 /* We use char because int might match the return type of a gcc2
46606    builtin and then its argument prototype would still apply.  */
46607 char $ac_func ();
46608 /* The GNU C library defines this for functions which it implements
46609     to always fail with ENOSYS.  Some functions are actually named
46610     something starting with __ and the normal name is an alias.  */
46611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46612 choke me
46613 #else
46614 char (*f) () = $ac_func;
46615 #endif
46616 #ifdef __cplusplus
46617 }
46618 #endif
46619
46620 int
46621 main ()
46622 {
46623 return f != $ac_func;
46624   ;
46625   return 0;
46626 }
46627 _ACEOF
46628 rm -f conftest.$ac_objext conftest$ac_exeext
46629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46630   (eval $ac_link) 2>conftest.er1
46631   ac_status=$?
46632   grep -v '^ *+' conftest.er1 >conftest.err
46633   rm -f conftest.er1
46634   cat conftest.err >&5
46635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46636   (exit $ac_status); } &&
46637          { ac_try='test -z "$ac_c_werror_flag"
46638                          || test ! -s conftest.err'
46639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46640   (eval $ac_try) 2>&5
46641   ac_status=$?
46642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46643   (exit $ac_status); }; } &&
46644          { ac_try='test -s conftest$ac_exeext'
46645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46646   (eval $ac_try) 2>&5
46647   ac_status=$?
46648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46649   (exit $ac_status); }; }; then
46650   eval "$as_ac_var=yes"
46651 else
46652   echo "$as_me: failed program was:" >&5
46653 sed 's/^/| /' conftest.$ac_ext >&5
46654
46655 eval "$as_ac_var=no"
46656 fi
46657 rm -f conftest.err conftest.$ac_objext \
46658       conftest$ac_exeext conftest.$ac_ext
46659 fi
46660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46662 if test `eval echo '${'$as_ac_var'}'` = yes; then
46663   cat >>confdefs.h <<_ACEOF
46664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46665 _ACEOF
46666
46667 fi
46668 done
46669
46670     fi
46671   fi
46672
46673
46674
46675   echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
46676 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
46677   if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
46678     if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
46679   echo $ECHO_N "(cached) $ECHO_C" >&6
46680 else
46681
46682
46683
46684       ac_ext=cc
46685 ac_cpp='$CXXCPP $CPPFLAGS'
46686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46689
46690       cat >conftest.$ac_ext <<_ACEOF
46691 /* confdefs.h.  */
46692 _ACEOF
46693 cat confdefs.h >>conftest.$ac_ext
46694 cat >>conftest.$ac_ext <<_ACEOF
46695 /* end confdefs.h.  */
46696 #include <math.h>
46697                       #ifdef HAVE_IEEEFP_H
46698                       #include <ieeefp.h>
46699                       #endif
46700
46701 int
46702 main ()
46703 {
46704  sqrtl(0);
46705   ;
46706   return 0;
46707 }
46708 _ACEOF
46709 rm -f conftest.$ac_objext
46710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46711   (eval $ac_compile) 2>conftest.er1
46712   ac_status=$?
46713   grep -v '^ *+' conftest.er1 >conftest.err
46714   rm -f conftest.er1
46715   cat conftest.err >&5
46716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46717   (exit $ac_status); } &&
46718          { ac_try='test -z "$ac_cxx_werror_flag"
46719                          || test ! -s conftest.err'
46720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46721   (eval $ac_try) 2>&5
46722   ac_status=$?
46723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46724   (exit $ac_status); }; } &&
46725          { ac_try='test -s conftest.$ac_objext'
46726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46727   (eval $ac_try) 2>&5
46728   ac_status=$?
46729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46730   (exit $ac_status); }; }; then
46731   glibcxx_cv_func_sqrtl_use=yes
46732 else
46733   echo "$as_me: failed program was:" >&5
46734 sed 's/^/| /' conftest.$ac_ext >&5
46735
46736 glibcxx_cv_func_sqrtl_use=no
46737 fi
46738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46739       ac_ext=c
46740 ac_cpp='$CPP $CPPFLAGS'
46741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46744
46745
46746 fi
46747
46748   fi
46749   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
46750 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
46751
46752   if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
46753
46754 for ac_func in sqrtl
46755 do
46756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46757 echo "$as_me:$LINENO: checking for $ac_func" >&5
46758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46759 if eval "test \"\${$as_ac_var+set}\" = set"; then
46760   echo $ECHO_N "(cached) $ECHO_C" >&6
46761 else
46762   if test x$gcc_no_link = xyes; then
46763   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46764 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46765    { (exit 1); exit 1; }; }
46766 fi
46767 cat >conftest.$ac_ext <<_ACEOF
46768 /* confdefs.h.  */
46769 _ACEOF
46770 cat confdefs.h >>conftest.$ac_ext
46771 cat >>conftest.$ac_ext <<_ACEOF
46772 /* end confdefs.h.  */
46773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46774    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46775 #define $ac_func innocuous_$ac_func
46776
46777 /* System header to define __stub macros and hopefully few prototypes,
46778     which can conflict with char $ac_func (); below.
46779     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46780     <limits.h> exists even on freestanding compilers.  */
46781
46782 #ifdef __STDC__
46783 # include <limits.h>
46784 #else
46785 # include <assert.h>
46786 #endif
46787
46788 #undef $ac_func
46789
46790 /* Override any gcc2 internal prototype to avoid an error.  */
46791 #ifdef __cplusplus
46792 extern "C"
46793 {
46794 #endif
46795 /* We use char because int might match the return type of a gcc2
46796    builtin and then its argument prototype would still apply.  */
46797 char $ac_func ();
46798 /* The GNU C library defines this for functions which it implements
46799     to always fail with ENOSYS.  Some functions are actually named
46800     something starting with __ and the normal name is an alias.  */
46801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46802 choke me
46803 #else
46804 char (*f) () = $ac_func;
46805 #endif
46806 #ifdef __cplusplus
46807 }
46808 #endif
46809
46810 int
46811 main ()
46812 {
46813 return f != $ac_func;
46814   ;
46815   return 0;
46816 }
46817 _ACEOF
46818 rm -f conftest.$ac_objext conftest$ac_exeext
46819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46820   (eval $ac_link) 2>conftest.er1
46821   ac_status=$?
46822   grep -v '^ *+' conftest.er1 >conftest.err
46823   rm -f conftest.er1
46824   cat conftest.err >&5
46825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46826   (exit $ac_status); } &&
46827          { ac_try='test -z "$ac_c_werror_flag"
46828                          || test ! -s conftest.err'
46829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46830   (eval $ac_try) 2>&5
46831   ac_status=$?
46832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46833   (exit $ac_status); }; } &&
46834          { ac_try='test -s conftest$ac_exeext'
46835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46836   (eval $ac_try) 2>&5
46837   ac_status=$?
46838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46839   (exit $ac_status); }; }; then
46840   eval "$as_ac_var=yes"
46841 else
46842   echo "$as_me: failed program was:" >&5
46843 sed 's/^/| /' conftest.$ac_ext >&5
46844
46845 eval "$as_ac_var=no"
46846 fi
46847 rm -f conftest.err conftest.$ac_objext \
46848       conftest$ac_exeext conftest.$ac_ext
46849 fi
46850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46851 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46852 if test `eval echo '${'$as_ac_var'}'` = yes; then
46853   cat >>confdefs.h <<_ACEOF
46854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46855 _ACEOF
46856
46857 fi
46858 done
46859
46860   else
46861
46862   echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
46863 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
46864   if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
46865     if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
46866   echo $ECHO_N "(cached) $ECHO_C" >&6
46867 else
46868
46869
46870
46871       ac_ext=cc
46872 ac_cpp='$CXXCPP $CPPFLAGS'
46873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46876
46877       cat >conftest.$ac_ext <<_ACEOF
46878 /* confdefs.h.  */
46879 _ACEOF
46880 cat confdefs.h >>conftest.$ac_ext
46881 cat >>conftest.$ac_ext <<_ACEOF
46882 /* end confdefs.h.  */
46883 #include <math.h>
46884                       #ifdef HAVE_IEEEFP_H
46885                       #include <ieeefp.h>
46886                       #endif
46887
46888 int
46889 main ()
46890 {
46891  _sqrtl(0);
46892   ;
46893   return 0;
46894 }
46895 _ACEOF
46896 rm -f conftest.$ac_objext
46897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46898   (eval $ac_compile) 2>conftest.er1
46899   ac_status=$?
46900   grep -v '^ *+' conftest.er1 >conftest.err
46901   rm -f conftest.er1
46902   cat conftest.err >&5
46903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46904   (exit $ac_status); } &&
46905          { ac_try='test -z "$ac_cxx_werror_flag"
46906                          || test ! -s conftest.err'
46907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46908   (eval $ac_try) 2>&5
46909   ac_status=$?
46910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46911   (exit $ac_status); }; } &&
46912          { ac_try='test -s conftest.$ac_objext'
46913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46914   (eval $ac_try) 2>&5
46915   ac_status=$?
46916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46917   (exit $ac_status); }; }; then
46918   glibcxx_cv_func__sqrtl_use=yes
46919 else
46920   echo "$as_me: failed program was:" >&5
46921 sed 's/^/| /' conftest.$ac_ext >&5
46922
46923 glibcxx_cv_func__sqrtl_use=no
46924 fi
46925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46926       ac_ext=c
46927 ac_cpp='$CPP $CPPFLAGS'
46928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46931
46932
46933 fi
46934
46935   fi
46936   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
46937 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
46938
46939     if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
46940
46941 for ac_func in _sqrtl
46942 do
46943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46944 echo "$as_me:$LINENO: checking for $ac_func" >&5
46945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46946 if eval "test \"\${$as_ac_var+set}\" = set"; then
46947   echo $ECHO_N "(cached) $ECHO_C" >&6
46948 else
46949   if test x$gcc_no_link = xyes; then
46950   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
46951 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
46952    { (exit 1); exit 1; }; }
46953 fi
46954 cat >conftest.$ac_ext <<_ACEOF
46955 /* confdefs.h.  */
46956 _ACEOF
46957 cat confdefs.h >>conftest.$ac_ext
46958 cat >>conftest.$ac_ext <<_ACEOF
46959 /* end confdefs.h.  */
46960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46962 #define $ac_func innocuous_$ac_func
46963
46964 /* System header to define __stub macros and hopefully few prototypes,
46965     which can conflict with char $ac_func (); below.
46966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46967     <limits.h> exists even on freestanding compilers.  */
46968
46969 #ifdef __STDC__
46970 # include <limits.h>
46971 #else
46972 # include <assert.h>
46973 #endif
46974
46975 #undef $ac_func
46976
46977 /* Override any gcc2 internal prototype to avoid an error.  */
46978 #ifdef __cplusplus
46979 extern "C"
46980 {
46981 #endif
46982 /* We use char because int might match the return type of a gcc2
46983    builtin and then its argument prototype would still apply.  */
46984 char $ac_func ();
46985 /* The GNU C library defines this for functions which it implements
46986     to always fail with ENOSYS.  Some functions are actually named
46987     something starting with __ and the normal name is an alias.  */
46988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46989 choke me
46990 #else
46991 char (*f) () = $ac_func;
46992 #endif
46993 #ifdef __cplusplus
46994 }
46995 #endif
46996
46997 int
46998 main ()
46999 {
47000 return f != $ac_func;
47001   ;
47002   return 0;
47003 }
47004 _ACEOF
47005 rm -f conftest.$ac_objext conftest$ac_exeext
47006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47007   (eval $ac_link) 2>conftest.er1
47008   ac_status=$?
47009   grep -v '^ *+' conftest.er1 >conftest.err
47010   rm -f conftest.er1
47011   cat conftest.err >&5
47012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47013   (exit $ac_status); } &&
47014          { ac_try='test -z "$ac_c_werror_flag"
47015                          || test ! -s conftest.err'
47016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47017   (eval $ac_try) 2>&5
47018   ac_status=$?
47019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47020   (exit $ac_status); }; } &&
47021          { ac_try='test -s conftest$ac_exeext'
47022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47023   (eval $ac_try) 2>&5
47024   ac_status=$?
47025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47026   (exit $ac_status); }; }; then
47027   eval "$as_ac_var=yes"
47028 else
47029   echo "$as_me: failed program was:" >&5
47030 sed 's/^/| /' conftest.$ac_ext >&5
47031
47032 eval "$as_ac_var=no"
47033 fi
47034 rm -f conftest.err conftest.$ac_objext \
47035       conftest$ac_exeext conftest.$ac_ext
47036 fi
47037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47039 if test `eval echo '${'$as_ac_var'}'` = yes; then
47040   cat >>confdefs.h <<_ACEOF
47041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47042 _ACEOF
47043
47044 fi
47045 done
47046
47047     fi
47048   fi
47049
47050
47051
47052   echo "$as_me:$LINENO: checking for sincosl declaration" >&5
47053 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
47054   if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
47055     if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
47056   echo $ECHO_N "(cached) $ECHO_C" >&6
47057 else
47058
47059
47060
47061       ac_ext=cc
47062 ac_cpp='$CXXCPP $CPPFLAGS'
47063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47066
47067       cat >conftest.$ac_ext <<_ACEOF
47068 /* confdefs.h.  */
47069 _ACEOF
47070 cat confdefs.h >>conftest.$ac_ext
47071 cat >>conftest.$ac_ext <<_ACEOF
47072 /* end confdefs.h.  */
47073 #include <math.h>
47074 int
47075 main ()
47076 {
47077  sincosl(0, 0, 0);
47078   ;
47079   return 0;
47080 }
47081 _ACEOF
47082 rm -f conftest.$ac_objext
47083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47084   (eval $ac_compile) 2>conftest.er1
47085   ac_status=$?
47086   grep -v '^ *+' conftest.er1 >conftest.err
47087   rm -f conftest.er1
47088   cat conftest.err >&5
47089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47090   (exit $ac_status); } &&
47091          { ac_try='test -z "$ac_cxx_werror_flag"
47092                          || test ! -s conftest.err'
47093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47094   (eval $ac_try) 2>&5
47095   ac_status=$?
47096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47097   (exit $ac_status); }; } &&
47098          { ac_try='test -s conftest.$ac_objext'
47099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47100   (eval $ac_try) 2>&5
47101   ac_status=$?
47102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47103   (exit $ac_status); }; }; then
47104   glibcxx_cv_func_sincosl_use=yes
47105 else
47106   echo "$as_me: failed program was:" >&5
47107 sed 's/^/| /' conftest.$ac_ext >&5
47108
47109 glibcxx_cv_func_sincosl_use=no
47110 fi
47111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47112       ac_ext=c
47113 ac_cpp='$CPP $CPPFLAGS'
47114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47117
47118
47119 fi
47120
47121   fi
47122   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
47123 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
47124
47125   if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
47126
47127 for ac_func in sincosl
47128 do
47129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47130 echo "$as_me:$LINENO: checking for $ac_func" >&5
47131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47132 if eval "test \"\${$as_ac_var+set}\" = set"; then
47133   echo $ECHO_N "(cached) $ECHO_C" >&6
47134 else
47135   if test x$gcc_no_link = xyes; then
47136   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47137 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47138    { (exit 1); exit 1; }; }
47139 fi
47140 cat >conftest.$ac_ext <<_ACEOF
47141 /* confdefs.h.  */
47142 _ACEOF
47143 cat confdefs.h >>conftest.$ac_ext
47144 cat >>conftest.$ac_ext <<_ACEOF
47145 /* end confdefs.h.  */
47146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47148 #define $ac_func innocuous_$ac_func
47149
47150 /* System header to define __stub macros and hopefully few prototypes,
47151     which can conflict with char $ac_func (); below.
47152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47153     <limits.h> exists even on freestanding compilers.  */
47154
47155 #ifdef __STDC__
47156 # include <limits.h>
47157 #else
47158 # include <assert.h>
47159 #endif
47160
47161 #undef $ac_func
47162
47163 /* Override any gcc2 internal prototype to avoid an error.  */
47164 #ifdef __cplusplus
47165 extern "C"
47166 {
47167 #endif
47168 /* We use char because int might match the return type of a gcc2
47169    builtin and then its argument prototype would still apply.  */
47170 char $ac_func ();
47171 /* The GNU C library defines this for functions which it implements
47172     to always fail with ENOSYS.  Some functions are actually named
47173     something starting with __ and the normal name is an alias.  */
47174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47175 choke me
47176 #else
47177 char (*f) () = $ac_func;
47178 #endif
47179 #ifdef __cplusplus
47180 }
47181 #endif
47182
47183 int
47184 main ()
47185 {
47186 return f != $ac_func;
47187   ;
47188   return 0;
47189 }
47190 _ACEOF
47191 rm -f conftest.$ac_objext conftest$ac_exeext
47192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47193   (eval $ac_link) 2>conftest.er1
47194   ac_status=$?
47195   grep -v '^ *+' conftest.er1 >conftest.err
47196   rm -f conftest.er1
47197   cat conftest.err >&5
47198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47199   (exit $ac_status); } &&
47200          { ac_try='test -z "$ac_c_werror_flag"
47201                          || test ! -s conftest.err'
47202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47203   (eval $ac_try) 2>&5
47204   ac_status=$?
47205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47206   (exit $ac_status); }; } &&
47207          { ac_try='test -s conftest$ac_exeext'
47208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47209   (eval $ac_try) 2>&5
47210   ac_status=$?
47211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47212   (exit $ac_status); }; }; then
47213   eval "$as_ac_var=yes"
47214 else
47215   echo "$as_me: failed program was:" >&5
47216 sed 's/^/| /' conftest.$ac_ext >&5
47217
47218 eval "$as_ac_var=no"
47219 fi
47220 rm -f conftest.err conftest.$ac_objext \
47221       conftest$ac_exeext conftest.$ac_ext
47222 fi
47223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47225 if test `eval echo '${'$as_ac_var'}'` = yes; then
47226   cat >>confdefs.h <<_ACEOF
47227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47228 _ACEOF
47229
47230 fi
47231 done
47232
47233   else
47234
47235   echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
47236 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
47237   if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
47238     if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
47239   echo $ECHO_N "(cached) $ECHO_C" >&6
47240 else
47241
47242
47243
47244       ac_ext=cc
47245 ac_cpp='$CXXCPP $CPPFLAGS'
47246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47249
47250       cat >conftest.$ac_ext <<_ACEOF
47251 /* confdefs.h.  */
47252 _ACEOF
47253 cat confdefs.h >>conftest.$ac_ext
47254 cat >>conftest.$ac_ext <<_ACEOF
47255 /* end confdefs.h.  */
47256 #include <math.h>
47257 int
47258 main ()
47259 {
47260  _sincosl(0, 0, 0);
47261   ;
47262   return 0;
47263 }
47264 _ACEOF
47265 rm -f conftest.$ac_objext
47266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47267   (eval $ac_compile) 2>conftest.er1
47268   ac_status=$?
47269   grep -v '^ *+' conftest.er1 >conftest.err
47270   rm -f conftest.er1
47271   cat conftest.err >&5
47272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47273   (exit $ac_status); } &&
47274          { ac_try='test -z "$ac_cxx_werror_flag"
47275                          || test ! -s conftest.err'
47276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47277   (eval $ac_try) 2>&5
47278   ac_status=$?
47279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47280   (exit $ac_status); }; } &&
47281          { ac_try='test -s conftest.$ac_objext'
47282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47283   (eval $ac_try) 2>&5
47284   ac_status=$?
47285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47286   (exit $ac_status); }; }; then
47287   glibcxx_cv_func__sincosl_use=yes
47288 else
47289   echo "$as_me: failed program was:" >&5
47290 sed 's/^/| /' conftest.$ac_ext >&5
47291
47292 glibcxx_cv_func__sincosl_use=no
47293 fi
47294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47295       ac_ext=c
47296 ac_cpp='$CPP $CPPFLAGS'
47297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47300
47301
47302 fi
47303
47304   fi
47305   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
47306 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
47307
47308     if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
47309
47310 for ac_func in _sincosl
47311 do
47312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47313 echo "$as_me:$LINENO: checking for $ac_func" >&5
47314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47315 if eval "test \"\${$as_ac_var+set}\" = set"; then
47316   echo $ECHO_N "(cached) $ECHO_C" >&6
47317 else
47318   if test x$gcc_no_link = xyes; then
47319   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47320 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47321    { (exit 1); exit 1; }; }
47322 fi
47323 cat >conftest.$ac_ext <<_ACEOF
47324 /* confdefs.h.  */
47325 _ACEOF
47326 cat confdefs.h >>conftest.$ac_ext
47327 cat >>conftest.$ac_ext <<_ACEOF
47328 /* end confdefs.h.  */
47329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47331 #define $ac_func innocuous_$ac_func
47332
47333 /* System header to define __stub macros and hopefully few prototypes,
47334     which can conflict with char $ac_func (); below.
47335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47336     <limits.h> exists even on freestanding compilers.  */
47337
47338 #ifdef __STDC__
47339 # include <limits.h>
47340 #else
47341 # include <assert.h>
47342 #endif
47343
47344 #undef $ac_func
47345
47346 /* Override any gcc2 internal prototype to avoid an error.  */
47347 #ifdef __cplusplus
47348 extern "C"
47349 {
47350 #endif
47351 /* We use char because int might match the return type of a gcc2
47352    builtin and then its argument prototype would still apply.  */
47353 char $ac_func ();
47354 /* The GNU C library defines this for functions which it implements
47355     to always fail with ENOSYS.  Some functions are actually named
47356     something starting with __ and the normal name is an alias.  */
47357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47358 choke me
47359 #else
47360 char (*f) () = $ac_func;
47361 #endif
47362 #ifdef __cplusplus
47363 }
47364 #endif
47365
47366 int
47367 main ()
47368 {
47369 return f != $ac_func;
47370   ;
47371   return 0;
47372 }
47373 _ACEOF
47374 rm -f conftest.$ac_objext conftest$ac_exeext
47375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47376   (eval $ac_link) 2>conftest.er1
47377   ac_status=$?
47378   grep -v '^ *+' conftest.er1 >conftest.err
47379   rm -f conftest.er1
47380   cat conftest.err >&5
47381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47382   (exit $ac_status); } &&
47383          { ac_try='test -z "$ac_c_werror_flag"
47384                          || test ! -s conftest.err'
47385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47386   (eval $ac_try) 2>&5
47387   ac_status=$?
47388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47389   (exit $ac_status); }; } &&
47390          { ac_try='test -s conftest$ac_exeext'
47391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47392   (eval $ac_try) 2>&5
47393   ac_status=$?
47394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47395   (exit $ac_status); }; }; then
47396   eval "$as_ac_var=yes"
47397 else
47398   echo "$as_me: failed program was:" >&5
47399 sed 's/^/| /' conftest.$ac_ext >&5
47400
47401 eval "$as_ac_var=no"
47402 fi
47403 rm -f conftest.err conftest.$ac_objext \
47404       conftest$ac_exeext conftest.$ac_ext
47405 fi
47406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47407 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47408 if test `eval echo '${'$as_ac_var'}'` = yes; then
47409   cat >>confdefs.h <<_ACEOF
47410 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47411 _ACEOF
47412
47413 fi
47414 done
47415
47416     fi
47417   fi
47418
47419
47420
47421   echo "$as_me:$LINENO: checking for finitel declaration" >&5
47422 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
47423   if test x${glibcxx_cv_func_finitel_use+set} != xset; then
47424     if test "${glibcxx_cv_func_finitel_use+set}" = set; then
47425   echo $ECHO_N "(cached) $ECHO_C" >&6
47426 else
47427
47428
47429
47430       ac_ext=cc
47431 ac_cpp='$CXXCPP $CPPFLAGS'
47432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47435
47436       cat >conftest.$ac_ext <<_ACEOF
47437 /* confdefs.h.  */
47438 _ACEOF
47439 cat confdefs.h >>conftest.$ac_ext
47440 cat >>conftest.$ac_ext <<_ACEOF
47441 /* end confdefs.h.  */
47442 #include <math.h>
47443                       #ifdef HAVE_IEEEFP_H
47444                       #include <ieeefp.h>
47445                       #endif
47446
47447 int
47448 main ()
47449 {
47450  finitel(0);
47451   ;
47452   return 0;
47453 }
47454 _ACEOF
47455 rm -f conftest.$ac_objext
47456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47457   (eval $ac_compile) 2>conftest.er1
47458   ac_status=$?
47459   grep -v '^ *+' conftest.er1 >conftest.err
47460   rm -f conftest.er1
47461   cat conftest.err >&5
47462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47463   (exit $ac_status); } &&
47464          { ac_try='test -z "$ac_cxx_werror_flag"
47465                          || test ! -s conftest.err'
47466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47467   (eval $ac_try) 2>&5
47468   ac_status=$?
47469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47470   (exit $ac_status); }; } &&
47471          { ac_try='test -s conftest.$ac_objext'
47472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47473   (eval $ac_try) 2>&5
47474   ac_status=$?
47475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47476   (exit $ac_status); }; }; then
47477   glibcxx_cv_func_finitel_use=yes
47478 else
47479   echo "$as_me: failed program was:" >&5
47480 sed 's/^/| /' conftest.$ac_ext >&5
47481
47482 glibcxx_cv_func_finitel_use=no
47483 fi
47484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47485       ac_ext=c
47486 ac_cpp='$CPP $CPPFLAGS'
47487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47490
47491
47492 fi
47493
47494   fi
47495   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
47496 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
47497
47498   if test x$glibcxx_cv_func_finitel_use = x"yes"; then
47499
47500 for ac_func in finitel
47501 do
47502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47503 echo "$as_me:$LINENO: checking for $ac_func" >&5
47504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47505 if eval "test \"\${$as_ac_var+set}\" = set"; then
47506   echo $ECHO_N "(cached) $ECHO_C" >&6
47507 else
47508   if test x$gcc_no_link = xyes; then
47509   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47510 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47511    { (exit 1); exit 1; }; }
47512 fi
47513 cat >conftest.$ac_ext <<_ACEOF
47514 /* confdefs.h.  */
47515 _ACEOF
47516 cat confdefs.h >>conftest.$ac_ext
47517 cat >>conftest.$ac_ext <<_ACEOF
47518 /* end confdefs.h.  */
47519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47521 #define $ac_func innocuous_$ac_func
47522
47523 /* System header to define __stub macros and hopefully few prototypes,
47524     which can conflict with char $ac_func (); below.
47525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47526     <limits.h> exists even on freestanding compilers.  */
47527
47528 #ifdef __STDC__
47529 # include <limits.h>
47530 #else
47531 # include <assert.h>
47532 #endif
47533
47534 #undef $ac_func
47535
47536 /* Override any gcc2 internal prototype to avoid an error.  */
47537 #ifdef __cplusplus
47538 extern "C"
47539 {
47540 #endif
47541 /* We use char because int might match the return type of a gcc2
47542    builtin and then its argument prototype would still apply.  */
47543 char $ac_func ();
47544 /* The GNU C library defines this for functions which it implements
47545     to always fail with ENOSYS.  Some functions are actually named
47546     something starting with __ and the normal name is an alias.  */
47547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47548 choke me
47549 #else
47550 char (*f) () = $ac_func;
47551 #endif
47552 #ifdef __cplusplus
47553 }
47554 #endif
47555
47556 int
47557 main ()
47558 {
47559 return f != $ac_func;
47560   ;
47561   return 0;
47562 }
47563 _ACEOF
47564 rm -f conftest.$ac_objext conftest$ac_exeext
47565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47566   (eval $ac_link) 2>conftest.er1
47567   ac_status=$?
47568   grep -v '^ *+' conftest.er1 >conftest.err
47569   rm -f conftest.er1
47570   cat conftest.err >&5
47571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47572   (exit $ac_status); } &&
47573          { ac_try='test -z "$ac_c_werror_flag"
47574                          || test ! -s conftest.err'
47575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47576   (eval $ac_try) 2>&5
47577   ac_status=$?
47578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47579   (exit $ac_status); }; } &&
47580          { ac_try='test -s conftest$ac_exeext'
47581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47582   (eval $ac_try) 2>&5
47583   ac_status=$?
47584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47585   (exit $ac_status); }; }; then
47586   eval "$as_ac_var=yes"
47587 else
47588   echo "$as_me: failed program was:" >&5
47589 sed 's/^/| /' conftest.$ac_ext >&5
47590
47591 eval "$as_ac_var=no"
47592 fi
47593 rm -f conftest.err conftest.$ac_objext \
47594       conftest$ac_exeext conftest.$ac_ext
47595 fi
47596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47598 if test `eval echo '${'$as_ac_var'}'` = yes; then
47599   cat >>confdefs.h <<_ACEOF
47600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47601 _ACEOF
47602
47603 fi
47604 done
47605
47606   else
47607
47608   echo "$as_me:$LINENO: checking for _finitel declaration" >&5
47609 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
47610   if test x${glibcxx_cv_func__finitel_use+set} != xset; then
47611     if test "${glibcxx_cv_func__finitel_use+set}" = set; then
47612   echo $ECHO_N "(cached) $ECHO_C" >&6
47613 else
47614
47615
47616
47617       ac_ext=cc
47618 ac_cpp='$CXXCPP $CPPFLAGS'
47619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47622
47623       cat >conftest.$ac_ext <<_ACEOF
47624 /* confdefs.h.  */
47625 _ACEOF
47626 cat confdefs.h >>conftest.$ac_ext
47627 cat >>conftest.$ac_ext <<_ACEOF
47628 /* end confdefs.h.  */
47629 #include <math.h>
47630                       #ifdef HAVE_IEEEFP_H
47631                       #include <ieeefp.h>
47632                       #endif
47633
47634 int
47635 main ()
47636 {
47637  _finitel(0);
47638   ;
47639   return 0;
47640 }
47641 _ACEOF
47642 rm -f conftest.$ac_objext
47643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47644   (eval $ac_compile) 2>conftest.er1
47645   ac_status=$?
47646   grep -v '^ *+' conftest.er1 >conftest.err
47647   rm -f conftest.er1
47648   cat conftest.err >&5
47649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47650   (exit $ac_status); } &&
47651          { ac_try='test -z "$ac_cxx_werror_flag"
47652                          || test ! -s conftest.err'
47653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47654   (eval $ac_try) 2>&5
47655   ac_status=$?
47656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47657   (exit $ac_status); }; } &&
47658          { ac_try='test -s conftest.$ac_objext'
47659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47660   (eval $ac_try) 2>&5
47661   ac_status=$?
47662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47663   (exit $ac_status); }; }; then
47664   glibcxx_cv_func__finitel_use=yes
47665 else
47666   echo "$as_me: failed program was:" >&5
47667 sed 's/^/| /' conftest.$ac_ext >&5
47668
47669 glibcxx_cv_func__finitel_use=no
47670 fi
47671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47672       ac_ext=c
47673 ac_cpp='$CPP $CPPFLAGS'
47674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47677
47678
47679 fi
47680
47681   fi
47682   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
47683 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
47684
47685     if test x$glibcxx_cv_func__finitel_use = x"yes"; then
47686
47687 for ac_func in _finitel
47688 do
47689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47690 echo "$as_me:$LINENO: checking for $ac_func" >&5
47691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47692 if eval "test \"\${$as_ac_var+set}\" = set"; then
47693   echo $ECHO_N "(cached) $ECHO_C" >&6
47694 else
47695   if test x$gcc_no_link = xyes; then
47696   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47697 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47698    { (exit 1); exit 1; }; }
47699 fi
47700 cat >conftest.$ac_ext <<_ACEOF
47701 /* confdefs.h.  */
47702 _ACEOF
47703 cat confdefs.h >>conftest.$ac_ext
47704 cat >>conftest.$ac_ext <<_ACEOF
47705 /* end confdefs.h.  */
47706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47708 #define $ac_func innocuous_$ac_func
47709
47710 /* System header to define __stub macros and hopefully few prototypes,
47711     which can conflict with char $ac_func (); below.
47712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47713     <limits.h> exists even on freestanding compilers.  */
47714
47715 #ifdef __STDC__
47716 # include <limits.h>
47717 #else
47718 # include <assert.h>
47719 #endif
47720
47721 #undef $ac_func
47722
47723 /* Override any gcc2 internal prototype to avoid an error.  */
47724 #ifdef __cplusplus
47725 extern "C"
47726 {
47727 #endif
47728 /* We use char because int might match the return type of a gcc2
47729    builtin and then its argument prototype would still apply.  */
47730 char $ac_func ();
47731 /* The GNU C library defines this for functions which it implements
47732     to always fail with ENOSYS.  Some functions are actually named
47733     something starting with __ and the normal name is an alias.  */
47734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47735 choke me
47736 #else
47737 char (*f) () = $ac_func;
47738 #endif
47739 #ifdef __cplusplus
47740 }
47741 #endif
47742
47743 int
47744 main ()
47745 {
47746 return f != $ac_func;
47747   ;
47748   return 0;
47749 }
47750 _ACEOF
47751 rm -f conftest.$ac_objext conftest$ac_exeext
47752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47753   (eval $ac_link) 2>conftest.er1
47754   ac_status=$?
47755   grep -v '^ *+' conftest.er1 >conftest.err
47756   rm -f conftest.er1
47757   cat conftest.err >&5
47758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47759   (exit $ac_status); } &&
47760          { ac_try='test -z "$ac_c_werror_flag"
47761                          || test ! -s conftest.err'
47762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47763   (eval $ac_try) 2>&5
47764   ac_status=$?
47765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47766   (exit $ac_status); }; } &&
47767          { ac_try='test -s conftest$ac_exeext'
47768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47769   (eval $ac_try) 2>&5
47770   ac_status=$?
47771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47772   (exit $ac_status); }; }; then
47773   eval "$as_ac_var=yes"
47774 else
47775   echo "$as_me: failed program was:" >&5
47776 sed 's/^/| /' conftest.$ac_ext >&5
47777
47778 eval "$as_ac_var=no"
47779 fi
47780 rm -f conftest.err conftest.$ac_objext \
47781       conftest$ac_exeext conftest.$ac_ext
47782 fi
47783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47785 if test `eval echo '${'$as_ac_var'}'` = yes; then
47786   cat >>confdefs.h <<_ACEOF
47787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47788 _ACEOF
47789
47790 fi
47791 done
47792
47793     fi
47794   fi
47795
47796
47797
47798
47799   echo "$as_me:$LINENO: checking for _float trig functions" >&5
47800 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
47801   if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
47802   echo $ECHO_N "(cached) $ECHO_C" >&6
47803 else
47804
47805
47806
47807     ac_ext=cc
47808 ac_cpp='$CXXCPP $CPPFLAGS'
47809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47812
47813     cat >conftest.$ac_ext <<_ACEOF
47814 /* confdefs.h.  */
47815 _ACEOF
47816 cat confdefs.h >>conftest.$ac_ext
47817 cat >>conftest.$ac_ext <<_ACEOF
47818 /* end confdefs.h.  */
47819 #include <math.h>
47820 int
47821 main ()
47822 {
47823  `for x in _acosf _asinf _atanf \
47824                                           _cosf _sinf _tanf \
47825                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done`
47826   ;
47827   return 0;
47828 }
47829 _ACEOF
47830 rm -f conftest.$ac_objext
47831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47832   (eval $ac_compile) 2>conftest.er1
47833   ac_status=$?
47834   grep -v '^ *+' conftest.er1 >conftest.err
47835   rm -f conftest.er1
47836   cat conftest.err >&5
47837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47838   (exit $ac_status); } &&
47839          { ac_try='test -z "$ac_cxx_werror_flag"
47840                          || test ! -s conftest.err'
47841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47842   (eval $ac_try) 2>&5
47843   ac_status=$?
47844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47845   (exit $ac_status); }; } &&
47846          { ac_try='test -s conftest.$ac_objext'
47847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47848   (eval $ac_try) 2>&5
47849   ac_status=$?
47850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47851   (exit $ac_status); }; }; then
47852   glibcxx_cv_func__float_trig_use=yes
47853 else
47854   echo "$as_me: failed program was:" >&5
47855 sed 's/^/| /' conftest.$ac_ext >&5
47856
47857 glibcxx_cv_func__float_trig_use=no
47858 fi
47859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47860     ac_ext=c
47861 ac_cpp='$CPP $CPPFLAGS'
47862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47865
47866 fi
47867
47868   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
47869 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
47870   if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
47871
47872
47873
47874
47875
47876
47877
47878
47879
47880 for ac_func in _acosf _asinf _atanf \
47881                                           _cosf _sinf _tanf \
47882                                           _coshf _sinhf _tanhf
47883 do
47884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47885 echo "$as_me:$LINENO: checking for $ac_func" >&5
47886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47887 if eval "test \"\${$as_ac_var+set}\" = set"; then
47888   echo $ECHO_N "(cached) $ECHO_C" >&6
47889 else
47890   if test x$gcc_no_link = xyes; then
47891   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
47892 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
47893    { (exit 1); exit 1; }; }
47894 fi
47895 cat >conftest.$ac_ext <<_ACEOF
47896 /* confdefs.h.  */
47897 _ACEOF
47898 cat confdefs.h >>conftest.$ac_ext
47899 cat >>conftest.$ac_ext <<_ACEOF
47900 /* end confdefs.h.  */
47901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47903 #define $ac_func innocuous_$ac_func
47904
47905 /* System header to define __stub macros and hopefully few prototypes,
47906     which can conflict with char $ac_func (); below.
47907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47908     <limits.h> exists even on freestanding compilers.  */
47909
47910 #ifdef __STDC__
47911 # include <limits.h>
47912 #else
47913 # include <assert.h>
47914 #endif
47915
47916 #undef $ac_func
47917
47918 /* Override any gcc2 internal prototype to avoid an error.  */
47919 #ifdef __cplusplus
47920 extern "C"
47921 {
47922 #endif
47923 /* We use char because int might match the return type of a gcc2
47924    builtin and then its argument prototype would still apply.  */
47925 char $ac_func ();
47926 /* The GNU C library defines this for functions which it implements
47927     to always fail with ENOSYS.  Some functions are actually named
47928     something starting with __ and the normal name is an alias.  */
47929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47930 choke me
47931 #else
47932 char (*f) () = $ac_func;
47933 #endif
47934 #ifdef __cplusplus
47935 }
47936 #endif
47937
47938 int
47939 main ()
47940 {
47941 return f != $ac_func;
47942   ;
47943   return 0;
47944 }
47945 _ACEOF
47946 rm -f conftest.$ac_objext conftest$ac_exeext
47947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47948   (eval $ac_link) 2>conftest.er1
47949   ac_status=$?
47950   grep -v '^ *+' conftest.er1 >conftest.err
47951   rm -f conftest.er1
47952   cat conftest.err >&5
47953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47954   (exit $ac_status); } &&
47955          { ac_try='test -z "$ac_c_werror_flag"
47956                          || test ! -s conftest.err'
47957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47958   (eval $ac_try) 2>&5
47959   ac_status=$?
47960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47961   (exit $ac_status); }; } &&
47962          { ac_try='test -s conftest$ac_exeext'
47963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47964   (eval $ac_try) 2>&5
47965   ac_status=$?
47966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47967   (exit $ac_status); }; }; then
47968   eval "$as_ac_var=yes"
47969 else
47970   echo "$as_me: failed program was:" >&5
47971 sed 's/^/| /' conftest.$ac_ext >&5
47972
47973 eval "$as_ac_var=no"
47974 fi
47975 rm -f conftest.err conftest.$ac_objext \
47976       conftest$ac_exeext conftest.$ac_ext
47977 fi
47978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47980 if test `eval echo '${'$as_ac_var'}'` = yes; then
47981   cat >>confdefs.h <<_ACEOF
47982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47983 _ACEOF
47984
47985 fi
47986 done
47987
47988   fi
47989
47990
47991   echo "$as_me:$LINENO: checking for _float round functions" >&5
47992 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
47993   if test "${glibcxx_cv_func__float_round_use+set}" = set; then
47994   echo $ECHO_N "(cached) $ECHO_C" >&6
47995 else
47996
47997
47998
47999     ac_ext=cc
48000 ac_cpp='$CXXCPP $CPPFLAGS'
48001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48004
48005     cat >conftest.$ac_ext <<_ACEOF
48006 /* confdefs.h.  */
48007 _ACEOF
48008 cat confdefs.h >>conftest.$ac_ext
48009 cat >>conftest.$ac_ext <<_ACEOF
48010 /* end confdefs.h.  */
48011 #include <math.h>
48012 int
48013 main ()
48014 {
48015  `for x in _ceilf _floorf; do echo "$x (0);"; done`
48016   ;
48017   return 0;
48018 }
48019 _ACEOF
48020 rm -f conftest.$ac_objext
48021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48022   (eval $ac_compile) 2>conftest.er1
48023   ac_status=$?
48024   grep -v '^ *+' conftest.er1 >conftest.err
48025   rm -f conftest.er1
48026   cat conftest.err >&5
48027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48028   (exit $ac_status); } &&
48029          { ac_try='test -z "$ac_cxx_werror_flag"
48030                          || test ! -s conftest.err'
48031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48032   (eval $ac_try) 2>&5
48033   ac_status=$?
48034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48035   (exit $ac_status); }; } &&
48036          { ac_try='test -s conftest.$ac_objext'
48037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48038   (eval $ac_try) 2>&5
48039   ac_status=$?
48040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48041   (exit $ac_status); }; }; then
48042   glibcxx_cv_func__float_round_use=yes
48043 else
48044   echo "$as_me: failed program was:" >&5
48045 sed 's/^/| /' conftest.$ac_ext >&5
48046
48047 glibcxx_cv_func__float_round_use=no
48048 fi
48049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48050     ac_ext=c
48051 ac_cpp='$CPP $CPPFLAGS'
48052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48055
48056 fi
48057
48058   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
48059 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
48060   if test x$glibcxx_cv_func__float_round_use = x"yes"; then
48061
48062
48063 for ac_func in _ceilf _floorf
48064 do
48065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48066 echo "$as_me:$LINENO: checking for $ac_func" >&5
48067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48068 if eval "test \"\${$as_ac_var+set}\" = set"; then
48069   echo $ECHO_N "(cached) $ECHO_C" >&6
48070 else
48071   if test x$gcc_no_link = xyes; then
48072   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48073 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48074    { (exit 1); exit 1; }; }
48075 fi
48076 cat >conftest.$ac_ext <<_ACEOF
48077 /* confdefs.h.  */
48078 _ACEOF
48079 cat confdefs.h >>conftest.$ac_ext
48080 cat >>conftest.$ac_ext <<_ACEOF
48081 /* end confdefs.h.  */
48082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48083    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48084 #define $ac_func innocuous_$ac_func
48085
48086 /* System header to define __stub macros and hopefully few prototypes,
48087     which can conflict with char $ac_func (); below.
48088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48089     <limits.h> exists even on freestanding compilers.  */
48090
48091 #ifdef __STDC__
48092 # include <limits.h>
48093 #else
48094 # include <assert.h>
48095 #endif
48096
48097 #undef $ac_func
48098
48099 /* Override any gcc2 internal prototype to avoid an error.  */
48100 #ifdef __cplusplus
48101 extern "C"
48102 {
48103 #endif
48104 /* We use char because int might match the return type of a gcc2
48105    builtin and then its argument prototype would still apply.  */
48106 char $ac_func ();
48107 /* The GNU C library defines this for functions which it implements
48108     to always fail with ENOSYS.  Some functions are actually named
48109     something starting with __ and the normal name is an alias.  */
48110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48111 choke me
48112 #else
48113 char (*f) () = $ac_func;
48114 #endif
48115 #ifdef __cplusplus
48116 }
48117 #endif
48118
48119 int
48120 main ()
48121 {
48122 return f != $ac_func;
48123   ;
48124   return 0;
48125 }
48126 _ACEOF
48127 rm -f conftest.$ac_objext conftest$ac_exeext
48128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48129   (eval $ac_link) 2>conftest.er1
48130   ac_status=$?
48131   grep -v '^ *+' conftest.er1 >conftest.err
48132   rm -f conftest.er1
48133   cat conftest.err >&5
48134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48135   (exit $ac_status); } &&
48136          { ac_try='test -z "$ac_c_werror_flag"
48137                          || test ! -s conftest.err'
48138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48139   (eval $ac_try) 2>&5
48140   ac_status=$?
48141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48142   (exit $ac_status); }; } &&
48143          { ac_try='test -s conftest$ac_exeext'
48144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48145   (eval $ac_try) 2>&5
48146   ac_status=$?
48147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48148   (exit $ac_status); }; }; then
48149   eval "$as_ac_var=yes"
48150 else
48151   echo "$as_me: failed program was:" >&5
48152 sed 's/^/| /' conftest.$ac_ext >&5
48153
48154 eval "$as_ac_var=no"
48155 fi
48156 rm -f conftest.err conftest.$ac_objext \
48157       conftest$ac_exeext conftest.$ac_ext
48158 fi
48159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48161 if test `eval echo '${'$as_ac_var'}'` = yes; then
48162   cat >>confdefs.h <<_ACEOF
48163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48164 _ACEOF
48165
48166 fi
48167 done
48168
48169   fi
48170
48171
48172
48173   echo "$as_me:$LINENO: checking for _long double trig functions" >&5
48174 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
48175   if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
48176   echo $ECHO_N "(cached) $ECHO_C" >&6
48177 else
48178
48179
48180
48181     ac_ext=cc
48182 ac_cpp='$CXXCPP $CPPFLAGS'
48183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48186
48187     cat >conftest.$ac_ext <<_ACEOF
48188 /* confdefs.h.  */
48189 _ACEOF
48190 cat confdefs.h >>conftest.$ac_ext
48191 cat >>conftest.$ac_ext <<_ACEOF
48192 /* end confdefs.h.  */
48193 #include <math.h>
48194 int
48195 main ()
48196 {
48197  `for x in _acosl _asinl _atanl \
48198                                           _cosl _sinl _tanl \
48199                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done`
48200   ;
48201   return 0;
48202 }
48203 _ACEOF
48204 rm -f conftest.$ac_objext
48205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48206   (eval $ac_compile) 2>conftest.er1
48207   ac_status=$?
48208   grep -v '^ *+' conftest.er1 >conftest.err
48209   rm -f conftest.er1
48210   cat conftest.err >&5
48211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48212   (exit $ac_status); } &&
48213          { ac_try='test -z "$ac_cxx_werror_flag"
48214                          || test ! -s conftest.err'
48215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48216   (eval $ac_try) 2>&5
48217   ac_status=$?
48218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48219   (exit $ac_status); }; } &&
48220          { ac_try='test -s conftest.$ac_objext'
48221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48222   (eval $ac_try) 2>&5
48223   ac_status=$?
48224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48225   (exit $ac_status); }; }; then
48226   glibcxx_cv_func__long_double_trig_use=yes
48227 else
48228   echo "$as_me: failed program was:" >&5
48229 sed 's/^/| /' conftest.$ac_ext >&5
48230
48231 glibcxx_cv_func__long_double_trig_use=no
48232 fi
48233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48234     ac_ext=c
48235 ac_cpp='$CPP $CPPFLAGS'
48236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48239
48240 fi
48241
48242   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
48243 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
48244   if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
48245
48246
48247
48248
48249
48250
48251
48252
48253
48254 for ac_func in _acosl _asinl _atanl \
48255                                           _cosl _sinl _tanl \
48256                                           _coshl _sinhl _tanhl
48257 do
48258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48259 echo "$as_me:$LINENO: checking for $ac_func" >&5
48260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48261 if eval "test \"\${$as_ac_var+set}\" = set"; then
48262   echo $ECHO_N "(cached) $ECHO_C" >&6
48263 else
48264   if test x$gcc_no_link = xyes; then
48265   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48266 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48267    { (exit 1); exit 1; }; }
48268 fi
48269 cat >conftest.$ac_ext <<_ACEOF
48270 /* confdefs.h.  */
48271 _ACEOF
48272 cat confdefs.h >>conftest.$ac_ext
48273 cat >>conftest.$ac_ext <<_ACEOF
48274 /* end confdefs.h.  */
48275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48277 #define $ac_func innocuous_$ac_func
48278
48279 /* System header to define __stub macros and hopefully few prototypes,
48280     which can conflict with char $ac_func (); below.
48281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48282     <limits.h> exists even on freestanding compilers.  */
48283
48284 #ifdef __STDC__
48285 # include <limits.h>
48286 #else
48287 # include <assert.h>
48288 #endif
48289
48290 #undef $ac_func
48291
48292 /* Override any gcc2 internal prototype to avoid an error.  */
48293 #ifdef __cplusplus
48294 extern "C"
48295 {
48296 #endif
48297 /* We use char because int might match the return type of a gcc2
48298    builtin and then its argument prototype would still apply.  */
48299 char $ac_func ();
48300 /* The GNU C library defines this for functions which it implements
48301     to always fail with ENOSYS.  Some functions are actually named
48302     something starting with __ and the normal name is an alias.  */
48303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48304 choke me
48305 #else
48306 char (*f) () = $ac_func;
48307 #endif
48308 #ifdef __cplusplus
48309 }
48310 #endif
48311
48312 int
48313 main ()
48314 {
48315 return f != $ac_func;
48316   ;
48317   return 0;
48318 }
48319 _ACEOF
48320 rm -f conftest.$ac_objext conftest$ac_exeext
48321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48322   (eval $ac_link) 2>conftest.er1
48323   ac_status=$?
48324   grep -v '^ *+' conftest.er1 >conftest.err
48325   rm -f conftest.er1
48326   cat conftest.err >&5
48327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48328   (exit $ac_status); } &&
48329          { ac_try='test -z "$ac_c_werror_flag"
48330                          || test ! -s conftest.err'
48331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48332   (eval $ac_try) 2>&5
48333   ac_status=$?
48334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48335   (exit $ac_status); }; } &&
48336          { ac_try='test -s conftest$ac_exeext'
48337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48338   (eval $ac_try) 2>&5
48339   ac_status=$?
48340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48341   (exit $ac_status); }; }; then
48342   eval "$as_ac_var=yes"
48343 else
48344   echo "$as_me: failed program was:" >&5
48345 sed 's/^/| /' conftest.$ac_ext >&5
48346
48347 eval "$as_ac_var=no"
48348 fi
48349 rm -f conftest.err conftest.$ac_objext \
48350       conftest$ac_exeext conftest.$ac_ext
48351 fi
48352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48354 if test `eval echo '${'$as_ac_var'}'` = yes; then
48355   cat >>confdefs.h <<_ACEOF
48356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48357 _ACEOF
48358
48359 fi
48360 done
48361
48362   fi
48363
48364
48365   echo "$as_me:$LINENO: checking for _long double round functions" >&5
48366 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
48367   if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
48368   echo $ECHO_N "(cached) $ECHO_C" >&6
48369 else
48370
48371
48372
48373     ac_ext=cc
48374 ac_cpp='$CXXCPP $CPPFLAGS'
48375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48378
48379     cat >conftest.$ac_ext <<_ACEOF
48380 /* confdefs.h.  */
48381 _ACEOF
48382 cat confdefs.h >>conftest.$ac_ext
48383 cat >>conftest.$ac_ext <<_ACEOF
48384 /* end confdefs.h.  */
48385 #include <math.h>
48386 int
48387 main ()
48388 {
48389  `for x in _ceill _floorl; do echo "$x (0);"; done`
48390   ;
48391   return 0;
48392 }
48393 _ACEOF
48394 rm -f conftest.$ac_objext
48395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48396   (eval $ac_compile) 2>conftest.er1
48397   ac_status=$?
48398   grep -v '^ *+' conftest.er1 >conftest.err
48399   rm -f conftest.er1
48400   cat conftest.err >&5
48401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48402   (exit $ac_status); } &&
48403          { ac_try='test -z "$ac_cxx_werror_flag"
48404                          || test ! -s conftest.err'
48405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48406   (eval $ac_try) 2>&5
48407   ac_status=$?
48408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48409   (exit $ac_status); }; } &&
48410          { ac_try='test -s conftest.$ac_objext'
48411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48412   (eval $ac_try) 2>&5
48413   ac_status=$?
48414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48415   (exit $ac_status); }; }; then
48416   glibcxx_cv_func__long_double_round_use=yes
48417 else
48418   echo "$as_me: failed program was:" >&5
48419 sed 's/^/| /' conftest.$ac_ext >&5
48420
48421 glibcxx_cv_func__long_double_round_use=no
48422 fi
48423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48424     ac_ext=c
48425 ac_cpp='$CPP $CPPFLAGS'
48426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48429
48430 fi
48431
48432   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
48433 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
48434   if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
48435
48436
48437 for ac_func in _ceill _floorl
48438 do
48439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48440 echo "$as_me:$LINENO: checking for $ac_func" >&5
48441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48442 if eval "test \"\${$as_ac_var+set}\" = set"; then
48443   echo $ECHO_N "(cached) $ECHO_C" >&6
48444 else
48445   if test x$gcc_no_link = xyes; then
48446   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48447 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48448    { (exit 1); exit 1; }; }
48449 fi
48450 cat >conftest.$ac_ext <<_ACEOF
48451 /* confdefs.h.  */
48452 _ACEOF
48453 cat confdefs.h >>conftest.$ac_ext
48454 cat >>conftest.$ac_ext <<_ACEOF
48455 /* end confdefs.h.  */
48456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48458 #define $ac_func innocuous_$ac_func
48459
48460 /* System header to define __stub macros and hopefully few prototypes,
48461     which can conflict with char $ac_func (); below.
48462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48463     <limits.h> exists even on freestanding compilers.  */
48464
48465 #ifdef __STDC__
48466 # include <limits.h>
48467 #else
48468 # include <assert.h>
48469 #endif
48470
48471 #undef $ac_func
48472
48473 /* Override any gcc2 internal prototype to avoid an error.  */
48474 #ifdef __cplusplus
48475 extern "C"
48476 {
48477 #endif
48478 /* We use char because int might match the return type of a gcc2
48479    builtin and then its argument prototype would still apply.  */
48480 char $ac_func ();
48481 /* The GNU C library defines this for functions which it implements
48482     to always fail with ENOSYS.  Some functions are actually named
48483     something starting with __ and the normal name is an alias.  */
48484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48485 choke me
48486 #else
48487 char (*f) () = $ac_func;
48488 #endif
48489 #ifdef __cplusplus
48490 }
48491 #endif
48492
48493 int
48494 main ()
48495 {
48496 return f != $ac_func;
48497   ;
48498   return 0;
48499 }
48500 _ACEOF
48501 rm -f conftest.$ac_objext conftest$ac_exeext
48502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48503   (eval $ac_link) 2>conftest.er1
48504   ac_status=$?
48505   grep -v '^ *+' conftest.er1 >conftest.err
48506   rm -f conftest.er1
48507   cat conftest.err >&5
48508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48509   (exit $ac_status); } &&
48510          { ac_try='test -z "$ac_c_werror_flag"
48511                          || test ! -s conftest.err'
48512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48513   (eval $ac_try) 2>&5
48514   ac_status=$?
48515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48516   (exit $ac_status); }; } &&
48517          { ac_try='test -s conftest$ac_exeext'
48518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48519   (eval $ac_try) 2>&5
48520   ac_status=$?
48521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48522   (exit $ac_status); }; }; then
48523   eval "$as_ac_var=yes"
48524 else
48525   echo "$as_me: failed program was:" >&5
48526 sed 's/^/| /' conftest.$ac_ext >&5
48527
48528 eval "$as_ac_var=no"
48529 fi
48530 rm -f conftest.err conftest.$ac_objext \
48531       conftest$ac_exeext conftest.$ac_ext
48532 fi
48533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48535 if test `eval echo '${'$as_ac_var'}'` = yes; then
48536   cat >>confdefs.h <<_ACEOF
48537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48538 _ACEOF
48539
48540 fi
48541 done
48542
48543   fi
48544
48545
48546   LIBS="$ac_save_LIBS"
48547   CXXFLAGS="$ac_save_CXXFLAGS"
48548
48549
48550
48551   echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
48552 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
48553   if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
48554     if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
48555   echo $ECHO_N "(cached) $ECHO_C" >&6
48556 else
48557
48558
48559
48560       ac_ext=cc
48561 ac_cpp='$CXXCPP $CPPFLAGS'
48562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48565
48566       cat >conftest.$ac_ext <<_ACEOF
48567 /* confdefs.h.  */
48568 _ACEOF
48569 cat confdefs.h >>conftest.$ac_ext
48570 cat >>conftest.$ac_ext <<_ACEOF
48571 /* end confdefs.h.  */
48572 #include <math.h>
48573 int
48574 main ()
48575 {
48576  __builtin_abs(0);
48577   ;
48578   return 0;
48579 }
48580 _ACEOF
48581 rm -f conftest.$ac_objext
48582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48583   (eval $ac_compile) 2>conftest.er1
48584   ac_status=$?
48585   grep -v '^ *+' conftest.er1 >conftest.err
48586   rm -f conftest.er1
48587   cat conftest.err >&5
48588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48589   (exit $ac_status); } &&
48590          { ac_try='test -z "$ac_cxx_werror_flag"
48591                          || test ! -s conftest.err'
48592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48593   (eval $ac_try) 2>&5
48594   ac_status=$?
48595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48596   (exit $ac_status); }; } &&
48597          { ac_try='test -s conftest.$ac_objext'
48598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48599   (eval $ac_try) 2>&5
48600   ac_status=$?
48601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48602   (exit $ac_status); }; }; then
48603   glibcxx_cv_func___builtin_abs_use=yes
48604 else
48605   echo "$as_me: failed program was:" >&5
48606 sed 's/^/| /' conftest.$ac_ext >&5
48607
48608 glibcxx_cv_func___builtin_abs_use=no
48609 fi
48610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48611       ac_ext=c
48612 ac_cpp='$CPP $CPPFLAGS'
48613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48616
48617
48618 fi
48619
48620   fi
48621   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
48622 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
48623   if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
48624     echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
48625 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
48626     if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
48627       if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
48628   echo $ECHO_N "(cached) $ECHO_C" >&6
48629 else
48630
48631         if test x$gcc_no_link = xyes; then
48632   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48634    { (exit 1); exit 1; }; }
48635 fi
48636 cat >conftest.$ac_ext <<_ACEOF
48637 /* confdefs.h.  */
48638 _ACEOF
48639 cat confdefs.h >>conftest.$ac_ext
48640 cat >>conftest.$ac_ext <<_ACEOF
48641 /* end confdefs.h.  */
48642 #include <math.h>
48643 int
48644 main ()
48645 {
48646  __builtin_abs(0);
48647   ;
48648   return 0;
48649 }
48650 _ACEOF
48651 rm -f conftest.$ac_objext conftest$ac_exeext
48652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48653   (eval $ac_link) 2>conftest.er1
48654   ac_status=$?
48655   grep -v '^ *+' conftest.er1 >conftest.err
48656   rm -f conftest.er1
48657   cat conftest.err >&5
48658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48659   (exit $ac_status); } &&
48660          { ac_try='test -z "$ac_c_werror_flag"
48661                          || test ! -s conftest.err'
48662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48663   (eval $ac_try) 2>&5
48664   ac_status=$?
48665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48666   (exit $ac_status); }; } &&
48667          { ac_try='test -s conftest$ac_exeext'
48668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48669   (eval $ac_try) 2>&5
48670   ac_status=$?
48671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48672   (exit $ac_status); }; }; then
48673   glibcxx_cv_func___builtin_abs_link=yes
48674 else
48675   echo "$as_me: failed program was:" >&5
48676 sed 's/^/| /' conftest.$ac_ext >&5
48677
48678 glibcxx_cv_func___builtin_abs_link=no
48679 fi
48680 rm -f conftest.err conftest.$ac_objext \
48681       conftest$ac_exeext conftest.$ac_ext
48682
48683 fi
48684
48685     fi
48686     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
48687 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
48688     if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
48689       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48690       cat >>confdefs.h <<_ACEOF
48691 #define ${ac_tr_func} 1
48692 _ACEOF
48693
48694     fi
48695   fi
48696
48697
48698   echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
48699 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
48700   if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
48701     if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
48702   echo $ECHO_N "(cached) $ECHO_C" >&6
48703 else
48704
48705
48706
48707       ac_ext=cc
48708 ac_cpp='$CXXCPP $CPPFLAGS'
48709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48712
48713       cat >conftest.$ac_ext <<_ACEOF
48714 /* confdefs.h.  */
48715 _ACEOF
48716 cat confdefs.h >>conftest.$ac_ext
48717 cat >>conftest.$ac_ext <<_ACEOF
48718 /* end confdefs.h.  */
48719 #include <math.h>
48720 int
48721 main ()
48722 {
48723  __builtin_fabsf(0);
48724   ;
48725   return 0;
48726 }
48727 _ACEOF
48728 rm -f conftest.$ac_objext
48729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48730   (eval $ac_compile) 2>conftest.er1
48731   ac_status=$?
48732   grep -v '^ *+' conftest.er1 >conftest.err
48733   rm -f conftest.er1
48734   cat conftest.err >&5
48735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48736   (exit $ac_status); } &&
48737          { ac_try='test -z "$ac_cxx_werror_flag"
48738                          || test ! -s conftest.err'
48739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48740   (eval $ac_try) 2>&5
48741   ac_status=$?
48742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48743   (exit $ac_status); }; } &&
48744          { ac_try='test -s conftest.$ac_objext'
48745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48746   (eval $ac_try) 2>&5
48747   ac_status=$?
48748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48749   (exit $ac_status); }; }; then
48750   glibcxx_cv_func___builtin_fabsf_use=yes
48751 else
48752   echo "$as_me: failed program was:" >&5
48753 sed 's/^/| /' conftest.$ac_ext >&5
48754
48755 glibcxx_cv_func___builtin_fabsf_use=no
48756 fi
48757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48758       ac_ext=c
48759 ac_cpp='$CPP $CPPFLAGS'
48760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48763
48764
48765 fi
48766
48767   fi
48768   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
48769 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
48770   if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
48771     echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
48772 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
48773     if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
48774       if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
48775   echo $ECHO_N "(cached) $ECHO_C" >&6
48776 else
48777
48778         if test x$gcc_no_link = xyes; then
48779   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48780 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48781    { (exit 1); exit 1; }; }
48782 fi
48783 cat >conftest.$ac_ext <<_ACEOF
48784 /* confdefs.h.  */
48785 _ACEOF
48786 cat confdefs.h >>conftest.$ac_ext
48787 cat >>conftest.$ac_ext <<_ACEOF
48788 /* end confdefs.h.  */
48789 #include <math.h>
48790 int
48791 main ()
48792 {
48793  __builtin_fabsf(0);
48794   ;
48795   return 0;
48796 }
48797 _ACEOF
48798 rm -f conftest.$ac_objext conftest$ac_exeext
48799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48800   (eval $ac_link) 2>conftest.er1
48801   ac_status=$?
48802   grep -v '^ *+' conftest.er1 >conftest.err
48803   rm -f conftest.er1
48804   cat conftest.err >&5
48805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48806   (exit $ac_status); } &&
48807          { ac_try='test -z "$ac_c_werror_flag"
48808                          || test ! -s conftest.err'
48809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48810   (eval $ac_try) 2>&5
48811   ac_status=$?
48812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48813   (exit $ac_status); }; } &&
48814          { ac_try='test -s conftest$ac_exeext'
48815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48816   (eval $ac_try) 2>&5
48817   ac_status=$?
48818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48819   (exit $ac_status); }; }; then
48820   glibcxx_cv_func___builtin_fabsf_link=yes
48821 else
48822   echo "$as_me: failed program was:" >&5
48823 sed 's/^/| /' conftest.$ac_ext >&5
48824
48825 glibcxx_cv_func___builtin_fabsf_link=no
48826 fi
48827 rm -f conftest.err conftest.$ac_objext \
48828       conftest$ac_exeext conftest.$ac_ext
48829
48830 fi
48831
48832     fi
48833     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
48834 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
48835     if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
48836       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48837       cat >>confdefs.h <<_ACEOF
48838 #define ${ac_tr_func} 1
48839 _ACEOF
48840
48841     fi
48842   fi
48843
48844
48845   echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
48846 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
48847   if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
48848     if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
48849   echo $ECHO_N "(cached) $ECHO_C" >&6
48850 else
48851
48852
48853
48854       ac_ext=cc
48855 ac_cpp='$CXXCPP $CPPFLAGS'
48856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
48859
48860       cat >conftest.$ac_ext <<_ACEOF
48861 /* confdefs.h.  */
48862 _ACEOF
48863 cat confdefs.h >>conftest.$ac_ext
48864 cat >>conftest.$ac_ext <<_ACEOF
48865 /* end confdefs.h.  */
48866 #include <math.h>
48867 int
48868 main ()
48869 {
48870  __builtin_fabs(0);
48871   ;
48872   return 0;
48873 }
48874 _ACEOF
48875 rm -f conftest.$ac_objext
48876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48877   (eval $ac_compile) 2>conftest.er1
48878   ac_status=$?
48879   grep -v '^ *+' conftest.er1 >conftest.err
48880   rm -f conftest.er1
48881   cat conftest.err >&5
48882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48883   (exit $ac_status); } &&
48884          { ac_try='test -z "$ac_cxx_werror_flag"
48885                          || test ! -s conftest.err'
48886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48887   (eval $ac_try) 2>&5
48888   ac_status=$?
48889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48890   (exit $ac_status); }; } &&
48891          { ac_try='test -s conftest.$ac_objext'
48892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48893   (eval $ac_try) 2>&5
48894   ac_status=$?
48895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48896   (exit $ac_status); }; }; then
48897   glibcxx_cv_func___builtin_fabs_use=yes
48898 else
48899   echo "$as_me: failed program was:" >&5
48900 sed 's/^/| /' conftest.$ac_ext >&5
48901
48902 glibcxx_cv_func___builtin_fabs_use=no
48903 fi
48904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48905       ac_ext=c
48906 ac_cpp='$CPP $CPPFLAGS'
48907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48910
48911
48912 fi
48913
48914   fi
48915   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
48916 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
48917   if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
48918     echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
48919 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
48920     if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
48921       if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
48922   echo $ECHO_N "(cached) $ECHO_C" >&6
48923 else
48924
48925         if test x$gcc_no_link = xyes; then
48926   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
48927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
48928    { (exit 1); exit 1; }; }
48929 fi
48930 cat >conftest.$ac_ext <<_ACEOF
48931 /* confdefs.h.  */
48932 _ACEOF
48933 cat confdefs.h >>conftest.$ac_ext
48934 cat >>conftest.$ac_ext <<_ACEOF
48935 /* end confdefs.h.  */
48936 #include <math.h>
48937 int
48938 main ()
48939 {
48940  __builtin_fabs(0);
48941   ;
48942   return 0;
48943 }
48944 _ACEOF
48945 rm -f conftest.$ac_objext conftest$ac_exeext
48946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48947   (eval $ac_link) 2>conftest.er1
48948   ac_status=$?
48949   grep -v '^ *+' conftest.er1 >conftest.err
48950   rm -f conftest.er1
48951   cat conftest.err >&5
48952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48953   (exit $ac_status); } &&
48954          { ac_try='test -z "$ac_c_werror_flag"
48955                          || test ! -s conftest.err'
48956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48957   (eval $ac_try) 2>&5
48958   ac_status=$?
48959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48960   (exit $ac_status); }; } &&
48961          { ac_try='test -s conftest$ac_exeext'
48962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48963   (eval $ac_try) 2>&5
48964   ac_status=$?
48965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48966   (exit $ac_status); }; }; then
48967   glibcxx_cv_func___builtin_fabs_link=yes
48968 else
48969   echo "$as_me: failed program was:" >&5
48970 sed 's/^/| /' conftest.$ac_ext >&5
48971
48972 glibcxx_cv_func___builtin_fabs_link=no
48973 fi
48974 rm -f conftest.err conftest.$ac_objext \
48975       conftest$ac_exeext conftest.$ac_ext
48976
48977 fi
48978
48979     fi
48980     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
48981 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
48982     if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
48983       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
48984       cat >>confdefs.h <<_ACEOF
48985 #define ${ac_tr_func} 1
48986 _ACEOF
48987
48988     fi
48989   fi
48990
48991
48992   echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
48993 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
48994   if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
48995     if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
48996   echo $ECHO_N "(cached) $ECHO_C" >&6
48997 else
48998
48999
49000
49001       ac_ext=cc
49002 ac_cpp='$CXXCPP $CPPFLAGS'
49003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49006
49007       cat >conftest.$ac_ext <<_ACEOF
49008 /* confdefs.h.  */
49009 _ACEOF
49010 cat confdefs.h >>conftest.$ac_ext
49011 cat >>conftest.$ac_ext <<_ACEOF
49012 /* end confdefs.h.  */
49013 #include <math.h>
49014 int
49015 main ()
49016 {
49017  __builtin_fabsl(0);
49018   ;
49019   return 0;
49020 }
49021 _ACEOF
49022 rm -f conftest.$ac_objext
49023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49024   (eval $ac_compile) 2>conftest.er1
49025   ac_status=$?
49026   grep -v '^ *+' conftest.er1 >conftest.err
49027   rm -f conftest.er1
49028   cat conftest.err >&5
49029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49030   (exit $ac_status); } &&
49031          { ac_try='test -z "$ac_cxx_werror_flag"
49032                          || test ! -s conftest.err'
49033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49034   (eval $ac_try) 2>&5
49035   ac_status=$?
49036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49037   (exit $ac_status); }; } &&
49038          { ac_try='test -s conftest.$ac_objext'
49039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49040   (eval $ac_try) 2>&5
49041   ac_status=$?
49042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49043   (exit $ac_status); }; }; then
49044   glibcxx_cv_func___builtin_fabsl_use=yes
49045 else
49046   echo "$as_me: failed program was:" >&5
49047 sed 's/^/| /' conftest.$ac_ext >&5
49048
49049 glibcxx_cv_func___builtin_fabsl_use=no
49050 fi
49051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49052       ac_ext=c
49053 ac_cpp='$CPP $CPPFLAGS'
49054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49057
49058
49059 fi
49060
49061   fi
49062   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
49063 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
49064   if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
49065     echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
49066 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
49067     if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
49068       if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
49069   echo $ECHO_N "(cached) $ECHO_C" >&6
49070 else
49071
49072         if test x$gcc_no_link = xyes; then
49073   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49074 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49075    { (exit 1); exit 1; }; }
49076 fi
49077 cat >conftest.$ac_ext <<_ACEOF
49078 /* confdefs.h.  */
49079 _ACEOF
49080 cat confdefs.h >>conftest.$ac_ext
49081 cat >>conftest.$ac_ext <<_ACEOF
49082 /* end confdefs.h.  */
49083 #include <math.h>
49084 int
49085 main ()
49086 {
49087  __builtin_fabsl(0);
49088   ;
49089   return 0;
49090 }
49091 _ACEOF
49092 rm -f conftest.$ac_objext conftest$ac_exeext
49093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49094   (eval $ac_link) 2>conftest.er1
49095   ac_status=$?
49096   grep -v '^ *+' conftest.er1 >conftest.err
49097   rm -f conftest.er1
49098   cat conftest.err >&5
49099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49100   (exit $ac_status); } &&
49101          { ac_try='test -z "$ac_c_werror_flag"
49102                          || test ! -s conftest.err'
49103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49104   (eval $ac_try) 2>&5
49105   ac_status=$?
49106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49107   (exit $ac_status); }; } &&
49108          { ac_try='test -s conftest$ac_exeext'
49109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49110   (eval $ac_try) 2>&5
49111   ac_status=$?
49112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49113   (exit $ac_status); }; }; then
49114   glibcxx_cv_func___builtin_fabsl_link=yes
49115 else
49116   echo "$as_me: failed program was:" >&5
49117 sed 's/^/| /' conftest.$ac_ext >&5
49118
49119 glibcxx_cv_func___builtin_fabsl_link=no
49120 fi
49121 rm -f conftest.err conftest.$ac_objext \
49122       conftest$ac_exeext conftest.$ac_ext
49123
49124 fi
49125
49126     fi
49127     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
49128 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
49129     if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
49130       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49131       cat >>confdefs.h <<_ACEOF
49132 #define ${ac_tr_func} 1
49133 _ACEOF
49134
49135     fi
49136   fi
49137
49138
49139   echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
49140 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
49141   if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
49142     if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
49143   echo $ECHO_N "(cached) $ECHO_C" >&6
49144 else
49145
49146
49147
49148       ac_ext=cc
49149 ac_cpp='$CXXCPP $CPPFLAGS'
49150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49153
49154       cat >conftest.$ac_ext <<_ACEOF
49155 /* confdefs.h.  */
49156 _ACEOF
49157 cat confdefs.h >>conftest.$ac_ext
49158 cat >>conftest.$ac_ext <<_ACEOF
49159 /* end confdefs.h.  */
49160 #include <math.h>
49161 int
49162 main ()
49163 {
49164  __builtin_labs(0);
49165   ;
49166   return 0;
49167 }
49168 _ACEOF
49169 rm -f conftest.$ac_objext
49170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49171   (eval $ac_compile) 2>conftest.er1
49172   ac_status=$?
49173   grep -v '^ *+' conftest.er1 >conftest.err
49174   rm -f conftest.er1
49175   cat conftest.err >&5
49176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49177   (exit $ac_status); } &&
49178          { ac_try='test -z "$ac_cxx_werror_flag"
49179                          || test ! -s conftest.err'
49180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49181   (eval $ac_try) 2>&5
49182   ac_status=$?
49183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49184   (exit $ac_status); }; } &&
49185          { ac_try='test -s conftest.$ac_objext'
49186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49187   (eval $ac_try) 2>&5
49188   ac_status=$?
49189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49190   (exit $ac_status); }; }; then
49191   glibcxx_cv_func___builtin_labs_use=yes
49192 else
49193   echo "$as_me: failed program was:" >&5
49194 sed 's/^/| /' conftest.$ac_ext >&5
49195
49196 glibcxx_cv_func___builtin_labs_use=no
49197 fi
49198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49199       ac_ext=c
49200 ac_cpp='$CPP $CPPFLAGS'
49201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49204
49205
49206 fi
49207
49208   fi
49209   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
49210 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
49211   if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
49212     echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
49213 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
49214     if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
49215       if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
49216   echo $ECHO_N "(cached) $ECHO_C" >&6
49217 else
49218
49219         if test x$gcc_no_link = xyes; then
49220   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49221 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49222    { (exit 1); exit 1; }; }
49223 fi
49224 cat >conftest.$ac_ext <<_ACEOF
49225 /* confdefs.h.  */
49226 _ACEOF
49227 cat confdefs.h >>conftest.$ac_ext
49228 cat >>conftest.$ac_ext <<_ACEOF
49229 /* end confdefs.h.  */
49230 #include <math.h>
49231 int
49232 main ()
49233 {
49234  __builtin_labs(0);
49235   ;
49236   return 0;
49237 }
49238 _ACEOF
49239 rm -f conftest.$ac_objext conftest$ac_exeext
49240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49241   (eval $ac_link) 2>conftest.er1
49242   ac_status=$?
49243   grep -v '^ *+' conftest.er1 >conftest.err
49244   rm -f conftest.er1
49245   cat conftest.err >&5
49246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49247   (exit $ac_status); } &&
49248          { ac_try='test -z "$ac_c_werror_flag"
49249                          || test ! -s conftest.err'
49250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49251   (eval $ac_try) 2>&5
49252   ac_status=$?
49253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49254   (exit $ac_status); }; } &&
49255          { ac_try='test -s conftest$ac_exeext'
49256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49257   (eval $ac_try) 2>&5
49258   ac_status=$?
49259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49260   (exit $ac_status); }; }; then
49261   glibcxx_cv_func___builtin_labs_link=yes
49262 else
49263   echo "$as_me: failed program was:" >&5
49264 sed 's/^/| /' conftest.$ac_ext >&5
49265
49266 glibcxx_cv_func___builtin_labs_link=no
49267 fi
49268 rm -f conftest.err conftest.$ac_objext \
49269       conftest$ac_exeext conftest.$ac_ext
49270
49271 fi
49272
49273     fi
49274     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
49275 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
49276     if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
49277       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49278       cat >>confdefs.h <<_ACEOF
49279 #define ${ac_tr_func} 1
49280 _ACEOF
49281
49282     fi
49283   fi
49284
49285
49286
49287   echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
49288 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
49289   if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
49290     if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
49291   echo $ECHO_N "(cached) $ECHO_C" >&6
49292 else
49293
49294
49295
49296       ac_ext=cc
49297 ac_cpp='$CXXCPP $CPPFLAGS'
49298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49301
49302       cat >conftest.$ac_ext <<_ACEOF
49303 /* confdefs.h.  */
49304 _ACEOF
49305 cat confdefs.h >>conftest.$ac_ext
49306 cat >>conftest.$ac_ext <<_ACEOF
49307 /* end confdefs.h.  */
49308 #include <math.h>
49309 int
49310 main ()
49311 {
49312  __builtin_sqrtf(0);
49313   ;
49314   return 0;
49315 }
49316 _ACEOF
49317 rm -f conftest.$ac_objext
49318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49319   (eval $ac_compile) 2>conftest.er1
49320   ac_status=$?
49321   grep -v '^ *+' conftest.er1 >conftest.err
49322   rm -f conftest.er1
49323   cat conftest.err >&5
49324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49325   (exit $ac_status); } &&
49326          { ac_try='test -z "$ac_cxx_werror_flag"
49327                          || test ! -s conftest.err'
49328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49329   (eval $ac_try) 2>&5
49330   ac_status=$?
49331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49332   (exit $ac_status); }; } &&
49333          { ac_try='test -s conftest.$ac_objext'
49334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49335   (eval $ac_try) 2>&5
49336   ac_status=$?
49337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49338   (exit $ac_status); }; }; then
49339   glibcxx_cv_func___builtin_sqrtf_use=yes
49340 else
49341   echo "$as_me: failed program was:" >&5
49342 sed 's/^/| /' conftest.$ac_ext >&5
49343
49344 glibcxx_cv_func___builtin_sqrtf_use=no
49345 fi
49346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49347       ac_ext=c
49348 ac_cpp='$CPP $CPPFLAGS'
49349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49352
49353
49354 fi
49355
49356   fi
49357   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
49358 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
49359   if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
49360     echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
49361 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
49362     if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
49363       if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
49364   echo $ECHO_N "(cached) $ECHO_C" >&6
49365 else
49366
49367         if test x$gcc_no_link = xyes; then
49368   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49369 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49370    { (exit 1); exit 1; }; }
49371 fi
49372 cat >conftest.$ac_ext <<_ACEOF
49373 /* confdefs.h.  */
49374 _ACEOF
49375 cat confdefs.h >>conftest.$ac_ext
49376 cat >>conftest.$ac_ext <<_ACEOF
49377 /* end confdefs.h.  */
49378 #include <math.h>
49379 int
49380 main ()
49381 {
49382  __builtin_sqrtf(0);
49383   ;
49384   return 0;
49385 }
49386 _ACEOF
49387 rm -f conftest.$ac_objext conftest$ac_exeext
49388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49389   (eval $ac_link) 2>conftest.er1
49390   ac_status=$?
49391   grep -v '^ *+' conftest.er1 >conftest.err
49392   rm -f conftest.er1
49393   cat conftest.err >&5
49394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49395   (exit $ac_status); } &&
49396          { ac_try='test -z "$ac_c_werror_flag"
49397                          || test ! -s conftest.err'
49398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49399   (eval $ac_try) 2>&5
49400   ac_status=$?
49401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49402   (exit $ac_status); }; } &&
49403          { ac_try='test -s conftest$ac_exeext'
49404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49405   (eval $ac_try) 2>&5
49406   ac_status=$?
49407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49408   (exit $ac_status); }; }; then
49409   glibcxx_cv_func___builtin_sqrtf_link=yes
49410 else
49411   echo "$as_me: failed program was:" >&5
49412 sed 's/^/| /' conftest.$ac_ext >&5
49413
49414 glibcxx_cv_func___builtin_sqrtf_link=no
49415 fi
49416 rm -f conftest.err conftest.$ac_objext \
49417       conftest$ac_exeext conftest.$ac_ext
49418
49419 fi
49420
49421     fi
49422     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
49423 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
49424     if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
49425       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49426       cat >>confdefs.h <<_ACEOF
49427 #define ${ac_tr_func} 1
49428 _ACEOF
49429
49430     fi
49431   fi
49432
49433
49434   echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
49435 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
49436   if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
49437     if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
49438   echo $ECHO_N "(cached) $ECHO_C" >&6
49439 else
49440
49441
49442
49443       ac_ext=cc
49444 ac_cpp='$CXXCPP $CPPFLAGS'
49445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49448
49449       cat >conftest.$ac_ext <<_ACEOF
49450 /* confdefs.h.  */
49451 _ACEOF
49452 cat confdefs.h >>conftest.$ac_ext
49453 cat >>conftest.$ac_ext <<_ACEOF
49454 /* end confdefs.h.  */
49455 #include <math.h>
49456 int
49457 main ()
49458 {
49459  __builtin_sqrt(0);
49460   ;
49461   return 0;
49462 }
49463 _ACEOF
49464 rm -f conftest.$ac_objext
49465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49466   (eval $ac_compile) 2>conftest.er1
49467   ac_status=$?
49468   grep -v '^ *+' conftest.er1 >conftest.err
49469   rm -f conftest.er1
49470   cat conftest.err >&5
49471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49472   (exit $ac_status); } &&
49473          { ac_try='test -z "$ac_cxx_werror_flag"
49474                          || test ! -s conftest.err'
49475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49476   (eval $ac_try) 2>&5
49477   ac_status=$?
49478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49479   (exit $ac_status); }; } &&
49480          { ac_try='test -s conftest.$ac_objext'
49481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49482   (eval $ac_try) 2>&5
49483   ac_status=$?
49484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49485   (exit $ac_status); }; }; then
49486   glibcxx_cv_func___builtin_sqrt_use=yes
49487 else
49488   echo "$as_me: failed program was:" >&5
49489 sed 's/^/| /' conftest.$ac_ext >&5
49490
49491 glibcxx_cv_func___builtin_sqrt_use=no
49492 fi
49493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49494       ac_ext=c
49495 ac_cpp='$CPP $CPPFLAGS'
49496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49499
49500
49501 fi
49502
49503   fi
49504   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
49505 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
49506   if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
49507     echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
49508 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
49509     if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
49510       if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
49511   echo $ECHO_N "(cached) $ECHO_C" >&6
49512 else
49513
49514         if test x$gcc_no_link = xyes; then
49515   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49516 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49517    { (exit 1); exit 1; }; }
49518 fi
49519 cat >conftest.$ac_ext <<_ACEOF
49520 /* confdefs.h.  */
49521 _ACEOF
49522 cat confdefs.h >>conftest.$ac_ext
49523 cat >>conftest.$ac_ext <<_ACEOF
49524 /* end confdefs.h.  */
49525 #include <math.h>
49526 int
49527 main ()
49528 {
49529  __builtin_sqrt(0);
49530   ;
49531   return 0;
49532 }
49533 _ACEOF
49534 rm -f conftest.$ac_objext conftest$ac_exeext
49535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49536   (eval $ac_link) 2>conftest.er1
49537   ac_status=$?
49538   grep -v '^ *+' conftest.er1 >conftest.err
49539   rm -f conftest.er1
49540   cat conftest.err >&5
49541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49542   (exit $ac_status); } &&
49543          { ac_try='test -z "$ac_c_werror_flag"
49544                          || test ! -s conftest.err'
49545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49546   (eval $ac_try) 2>&5
49547   ac_status=$?
49548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49549   (exit $ac_status); }; } &&
49550          { ac_try='test -s conftest$ac_exeext'
49551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49552   (eval $ac_try) 2>&5
49553   ac_status=$?
49554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49555   (exit $ac_status); }; }; then
49556   glibcxx_cv_func___builtin_sqrt_link=yes
49557 else
49558   echo "$as_me: failed program was:" >&5
49559 sed 's/^/| /' conftest.$ac_ext >&5
49560
49561 glibcxx_cv_func___builtin_sqrt_link=no
49562 fi
49563 rm -f conftest.err conftest.$ac_objext \
49564       conftest$ac_exeext conftest.$ac_ext
49565
49566 fi
49567
49568     fi
49569     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
49570 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
49571     if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
49572       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49573       cat >>confdefs.h <<_ACEOF
49574 #define ${ac_tr_func} 1
49575 _ACEOF
49576
49577     fi
49578   fi
49579
49580
49581   echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
49582 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
49583   if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
49584     if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
49585   echo $ECHO_N "(cached) $ECHO_C" >&6
49586 else
49587
49588
49589
49590       ac_ext=cc
49591 ac_cpp='$CXXCPP $CPPFLAGS'
49592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49595
49596       cat >conftest.$ac_ext <<_ACEOF
49597 /* confdefs.h.  */
49598 _ACEOF
49599 cat confdefs.h >>conftest.$ac_ext
49600 cat >>conftest.$ac_ext <<_ACEOF
49601 /* end confdefs.h.  */
49602 #include <math.h>
49603 int
49604 main ()
49605 {
49606  __builtin_sqrtl(0);
49607   ;
49608   return 0;
49609 }
49610 _ACEOF
49611 rm -f conftest.$ac_objext
49612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49613   (eval $ac_compile) 2>conftest.er1
49614   ac_status=$?
49615   grep -v '^ *+' conftest.er1 >conftest.err
49616   rm -f conftest.er1
49617   cat conftest.err >&5
49618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49619   (exit $ac_status); } &&
49620          { ac_try='test -z "$ac_cxx_werror_flag"
49621                          || test ! -s conftest.err'
49622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49623   (eval $ac_try) 2>&5
49624   ac_status=$?
49625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49626   (exit $ac_status); }; } &&
49627          { ac_try='test -s conftest.$ac_objext'
49628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49629   (eval $ac_try) 2>&5
49630   ac_status=$?
49631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49632   (exit $ac_status); }; }; then
49633   glibcxx_cv_func___builtin_sqrtl_use=yes
49634 else
49635   echo "$as_me: failed program was:" >&5
49636 sed 's/^/| /' conftest.$ac_ext >&5
49637
49638 glibcxx_cv_func___builtin_sqrtl_use=no
49639 fi
49640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49641       ac_ext=c
49642 ac_cpp='$CPP $CPPFLAGS'
49643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49646
49647
49648 fi
49649
49650   fi
49651   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
49652 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
49653   if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
49654     echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
49655 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
49656     if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
49657       if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
49658   echo $ECHO_N "(cached) $ECHO_C" >&6
49659 else
49660
49661         if test x$gcc_no_link = xyes; then
49662   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49663 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49664    { (exit 1); exit 1; }; }
49665 fi
49666 cat >conftest.$ac_ext <<_ACEOF
49667 /* confdefs.h.  */
49668 _ACEOF
49669 cat confdefs.h >>conftest.$ac_ext
49670 cat >>conftest.$ac_ext <<_ACEOF
49671 /* end confdefs.h.  */
49672 #include <math.h>
49673 int
49674 main ()
49675 {
49676  __builtin_sqrtl(0);
49677   ;
49678   return 0;
49679 }
49680 _ACEOF
49681 rm -f conftest.$ac_objext conftest$ac_exeext
49682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49683   (eval $ac_link) 2>conftest.er1
49684   ac_status=$?
49685   grep -v '^ *+' conftest.er1 >conftest.err
49686   rm -f conftest.er1
49687   cat conftest.err >&5
49688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49689   (exit $ac_status); } &&
49690          { ac_try='test -z "$ac_c_werror_flag"
49691                          || test ! -s conftest.err'
49692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49693   (eval $ac_try) 2>&5
49694   ac_status=$?
49695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49696   (exit $ac_status); }; } &&
49697          { ac_try='test -s conftest$ac_exeext'
49698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49699   (eval $ac_try) 2>&5
49700   ac_status=$?
49701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49702   (exit $ac_status); }; }; then
49703   glibcxx_cv_func___builtin_sqrtl_link=yes
49704 else
49705   echo "$as_me: failed program was:" >&5
49706 sed 's/^/| /' conftest.$ac_ext >&5
49707
49708 glibcxx_cv_func___builtin_sqrtl_link=no
49709 fi
49710 rm -f conftest.err conftest.$ac_objext \
49711       conftest$ac_exeext conftest.$ac_ext
49712
49713 fi
49714
49715     fi
49716     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
49717 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
49718     if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
49719       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49720       cat >>confdefs.h <<_ACEOF
49721 #define ${ac_tr_func} 1
49722 _ACEOF
49723
49724     fi
49725   fi
49726
49727
49728
49729   echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
49730 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
49731   if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
49732     if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
49733   echo $ECHO_N "(cached) $ECHO_C" >&6
49734 else
49735
49736
49737
49738       ac_ext=cc
49739 ac_cpp='$CXXCPP $CPPFLAGS'
49740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49743
49744       cat >conftest.$ac_ext <<_ACEOF
49745 /* confdefs.h.  */
49746 _ACEOF
49747 cat confdefs.h >>conftest.$ac_ext
49748 cat >>conftest.$ac_ext <<_ACEOF
49749 /* end confdefs.h.  */
49750 #include <math.h>
49751 int
49752 main ()
49753 {
49754  __builtin_sinf(0);
49755   ;
49756   return 0;
49757 }
49758 _ACEOF
49759 rm -f conftest.$ac_objext
49760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49761   (eval $ac_compile) 2>conftest.er1
49762   ac_status=$?
49763   grep -v '^ *+' conftest.er1 >conftest.err
49764   rm -f conftest.er1
49765   cat conftest.err >&5
49766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49767   (exit $ac_status); } &&
49768          { ac_try='test -z "$ac_cxx_werror_flag"
49769                          || test ! -s conftest.err'
49770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49771   (eval $ac_try) 2>&5
49772   ac_status=$?
49773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49774   (exit $ac_status); }; } &&
49775          { ac_try='test -s conftest.$ac_objext'
49776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49777   (eval $ac_try) 2>&5
49778   ac_status=$?
49779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49780   (exit $ac_status); }; }; then
49781   glibcxx_cv_func___builtin_sinf_use=yes
49782 else
49783   echo "$as_me: failed program was:" >&5
49784 sed 's/^/| /' conftest.$ac_ext >&5
49785
49786 glibcxx_cv_func___builtin_sinf_use=no
49787 fi
49788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49789       ac_ext=c
49790 ac_cpp='$CPP $CPPFLAGS'
49791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49794
49795
49796 fi
49797
49798   fi
49799   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
49800 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
49801   if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
49802     echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
49803 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
49804     if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
49805       if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
49806   echo $ECHO_N "(cached) $ECHO_C" >&6
49807 else
49808
49809         if test x$gcc_no_link = xyes; then
49810   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49811 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49812    { (exit 1); exit 1; }; }
49813 fi
49814 cat >conftest.$ac_ext <<_ACEOF
49815 /* confdefs.h.  */
49816 _ACEOF
49817 cat confdefs.h >>conftest.$ac_ext
49818 cat >>conftest.$ac_ext <<_ACEOF
49819 /* end confdefs.h.  */
49820 #include <math.h>
49821 int
49822 main ()
49823 {
49824  __builtin_sinf(0);
49825   ;
49826   return 0;
49827 }
49828 _ACEOF
49829 rm -f conftest.$ac_objext conftest$ac_exeext
49830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49831   (eval $ac_link) 2>conftest.er1
49832   ac_status=$?
49833   grep -v '^ *+' conftest.er1 >conftest.err
49834   rm -f conftest.er1
49835   cat conftest.err >&5
49836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49837   (exit $ac_status); } &&
49838          { ac_try='test -z "$ac_c_werror_flag"
49839                          || test ! -s conftest.err'
49840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49841   (eval $ac_try) 2>&5
49842   ac_status=$?
49843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49844   (exit $ac_status); }; } &&
49845          { ac_try='test -s conftest$ac_exeext'
49846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49847   (eval $ac_try) 2>&5
49848   ac_status=$?
49849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49850   (exit $ac_status); }; }; then
49851   glibcxx_cv_func___builtin_sinf_link=yes
49852 else
49853   echo "$as_me: failed program was:" >&5
49854 sed 's/^/| /' conftest.$ac_ext >&5
49855
49856 glibcxx_cv_func___builtin_sinf_link=no
49857 fi
49858 rm -f conftest.err conftest.$ac_objext \
49859       conftest$ac_exeext conftest.$ac_ext
49860
49861 fi
49862
49863     fi
49864     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
49865 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
49866     if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
49867       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
49868       cat >>confdefs.h <<_ACEOF
49869 #define ${ac_tr_func} 1
49870 _ACEOF
49871
49872     fi
49873   fi
49874
49875
49876   echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
49877 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
49878   if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
49879     if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
49880   echo $ECHO_N "(cached) $ECHO_C" >&6
49881 else
49882
49883
49884
49885       ac_ext=cc
49886 ac_cpp='$CXXCPP $CPPFLAGS'
49887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
49890
49891       cat >conftest.$ac_ext <<_ACEOF
49892 /* confdefs.h.  */
49893 _ACEOF
49894 cat confdefs.h >>conftest.$ac_ext
49895 cat >>conftest.$ac_ext <<_ACEOF
49896 /* end confdefs.h.  */
49897 #include <math.h>
49898 int
49899 main ()
49900 {
49901  __builtin_sin(0);
49902   ;
49903   return 0;
49904 }
49905 _ACEOF
49906 rm -f conftest.$ac_objext
49907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49908   (eval $ac_compile) 2>conftest.er1
49909   ac_status=$?
49910   grep -v '^ *+' conftest.er1 >conftest.err
49911   rm -f conftest.er1
49912   cat conftest.err >&5
49913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49914   (exit $ac_status); } &&
49915          { ac_try='test -z "$ac_cxx_werror_flag"
49916                          || test ! -s conftest.err'
49917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49918   (eval $ac_try) 2>&5
49919   ac_status=$?
49920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49921   (exit $ac_status); }; } &&
49922          { ac_try='test -s conftest.$ac_objext'
49923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49924   (eval $ac_try) 2>&5
49925   ac_status=$?
49926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49927   (exit $ac_status); }; }; then
49928   glibcxx_cv_func___builtin_sin_use=yes
49929 else
49930   echo "$as_me: failed program was:" >&5
49931 sed 's/^/| /' conftest.$ac_ext >&5
49932
49933 glibcxx_cv_func___builtin_sin_use=no
49934 fi
49935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49936       ac_ext=c
49937 ac_cpp='$CPP $CPPFLAGS'
49938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49941
49942
49943 fi
49944
49945   fi
49946   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
49947 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
49948   if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
49949     echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
49950 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
49951     if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
49952       if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
49953   echo $ECHO_N "(cached) $ECHO_C" >&6
49954 else
49955
49956         if test x$gcc_no_link = xyes; then
49957   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
49958 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
49959    { (exit 1); exit 1; }; }
49960 fi
49961 cat >conftest.$ac_ext <<_ACEOF
49962 /* confdefs.h.  */
49963 _ACEOF
49964 cat confdefs.h >>conftest.$ac_ext
49965 cat >>conftest.$ac_ext <<_ACEOF
49966 /* end confdefs.h.  */
49967 #include <math.h>
49968 int
49969 main ()
49970 {
49971  __builtin_sin(0);
49972   ;
49973   return 0;
49974 }
49975 _ACEOF
49976 rm -f conftest.$ac_objext conftest$ac_exeext
49977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49978   (eval $ac_link) 2>conftest.er1
49979   ac_status=$?
49980   grep -v '^ *+' conftest.er1 >conftest.err
49981   rm -f conftest.er1
49982   cat conftest.err >&5
49983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49984   (exit $ac_status); } &&
49985          { ac_try='test -z "$ac_c_werror_flag"
49986                          || test ! -s conftest.err'
49987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49988   (eval $ac_try) 2>&5
49989   ac_status=$?
49990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49991   (exit $ac_status); }; } &&
49992          { ac_try='test -s conftest$ac_exeext'
49993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49994   (eval $ac_try) 2>&5
49995   ac_status=$?
49996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49997   (exit $ac_status); }; }; then
49998   glibcxx_cv_func___builtin_sin_link=yes
49999 else
50000   echo "$as_me: failed program was:" >&5
50001 sed 's/^/| /' conftest.$ac_ext >&5
50002
50003 glibcxx_cv_func___builtin_sin_link=no
50004 fi
50005 rm -f conftest.err conftest.$ac_objext \
50006       conftest$ac_exeext conftest.$ac_ext
50007
50008 fi
50009
50010     fi
50011     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
50012 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
50013     if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
50014       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50015       cat >>confdefs.h <<_ACEOF
50016 #define ${ac_tr_func} 1
50017 _ACEOF
50018
50019     fi
50020   fi
50021
50022
50023   echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
50024 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
50025   if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
50026     if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
50027   echo $ECHO_N "(cached) $ECHO_C" >&6
50028 else
50029
50030
50031
50032       ac_ext=cc
50033 ac_cpp='$CXXCPP $CPPFLAGS'
50034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50037
50038       cat >conftest.$ac_ext <<_ACEOF
50039 /* confdefs.h.  */
50040 _ACEOF
50041 cat confdefs.h >>conftest.$ac_ext
50042 cat >>conftest.$ac_ext <<_ACEOF
50043 /* end confdefs.h.  */
50044 #include <math.h>
50045 int
50046 main ()
50047 {
50048  __builtin_sinl(0);
50049   ;
50050   return 0;
50051 }
50052 _ACEOF
50053 rm -f conftest.$ac_objext
50054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50055   (eval $ac_compile) 2>conftest.er1
50056   ac_status=$?
50057   grep -v '^ *+' conftest.er1 >conftest.err
50058   rm -f conftest.er1
50059   cat conftest.err >&5
50060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50061   (exit $ac_status); } &&
50062          { ac_try='test -z "$ac_cxx_werror_flag"
50063                          || test ! -s conftest.err'
50064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50065   (eval $ac_try) 2>&5
50066   ac_status=$?
50067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50068   (exit $ac_status); }; } &&
50069          { ac_try='test -s conftest.$ac_objext'
50070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50071   (eval $ac_try) 2>&5
50072   ac_status=$?
50073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50074   (exit $ac_status); }; }; then
50075   glibcxx_cv_func___builtin_sinl_use=yes
50076 else
50077   echo "$as_me: failed program was:" >&5
50078 sed 's/^/| /' conftest.$ac_ext >&5
50079
50080 glibcxx_cv_func___builtin_sinl_use=no
50081 fi
50082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50083       ac_ext=c
50084 ac_cpp='$CPP $CPPFLAGS'
50085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50088
50089
50090 fi
50091
50092   fi
50093   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
50094 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
50095   if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
50096     echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
50097 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
50098     if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
50099       if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
50100   echo $ECHO_N "(cached) $ECHO_C" >&6
50101 else
50102
50103         if test x$gcc_no_link = xyes; then
50104   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50106    { (exit 1); exit 1; }; }
50107 fi
50108 cat >conftest.$ac_ext <<_ACEOF
50109 /* confdefs.h.  */
50110 _ACEOF
50111 cat confdefs.h >>conftest.$ac_ext
50112 cat >>conftest.$ac_ext <<_ACEOF
50113 /* end confdefs.h.  */
50114 #include <math.h>
50115 int
50116 main ()
50117 {
50118  __builtin_sinl(0);
50119   ;
50120   return 0;
50121 }
50122 _ACEOF
50123 rm -f conftest.$ac_objext conftest$ac_exeext
50124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50125   (eval $ac_link) 2>conftest.er1
50126   ac_status=$?
50127   grep -v '^ *+' conftest.er1 >conftest.err
50128   rm -f conftest.er1
50129   cat conftest.err >&5
50130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50131   (exit $ac_status); } &&
50132          { ac_try='test -z "$ac_c_werror_flag"
50133                          || test ! -s conftest.err'
50134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50135   (eval $ac_try) 2>&5
50136   ac_status=$?
50137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50138   (exit $ac_status); }; } &&
50139          { ac_try='test -s conftest$ac_exeext'
50140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50141   (eval $ac_try) 2>&5
50142   ac_status=$?
50143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50144   (exit $ac_status); }; }; then
50145   glibcxx_cv_func___builtin_sinl_link=yes
50146 else
50147   echo "$as_me: failed program was:" >&5
50148 sed 's/^/| /' conftest.$ac_ext >&5
50149
50150 glibcxx_cv_func___builtin_sinl_link=no
50151 fi
50152 rm -f conftest.err conftest.$ac_objext \
50153       conftest$ac_exeext conftest.$ac_ext
50154
50155 fi
50156
50157     fi
50158     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
50159 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
50160     if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
50161       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50162       cat >>confdefs.h <<_ACEOF
50163 #define ${ac_tr_func} 1
50164 _ACEOF
50165
50166     fi
50167   fi
50168
50169
50170
50171   echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
50172 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
50173   if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
50174     if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
50175   echo $ECHO_N "(cached) $ECHO_C" >&6
50176 else
50177
50178
50179
50180       ac_ext=cc
50181 ac_cpp='$CXXCPP $CPPFLAGS'
50182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50185
50186       cat >conftest.$ac_ext <<_ACEOF
50187 /* confdefs.h.  */
50188 _ACEOF
50189 cat confdefs.h >>conftest.$ac_ext
50190 cat >>conftest.$ac_ext <<_ACEOF
50191 /* end confdefs.h.  */
50192 #include <math.h>
50193 int
50194 main ()
50195 {
50196  __builtin_cosf(0);
50197   ;
50198   return 0;
50199 }
50200 _ACEOF
50201 rm -f conftest.$ac_objext
50202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50203   (eval $ac_compile) 2>conftest.er1
50204   ac_status=$?
50205   grep -v '^ *+' conftest.er1 >conftest.err
50206   rm -f conftest.er1
50207   cat conftest.err >&5
50208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50209   (exit $ac_status); } &&
50210          { ac_try='test -z "$ac_cxx_werror_flag"
50211                          || test ! -s conftest.err'
50212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50213   (eval $ac_try) 2>&5
50214   ac_status=$?
50215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50216   (exit $ac_status); }; } &&
50217          { ac_try='test -s conftest.$ac_objext'
50218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50219   (eval $ac_try) 2>&5
50220   ac_status=$?
50221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50222   (exit $ac_status); }; }; then
50223   glibcxx_cv_func___builtin_cosf_use=yes
50224 else
50225   echo "$as_me: failed program was:" >&5
50226 sed 's/^/| /' conftest.$ac_ext >&5
50227
50228 glibcxx_cv_func___builtin_cosf_use=no
50229 fi
50230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50231       ac_ext=c
50232 ac_cpp='$CPP $CPPFLAGS'
50233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50236
50237
50238 fi
50239
50240   fi
50241   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
50242 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
50243   if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
50244     echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
50245 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
50246     if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
50247       if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
50248   echo $ECHO_N "(cached) $ECHO_C" >&6
50249 else
50250
50251         if test x$gcc_no_link = xyes; then
50252   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50254    { (exit 1); exit 1; }; }
50255 fi
50256 cat >conftest.$ac_ext <<_ACEOF
50257 /* confdefs.h.  */
50258 _ACEOF
50259 cat confdefs.h >>conftest.$ac_ext
50260 cat >>conftest.$ac_ext <<_ACEOF
50261 /* end confdefs.h.  */
50262 #include <math.h>
50263 int
50264 main ()
50265 {
50266  __builtin_cosf(0);
50267   ;
50268   return 0;
50269 }
50270 _ACEOF
50271 rm -f conftest.$ac_objext conftest$ac_exeext
50272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50273   (eval $ac_link) 2>conftest.er1
50274   ac_status=$?
50275   grep -v '^ *+' conftest.er1 >conftest.err
50276   rm -f conftest.er1
50277   cat conftest.err >&5
50278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50279   (exit $ac_status); } &&
50280          { ac_try='test -z "$ac_c_werror_flag"
50281                          || test ! -s conftest.err'
50282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50283   (eval $ac_try) 2>&5
50284   ac_status=$?
50285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50286   (exit $ac_status); }; } &&
50287          { ac_try='test -s conftest$ac_exeext'
50288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50289   (eval $ac_try) 2>&5
50290   ac_status=$?
50291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50292   (exit $ac_status); }; }; then
50293   glibcxx_cv_func___builtin_cosf_link=yes
50294 else
50295   echo "$as_me: failed program was:" >&5
50296 sed 's/^/| /' conftest.$ac_ext >&5
50297
50298 glibcxx_cv_func___builtin_cosf_link=no
50299 fi
50300 rm -f conftest.err conftest.$ac_objext \
50301       conftest$ac_exeext conftest.$ac_ext
50302
50303 fi
50304
50305     fi
50306     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
50307 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
50308     if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
50309       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50310       cat >>confdefs.h <<_ACEOF
50311 #define ${ac_tr_func} 1
50312 _ACEOF
50313
50314     fi
50315   fi
50316
50317
50318   echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
50319 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
50320   if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
50321     if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
50322   echo $ECHO_N "(cached) $ECHO_C" >&6
50323 else
50324
50325
50326
50327       ac_ext=cc
50328 ac_cpp='$CXXCPP $CPPFLAGS'
50329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50332
50333       cat >conftest.$ac_ext <<_ACEOF
50334 /* confdefs.h.  */
50335 _ACEOF
50336 cat confdefs.h >>conftest.$ac_ext
50337 cat >>conftest.$ac_ext <<_ACEOF
50338 /* end confdefs.h.  */
50339 #include <math.h>
50340 int
50341 main ()
50342 {
50343  __builtin_cos(0);
50344   ;
50345   return 0;
50346 }
50347 _ACEOF
50348 rm -f conftest.$ac_objext
50349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50350   (eval $ac_compile) 2>conftest.er1
50351   ac_status=$?
50352   grep -v '^ *+' conftest.er1 >conftest.err
50353   rm -f conftest.er1
50354   cat conftest.err >&5
50355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50356   (exit $ac_status); } &&
50357          { ac_try='test -z "$ac_cxx_werror_flag"
50358                          || test ! -s conftest.err'
50359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50360   (eval $ac_try) 2>&5
50361   ac_status=$?
50362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50363   (exit $ac_status); }; } &&
50364          { ac_try='test -s conftest.$ac_objext'
50365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50366   (eval $ac_try) 2>&5
50367   ac_status=$?
50368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50369   (exit $ac_status); }; }; then
50370   glibcxx_cv_func___builtin_cos_use=yes
50371 else
50372   echo "$as_me: failed program was:" >&5
50373 sed 's/^/| /' conftest.$ac_ext >&5
50374
50375 glibcxx_cv_func___builtin_cos_use=no
50376 fi
50377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50378       ac_ext=c
50379 ac_cpp='$CPP $CPPFLAGS'
50380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50383
50384
50385 fi
50386
50387   fi
50388   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
50389 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
50390   if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
50391     echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
50392 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
50393     if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
50394       if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
50395   echo $ECHO_N "(cached) $ECHO_C" >&6
50396 else
50397
50398         if test x$gcc_no_link = xyes; then
50399   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50400 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50401    { (exit 1); exit 1; }; }
50402 fi
50403 cat >conftest.$ac_ext <<_ACEOF
50404 /* confdefs.h.  */
50405 _ACEOF
50406 cat confdefs.h >>conftest.$ac_ext
50407 cat >>conftest.$ac_ext <<_ACEOF
50408 /* end confdefs.h.  */
50409 #include <math.h>
50410 int
50411 main ()
50412 {
50413  __builtin_cos(0);
50414   ;
50415   return 0;
50416 }
50417 _ACEOF
50418 rm -f conftest.$ac_objext conftest$ac_exeext
50419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50420   (eval $ac_link) 2>conftest.er1
50421   ac_status=$?
50422   grep -v '^ *+' conftest.er1 >conftest.err
50423   rm -f conftest.er1
50424   cat conftest.err >&5
50425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50426   (exit $ac_status); } &&
50427          { ac_try='test -z "$ac_c_werror_flag"
50428                          || test ! -s conftest.err'
50429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50430   (eval $ac_try) 2>&5
50431   ac_status=$?
50432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50433   (exit $ac_status); }; } &&
50434          { ac_try='test -s conftest$ac_exeext'
50435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50436   (eval $ac_try) 2>&5
50437   ac_status=$?
50438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50439   (exit $ac_status); }; }; then
50440   glibcxx_cv_func___builtin_cos_link=yes
50441 else
50442   echo "$as_me: failed program was:" >&5
50443 sed 's/^/| /' conftest.$ac_ext >&5
50444
50445 glibcxx_cv_func___builtin_cos_link=no
50446 fi
50447 rm -f conftest.err conftest.$ac_objext \
50448       conftest$ac_exeext conftest.$ac_ext
50449
50450 fi
50451
50452     fi
50453     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
50454 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
50455     if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
50456       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50457       cat >>confdefs.h <<_ACEOF
50458 #define ${ac_tr_func} 1
50459 _ACEOF
50460
50461     fi
50462   fi
50463
50464
50465   echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
50466 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
50467   if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
50468     if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
50469   echo $ECHO_N "(cached) $ECHO_C" >&6
50470 else
50471
50472
50473
50474       ac_ext=cc
50475 ac_cpp='$CXXCPP $CPPFLAGS'
50476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
50479
50480       cat >conftest.$ac_ext <<_ACEOF
50481 /* confdefs.h.  */
50482 _ACEOF
50483 cat confdefs.h >>conftest.$ac_ext
50484 cat >>conftest.$ac_ext <<_ACEOF
50485 /* end confdefs.h.  */
50486 #include <math.h>
50487 int
50488 main ()
50489 {
50490  __builtin_cosl(0);
50491   ;
50492   return 0;
50493 }
50494 _ACEOF
50495 rm -f conftest.$ac_objext
50496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50497   (eval $ac_compile) 2>conftest.er1
50498   ac_status=$?
50499   grep -v '^ *+' conftest.er1 >conftest.err
50500   rm -f conftest.er1
50501   cat conftest.err >&5
50502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50503   (exit $ac_status); } &&
50504          { ac_try='test -z "$ac_cxx_werror_flag"
50505                          || test ! -s conftest.err'
50506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50507   (eval $ac_try) 2>&5
50508   ac_status=$?
50509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50510   (exit $ac_status); }; } &&
50511          { ac_try='test -s conftest.$ac_objext'
50512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50513   (eval $ac_try) 2>&5
50514   ac_status=$?
50515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50516   (exit $ac_status); }; }; then
50517   glibcxx_cv_func___builtin_cosl_use=yes
50518 else
50519   echo "$as_me: failed program was:" >&5
50520 sed 's/^/| /' conftest.$ac_ext >&5
50521
50522 glibcxx_cv_func___builtin_cosl_use=no
50523 fi
50524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50525       ac_ext=c
50526 ac_cpp='$CPP $CPPFLAGS'
50527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
50528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
50529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
50530
50531
50532 fi
50533
50534   fi
50535   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
50536 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
50537   if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
50538     echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
50539 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
50540     if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
50541       if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
50542   echo $ECHO_N "(cached) $ECHO_C" >&6
50543 else
50544
50545         if test x$gcc_no_link = xyes; then
50546   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50547 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50548    { (exit 1); exit 1; }; }
50549 fi
50550 cat >conftest.$ac_ext <<_ACEOF
50551 /* confdefs.h.  */
50552 _ACEOF
50553 cat confdefs.h >>conftest.$ac_ext
50554 cat >>conftest.$ac_ext <<_ACEOF
50555 /* end confdefs.h.  */
50556 #include <math.h>
50557 int
50558 main ()
50559 {
50560  __builtin_cosl(0);
50561   ;
50562   return 0;
50563 }
50564 _ACEOF
50565 rm -f conftest.$ac_objext conftest$ac_exeext
50566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50567   (eval $ac_link) 2>conftest.er1
50568   ac_status=$?
50569   grep -v '^ *+' conftest.er1 >conftest.err
50570   rm -f conftest.er1
50571   cat conftest.err >&5
50572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50573   (exit $ac_status); } &&
50574          { ac_try='test -z "$ac_c_werror_flag"
50575                          || test ! -s conftest.err'
50576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50577   (eval $ac_try) 2>&5
50578   ac_status=$?
50579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50580   (exit $ac_status); }; } &&
50581          { ac_try='test -s conftest$ac_exeext'
50582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50583   (eval $ac_try) 2>&5
50584   ac_status=$?
50585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50586   (exit $ac_status); }; }; then
50587   glibcxx_cv_func___builtin_cosl_link=yes
50588 else
50589   echo "$as_me: failed program was:" >&5
50590 sed 's/^/| /' conftest.$ac_ext >&5
50591
50592 glibcxx_cv_func___builtin_cosl_link=no
50593 fi
50594 rm -f conftest.err conftest.$ac_objext \
50595       conftest$ac_exeext conftest.$ac_ext
50596
50597 fi
50598
50599     fi
50600     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
50601 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
50602     if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
50603       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
50604       cat >>confdefs.h <<_ACEOF
50605 #define ${ac_tr_func} 1
50606 _ACEOF
50607
50608     fi
50609   fi
50610
50611
50612               dummyvar=no
50613   if test x$dummyvar = x"yes"; then
50614     cat >>confdefs.h <<\_ACEOF
50615 #define HAVE___BUILTIN_ABS 1
50616 _ACEOF
50617
50618     cat >>confdefs.h <<\_ACEOF
50619 #define HAVE___BUILTIN_LABS 1
50620 _ACEOF
50621
50622     cat >>confdefs.h <<\_ACEOF
50623 #define HAVE___BUILTIN_COS 1
50624 _ACEOF
50625
50626     cat >>confdefs.h <<\_ACEOF
50627 #define HAVE___BUILTIN_COSF 1
50628 _ACEOF
50629
50630     cat >>confdefs.h <<\_ACEOF
50631 #define HAVE___BUILTIN_COSL 1
50632 _ACEOF
50633
50634     cat >>confdefs.h <<\_ACEOF
50635 #define HAVE___BUILTIN_FABS 1
50636 _ACEOF
50637
50638     cat >>confdefs.h <<\_ACEOF
50639 #define HAVE___BUILTIN_FABSF 1
50640 _ACEOF
50641
50642     cat >>confdefs.h <<\_ACEOF
50643 #define HAVE___BUILTIN_FABSL 1
50644 _ACEOF
50645
50646     cat >>confdefs.h <<\_ACEOF
50647 #define HAVE___BUILTIN_SIN 1
50648 _ACEOF
50649
50650     cat >>confdefs.h <<\_ACEOF
50651 #define HAVE___BUILTIN_SINF 1
50652 _ACEOF
50653
50654     cat >>confdefs.h <<\_ACEOF
50655 #define HAVE___BUILTIN_SINL 1
50656 _ACEOF
50657
50658     cat >>confdefs.h <<\_ACEOF
50659 #define HAVE___BUILTIN_SQRT 1
50660 _ACEOF
50661
50662     cat >>confdefs.h <<\_ACEOF
50663 #define HAVE___BUILTIN_SQRTF 1
50664 _ACEOF
50665
50666     cat >>confdefs.h <<\_ACEOF
50667 #define HAVE___BUILTIN_SQRTL 1
50668 _ACEOF
50669
50670   fi
50671
50672
50673
50674 echo "$as_me:$LINENO: checking for main in -lm" >&5
50675 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
50676 if test "${ac_cv_lib_m_main+set}" = set; then
50677   echo $ECHO_N "(cached) $ECHO_C" >&6
50678 else
50679   ac_check_lib_save_LIBS=$LIBS
50680 LIBS="-lm  $LIBS"
50681 if test x$gcc_no_link = xyes; then
50682   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50684    { (exit 1); exit 1; }; }
50685 fi
50686 cat >conftest.$ac_ext <<_ACEOF
50687 /* confdefs.h.  */
50688 _ACEOF
50689 cat confdefs.h >>conftest.$ac_ext
50690 cat >>conftest.$ac_ext <<_ACEOF
50691 /* end confdefs.h.  */
50692
50693
50694 int
50695 main ()
50696 {
50697 main ();
50698   ;
50699   return 0;
50700 }
50701 _ACEOF
50702 rm -f conftest.$ac_objext conftest$ac_exeext
50703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50704   (eval $ac_link) 2>conftest.er1
50705   ac_status=$?
50706   grep -v '^ *+' conftest.er1 >conftest.err
50707   rm -f conftest.er1
50708   cat conftest.err >&5
50709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50710   (exit $ac_status); } &&
50711          { ac_try='test -z "$ac_c_werror_flag"
50712                          || test ! -s conftest.err'
50713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50714   (eval $ac_try) 2>&5
50715   ac_status=$?
50716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50717   (exit $ac_status); }; } &&
50718          { ac_try='test -s conftest$ac_exeext'
50719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50720   (eval $ac_try) 2>&5
50721   ac_status=$?
50722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50723   (exit $ac_status); }; }; then
50724   ac_cv_lib_m_main=yes
50725 else
50726   echo "$as_me: failed program was:" >&5
50727 sed 's/^/| /' conftest.$ac_ext >&5
50728
50729 ac_cv_lib_m_main=no
50730 fi
50731 rm -f conftest.err conftest.$ac_objext \
50732       conftest$ac_exeext conftest.$ac_ext
50733 LIBS=$ac_check_lib_save_LIBS
50734 fi
50735 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
50736 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
50737 if test $ac_cv_lib_m_main = yes; then
50738   cat >>confdefs.h <<_ACEOF
50739 #define HAVE_LIBM 1
50740 _ACEOF
50741
50742   LIBS="-lm $LIBS"
50743
50744 fi
50745
50746
50747 for ac_func in copysignf
50748 do
50749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50750 echo "$as_me:$LINENO: checking for $ac_func" >&5
50751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50752 if eval "test \"\${$as_ac_var+set}\" = set"; then
50753   echo $ECHO_N "(cached) $ECHO_C" >&6
50754 else
50755   if test x$gcc_no_link = xyes; then
50756   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50757 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50758    { (exit 1); exit 1; }; }
50759 fi
50760 cat >conftest.$ac_ext <<_ACEOF
50761 /* confdefs.h.  */
50762 _ACEOF
50763 cat confdefs.h >>conftest.$ac_ext
50764 cat >>conftest.$ac_ext <<_ACEOF
50765 /* end confdefs.h.  */
50766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50768 #define $ac_func innocuous_$ac_func
50769
50770 /* System header to define __stub macros and hopefully few prototypes,
50771     which can conflict with char $ac_func (); below.
50772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50773     <limits.h> exists even on freestanding compilers.  */
50774
50775 #ifdef __STDC__
50776 # include <limits.h>
50777 #else
50778 # include <assert.h>
50779 #endif
50780
50781 #undef $ac_func
50782
50783 /* Override any gcc2 internal prototype to avoid an error.  */
50784 #ifdef __cplusplus
50785 extern "C"
50786 {
50787 #endif
50788 /* We use char because int might match the return type of a gcc2
50789    builtin and then its argument prototype would still apply.  */
50790 char $ac_func ();
50791 /* The GNU C library defines this for functions which it implements
50792     to always fail with ENOSYS.  Some functions are actually named
50793     something starting with __ and the normal name is an alias.  */
50794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50795 choke me
50796 #else
50797 char (*f) () = $ac_func;
50798 #endif
50799 #ifdef __cplusplus
50800 }
50801 #endif
50802
50803 int
50804 main ()
50805 {
50806 return f != $ac_func;
50807   ;
50808   return 0;
50809 }
50810 _ACEOF
50811 rm -f conftest.$ac_objext conftest$ac_exeext
50812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50813   (eval $ac_link) 2>conftest.er1
50814   ac_status=$?
50815   grep -v '^ *+' conftest.er1 >conftest.err
50816   rm -f conftest.er1
50817   cat conftest.err >&5
50818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50819   (exit $ac_status); } &&
50820          { ac_try='test -z "$ac_c_werror_flag"
50821                          || test ! -s conftest.err'
50822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50823   (eval $ac_try) 2>&5
50824   ac_status=$?
50825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50826   (exit $ac_status); }; } &&
50827          { ac_try='test -s conftest$ac_exeext'
50828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50829   (eval $ac_try) 2>&5
50830   ac_status=$?
50831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50832   (exit $ac_status); }; }; then
50833   eval "$as_ac_var=yes"
50834 else
50835   echo "$as_me: failed program was:" >&5
50836 sed 's/^/| /' conftest.$ac_ext >&5
50837
50838 eval "$as_ac_var=no"
50839 fi
50840 rm -f conftest.err conftest.$ac_objext \
50841       conftest$ac_exeext conftest.$ac_ext
50842 fi
50843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50845 if test `eval echo '${'$as_ac_var'}'` = yes; then
50846   cat >>confdefs.h <<_ACEOF
50847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50848 _ACEOF
50849
50850 else
50851   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
50852 fi
50853 done
50854
50855
50856
50857 for ac_func in __signbit
50858 do
50859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50860 echo "$as_me:$LINENO: checking for $ac_func" >&5
50861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50862 if eval "test \"\${$as_ac_var+set}\" = set"; then
50863   echo $ECHO_N "(cached) $ECHO_C" >&6
50864 else
50865   if test x$gcc_no_link = xyes; then
50866   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50867 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50868    { (exit 1); exit 1; }; }
50869 fi
50870 cat >conftest.$ac_ext <<_ACEOF
50871 /* confdefs.h.  */
50872 _ACEOF
50873 cat confdefs.h >>conftest.$ac_ext
50874 cat >>conftest.$ac_ext <<_ACEOF
50875 /* end confdefs.h.  */
50876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50878 #define $ac_func innocuous_$ac_func
50879
50880 /* System header to define __stub macros and hopefully few prototypes,
50881     which can conflict with char $ac_func (); below.
50882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50883     <limits.h> exists even on freestanding compilers.  */
50884
50885 #ifdef __STDC__
50886 # include <limits.h>
50887 #else
50888 # include <assert.h>
50889 #endif
50890
50891 #undef $ac_func
50892
50893 /* Override any gcc2 internal prototype to avoid an error.  */
50894 #ifdef __cplusplus
50895 extern "C"
50896 {
50897 #endif
50898 /* We use char because int might match the return type of a gcc2
50899    builtin and then its argument prototype would still apply.  */
50900 char $ac_func ();
50901 /* The GNU C library defines this for functions which it implements
50902     to always fail with ENOSYS.  Some functions are actually named
50903     something starting with __ and the normal name is an alias.  */
50904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50905 choke me
50906 #else
50907 char (*f) () = $ac_func;
50908 #endif
50909 #ifdef __cplusplus
50910 }
50911 #endif
50912
50913 int
50914 main ()
50915 {
50916 return f != $ac_func;
50917   ;
50918   return 0;
50919 }
50920 _ACEOF
50921 rm -f conftest.$ac_objext conftest$ac_exeext
50922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50923   (eval $ac_link) 2>conftest.er1
50924   ac_status=$?
50925   grep -v '^ *+' conftest.er1 >conftest.err
50926   rm -f conftest.er1
50927   cat conftest.err >&5
50928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50929   (exit $ac_status); } &&
50930          { ac_try='test -z "$ac_c_werror_flag"
50931                          || test ! -s conftest.err'
50932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50933   (eval $ac_try) 2>&5
50934   ac_status=$?
50935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50936   (exit $ac_status); }; } &&
50937          { ac_try='test -s conftest$ac_exeext'
50938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50939   (eval $ac_try) 2>&5
50940   ac_status=$?
50941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50942   (exit $ac_status); }; }; then
50943   eval "$as_ac_var=yes"
50944 else
50945   echo "$as_me: failed program was:" >&5
50946 sed 's/^/| /' conftest.$ac_ext >&5
50947
50948 eval "$as_ac_var=no"
50949 fi
50950 rm -f conftest.err conftest.$ac_objext \
50951       conftest$ac_exeext conftest.$ac_ext
50952 fi
50953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50955 if test `eval echo '${'$as_ac_var'}'` = yes; then
50956   cat >>confdefs.h <<_ACEOF
50957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50958 _ACEOF
50959
50960 else
50961   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
50962 fi
50963 done
50964
50965
50966 for ac_func in __signbitf
50967 do
50968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50969 echo "$as_me:$LINENO: checking for $ac_func" >&5
50970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50971 if eval "test \"\${$as_ac_var+set}\" = set"; then
50972   echo $ECHO_N "(cached) $ECHO_C" >&6
50973 else
50974   if test x$gcc_no_link = xyes; then
50975   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
50976 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
50977    { (exit 1); exit 1; }; }
50978 fi
50979 cat >conftest.$ac_ext <<_ACEOF
50980 /* confdefs.h.  */
50981 _ACEOF
50982 cat confdefs.h >>conftest.$ac_ext
50983 cat >>conftest.$ac_ext <<_ACEOF
50984 /* end confdefs.h.  */
50985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50987 #define $ac_func innocuous_$ac_func
50988
50989 /* System header to define __stub macros and hopefully few prototypes,
50990     which can conflict with char $ac_func (); below.
50991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50992     <limits.h> exists even on freestanding compilers.  */
50993
50994 #ifdef __STDC__
50995 # include <limits.h>
50996 #else
50997 # include <assert.h>
50998 #endif
50999
51000 #undef $ac_func
51001
51002 /* Override any gcc2 internal prototype to avoid an error.  */
51003 #ifdef __cplusplus
51004 extern "C"
51005 {
51006 #endif
51007 /* We use char because int might match the return type of a gcc2
51008    builtin and then its argument prototype would still apply.  */
51009 char $ac_func ();
51010 /* The GNU C library defines this for functions which it implements
51011     to always fail with ENOSYS.  Some functions are actually named
51012     something starting with __ and the normal name is an alias.  */
51013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51014 choke me
51015 #else
51016 char (*f) () = $ac_func;
51017 #endif
51018 #ifdef __cplusplus
51019 }
51020 #endif
51021
51022 int
51023 main ()
51024 {
51025 return f != $ac_func;
51026   ;
51027   return 0;
51028 }
51029 _ACEOF
51030 rm -f conftest.$ac_objext conftest$ac_exeext
51031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51032   (eval $ac_link) 2>conftest.er1
51033   ac_status=$?
51034   grep -v '^ *+' conftest.er1 >conftest.err
51035   rm -f conftest.er1
51036   cat conftest.err >&5
51037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51038   (exit $ac_status); } &&
51039          { ac_try='test -z "$ac_c_werror_flag"
51040                          || test ! -s conftest.err'
51041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51042   (eval $ac_try) 2>&5
51043   ac_status=$?
51044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51045   (exit $ac_status); }; } &&
51046          { ac_try='test -s conftest$ac_exeext'
51047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51048   (eval $ac_try) 2>&5
51049   ac_status=$?
51050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51051   (exit $ac_status); }; }; then
51052   eval "$as_ac_var=yes"
51053 else
51054   echo "$as_me: failed program was:" >&5
51055 sed 's/^/| /' conftest.$ac_ext >&5
51056
51057 eval "$as_ac_var=no"
51058 fi
51059 rm -f conftest.err conftest.$ac_objext \
51060       conftest$ac_exeext conftest.$ac_ext
51061 fi
51062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51064 if test `eval echo '${'$as_ac_var'}'` = yes; then
51065   cat >>confdefs.h <<_ACEOF
51066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51067 _ACEOF
51068
51069 else
51070   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
51071 fi
51072 done
51073
51074
51075           if test x$ac_cv_func_copysignl = x"yes"; then
51076
51077 for ac_func in __signbitl
51078 do
51079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51080 echo "$as_me:$LINENO: checking for $ac_func" >&5
51081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51082 if eval "test \"\${$as_ac_var+set}\" = set"; then
51083   echo $ECHO_N "(cached) $ECHO_C" >&6
51084 else
51085   if test x$gcc_no_link = xyes; then
51086   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51087 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51088    { (exit 1); exit 1; }; }
51089 fi
51090 cat >conftest.$ac_ext <<_ACEOF
51091 /* confdefs.h.  */
51092 _ACEOF
51093 cat confdefs.h >>conftest.$ac_ext
51094 cat >>conftest.$ac_ext <<_ACEOF
51095 /* end confdefs.h.  */
51096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51098 #define $ac_func innocuous_$ac_func
51099
51100 /* System header to define __stub macros and hopefully few prototypes,
51101     which can conflict with char $ac_func (); below.
51102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51103     <limits.h> exists even on freestanding compilers.  */
51104
51105 #ifdef __STDC__
51106 # include <limits.h>
51107 #else
51108 # include <assert.h>
51109 #endif
51110
51111 #undef $ac_func
51112
51113 /* Override any gcc2 internal prototype to avoid an error.  */
51114 #ifdef __cplusplus
51115 extern "C"
51116 {
51117 #endif
51118 /* We use char because int might match the return type of a gcc2
51119    builtin and then its argument prototype would still apply.  */
51120 char $ac_func ();
51121 /* The GNU C library defines this for functions which it implements
51122     to always fail with ENOSYS.  Some functions are actually named
51123     something starting with __ and the normal name is an alias.  */
51124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51125 choke me
51126 #else
51127 char (*f) () = $ac_func;
51128 #endif
51129 #ifdef __cplusplus
51130 }
51131 #endif
51132
51133 int
51134 main ()
51135 {
51136 return f != $ac_func;
51137   ;
51138   return 0;
51139 }
51140 _ACEOF
51141 rm -f conftest.$ac_objext conftest$ac_exeext
51142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51143   (eval $ac_link) 2>conftest.er1
51144   ac_status=$?
51145   grep -v '^ *+' conftest.er1 >conftest.err
51146   rm -f conftest.er1
51147   cat conftest.err >&5
51148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51149   (exit $ac_status); } &&
51150          { ac_try='test -z "$ac_c_werror_flag"
51151                          || test ! -s conftest.err'
51152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51153   (eval $ac_try) 2>&5
51154   ac_status=$?
51155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51156   (exit $ac_status); }; } &&
51157          { ac_try='test -s conftest$ac_exeext'
51158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51159   (eval $ac_try) 2>&5
51160   ac_status=$?
51161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51162   (exit $ac_status); }; }; then
51163   eval "$as_ac_var=yes"
51164 else
51165   echo "$as_me: failed program was:" >&5
51166 sed 's/^/| /' conftest.$ac_ext >&5
51167
51168 eval "$as_ac_var=no"
51169 fi
51170 rm -f conftest.err conftest.$ac_objext \
51171       conftest$ac_exeext conftest.$ac_ext
51172 fi
51173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51174 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51175 if test `eval echo '${'$as_ac_var'}'` = yes; then
51176   cat >>confdefs.h <<_ACEOF
51177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51178 _ACEOF
51179
51180 else
51181   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
51182 fi
51183 done
51184
51185   fi
51186
51187   # XXX Review this.  Nothing uses it.
51188   if test -n "$LIBMATHOBJS"; then
51189     need_libmath=yes
51190   fi
51191
51192
51193
51194   # Test wchar.h for mbstate_t, which is needed for char_traits and
51195   # others even if wchar_t support is not on.
51196   echo "$as_me:$LINENO: checking for mbstate_t" >&5
51197 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
51198   cat >conftest.$ac_ext <<_ACEOF
51199 /* confdefs.h.  */
51200 _ACEOF
51201 cat confdefs.h >>conftest.$ac_ext
51202 cat >>conftest.$ac_ext <<_ACEOF
51203 /* end confdefs.h.  */
51204 #include <wchar.h>
51205 int
51206 main ()
51207 {
51208 mbstate_t teststate;
51209   ;
51210   return 0;
51211 }
51212 _ACEOF
51213 rm -f conftest.$ac_objext
51214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51215   (eval $ac_compile) 2>conftest.er1
51216   ac_status=$?
51217   grep -v '^ *+' conftest.er1 >conftest.err
51218   rm -f conftest.er1
51219   cat conftest.err >&5
51220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51221   (exit $ac_status); } &&
51222          { ac_try='test -z "$ac_c_werror_flag"
51223                          || test ! -s conftest.err'
51224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51225   (eval $ac_try) 2>&5
51226   ac_status=$?
51227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51228   (exit $ac_status); }; } &&
51229          { ac_try='test -s conftest.$ac_objext'
51230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51231   (eval $ac_try) 2>&5
51232   ac_status=$?
51233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51234   (exit $ac_status); }; }; then
51235   have_mbstate_t=yes
51236 else
51237   echo "$as_me: failed program was:" >&5
51238 sed 's/^/| /' conftest.$ac_ext >&5
51239
51240 have_mbstate_t=no
51241 fi
51242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51243   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
51244 echo "${ECHO_T}$have_mbstate_t" >&6
51245   if test x"$have_mbstate_t" = xyes; then
51246     cat >>confdefs.h <<\_ACEOF
51247 #define HAVE_MBSTATE_T 1
51248 _ACEOF
51249
51250   fi
51251
51252   # Sanity check for existence of ISO C99 headers for extended encoding.
51253
51254 for ac_header in wchar.h
51255 do
51256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51258   echo "$as_me:$LINENO: checking for $ac_header" >&5
51259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51261   echo $ECHO_N "(cached) $ECHO_C" >&6
51262 fi
51263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51265 else
51266   # Is the header compilable?
51267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51269 cat >conftest.$ac_ext <<_ACEOF
51270 /* confdefs.h.  */
51271 _ACEOF
51272 cat confdefs.h >>conftest.$ac_ext
51273 cat >>conftest.$ac_ext <<_ACEOF
51274 /* end confdefs.h.  */
51275 $ac_includes_default
51276 #include <$ac_header>
51277 _ACEOF
51278 rm -f conftest.$ac_objext
51279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51280   (eval $ac_compile) 2>conftest.er1
51281   ac_status=$?
51282   grep -v '^ *+' conftest.er1 >conftest.err
51283   rm -f conftest.er1
51284   cat conftest.err >&5
51285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51286   (exit $ac_status); } &&
51287          { ac_try='test -z "$ac_c_werror_flag"
51288                          || test ! -s conftest.err'
51289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51290   (eval $ac_try) 2>&5
51291   ac_status=$?
51292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51293   (exit $ac_status); }; } &&
51294          { ac_try='test -s conftest.$ac_objext'
51295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51296   (eval $ac_try) 2>&5
51297   ac_status=$?
51298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51299   (exit $ac_status); }; }; then
51300   ac_header_compiler=yes
51301 else
51302   echo "$as_me: failed program was:" >&5
51303 sed 's/^/| /' conftest.$ac_ext >&5
51304
51305 ac_header_compiler=no
51306 fi
51307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51309 echo "${ECHO_T}$ac_header_compiler" >&6
51310
51311 # Is the header present?
51312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51314 cat >conftest.$ac_ext <<_ACEOF
51315 /* confdefs.h.  */
51316 _ACEOF
51317 cat confdefs.h >>conftest.$ac_ext
51318 cat >>conftest.$ac_ext <<_ACEOF
51319 /* end confdefs.h.  */
51320 #include <$ac_header>
51321 _ACEOF
51322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51324   ac_status=$?
51325   grep -v '^ *+' conftest.er1 >conftest.err
51326   rm -f conftest.er1
51327   cat conftest.err >&5
51328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51329   (exit $ac_status); } >/dev/null; then
51330   if test -s conftest.err; then
51331     ac_cpp_err=$ac_c_preproc_warn_flag
51332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51333   else
51334     ac_cpp_err=
51335   fi
51336 else
51337   ac_cpp_err=yes
51338 fi
51339 if test -z "$ac_cpp_err"; then
51340   ac_header_preproc=yes
51341 else
51342   echo "$as_me: failed program was:" >&5
51343 sed 's/^/| /' conftest.$ac_ext >&5
51344
51345   ac_header_preproc=no
51346 fi
51347 rm -f conftest.err conftest.$ac_ext
51348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51349 echo "${ECHO_T}$ac_header_preproc" >&6
51350
51351 # So?  What about this header?
51352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51353   yes:no: )
51354     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51358     ac_header_preproc=yes
51359     ;;
51360   no:yes:* )
51361     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51363     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
51364 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
51365     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51367     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
51368 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
51369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51371     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51373     (
51374       cat <<\_ASBOX
51375 ## ----------------------------------------- ##
51376 ## Report this to the package-unused lists.  ##
51377 ## ----------------------------------------- ##
51378 _ASBOX
51379     ) |
51380       sed "s/^/$as_me: WARNING:     /" >&2
51381     ;;
51382 esac
51383 echo "$as_me:$LINENO: checking for $ac_header" >&5
51384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51386   echo $ECHO_N "(cached) $ECHO_C" >&6
51387 else
51388   eval "$as_ac_Header=\$ac_header_preproc"
51389 fi
51390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51392
51393 fi
51394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51395   cat >>confdefs.h <<_ACEOF
51396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51397 _ACEOF
51398  ac_has_wchar_h=yes
51399 else
51400   ac_has_wchar_h=no
51401 fi
51402
51403 done
51404
51405
51406 for ac_header in wctype.h
51407 do
51408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51410   echo "$as_me:$LINENO: checking for $ac_header" >&5
51411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51413   echo $ECHO_N "(cached) $ECHO_C" >&6
51414 fi
51415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51417 else
51418   # Is the header compilable?
51419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51421 cat >conftest.$ac_ext <<_ACEOF
51422 /* confdefs.h.  */
51423 _ACEOF
51424 cat confdefs.h >>conftest.$ac_ext
51425 cat >>conftest.$ac_ext <<_ACEOF
51426 /* end confdefs.h.  */
51427 $ac_includes_default
51428 #include <$ac_header>
51429 _ACEOF
51430 rm -f conftest.$ac_objext
51431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51432   (eval $ac_compile) 2>conftest.er1
51433   ac_status=$?
51434   grep -v '^ *+' conftest.er1 >conftest.err
51435   rm -f conftest.er1
51436   cat conftest.err >&5
51437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51438   (exit $ac_status); } &&
51439          { ac_try='test -z "$ac_c_werror_flag"
51440                          || test ! -s conftest.err'
51441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51442   (eval $ac_try) 2>&5
51443   ac_status=$?
51444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51445   (exit $ac_status); }; } &&
51446          { ac_try='test -s conftest.$ac_objext'
51447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51448   (eval $ac_try) 2>&5
51449   ac_status=$?
51450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51451   (exit $ac_status); }; }; then
51452   ac_header_compiler=yes
51453 else
51454   echo "$as_me: failed program was:" >&5
51455 sed 's/^/| /' conftest.$ac_ext >&5
51456
51457 ac_header_compiler=no
51458 fi
51459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51461 echo "${ECHO_T}$ac_header_compiler" >&6
51462
51463 # Is the header present?
51464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51466 cat >conftest.$ac_ext <<_ACEOF
51467 /* confdefs.h.  */
51468 _ACEOF
51469 cat confdefs.h >>conftest.$ac_ext
51470 cat >>conftest.$ac_ext <<_ACEOF
51471 /* end confdefs.h.  */
51472 #include <$ac_header>
51473 _ACEOF
51474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51475   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51476   ac_status=$?
51477   grep -v '^ *+' conftest.er1 >conftest.err
51478   rm -f conftest.er1
51479   cat conftest.err >&5
51480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51481   (exit $ac_status); } >/dev/null; then
51482   if test -s conftest.err; then
51483     ac_cpp_err=$ac_c_preproc_warn_flag
51484     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51485   else
51486     ac_cpp_err=
51487   fi
51488 else
51489   ac_cpp_err=yes
51490 fi
51491 if test -z "$ac_cpp_err"; then
51492   ac_header_preproc=yes
51493 else
51494   echo "$as_me: failed program was:" >&5
51495 sed 's/^/| /' conftest.$ac_ext >&5
51496
51497   ac_header_preproc=no
51498 fi
51499 rm -f conftest.err conftest.$ac_ext
51500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51501 echo "${ECHO_T}$ac_header_preproc" >&6
51502
51503 # So?  What about this header?
51504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51505   yes:no: )
51506     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51510     ac_header_preproc=yes
51511     ;;
51512   no:yes:* )
51513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51515     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
51516 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
51517     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51519     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
51520 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
51521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51523     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51525     (
51526       cat <<\_ASBOX
51527 ## ----------------------------------------- ##
51528 ## Report this to the package-unused lists.  ##
51529 ## ----------------------------------------- ##
51530 _ASBOX
51531     ) |
51532       sed "s/^/$as_me: WARNING:     /" >&2
51533     ;;
51534 esac
51535 echo "$as_me:$LINENO: checking for $ac_header" >&5
51536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51538   echo $ECHO_N "(cached) $ECHO_C" >&6
51539 else
51540   eval "$as_ac_Header=\$ac_header_preproc"
51541 fi
51542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51544
51545 fi
51546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51547   cat >>confdefs.h <<_ACEOF
51548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51549 _ACEOF
51550  ac_has_wctype_h=yes
51551 else
51552   ac_has_wctype_h=no
51553 fi
51554
51555 done
51556
51557
51558   # Only continue checking if the ISO C99 headers exist and support is on.
51559   if test x"$ac_has_wchar_h" = xyes &&
51560      test x"$ac_has_wctype_h" = xyes &&
51561      test x"$enable_c_mbchar" != xno; then
51562
51563     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
51564     # numeric_limits can instantiate type_traits<wchar_t>
51565     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
51566 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
51567     cat >conftest.$ac_ext <<_ACEOF
51568 /* confdefs.h.  */
51569 _ACEOF
51570 cat confdefs.h >>conftest.$ac_ext
51571 cat >>conftest.$ac_ext <<_ACEOF
51572 /* end confdefs.h.  */
51573 #include <wchar.h>
51574 int
51575 main ()
51576 {
51577 int i = WCHAR_MIN; int j = WCHAR_MAX;
51578   ;
51579   return 0;
51580 }
51581 _ACEOF
51582 rm -f conftest.$ac_objext
51583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51584   (eval $ac_compile) 2>conftest.er1
51585   ac_status=$?
51586   grep -v '^ *+' conftest.er1 >conftest.err
51587   rm -f conftest.er1
51588   cat conftest.err >&5
51589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51590   (exit $ac_status); } &&
51591          { ac_try='test -z "$ac_c_werror_flag"
51592                          || test ! -s conftest.err'
51593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51594   (eval $ac_try) 2>&5
51595   ac_status=$?
51596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51597   (exit $ac_status); }; } &&
51598          { ac_try='test -s conftest.$ac_objext'
51599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51600   (eval $ac_try) 2>&5
51601   ac_status=$?
51602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51603   (exit $ac_status); }; }; then
51604   has_wchar_minmax=yes
51605 else
51606   echo "$as_me: failed program was:" >&5
51607 sed 's/^/| /' conftest.$ac_ext >&5
51608
51609 has_wchar_minmax=no
51610 fi
51611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51612     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
51613 echo "${ECHO_T}$has_wchar_minmax" >&6
51614
51615     # Test wchar.h for WEOF, which is what we use to determine whether
51616     # to specialize for char_traits<wchar_t> or not.
51617     echo "$as_me:$LINENO: checking for WEOF" >&5
51618 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
51619     cat >conftest.$ac_ext <<_ACEOF
51620 /* confdefs.h.  */
51621 _ACEOF
51622 cat confdefs.h >>conftest.$ac_ext
51623 cat >>conftest.$ac_ext <<_ACEOF
51624 /* end confdefs.h.  */
51625
51626       #include <wchar.h>
51627       #include <stddef.h>
51628 int
51629 main ()
51630 {
51631 wint_t i = WEOF;
51632   ;
51633   return 0;
51634 }
51635 _ACEOF
51636 rm -f conftest.$ac_objext
51637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51638   (eval $ac_compile) 2>conftest.er1
51639   ac_status=$?
51640   grep -v '^ *+' conftest.er1 >conftest.err
51641   rm -f conftest.er1
51642   cat conftest.err >&5
51643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51644   (exit $ac_status); } &&
51645          { ac_try='test -z "$ac_c_werror_flag"
51646                          || test ! -s conftest.err'
51647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51648   (eval $ac_try) 2>&5
51649   ac_status=$?
51650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51651   (exit $ac_status); }; } &&
51652          { ac_try='test -s conftest.$ac_objext'
51653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51654   (eval $ac_try) 2>&5
51655   ac_status=$?
51656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51657   (exit $ac_status); }; }; then
51658   has_weof=yes
51659 else
51660   echo "$as_me: failed program was:" >&5
51661 sed 's/^/| /' conftest.$ac_ext >&5
51662
51663 has_weof=no
51664 fi
51665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51666     echo "$as_me:$LINENO: result: $has_weof" >&5
51667 echo "${ECHO_T}$has_weof" >&6
51668
51669     # Tests for wide character functions used in char_traits<wchar_t>.
51670     ac_wfuncs=yes
51671
51672
51673
51674
51675
51676
51677 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
51678 do
51679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51680 echo "$as_me:$LINENO: checking for $ac_func" >&5
51681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51682 if eval "test \"\${$as_ac_var+set}\" = set"; then
51683   echo $ECHO_N "(cached) $ECHO_C" >&6
51684 else
51685   if test x$gcc_no_link = xyes; then
51686   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51687 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51688    { (exit 1); exit 1; }; }
51689 fi
51690 cat >conftest.$ac_ext <<_ACEOF
51691 /* confdefs.h.  */
51692 _ACEOF
51693 cat confdefs.h >>conftest.$ac_ext
51694 cat >>conftest.$ac_ext <<_ACEOF
51695 /* end confdefs.h.  */
51696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51697    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51698 #define $ac_func innocuous_$ac_func
51699
51700 /* System header to define __stub macros and hopefully few prototypes,
51701     which can conflict with char $ac_func (); below.
51702     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51703     <limits.h> exists even on freestanding compilers.  */
51704
51705 #ifdef __STDC__
51706 # include <limits.h>
51707 #else
51708 # include <assert.h>
51709 #endif
51710
51711 #undef $ac_func
51712
51713 /* Override any gcc2 internal prototype to avoid an error.  */
51714 #ifdef __cplusplus
51715 extern "C"
51716 {
51717 #endif
51718 /* We use char because int might match the return type of a gcc2
51719    builtin and then its argument prototype would still apply.  */
51720 char $ac_func ();
51721 /* The GNU C library defines this for functions which it implements
51722     to always fail with ENOSYS.  Some functions are actually named
51723     something starting with __ and the normal name is an alias.  */
51724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51725 choke me
51726 #else
51727 char (*f) () = $ac_func;
51728 #endif
51729 #ifdef __cplusplus
51730 }
51731 #endif
51732
51733 int
51734 main ()
51735 {
51736 return f != $ac_func;
51737   ;
51738   return 0;
51739 }
51740 _ACEOF
51741 rm -f conftest.$ac_objext conftest$ac_exeext
51742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51743   (eval $ac_link) 2>conftest.er1
51744   ac_status=$?
51745   grep -v '^ *+' conftest.er1 >conftest.err
51746   rm -f conftest.er1
51747   cat conftest.err >&5
51748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51749   (exit $ac_status); } &&
51750          { ac_try='test -z "$ac_c_werror_flag"
51751                          || test ! -s conftest.err'
51752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51753   (eval $ac_try) 2>&5
51754   ac_status=$?
51755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51756   (exit $ac_status); }; } &&
51757          { ac_try='test -s conftest$ac_exeext'
51758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51759   (eval $ac_try) 2>&5
51760   ac_status=$?
51761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51762   (exit $ac_status); }; }; then
51763   eval "$as_ac_var=yes"
51764 else
51765   echo "$as_me: failed program was:" >&5
51766 sed 's/^/| /' conftest.$ac_ext >&5
51767
51768 eval "$as_ac_var=no"
51769 fi
51770 rm -f conftest.err conftest.$ac_objext \
51771       conftest$ac_exeext conftest.$ac_ext
51772 fi
51773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51775 if test `eval echo '${'$as_ac_var'}'` = yes; then
51776   cat >>confdefs.h <<_ACEOF
51777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51778 _ACEOF
51779
51780 else
51781   ac_wfuncs=no
51782 fi
51783 done
51784
51785
51786     # Checks for names injected into std:: by the c_std headers.
51787
51788
51789
51790
51791
51792
51793
51794
51795
51796
51797
51798
51799
51800
51801
51802
51803
51804
51805
51806
51807
51808
51809
51810
51811
51812
51813
51814
51815
51816
51817
51818
51819
51820
51821
51822
51823
51824
51825
51826
51827
51828
51829
51830
51831
51832
51833 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
51834     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
51835     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
51836     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
51837     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
51838     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
51839 do
51840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51841 echo "$as_me:$LINENO: checking for $ac_func" >&5
51842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51843 if eval "test \"\${$as_ac_var+set}\" = set"; then
51844   echo $ECHO_N "(cached) $ECHO_C" >&6
51845 else
51846   if test x$gcc_no_link = xyes; then
51847   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51848 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51849    { (exit 1); exit 1; }; }
51850 fi
51851 cat >conftest.$ac_ext <<_ACEOF
51852 /* confdefs.h.  */
51853 _ACEOF
51854 cat confdefs.h >>conftest.$ac_ext
51855 cat >>conftest.$ac_ext <<_ACEOF
51856 /* end confdefs.h.  */
51857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51859 #define $ac_func innocuous_$ac_func
51860
51861 /* System header to define __stub macros and hopefully few prototypes,
51862     which can conflict with char $ac_func (); below.
51863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51864     <limits.h> exists even on freestanding compilers.  */
51865
51866 #ifdef __STDC__
51867 # include <limits.h>
51868 #else
51869 # include <assert.h>
51870 #endif
51871
51872 #undef $ac_func
51873
51874 /* Override any gcc2 internal prototype to avoid an error.  */
51875 #ifdef __cplusplus
51876 extern "C"
51877 {
51878 #endif
51879 /* We use char because int might match the return type of a gcc2
51880    builtin and then its argument prototype would still apply.  */
51881 char $ac_func ();
51882 /* The GNU C library defines this for functions which it implements
51883     to always fail with ENOSYS.  Some functions are actually named
51884     something starting with __ and the normal name is an alias.  */
51885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51886 choke me
51887 #else
51888 char (*f) () = $ac_func;
51889 #endif
51890 #ifdef __cplusplus
51891 }
51892 #endif
51893
51894 int
51895 main ()
51896 {
51897 return f != $ac_func;
51898   ;
51899   return 0;
51900 }
51901 _ACEOF
51902 rm -f conftest.$ac_objext conftest$ac_exeext
51903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51904   (eval $ac_link) 2>conftest.er1
51905   ac_status=$?
51906   grep -v '^ *+' conftest.er1 >conftest.err
51907   rm -f conftest.er1
51908   cat conftest.err >&5
51909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51910   (exit $ac_status); } &&
51911          { ac_try='test -z "$ac_c_werror_flag"
51912                          || test ! -s conftest.err'
51913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51914   (eval $ac_try) 2>&5
51915   ac_status=$?
51916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51917   (exit $ac_status); }; } &&
51918          { ac_try='test -s conftest$ac_exeext'
51919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51920   (eval $ac_try) 2>&5
51921   ac_status=$?
51922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51923   (exit $ac_status); }; }; then
51924   eval "$as_ac_var=yes"
51925 else
51926   echo "$as_me: failed program was:" >&5
51927 sed 's/^/| /' conftest.$ac_ext >&5
51928
51929 eval "$as_ac_var=no"
51930 fi
51931 rm -f conftest.err conftest.$ac_objext \
51932       conftest$ac_exeext conftest.$ac_ext
51933 fi
51934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51935 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51936 if test `eval echo '${'$as_ac_var'}'` = yes; then
51937   cat >>confdefs.h <<_ACEOF
51938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51939 _ACEOF
51940
51941 else
51942   ac_wfuncs=no
51943 fi
51944 done
51945
51946
51947     # Checks for wide character functions that are not required
51948     # for basic wchar_t support.  Don't disable support if they are missing.
51949     # Injection of these is wrapped with guard macros.
51950
51951
51952
51953
51954
51955 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
51956 do
51957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51958 echo "$as_me:$LINENO: checking for $ac_func" >&5
51959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51960 if eval "test \"\${$as_ac_var+set}\" = set"; then
51961   echo $ECHO_N "(cached) $ECHO_C" >&6
51962 else
51963   if test x$gcc_no_link = xyes; then
51964   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
51965 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
51966    { (exit 1); exit 1; }; }
51967 fi
51968 cat >conftest.$ac_ext <<_ACEOF
51969 /* confdefs.h.  */
51970 _ACEOF
51971 cat confdefs.h >>conftest.$ac_ext
51972 cat >>conftest.$ac_ext <<_ACEOF
51973 /* end confdefs.h.  */
51974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51976 #define $ac_func innocuous_$ac_func
51977
51978 /* System header to define __stub macros and hopefully few prototypes,
51979     which can conflict with char $ac_func (); below.
51980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51981     <limits.h> exists even on freestanding compilers.  */
51982
51983 #ifdef __STDC__
51984 # include <limits.h>
51985 #else
51986 # include <assert.h>
51987 #endif
51988
51989 #undef $ac_func
51990
51991 /* Override any gcc2 internal prototype to avoid an error.  */
51992 #ifdef __cplusplus
51993 extern "C"
51994 {
51995 #endif
51996 /* We use char because int might match the return type of a gcc2
51997    builtin and then its argument prototype would still apply.  */
51998 char $ac_func ();
51999 /* The GNU C library defines this for functions which it implements
52000     to always fail with ENOSYS.  Some functions are actually named
52001     something starting with __ and the normal name is an alias.  */
52002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52003 choke me
52004 #else
52005 char (*f) () = $ac_func;
52006 #endif
52007 #ifdef __cplusplus
52008 }
52009 #endif
52010
52011 int
52012 main ()
52013 {
52014 return f != $ac_func;
52015   ;
52016   return 0;
52017 }
52018 _ACEOF
52019 rm -f conftest.$ac_objext conftest$ac_exeext
52020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52021   (eval $ac_link) 2>conftest.er1
52022   ac_status=$?
52023   grep -v '^ *+' conftest.er1 >conftest.err
52024   rm -f conftest.er1
52025   cat conftest.err >&5
52026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52027   (exit $ac_status); } &&
52028          { ac_try='test -z "$ac_c_werror_flag"
52029                          || test ! -s conftest.err'
52030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52031   (eval $ac_try) 2>&5
52032   ac_status=$?
52033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52034   (exit $ac_status); }; } &&
52035          { ac_try='test -s conftest$ac_exeext'
52036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52037   (eval $ac_try) 2>&5
52038   ac_status=$?
52039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52040   (exit $ac_status); }; }; then
52041   eval "$as_ac_var=yes"
52042 else
52043   echo "$as_me: failed program was:" >&5
52044 sed 's/^/| /' conftest.$ac_ext >&5
52045
52046 eval "$as_ac_var=no"
52047 fi
52048 rm -f conftest.err conftest.$ac_objext \
52049       conftest$ac_exeext conftest.$ac_ext
52050 fi
52051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52053 if test `eval echo '${'$as_ac_var'}'` = yes; then
52054   cat >>confdefs.h <<_ACEOF
52055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52056 _ACEOF
52057
52058 fi
52059 done
52060
52061
52062     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
52063 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
52064     if test x"$has_weof" = xyes &&
52065        test x"$has_wchar_minmax" = xyes &&
52066        test x"$ac_wfuncs" = xyes;
52067     then
52068       ac_isoC99_wchar_t=yes
52069     else
52070       ac_isoC99_wchar_t=no
52071     fi
52072     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
52073 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
52074
52075     # Use iconv for wchar_t to char conversions. As such, check for
52076     # X/Open Portability Guide, version 2 features (XPG2).
52077     if test "${ac_cv_header_iconv_h+set}" = set; then
52078   echo "$as_me:$LINENO: checking for iconv.h" >&5
52079 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52080 if test "${ac_cv_header_iconv_h+set}" = set; then
52081   echo $ECHO_N "(cached) $ECHO_C" >&6
52082 fi
52083 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52084 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52085 else
52086   # Is the header compilable?
52087 echo "$as_me:$LINENO: checking iconv.h usability" >&5
52088 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
52089 cat >conftest.$ac_ext <<_ACEOF
52090 /* confdefs.h.  */
52091 _ACEOF
52092 cat confdefs.h >>conftest.$ac_ext
52093 cat >>conftest.$ac_ext <<_ACEOF
52094 /* end confdefs.h.  */
52095 $ac_includes_default
52096 #include <iconv.h>
52097 _ACEOF
52098 rm -f conftest.$ac_objext
52099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52100   (eval $ac_compile) 2>conftest.er1
52101   ac_status=$?
52102   grep -v '^ *+' conftest.er1 >conftest.err
52103   rm -f conftest.er1
52104   cat conftest.err >&5
52105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52106   (exit $ac_status); } &&
52107          { ac_try='test -z "$ac_c_werror_flag"
52108                          || test ! -s conftest.err'
52109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52110   (eval $ac_try) 2>&5
52111   ac_status=$?
52112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52113   (exit $ac_status); }; } &&
52114          { ac_try='test -s conftest.$ac_objext'
52115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52116   (eval $ac_try) 2>&5
52117   ac_status=$?
52118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52119   (exit $ac_status); }; }; then
52120   ac_header_compiler=yes
52121 else
52122   echo "$as_me: failed program was:" >&5
52123 sed 's/^/| /' conftest.$ac_ext >&5
52124
52125 ac_header_compiler=no
52126 fi
52127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52129 echo "${ECHO_T}$ac_header_compiler" >&6
52130
52131 # Is the header present?
52132 echo "$as_me:$LINENO: checking iconv.h presence" >&5
52133 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
52134 cat >conftest.$ac_ext <<_ACEOF
52135 /* confdefs.h.  */
52136 _ACEOF
52137 cat confdefs.h >>conftest.$ac_ext
52138 cat >>conftest.$ac_ext <<_ACEOF
52139 /* end confdefs.h.  */
52140 #include <iconv.h>
52141 _ACEOF
52142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52143   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52144   ac_status=$?
52145   grep -v '^ *+' conftest.er1 >conftest.err
52146   rm -f conftest.er1
52147   cat conftest.err >&5
52148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52149   (exit $ac_status); } >/dev/null; then
52150   if test -s conftest.err; then
52151     ac_cpp_err=$ac_c_preproc_warn_flag
52152     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52153   else
52154     ac_cpp_err=
52155   fi
52156 else
52157   ac_cpp_err=yes
52158 fi
52159 if test -z "$ac_cpp_err"; then
52160   ac_header_preproc=yes
52161 else
52162   echo "$as_me: failed program was:" >&5
52163 sed 's/^/| /' conftest.$ac_ext >&5
52164
52165   ac_header_preproc=no
52166 fi
52167 rm -f conftest.err conftest.$ac_ext
52168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52169 echo "${ECHO_T}$ac_header_preproc" >&6
52170
52171 # So?  What about this header?
52172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52173   yes:no: )
52174     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
52175 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52176     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
52177 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
52178     ac_header_preproc=yes
52179     ;;
52180   no:yes:* )
52181     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
52182 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
52183     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
52184 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
52185     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
52186 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
52187     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
52188 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
52189     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52190 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52191     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
52192 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
52193     (
52194       cat <<\_ASBOX
52195 ## ----------------------------------------- ##
52196 ## Report this to the package-unused lists.  ##
52197 ## ----------------------------------------- ##
52198 _ASBOX
52199     ) |
52200       sed "s/^/$as_me: WARNING:     /" >&2
52201     ;;
52202 esac
52203 echo "$as_me:$LINENO: checking for iconv.h" >&5
52204 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52205 if test "${ac_cv_header_iconv_h+set}" = set; then
52206   echo $ECHO_N "(cached) $ECHO_C" >&6
52207 else
52208   ac_cv_header_iconv_h=$ac_header_preproc
52209 fi
52210 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52211 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52212
52213 fi
52214 if test $ac_cv_header_iconv_h = yes; then
52215   ac_has_iconv_h=yes
52216 else
52217   ac_has_iconv_h=no
52218 fi
52219
52220
52221     if test "${ac_cv_header_langinfo_h+set}" = set; then
52222   echo "$as_me:$LINENO: checking for langinfo.h" >&5
52223 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52224 if test "${ac_cv_header_langinfo_h+set}" = set; then
52225   echo $ECHO_N "(cached) $ECHO_C" >&6
52226 fi
52227 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52228 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52229 else
52230   # Is the header compilable?
52231 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
52232 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
52233 cat >conftest.$ac_ext <<_ACEOF
52234 /* confdefs.h.  */
52235 _ACEOF
52236 cat confdefs.h >>conftest.$ac_ext
52237 cat >>conftest.$ac_ext <<_ACEOF
52238 /* end confdefs.h.  */
52239 $ac_includes_default
52240 #include <langinfo.h>
52241 _ACEOF
52242 rm -f conftest.$ac_objext
52243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52244   (eval $ac_compile) 2>conftest.er1
52245   ac_status=$?
52246   grep -v '^ *+' conftest.er1 >conftest.err
52247   rm -f conftest.er1
52248   cat conftest.err >&5
52249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52250   (exit $ac_status); } &&
52251          { ac_try='test -z "$ac_c_werror_flag"
52252                          || test ! -s conftest.err'
52253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52254   (eval $ac_try) 2>&5
52255   ac_status=$?
52256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52257   (exit $ac_status); }; } &&
52258          { ac_try='test -s conftest.$ac_objext'
52259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52260   (eval $ac_try) 2>&5
52261   ac_status=$?
52262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52263   (exit $ac_status); }; }; then
52264   ac_header_compiler=yes
52265 else
52266   echo "$as_me: failed program was:" >&5
52267 sed 's/^/| /' conftest.$ac_ext >&5
52268
52269 ac_header_compiler=no
52270 fi
52271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52272 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52273 echo "${ECHO_T}$ac_header_compiler" >&6
52274
52275 # Is the header present?
52276 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
52277 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
52278 cat >conftest.$ac_ext <<_ACEOF
52279 /* confdefs.h.  */
52280 _ACEOF
52281 cat confdefs.h >>conftest.$ac_ext
52282 cat >>conftest.$ac_ext <<_ACEOF
52283 /* end confdefs.h.  */
52284 #include <langinfo.h>
52285 _ACEOF
52286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52287   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52288   ac_status=$?
52289   grep -v '^ *+' conftest.er1 >conftest.err
52290   rm -f conftest.er1
52291   cat conftest.err >&5
52292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52293   (exit $ac_status); } >/dev/null; then
52294   if test -s conftest.err; then
52295     ac_cpp_err=$ac_c_preproc_warn_flag
52296     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
52297   else
52298     ac_cpp_err=
52299   fi
52300 else
52301   ac_cpp_err=yes
52302 fi
52303 if test -z "$ac_cpp_err"; then
52304   ac_header_preproc=yes
52305 else
52306   echo "$as_me: failed program was:" >&5
52307 sed 's/^/| /' conftest.$ac_ext >&5
52308
52309   ac_header_preproc=no
52310 fi
52311 rm -f conftest.err conftest.$ac_ext
52312 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52313 echo "${ECHO_T}$ac_header_preproc" >&6
52314
52315 # So?  What about this header?
52316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52317   yes:no: )
52318     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
52319 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52320     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
52321 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
52322     ac_header_preproc=yes
52323     ;;
52324   no:yes:* )
52325     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
52326 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
52327     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
52328 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
52329     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
52330 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
52331     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
52332 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
52333     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52334 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52335     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
52336 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
52337     (
52338       cat <<\_ASBOX
52339 ## ----------------------------------------- ##
52340 ## Report this to the package-unused lists.  ##
52341 ## ----------------------------------------- ##
52342 _ASBOX
52343     ) |
52344       sed "s/^/$as_me: WARNING:     /" >&2
52345     ;;
52346 esac
52347 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52348 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52349 if test "${ac_cv_header_langinfo_h+set}" = set; then
52350   echo $ECHO_N "(cached) $ECHO_C" >&6
52351 else
52352   ac_cv_header_langinfo_h=$ac_header_preproc
52353 fi
52354 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52355 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52356
52357 fi
52358 if test $ac_cv_header_langinfo_h = yes; then
52359   ac_has_langinfo_h=yes
52360 else
52361   ac_has_langinfo_h=no
52362 fi
52363
52364
52365
52366     # Check for existence of libiconv.a providing XPG2 wchar_t support.
52367     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
52368 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
52369 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
52370   echo $ECHO_N "(cached) $ECHO_C" >&6
52371 else
52372   ac_check_lib_save_LIBS=$LIBS
52373 LIBS="-liconv  $LIBS"
52374 if test x$gcc_no_link = xyes; then
52375   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52376 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52377    { (exit 1); exit 1; }; }
52378 fi
52379 cat >conftest.$ac_ext <<_ACEOF
52380 /* confdefs.h.  */
52381 _ACEOF
52382 cat confdefs.h >>conftest.$ac_ext
52383 cat >>conftest.$ac_ext <<_ACEOF
52384 /* end confdefs.h.  */
52385
52386 /* Override any gcc2 internal prototype to avoid an error.  */
52387 #ifdef __cplusplus
52388 extern "C"
52389 #endif
52390 /* We use char because int might match the return type of a gcc2
52391    builtin and then its argument prototype would still apply.  */
52392 char iconv ();
52393 int
52394 main ()
52395 {
52396 iconv ();
52397   ;
52398   return 0;
52399 }
52400 _ACEOF
52401 rm -f conftest.$ac_objext conftest$ac_exeext
52402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52403   (eval $ac_link) 2>conftest.er1
52404   ac_status=$?
52405   grep -v '^ *+' conftest.er1 >conftest.err
52406   rm -f conftest.er1
52407   cat conftest.err >&5
52408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52409   (exit $ac_status); } &&
52410          { ac_try='test -z "$ac_c_werror_flag"
52411                          || test ! -s conftest.err'
52412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52413   (eval $ac_try) 2>&5
52414   ac_status=$?
52415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52416   (exit $ac_status); }; } &&
52417          { ac_try='test -s conftest$ac_exeext'
52418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52419   (eval $ac_try) 2>&5
52420   ac_status=$?
52421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52422   (exit $ac_status); }; }; then
52423   ac_cv_lib_iconv_iconv=yes
52424 else
52425   echo "$as_me: failed program was:" >&5
52426 sed 's/^/| /' conftest.$ac_ext >&5
52427
52428 ac_cv_lib_iconv_iconv=no
52429 fi
52430 rm -f conftest.err conftest.$ac_objext \
52431       conftest$ac_exeext conftest.$ac_ext
52432 LIBS=$ac_check_lib_save_LIBS
52433 fi
52434 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
52435 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
52436 if test $ac_cv_lib_iconv_iconv = yes; then
52437   LIBICONV="-liconv"
52438 fi
52439
52440     ac_save_LIBS="$LIBS"
52441     LIBS="$LIBS $LIBICONV"
52442
52443
52444
52445
52446
52447
52448 for ac_func in iconv_open iconv_close iconv nl_langinfo
52449 do
52450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52451 echo "$as_me:$LINENO: checking for $ac_func" >&5
52452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52453 if eval "test \"\${$as_ac_var+set}\" = set"; then
52454   echo $ECHO_N "(cached) $ECHO_C" >&6
52455 else
52456   if test x$gcc_no_link = xyes; then
52457   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52458 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52459    { (exit 1); exit 1; }; }
52460 fi
52461 cat >conftest.$ac_ext <<_ACEOF
52462 /* confdefs.h.  */
52463 _ACEOF
52464 cat confdefs.h >>conftest.$ac_ext
52465 cat >>conftest.$ac_ext <<_ACEOF
52466 /* end confdefs.h.  */
52467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52469 #define $ac_func innocuous_$ac_func
52470
52471 /* System header to define __stub macros and hopefully few prototypes,
52472     which can conflict with char $ac_func (); below.
52473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52474     <limits.h> exists even on freestanding compilers.  */
52475
52476 #ifdef __STDC__
52477 # include <limits.h>
52478 #else
52479 # include <assert.h>
52480 #endif
52481
52482 #undef $ac_func
52483
52484 /* Override any gcc2 internal prototype to avoid an error.  */
52485 #ifdef __cplusplus
52486 extern "C"
52487 {
52488 #endif
52489 /* We use char because int might match the return type of a gcc2
52490    builtin and then its argument prototype would still apply.  */
52491 char $ac_func ();
52492 /* The GNU C library defines this for functions which it implements
52493     to always fail with ENOSYS.  Some functions are actually named
52494     something starting with __ and the normal name is an alias.  */
52495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52496 choke me
52497 #else
52498 char (*f) () = $ac_func;
52499 #endif
52500 #ifdef __cplusplus
52501 }
52502 #endif
52503
52504 int
52505 main ()
52506 {
52507 return f != $ac_func;
52508   ;
52509   return 0;
52510 }
52511 _ACEOF
52512 rm -f conftest.$ac_objext conftest$ac_exeext
52513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52514   (eval $ac_link) 2>conftest.er1
52515   ac_status=$?
52516   grep -v '^ *+' conftest.er1 >conftest.err
52517   rm -f conftest.er1
52518   cat conftest.err >&5
52519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52520   (exit $ac_status); } &&
52521          { ac_try='test -z "$ac_c_werror_flag"
52522                          || test ! -s conftest.err'
52523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52524   (eval $ac_try) 2>&5
52525   ac_status=$?
52526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52527   (exit $ac_status); }; } &&
52528          { ac_try='test -s conftest$ac_exeext'
52529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52530   (eval $ac_try) 2>&5
52531   ac_status=$?
52532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52533   (exit $ac_status); }; }; then
52534   eval "$as_ac_var=yes"
52535 else
52536   echo "$as_me: failed program was:" >&5
52537 sed 's/^/| /' conftest.$ac_ext >&5
52538
52539 eval "$as_ac_var=no"
52540 fi
52541 rm -f conftest.err conftest.$ac_objext \
52542       conftest$ac_exeext conftest.$ac_ext
52543 fi
52544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52546 if test `eval echo '${'$as_ac_var'}'` = yes; then
52547   cat >>confdefs.h <<_ACEOF
52548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52549 _ACEOF
52550  ac_XPG2funcs=yes
52551 else
52552   ac_XPG2funcs=no
52553 fi
52554 done
52555
52556
52557     LIBS="$ac_save_LIBS"
52558
52559     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
52560 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
52561     if test x"$ac_has_iconv_h" = xyes &&
52562        test x"$ac_has_langinfo_h" = xyes &&
52563        test x"$ac_XPG2funcs" = xyes;
52564     then
52565       ac_XPG2_wchar_t=yes
52566     else
52567       ac_XPG2_wchar_t=no
52568     fi
52569     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
52570 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
52571
52572     # At the moment, only enable wchar_t specializations if all the
52573     # above support is present.
52574     if test x"$ac_isoC99_wchar_t" = xyes &&
52575        test x"$ac_XPG2_wchar_t" = xyes;
52576     then
52577       cat >>confdefs.h <<\_ACEOF
52578 #define _GLIBCXX_USE_WCHAR_T 1
52579 _ACEOF
52580
52581       enable_wchar_t=yes
52582     fi
52583   fi
52584   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
52585 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
52586   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
52587 echo "${ECHO_T}$enable_wchar_t" >&6
52588
52589
52590   ac_test_CXXFLAGS="${CXXFLAGS+set}"
52591   ac_save_CXXFLAGS="$CXXFLAGS"
52592   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
52593
52594
52595   echo "$as_me:$LINENO: checking for strtold declaration" >&5
52596 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
52597   if test x${glibcxx_cv_func_strtold_use+set} != xset; then
52598     if test "${glibcxx_cv_func_strtold_use+set}" = set; then
52599   echo $ECHO_N "(cached) $ECHO_C" >&6
52600 else
52601
52602
52603
52604       ac_ext=cc
52605 ac_cpp='$CXXCPP $CPPFLAGS'
52606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52609
52610       cat >conftest.$ac_ext <<_ACEOF
52611 /* confdefs.h.  */
52612 _ACEOF
52613 cat confdefs.h >>conftest.$ac_ext
52614 cat >>conftest.$ac_ext <<_ACEOF
52615 /* end confdefs.h.  */
52616 #include <stdlib.h>
52617 int
52618 main ()
52619 {
52620  strtold(0, 0);
52621   ;
52622   return 0;
52623 }
52624 _ACEOF
52625 rm -f conftest.$ac_objext
52626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52627   (eval $ac_compile) 2>conftest.er1
52628   ac_status=$?
52629   grep -v '^ *+' conftest.er1 >conftest.err
52630   rm -f conftest.er1
52631   cat conftest.err >&5
52632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52633   (exit $ac_status); } &&
52634          { ac_try='test -z "$ac_cxx_werror_flag"
52635                          || test ! -s conftest.err'
52636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52637   (eval $ac_try) 2>&5
52638   ac_status=$?
52639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52640   (exit $ac_status); }; } &&
52641          { ac_try='test -s conftest.$ac_objext'
52642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52643   (eval $ac_try) 2>&5
52644   ac_status=$?
52645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52646   (exit $ac_status); }; }; then
52647   glibcxx_cv_func_strtold_use=yes
52648 else
52649   echo "$as_me: failed program was:" >&5
52650 sed 's/^/| /' conftest.$ac_ext >&5
52651
52652 glibcxx_cv_func_strtold_use=no
52653 fi
52654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52655       ac_ext=c
52656 ac_cpp='$CPP $CPPFLAGS'
52657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52660
52661
52662 fi
52663
52664   fi
52665   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
52666 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
52667   if test x$glibcxx_cv_func_strtold_use = x"yes"; then
52668
52669 for ac_func in strtold
52670 do
52671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52672 echo "$as_me:$LINENO: checking for $ac_func" >&5
52673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52674 if eval "test \"\${$as_ac_var+set}\" = set"; then
52675   echo $ECHO_N "(cached) $ECHO_C" >&6
52676 else
52677   if test x$gcc_no_link = xyes; then
52678   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52679 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52680    { (exit 1); exit 1; }; }
52681 fi
52682 cat >conftest.$ac_ext <<_ACEOF
52683 /* confdefs.h.  */
52684 _ACEOF
52685 cat confdefs.h >>conftest.$ac_ext
52686 cat >>conftest.$ac_ext <<_ACEOF
52687 /* end confdefs.h.  */
52688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52690 #define $ac_func innocuous_$ac_func
52691
52692 /* System header to define __stub macros and hopefully few prototypes,
52693     which can conflict with char $ac_func (); below.
52694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52695     <limits.h> exists even on freestanding compilers.  */
52696
52697 #ifdef __STDC__
52698 # include <limits.h>
52699 #else
52700 # include <assert.h>
52701 #endif
52702
52703 #undef $ac_func
52704
52705 /* Override any gcc2 internal prototype to avoid an error.  */
52706 #ifdef __cplusplus
52707 extern "C"
52708 {
52709 #endif
52710 /* We use char because int might match the return type of a gcc2
52711    builtin and then its argument prototype would still apply.  */
52712 char $ac_func ();
52713 /* The GNU C library defines this for functions which it implements
52714     to always fail with ENOSYS.  Some functions are actually named
52715     something starting with __ and the normal name is an alias.  */
52716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52717 choke me
52718 #else
52719 char (*f) () = $ac_func;
52720 #endif
52721 #ifdef __cplusplus
52722 }
52723 #endif
52724
52725 int
52726 main ()
52727 {
52728 return f != $ac_func;
52729   ;
52730   return 0;
52731 }
52732 _ACEOF
52733 rm -f conftest.$ac_objext conftest$ac_exeext
52734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52735   (eval $ac_link) 2>conftest.er1
52736   ac_status=$?
52737   grep -v '^ *+' conftest.er1 >conftest.err
52738   rm -f conftest.er1
52739   cat conftest.err >&5
52740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52741   (exit $ac_status); } &&
52742          { ac_try='test -z "$ac_c_werror_flag"
52743                          || test ! -s conftest.err'
52744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52745   (eval $ac_try) 2>&5
52746   ac_status=$?
52747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52748   (exit $ac_status); }; } &&
52749          { ac_try='test -s conftest$ac_exeext'
52750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52751   (eval $ac_try) 2>&5
52752   ac_status=$?
52753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52754   (exit $ac_status); }; }; then
52755   eval "$as_ac_var=yes"
52756 else
52757   echo "$as_me: failed program was:" >&5
52758 sed 's/^/| /' conftest.$ac_ext >&5
52759
52760 eval "$as_ac_var=no"
52761 fi
52762 rm -f conftest.err conftest.$ac_objext \
52763       conftest$ac_exeext conftest.$ac_ext
52764 fi
52765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52766 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52767 if test `eval echo '${'$as_ac_var'}'` = yes; then
52768   cat >>confdefs.h <<_ACEOF
52769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52770 _ACEOF
52771
52772 fi
52773 done
52774
52775   fi
52776
52777
52778   echo "$as_me:$LINENO: checking for strtof declaration" >&5
52779 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
52780   if test x${glibcxx_cv_func_strtof_use+set} != xset; then
52781     if test "${glibcxx_cv_func_strtof_use+set}" = set; then
52782   echo $ECHO_N "(cached) $ECHO_C" >&6
52783 else
52784
52785
52786
52787       ac_ext=cc
52788 ac_cpp='$CXXCPP $CPPFLAGS'
52789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52792
52793       cat >conftest.$ac_ext <<_ACEOF
52794 /* confdefs.h.  */
52795 _ACEOF
52796 cat confdefs.h >>conftest.$ac_ext
52797 cat >>conftest.$ac_ext <<_ACEOF
52798 /* end confdefs.h.  */
52799 #include <stdlib.h>
52800 int
52801 main ()
52802 {
52803  strtof(0, 0);
52804   ;
52805   return 0;
52806 }
52807 _ACEOF
52808 rm -f conftest.$ac_objext
52809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52810   (eval $ac_compile) 2>conftest.er1
52811   ac_status=$?
52812   grep -v '^ *+' conftest.er1 >conftest.err
52813   rm -f conftest.er1
52814   cat conftest.err >&5
52815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52816   (exit $ac_status); } &&
52817          { ac_try='test -z "$ac_cxx_werror_flag"
52818                          || test ! -s conftest.err'
52819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52820   (eval $ac_try) 2>&5
52821   ac_status=$?
52822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52823   (exit $ac_status); }; } &&
52824          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
52830   glibcxx_cv_func_strtof_use=yes
52831 else
52832   echo "$as_me: failed program was:" >&5
52833 sed 's/^/| /' conftest.$ac_ext >&5
52834
52835 glibcxx_cv_func_strtof_use=no
52836 fi
52837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52838       ac_ext=c
52839 ac_cpp='$CPP $CPPFLAGS'
52840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
52841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
52842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
52843
52844
52845 fi
52846
52847   fi
52848   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
52849 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
52850   if test x$glibcxx_cv_func_strtof_use = x"yes"; then
52851
52852 for ac_func in strtof
52853 do
52854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52855 echo "$as_me:$LINENO: checking for $ac_func" >&5
52856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52857 if eval "test \"\${$as_ac_var+set}\" = set"; then
52858   echo $ECHO_N "(cached) $ECHO_C" >&6
52859 else
52860   if test x$gcc_no_link = xyes; then
52861   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
52862 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
52863    { (exit 1); exit 1; }; }
52864 fi
52865 cat >conftest.$ac_ext <<_ACEOF
52866 /* confdefs.h.  */
52867 _ACEOF
52868 cat confdefs.h >>conftest.$ac_ext
52869 cat >>conftest.$ac_ext <<_ACEOF
52870 /* end confdefs.h.  */
52871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52873 #define $ac_func innocuous_$ac_func
52874
52875 /* System header to define __stub macros and hopefully few prototypes,
52876     which can conflict with char $ac_func (); below.
52877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52878     <limits.h> exists even on freestanding compilers.  */
52879
52880 #ifdef __STDC__
52881 # include <limits.h>
52882 #else
52883 # include <assert.h>
52884 #endif
52885
52886 #undef $ac_func
52887
52888 /* Override any gcc2 internal prototype to avoid an error.  */
52889 #ifdef __cplusplus
52890 extern "C"
52891 {
52892 #endif
52893 /* We use char because int might match the return type of a gcc2
52894    builtin and then its argument prototype would still apply.  */
52895 char $ac_func ();
52896 /* The GNU C library defines this for functions which it implements
52897     to always fail with ENOSYS.  Some functions are actually named
52898     something starting with __ and the normal name is an alias.  */
52899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52900 choke me
52901 #else
52902 char (*f) () = $ac_func;
52903 #endif
52904 #ifdef __cplusplus
52905 }
52906 #endif
52907
52908 int
52909 main ()
52910 {
52911 return f != $ac_func;
52912   ;
52913   return 0;
52914 }
52915 _ACEOF
52916 rm -f conftest.$ac_objext conftest$ac_exeext
52917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52918   (eval $ac_link) 2>conftest.er1
52919   ac_status=$?
52920   grep -v '^ *+' conftest.er1 >conftest.err
52921   rm -f conftest.er1
52922   cat conftest.err >&5
52923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52924   (exit $ac_status); } &&
52925          { ac_try='test -z "$ac_c_werror_flag"
52926                          || test ! -s conftest.err'
52927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52928   (eval $ac_try) 2>&5
52929   ac_status=$?
52930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52931   (exit $ac_status); }; } &&
52932          { ac_try='test -s conftest$ac_exeext'
52933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52934   (eval $ac_try) 2>&5
52935   ac_status=$?
52936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52937   (exit $ac_status); }; }; then
52938   eval "$as_ac_var=yes"
52939 else
52940   echo "$as_me: failed program was:" >&5
52941 sed 's/^/| /' conftest.$ac_ext >&5
52942
52943 eval "$as_ac_var=no"
52944 fi
52945 rm -f conftest.err conftest.$ac_objext \
52946       conftest$ac_exeext conftest.$ac_ext
52947 fi
52948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52950 if test `eval echo '${'$as_ac_var'}'` = yes; then
52951   cat >>confdefs.h <<_ACEOF
52952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52953 _ACEOF
52954
52955 fi
52956 done
52957
52958   fi
52959
52960
52961   CXXFLAGS="$ac_save_CXXFLAGS"
52962
52963
52964     # For showmanyc_helper().
52965
52966
52967 for ac_header in sys/ioctl.h sys/filio.h
52968 do
52969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52971   echo "$as_me:$LINENO: checking for $ac_header" >&5
52972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52974   echo $ECHO_N "(cached) $ECHO_C" >&6
52975 fi
52976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52978 else
52979   # Is the header compilable?
52980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52982 cat >conftest.$ac_ext <<_ACEOF
52983 /* confdefs.h.  */
52984 _ACEOF
52985 cat confdefs.h >>conftest.$ac_ext
52986 cat >>conftest.$ac_ext <<_ACEOF
52987 /* end confdefs.h.  */
52988 $ac_includes_default
52989 #include <$ac_header>
52990 _ACEOF
52991 rm -f conftest.$ac_objext
52992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52993   (eval $ac_compile) 2>conftest.er1
52994   ac_status=$?
52995   grep -v '^ *+' conftest.er1 >conftest.err
52996   rm -f conftest.er1
52997   cat conftest.err >&5
52998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52999   (exit $ac_status); } &&
53000          { ac_try='test -z "$ac_c_werror_flag"
53001                          || test ! -s conftest.err'
53002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53003   (eval $ac_try) 2>&5
53004   ac_status=$?
53005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53006   (exit $ac_status); }; } &&
53007          { ac_try='test -s conftest.$ac_objext'
53008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53009   (eval $ac_try) 2>&5
53010   ac_status=$?
53011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53012   (exit $ac_status); }; }; then
53013   ac_header_compiler=yes
53014 else
53015   echo "$as_me: failed program was:" >&5
53016 sed 's/^/| /' conftest.$ac_ext >&5
53017
53018 ac_header_compiler=no
53019 fi
53020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53022 echo "${ECHO_T}$ac_header_compiler" >&6
53023
53024 # Is the header present?
53025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53027 cat >conftest.$ac_ext <<_ACEOF
53028 /* confdefs.h.  */
53029 _ACEOF
53030 cat confdefs.h >>conftest.$ac_ext
53031 cat >>conftest.$ac_ext <<_ACEOF
53032 /* end confdefs.h.  */
53033 #include <$ac_header>
53034 _ACEOF
53035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53037   ac_status=$?
53038   grep -v '^ *+' conftest.er1 >conftest.err
53039   rm -f conftest.er1
53040   cat conftest.err >&5
53041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53042   (exit $ac_status); } >/dev/null; then
53043   if test -s conftest.err; then
53044     ac_cpp_err=$ac_c_preproc_warn_flag
53045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53046   else
53047     ac_cpp_err=
53048   fi
53049 else
53050   ac_cpp_err=yes
53051 fi
53052 if test -z "$ac_cpp_err"; then
53053   ac_header_preproc=yes
53054 else
53055   echo "$as_me: failed program was:" >&5
53056 sed 's/^/| /' conftest.$ac_ext >&5
53057
53058   ac_header_preproc=no
53059 fi
53060 rm -f conftest.err conftest.$ac_ext
53061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53062 echo "${ECHO_T}$ac_header_preproc" >&6
53063
53064 # So?  What about this header?
53065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53066   yes:no: )
53067     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53071     ac_header_preproc=yes
53072     ;;
53073   no:yes:* )
53074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53076     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53077 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53078     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53080     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53081 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53084     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53086     (
53087       cat <<\_ASBOX
53088 ## ----------------------------------------- ##
53089 ## Report this to the package-unused lists.  ##
53090 ## ----------------------------------------- ##
53091 _ASBOX
53092     ) |
53093       sed "s/^/$as_me: WARNING:     /" >&2
53094     ;;
53095 esac
53096 echo "$as_me:$LINENO: checking for $ac_header" >&5
53097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53099   echo $ECHO_N "(cached) $ECHO_C" >&6
53100 else
53101   eval "$as_ac_Header=\$ac_header_preproc"
53102 fi
53103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53105
53106 fi
53107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53108   cat >>confdefs.h <<_ACEOF
53109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53110 _ACEOF
53111
53112 fi
53113
53114 done
53115
53116
53117   if test "${glibcxx_cv_POLL+set}" = set; then
53118   echo $ECHO_N "(cached) $ECHO_C" >&6
53119 else
53120
53121     if test x$gcc_no_link = xyes; then
53122   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53123 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53124    { (exit 1); exit 1; }; }
53125 fi
53126 cat >conftest.$ac_ext <<_ACEOF
53127 /* confdefs.h.  */
53128 _ACEOF
53129 cat confdefs.h >>conftest.$ac_ext
53130 cat >>conftest.$ac_ext <<_ACEOF
53131 /* end confdefs.h.  */
53132 #include <poll.h>
53133 int
53134 main ()
53135 {
53136 struct pollfd pfd[1];
53137        pfd[0].events = POLLIN;
53138        poll(pfd, 1, 0);
53139   ;
53140   return 0;
53141 }
53142 _ACEOF
53143 rm -f conftest.$ac_objext conftest$ac_exeext
53144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53145   (eval $ac_link) 2>conftest.er1
53146   ac_status=$?
53147   grep -v '^ *+' conftest.er1 >conftest.err
53148   rm -f conftest.er1
53149   cat conftest.err >&5
53150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53151   (exit $ac_status); } &&
53152          { ac_try='test -z "$ac_c_werror_flag"
53153                          || test ! -s conftest.err'
53154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53155   (eval $ac_try) 2>&5
53156   ac_status=$?
53157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53158   (exit $ac_status); }; } &&
53159          { ac_try='test -s conftest$ac_exeext'
53160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53161   (eval $ac_try) 2>&5
53162   ac_status=$?
53163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53164   (exit $ac_status); }; }; then
53165   glibcxx_cv_POLL=yes
53166 else
53167   echo "$as_me: failed program was:" >&5
53168 sed 's/^/| /' conftest.$ac_ext >&5
53169
53170 glibcxx_cv_POLL=no
53171 fi
53172 rm -f conftest.err conftest.$ac_objext \
53173       conftest$ac_exeext conftest.$ac_ext
53174
53175 fi
53176
53177   if test $glibcxx_cv_POLL = yes; then
53178     cat >>confdefs.h <<\_ACEOF
53179 #define HAVE_POLL 1
53180 _ACEOF
53181
53182   fi
53183
53184
53185   if test "${glibcxx_cv_S_ISREG+set}" = set; then
53186   echo $ECHO_N "(cached) $ECHO_C" >&6
53187 else
53188
53189     if test x$gcc_no_link = xyes; then
53190   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53191 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53192    { (exit 1); exit 1; }; }
53193 fi
53194 cat >conftest.$ac_ext <<_ACEOF
53195 /* confdefs.h.  */
53196 _ACEOF
53197 cat confdefs.h >>conftest.$ac_ext
53198 cat >>conftest.$ac_ext <<_ACEOF
53199 /* end confdefs.h.  */
53200 #include <sys/stat.h>
53201 int
53202 main ()
53203 {
53204 struct stat buffer;
53205        fstat(0, &buffer);
53206        S_ISREG(buffer.st_mode);
53207   ;
53208   return 0;
53209 }
53210 _ACEOF
53211 rm -f conftest.$ac_objext conftest$ac_exeext
53212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53213   (eval $ac_link) 2>conftest.er1
53214   ac_status=$?
53215   grep -v '^ *+' conftest.er1 >conftest.err
53216   rm -f conftest.er1
53217   cat conftest.err >&5
53218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53219   (exit $ac_status); } &&
53220          { ac_try='test -z "$ac_c_werror_flag"
53221                          || test ! -s conftest.err'
53222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53223   (eval $ac_try) 2>&5
53224   ac_status=$?
53225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53226   (exit $ac_status); }; } &&
53227          { ac_try='test -s conftest$ac_exeext'
53228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53229   (eval $ac_try) 2>&5
53230   ac_status=$?
53231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53232   (exit $ac_status); }; }; then
53233   glibcxx_cv_S_ISREG=yes
53234 else
53235   echo "$as_me: failed program was:" >&5
53236 sed 's/^/| /' conftest.$ac_ext >&5
53237
53238 glibcxx_cv_S_ISREG=no
53239 fi
53240 rm -f conftest.err conftest.$ac_objext \
53241       conftest$ac_exeext conftest.$ac_ext
53242
53243 fi
53244
53245   if test "${glibcxx_cv_S_IFREG+set}" = set; then
53246   echo $ECHO_N "(cached) $ECHO_C" >&6
53247 else
53248
53249     if test x$gcc_no_link = xyes; then
53250   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53251 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53252    { (exit 1); exit 1; }; }
53253 fi
53254 cat >conftest.$ac_ext <<_ACEOF
53255 /* confdefs.h.  */
53256 _ACEOF
53257 cat confdefs.h >>conftest.$ac_ext
53258 cat >>conftest.$ac_ext <<_ACEOF
53259 /* end confdefs.h.  */
53260 #include <sys/stat.h>
53261 int
53262 main ()
53263 {
53264 struct stat buffer;
53265        fstat(0, &buffer);
53266        S_IFREG & buffer.st_mode;
53267   ;
53268   return 0;
53269 }
53270 _ACEOF
53271 rm -f conftest.$ac_objext conftest$ac_exeext
53272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53273   (eval $ac_link) 2>conftest.er1
53274   ac_status=$?
53275   grep -v '^ *+' conftest.er1 >conftest.err
53276   rm -f conftest.er1
53277   cat conftest.err >&5
53278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53279   (exit $ac_status); } &&
53280          { ac_try='test -z "$ac_c_werror_flag"
53281                          || test ! -s conftest.err'
53282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53283   (eval $ac_try) 2>&5
53284   ac_status=$?
53285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53286   (exit $ac_status); }; } &&
53287          { ac_try='test -s conftest$ac_exeext'
53288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53289   (eval $ac_try) 2>&5
53290   ac_status=$?
53291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53292   (exit $ac_status); }; }; then
53293   glibcxx_cv_S_IFREG=yes
53294 else
53295   echo "$as_me: failed program was:" >&5
53296 sed 's/^/| /' conftest.$ac_ext >&5
53297
53298 glibcxx_cv_S_IFREG=no
53299 fi
53300 rm -f conftest.err conftest.$ac_objext \
53301       conftest$ac_exeext conftest.$ac_ext
53302
53303 fi
53304
53305   if test $glibcxx_cv_S_ISREG = yes; then
53306     cat >>confdefs.h <<\_ACEOF
53307 #define HAVE_S_ISREG 1
53308 _ACEOF
53309
53310   elif test $glibcxx_cv_S_IFREG = yes; then
53311     cat >>confdefs.h <<\_ACEOF
53312 #define HAVE_S_IFREG 1
53313 _ACEOF
53314
53315   fi
53316
53317
53318     # For xsputn_2().
53319
53320 for ac_header in sys/uio.h
53321 do
53322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53324   echo "$as_me:$LINENO: checking for $ac_header" >&5
53325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53327   echo $ECHO_N "(cached) $ECHO_C" >&6
53328 fi
53329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53331 else
53332   # Is the header compilable?
53333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53335 cat >conftest.$ac_ext <<_ACEOF
53336 /* confdefs.h.  */
53337 _ACEOF
53338 cat confdefs.h >>conftest.$ac_ext
53339 cat >>conftest.$ac_ext <<_ACEOF
53340 /* end confdefs.h.  */
53341 $ac_includes_default
53342 #include <$ac_header>
53343 _ACEOF
53344 rm -f conftest.$ac_objext
53345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53346   (eval $ac_compile) 2>conftest.er1
53347   ac_status=$?
53348   grep -v '^ *+' conftest.er1 >conftest.err
53349   rm -f conftest.er1
53350   cat conftest.err >&5
53351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53352   (exit $ac_status); } &&
53353          { ac_try='test -z "$ac_c_werror_flag"
53354                          || test ! -s conftest.err'
53355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53356   (eval $ac_try) 2>&5
53357   ac_status=$?
53358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53359   (exit $ac_status); }; } &&
53360          { ac_try='test -s conftest.$ac_objext'
53361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53362   (eval $ac_try) 2>&5
53363   ac_status=$?
53364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53365   (exit $ac_status); }; }; then
53366   ac_header_compiler=yes
53367 else
53368   echo "$as_me: failed program was:" >&5
53369 sed 's/^/| /' conftest.$ac_ext >&5
53370
53371 ac_header_compiler=no
53372 fi
53373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53375 echo "${ECHO_T}$ac_header_compiler" >&6
53376
53377 # Is the header present?
53378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53380 cat >conftest.$ac_ext <<_ACEOF
53381 /* confdefs.h.  */
53382 _ACEOF
53383 cat confdefs.h >>conftest.$ac_ext
53384 cat >>conftest.$ac_ext <<_ACEOF
53385 /* end confdefs.h.  */
53386 #include <$ac_header>
53387 _ACEOF
53388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53390   ac_status=$?
53391   grep -v '^ *+' conftest.er1 >conftest.err
53392   rm -f conftest.er1
53393   cat conftest.err >&5
53394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53395   (exit $ac_status); } >/dev/null; then
53396   if test -s conftest.err; then
53397     ac_cpp_err=$ac_c_preproc_warn_flag
53398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53399   else
53400     ac_cpp_err=
53401   fi
53402 else
53403   ac_cpp_err=yes
53404 fi
53405 if test -z "$ac_cpp_err"; then
53406   ac_header_preproc=yes
53407 else
53408   echo "$as_me: failed program was:" >&5
53409 sed 's/^/| /' conftest.$ac_ext >&5
53410
53411   ac_header_preproc=no
53412 fi
53413 rm -f conftest.err conftest.$ac_ext
53414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53415 echo "${ECHO_T}$ac_header_preproc" >&6
53416
53417 # So?  What about this header?
53418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53419   yes:no: )
53420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53424     ac_header_preproc=yes
53425     ;;
53426   no:yes:* )
53427     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53429     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53430 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53431     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53433     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53434 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53437     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53439     (
53440       cat <<\_ASBOX
53441 ## ----------------------------------------- ##
53442 ## Report this to the package-unused lists.  ##
53443 ## ----------------------------------------- ##
53444 _ASBOX
53445     ) |
53446       sed "s/^/$as_me: WARNING:     /" >&2
53447     ;;
53448 esac
53449 echo "$as_me:$LINENO: checking for $ac_header" >&5
53450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53452   echo $ECHO_N "(cached) $ECHO_C" >&6
53453 else
53454   eval "$as_ac_Header=\$ac_header_preproc"
53455 fi
53456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53458
53459 fi
53460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53461   cat >>confdefs.h <<_ACEOF
53462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53463 _ACEOF
53464
53465 fi
53466
53467 done
53468
53469
53470   if test "${glibcxx_cv_WRITEV+set}" = set; then
53471   echo $ECHO_N "(cached) $ECHO_C" >&6
53472 else
53473
53474     if test x$gcc_no_link = xyes; then
53475   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53476 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53477    { (exit 1); exit 1; }; }
53478 fi
53479 cat >conftest.$ac_ext <<_ACEOF
53480 /* confdefs.h.  */
53481 _ACEOF
53482 cat confdefs.h >>conftest.$ac_ext
53483 cat >>conftest.$ac_ext <<_ACEOF
53484 /* end confdefs.h.  */
53485 #include <sys/uio.h>
53486 int
53487 main ()
53488 {
53489 struct iovec iov[2];
53490        writev(0, iov, 0);
53491   ;
53492   return 0;
53493 }
53494 _ACEOF
53495 rm -f conftest.$ac_objext conftest$ac_exeext
53496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53497   (eval $ac_link) 2>conftest.er1
53498   ac_status=$?
53499   grep -v '^ *+' conftest.er1 >conftest.err
53500   rm -f conftest.er1
53501   cat conftest.err >&5
53502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53503   (exit $ac_status); } &&
53504          { ac_try='test -z "$ac_c_werror_flag"
53505                          || test ! -s conftest.err'
53506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53507   (eval $ac_try) 2>&5
53508   ac_status=$?
53509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53510   (exit $ac_status); }; } &&
53511          { ac_try='test -s conftest$ac_exeext'
53512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53513   (eval $ac_try) 2>&5
53514   ac_status=$?
53515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53516   (exit $ac_status); }; }; then
53517   glibcxx_cv_WRITEV=yes
53518 else
53519   echo "$as_me: failed program was:" >&5
53520 sed 's/^/| /' conftest.$ac_ext >&5
53521
53522 glibcxx_cv_WRITEV=no
53523 fi
53524 rm -f conftest.err conftest.$ac_objext \
53525       conftest$ac_exeext conftest.$ac_ext
53526
53527 fi
53528
53529   if test $glibcxx_cv_WRITEV = yes; then
53530     cat >>confdefs.h <<\_ACEOF
53531 #define HAVE_WRITEV 1
53532 _ACEOF
53533
53534   fi
53535
53536
53537     cat >>confdefs.h <<\_ACEOF
53538 #define HAVE_LC_MESSAGES 1
53539 _ACEOF
53540
53541
53542     cat >conftest.$ac_ext <<_ACEOF
53543 /* confdefs.h.  */
53544 _ACEOF
53545 cat confdefs.h >>conftest.$ac_ext
53546 cat >>conftest.$ac_ext <<_ACEOF
53547 /* end confdefs.h.  */
53548 #include <setjmp.h>
53549 int
53550 main ()
53551 {
53552 sigjmp_buf env;
53553        while (! sigsetjmp (env, 1))
53554          siglongjmp (env, 1);
53555
53556   ;
53557   return 0;
53558 }
53559 _ACEOF
53560 rm -f conftest.$ac_objext
53561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53562   (eval $ac_compile) 2>conftest.er1
53563   ac_status=$?
53564   grep -v '^ *+' conftest.er1 >conftest.err
53565   rm -f conftest.er1
53566   cat conftest.err >&5
53567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53568   (exit $ac_status); } &&
53569          { ac_try='test -z "$ac_c_werror_flag"
53570                          || test ! -s conftest.err'
53571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53572   (eval $ac_try) 2>&5
53573   ac_status=$?
53574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53575   (exit $ac_status); }; } &&
53576          { ac_try='test -s conftest.$ac_objext'
53577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53578   (eval $ac_try) 2>&5
53579   ac_status=$?
53580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53581   (exit $ac_status); }; }; then
53582
53583 cat >>confdefs.h <<\_ACEOF
53584 #define HAVE_SIGSETJMP 1
53585 _ACEOF
53586
53587 else
53588   echo "$as_me: failed program was:" >&5
53589 sed 's/^/| /' conftest.$ac_ext >&5
53590
53591 fi
53592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53593
53594     cat >>confdefs.h <<\_ACEOF
53595 #define HAVE_MMAP 1
53596 _ACEOF
53597
53598     ;;
53599
53600   *-freebsd*)
53601
53602
53603
53604
53605
53606
53607
53608
53609
53610
53611
53612
53613
53614
53615
53616
53617 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
53618       machine/endian.h machine/param.h sys/machine.h sys/types.h \
53619       fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
53620       sys/time.h unistd.h
53621 do
53622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53624   echo "$as_me:$LINENO: checking for $ac_header" >&5
53625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53627   echo $ECHO_N "(cached) $ECHO_C" >&6
53628 fi
53629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53631 else
53632   # Is the header compilable?
53633 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53635 cat >conftest.$ac_ext <<_ACEOF
53636 /* confdefs.h.  */
53637 _ACEOF
53638 cat confdefs.h >>conftest.$ac_ext
53639 cat >>conftest.$ac_ext <<_ACEOF
53640 /* end confdefs.h.  */
53641 $ac_includes_default
53642 #include <$ac_header>
53643 _ACEOF
53644 rm -f conftest.$ac_objext
53645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53646   (eval $ac_compile) 2>conftest.er1
53647   ac_status=$?
53648   grep -v '^ *+' conftest.er1 >conftest.err
53649   rm -f conftest.er1
53650   cat conftest.err >&5
53651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53652   (exit $ac_status); } &&
53653          { ac_try='test -z "$ac_c_werror_flag"
53654                          || test ! -s conftest.err'
53655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53656   (eval $ac_try) 2>&5
53657   ac_status=$?
53658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53659   (exit $ac_status); }; } &&
53660          { ac_try='test -s conftest.$ac_objext'
53661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53662   (eval $ac_try) 2>&5
53663   ac_status=$?
53664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53665   (exit $ac_status); }; }; then
53666   ac_header_compiler=yes
53667 else
53668   echo "$as_me: failed program was:" >&5
53669 sed 's/^/| /' conftest.$ac_ext >&5
53670
53671 ac_header_compiler=no
53672 fi
53673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
53674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53675 echo "${ECHO_T}$ac_header_compiler" >&6
53676
53677 # Is the header present?
53678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53680 cat >conftest.$ac_ext <<_ACEOF
53681 /* confdefs.h.  */
53682 _ACEOF
53683 cat confdefs.h >>conftest.$ac_ext
53684 cat >>conftest.$ac_ext <<_ACEOF
53685 /* end confdefs.h.  */
53686 #include <$ac_header>
53687 _ACEOF
53688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53689   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53690   ac_status=$?
53691   grep -v '^ *+' conftest.er1 >conftest.err
53692   rm -f conftest.er1
53693   cat conftest.err >&5
53694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53695   (exit $ac_status); } >/dev/null; then
53696   if test -s conftest.err; then
53697     ac_cpp_err=$ac_c_preproc_warn_flag
53698     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
53699   else
53700     ac_cpp_err=
53701   fi
53702 else
53703   ac_cpp_err=yes
53704 fi
53705 if test -z "$ac_cpp_err"; then
53706   ac_header_preproc=yes
53707 else
53708   echo "$as_me: failed program was:" >&5
53709 sed 's/^/| /' conftest.$ac_ext >&5
53710
53711   ac_header_preproc=no
53712 fi
53713 rm -f conftest.err conftest.$ac_ext
53714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53715 echo "${ECHO_T}$ac_header_preproc" >&6
53716
53717 # So?  What about this header?
53718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53719   yes:no: )
53720     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53722     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53724     ac_header_preproc=yes
53725     ;;
53726   no:yes:* )
53727     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53729     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53730 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53731     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53733     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53734 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53737     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53739     (
53740       cat <<\_ASBOX
53741 ## ----------------------------------------- ##
53742 ## Report this to the package-unused lists.  ##
53743 ## ----------------------------------------- ##
53744 _ASBOX
53745     ) |
53746       sed "s/^/$as_me: WARNING:     /" >&2
53747     ;;
53748 esac
53749 echo "$as_me:$LINENO: checking for $ac_header" >&5
53750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53752   echo $ECHO_N "(cached) $ECHO_C" >&6
53753 else
53754   eval "$as_ac_Header=\$ac_header_preproc"
53755 fi
53756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53758
53759 fi
53760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53761   cat >>confdefs.h <<_ACEOF
53762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53763 _ACEOF
53764
53765 fi
53766
53767 done
53768
53769     SECTION_FLAGS='-ffunction-sections -fdata-sections'
53770
53771
53772   # If we're not using GNU ld, then there's no point in even trying these
53773   # tests.  Check for that first.  We should have already tested for gld
53774   # by now (in libtool), but require it now just to be safe...
53775   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
53776   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
53777
53778
53779
53780   # The name set by libtool depends on the version of libtool.  Shame on us
53781   # for depending on an impl detail, but c'est la vie.  Older versions used
53782   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
53783   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
53784   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
53785   # set (hence we're using an older libtool), then set it.
53786   if test x${with_gnu_ld+set} != xset; then
53787     if test x${ac_cv_prog_gnu_ld+set} != xset; then
53788       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
53789       with_gnu_ld=no
53790     else
53791       with_gnu_ld=$ac_cv_prog_gnu_ld
53792     fi
53793   fi
53794
53795   # Start by getting the version number.  I think the libtool test already
53796   # does some of this, but throws away the result.
53797
53798   ldver=`$LD --version 2>/dev/null | head -1 | \
53799          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
53800
53801   glibcxx_gnu_ld_version=`echo $ldver | \
53802          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
53803
53804   # Set --gc-sections.
53805   if test "$with_gnu_ld" = "notbroken"; then
53806     # GNU ld it is!  Joy and bunny rabbits!
53807
53808     # All these tests are for C++; save the language and the compiler flags.
53809     # Need to do this so that g++ won't try to link in libstdc++
53810     ac_test_CFLAGS="${CFLAGS+set}"
53811     ac_save_CFLAGS="$CFLAGS"
53812     CFLAGS='-x c++  -Wl,--gc-sections'
53813
53814     # Check for -Wl,--gc-sections
53815     # XXX This test is broken at the moment, as symbols required for linking
53816     # are now in libsupc++ (not built yet).  In addition, this test has
53817     # cored on solaris in the past.  In addition, --gc-sections doesn't
53818     # really work at the moment (keeps on discarding used sections, first
53819     # .eh_frame and now some of the glibc sections for iconv).
53820     # Bzzzzt.  Thanks for playing, maybe next time.
53821     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
53822 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
53823     if test "$cross_compiling" = yes; then
53824   ac_sectionLDflags=yes
53825 else
53826   cat >conftest.$ac_ext <<_ACEOF
53827 /* confdefs.h.  */
53828 _ACEOF
53829 cat confdefs.h >>conftest.$ac_ext
53830 cat >>conftest.$ac_ext <<_ACEOF
53831 /* end confdefs.h.  */
53832
53833      int main(void)
53834      {
53835        try { throw 1; }
53836        catch (...) { };
53837        return 0;
53838      }
53839
53840 _ACEOF
53841 rm -f conftest$ac_exeext
53842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53843   (eval $ac_link) 2>&5
53844   ac_status=$?
53845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53848   (eval $ac_try) 2>&5
53849   ac_status=$?
53850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53851   (exit $ac_status); }; }; then
53852   ac_sectionLDflags=yes
53853 else
53854   echo "$as_me: program exited with status $ac_status" >&5
53855 echo "$as_me: failed program was:" >&5
53856 sed 's/^/| /' conftest.$ac_ext >&5
53857
53858 ( exit $ac_status )
53859 ac_sectionLDflags=no
53860 fi
53861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53862 fi
53863     if test "$ac_test_CFLAGS" = set; then
53864       CFLAGS="$ac_save_CFLAGS"
53865     else
53866       # this is the suspicious part
53867       CFLAGS=''
53868     fi
53869     if test "$ac_sectionLDflags" = "yes"; then
53870       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
53871     fi
53872     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
53873 echo "${ECHO_T}$ac_sectionLDflags" >&6
53874   fi
53875
53876   # Set linker optimization flags.
53877   if test x"$with_gnu_ld" = x"yes"; then
53878     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
53879   fi
53880
53881
53882
53883
53884
53885
53886 echo "$as_me:$LINENO: checking for main in -lm" >&5
53887 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
53888 if test "${ac_cv_lib_m_main+set}" = set; then
53889   echo $ECHO_N "(cached) $ECHO_C" >&6
53890 else
53891   ac_check_lib_save_LIBS=$LIBS
53892 LIBS="-lm  $LIBS"
53893 if test x$gcc_no_link = xyes; then
53894   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53895 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53896    { (exit 1); exit 1; }; }
53897 fi
53898 cat >conftest.$ac_ext <<_ACEOF
53899 /* confdefs.h.  */
53900 _ACEOF
53901 cat confdefs.h >>conftest.$ac_ext
53902 cat >>conftest.$ac_ext <<_ACEOF
53903 /* end confdefs.h.  */
53904
53905
53906 int
53907 main ()
53908 {
53909 main ();
53910   ;
53911   return 0;
53912 }
53913 _ACEOF
53914 rm -f conftest.$ac_objext conftest$ac_exeext
53915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53916   (eval $ac_link) 2>conftest.er1
53917   ac_status=$?
53918   grep -v '^ *+' conftest.er1 >conftest.err
53919   rm -f conftest.er1
53920   cat conftest.err >&5
53921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53922   (exit $ac_status); } &&
53923          { ac_try='test -z "$ac_c_werror_flag"
53924                          || test ! -s conftest.err'
53925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53926   (eval $ac_try) 2>&5
53927   ac_status=$?
53928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53929   (exit $ac_status); }; } &&
53930          { ac_try='test -s conftest$ac_exeext'
53931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53932   (eval $ac_try) 2>&5
53933   ac_status=$?
53934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53935   (exit $ac_status); }; }; then
53936   ac_cv_lib_m_main=yes
53937 else
53938   echo "$as_me: failed program was:" >&5
53939 sed 's/^/| /' conftest.$ac_ext >&5
53940
53941 ac_cv_lib_m_main=no
53942 fi
53943 rm -f conftest.err conftest.$ac_objext \
53944       conftest$ac_exeext conftest.$ac_ext
53945 LIBS=$ac_check_lib_save_LIBS
53946 fi
53947 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
53948 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
53949 if test $ac_cv_lib_m_main = yes; then
53950   cat >>confdefs.h <<_ACEOF
53951 #define HAVE_LIBM 1
53952 _ACEOF
53953
53954   LIBS="-lm $LIBS"
53955
53956 fi
53957
53958
53959 for ac_func in copysignf
53960 do
53961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53962 echo "$as_me:$LINENO: checking for $ac_func" >&5
53963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53964 if eval "test \"\${$as_ac_var+set}\" = set"; then
53965   echo $ECHO_N "(cached) $ECHO_C" >&6
53966 else
53967   if test x$gcc_no_link = xyes; then
53968   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
53969 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
53970    { (exit 1); exit 1; }; }
53971 fi
53972 cat >conftest.$ac_ext <<_ACEOF
53973 /* confdefs.h.  */
53974 _ACEOF
53975 cat confdefs.h >>conftest.$ac_ext
53976 cat >>conftest.$ac_ext <<_ACEOF
53977 /* end confdefs.h.  */
53978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53980 #define $ac_func innocuous_$ac_func
53981
53982 /* System header to define __stub macros and hopefully few prototypes,
53983     which can conflict with char $ac_func (); below.
53984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53985     <limits.h> exists even on freestanding compilers.  */
53986
53987 #ifdef __STDC__
53988 # include <limits.h>
53989 #else
53990 # include <assert.h>
53991 #endif
53992
53993 #undef $ac_func
53994
53995 /* Override any gcc2 internal prototype to avoid an error.  */
53996 #ifdef __cplusplus
53997 extern "C"
53998 {
53999 #endif
54000 /* We use char because int might match the return type of a gcc2
54001    builtin and then its argument prototype would still apply.  */
54002 char $ac_func ();
54003 /* The GNU C library defines this for functions which it implements
54004     to always fail with ENOSYS.  Some functions are actually named
54005     something starting with __ and the normal name is an alias.  */
54006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54007 choke me
54008 #else
54009 char (*f) () = $ac_func;
54010 #endif
54011 #ifdef __cplusplus
54012 }
54013 #endif
54014
54015 int
54016 main ()
54017 {
54018 return f != $ac_func;
54019   ;
54020   return 0;
54021 }
54022 _ACEOF
54023 rm -f conftest.$ac_objext conftest$ac_exeext
54024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54025   (eval $ac_link) 2>conftest.er1
54026   ac_status=$?
54027   grep -v '^ *+' conftest.er1 >conftest.err
54028   rm -f conftest.er1
54029   cat conftest.err >&5
54030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54031   (exit $ac_status); } &&
54032          { ac_try='test -z "$ac_c_werror_flag"
54033                          || test ! -s conftest.err'
54034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54035   (eval $ac_try) 2>&5
54036   ac_status=$?
54037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54038   (exit $ac_status); }; } &&
54039          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
54045   eval "$as_ac_var=yes"
54046 else
54047   echo "$as_me: failed program was:" >&5
54048 sed 's/^/| /' conftest.$ac_ext >&5
54049
54050 eval "$as_ac_var=no"
54051 fi
54052 rm -f conftest.err conftest.$ac_objext \
54053       conftest$ac_exeext conftest.$ac_ext
54054 fi
54055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54057 if test `eval echo '${'$as_ac_var'}'` = yes; then
54058   cat >>confdefs.h <<_ACEOF
54059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54060 _ACEOF
54061
54062 else
54063   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
54064 fi
54065 done
54066
54067
54068
54069 for ac_func in __signbit
54070 do
54071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54072 echo "$as_me:$LINENO: checking for $ac_func" >&5
54073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54074 if eval "test \"\${$as_ac_var+set}\" = set"; then
54075   echo $ECHO_N "(cached) $ECHO_C" >&6
54076 else
54077   if test x$gcc_no_link = xyes; then
54078   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54079 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54080    { (exit 1); exit 1; }; }
54081 fi
54082 cat >conftest.$ac_ext <<_ACEOF
54083 /* confdefs.h.  */
54084 _ACEOF
54085 cat confdefs.h >>conftest.$ac_ext
54086 cat >>conftest.$ac_ext <<_ACEOF
54087 /* end confdefs.h.  */
54088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54090 #define $ac_func innocuous_$ac_func
54091
54092 /* System header to define __stub macros and hopefully few prototypes,
54093     which can conflict with char $ac_func (); below.
54094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54095     <limits.h> exists even on freestanding compilers.  */
54096
54097 #ifdef __STDC__
54098 # include <limits.h>
54099 #else
54100 # include <assert.h>
54101 #endif
54102
54103 #undef $ac_func
54104
54105 /* Override any gcc2 internal prototype to avoid an error.  */
54106 #ifdef __cplusplus
54107 extern "C"
54108 {
54109 #endif
54110 /* We use char because int might match the return type of a gcc2
54111    builtin and then its argument prototype would still apply.  */
54112 char $ac_func ();
54113 /* The GNU C library defines this for functions which it implements
54114     to always fail with ENOSYS.  Some functions are actually named
54115     something starting with __ and the normal name is an alias.  */
54116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54117 choke me
54118 #else
54119 char (*f) () = $ac_func;
54120 #endif
54121 #ifdef __cplusplus
54122 }
54123 #endif
54124
54125 int
54126 main ()
54127 {
54128 return f != $ac_func;
54129   ;
54130   return 0;
54131 }
54132 _ACEOF
54133 rm -f conftest.$ac_objext conftest$ac_exeext
54134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54135   (eval $ac_link) 2>conftest.er1
54136   ac_status=$?
54137   grep -v '^ *+' conftest.er1 >conftest.err
54138   rm -f conftest.er1
54139   cat conftest.err >&5
54140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54141   (exit $ac_status); } &&
54142          { ac_try='test -z "$ac_c_werror_flag"
54143                          || test ! -s conftest.err'
54144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54145   (eval $ac_try) 2>&5
54146   ac_status=$?
54147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54148   (exit $ac_status); }; } &&
54149          { ac_try='test -s conftest$ac_exeext'
54150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54151   (eval $ac_try) 2>&5
54152   ac_status=$?
54153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54154   (exit $ac_status); }; }; then
54155   eval "$as_ac_var=yes"
54156 else
54157   echo "$as_me: failed program was:" >&5
54158 sed 's/^/| /' conftest.$ac_ext >&5
54159
54160 eval "$as_ac_var=no"
54161 fi
54162 rm -f conftest.err conftest.$ac_objext \
54163       conftest$ac_exeext conftest.$ac_ext
54164 fi
54165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54167 if test `eval echo '${'$as_ac_var'}'` = yes; then
54168   cat >>confdefs.h <<_ACEOF
54169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54170 _ACEOF
54171
54172 else
54173   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
54174 fi
54175 done
54176
54177
54178 for ac_func in __signbitf
54179 do
54180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54181 echo "$as_me:$LINENO: checking for $ac_func" >&5
54182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54183 if eval "test \"\${$as_ac_var+set}\" = set"; then
54184   echo $ECHO_N "(cached) $ECHO_C" >&6
54185 else
54186   if test x$gcc_no_link = xyes; then
54187   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54189    { (exit 1); exit 1; }; }
54190 fi
54191 cat >conftest.$ac_ext <<_ACEOF
54192 /* confdefs.h.  */
54193 _ACEOF
54194 cat confdefs.h >>conftest.$ac_ext
54195 cat >>conftest.$ac_ext <<_ACEOF
54196 /* end confdefs.h.  */
54197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54199 #define $ac_func innocuous_$ac_func
54200
54201 /* System header to define __stub macros and hopefully few prototypes,
54202     which can conflict with char $ac_func (); below.
54203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54204     <limits.h> exists even on freestanding compilers.  */
54205
54206 #ifdef __STDC__
54207 # include <limits.h>
54208 #else
54209 # include <assert.h>
54210 #endif
54211
54212 #undef $ac_func
54213
54214 /* Override any gcc2 internal prototype to avoid an error.  */
54215 #ifdef __cplusplus
54216 extern "C"
54217 {
54218 #endif
54219 /* We use char because int might match the return type of a gcc2
54220    builtin and then its argument prototype would still apply.  */
54221 char $ac_func ();
54222 /* The GNU C library defines this for functions which it implements
54223     to always fail with ENOSYS.  Some functions are actually named
54224     something starting with __ and the normal name is an alias.  */
54225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54226 choke me
54227 #else
54228 char (*f) () = $ac_func;
54229 #endif
54230 #ifdef __cplusplus
54231 }
54232 #endif
54233
54234 int
54235 main ()
54236 {
54237 return f != $ac_func;
54238   ;
54239   return 0;
54240 }
54241 _ACEOF
54242 rm -f conftest.$ac_objext conftest$ac_exeext
54243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54244   (eval $ac_link) 2>conftest.er1
54245   ac_status=$?
54246   grep -v '^ *+' conftest.er1 >conftest.err
54247   rm -f conftest.er1
54248   cat conftest.err >&5
54249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54250   (exit $ac_status); } &&
54251          { ac_try='test -z "$ac_c_werror_flag"
54252                          || test ! -s conftest.err'
54253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54254   (eval $ac_try) 2>&5
54255   ac_status=$?
54256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54257   (exit $ac_status); }; } &&
54258          { ac_try='test -s conftest$ac_exeext'
54259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54260   (eval $ac_try) 2>&5
54261   ac_status=$?
54262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54263   (exit $ac_status); }; }; then
54264   eval "$as_ac_var=yes"
54265 else
54266   echo "$as_me: failed program was:" >&5
54267 sed 's/^/| /' conftest.$ac_ext >&5
54268
54269 eval "$as_ac_var=no"
54270 fi
54271 rm -f conftest.err conftest.$ac_objext \
54272       conftest$ac_exeext conftest.$ac_ext
54273 fi
54274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54275 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54276 if test `eval echo '${'$as_ac_var'}'` = yes; then
54277   cat >>confdefs.h <<_ACEOF
54278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54279 _ACEOF
54280
54281 else
54282   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
54283 fi
54284 done
54285
54286
54287           if test x$ac_cv_func_copysignl = x"yes"; then
54288
54289 for ac_func in __signbitl
54290 do
54291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54292 echo "$as_me:$LINENO: checking for $ac_func" >&5
54293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54294 if eval "test \"\${$as_ac_var+set}\" = set"; then
54295   echo $ECHO_N "(cached) $ECHO_C" >&6
54296 else
54297   if test x$gcc_no_link = xyes; then
54298   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54299 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54300    { (exit 1); exit 1; }; }
54301 fi
54302 cat >conftest.$ac_ext <<_ACEOF
54303 /* confdefs.h.  */
54304 _ACEOF
54305 cat confdefs.h >>conftest.$ac_ext
54306 cat >>conftest.$ac_ext <<_ACEOF
54307 /* end confdefs.h.  */
54308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54310 #define $ac_func innocuous_$ac_func
54311
54312 /* System header to define __stub macros and hopefully few prototypes,
54313     which can conflict with char $ac_func (); below.
54314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54315     <limits.h> exists even on freestanding compilers.  */
54316
54317 #ifdef __STDC__
54318 # include <limits.h>
54319 #else
54320 # include <assert.h>
54321 #endif
54322
54323 #undef $ac_func
54324
54325 /* Override any gcc2 internal prototype to avoid an error.  */
54326 #ifdef __cplusplus
54327 extern "C"
54328 {
54329 #endif
54330 /* We use char because int might match the return type of a gcc2
54331    builtin and then its argument prototype would still apply.  */
54332 char $ac_func ();
54333 /* The GNU C library defines this for functions which it implements
54334     to always fail with ENOSYS.  Some functions are actually named
54335     something starting with __ and the normal name is an alias.  */
54336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54337 choke me
54338 #else
54339 char (*f) () = $ac_func;
54340 #endif
54341 #ifdef __cplusplus
54342 }
54343 #endif
54344
54345 int
54346 main ()
54347 {
54348 return f != $ac_func;
54349   ;
54350   return 0;
54351 }
54352 _ACEOF
54353 rm -f conftest.$ac_objext conftest$ac_exeext
54354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54355   (eval $ac_link) 2>conftest.er1
54356   ac_status=$?
54357   grep -v '^ *+' conftest.er1 >conftest.err
54358   rm -f conftest.er1
54359   cat conftest.err >&5
54360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54361   (exit $ac_status); } &&
54362          { ac_try='test -z "$ac_c_werror_flag"
54363                          || test ! -s conftest.err'
54364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54365   (eval $ac_try) 2>&5
54366   ac_status=$?
54367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54368   (exit $ac_status); }; } &&
54369          { ac_try='test -s conftest$ac_exeext'
54370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54371   (eval $ac_try) 2>&5
54372   ac_status=$?
54373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54374   (exit $ac_status); }; }; then
54375   eval "$as_ac_var=yes"
54376 else
54377   echo "$as_me: failed program was:" >&5
54378 sed 's/^/| /' conftest.$ac_ext >&5
54379
54380 eval "$as_ac_var=no"
54381 fi
54382 rm -f conftest.err conftest.$ac_objext \
54383       conftest$ac_exeext conftest.$ac_ext
54384 fi
54385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54387 if test `eval echo '${'$as_ac_var'}'` = yes; then
54388   cat >>confdefs.h <<_ACEOF
54389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54390 _ACEOF
54391
54392 else
54393   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
54394 fi
54395 done
54396
54397   fi
54398
54399   # XXX Review this.  Nothing uses it.
54400   if test -n "$LIBMATHOBJS"; then
54401     need_libmath=yes
54402   fi
54403
54404
54405
54406   # Test wchar.h for mbstate_t, which is needed for char_traits and
54407   # others even if wchar_t support is not on.
54408   echo "$as_me:$LINENO: checking for mbstate_t" >&5
54409 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
54410   cat >conftest.$ac_ext <<_ACEOF
54411 /* confdefs.h.  */
54412 _ACEOF
54413 cat confdefs.h >>conftest.$ac_ext
54414 cat >>conftest.$ac_ext <<_ACEOF
54415 /* end confdefs.h.  */
54416 #include <wchar.h>
54417 int
54418 main ()
54419 {
54420 mbstate_t teststate;
54421   ;
54422   return 0;
54423 }
54424 _ACEOF
54425 rm -f conftest.$ac_objext
54426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54427   (eval $ac_compile) 2>conftest.er1
54428   ac_status=$?
54429   grep -v '^ *+' conftest.er1 >conftest.err
54430   rm -f conftest.er1
54431   cat conftest.err >&5
54432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54433   (exit $ac_status); } &&
54434          { ac_try='test -z "$ac_c_werror_flag"
54435                          || test ! -s conftest.err'
54436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54437   (eval $ac_try) 2>&5
54438   ac_status=$?
54439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54440   (exit $ac_status); }; } &&
54441          { ac_try='test -s conftest.$ac_objext'
54442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54443   (eval $ac_try) 2>&5
54444   ac_status=$?
54445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54446   (exit $ac_status); }; }; then
54447   have_mbstate_t=yes
54448 else
54449   echo "$as_me: failed program was:" >&5
54450 sed 's/^/| /' conftest.$ac_ext >&5
54451
54452 have_mbstate_t=no
54453 fi
54454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54455   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
54456 echo "${ECHO_T}$have_mbstate_t" >&6
54457   if test x"$have_mbstate_t" = xyes; then
54458     cat >>confdefs.h <<\_ACEOF
54459 #define HAVE_MBSTATE_T 1
54460 _ACEOF
54461
54462   fi
54463
54464   # Sanity check for existence of ISO C99 headers for extended encoding.
54465
54466 for ac_header in wchar.h
54467 do
54468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54470   echo "$as_me:$LINENO: checking for $ac_header" >&5
54471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54473   echo $ECHO_N "(cached) $ECHO_C" >&6
54474 fi
54475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54477 else
54478   # Is the header compilable?
54479 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54481 cat >conftest.$ac_ext <<_ACEOF
54482 /* confdefs.h.  */
54483 _ACEOF
54484 cat confdefs.h >>conftest.$ac_ext
54485 cat >>conftest.$ac_ext <<_ACEOF
54486 /* end confdefs.h.  */
54487 $ac_includes_default
54488 #include <$ac_header>
54489 _ACEOF
54490 rm -f conftest.$ac_objext
54491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54492   (eval $ac_compile) 2>conftest.er1
54493   ac_status=$?
54494   grep -v '^ *+' conftest.er1 >conftest.err
54495   rm -f conftest.er1
54496   cat conftest.err >&5
54497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54498   (exit $ac_status); } &&
54499          { ac_try='test -z "$ac_c_werror_flag"
54500                          || test ! -s conftest.err'
54501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54502   (eval $ac_try) 2>&5
54503   ac_status=$?
54504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54505   (exit $ac_status); }; } &&
54506          { ac_try='test -s conftest.$ac_objext'
54507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54508   (eval $ac_try) 2>&5
54509   ac_status=$?
54510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54511   (exit $ac_status); }; }; then
54512   ac_header_compiler=yes
54513 else
54514   echo "$as_me: failed program was:" >&5
54515 sed 's/^/| /' conftest.$ac_ext >&5
54516
54517 ac_header_compiler=no
54518 fi
54519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54521 echo "${ECHO_T}$ac_header_compiler" >&6
54522
54523 # Is the header present?
54524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54526 cat >conftest.$ac_ext <<_ACEOF
54527 /* confdefs.h.  */
54528 _ACEOF
54529 cat confdefs.h >>conftest.$ac_ext
54530 cat >>conftest.$ac_ext <<_ACEOF
54531 /* end confdefs.h.  */
54532 #include <$ac_header>
54533 _ACEOF
54534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54536   ac_status=$?
54537   grep -v '^ *+' conftest.er1 >conftest.err
54538   rm -f conftest.er1
54539   cat conftest.err >&5
54540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54541   (exit $ac_status); } >/dev/null; then
54542   if test -s conftest.err; then
54543     ac_cpp_err=$ac_c_preproc_warn_flag
54544     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54545   else
54546     ac_cpp_err=
54547   fi
54548 else
54549   ac_cpp_err=yes
54550 fi
54551 if test -z "$ac_cpp_err"; then
54552   ac_header_preproc=yes
54553 else
54554   echo "$as_me: failed program was:" >&5
54555 sed 's/^/| /' conftest.$ac_ext >&5
54556
54557   ac_header_preproc=no
54558 fi
54559 rm -f conftest.err conftest.$ac_ext
54560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54561 echo "${ECHO_T}$ac_header_preproc" >&6
54562
54563 # So?  What about this header?
54564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54565   yes:no: )
54566     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54570     ac_header_preproc=yes
54571     ;;
54572   no:yes:* )
54573     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54575     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54576 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54577     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54579     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54580 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54583     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54585     (
54586       cat <<\_ASBOX
54587 ## ----------------------------------------- ##
54588 ## Report this to the package-unused lists.  ##
54589 ## ----------------------------------------- ##
54590 _ASBOX
54591     ) |
54592       sed "s/^/$as_me: WARNING:     /" >&2
54593     ;;
54594 esac
54595 echo "$as_me:$LINENO: checking for $ac_header" >&5
54596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54598   echo $ECHO_N "(cached) $ECHO_C" >&6
54599 else
54600   eval "$as_ac_Header=\$ac_header_preproc"
54601 fi
54602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54604
54605 fi
54606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54607   cat >>confdefs.h <<_ACEOF
54608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54609 _ACEOF
54610  ac_has_wchar_h=yes
54611 else
54612   ac_has_wchar_h=no
54613 fi
54614
54615 done
54616
54617
54618 for ac_header in wctype.h
54619 do
54620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54622   echo "$as_me:$LINENO: checking for $ac_header" >&5
54623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54625   echo $ECHO_N "(cached) $ECHO_C" >&6
54626 fi
54627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54629 else
54630   # Is the header compilable?
54631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
54632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
54633 cat >conftest.$ac_ext <<_ACEOF
54634 /* confdefs.h.  */
54635 _ACEOF
54636 cat confdefs.h >>conftest.$ac_ext
54637 cat >>conftest.$ac_ext <<_ACEOF
54638 /* end confdefs.h.  */
54639 $ac_includes_default
54640 #include <$ac_header>
54641 _ACEOF
54642 rm -f conftest.$ac_objext
54643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54644   (eval $ac_compile) 2>conftest.er1
54645   ac_status=$?
54646   grep -v '^ *+' conftest.er1 >conftest.err
54647   rm -f conftest.er1
54648   cat conftest.err >&5
54649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54650   (exit $ac_status); } &&
54651          { ac_try='test -z "$ac_c_werror_flag"
54652                          || test ! -s conftest.err'
54653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54654   (eval $ac_try) 2>&5
54655   ac_status=$?
54656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54657   (exit $ac_status); }; } &&
54658          { ac_try='test -s conftest.$ac_objext'
54659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54660   (eval $ac_try) 2>&5
54661   ac_status=$?
54662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54663   (exit $ac_status); }; }; then
54664   ac_header_compiler=yes
54665 else
54666   echo "$as_me: failed program was:" >&5
54667 sed 's/^/| /' conftest.$ac_ext >&5
54668
54669 ac_header_compiler=no
54670 fi
54671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54673 echo "${ECHO_T}$ac_header_compiler" >&6
54674
54675 # Is the header present?
54676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
54677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
54678 cat >conftest.$ac_ext <<_ACEOF
54679 /* confdefs.h.  */
54680 _ACEOF
54681 cat confdefs.h >>conftest.$ac_ext
54682 cat >>conftest.$ac_ext <<_ACEOF
54683 /* end confdefs.h.  */
54684 #include <$ac_header>
54685 _ACEOF
54686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54687   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54688   ac_status=$?
54689   grep -v '^ *+' conftest.er1 >conftest.err
54690   rm -f conftest.er1
54691   cat conftest.err >&5
54692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54693   (exit $ac_status); } >/dev/null; then
54694   if test -s conftest.err; then
54695     ac_cpp_err=$ac_c_preproc_warn_flag
54696     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
54697   else
54698     ac_cpp_err=
54699   fi
54700 else
54701   ac_cpp_err=yes
54702 fi
54703 if test -z "$ac_cpp_err"; then
54704   ac_header_preproc=yes
54705 else
54706   echo "$as_me: failed program was:" >&5
54707 sed 's/^/| /' conftest.$ac_ext >&5
54708
54709   ac_header_preproc=no
54710 fi
54711 rm -f conftest.err conftest.$ac_ext
54712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54713 echo "${ECHO_T}$ac_header_preproc" >&6
54714
54715 # So?  What about this header?
54716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54717   yes:no: )
54718     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54722     ac_header_preproc=yes
54723     ;;
54724   no:yes:* )
54725     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54727     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54728 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54729     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54731     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54732 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54735     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54737     (
54738       cat <<\_ASBOX
54739 ## ----------------------------------------- ##
54740 ## Report this to the package-unused lists.  ##
54741 ## ----------------------------------------- ##
54742 _ASBOX
54743     ) |
54744       sed "s/^/$as_me: WARNING:     /" >&2
54745     ;;
54746 esac
54747 echo "$as_me:$LINENO: checking for $ac_header" >&5
54748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
54749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
54750   echo $ECHO_N "(cached) $ECHO_C" >&6
54751 else
54752   eval "$as_ac_Header=\$ac_header_preproc"
54753 fi
54754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
54755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
54756
54757 fi
54758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54759   cat >>confdefs.h <<_ACEOF
54760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54761 _ACEOF
54762  ac_has_wctype_h=yes
54763 else
54764   ac_has_wctype_h=no
54765 fi
54766
54767 done
54768
54769
54770   # Only continue checking if the ISO C99 headers exist and support is on.
54771   if test x"$ac_has_wchar_h" = xyes &&
54772      test x"$ac_has_wctype_h" = xyes &&
54773      test x"$enable_c_mbchar" != xno; then
54774
54775     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
54776     # numeric_limits can instantiate type_traits<wchar_t>
54777     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
54778 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
54779     cat >conftest.$ac_ext <<_ACEOF
54780 /* confdefs.h.  */
54781 _ACEOF
54782 cat confdefs.h >>conftest.$ac_ext
54783 cat >>conftest.$ac_ext <<_ACEOF
54784 /* end confdefs.h.  */
54785 #include <wchar.h>
54786 int
54787 main ()
54788 {
54789 int i = WCHAR_MIN; int j = WCHAR_MAX;
54790   ;
54791   return 0;
54792 }
54793 _ACEOF
54794 rm -f conftest.$ac_objext
54795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54796   (eval $ac_compile) 2>conftest.er1
54797   ac_status=$?
54798   grep -v '^ *+' conftest.er1 >conftest.err
54799   rm -f conftest.er1
54800   cat conftest.err >&5
54801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54802   (exit $ac_status); } &&
54803          { ac_try='test -z "$ac_c_werror_flag"
54804                          || test ! -s conftest.err'
54805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54806   (eval $ac_try) 2>&5
54807   ac_status=$?
54808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54809   (exit $ac_status); }; } &&
54810          { ac_try='test -s conftest.$ac_objext'
54811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54812   (eval $ac_try) 2>&5
54813   ac_status=$?
54814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54815   (exit $ac_status); }; }; then
54816   has_wchar_minmax=yes
54817 else
54818   echo "$as_me: failed program was:" >&5
54819 sed 's/^/| /' conftest.$ac_ext >&5
54820
54821 has_wchar_minmax=no
54822 fi
54823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54824     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
54825 echo "${ECHO_T}$has_wchar_minmax" >&6
54826
54827     # Test wchar.h for WEOF, which is what we use to determine whether
54828     # to specialize for char_traits<wchar_t> or not.
54829     echo "$as_me:$LINENO: checking for WEOF" >&5
54830 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
54831     cat >conftest.$ac_ext <<_ACEOF
54832 /* confdefs.h.  */
54833 _ACEOF
54834 cat confdefs.h >>conftest.$ac_ext
54835 cat >>conftest.$ac_ext <<_ACEOF
54836 /* end confdefs.h.  */
54837
54838       #include <wchar.h>
54839       #include <stddef.h>
54840 int
54841 main ()
54842 {
54843 wint_t i = WEOF;
54844   ;
54845   return 0;
54846 }
54847 _ACEOF
54848 rm -f conftest.$ac_objext
54849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54850   (eval $ac_compile) 2>conftest.er1
54851   ac_status=$?
54852   grep -v '^ *+' conftest.er1 >conftest.err
54853   rm -f conftest.er1
54854   cat conftest.err >&5
54855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54856   (exit $ac_status); } &&
54857          { ac_try='test -z "$ac_c_werror_flag"
54858                          || test ! -s conftest.err'
54859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54860   (eval $ac_try) 2>&5
54861   ac_status=$?
54862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54863   (exit $ac_status); }; } &&
54864          { ac_try='test -s conftest.$ac_objext'
54865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54866   (eval $ac_try) 2>&5
54867   ac_status=$?
54868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54869   (exit $ac_status); }; }; then
54870   has_weof=yes
54871 else
54872   echo "$as_me: failed program was:" >&5
54873 sed 's/^/| /' conftest.$ac_ext >&5
54874
54875 has_weof=no
54876 fi
54877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54878     echo "$as_me:$LINENO: result: $has_weof" >&5
54879 echo "${ECHO_T}$has_weof" >&6
54880
54881     # Tests for wide character functions used in char_traits<wchar_t>.
54882     ac_wfuncs=yes
54883
54884
54885
54886
54887
54888
54889 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
54890 do
54891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54892 echo "$as_me:$LINENO: checking for $ac_func" >&5
54893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54894 if eval "test \"\${$as_ac_var+set}\" = set"; then
54895   echo $ECHO_N "(cached) $ECHO_C" >&6
54896 else
54897   if test x$gcc_no_link = xyes; then
54898   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
54899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
54900    { (exit 1); exit 1; }; }
54901 fi
54902 cat >conftest.$ac_ext <<_ACEOF
54903 /* confdefs.h.  */
54904 _ACEOF
54905 cat confdefs.h >>conftest.$ac_ext
54906 cat >>conftest.$ac_ext <<_ACEOF
54907 /* end confdefs.h.  */
54908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54910 #define $ac_func innocuous_$ac_func
54911
54912 /* System header to define __stub macros and hopefully few prototypes,
54913     which can conflict with char $ac_func (); below.
54914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54915     <limits.h> exists even on freestanding compilers.  */
54916
54917 #ifdef __STDC__
54918 # include <limits.h>
54919 #else
54920 # include <assert.h>
54921 #endif
54922
54923 #undef $ac_func
54924
54925 /* Override any gcc2 internal prototype to avoid an error.  */
54926 #ifdef __cplusplus
54927 extern "C"
54928 {
54929 #endif
54930 /* We use char because int might match the return type of a gcc2
54931    builtin and then its argument prototype would still apply.  */
54932 char $ac_func ();
54933 /* The GNU C library defines this for functions which it implements
54934     to always fail with ENOSYS.  Some functions are actually named
54935     something starting with __ and the normal name is an alias.  */
54936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54937 choke me
54938 #else
54939 char (*f) () = $ac_func;
54940 #endif
54941 #ifdef __cplusplus
54942 }
54943 #endif
54944
54945 int
54946 main ()
54947 {
54948 return f != $ac_func;
54949   ;
54950   return 0;
54951 }
54952 _ACEOF
54953 rm -f conftest.$ac_objext conftest$ac_exeext
54954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54955   (eval $ac_link) 2>conftest.er1
54956   ac_status=$?
54957   grep -v '^ *+' conftest.er1 >conftest.err
54958   rm -f conftest.er1
54959   cat conftest.err >&5
54960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54961   (exit $ac_status); } &&
54962          { ac_try='test -z "$ac_c_werror_flag"
54963                          || test ! -s conftest.err'
54964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54965   (eval $ac_try) 2>&5
54966   ac_status=$?
54967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54968   (exit $ac_status); }; } &&
54969          { ac_try='test -s conftest$ac_exeext'
54970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54971   (eval $ac_try) 2>&5
54972   ac_status=$?
54973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54974   (exit $ac_status); }; }; then
54975   eval "$as_ac_var=yes"
54976 else
54977   echo "$as_me: failed program was:" >&5
54978 sed 's/^/| /' conftest.$ac_ext >&5
54979
54980 eval "$as_ac_var=no"
54981 fi
54982 rm -f conftest.err conftest.$ac_objext \
54983       conftest$ac_exeext conftest.$ac_ext
54984 fi
54985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54987 if test `eval echo '${'$as_ac_var'}'` = yes; then
54988   cat >>confdefs.h <<_ACEOF
54989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54990 _ACEOF
54991
54992 else
54993   ac_wfuncs=no
54994 fi
54995 done
54996
54997
54998     # Checks for names injected into std:: by the c_std headers.
54999
55000
55001
55002
55003
55004
55005
55006
55007
55008
55009
55010
55011
55012
55013
55014
55015
55016
55017
55018
55019
55020
55021
55022
55023
55024
55025
55026
55027
55028
55029
55030
55031
55032
55033
55034
55035
55036
55037
55038
55039
55040
55041
55042
55043
55044
55045 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
55046     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
55047     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
55048     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
55049     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
55050     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
55051 do
55052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55053 echo "$as_me:$LINENO: checking for $ac_func" >&5
55054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55055 if eval "test \"\${$as_ac_var+set}\" = set"; then
55056   echo $ECHO_N "(cached) $ECHO_C" >&6
55057 else
55058   if test x$gcc_no_link = xyes; then
55059   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55060 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55061    { (exit 1); exit 1; }; }
55062 fi
55063 cat >conftest.$ac_ext <<_ACEOF
55064 /* confdefs.h.  */
55065 _ACEOF
55066 cat confdefs.h >>conftest.$ac_ext
55067 cat >>conftest.$ac_ext <<_ACEOF
55068 /* end confdefs.h.  */
55069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55071 #define $ac_func innocuous_$ac_func
55072
55073 /* System header to define __stub macros and hopefully few prototypes,
55074     which can conflict with char $ac_func (); below.
55075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55076     <limits.h> exists even on freestanding compilers.  */
55077
55078 #ifdef __STDC__
55079 # include <limits.h>
55080 #else
55081 # include <assert.h>
55082 #endif
55083
55084 #undef $ac_func
55085
55086 /* Override any gcc2 internal prototype to avoid an error.  */
55087 #ifdef __cplusplus
55088 extern "C"
55089 {
55090 #endif
55091 /* We use char because int might match the return type of a gcc2
55092    builtin and then its argument prototype would still apply.  */
55093 char $ac_func ();
55094 /* The GNU C library defines this for functions which it implements
55095     to always fail with ENOSYS.  Some functions are actually named
55096     something starting with __ and the normal name is an alias.  */
55097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55098 choke me
55099 #else
55100 char (*f) () = $ac_func;
55101 #endif
55102 #ifdef __cplusplus
55103 }
55104 #endif
55105
55106 int
55107 main ()
55108 {
55109 return f != $ac_func;
55110   ;
55111   return 0;
55112 }
55113 _ACEOF
55114 rm -f conftest.$ac_objext conftest$ac_exeext
55115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55116   (eval $ac_link) 2>conftest.er1
55117   ac_status=$?
55118   grep -v '^ *+' conftest.er1 >conftest.err
55119   rm -f conftest.er1
55120   cat conftest.err >&5
55121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55122   (exit $ac_status); } &&
55123          { ac_try='test -z "$ac_c_werror_flag"
55124                          || test ! -s conftest.err'
55125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55126   (eval $ac_try) 2>&5
55127   ac_status=$?
55128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55129   (exit $ac_status); }; } &&
55130          { ac_try='test -s conftest$ac_exeext'
55131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55132   (eval $ac_try) 2>&5
55133   ac_status=$?
55134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55135   (exit $ac_status); }; }; then
55136   eval "$as_ac_var=yes"
55137 else
55138   echo "$as_me: failed program was:" >&5
55139 sed 's/^/| /' conftest.$ac_ext >&5
55140
55141 eval "$as_ac_var=no"
55142 fi
55143 rm -f conftest.err conftest.$ac_objext \
55144       conftest$ac_exeext conftest.$ac_ext
55145 fi
55146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55148 if test `eval echo '${'$as_ac_var'}'` = yes; then
55149   cat >>confdefs.h <<_ACEOF
55150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55151 _ACEOF
55152
55153 else
55154   ac_wfuncs=no
55155 fi
55156 done
55157
55158
55159     # Checks for wide character functions that are not required
55160     # for basic wchar_t support.  Don't disable support if they are missing.
55161     # Injection of these is wrapped with guard macros.
55162
55163
55164
55165
55166
55167 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
55168 do
55169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55170 echo "$as_me:$LINENO: checking for $ac_func" >&5
55171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55172 if eval "test \"\${$as_ac_var+set}\" = set"; then
55173   echo $ECHO_N "(cached) $ECHO_C" >&6
55174 else
55175   if test x$gcc_no_link = xyes; then
55176   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55177 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55178    { (exit 1); exit 1; }; }
55179 fi
55180 cat >conftest.$ac_ext <<_ACEOF
55181 /* confdefs.h.  */
55182 _ACEOF
55183 cat confdefs.h >>conftest.$ac_ext
55184 cat >>conftest.$ac_ext <<_ACEOF
55185 /* end confdefs.h.  */
55186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55188 #define $ac_func innocuous_$ac_func
55189
55190 /* System header to define __stub macros and hopefully few prototypes,
55191     which can conflict with char $ac_func (); below.
55192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55193     <limits.h> exists even on freestanding compilers.  */
55194
55195 #ifdef __STDC__
55196 # include <limits.h>
55197 #else
55198 # include <assert.h>
55199 #endif
55200
55201 #undef $ac_func
55202
55203 /* Override any gcc2 internal prototype to avoid an error.  */
55204 #ifdef __cplusplus
55205 extern "C"
55206 {
55207 #endif
55208 /* We use char because int might match the return type of a gcc2
55209    builtin and then its argument prototype would still apply.  */
55210 char $ac_func ();
55211 /* The GNU C library defines this for functions which it implements
55212     to always fail with ENOSYS.  Some functions are actually named
55213     something starting with __ and the normal name is an alias.  */
55214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55215 choke me
55216 #else
55217 char (*f) () = $ac_func;
55218 #endif
55219 #ifdef __cplusplus
55220 }
55221 #endif
55222
55223 int
55224 main ()
55225 {
55226 return f != $ac_func;
55227   ;
55228   return 0;
55229 }
55230 _ACEOF
55231 rm -f conftest.$ac_objext conftest$ac_exeext
55232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55233   (eval $ac_link) 2>conftest.er1
55234   ac_status=$?
55235   grep -v '^ *+' conftest.er1 >conftest.err
55236   rm -f conftest.er1
55237   cat conftest.err >&5
55238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55239   (exit $ac_status); } &&
55240          { ac_try='test -z "$ac_c_werror_flag"
55241                          || test ! -s conftest.err'
55242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55243   (eval $ac_try) 2>&5
55244   ac_status=$?
55245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55246   (exit $ac_status); }; } &&
55247          { ac_try='test -s conftest$ac_exeext'
55248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55249   (eval $ac_try) 2>&5
55250   ac_status=$?
55251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55252   (exit $ac_status); }; }; then
55253   eval "$as_ac_var=yes"
55254 else
55255   echo "$as_me: failed program was:" >&5
55256 sed 's/^/| /' conftest.$ac_ext >&5
55257
55258 eval "$as_ac_var=no"
55259 fi
55260 rm -f conftest.err conftest.$ac_objext \
55261       conftest$ac_exeext conftest.$ac_ext
55262 fi
55263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55265 if test `eval echo '${'$as_ac_var'}'` = yes; then
55266   cat >>confdefs.h <<_ACEOF
55267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55268 _ACEOF
55269
55270 fi
55271 done
55272
55273
55274     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
55275 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
55276     if test x"$has_weof" = xyes &&
55277        test x"$has_wchar_minmax" = xyes &&
55278        test x"$ac_wfuncs" = xyes;
55279     then
55280       ac_isoC99_wchar_t=yes
55281     else
55282       ac_isoC99_wchar_t=no
55283     fi
55284     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
55285 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
55286
55287     # Use iconv for wchar_t to char conversions. As such, check for
55288     # X/Open Portability Guide, version 2 features (XPG2).
55289     if test "${ac_cv_header_iconv_h+set}" = set; then
55290   echo "$as_me:$LINENO: checking for iconv.h" >&5
55291 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55292 if test "${ac_cv_header_iconv_h+set}" = set; then
55293   echo $ECHO_N "(cached) $ECHO_C" >&6
55294 fi
55295 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55296 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55297 else
55298   # Is the header compilable?
55299 echo "$as_me:$LINENO: checking iconv.h usability" >&5
55300 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
55301 cat >conftest.$ac_ext <<_ACEOF
55302 /* confdefs.h.  */
55303 _ACEOF
55304 cat confdefs.h >>conftest.$ac_ext
55305 cat >>conftest.$ac_ext <<_ACEOF
55306 /* end confdefs.h.  */
55307 $ac_includes_default
55308 #include <iconv.h>
55309 _ACEOF
55310 rm -f conftest.$ac_objext
55311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55312   (eval $ac_compile) 2>conftest.er1
55313   ac_status=$?
55314   grep -v '^ *+' conftest.er1 >conftest.err
55315   rm -f conftest.er1
55316   cat conftest.err >&5
55317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55318   (exit $ac_status); } &&
55319          { ac_try='test -z "$ac_c_werror_flag"
55320                          || test ! -s conftest.err'
55321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55322   (eval $ac_try) 2>&5
55323   ac_status=$?
55324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55325   (exit $ac_status); }; } &&
55326          { ac_try='test -s conftest.$ac_objext'
55327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55328   (eval $ac_try) 2>&5
55329   ac_status=$?
55330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55331   (exit $ac_status); }; }; then
55332   ac_header_compiler=yes
55333 else
55334   echo "$as_me: failed program was:" >&5
55335 sed 's/^/| /' conftest.$ac_ext >&5
55336
55337 ac_header_compiler=no
55338 fi
55339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55340 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55341 echo "${ECHO_T}$ac_header_compiler" >&6
55342
55343 # Is the header present?
55344 echo "$as_me:$LINENO: checking iconv.h presence" >&5
55345 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
55346 cat >conftest.$ac_ext <<_ACEOF
55347 /* confdefs.h.  */
55348 _ACEOF
55349 cat confdefs.h >>conftest.$ac_ext
55350 cat >>conftest.$ac_ext <<_ACEOF
55351 /* end confdefs.h.  */
55352 #include <iconv.h>
55353 _ACEOF
55354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55356   ac_status=$?
55357   grep -v '^ *+' conftest.er1 >conftest.err
55358   rm -f conftest.er1
55359   cat conftest.err >&5
55360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55361   (exit $ac_status); } >/dev/null; then
55362   if test -s conftest.err; then
55363     ac_cpp_err=$ac_c_preproc_warn_flag
55364     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55365   else
55366     ac_cpp_err=
55367   fi
55368 else
55369   ac_cpp_err=yes
55370 fi
55371 if test -z "$ac_cpp_err"; then
55372   ac_header_preproc=yes
55373 else
55374   echo "$as_me: failed program was:" >&5
55375 sed 's/^/| /' conftest.$ac_ext >&5
55376
55377   ac_header_preproc=no
55378 fi
55379 rm -f conftest.err conftest.$ac_ext
55380 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55381 echo "${ECHO_T}$ac_header_preproc" >&6
55382
55383 # So?  What about this header?
55384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55385   yes:no: )
55386     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
55387 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55388     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
55389 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
55390     ac_header_preproc=yes
55391     ;;
55392   no:yes:* )
55393     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
55394 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
55395     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
55396 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
55397     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
55398 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
55399     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
55400 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
55401     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
55402 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
55403     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
55404 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
55405     (
55406       cat <<\_ASBOX
55407 ## ----------------------------------------- ##
55408 ## Report this to the package-unused lists.  ##
55409 ## ----------------------------------------- ##
55410 _ASBOX
55411     ) |
55412       sed "s/^/$as_me: WARNING:     /" >&2
55413     ;;
55414 esac
55415 echo "$as_me:$LINENO: checking for iconv.h" >&5
55416 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
55417 if test "${ac_cv_header_iconv_h+set}" = set; then
55418   echo $ECHO_N "(cached) $ECHO_C" >&6
55419 else
55420   ac_cv_header_iconv_h=$ac_header_preproc
55421 fi
55422 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
55423 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
55424
55425 fi
55426 if test $ac_cv_header_iconv_h = yes; then
55427   ac_has_iconv_h=yes
55428 else
55429   ac_has_iconv_h=no
55430 fi
55431
55432
55433     if test "${ac_cv_header_langinfo_h+set}" = set; then
55434   echo "$as_me:$LINENO: checking for langinfo.h" >&5
55435 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55436 if test "${ac_cv_header_langinfo_h+set}" = set; then
55437   echo $ECHO_N "(cached) $ECHO_C" >&6
55438 fi
55439 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55440 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55441 else
55442   # Is the header compilable?
55443 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
55444 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
55445 cat >conftest.$ac_ext <<_ACEOF
55446 /* confdefs.h.  */
55447 _ACEOF
55448 cat confdefs.h >>conftest.$ac_ext
55449 cat >>conftest.$ac_ext <<_ACEOF
55450 /* end confdefs.h.  */
55451 $ac_includes_default
55452 #include <langinfo.h>
55453 _ACEOF
55454 rm -f conftest.$ac_objext
55455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55456   (eval $ac_compile) 2>conftest.er1
55457   ac_status=$?
55458   grep -v '^ *+' conftest.er1 >conftest.err
55459   rm -f conftest.er1
55460   cat conftest.err >&5
55461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55462   (exit $ac_status); } &&
55463          { ac_try='test -z "$ac_c_werror_flag"
55464                          || test ! -s conftest.err'
55465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55466   (eval $ac_try) 2>&5
55467   ac_status=$?
55468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55469   (exit $ac_status); }; } &&
55470          { ac_try='test -s conftest.$ac_objext'
55471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55472   (eval $ac_try) 2>&5
55473   ac_status=$?
55474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55475   (exit $ac_status); }; }; then
55476   ac_header_compiler=yes
55477 else
55478   echo "$as_me: failed program was:" >&5
55479 sed 's/^/| /' conftest.$ac_ext >&5
55480
55481 ac_header_compiler=no
55482 fi
55483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
55484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55485 echo "${ECHO_T}$ac_header_compiler" >&6
55486
55487 # Is the header present?
55488 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
55489 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
55490 cat >conftest.$ac_ext <<_ACEOF
55491 /* confdefs.h.  */
55492 _ACEOF
55493 cat confdefs.h >>conftest.$ac_ext
55494 cat >>conftest.$ac_ext <<_ACEOF
55495 /* end confdefs.h.  */
55496 #include <langinfo.h>
55497 _ACEOF
55498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55499   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55500   ac_status=$?
55501   grep -v '^ *+' conftest.er1 >conftest.err
55502   rm -f conftest.er1
55503   cat conftest.err >&5
55504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55505   (exit $ac_status); } >/dev/null; then
55506   if test -s conftest.err; then
55507     ac_cpp_err=$ac_c_preproc_warn_flag
55508     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
55509   else
55510     ac_cpp_err=
55511   fi
55512 else
55513   ac_cpp_err=yes
55514 fi
55515 if test -z "$ac_cpp_err"; then
55516   ac_header_preproc=yes
55517 else
55518   echo "$as_me: failed program was:" >&5
55519 sed 's/^/| /' conftest.$ac_ext >&5
55520
55521   ac_header_preproc=no
55522 fi
55523 rm -f conftest.err conftest.$ac_ext
55524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55525 echo "${ECHO_T}$ac_header_preproc" >&6
55526
55527 # So?  What about this header?
55528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
55529   yes:no: )
55530     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
55531 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
55532     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
55533 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
55534     ac_header_preproc=yes
55535     ;;
55536   no:yes:* )
55537     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
55538 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
55539     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
55540 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
55541     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
55542 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
55543     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
55544 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
55545     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
55546 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
55547     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
55548 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
55549     (
55550       cat <<\_ASBOX
55551 ## ----------------------------------------- ##
55552 ## Report this to the package-unused lists.  ##
55553 ## ----------------------------------------- ##
55554 _ASBOX
55555     ) |
55556       sed "s/^/$as_me: WARNING:     /" >&2
55557     ;;
55558 esac
55559 echo "$as_me:$LINENO: checking for langinfo.h" >&5
55560 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
55561 if test "${ac_cv_header_langinfo_h+set}" = set; then
55562   echo $ECHO_N "(cached) $ECHO_C" >&6
55563 else
55564   ac_cv_header_langinfo_h=$ac_header_preproc
55565 fi
55566 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
55567 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
55568
55569 fi
55570 if test $ac_cv_header_langinfo_h = yes; then
55571   ac_has_langinfo_h=yes
55572 else
55573   ac_has_langinfo_h=no
55574 fi
55575
55576
55577
55578     # Check for existence of libiconv.a providing XPG2 wchar_t support.
55579     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
55580 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
55581 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
55582   echo $ECHO_N "(cached) $ECHO_C" >&6
55583 else
55584   ac_check_lib_save_LIBS=$LIBS
55585 LIBS="-liconv  $LIBS"
55586 if test x$gcc_no_link = xyes; then
55587   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55588 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55589    { (exit 1); exit 1; }; }
55590 fi
55591 cat >conftest.$ac_ext <<_ACEOF
55592 /* confdefs.h.  */
55593 _ACEOF
55594 cat confdefs.h >>conftest.$ac_ext
55595 cat >>conftest.$ac_ext <<_ACEOF
55596 /* end confdefs.h.  */
55597
55598 /* Override any gcc2 internal prototype to avoid an error.  */
55599 #ifdef __cplusplus
55600 extern "C"
55601 #endif
55602 /* We use char because int might match the return type of a gcc2
55603    builtin and then its argument prototype would still apply.  */
55604 char iconv ();
55605 int
55606 main ()
55607 {
55608 iconv ();
55609   ;
55610   return 0;
55611 }
55612 _ACEOF
55613 rm -f conftest.$ac_objext conftest$ac_exeext
55614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55615   (eval $ac_link) 2>conftest.er1
55616   ac_status=$?
55617   grep -v '^ *+' conftest.er1 >conftest.err
55618   rm -f conftest.er1
55619   cat conftest.err >&5
55620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55621   (exit $ac_status); } &&
55622          { ac_try='test -z "$ac_c_werror_flag"
55623                          || test ! -s conftest.err'
55624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55625   (eval $ac_try) 2>&5
55626   ac_status=$?
55627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55628   (exit $ac_status); }; } &&
55629          { ac_try='test -s conftest$ac_exeext'
55630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55631   (eval $ac_try) 2>&5
55632   ac_status=$?
55633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55634   (exit $ac_status); }; }; then
55635   ac_cv_lib_iconv_iconv=yes
55636 else
55637   echo "$as_me: failed program was:" >&5
55638 sed 's/^/| /' conftest.$ac_ext >&5
55639
55640 ac_cv_lib_iconv_iconv=no
55641 fi
55642 rm -f conftest.err conftest.$ac_objext \
55643       conftest$ac_exeext conftest.$ac_ext
55644 LIBS=$ac_check_lib_save_LIBS
55645 fi
55646 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
55647 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
55648 if test $ac_cv_lib_iconv_iconv = yes; then
55649   LIBICONV="-liconv"
55650 fi
55651
55652     ac_save_LIBS="$LIBS"
55653     LIBS="$LIBS $LIBICONV"
55654
55655
55656
55657
55658
55659
55660 for ac_func in iconv_open iconv_close iconv nl_langinfo
55661 do
55662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55663 echo "$as_me:$LINENO: checking for $ac_func" >&5
55664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55665 if eval "test \"\${$as_ac_var+set}\" = set"; then
55666   echo $ECHO_N "(cached) $ECHO_C" >&6
55667 else
55668   if test x$gcc_no_link = xyes; then
55669   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
55670 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
55671    { (exit 1); exit 1; }; }
55672 fi
55673 cat >conftest.$ac_ext <<_ACEOF
55674 /* confdefs.h.  */
55675 _ACEOF
55676 cat confdefs.h >>conftest.$ac_ext
55677 cat >>conftest.$ac_ext <<_ACEOF
55678 /* end confdefs.h.  */
55679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55681 #define $ac_func innocuous_$ac_func
55682
55683 /* System header to define __stub macros and hopefully few prototypes,
55684     which can conflict with char $ac_func (); below.
55685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55686     <limits.h> exists even on freestanding compilers.  */
55687
55688 #ifdef __STDC__
55689 # include <limits.h>
55690 #else
55691 # include <assert.h>
55692 #endif
55693
55694 #undef $ac_func
55695
55696 /* Override any gcc2 internal prototype to avoid an error.  */
55697 #ifdef __cplusplus
55698 extern "C"
55699 {
55700 #endif
55701 /* We use char because int might match the return type of a gcc2
55702    builtin and then its argument prototype would still apply.  */
55703 char $ac_func ();
55704 /* The GNU C library defines this for functions which it implements
55705     to always fail with ENOSYS.  Some functions are actually named
55706     something starting with __ and the normal name is an alias.  */
55707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55708 choke me
55709 #else
55710 char (*f) () = $ac_func;
55711 #endif
55712 #ifdef __cplusplus
55713 }
55714 #endif
55715
55716 int
55717 main ()
55718 {
55719 return f != $ac_func;
55720   ;
55721   return 0;
55722 }
55723 _ACEOF
55724 rm -f conftest.$ac_objext conftest$ac_exeext
55725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55726   (eval $ac_link) 2>conftest.er1
55727   ac_status=$?
55728   grep -v '^ *+' conftest.er1 >conftest.err
55729   rm -f conftest.er1
55730   cat conftest.err >&5
55731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55732   (exit $ac_status); } &&
55733          { ac_try='test -z "$ac_c_werror_flag"
55734                          || test ! -s conftest.err'
55735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55736   (eval $ac_try) 2>&5
55737   ac_status=$?
55738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55739   (exit $ac_status); }; } &&
55740          { ac_try='test -s conftest$ac_exeext'
55741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55742   (eval $ac_try) 2>&5
55743   ac_status=$?
55744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55745   (exit $ac_status); }; }; then
55746   eval "$as_ac_var=yes"
55747 else
55748   echo "$as_me: failed program was:" >&5
55749 sed 's/^/| /' conftest.$ac_ext >&5
55750
55751 eval "$as_ac_var=no"
55752 fi
55753 rm -f conftest.err conftest.$ac_objext \
55754       conftest$ac_exeext conftest.$ac_ext
55755 fi
55756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55758 if test `eval echo '${'$as_ac_var'}'` = yes; then
55759   cat >>confdefs.h <<_ACEOF
55760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55761 _ACEOF
55762  ac_XPG2funcs=yes
55763 else
55764   ac_XPG2funcs=no
55765 fi
55766 done
55767
55768
55769     LIBS="$ac_save_LIBS"
55770
55771     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
55772 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
55773     if test x"$ac_has_iconv_h" = xyes &&
55774        test x"$ac_has_langinfo_h" = xyes &&
55775        test x"$ac_XPG2funcs" = xyes;
55776     then
55777       ac_XPG2_wchar_t=yes
55778     else
55779       ac_XPG2_wchar_t=no
55780     fi
55781     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
55782 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
55783
55784     # At the moment, only enable wchar_t specializations if all the
55785     # above support is present.
55786     if test x"$ac_isoC99_wchar_t" = xyes &&
55787        test x"$ac_XPG2_wchar_t" = xyes;
55788     then
55789       cat >>confdefs.h <<\_ACEOF
55790 #define _GLIBCXX_USE_WCHAR_T 1
55791 _ACEOF
55792
55793       enable_wchar_t=yes
55794     fi
55795   fi
55796   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
55797 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
55798   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
55799 echo "${ECHO_T}$enable_wchar_t" >&6
55800
55801     cat >>confdefs.h <<\_ACEOF
55802 #define HAVE_LC_MESSAGES 1
55803 _ACEOF
55804
55805     cat >>confdefs.h <<\_ACEOF
55806 #define HAVE_GETPAGESIZE 1
55807 _ACEOF
55808
55809     cat >>confdefs.h <<\_ACEOF
55810 #define HAVE_SETENV 1
55811 _ACEOF
55812
55813     cat >>confdefs.h <<\_ACEOF
55814 #define HAVE_SIGSETJMP 1
55815 _ACEOF
55816
55817     cat >>confdefs.h <<\_ACEOF
55818 #define HAVE_COPYSIGN 1
55819 _ACEOF
55820
55821     cat >>confdefs.h <<\_ACEOF
55822 #define HAVE_COPYSIGNF 1
55823 _ACEOF
55824
55825     cat >>confdefs.h <<\_ACEOF
55826 #define HAVE_FINITEF 1
55827 _ACEOF
55828
55829     cat >>confdefs.h <<\_ACEOF
55830 #define HAVE_FINITE 1
55831 _ACEOF
55832
55833     cat >>confdefs.h <<\_ACEOF
55834 #define HAVE_FREXPF 1
55835 _ACEOF
55836
55837     cat >>confdefs.h <<\_ACEOF
55838 #define HAVE_HYPOT 1
55839 _ACEOF
55840
55841     cat >>confdefs.h <<\_ACEOF
55842 #define HAVE_HYPOTF 1
55843 _ACEOF
55844
55845     cat >>confdefs.h <<\_ACEOF
55846 #define HAVE_ISINF 1
55847 _ACEOF
55848
55849     cat >>confdefs.h <<\_ACEOF
55850 #define HAVE_ISNAN 1
55851 _ACEOF
55852
55853     cat >>confdefs.h <<\_ACEOF
55854 #define HAVE_ISNANF 1
55855 _ACEOF
55856
55857
55858     cat >>confdefs.h <<\_ACEOF
55859 #define HAVE_MMAP 1
55860 _ACEOF
55861
55862     cat >>confdefs.h <<\_ACEOF
55863 #define HAVE_ACOSF 1
55864 _ACEOF
55865
55866     cat >>confdefs.h <<\_ACEOF
55867 #define HAVE_ASINF 1
55868 _ACEOF
55869
55870     cat >>confdefs.h <<\_ACEOF
55871 #define HAVE_ATAN2F 1
55872 _ACEOF
55873
55874     cat >>confdefs.h <<\_ACEOF
55875 #define HAVE_ATANF 1
55876 _ACEOF
55877
55878     cat >>confdefs.h <<\_ACEOF
55879 #define HAVE_CEILF 1
55880 _ACEOF
55881
55882     cat >>confdefs.h <<\_ACEOF
55883 #define HAVE_COPYSIGN 1
55884 _ACEOF
55885
55886     cat >>confdefs.h <<\_ACEOF
55887 #define HAVE_COPYSIGNF 1
55888 _ACEOF
55889
55890     cat >>confdefs.h <<\_ACEOF
55891 #define HAVE_COSF 1
55892 _ACEOF
55893
55894     cat >>confdefs.h <<\_ACEOF
55895 #define HAVE_COSHF 1
55896 _ACEOF
55897
55898     cat >>confdefs.h <<\_ACEOF
55899 #define HAVE_EXPF 1
55900 _ACEOF
55901
55902     cat >>confdefs.h <<\_ACEOF
55903 #define HAVE_FABSF 1
55904 _ACEOF
55905
55906     cat >>confdefs.h <<\_ACEOF
55907 #define HAVE_FLOORF 1
55908 _ACEOF
55909
55910     cat >>confdefs.h <<\_ACEOF
55911 #define HAVE_FMODF 1
55912 _ACEOF
55913
55914     cat >>confdefs.h <<\_ACEOF
55915 #define HAVE_FREXPF 1
55916 _ACEOF
55917
55918     cat >>confdefs.h <<\_ACEOF
55919 #define HAVE_LDEXPF 1
55920 _ACEOF
55921
55922     cat >>confdefs.h <<\_ACEOF
55923 #define HAVE_LOG10F 1
55924 _ACEOF
55925
55926     cat >>confdefs.h <<\_ACEOF
55927 #define HAVE_LOGF 1
55928 _ACEOF
55929
55930     cat >>confdefs.h <<\_ACEOF
55931 #define HAVE_MODFF 1
55932 _ACEOF
55933
55934     cat >>confdefs.h <<\_ACEOF
55935 #define HAVE_POWF 1
55936 _ACEOF
55937
55938     cat >>confdefs.h <<\_ACEOF
55939 #define HAVE_SINF 1
55940 _ACEOF
55941
55942     cat >>confdefs.h <<\_ACEOF
55943 #define HAVE_SINHF 1
55944 _ACEOF
55945
55946     cat >>confdefs.h <<\_ACEOF
55947 #define HAVE_SQRTF 1
55948 _ACEOF
55949
55950     cat >>confdefs.h <<\_ACEOF
55951 #define HAVE_TANF 1
55952 _ACEOF
55953
55954     cat >>confdefs.h <<\_ACEOF
55955 #define HAVE_TANHF 1
55956 _ACEOF
55957
55958     if test x"long_double_math_on_this_cpu" = x"yes"; then
55959       cat >>confdefs.h <<\_ACEOF
55960 #define HAVE_FINITEL 1
55961 _ACEOF
55962
55963       cat >>confdefs.h <<\_ACEOF
55964 #define HAVE_ISINFL 1
55965 _ACEOF
55966
55967       cat >>confdefs.h <<\_ACEOF
55968 #define HAVE_ISNANL 1
55969 _ACEOF
55970
55971     fi
55972     ;;
55973   *-hpux*)
55974
55975
55976
55977
55978
55979
55980
55981
55982
55983
55984
55985
55986 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
55987       machine/endian.h machine/param.h sys/machine.h sys/types.h \
55988       fp.h locale.h float.h inttypes.h
55989 do
55990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55992   echo "$as_me:$LINENO: checking for $ac_header" >&5
55993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55995   echo $ECHO_N "(cached) $ECHO_C" >&6
55996 fi
55997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55999 else
56000   # Is the header compilable?
56001 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56003 cat >conftest.$ac_ext <<_ACEOF
56004 /* confdefs.h.  */
56005 _ACEOF
56006 cat confdefs.h >>conftest.$ac_ext
56007 cat >>conftest.$ac_ext <<_ACEOF
56008 /* end confdefs.h.  */
56009 $ac_includes_default
56010 #include <$ac_header>
56011 _ACEOF
56012 rm -f conftest.$ac_objext
56013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56014   (eval $ac_compile) 2>conftest.er1
56015   ac_status=$?
56016   grep -v '^ *+' conftest.er1 >conftest.err
56017   rm -f conftest.er1
56018   cat conftest.err >&5
56019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56020   (exit $ac_status); } &&
56021          { ac_try='test -z "$ac_c_werror_flag"
56022                          || test ! -s conftest.err'
56023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56024   (eval $ac_try) 2>&5
56025   ac_status=$?
56026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56027   (exit $ac_status); }; } &&
56028          { ac_try='test -s conftest.$ac_objext'
56029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56030   (eval $ac_try) 2>&5
56031   ac_status=$?
56032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56033   (exit $ac_status); }; }; then
56034   ac_header_compiler=yes
56035 else
56036   echo "$as_me: failed program was:" >&5
56037 sed 's/^/| /' conftest.$ac_ext >&5
56038
56039 ac_header_compiler=no
56040 fi
56041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56042 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56043 echo "${ECHO_T}$ac_header_compiler" >&6
56044
56045 # Is the header present?
56046 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56048 cat >conftest.$ac_ext <<_ACEOF
56049 /* confdefs.h.  */
56050 _ACEOF
56051 cat confdefs.h >>conftest.$ac_ext
56052 cat >>conftest.$ac_ext <<_ACEOF
56053 /* end confdefs.h.  */
56054 #include <$ac_header>
56055 _ACEOF
56056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56058   ac_status=$?
56059   grep -v '^ *+' conftest.er1 >conftest.err
56060   rm -f conftest.er1
56061   cat conftest.err >&5
56062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56063   (exit $ac_status); } >/dev/null; then
56064   if test -s conftest.err; then
56065     ac_cpp_err=$ac_c_preproc_warn_flag
56066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56067   else
56068     ac_cpp_err=
56069   fi
56070 else
56071   ac_cpp_err=yes
56072 fi
56073 if test -z "$ac_cpp_err"; then
56074   ac_header_preproc=yes
56075 else
56076   echo "$as_me: failed program was:" >&5
56077 sed 's/^/| /' conftest.$ac_ext >&5
56078
56079   ac_header_preproc=no
56080 fi
56081 rm -f conftest.err conftest.$ac_ext
56082 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56083 echo "${ECHO_T}$ac_header_preproc" >&6
56084
56085 # So?  What about this header?
56086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56087   yes:no: )
56088     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56092     ac_header_preproc=yes
56093     ;;
56094   no:yes:* )
56095     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56097     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
56098 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
56099     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56101     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
56102 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
56103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56105     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56107     (
56108       cat <<\_ASBOX
56109 ## ----------------------------------------- ##
56110 ## Report this to the package-unused lists.  ##
56111 ## ----------------------------------------- ##
56112 _ASBOX
56113     ) |
56114       sed "s/^/$as_me: WARNING:     /" >&2
56115     ;;
56116 esac
56117 echo "$as_me:$LINENO: checking for $ac_header" >&5
56118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56120   echo $ECHO_N "(cached) $ECHO_C" >&6
56121 else
56122   eval "$as_ac_Header=\$ac_header_preproc"
56123 fi
56124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56126
56127 fi
56128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56129   cat >>confdefs.h <<_ACEOF
56130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56131 _ACEOF
56132
56133 fi
56134
56135 done
56136
56137     SECTION_FLAGS='-ffunction-sections -fdata-sections'
56138
56139
56140   # If we're not using GNU ld, then there's no point in even trying these
56141   # tests.  Check for that first.  We should have already tested for gld
56142   # by now (in libtool), but require it now just to be safe...
56143   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
56144   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
56145
56146
56147
56148   # The name set by libtool depends on the version of libtool.  Shame on us
56149   # for depending on an impl detail, but c'est la vie.  Older versions used
56150   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
56151   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
56152   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
56153   # set (hence we're using an older libtool), then set it.
56154   if test x${with_gnu_ld+set} != xset; then
56155     if test x${ac_cv_prog_gnu_ld+set} != xset; then
56156       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
56157       with_gnu_ld=no
56158     else
56159       with_gnu_ld=$ac_cv_prog_gnu_ld
56160     fi
56161   fi
56162
56163   # Start by getting the version number.  I think the libtool test already
56164   # does some of this, but throws away the result.
56165
56166   ldver=`$LD --version 2>/dev/null | head -1 | \
56167          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
56168
56169   glibcxx_gnu_ld_version=`echo $ldver | \
56170          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
56171
56172   # Set --gc-sections.
56173   if test "$with_gnu_ld" = "notbroken"; then
56174     # GNU ld it is!  Joy and bunny rabbits!
56175
56176     # All these tests are for C++; save the language and the compiler flags.
56177     # Need to do this so that g++ won't try to link in libstdc++
56178     ac_test_CFLAGS="${CFLAGS+set}"
56179     ac_save_CFLAGS="$CFLAGS"
56180     CFLAGS='-x c++  -Wl,--gc-sections'
56181
56182     # Check for -Wl,--gc-sections
56183     # XXX This test is broken at the moment, as symbols required for linking
56184     # are now in libsupc++ (not built yet).  In addition, this test has
56185     # cored on solaris in the past.  In addition, --gc-sections doesn't
56186     # really work at the moment (keeps on discarding used sections, first
56187     # .eh_frame and now some of the glibc sections for iconv).
56188     # Bzzzzt.  Thanks for playing, maybe next time.
56189     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
56190 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
56191     if test "$cross_compiling" = yes; then
56192   ac_sectionLDflags=yes
56193 else
56194   cat >conftest.$ac_ext <<_ACEOF
56195 /* confdefs.h.  */
56196 _ACEOF
56197 cat confdefs.h >>conftest.$ac_ext
56198 cat >>conftest.$ac_ext <<_ACEOF
56199 /* end confdefs.h.  */
56200
56201      int main(void)
56202      {
56203        try { throw 1; }
56204        catch (...) { };
56205        return 0;
56206      }
56207
56208 _ACEOF
56209 rm -f conftest$ac_exeext
56210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56211   (eval $ac_link) 2>&5
56212   ac_status=$?
56213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56214   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56216   (eval $ac_try) 2>&5
56217   ac_status=$?
56218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56219   (exit $ac_status); }; }; then
56220   ac_sectionLDflags=yes
56221 else
56222   echo "$as_me: program exited with status $ac_status" >&5
56223 echo "$as_me: failed program was:" >&5
56224 sed 's/^/| /' conftest.$ac_ext >&5
56225
56226 ( exit $ac_status )
56227 ac_sectionLDflags=no
56228 fi
56229 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56230 fi
56231     if test "$ac_test_CFLAGS" = set; then
56232       CFLAGS="$ac_save_CFLAGS"
56233     else
56234       # this is the suspicious part
56235       CFLAGS=''
56236     fi
56237     if test "$ac_sectionLDflags" = "yes"; then
56238       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
56239     fi
56240     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
56241 echo "${ECHO_T}$ac_sectionLDflags" >&6
56242   fi
56243
56244   # Set linker optimization flags.
56245   if test x"$with_gnu_ld" = x"yes"; then
56246     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
56247   fi
56248
56249
56250
56251
56252
56253
56254 echo "$as_me:$LINENO: checking for main in -lm" >&5
56255 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
56256 if test "${ac_cv_lib_m_main+set}" = set; then
56257   echo $ECHO_N "(cached) $ECHO_C" >&6
56258 else
56259   ac_check_lib_save_LIBS=$LIBS
56260 LIBS="-lm  $LIBS"
56261 if test x$gcc_no_link = xyes; then
56262   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56263 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56264    { (exit 1); exit 1; }; }
56265 fi
56266 cat >conftest.$ac_ext <<_ACEOF
56267 /* confdefs.h.  */
56268 _ACEOF
56269 cat confdefs.h >>conftest.$ac_ext
56270 cat >>conftest.$ac_ext <<_ACEOF
56271 /* end confdefs.h.  */
56272
56273
56274 int
56275 main ()
56276 {
56277 main ();
56278   ;
56279   return 0;
56280 }
56281 _ACEOF
56282 rm -f conftest.$ac_objext conftest$ac_exeext
56283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56284   (eval $ac_link) 2>conftest.er1
56285   ac_status=$?
56286   grep -v '^ *+' conftest.er1 >conftest.err
56287   rm -f conftest.er1
56288   cat conftest.err >&5
56289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56290   (exit $ac_status); } &&
56291          { ac_try='test -z "$ac_c_werror_flag"
56292                          || test ! -s conftest.err'
56293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56294   (eval $ac_try) 2>&5
56295   ac_status=$?
56296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56297   (exit $ac_status); }; } &&
56298          { ac_try='test -s conftest$ac_exeext'
56299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56300   (eval $ac_try) 2>&5
56301   ac_status=$?
56302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56303   (exit $ac_status); }; }; then
56304   ac_cv_lib_m_main=yes
56305 else
56306   echo "$as_me: failed program was:" >&5
56307 sed 's/^/| /' conftest.$ac_ext >&5
56308
56309 ac_cv_lib_m_main=no
56310 fi
56311 rm -f conftest.err conftest.$ac_objext \
56312       conftest$ac_exeext conftest.$ac_ext
56313 LIBS=$ac_check_lib_save_LIBS
56314 fi
56315 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
56316 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
56317 if test $ac_cv_lib_m_main = yes; then
56318   cat >>confdefs.h <<_ACEOF
56319 #define HAVE_LIBM 1
56320 _ACEOF
56321
56322   LIBS="-lm $LIBS"
56323
56324 fi
56325
56326
56327 for ac_func in copysignf
56328 do
56329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56330 echo "$as_me:$LINENO: checking for $ac_func" >&5
56331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56332 if eval "test \"\${$as_ac_var+set}\" = set"; then
56333   echo $ECHO_N "(cached) $ECHO_C" >&6
56334 else
56335   if test x$gcc_no_link = xyes; then
56336   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56337 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56338    { (exit 1); exit 1; }; }
56339 fi
56340 cat >conftest.$ac_ext <<_ACEOF
56341 /* confdefs.h.  */
56342 _ACEOF
56343 cat confdefs.h >>conftest.$ac_ext
56344 cat >>conftest.$ac_ext <<_ACEOF
56345 /* end confdefs.h.  */
56346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56348 #define $ac_func innocuous_$ac_func
56349
56350 /* System header to define __stub macros and hopefully few prototypes,
56351     which can conflict with char $ac_func (); below.
56352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56353     <limits.h> exists even on freestanding compilers.  */
56354
56355 #ifdef __STDC__
56356 # include <limits.h>
56357 #else
56358 # include <assert.h>
56359 #endif
56360
56361 #undef $ac_func
56362
56363 /* Override any gcc2 internal prototype to avoid an error.  */
56364 #ifdef __cplusplus
56365 extern "C"
56366 {
56367 #endif
56368 /* We use char because int might match the return type of a gcc2
56369    builtin and then its argument prototype would still apply.  */
56370 char $ac_func ();
56371 /* The GNU C library defines this for functions which it implements
56372     to always fail with ENOSYS.  Some functions are actually named
56373     something starting with __ and the normal name is an alias.  */
56374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56375 choke me
56376 #else
56377 char (*f) () = $ac_func;
56378 #endif
56379 #ifdef __cplusplus
56380 }
56381 #endif
56382
56383 int
56384 main ()
56385 {
56386 return f != $ac_func;
56387   ;
56388   return 0;
56389 }
56390 _ACEOF
56391 rm -f conftest.$ac_objext conftest$ac_exeext
56392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56393   (eval $ac_link) 2>conftest.er1
56394   ac_status=$?
56395   grep -v '^ *+' conftest.er1 >conftest.err
56396   rm -f conftest.er1
56397   cat conftest.err >&5
56398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56399   (exit $ac_status); } &&
56400          { ac_try='test -z "$ac_c_werror_flag"
56401                          || test ! -s conftest.err'
56402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56403   (eval $ac_try) 2>&5
56404   ac_status=$?
56405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56406   (exit $ac_status); }; } &&
56407          { ac_try='test -s conftest$ac_exeext'
56408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56409   (eval $ac_try) 2>&5
56410   ac_status=$?
56411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56412   (exit $ac_status); }; }; then
56413   eval "$as_ac_var=yes"
56414 else
56415   echo "$as_me: failed program was:" >&5
56416 sed 's/^/| /' conftest.$ac_ext >&5
56417
56418 eval "$as_ac_var=no"
56419 fi
56420 rm -f conftest.err conftest.$ac_objext \
56421       conftest$ac_exeext conftest.$ac_ext
56422 fi
56423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56425 if test `eval echo '${'$as_ac_var'}'` = yes; then
56426   cat >>confdefs.h <<_ACEOF
56427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56428 _ACEOF
56429
56430 else
56431   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
56432 fi
56433 done
56434
56435
56436
56437 for ac_func in __signbit
56438 do
56439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56440 echo "$as_me:$LINENO: checking for $ac_func" >&5
56441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56442 if eval "test \"\${$as_ac_var+set}\" = set"; then
56443   echo $ECHO_N "(cached) $ECHO_C" >&6
56444 else
56445   if test x$gcc_no_link = xyes; then
56446   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56447 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56448    { (exit 1); exit 1; }; }
56449 fi
56450 cat >conftest.$ac_ext <<_ACEOF
56451 /* confdefs.h.  */
56452 _ACEOF
56453 cat confdefs.h >>conftest.$ac_ext
56454 cat >>conftest.$ac_ext <<_ACEOF
56455 /* end confdefs.h.  */
56456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56458 #define $ac_func innocuous_$ac_func
56459
56460 /* System header to define __stub macros and hopefully few prototypes,
56461     which can conflict with char $ac_func (); below.
56462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56463     <limits.h> exists even on freestanding compilers.  */
56464
56465 #ifdef __STDC__
56466 # include <limits.h>
56467 #else
56468 # include <assert.h>
56469 #endif
56470
56471 #undef $ac_func
56472
56473 /* Override any gcc2 internal prototype to avoid an error.  */
56474 #ifdef __cplusplus
56475 extern "C"
56476 {
56477 #endif
56478 /* We use char because int might match the return type of a gcc2
56479    builtin and then its argument prototype would still apply.  */
56480 char $ac_func ();
56481 /* The GNU C library defines this for functions which it implements
56482     to always fail with ENOSYS.  Some functions are actually named
56483     something starting with __ and the normal name is an alias.  */
56484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56485 choke me
56486 #else
56487 char (*f) () = $ac_func;
56488 #endif
56489 #ifdef __cplusplus
56490 }
56491 #endif
56492
56493 int
56494 main ()
56495 {
56496 return f != $ac_func;
56497   ;
56498   return 0;
56499 }
56500 _ACEOF
56501 rm -f conftest.$ac_objext conftest$ac_exeext
56502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56503   (eval $ac_link) 2>conftest.er1
56504   ac_status=$?
56505   grep -v '^ *+' conftest.er1 >conftest.err
56506   rm -f conftest.er1
56507   cat conftest.err >&5
56508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56509   (exit $ac_status); } &&
56510          { ac_try='test -z "$ac_c_werror_flag"
56511                          || test ! -s conftest.err'
56512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56513   (eval $ac_try) 2>&5
56514   ac_status=$?
56515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56516   (exit $ac_status); }; } &&
56517          { ac_try='test -s conftest$ac_exeext'
56518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56519   (eval $ac_try) 2>&5
56520   ac_status=$?
56521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56522   (exit $ac_status); }; }; then
56523   eval "$as_ac_var=yes"
56524 else
56525   echo "$as_me: failed program was:" >&5
56526 sed 's/^/| /' conftest.$ac_ext >&5
56527
56528 eval "$as_ac_var=no"
56529 fi
56530 rm -f conftest.err conftest.$ac_objext \
56531       conftest$ac_exeext conftest.$ac_ext
56532 fi
56533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56535 if test `eval echo '${'$as_ac_var'}'` = yes; then
56536   cat >>confdefs.h <<_ACEOF
56537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56538 _ACEOF
56539
56540 else
56541   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
56542 fi
56543 done
56544
56545
56546 for ac_func in __signbitf
56547 do
56548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56549 echo "$as_me:$LINENO: checking for $ac_func" >&5
56550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56551 if eval "test \"\${$as_ac_var+set}\" = set"; then
56552   echo $ECHO_N "(cached) $ECHO_C" >&6
56553 else
56554   if test x$gcc_no_link = xyes; then
56555   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56557    { (exit 1); exit 1; }; }
56558 fi
56559 cat >conftest.$ac_ext <<_ACEOF
56560 /* confdefs.h.  */
56561 _ACEOF
56562 cat confdefs.h >>conftest.$ac_ext
56563 cat >>conftest.$ac_ext <<_ACEOF
56564 /* end confdefs.h.  */
56565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56566    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56567 #define $ac_func innocuous_$ac_func
56568
56569 /* System header to define __stub macros and hopefully few prototypes,
56570     which can conflict with char $ac_func (); below.
56571     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56572     <limits.h> exists even on freestanding compilers.  */
56573
56574 #ifdef __STDC__
56575 # include <limits.h>
56576 #else
56577 # include <assert.h>
56578 #endif
56579
56580 #undef $ac_func
56581
56582 /* Override any gcc2 internal prototype to avoid an error.  */
56583 #ifdef __cplusplus
56584 extern "C"
56585 {
56586 #endif
56587 /* We use char because int might match the return type of a gcc2
56588    builtin and then its argument prototype would still apply.  */
56589 char $ac_func ();
56590 /* The GNU C library defines this for functions which it implements
56591     to always fail with ENOSYS.  Some functions are actually named
56592     something starting with __ and the normal name is an alias.  */
56593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56594 choke me
56595 #else
56596 char (*f) () = $ac_func;
56597 #endif
56598 #ifdef __cplusplus
56599 }
56600 #endif
56601
56602 int
56603 main ()
56604 {
56605 return f != $ac_func;
56606   ;
56607   return 0;
56608 }
56609 _ACEOF
56610 rm -f conftest.$ac_objext conftest$ac_exeext
56611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56612   (eval $ac_link) 2>conftest.er1
56613   ac_status=$?
56614   grep -v '^ *+' conftest.er1 >conftest.err
56615   rm -f conftest.er1
56616   cat conftest.err >&5
56617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56618   (exit $ac_status); } &&
56619          { ac_try='test -z "$ac_c_werror_flag"
56620                          || test ! -s conftest.err'
56621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56622   (eval $ac_try) 2>&5
56623   ac_status=$?
56624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56625   (exit $ac_status); }; } &&
56626          { ac_try='test -s conftest$ac_exeext'
56627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56628   (eval $ac_try) 2>&5
56629   ac_status=$?
56630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56631   (exit $ac_status); }; }; then
56632   eval "$as_ac_var=yes"
56633 else
56634   echo "$as_me: failed program was:" >&5
56635 sed 's/^/| /' conftest.$ac_ext >&5
56636
56637 eval "$as_ac_var=no"
56638 fi
56639 rm -f conftest.err conftest.$ac_objext \
56640       conftest$ac_exeext conftest.$ac_ext
56641 fi
56642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56644 if test `eval echo '${'$as_ac_var'}'` = yes; then
56645   cat >>confdefs.h <<_ACEOF
56646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56647 _ACEOF
56648
56649 else
56650   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
56651 fi
56652 done
56653
56654
56655           if test x$ac_cv_func_copysignl = x"yes"; then
56656
56657 for ac_func in __signbitl
56658 do
56659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56660 echo "$as_me:$LINENO: checking for $ac_func" >&5
56661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56662 if eval "test \"\${$as_ac_var+set}\" = set"; then
56663   echo $ECHO_N "(cached) $ECHO_C" >&6
56664 else
56665   if test x$gcc_no_link = xyes; then
56666   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
56667 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
56668    { (exit 1); exit 1; }; }
56669 fi
56670 cat >conftest.$ac_ext <<_ACEOF
56671 /* confdefs.h.  */
56672 _ACEOF
56673 cat confdefs.h >>conftest.$ac_ext
56674 cat >>conftest.$ac_ext <<_ACEOF
56675 /* end confdefs.h.  */
56676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56678 #define $ac_func innocuous_$ac_func
56679
56680 /* System header to define __stub macros and hopefully few prototypes,
56681     which can conflict with char $ac_func (); below.
56682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56683     <limits.h> exists even on freestanding compilers.  */
56684
56685 #ifdef __STDC__
56686 # include <limits.h>
56687 #else
56688 # include <assert.h>
56689 #endif
56690
56691 #undef $ac_func
56692
56693 /* Override any gcc2 internal prototype to avoid an error.  */
56694 #ifdef __cplusplus
56695 extern "C"
56696 {
56697 #endif
56698 /* We use char because int might match the return type of a gcc2
56699    builtin and then its argument prototype would still apply.  */
56700 char $ac_func ();
56701 /* The GNU C library defines this for functions which it implements
56702     to always fail with ENOSYS.  Some functions are actually named
56703     something starting with __ and the normal name is an alias.  */
56704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56705 choke me
56706 #else
56707 char (*f) () = $ac_func;
56708 #endif
56709 #ifdef __cplusplus
56710 }
56711 #endif
56712
56713 int
56714 main ()
56715 {
56716 return f != $ac_func;
56717   ;
56718   return 0;
56719 }
56720 _ACEOF
56721 rm -f conftest.$ac_objext conftest$ac_exeext
56722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56723   (eval $ac_link) 2>conftest.er1
56724   ac_status=$?
56725   grep -v '^ *+' conftest.er1 >conftest.err
56726   rm -f conftest.er1
56727   cat conftest.err >&5
56728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56729   (exit $ac_status); } &&
56730          { ac_try='test -z "$ac_c_werror_flag"
56731                          || test ! -s conftest.err'
56732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56733   (eval $ac_try) 2>&5
56734   ac_status=$?
56735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56736   (exit $ac_status); }; } &&
56737          { ac_try='test -s conftest$ac_exeext'
56738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56739   (eval $ac_try) 2>&5
56740   ac_status=$?
56741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56742   (exit $ac_status); }; }; then
56743   eval "$as_ac_var=yes"
56744 else
56745   echo "$as_me: failed program was:" >&5
56746 sed 's/^/| /' conftest.$ac_ext >&5
56747
56748 eval "$as_ac_var=no"
56749 fi
56750 rm -f conftest.err conftest.$ac_objext \
56751       conftest$ac_exeext conftest.$ac_ext
56752 fi
56753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56754 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56755 if test `eval echo '${'$as_ac_var'}'` = yes; then
56756   cat >>confdefs.h <<_ACEOF
56757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56758 _ACEOF
56759
56760 else
56761   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
56762 fi
56763 done
56764
56765   fi
56766
56767   # XXX Review this.  Nothing uses it.
56768   if test -n "$LIBMATHOBJS"; then
56769     need_libmath=yes
56770   fi
56771
56772
56773
56774   # Test wchar.h for mbstate_t, which is needed for char_traits and
56775   # others even if wchar_t support is not on.
56776   echo "$as_me:$LINENO: checking for mbstate_t" >&5
56777 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
56778   cat >conftest.$ac_ext <<_ACEOF
56779 /* confdefs.h.  */
56780 _ACEOF
56781 cat confdefs.h >>conftest.$ac_ext
56782 cat >>conftest.$ac_ext <<_ACEOF
56783 /* end confdefs.h.  */
56784 #include <wchar.h>
56785 int
56786 main ()
56787 {
56788 mbstate_t teststate;
56789   ;
56790   return 0;
56791 }
56792 _ACEOF
56793 rm -f conftest.$ac_objext
56794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56795   (eval $ac_compile) 2>conftest.er1
56796   ac_status=$?
56797   grep -v '^ *+' conftest.er1 >conftest.err
56798   rm -f conftest.er1
56799   cat conftest.err >&5
56800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56801   (exit $ac_status); } &&
56802          { ac_try='test -z "$ac_c_werror_flag"
56803                          || test ! -s conftest.err'
56804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56805   (eval $ac_try) 2>&5
56806   ac_status=$?
56807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56808   (exit $ac_status); }; } &&
56809          { ac_try='test -s conftest.$ac_objext'
56810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56811   (eval $ac_try) 2>&5
56812   ac_status=$?
56813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56814   (exit $ac_status); }; }; then
56815   have_mbstate_t=yes
56816 else
56817   echo "$as_me: failed program was:" >&5
56818 sed 's/^/| /' conftest.$ac_ext >&5
56819
56820 have_mbstate_t=no
56821 fi
56822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56823   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
56824 echo "${ECHO_T}$have_mbstate_t" >&6
56825   if test x"$have_mbstate_t" = xyes; then
56826     cat >>confdefs.h <<\_ACEOF
56827 #define HAVE_MBSTATE_T 1
56828 _ACEOF
56829
56830   fi
56831
56832   # Sanity check for existence of ISO C99 headers for extended encoding.
56833
56834 for ac_header in wchar.h
56835 do
56836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56838   echo "$as_me:$LINENO: checking for $ac_header" >&5
56839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56841   echo $ECHO_N "(cached) $ECHO_C" >&6
56842 fi
56843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56845 else
56846   # Is the header compilable?
56847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56849 cat >conftest.$ac_ext <<_ACEOF
56850 /* confdefs.h.  */
56851 _ACEOF
56852 cat confdefs.h >>conftest.$ac_ext
56853 cat >>conftest.$ac_ext <<_ACEOF
56854 /* end confdefs.h.  */
56855 $ac_includes_default
56856 #include <$ac_header>
56857 _ACEOF
56858 rm -f conftest.$ac_objext
56859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56860   (eval $ac_compile) 2>conftest.er1
56861   ac_status=$?
56862   grep -v '^ *+' conftest.er1 >conftest.err
56863   rm -f conftest.er1
56864   cat conftest.err >&5
56865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56866   (exit $ac_status); } &&
56867          { ac_try='test -z "$ac_c_werror_flag"
56868                          || test ! -s conftest.err'
56869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56870   (eval $ac_try) 2>&5
56871   ac_status=$?
56872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56873   (exit $ac_status); }; } &&
56874          { ac_try='test -s conftest.$ac_objext'
56875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56876   (eval $ac_try) 2>&5
56877   ac_status=$?
56878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56879   (exit $ac_status); }; }; then
56880   ac_header_compiler=yes
56881 else
56882   echo "$as_me: failed program was:" >&5
56883 sed 's/^/| /' conftest.$ac_ext >&5
56884
56885 ac_header_compiler=no
56886 fi
56887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
56888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56889 echo "${ECHO_T}$ac_header_compiler" >&6
56890
56891 # Is the header present?
56892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56894 cat >conftest.$ac_ext <<_ACEOF
56895 /* confdefs.h.  */
56896 _ACEOF
56897 cat confdefs.h >>conftest.$ac_ext
56898 cat >>conftest.$ac_ext <<_ACEOF
56899 /* end confdefs.h.  */
56900 #include <$ac_header>
56901 _ACEOF
56902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56903   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56904   ac_status=$?
56905   grep -v '^ *+' conftest.er1 >conftest.err
56906   rm -f conftest.er1
56907   cat conftest.err >&5
56908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56909   (exit $ac_status); } >/dev/null; then
56910   if test -s conftest.err; then
56911     ac_cpp_err=$ac_c_preproc_warn_flag
56912     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
56913   else
56914     ac_cpp_err=
56915   fi
56916 else
56917   ac_cpp_err=yes
56918 fi
56919 if test -z "$ac_cpp_err"; then
56920   ac_header_preproc=yes
56921 else
56922   echo "$as_me: failed program was:" >&5
56923 sed 's/^/| /' conftest.$ac_ext >&5
56924
56925   ac_header_preproc=no
56926 fi
56927 rm -f conftest.err conftest.$ac_ext
56928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56929 echo "${ECHO_T}$ac_header_preproc" >&6
56930
56931 # So?  What about this header?
56932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56933   yes:no: )
56934     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56938     ac_header_preproc=yes
56939     ;;
56940   no:yes:* )
56941     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56943     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
56944 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
56945     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56947     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
56948 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
56949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56951     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56953     (
56954       cat <<\_ASBOX
56955 ## ----------------------------------------- ##
56956 ## Report this to the package-unused lists.  ##
56957 ## ----------------------------------------- ##
56958 _ASBOX
56959     ) |
56960       sed "s/^/$as_me: WARNING:     /" >&2
56961     ;;
56962 esac
56963 echo "$as_me:$LINENO: checking for $ac_header" >&5
56964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56966   echo $ECHO_N "(cached) $ECHO_C" >&6
56967 else
56968   eval "$as_ac_Header=\$ac_header_preproc"
56969 fi
56970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56972
56973 fi
56974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
56975   cat >>confdefs.h <<_ACEOF
56976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
56977 _ACEOF
56978  ac_has_wchar_h=yes
56979 else
56980   ac_has_wchar_h=no
56981 fi
56982
56983 done
56984
56985
56986 for ac_header in wctype.h
56987 do
56988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56990   echo "$as_me:$LINENO: checking for $ac_header" >&5
56991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56993   echo $ECHO_N "(cached) $ECHO_C" >&6
56994 fi
56995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56997 else
56998   # Is the header compilable?
56999 echo "$as_me:$LINENO: checking $ac_header usability" >&5
57000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
57001 cat >conftest.$ac_ext <<_ACEOF
57002 /* confdefs.h.  */
57003 _ACEOF
57004 cat confdefs.h >>conftest.$ac_ext
57005 cat >>conftest.$ac_ext <<_ACEOF
57006 /* end confdefs.h.  */
57007 $ac_includes_default
57008 #include <$ac_header>
57009 _ACEOF
57010 rm -f conftest.$ac_objext
57011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57012   (eval $ac_compile) 2>conftest.er1
57013   ac_status=$?
57014   grep -v '^ *+' conftest.er1 >conftest.err
57015   rm -f conftest.er1
57016   cat conftest.err >&5
57017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57018   (exit $ac_status); } &&
57019          { ac_try='test -z "$ac_c_werror_flag"
57020                          || test ! -s conftest.err'
57021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57022   (eval $ac_try) 2>&5
57023   ac_status=$?
57024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57025   (exit $ac_status); }; } &&
57026          { ac_try='test -s conftest.$ac_objext'
57027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57028   (eval $ac_try) 2>&5
57029   ac_status=$?
57030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57031   (exit $ac_status); }; }; then
57032   ac_header_compiler=yes
57033 else
57034   echo "$as_me: failed program was:" >&5
57035 sed 's/^/| /' conftest.$ac_ext >&5
57036
57037 ac_header_compiler=no
57038 fi
57039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57041 echo "${ECHO_T}$ac_header_compiler" >&6
57042
57043 # Is the header present?
57044 echo "$as_me:$LINENO: checking $ac_header presence" >&5
57045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
57046 cat >conftest.$ac_ext <<_ACEOF
57047 /* confdefs.h.  */
57048 _ACEOF
57049 cat confdefs.h >>conftest.$ac_ext
57050 cat >>conftest.$ac_ext <<_ACEOF
57051 /* end confdefs.h.  */
57052 #include <$ac_header>
57053 _ACEOF
57054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57056   ac_status=$?
57057   grep -v '^ *+' conftest.er1 >conftest.err
57058   rm -f conftest.er1
57059   cat conftest.err >&5
57060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57061   (exit $ac_status); } >/dev/null; then
57062   if test -s conftest.err; then
57063     ac_cpp_err=$ac_c_preproc_warn_flag
57064     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57065   else
57066     ac_cpp_err=
57067   fi
57068 else
57069   ac_cpp_err=yes
57070 fi
57071 if test -z "$ac_cpp_err"; then
57072   ac_header_preproc=yes
57073 else
57074   echo "$as_me: failed program was:" >&5
57075 sed 's/^/| /' conftest.$ac_ext >&5
57076
57077   ac_header_preproc=no
57078 fi
57079 rm -f conftest.err conftest.$ac_ext
57080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57081 echo "${ECHO_T}$ac_header_preproc" >&6
57082
57083 # So?  What about this header?
57084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57085   yes:no: )
57086     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
57089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
57090     ac_header_preproc=yes
57091     ;;
57092   no:yes:* )
57093     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57095     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
57096 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
57097     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
57098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
57099     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
57100 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
57101     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57103     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
57104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
57105     (
57106       cat <<\_ASBOX
57107 ## ----------------------------------------- ##
57108 ## Report this to the package-unused lists.  ##
57109 ## ----------------------------------------- ##
57110 _ASBOX
57111     ) |
57112       sed "s/^/$as_me: WARNING:     /" >&2
57113     ;;
57114 esac
57115 echo "$as_me:$LINENO: checking for $ac_header" >&5
57116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57118   echo $ECHO_N "(cached) $ECHO_C" >&6
57119 else
57120   eval "$as_ac_Header=\$ac_header_preproc"
57121 fi
57122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57124
57125 fi
57126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57127   cat >>confdefs.h <<_ACEOF
57128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57129 _ACEOF
57130  ac_has_wctype_h=yes
57131 else
57132   ac_has_wctype_h=no
57133 fi
57134
57135 done
57136
57137
57138   # Only continue checking if the ISO C99 headers exist and support is on.
57139   if test x"$ac_has_wchar_h" = xyes &&
57140      test x"$ac_has_wctype_h" = xyes &&
57141      test x"$enable_c_mbchar" != xno; then
57142
57143     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
57144     # numeric_limits can instantiate type_traits<wchar_t>
57145     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
57146 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
57147     cat >conftest.$ac_ext <<_ACEOF
57148 /* confdefs.h.  */
57149 _ACEOF
57150 cat confdefs.h >>conftest.$ac_ext
57151 cat >>conftest.$ac_ext <<_ACEOF
57152 /* end confdefs.h.  */
57153 #include <wchar.h>
57154 int
57155 main ()
57156 {
57157 int i = WCHAR_MIN; int j = WCHAR_MAX;
57158   ;
57159   return 0;
57160 }
57161 _ACEOF
57162 rm -f conftest.$ac_objext
57163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57164   (eval $ac_compile) 2>conftest.er1
57165   ac_status=$?
57166   grep -v '^ *+' conftest.er1 >conftest.err
57167   rm -f conftest.er1
57168   cat conftest.err >&5
57169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57170   (exit $ac_status); } &&
57171          { ac_try='test -z "$ac_c_werror_flag"
57172                          || test ! -s conftest.err'
57173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57174   (eval $ac_try) 2>&5
57175   ac_status=$?
57176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57177   (exit $ac_status); }; } &&
57178          { ac_try='test -s conftest.$ac_objext'
57179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57180   (eval $ac_try) 2>&5
57181   ac_status=$?
57182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57183   (exit $ac_status); }; }; then
57184   has_wchar_minmax=yes
57185 else
57186   echo "$as_me: failed program was:" >&5
57187 sed 's/^/| /' conftest.$ac_ext >&5
57188
57189 has_wchar_minmax=no
57190 fi
57191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57192     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
57193 echo "${ECHO_T}$has_wchar_minmax" >&6
57194
57195     # Test wchar.h for WEOF, which is what we use to determine whether
57196     # to specialize for char_traits<wchar_t> or not.
57197     echo "$as_me:$LINENO: checking for WEOF" >&5
57198 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
57199     cat >conftest.$ac_ext <<_ACEOF
57200 /* confdefs.h.  */
57201 _ACEOF
57202 cat confdefs.h >>conftest.$ac_ext
57203 cat >>conftest.$ac_ext <<_ACEOF
57204 /* end confdefs.h.  */
57205
57206       #include <wchar.h>
57207       #include <stddef.h>
57208 int
57209 main ()
57210 {
57211 wint_t i = WEOF;
57212   ;
57213   return 0;
57214 }
57215 _ACEOF
57216 rm -f conftest.$ac_objext
57217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57218   (eval $ac_compile) 2>conftest.er1
57219   ac_status=$?
57220   grep -v '^ *+' conftest.er1 >conftest.err
57221   rm -f conftest.er1
57222   cat conftest.err >&5
57223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57224   (exit $ac_status); } &&
57225          { ac_try='test -z "$ac_c_werror_flag"
57226                          || test ! -s conftest.err'
57227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57228   (eval $ac_try) 2>&5
57229   ac_status=$?
57230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57231   (exit $ac_status); }; } &&
57232          { ac_try='test -s conftest.$ac_objext'
57233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57234   (eval $ac_try) 2>&5
57235   ac_status=$?
57236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57237   (exit $ac_status); }; }; then
57238   has_weof=yes
57239 else
57240   echo "$as_me: failed program was:" >&5
57241 sed 's/^/| /' conftest.$ac_ext >&5
57242
57243 has_weof=no
57244 fi
57245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57246     echo "$as_me:$LINENO: result: $has_weof" >&5
57247 echo "${ECHO_T}$has_weof" >&6
57248
57249     # Tests for wide character functions used in char_traits<wchar_t>.
57250     ac_wfuncs=yes
57251
57252
57253
57254
57255
57256
57257 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
57258 do
57259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57260 echo "$as_me:$LINENO: checking for $ac_func" >&5
57261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57262 if eval "test \"\${$as_ac_var+set}\" = set"; then
57263   echo $ECHO_N "(cached) $ECHO_C" >&6
57264 else
57265   if test x$gcc_no_link = xyes; then
57266   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57267 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57268    { (exit 1); exit 1; }; }
57269 fi
57270 cat >conftest.$ac_ext <<_ACEOF
57271 /* confdefs.h.  */
57272 _ACEOF
57273 cat confdefs.h >>conftest.$ac_ext
57274 cat >>conftest.$ac_ext <<_ACEOF
57275 /* end confdefs.h.  */
57276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57278 #define $ac_func innocuous_$ac_func
57279
57280 /* System header to define __stub macros and hopefully few prototypes,
57281     which can conflict with char $ac_func (); below.
57282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57283     <limits.h> exists even on freestanding compilers.  */
57284
57285 #ifdef __STDC__
57286 # include <limits.h>
57287 #else
57288 # include <assert.h>
57289 #endif
57290
57291 #undef $ac_func
57292
57293 /* Override any gcc2 internal prototype to avoid an error.  */
57294 #ifdef __cplusplus
57295 extern "C"
57296 {
57297 #endif
57298 /* We use char because int might match the return type of a gcc2
57299    builtin and then its argument prototype would still apply.  */
57300 char $ac_func ();
57301 /* The GNU C library defines this for functions which it implements
57302     to always fail with ENOSYS.  Some functions are actually named
57303     something starting with __ and the normal name is an alias.  */
57304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57305 choke me
57306 #else
57307 char (*f) () = $ac_func;
57308 #endif
57309 #ifdef __cplusplus
57310 }
57311 #endif
57312
57313 int
57314 main ()
57315 {
57316 return f != $ac_func;
57317   ;
57318   return 0;
57319 }
57320 _ACEOF
57321 rm -f conftest.$ac_objext conftest$ac_exeext
57322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57323   (eval $ac_link) 2>conftest.er1
57324   ac_status=$?
57325   grep -v '^ *+' conftest.er1 >conftest.err
57326   rm -f conftest.er1
57327   cat conftest.err >&5
57328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57329   (exit $ac_status); } &&
57330          { ac_try='test -z "$ac_c_werror_flag"
57331                          || test ! -s conftest.err'
57332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57333   (eval $ac_try) 2>&5
57334   ac_status=$?
57335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57336   (exit $ac_status); }; } &&
57337          { ac_try='test -s conftest$ac_exeext'
57338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57339   (eval $ac_try) 2>&5
57340   ac_status=$?
57341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57342   (exit $ac_status); }; }; then
57343   eval "$as_ac_var=yes"
57344 else
57345   echo "$as_me: failed program was:" >&5
57346 sed 's/^/| /' conftest.$ac_ext >&5
57347
57348 eval "$as_ac_var=no"
57349 fi
57350 rm -f conftest.err conftest.$ac_objext \
57351       conftest$ac_exeext conftest.$ac_ext
57352 fi
57353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57354 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57355 if test `eval echo '${'$as_ac_var'}'` = yes; then
57356   cat >>confdefs.h <<_ACEOF
57357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57358 _ACEOF
57359
57360 else
57361   ac_wfuncs=no
57362 fi
57363 done
57364
57365
57366     # Checks for names injected into std:: by the c_std headers.
57367
57368
57369
57370
57371
57372
57373
57374
57375
57376
57377
57378
57379
57380
57381
57382
57383
57384
57385
57386
57387
57388
57389
57390
57391
57392
57393
57394
57395
57396
57397
57398
57399
57400
57401
57402
57403
57404
57405
57406
57407
57408
57409
57410
57411
57412
57413 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
57414     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
57415     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
57416     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
57417     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
57418     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
57419 do
57420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57421 echo "$as_me:$LINENO: checking for $ac_func" >&5
57422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57423 if eval "test \"\${$as_ac_var+set}\" = set"; then
57424   echo $ECHO_N "(cached) $ECHO_C" >&6
57425 else
57426   if test x$gcc_no_link = xyes; then
57427   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57429    { (exit 1); exit 1; }; }
57430 fi
57431 cat >conftest.$ac_ext <<_ACEOF
57432 /* confdefs.h.  */
57433 _ACEOF
57434 cat confdefs.h >>conftest.$ac_ext
57435 cat >>conftest.$ac_ext <<_ACEOF
57436 /* end confdefs.h.  */
57437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57439 #define $ac_func innocuous_$ac_func
57440
57441 /* System header to define __stub macros and hopefully few prototypes,
57442     which can conflict with char $ac_func (); below.
57443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57444     <limits.h> exists even on freestanding compilers.  */
57445
57446 #ifdef __STDC__
57447 # include <limits.h>
57448 #else
57449 # include <assert.h>
57450 #endif
57451
57452 #undef $ac_func
57453
57454 /* Override any gcc2 internal prototype to avoid an error.  */
57455 #ifdef __cplusplus
57456 extern "C"
57457 {
57458 #endif
57459 /* We use char because int might match the return type of a gcc2
57460    builtin and then its argument prototype would still apply.  */
57461 char $ac_func ();
57462 /* The GNU C library defines this for functions which it implements
57463     to always fail with ENOSYS.  Some functions are actually named
57464     something starting with __ and the normal name is an alias.  */
57465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57466 choke me
57467 #else
57468 char (*f) () = $ac_func;
57469 #endif
57470 #ifdef __cplusplus
57471 }
57472 #endif
57473
57474 int
57475 main ()
57476 {
57477 return f != $ac_func;
57478   ;
57479   return 0;
57480 }
57481 _ACEOF
57482 rm -f conftest.$ac_objext conftest$ac_exeext
57483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57484   (eval $ac_link) 2>conftest.er1
57485   ac_status=$?
57486   grep -v '^ *+' conftest.er1 >conftest.err
57487   rm -f conftest.er1
57488   cat conftest.err >&5
57489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57490   (exit $ac_status); } &&
57491          { ac_try='test -z "$ac_c_werror_flag"
57492                          || test ! -s conftest.err'
57493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57494   (eval $ac_try) 2>&5
57495   ac_status=$?
57496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57497   (exit $ac_status); }; } &&
57498          { ac_try='test -s conftest$ac_exeext'
57499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57500   (eval $ac_try) 2>&5
57501   ac_status=$?
57502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57503   (exit $ac_status); }; }; then
57504   eval "$as_ac_var=yes"
57505 else
57506   echo "$as_me: failed program was:" >&5
57507 sed 's/^/| /' conftest.$ac_ext >&5
57508
57509 eval "$as_ac_var=no"
57510 fi
57511 rm -f conftest.err conftest.$ac_objext \
57512       conftest$ac_exeext conftest.$ac_ext
57513 fi
57514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57516 if test `eval echo '${'$as_ac_var'}'` = yes; then
57517   cat >>confdefs.h <<_ACEOF
57518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57519 _ACEOF
57520
57521 else
57522   ac_wfuncs=no
57523 fi
57524 done
57525
57526
57527     # Checks for wide character functions that are not required
57528     # for basic wchar_t support.  Don't disable support if they are missing.
57529     # Injection of these is wrapped with guard macros.
57530
57531
57532
57533
57534
57535 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
57536 do
57537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57538 echo "$as_me:$LINENO: checking for $ac_func" >&5
57539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57540 if eval "test \"\${$as_ac_var+set}\" = set"; then
57541   echo $ECHO_N "(cached) $ECHO_C" >&6
57542 else
57543   if test x$gcc_no_link = xyes; then
57544   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57545 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57546    { (exit 1); exit 1; }; }
57547 fi
57548 cat >conftest.$ac_ext <<_ACEOF
57549 /* confdefs.h.  */
57550 _ACEOF
57551 cat confdefs.h >>conftest.$ac_ext
57552 cat >>conftest.$ac_ext <<_ACEOF
57553 /* end confdefs.h.  */
57554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57555    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57556 #define $ac_func innocuous_$ac_func
57557
57558 /* System header to define __stub macros and hopefully few prototypes,
57559     which can conflict with char $ac_func (); below.
57560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57561     <limits.h> exists even on freestanding compilers.  */
57562
57563 #ifdef __STDC__
57564 # include <limits.h>
57565 #else
57566 # include <assert.h>
57567 #endif
57568
57569 #undef $ac_func
57570
57571 /* Override any gcc2 internal prototype to avoid an error.  */
57572 #ifdef __cplusplus
57573 extern "C"
57574 {
57575 #endif
57576 /* We use char because int might match the return type of a gcc2
57577    builtin and then its argument prototype would still apply.  */
57578 char $ac_func ();
57579 /* The GNU C library defines this for functions which it implements
57580     to always fail with ENOSYS.  Some functions are actually named
57581     something starting with __ and the normal name is an alias.  */
57582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57583 choke me
57584 #else
57585 char (*f) () = $ac_func;
57586 #endif
57587 #ifdef __cplusplus
57588 }
57589 #endif
57590
57591 int
57592 main ()
57593 {
57594 return f != $ac_func;
57595   ;
57596   return 0;
57597 }
57598 _ACEOF
57599 rm -f conftest.$ac_objext conftest$ac_exeext
57600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57601   (eval $ac_link) 2>conftest.er1
57602   ac_status=$?
57603   grep -v '^ *+' conftest.er1 >conftest.err
57604   rm -f conftest.er1
57605   cat conftest.err >&5
57606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57607   (exit $ac_status); } &&
57608          { ac_try='test -z "$ac_c_werror_flag"
57609                          || test ! -s conftest.err'
57610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57611   (eval $ac_try) 2>&5
57612   ac_status=$?
57613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57614   (exit $ac_status); }; } &&
57615          { ac_try='test -s conftest$ac_exeext'
57616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57617   (eval $ac_try) 2>&5
57618   ac_status=$?
57619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57620   (exit $ac_status); }; }; then
57621   eval "$as_ac_var=yes"
57622 else
57623   echo "$as_me: failed program was:" >&5
57624 sed 's/^/| /' conftest.$ac_ext >&5
57625
57626 eval "$as_ac_var=no"
57627 fi
57628 rm -f conftest.err conftest.$ac_objext \
57629       conftest$ac_exeext conftest.$ac_ext
57630 fi
57631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57633 if test `eval echo '${'$as_ac_var'}'` = yes; then
57634   cat >>confdefs.h <<_ACEOF
57635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57636 _ACEOF
57637
57638 fi
57639 done
57640
57641
57642     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
57643 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
57644     if test x"$has_weof" = xyes &&
57645        test x"$has_wchar_minmax" = xyes &&
57646        test x"$ac_wfuncs" = xyes;
57647     then
57648       ac_isoC99_wchar_t=yes
57649     else
57650       ac_isoC99_wchar_t=no
57651     fi
57652     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
57653 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
57654
57655     # Use iconv for wchar_t to char conversions. As such, check for
57656     # X/Open Portability Guide, version 2 features (XPG2).
57657     if test "${ac_cv_header_iconv_h+set}" = set; then
57658   echo "$as_me:$LINENO: checking for iconv.h" >&5
57659 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57660 if test "${ac_cv_header_iconv_h+set}" = set; then
57661   echo $ECHO_N "(cached) $ECHO_C" >&6
57662 fi
57663 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57664 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57665 else
57666   # Is the header compilable?
57667 echo "$as_me:$LINENO: checking iconv.h usability" >&5
57668 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
57669 cat >conftest.$ac_ext <<_ACEOF
57670 /* confdefs.h.  */
57671 _ACEOF
57672 cat confdefs.h >>conftest.$ac_ext
57673 cat >>conftest.$ac_ext <<_ACEOF
57674 /* end confdefs.h.  */
57675 $ac_includes_default
57676 #include <iconv.h>
57677 _ACEOF
57678 rm -f conftest.$ac_objext
57679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57680   (eval $ac_compile) 2>conftest.er1
57681   ac_status=$?
57682   grep -v '^ *+' conftest.er1 >conftest.err
57683   rm -f conftest.er1
57684   cat conftest.err >&5
57685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57686   (exit $ac_status); } &&
57687          { ac_try='test -z "$ac_c_werror_flag"
57688                          || test ! -s conftest.err'
57689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57690   (eval $ac_try) 2>&5
57691   ac_status=$?
57692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57693   (exit $ac_status); }; } &&
57694          { ac_try='test -s conftest.$ac_objext'
57695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57696   (eval $ac_try) 2>&5
57697   ac_status=$?
57698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57699   (exit $ac_status); }; }; then
57700   ac_header_compiler=yes
57701 else
57702   echo "$as_me: failed program was:" >&5
57703 sed 's/^/| /' conftest.$ac_ext >&5
57704
57705 ac_header_compiler=no
57706 fi
57707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57708 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57709 echo "${ECHO_T}$ac_header_compiler" >&6
57710
57711 # Is the header present?
57712 echo "$as_me:$LINENO: checking iconv.h presence" >&5
57713 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
57714 cat >conftest.$ac_ext <<_ACEOF
57715 /* confdefs.h.  */
57716 _ACEOF
57717 cat confdefs.h >>conftest.$ac_ext
57718 cat >>conftest.$ac_ext <<_ACEOF
57719 /* end confdefs.h.  */
57720 #include <iconv.h>
57721 _ACEOF
57722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57723   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57724   ac_status=$?
57725   grep -v '^ *+' conftest.er1 >conftest.err
57726   rm -f conftest.er1
57727   cat conftest.err >&5
57728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57729   (exit $ac_status); } >/dev/null; then
57730   if test -s conftest.err; then
57731     ac_cpp_err=$ac_c_preproc_warn_flag
57732     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57733   else
57734     ac_cpp_err=
57735   fi
57736 else
57737   ac_cpp_err=yes
57738 fi
57739 if test -z "$ac_cpp_err"; then
57740   ac_header_preproc=yes
57741 else
57742   echo "$as_me: failed program was:" >&5
57743 sed 's/^/| /' conftest.$ac_ext >&5
57744
57745   ac_header_preproc=no
57746 fi
57747 rm -f conftest.err conftest.$ac_ext
57748 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57749 echo "${ECHO_T}$ac_header_preproc" >&6
57750
57751 # So?  What about this header?
57752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57753   yes:no: )
57754     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
57755 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57756     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
57757 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
57758     ac_header_preproc=yes
57759     ;;
57760   no:yes:* )
57761     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
57762 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
57763     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
57764 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
57765     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
57766 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
57767     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
57768 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
57769     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
57770 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
57771     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
57772 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
57773     (
57774       cat <<\_ASBOX
57775 ## ----------------------------------------- ##
57776 ## Report this to the package-unused lists.  ##
57777 ## ----------------------------------------- ##
57778 _ASBOX
57779     ) |
57780       sed "s/^/$as_me: WARNING:     /" >&2
57781     ;;
57782 esac
57783 echo "$as_me:$LINENO: checking for iconv.h" >&5
57784 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
57785 if test "${ac_cv_header_iconv_h+set}" = set; then
57786   echo $ECHO_N "(cached) $ECHO_C" >&6
57787 else
57788   ac_cv_header_iconv_h=$ac_header_preproc
57789 fi
57790 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
57791 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
57792
57793 fi
57794 if test $ac_cv_header_iconv_h = yes; then
57795   ac_has_iconv_h=yes
57796 else
57797   ac_has_iconv_h=no
57798 fi
57799
57800
57801     if test "${ac_cv_header_langinfo_h+set}" = set; then
57802   echo "$as_me:$LINENO: checking for langinfo.h" >&5
57803 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57804 if test "${ac_cv_header_langinfo_h+set}" = set; then
57805   echo $ECHO_N "(cached) $ECHO_C" >&6
57806 fi
57807 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57808 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57809 else
57810   # Is the header compilable?
57811 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
57812 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
57813 cat >conftest.$ac_ext <<_ACEOF
57814 /* confdefs.h.  */
57815 _ACEOF
57816 cat confdefs.h >>conftest.$ac_ext
57817 cat >>conftest.$ac_ext <<_ACEOF
57818 /* end confdefs.h.  */
57819 $ac_includes_default
57820 #include <langinfo.h>
57821 _ACEOF
57822 rm -f conftest.$ac_objext
57823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57824   (eval $ac_compile) 2>conftest.er1
57825   ac_status=$?
57826   grep -v '^ *+' conftest.er1 >conftest.err
57827   rm -f conftest.er1
57828   cat conftest.err >&5
57829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57830   (exit $ac_status); } &&
57831          { ac_try='test -z "$ac_c_werror_flag"
57832                          || test ! -s conftest.err'
57833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57834   (eval $ac_try) 2>&5
57835   ac_status=$?
57836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57837   (exit $ac_status); }; } &&
57838          { ac_try='test -s conftest.$ac_objext'
57839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57840   (eval $ac_try) 2>&5
57841   ac_status=$?
57842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57843   (exit $ac_status); }; }; then
57844   ac_header_compiler=yes
57845 else
57846   echo "$as_me: failed program was:" >&5
57847 sed 's/^/| /' conftest.$ac_ext >&5
57848
57849 ac_header_compiler=no
57850 fi
57851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
57852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
57853 echo "${ECHO_T}$ac_header_compiler" >&6
57854
57855 # Is the header present?
57856 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
57857 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
57858 cat >conftest.$ac_ext <<_ACEOF
57859 /* confdefs.h.  */
57860 _ACEOF
57861 cat confdefs.h >>conftest.$ac_ext
57862 cat >>conftest.$ac_ext <<_ACEOF
57863 /* end confdefs.h.  */
57864 #include <langinfo.h>
57865 _ACEOF
57866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
57867   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
57868   ac_status=$?
57869   grep -v '^ *+' conftest.er1 >conftest.err
57870   rm -f conftest.er1
57871   cat conftest.err >&5
57872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57873   (exit $ac_status); } >/dev/null; then
57874   if test -s conftest.err; then
57875     ac_cpp_err=$ac_c_preproc_warn_flag
57876     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
57877   else
57878     ac_cpp_err=
57879   fi
57880 else
57881   ac_cpp_err=yes
57882 fi
57883 if test -z "$ac_cpp_err"; then
57884   ac_header_preproc=yes
57885 else
57886   echo "$as_me: failed program was:" >&5
57887 sed 's/^/| /' conftest.$ac_ext >&5
57888
57889   ac_header_preproc=no
57890 fi
57891 rm -f conftest.err conftest.$ac_ext
57892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57893 echo "${ECHO_T}$ac_header_preproc" >&6
57894
57895 # So?  What about this header?
57896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
57897   yes:no: )
57898     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
57899 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
57900     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
57901 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
57902     ac_header_preproc=yes
57903     ;;
57904   no:yes:* )
57905     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
57906 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
57907     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
57908 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
57909     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
57910 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
57911     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
57912 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
57913     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
57914 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
57915     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
57916 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
57917     (
57918       cat <<\_ASBOX
57919 ## ----------------------------------------- ##
57920 ## Report this to the package-unused lists.  ##
57921 ## ----------------------------------------- ##
57922 _ASBOX
57923     ) |
57924       sed "s/^/$as_me: WARNING:     /" >&2
57925     ;;
57926 esac
57927 echo "$as_me:$LINENO: checking for langinfo.h" >&5
57928 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
57929 if test "${ac_cv_header_langinfo_h+set}" = set; then
57930   echo $ECHO_N "(cached) $ECHO_C" >&6
57931 else
57932   ac_cv_header_langinfo_h=$ac_header_preproc
57933 fi
57934 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
57935 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
57936
57937 fi
57938 if test $ac_cv_header_langinfo_h = yes; then
57939   ac_has_langinfo_h=yes
57940 else
57941   ac_has_langinfo_h=no
57942 fi
57943
57944
57945
57946     # Check for existence of libiconv.a providing XPG2 wchar_t support.
57947     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
57948 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
57949 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
57950   echo $ECHO_N "(cached) $ECHO_C" >&6
57951 else
57952   ac_check_lib_save_LIBS=$LIBS
57953 LIBS="-liconv  $LIBS"
57954 if test x$gcc_no_link = xyes; then
57955   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
57956 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
57957    { (exit 1); exit 1; }; }
57958 fi
57959 cat >conftest.$ac_ext <<_ACEOF
57960 /* confdefs.h.  */
57961 _ACEOF
57962 cat confdefs.h >>conftest.$ac_ext
57963 cat >>conftest.$ac_ext <<_ACEOF
57964 /* end confdefs.h.  */
57965
57966 /* Override any gcc2 internal prototype to avoid an error.  */
57967 #ifdef __cplusplus
57968 extern "C"
57969 #endif
57970 /* We use char because int might match the return type of a gcc2
57971    builtin and then its argument prototype would still apply.  */
57972 char iconv ();
57973 int
57974 main ()
57975 {
57976 iconv ();
57977   ;
57978   return 0;
57979 }
57980 _ACEOF
57981 rm -f conftest.$ac_objext conftest$ac_exeext
57982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57983   (eval $ac_link) 2>conftest.er1
57984   ac_status=$?
57985   grep -v '^ *+' conftest.er1 >conftest.err
57986   rm -f conftest.er1
57987   cat conftest.err >&5
57988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57989   (exit $ac_status); } &&
57990          { ac_try='test -z "$ac_c_werror_flag"
57991                          || test ! -s conftest.err'
57992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57993   (eval $ac_try) 2>&5
57994   ac_status=$?
57995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57996   (exit $ac_status); }; } &&
57997          { ac_try='test -s conftest$ac_exeext'
57998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57999   (eval $ac_try) 2>&5
58000   ac_status=$?
58001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58002   (exit $ac_status); }; }; then
58003   ac_cv_lib_iconv_iconv=yes
58004 else
58005   echo "$as_me: failed program was:" >&5
58006 sed 's/^/| /' conftest.$ac_ext >&5
58007
58008 ac_cv_lib_iconv_iconv=no
58009 fi
58010 rm -f conftest.err conftest.$ac_objext \
58011       conftest$ac_exeext conftest.$ac_ext
58012 LIBS=$ac_check_lib_save_LIBS
58013 fi
58014 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
58015 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
58016 if test $ac_cv_lib_iconv_iconv = yes; then
58017   LIBICONV="-liconv"
58018 fi
58019
58020     ac_save_LIBS="$LIBS"
58021     LIBS="$LIBS $LIBICONV"
58022
58023
58024
58025
58026
58027
58028 for ac_func in iconv_open iconv_close iconv nl_langinfo
58029 do
58030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58031 echo "$as_me:$LINENO: checking for $ac_func" >&5
58032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58033 if eval "test \"\${$as_ac_var+set}\" = set"; then
58034   echo $ECHO_N "(cached) $ECHO_C" >&6
58035 else
58036   if test x$gcc_no_link = xyes; then
58037   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58039    { (exit 1); exit 1; }; }
58040 fi
58041 cat >conftest.$ac_ext <<_ACEOF
58042 /* confdefs.h.  */
58043 _ACEOF
58044 cat confdefs.h >>conftest.$ac_ext
58045 cat >>conftest.$ac_ext <<_ACEOF
58046 /* end confdefs.h.  */
58047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58049 #define $ac_func innocuous_$ac_func
58050
58051 /* System header to define __stub macros and hopefully few prototypes,
58052     which can conflict with char $ac_func (); below.
58053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58054     <limits.h> exists even on freestanding compilers.  */
58055
58056 #ifdef __STDC__
58057 # include <limits.h>
58058 #else
58059 # include <assert.h>
58060 #endif
58061
58062 #undef $ac_func
58063
58064 /* Override any gcc2 internal prototype to avoid an error.  */
58065 #ifdef __cplusplus
58066 extern "C"
58067 {
58068 #endif
58069 /* We use char because int might match the return type of a gcc2
58070    builtin and then its argument prototype would still apply.  */
58071 char $ac_func ();
58072 /* The GNU C library defines this for functions which it implements
58073     to always fail with ENOSYS.  Some functions are actually named
58074     something starting with __ and the normal name is an alias.  */
58075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58076 choke me
58077 #else
58078 char (*f) () = $ac_func;
58079 #endif
58080 #ifdef __cplusplus
58081 }
58082 #endif
58083
58084 int
58085 main ()
58086 {
58087 return f != $ac_func;
58088   ;
58089   return 0;
58090 }
58091 _ACEOF
58092 rm -f conftest.$ac_objext conftest$ac_exeext
58093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58094   (eval $ac_link) 2>conftest.er1
58095   ac_status=$?
58096   grep -v '^ *+' conftest.er1 >conftest.err
58097   rm -f conftest.er1
58098   cat conftest.err >&5
58099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58100   (exit $ac_status); } &&
58101          { ac_try='test -z "$ac_c_werror_flag"
58102                          || test ! -s conftest.err'
58103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58104   (eval $ac_try) 2>&5
58105   ac_status=$?
58106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58107   (exit $ac_status); }; } &&
58108          { ac_try='test -s conftest$ac_exeext'
58109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58110   (eval $ac_try) 2>&5
58111   ac_status=$?
58112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58113   (exit $ac_status); }; }; then
58114   eval "$as_ac_var=yes"
58115 else
58116   echo "$as_me: failed program was:" >&5
58117 sed 's/^/| /' conftest.$ac_ext >&5
58118
58119 eval "$as_ac_var=no"
58120 fi
58121 rm -f conftest.err conftest.$ac_objext \
58122       conftest$ac_exeext conftest.$ac_ext
58123 fi
58124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58126 if test `eval echo '${'$as_ac_var'}'` = yes; then
58127   cat >>confdefs.h <<_ACEOF
58128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58129 _ACEOF
58130  ac_XPG2funcs=yes
58131 else
58132   ac_XPG2funcs=no
58133 fi
58134 done
58135
58136
58137     LIBS="$ac_save_LIBS"
58138
58139     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
58140 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
58141     if test x"$ac_has_iconv_h" = xyes &&
58142        test x"$ac_has_langinfo_h" = xyes &&
58143        test x"$ac_XPG2funcs" = xyes;
58144     then
58145       ac_XPG2_wchar_t=yes
58146     else
58147       ac_XPG2_wchar_t=no
58148     fi
58149     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
58150 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
58151
58152     # At the moment, only enable wchar_t specializations if all the
58153     # above support is present.
58154     if test x"$ac_isoC99_wchar_t" = xyes &&
58155        test x"$ac_XPG2_wchar_t" = xyes;
58156     then
58157       cat >>confdefs.h <<\_ACEOF
58158 #define _GLIBCXX_USE_WCHAR_T 1
58159 _ACEOF
58160
58161       enable_wchar_t=yes
58162     fi
58163   fi
58164   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
58165 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
58166   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
58167 echo "${ECHO_T}$enable_wchar_t" >&6
58168
58169     cat >>confdefs.h <<\_ACEOF
58170 #define HAVE_COPYSIGN 1
58171 _ACEOF
58172
58173     cat >>confdefs.h <<\_ACEOF
58174 #define HAVE_COPYSIGNF 1
58175 _ACEOF
58176
58177     cat >>confdefs.h <<\_ACEOF
58178 #define HAVE_FREXPF 1
58179 _ACEOF
58180
58181     cat >>confdefs.h <<\_ACEOF
58182 #define HAVE_HYPOT 1
58183 _ACEOF
58184
58185     case "$target" in
58186       *-hpux10*)
58187         cat >>confdefs.h <<\_ACEOF
58188 #define HAVE_FINITE 1
58189 _ACEOF
58190
58191         cat >>confdefs.h <<\_ACEOF
58192 #define HAVE_FINITEF 1
58193 _ACEOF
58194
58195         cat >>confdefs.h <<\_ACEOF
58196 #define HAVE_ISINF 1
58197 _ACEOF
58198
58199         cat >>confdefs.h <<\_ACEOF
58200 #define HAVE_ISINFF 1
58201 _ACEOF
58202
58203         cat >>confdefs.h <<\_ACEOF
58204 #define HAVE_ISNAN 1
58205 _ACEOF
58206
58207         cat >>confdefs.h <<\_ACEOF
58208 #define HAVE_ISNANF 1
58209 _ACEOF
58210
58211         ;;
58212     esac
58213     ;;
58214   *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
58215
58216
58217
58218
58219
58220
58221
58222
58223
58224
58225
58226
58227
58228
58229
58230 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
58231       machine/endian.h machine/param.h sys/machine.h sys/types.h \
58232       fp.h float.h endian.h inttypes.h locale.h float.h stdint.h
58233 do
58234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
58235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58236   echo "$as_me:$LINENO: checking for $ac_header" >&5
58237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58239   echo $ECHO_N "(cached) $ECHO_C" >&6
58240 fi
58241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58243 else
58244   # Is the header compilable?
58245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
58246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
58247 cat >conftest.$ac_ext <<_ACEOF
58248 /* confdefs.h.  */
58249 _ACEOF
58250 cat confdefs.h >>conftest.$ac_ext
58251 cat >>conftest.$ac_ext <<_ACEOF
58252 /* end confdefs.h.  */
58253 $ac_includes_default
58254 #include <$ac_header>
58255 _ACEOF
58256 rm -f conftest.$ac_objext
58257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58258   (eval $ac_compile) 2>conftest.er1
58259   ac_status=$?
58260   grep -v '^ *+' conftest.er1 >conftest.err
58261   rm -f conftest.er1
58262   cat conftest.err >&5
58263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58264   (exit $ac_status); } &&
58265          { ac_try='test -z "$ac_c_werror_flag"
58266                          || test ! -s conftest.err'
58267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58268   (eval $ac_try) 2>&5
58269   ac_status=$?
58270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58271   (exit $ac_status); }; } &&
58272          { ac_try='test -s conftest.$ac_objext'
58273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58274   (eval $ac_try) 2>&5
58275   ac_status=$?
58276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58277   (exit $ac_status); }; }; then
58278   ac_header_compiler=yes
58279 else
58280   echo "$as_me: failed program was:" >&5
58281 sed 's/^/| /' conftest.$ac_ext >&5
58282
58283 ac_header_compiler=no
58284 fi
58285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
58286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58287 echo "${ECHO_T}$ac_header_compiler" >&6
58288
58289 # Is the header present?
58290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
58291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
58292 cat >conftest.$ac_ext <<_ACEOF
58293 /* confdefs.h.  */
58294 _ACEOF
58295 cat confdefs.h >>conftest.$ac_ext
58296 cat >>conftest.$ac_ext <<_ACEOF
58297 /* end confdefs.h.  */
58298 #include <$ac_header>
58299 _ACEOF
58300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
58301   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
58302   ac_status=$?
58303   grep -v '^ *+' conftest.er1 >conftest.err
58304   rm -f conftest.er1
58305   cat conftest.err >&5
58306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58307   (exit $ac_status); } >/dev/null; then
58308   if test -s conftest.err; then
58309     ac_cpp_err=$ac_c_preproc_warn_flag
58310     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
58311   else
58312     ac_cpp_err=
58313   fi
58314 else
58315   ac_cpp_err=yes
58316 fi
58317 if test -z "$ac_cpp_err"; then
58318   ac_header_preproc=yes
58319 else
58320   echo "$as_me: failed program was:" >&5
58321 sed 's/^/| /' conftest.$ac_ext >&5
58322
58323   ac_header_preproc=no
58324 fi
58325 rm -f conftest.err conftest.$ac_ext
58326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58327 echo "${ECHO_T}$ac_header_preproc" >&6
58328
58329 # So?  What about this header?
58330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58331   yes:no: )
58332     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58334     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58336     ac_header_preproc=yes
58337     ;;
58338   no:yes:* )
58339     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58341     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
58342 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
58343     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58345     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
58346 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
58347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58349     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58351     (
58352       cat <<\_ASBOX
58353 ## ----------------------------------------- ##
58354 ## Report this to the package-unused lists.  ##
58355 ## ----------------------------------------- ##
58356 _ASBOX
58357     ) |
58358       sed "s/^/$as_me: WARNING:     /" >&2
58359     ;;
58360 esac
58361 echo "$as_me:$LINENO: checking for $ac_header" >&5
58362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
58363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
58364   echo $ECHO_N "(cached) $ECHO_C" >&6
58365 else
58366   eval "$as_ac_Header=\$ac_header_preproc"
58367 fi
58368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
58369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
58370
58371 fi
58372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
58373   cat >>confdefs.h <<_ACEOF
58374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
58375 _ACEOF
58376
58377 fi
58378
58379 done
58380
58381     SECTION_FLAGS='-ffunction-sections -fdata-sections'
58382
58383
58384   # If we're not using GNU ld, then there's no point in even trying these
58385   # tests.  Check for that first.  We should have already tested for gld
58386   # by now (in libtool), but require it now just to be safe...
58387   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
58388   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
58389
58390
58391
58392   # The name set by libtool depends on the version of libtool.  Shame on us
58393   # for depending on an impl detail, but c'est la vie.  Older versions used
58394   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
58395   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
58396   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
58397   # set (hence we're using an older libtool), then set it.
58398   if test x${with_gnu_ld+set} != xset; then
58399     if test x${ac_cv_prog_gnu_ld+set} != xset; then
58400       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
58401       with_gnu_ld=no
58402     else
58403       with_gnu_ld=$ac_cv_prog_gnu_ld
58404     fi
58405   fi
58406
58407   # Start by getting the version number.  I think the libtool test already
58408   # does some of this, but throws away the result.
58409
58410   ldver=`$LD --version 2>/dev/null | head -1 | \
58411          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
58412
58413   glibcxx_gnu_ld_version=`echo $ldver | \
58414          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
58415
58416   # Set --gc-sections.
58417   if test "$with_gnu_ld" = "notbroken"; then
58418     # GNU ld it is!  Joy and bunny rabbits!
58419
58420     # All these tests are for C++; save the language and the compiler flags.
58421     # Need to do this so that g++ won't try to link in libstdc++
58422     ac_test_CFLAGS="${CFLAGS+set}"
58423     ac_save_CFLAGS="$CFLAGS"
58424     CFLAGS='-x c++  -Wl,--gc-sections'
58425
58426     # Check for -Wl,--gc-sections
58427     # XXX This test is broken at the moment, as symbols required for linking
58428     # are now in libsupc++ (not built yet).  In addition, this test has
58429     # cored on solaris in the past.  In addition, --gc-sections doesn't
58430     # really work at the moment (keeps on discarding used sections, first
58431     # .eh_frame and now some of the glibc sections for iconv).
58432     # Bzzzzt.  Thanks for playing, maybe next time.
58433     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
58434 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
58435     if test "$cross_compiling" = yes; then
58436   ac_sectionLDflags=yes
58437 else
58438   cat >conftest.$ac_ext <<_ACEOF
58439 /* confdefs.h.  */
58440 _ACEOF
58441 cat confdefs.h >>conftest.$ac_ext
58442 cat >>conftest.$ac_ext <<_ACEOF
58443 /* end confdefs.h.  */
58444
58445      int main(void)
58446      {
58447        try { throw 1; }
58448        catch (...) { };
58449        return 0;
58450      }
58451
58452 _ACEOF
58453 rm -f conftest$ac_exeext
58454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58455   (eval $ac_link) 2>&5
58456   ac_status=$?
58457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58458   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58460   (eval $ac_try) 2>&5
58461   ac_status=$?
58462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58463   (exit $ac_status); }; }; then
58464   ac_sectionLDflags=yes
58465 else
58466   echo "$as_me: program exited with status $ac_status" >&5
58467 echo "$as_me: failed program was:" >&5
58468 sed 's/^/| /' conftest.$ac_ext >&5
58469
58470 ( exit $ac_status )
58471 ac_sectionLDflags=no
58472 fi
58473 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58474 fi
58475     if test "$ac_test_CFLAGS" = set; then
58476       CFLAGS="$ac_save_CFLAGS"
58477     else
58478       # this is the suspicious part
58479       CFLAGS=''
58480     fi
58481     if test "$ac_sectionLDflags" = "yes"; then
58482       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
58483     fi
58484     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
58485 echo "${ECHO_T}$ac_sectionLDflags" >&6
58486   fi
58487
58488   # Set linker optimization flags.
58489   if test x"$with_gnu_ld" = x"yes"; then
58490     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
58491   fi
58492
58493
58494
58495
58496
58497
58498 echo "$as_me:$LINENO: checking for main in -lm" >&5
58499 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
58500 if test "${ac_cv_lib_m_main+set}" = set; then
58501   echo $ECHO_N "(cached) $ECHO_C" >&6
58502 else
58503   ac_check_lib_save_LIBS=$LIBS
58504 LIBS="-lm  $LIBS"
58505 if test x$gcc_no_link = xyes; then
58506   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58507 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58508    { (exit 1); exit 1; }; }
58509 fi
58510 cat >conftest.$ac_ext <<_ACEOF
58511 /* confdefs.h.  */
58512 _ACEOF
58513 cat confdefs.h >>conftest.$ac_ext
58514 cat >>conftest.$ac_ext <<_ACEOF
58515 /* end confdefs.h.  */
58516
58517
58518 int
58519 main ()
58520 {
58521 main ();
58522   ;
58523   return 0;
58524 }
58525 _ACEOF
58526 rm -f conftest.$ac_objext conftest$ac_exeext
58527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58528   (eval $ac_link) 2>conftest.er1
58529   ac_status=$?
58530   grep -v '^ *+' conftest.er1 >conftest.err
58531   rm -f conftest.er1
58532   cat conftest.err >&5
58533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58534   (exit $ac_status); } &&
58535          { ac_try='test -z "$ac_c_werror_flag"
58536                          || test ! -s conftest.err'
58537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58538   (eval $ac_try) 2>&5
58539   ac_status=$?
58540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58541   (exit $ac_status); }; } &&
58542          { ac_try='test -s conftest$ac_exeext'
58543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58544   (eval $ac_try) 2>&5
58545   ac_status=$?
58546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58547   (exit $ac_status); }; }; then
58548   ac_cv_lib_m_main=yes
58549 else
58550   echo "$as_me: failed program was:" >&5
58551 sed 's/^/| /' conftest.$ac_ext >&5
58552
58553 ac_cv_lib_m_main=no
58554 fi
58555 rm -f conftest.err conftest.$ac_objext \
58556       conftest$ac_exeext conftest.$ac_ext
58557 LIBS=$ac_check_lib_save_LIBS
58558 fi
58559 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
58560 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
58561 if test $ac_cv_lib_m_main = yes; then
58562   cat >>confdefs.h <<_ACEOF
58563 #define HAVE_LIBM 1
58564 _ACEOF
58565
58566   LIBS="-lm $LIBS"
58567
58568 fi
58569
58570
58571 for ac_func in copysignf
58572 do
58573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58574 echo "$as_me:$LINENO: checking for $ac_func" >&5
58575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58576 if eval "test \"\${$as_ac_var+set}\" = set"; then
58577   echo $ECHO_N "(cached) $ECHO_C" >&6
58578 else
58579   if test x$gcc_no_link = xyes; then
58580   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58581 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58582    { (exit 1); exit 1; }; }
58583 fi
58584 cat >conftest.$ac_ext <<_ACEOF
58585 /* confdefs.h.  */
58586 _ACEOF
58587 cat confdefs.h >>conftest.$ac_ext
58588 cat >>conftest.$ac_ext <<_ACEOF
58589 /* end confdefs.h.  */
58590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58592 #define $ac_func innocuous_$ac_func
58593
58594 /* System header to define __stub macros and hopefully few prototypes,
58595     which can conflict with char $ac_func (); below.
58596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58597     <limits.h> exists even on freestanding compilers.  */
58598
58599 #ifdef __STDC__
58600 # include <limits.h>
58601 #else
58602 # include <assert.h>
58603 #endif
58604
58605 #undef $ac_func
58606
58607 /* Override any gcc2 internal prototype to avoid an error.  */
58608 #ifdef __cplusplus
58609 extern "C"
58610 {
58611 #endif
58612 /* We use char because int might match the return type of a gcc2
58613    builtin and then its argument prototype would still apply.  */
58614 char $ac_func ();
58615 /* The GNU C library defines this for functions which it implements
58616     to always fail with ENOSYS.  Some functions are actually named
58617     something starting with __ and the normal name is an alias.  */
58618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58619 choke me
58620 #else
58621 char (*f) () = $ac_func;
58622 #endif
58623 #ifdef __cplusplus
58624 }
58625 #endif
58626
58627 int
58628 main ()
58629 {
58630 return f != $ac_func;
58631   ;
58632   return 0;
58633 }
58634 _ACEOF
58635 rm -f conftest.$ac_objext conftest$ac_exeext
58636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58637   (eval $ac_link) 2>conftest.er1
58638   ac_status=$?
58639   grep -v '^ *+' conftest.er1 >conftest.err
58640   rm -f conftest.er1
58641   cat conftest.err >&5
58642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58643   (exit $ac_status); } &&
58644          { ac_try='test -z "$ac_c_werror_flag"
58645                          || test ! -s conftest.err'
58646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58647   (eval $ac_try) 2>&5
58648   ac_status=$?
58649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58650   (exit $ac_status); }; } &&
58651          { ac_try='test -s conftest$ac_exeext'
58652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58653   (eval $ac_try) 2>&5
58654   ac_status=$?
58655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58656   (exit $ac_status); }; }; then
58657   eval "$as_ac_var=yes"
58658 else
58659   echo "$as_me: failed program was:" >&5
58660 sed 's/^/| /' conftest.$ac_ext >&5
58661
58662 eval "$as_ac_var=no"
58663 fi
58664 rm -f conftest.err conftest.$ac_objext \
58665       conftest$ac_exeext conftest.$ac_ext
58666 fi
58667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58669 if test `eval echo '${'$as_ac_var'}'` = yes; then
58670   cat >>confdefs.h <<_ACEOF
58671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58672 _ACEOF
58673
58674 else
58675   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
58676 fi
58677 done
58678
58679
58680
58681 for ac_func in __signbit
58682 do
58683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58684 echo "$as_me:$LINENO: checking for $ac_func" >&5
58685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58686 if eval "test \"\${$as_ac_var+set}\" = set"; then
58687   echo $ECHO_N "(cached) $ECHO_C" >&6
58688 else
58689   if test x$gcc_no_link = xyes; then
58690   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58691 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58692    { (exit 1); exit 1; }; }
58693 fi
58694 cat >conftest.$ac_ext <<_ACEOF
58695 /* confdefs.h.  */
58696 _ACEOF
58697 cat confdefs.h >>conftest.$ac_ext
58698 cat >>conftest.$ac_ext <<_ACEOF
58699 /* end confdefs.h.  */
58700 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58702 #define $ac_func innocuous_$ac_func
58703
58704 /* System header to define __stub macros and hopefully few prototypes,
58705     which can conflict with char $ac_func (); below.
58706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58707     <limits.h> exists even on freestanding compilers.  */
58708
58709 #ifdef __STDC__
58710 # include <limits.h>
58711 #else
58712 # include <assert.h>
58713 #endif
58714
58715 #undef $ac_func
58716
58717 /* Override any gcc2 internal prototype to avoid an error.  */
58718 #ifdef __cplusplus
58719 extern "C"
58720 {
58721 #endif
58722 /* We use char because int might match the return type of a gcc2
58723    builtin and then its argument prototype would still apply.  */
58724 char $ac_func ();
58725 /* The GNU C library defines this for functions which it implements
58726     to always fail with ENOSYS.  Some functions are actually named
58727     something starting with __ and the normal name is an alias.  */
58728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58729 choke me
58730 #else
58731 char (*f) () = $ac_func;
58732 #endif
58733 #ifdef __cplusplus
58734 }
58735 #endif
58736
58737 int
58738 main ()
58739 {
58740 return f != $ac_func;
58741   ;
58742   return 0;
58743 }
58744 _ACEOF
58745 rm -f conftest.$ac_objext conftest$ac_exeext
58746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58747   (eval $ac_link) 2>conftest.er1
58748   ac_status=$?
58749   grep -v '^ *+' conftest.er1 >conftest.err
58750   rm -f conftest.er1
58751   cat conftest.err >&5
58752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58753   (exit $ac_status); } &&
58754          { ac_try='test -z "$ac_c_werror_flag"
58755                          || test ! -s conftest.err'
58756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58757   (eval $ac_try) 2>&5
58758   ac_status=$?
58759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58760   (exit $ac_status); }; } &&
58761          { ac_try='test -s conftest$ac_exeext'
58762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58763   (eval $ac_try) 2>&5
58764   ac_status=$?
58765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58766   (exit $ac_status); }; }; then
58767   eval "$as_ac_var=yes"
58768 else
58769   echo "$as_me: failed program was:" >&5
58770 sed 's/^/| /' conftest.$ac_ext >&5
58771
58772 eval "$as_ac_var=no"
58773 fi
58774 rm -f conftest.err conftest.$ac_objext \
58775       conftest$ac_exeext conftest.$ac_ext
58776 fi
58777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58779 if test `eval echo '${'$as_ac_var'}'` = yes; then
58780   cat >>confdefs.h <<_ACEOF
58781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58782 _ACEOF
58783
58784 else
58785   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
58786 fi
58787 done
58788
58789
58790 for ac_func in __signbitf
58791 do
58792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58793 echo "$as_me:$LINENO: checking for $ac_func" >&5
58794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58795 if eval "test \"\${$as_ac_var+set}\" = set"; then
58796   echo $ECHO_N "(cached) $ECHO_C" >&6
58797 else
58798   if test x$gcc_no_link = xyes; then
58799   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58800 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58801    { (exit 1); exit 1; }; }
58802 fi
58803 cat >conftest.$ac_ext <<_ACEOF
58804 /* confdefs.h.  */
58805 _ACEOF
58806 cat confdefs.h >>conftest.$ac_ext
58807 cat >>conftest.$ac_ext <<_ACEOF
58808 /* end confdefs.h.  */
58809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58811 #define $ac_func innocuous_$ac_func
58812
58813 /* System header to define __stub macros and hopefully few prototypes,
58814     which can conflict with char $ac_func (); below.
58815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58816     <limits.h> exists even on freestanding compilers.  */
58817
58818 #ifdef __STDC__
58819 # include <limits.h>
58820 #else
58821 # include <assert.h>
58822 #endif
58823
58824 #undef $ac_func
58825
58826 /* Override any gcc2 internal prototype to avoid an error.  */
58827 #ifdef __cplusplus
58828 extern "C"
58829 {
58830 #endif
58831 /* We use char because int might match the return type of a gcc2
58832    builtin and then its argument prototype would still apply.  */
58833 char $ac_func ();
58834 /* The GNU C library defines this for functions which it implements
58835     to always fail with ENOSYS.  Some functions are actually named
58836     something starting with __ and the normal name is an alias.  */
58837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58838 choke me
58839 #else
58840 char (*f) () = $ac_func;
58841 #endif
58842 #ifdef __cplusplus
58843 }
58844 #endif
58845
58846 int
58847 main ()
58848 {
58849 return f != $ac_func;
58850   ;
58851   return 0;
58852 }
58853 _ACEOF
58854 rm -f conftest.$ac_objext conftest$ac_exeext
58855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58856   (eval $ac_link) 2>conftest.er1
58857   ac_status=$?
58858   grep -v '^ *+' conftest.er1 >conftest.err
58859   rm -f conftest.er1
58860   cat conftest.err >&5
58861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58862   (exit $ac_status); } &&
58863          { ac_try='test -z "$ac_c_werror_flag"
58864                          || test ! -s conftest.err'
58865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58866   (eval $ac_try) 2>&5
58867   ac_status=$?
58868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58869   (exit $ac_status); }; } &&
58870          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
58876   eval "$as_ac_var=yes"
58877 else
58878   echo "$as_me: failed program was:" >&5
58879 sed 's/^/| /' conftest.$ac_ext >&5
58880
58881 eval "$as_ac_var=no"
58882 fi
58883 rm -f conftest.err conftest.$ac_objext \
58884       conftest$ac_exeext conftest.$ac_ext
58885 fi
58886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58888 if test `eval echo '${'$as_ac_var'}'` = yes; then
58889   cat >>confdefs.h <<_ACEOF
58890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58891 _ACEOF
58892
58893 else
58894   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
58895 fi
58896 done
58897
58898
58899           if test x$ac_cv_func_copysignl = x"yes"; then
58900
58901 for ac_func in __signbitl
58902 do
58903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58904 echo "$as_me:$LINENO: checking for $ac_func" >&5
58905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
58906 if eval "test \"\${$as_ac_var+set}\" = set"; then
58907   echo $ECHO_N "(cached) $ECHO_C" >&6
58908 else
58909   if test x$gcc_no_link = xyes; then
58910   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
58911 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
58912    { (exit 1); exit 1; }; }
58913 fi
58914 cat >conftest.$ac_ext <<_ACEOF
58915 /* confdefs.h.  */
58916 _ACEOF
58917 cat confdefs.h >>conftest.$ac_ext
58918 cat >>conftest.$ac_ext <<_ACEOF
58919 /* end confdefs.h.  */
58920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58922 #define $ac_func innocuous_$ac_func
58923
58924 /* System header to define __stub macros and hopefully few prototypes,
58925     which can conflict with char $ac_func (); below.
58926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58927     <limits.h> exists even on freestanding compilers.  */
58928
58929 #ifdef __STDC__
58930 # include <limits.h>
58931 #else
58932 # include <assert.h>
58933 #endif
58934
58935 #undef $ac_func
58936
58937 /* Override any gcc2 internal prototype to avoid an error.  */
58938 #ifdef __cplusplus
58939 extern "C"
58940 {
58941 #endif
58942 /* We use char because int might match the return type of a gcc2
58943    builtin and then its argument prototype would still apply.  */
58944 char $ac_func ();
58945 /* The GNU C library defines this for functions which it implements
58946     to always fail with ENOSYS.  Some functions are actually named
58947     something starting with __ and the normal name is an alias.  */
58948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
58949 choke me
58950 #else
58951 char (*f) () = $ac_func;
58952 #endif
58953 #ifdef __cplusplus
58954 }
58955 #endif
58956
58957 int
58958 main ()
58959 {
58960 return f != $ac_func;
58961   ;
58962   return 0;
58963 }
58964 _ACEOF
58965 rm -f conftest.$ac_objext conftest$ac_exeext
58966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
58967   (eval $ac_link) 2>conftest.er1
58968   ac_status=$?
58969   grep -v '^ *+' conftest.er1 >conftest.err
58970   rm -f conftest.er1
58971   cat conftest.err >&5
58972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58973   (exit $ac_status); } &&
58974          { ac_try='test -z "$ac_c_werror_flag"
58975                          || test ! -s conftest.err'
58976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58977   (eval $ac_try) 2>&5
58978   ac_status=$?
58979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58980   (exit $ac_status); }; } &&
58981          { ac_try='test -s conftest$ac_exeext'
58982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
58983   (eval $ac_try) 2>&5
58984   ac_status=$?
58985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58986   (exit $ac_status); }; }; then
58987   eval "$as_ac_var=yes"
58988 else
58989   echo "$as_me: failed program was:" >&5
58990 sed 's/^/| /' conftest.$ac_ext >&5
58991
58992 eval "$as_ac_var=no"
58993 fi
58994 rm -f conftest.err conftest.$ac_objext \
58995       conftest$ac_exeext conftest.$ac_ext
58996 fi
58997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
58998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
58999 if test `eval echo '${'$as_ac_var'}'` = yes; then
59000   cat >>confdefs.h <<_ACEOF
59001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59002 _ACEOF
59003
59004 else
59005   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
59006 fi
59007 done
59008
59009   fi
59010
59011   # XXX Review this.  Nothing uses it.
59012   if test -n "$LIBMATHOBJS"; then
59013     need_libmath=yes
59014   fi
59015
59016
59017
59018   # Test wchar.h for mbstate_t, which is needed for char_traits and
59019   # others even if wchar_t support is not on.
59020   echo "$as_me:$LINENO: checking for mbstate_t" >&5
59021 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
59022   cat >conftest.$ac_ext <<_ACEOF
59023 /* confdefs.h.  */
59024 _ACEOF
59025 cat confdefs.h >>conftest.$ac_ext
59026 cat >>conftest.$ac_ext <<_ACEOF
59027 /* end confdefs.h.  */
59028 #include <wchar.h>
59029 int
59030 main ()
59031 {
59032 mbstate_t teststate;
59033   ;
59034   return 0;
59035 }
59036 _ACEOF
59037 rm -f conftest.$ac_objext
59038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59039   (eval $ac_compile) 2>conftest.er1
59040   ac_status=$?
59041   grep -v '^ *+' conftest.er1 >conftest.err
59042   rm -f conftest.er1
59043   cat conftest.err >&5
59044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59045   (exit $ac_status); } &&
59046          { ac_try='test -z "$ac_c_werror_flag"
59047                          || test ! -s conftest.err'
59048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59049   (eval $ac_try) 2>&5
59050   ac_status=$?
59051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59052   (exit $ac_status); }; } &&
59053          { ac_try='test -s conftest.$ac_objext'
59054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59055   (eval $ac_try) 2>&5
59056   ac_status=$?
59057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59058   (exit $ac_status); }; }; then
59059   have_mbstate_t=yes
59060 else
59061   echo "$as_me: failed program was:" >&5
59062 sed 's/^/| /' conftest.$ac_ext >&5
59063
59064 have_mbstate_t=no
59065 fi
59066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59067   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
59068 echo "${ECHO_T}$have_mbstate_t" >&6
59069   if test x"$have_mbstate_t" = xyes; then
59070     cat >>confdefs.h <<\_ACEOF
59071 #define HAVE_MBSTATE_T 1
59072 _ACEOF
59073
59074   fi
59075
59076   # Sanity check for existence of ISO C99 headers for extended encoding.
59077
59078 for ac_header in wchar.h
59079 do
59080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59082   echo "$as_me:$LINENO: checking for $ac_header" >&5
59083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59085   echo $ECHO_N "(cached) $ECHO_C" >&6
59086 fi
59087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59089 else
59090   # Is the header compilable?
59091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59093 cat >conftest.$ac_ext <<_ACEOF
59094 /* confdefs.h.  */
59095 _ACEOF
59096 cat confdefs.h >>conftest.$ac_ext
59097 cat >>conftest.$ac_ext <<_ACEOF
59098 /* end confdefs.h.  */
59099 $ac_includes_default
59100 #include <$ac_header>
59101 _ACEOF
59102 rm -f conftest.$ac_objext
59103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59104   (eval $ac_compile) 2>conftest.er1
59105   ac_status=$?
59106   grep -v '^ *+' conftest.er1 >conftest.err
59107   rm -f conftest.er1
59108   cat conftest.err >&5
59109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59110   (exit $ac_status); } &&
59111          { ac_try='test -z "$ac_c_werror_flag"
59112                          || test ! -s conftest.err'
59113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59114   (eval $ac_try) 2>&5
59115   ac_status=$?
59116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59117   (exit $ac_status); }; } &&
59118          { ac_try='test -s conftest.$ac_objext'
59119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59120   (eval $ac_try) 2>&5
59121   ac_status=$?
59122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59123   (exit $ac_status); }; }; then
59124   ac_header_compiler=yes
59125 else
59126   echo "$as_me: failed program was:" >&5
59127 sed 's/^/| /' conftest.$ac_ext >&5
59128
59129 ac_header_compiler=no
59130 fi
59131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59133 echo "${ECHO_T}$ac_header_compiler" >&6
59134
59135 # Is the header present?
59136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59138 cat >conftest.$ac_ext <<_ACEOF
59139 /* confdefs.h.  */
59140 _ACEOF
59141 cat confdefs.h >>conftest.$ac_ext
59142 cat >>conftest.$ac_ext <<_ACEOF
59143 /* end confdefs.h.  */
59144 #include <$ac_header>
59145 _ACEOF
59146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59147   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59148   ac_status=$?
59149   grep -v '^ *+' conftest.er1 >conftest.err
59150   rm -f conftest.er1
59151   cat conftest.err >&5
59152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59153   (exit $ac_status); } >/dev/null; then
59154   if test -s conftest.err; then
59155     ac_cpp_err=$ac_c_preproc_warn_flag
59156     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59157   else
59158     ac_cpp_err=
59159   fi
59160 else
59161   ac_cpp_err=yes
59162 fi
59163 if test -z "$ac_cpp_err"; then
59164   ac_header_preproc=yes
59165 else
59166   echo "$as_me: failed program was:" >&5
59167 sed 's/^/| /' conftest.$ac_ext >&5
59168
59169   ac_header_preproc=no
59170 fi
59171 rm -f conftest.err conftest.$ac_ext
59172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59173 echo "${ECHO_T}$ac_header_preproc" >&6
59174
59175 # So?  What about this header?
59176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59177   yes:no: )
59178     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59182     ac_header_preproc=yes
59183     ;;
59184   no:yes:* )
59185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59187     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
59188 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
59189     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59191     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
59192 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
59193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59195     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59197     (
59198       cat <<\_ASBOX
59199 ## ----------------------------------------- ##
59200 ## Report this to the package-unused lists.  ##
59201 ## ----------------------------------------- ##
59202 _ASBOX
59203     ) |
59204       sed "s/^/$as_me: WARNING:     /" >&2
59205     ;;
59206 esac
59207 echo "$as_me:$LINENO: checking for $ac_header" >&5
59208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59210   echo $ECHO_N "(cached) $ECHO_C" >&6
59211 else
59212   eval "$as_ac_Header=\$ac_header_preproc"
59213 fi
59214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59216
59217 fi
59218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59219   cat >>confdefs.h <<_ACEOF
59220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59221 _ACEOF
59222  ac_has_wchar_h=yes
59223 else
59224   ac_has_wchar_h=no
59225 fi
59226
59227 done
59228
59229
59230 for ac_header in wctype.h
59231 do
59232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
59233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59234   echo "$as_me:$LINENO: checking for $ac_header" >&5
59235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59237   echo $ECHO_N "(cached) $ECHO_C" >&6
59238 fi
59239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59241 else
59242   # Is the header compilable?
59243 echo "$as_me:$LINENO: checking $ac_header usability" >&5
59244 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
59245 cat >conftest.$ac_ext <<_ACEOF
59246 /* confdefs.h.  */
59247 _ACEOF
59248 cat confdefs.h >>conftest.$ac_ext
59249 cat >>conftest.$ac_ext <<_ACEOF
59250 /* end confdefs.h.  */
59251 $ac_includes_default
59252 #include <$ac_header>
59253 _ACEOF
59254 rm -f conftest.$ac_objext
59255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59256   (eval $ac_compile) 2>conftest.er1
59257   ac_status=$?
59258   grep -v '^ *+' conftest.er1 >conftest.err
59259   rm -f conftest.er1
59260   cat conftest.err >&5
59261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59262   (exit $ac_status); } &&
59263          { ac_try='test -z "$ac_c_werror_flag"
59264                          || test ! -s conftest.err'
59265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59266   (eval $ac_try) 2>&5
59267   ac_status=$?
59268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59269   (exit $ac_status); }; } &&
59270          { ac_try='test -s conftest.$ac_objext'
59271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59272   (eval $ac_try) 2>&5
59273   ac_status=$?
59274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59275   (exit $ac_status); }; }; then
59276   ac_header_compiler=yes
59277 else
59278   echo "$as_me: failed program was:" >&5
59279 sed 's/^/| /' conftest.$ac_ext >&5
59280
59281 ac_header_compiler=no
59282 fi
59283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59284 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59285 echo "${ECHO_T}$ac_header_compiler" >&6
59286
59287 # Is the header present?
59288 echo "$as_me:$LINENO: checking $ac_header presence" >&5
59289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
59290 cat >conftest.$ac_ext <<_ACEOF
59291 /* confdefs.h.  */
59292 _ACEOF
59293 cat confdefs.h >>conftest.$ac_ext
59294 cat >>conftest.$ac_ext <<_ACEOF
59295 /* end confdefs.h.  */
59296 #include <$ac_header>
59297 _ACEOF
59298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59299   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59300   ac_status=$?
59301   grep -v '^ *+' conftest.er1 >conftest.err
59302   rm -f conftest.er1
59303   cat conftest.err >&5
59304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59305   (exit $ac_status); } >/dev/null; then
59306   if test -s conftest.err; then
59307     ac_cpp_err=$ac_c_preproc_warn_flag
59308     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59309   else
59310     ac_cpp_err=
59311   fi
59312 else
59313   ac_cpp_err=yes
59314 fi
59315 if test -z "$ac_cpp_err"; then
59316   ac_header_preproc=yes
59317 else
59318   echo "$as_me: failed program was:" >&5
59319 sed 's/^/| /' conftest.$ac_ext >&5
59320
59321   ac_header_preproc=no
59322 fi
59323 rm -f conftest.err conftest.$ac_ext
59324 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59325 echo "${ECHO_T}$ac_header_preproc" >&6
59326
59327 # So?  What about this header?
59328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59329   yes:no: )
59330     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
59331 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
59332     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
59333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
59334     ac_header_preproc=yes
59335     ;;
59336   no:yes:* )
59337     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
59338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
59339     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
59340 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
59341     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
59342 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
59343     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
59344 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
59345     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
59346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
59347     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
59348 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
59349     (
59350       cat <<\_ASBOX
59351 ## ----------------------------------------- ##
59352 ## Report this to the package-unused lists.  ##
59353 ## ----------------------------------------- ##
59354 _ASBOX
59355     ) |
59356       sed "s/^/$as_me: WARNING:     /" >&2
59357     ;;
59358 esac
59359 echo "$as_me:$LINENO: checking for $ac_header" >&5
59360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
59361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
59362   echo $ECHO_N "(cached) $ECHO_C" >&6
59363 else
59364   eval "$as_ac_Header=\$ac_header_preproc"
59365 fi
59366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
59367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
59368
59369 fi
59370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
59371   cat >>confdefs.h <<_ACEOF
59372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
59373 _ACEOF
59374  ac_has_wctype_h=yes
59375 else
59376   ac_has_wctype_h=no
59377 fi
59378
59379 done
59380
59381
59382   # Only continue checking if the ISO C99 headers exist and support is on.
59383   if test x"$ac_has_wchar_h" = xyes &&
59384      test x"$ac_has_wctype_h" = xyes &&
59385      test x"$enable_c_mbchar" != xno; then
59386
59387     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
59388     # numeric_limits can instantiate type_traits<wchar_t>
59389     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
59390 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
59391     cat >conftest.$ac_ext <<_ACEOF
59392 /* confdefs.h.  */
59393 _ACEOF
59394 cat confdefs.h >>conftest.$ac_ext
59395 cat >>conftest.$ac_ext <<_ACEOF
59396 /* end confdefs.h.  */
59397 #include <wchar.h>
59398 int
59399 main ()
59400 {
59401 int i = WCHAR_MIN; int j = WCHAR_MAX;
59402   ;
59403   return 0;
59404 }
59405 _ACEOF
59406 rm -f conftest.$ac_objext
59407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59408   (eval $ac_compile) 2>conftest.er1
59409   ac_status=$?
59410   grep -v '^ *+' conftest.er1 >conftest.err
59411   rm -f conftest.er1
59412   cat conftest.err >&5
59413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59414   (exit $ac_status); } &&
59415          { ac_try='test -z "$ac_c_werror_flag"
59416                          || test ! -s conftest.err'
59417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59418   (eval $ac_try) 2>&5
59419   ac_status=$?
59420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59421   (exit $ac_status); }; } &&
59422          { ac_try='test -s conftest.$ac_objext'
59423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59424   (eval $ac_try) 2>&5
59425   ac_status=$?
59426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59427   (exit $ac_status); }; }; then
59428   has_wchar_minmax=yes
59429 else
59430   echo "$as_me: failed program was:" >&5
59431 sed 's/^/| /' conftest.$ac_ext >&5
59432
59433 has_wchar_minmax=no
59434 fi
59435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59436     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
59437 echo "${ECHO_T}$has_wchar_minmax" >&6
59438
59439     # Test wchar.h for WEOF, which is what we use to determine whether
59440     # to specialize for char_traits<wchar_t> or not.
59441     echo "$as_me:$LINENO: checking for WEOF" >&5
59442 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
59443     cat >conftest.$ac_ext <<_ACEOF
59444 /* confdefs.h.  */
59445 _ACEOF
59446 cat confdefs.h >>conftest.$ac_ext
59447 cat >>conftest.$ac_ext <<_ACEOF
59448 /* end confdefs.h.  */
59449
59450       #include <wchar.h>
59451       #include <stddef.h>
59452 int
59453 main ()
59454 {
59455 wint_t i = WEOF;
59456   ;
59457   return 0;
59458 }
59459 _ACEOF
59460 rm -f conftest.$ac_objext
59461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59462   (eval $ac_compile) 2>conftest.er1
59463   ac_status=$?
59464   grep -v '^ *+' conftest.er1 >conftest.err
59465   rm -f conftest.er1
59466   cat conftest.err >&5
59467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59468   (exit $ac_status); } &&
59469          { ac_try='test -z "$ac_c_werror_flag"
59470                          || test ! -s conftest.err'
59471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59472   (eval $ac_try) 2>&5
59473   ac_status=$?
59474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59475   (exit $ac_status); }; } &&
59476          { ac_try='test -s conftest.$ac_objext'
59477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59478   (eval $ac_try) 2>&5
59479   ac_status=$?
59480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59481   (exit $ac_status); }; }; then
59482   has_weof=yes
59483 else
59484   echo "$as_me: failed program was:" >&5
59485 sed 's/^/| /' conftest.$ac_ext >&5
59486
59487 has_weof=no
59488 fi
59489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59490     echo "$as_me:$LINENO: result: $has_weof" >&5
59491 echo "${ECHO_T}$has_weof" >&6
59492
59493     # Tests for wide character functions used in char_traits<wchar_t>.
59494     ac_wfuncs=yes
59495
59496
59497
59498
59499
59500
59501 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
59502 do
59503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59504 echo "$as_me:$LINENO: checking for $ac_func" >&5
59505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59506 if eval "test \"\${$as_ac_var+set}\" = set"; then
59507   echo $ECHO_N "(cached) $ECHO_C" >&6
59508 else
59509   if test x$gcc_no_link = xyes; then
59510   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59512    { (exit 1); exit 1; }; }
59513 fi
59514 cat >conftest.$ac_ext <<_ACEOF
59515 /* confdefs.h.  */
59516 _ACEOF
59517 cat confdefs.h >>conftest.$ac_ext
59518 cat >>conftest.$ac_ext <<_ACEOF
59519 /* end confdefs.h.  */
59520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59522 #define $ac_func innocuous_$ac_func
59523
59524 /* System header to define __stub macros and hopefully few prototypes,
59525     which can conflict with char $ac_func (); below.
59526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59527     <limits.h> exists even on freestanding compilers.  */
59528
59529 #ifdef __STDC__
59530 # include <limits.h>
59531 #else
59532 # include <assert.h>
59533 #endif
59534
59535 #undef $ac_func
59536
59537 /* Override any gcc2 internal prototype to avoid an error.  */
59538 #ifdef __cplusplus
59539 extern "C"
59540 {
59541 #endif
59542 /* We use char because int might match the return type of a gcc2
59543    builtin and then its argument prototype would still apply.  */
59544 char $ac_func ();
59545 /* The GNU C library defines this for functions which it implements
59546     to always fail with ENOSYS.  Some functions are actually named
59547     something starting with __ and the normal name is an alias.  */
59548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59549 choke me
59550 #else
59551 char (*f) () = $ac_func;
59552 #endif
59553 #ifdef __cplusplus
59554 }
59555 #endif
59556
59557 int
59558 main ()
59559 {
59560 return f != $ac_func;
59561   ;
59562   return 0;
59563 }
59564 _ACEOF
59565 rm -f conftest.$ac_objext conftest$ac_exeext
59566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59567   (eval $ac_link) 2>conftest.er1
59568   ac_status=$?
59569   grep -v '^ *+' conftest.er1 >conftest.err
59570   rm -f conftest.er1
59571   cat conftest.err >&5
59572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59573   (exit $ac_status); } &&
59574          { ac_try='test -z "$ac_c_werror_flag"
59575                          || test ! -s conftest.err'
59576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59577   (eval $ac_try) 2>&5
59578   ac_status=$?
59579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59580   (exit $ac_status); }; } &&
59581          { ac_try='test -s conftest$ac_exeext'
59582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59583   (eval $ac_try) 2>&5
59584   ac_status=$?
59585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59586   (exit $ac_status); }; }; then
59587   eval "$as_ac_var=yes"
59588 else
59589   echo "$as_me: failed program was:" >&5
59590 sed 's/^/| /' conftest.$ac_ext >&5
59591
59592 eval "$as_ac_var=no"
59593 fi
59594 rm -f conftest.err conftest.$ac_objext \
59595       conftest$ac_exeext conftest.$ac_ext
59596 fi
59597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59599 if test `eval echo '${'$as_ac_var'}'` = yes; then
59600   cat >>confdefs.h <<_ACEOF
59601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59602 _ACEOF
59603
59604 else
59605   ac_wfuncs=no
59606 fi
59607 done
59608
59609
59610     # Checks for names injected into std:: by the c_std headers.
59611
59612
59613
59614
59615
59616
59617
59618
59619
59620
59621
59622
59623
59624
59625
59626
59627
59628
59629
59630
59631
59632
59633
59634
59635
59636
59637
59638
59639
59640
59641
59642
59643
59644
59645
59646
59647
59648
59649
59650
59651
59652
59653
59654
59655
59656
59657 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
59658     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
59659     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
59660     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
59661     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
59662     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
59663 do
59664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59665 echo "$as_me:$LINENO: checking for $ac_func" >&5
59666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59667 if eval "test \"\${$as_ac_var+set}\" = set"; then
59668   echo $ECHO_N "(cached) $ECHO_C" >&6
59669 else
59670   if test x$gcc_no_link = xyes; then
59671   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59672 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59673    { (exit 1); exit 1; }; }
59674 fi
59675 cat >conftest.$ac_ext <<_ACEOF
59676 /* confdefs.h.  */
59677 _ACEOF
59678 cat confdefs.h >>conftest.$ac_ext
59679 cat >>conftest.$ac_ext <<_ACEOF
59680 /* end confdefs.h.  */
59681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59683 #define $ac_func innocuous_$ac_func
59684
59685 /* System header to define __stub macros and hopefully few prototypes,
59686     which can conflict with char $ac_func (); below.
59687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59688     <limits.h> exists even on freestanding compilers.  */
59689
59690 #ifdef __STDC__
59691 # include <limits.h>
59692 #else
59693 # include <assert.h>
59694 #endif
59695
59696 #undef $ac_func
59697
59698 /* Override any gcc2 internal prototype to avoid an error.  */
59699 #ifdef __cplusplus
59700 extern "C"
59701 {
59702 #endif
59703 /* We use char because int might match the return type of a gcc2
59704    builtin and then its argument prototype would still apply.  */
59705 char $ac_func ();
59706 /* The GNU C library defines this for functions which it implements
59707     to always fail with ENOSYS.  Some functions are actually named
59708     something starting with __ and the normal name is an alias.  */
59709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59710 choke me
59711 #else
59712 char (*f) () = $ac_func;
59713 #endif
59714 #ifdef __cplusplus
59715 }
59716 #endif
59717
59718 int
59719 main ()
59720 {
59721 return f != $ac_func;
59722   ;
59723   return 0;
59724 }
59725 _ACEOF
59726 rm -f conftest.$ac_objext conftest$ac_exeext
59727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59728   (eval $ac_link) 2>conftest.er1
59729   ac_status=$?
59730   grep -v '^ *+' conftest.er1 >conftest.err
59731   rm -f conftest.er1
59732   cat conftest.err >&5
59733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59734   (exit $ac_status); } &&
59735          { ac_try='test -z "$ac_c_werror_flag"
59736                          || test ! -s conftest.err'
59737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59738   (eval $ac_try) 2>&5
59739   ac_status=$?
59740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59741   (exit $ac_status); }; } &&
59742          { ac_try='test -s conftest$ac_exeext'
59743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59744   (eval $ac_try) 2>&5
59745   ac_status=$?
59746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59747   (exit $ac_status); }; }; then
59748   eval "$as_ac_var=yes"
59749 else
59750   echo "$as_me: failed program was:" >&5
59751 sed 's/^/| /' conftest.$ac_ext >&5
59752
59753 eval "$as_ac_var=no"
59754 fi
59755 rm -f conftest.err conftest.$ac_objext \
59756       conftest$ac_exeext conftest.$ac_ext
59757 fi
59758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59759 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59760 if test `eval echo '${'$as_ac_var'}'` = yes; then
59761   cat >>confdefs.h <<_ACEOF
59762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59763 _ACEOF
59764
59765 else
59766   ac_wfuncs=no
59767 fi
59768 done
59769
59770
59771     # Checks for wide character functions that are not required
59772     # for basic wchar_t support.  Don't disable support if they are missing.
59773     # Injection of these is wrapped with guard macros.
59774
59775
59776
59777
59778
59779 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
59780 do
59781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59782 echo "$as_me:$LINENO: checking for $ac_func" >&5
59783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
59784 if eval "test \"\${$as_ac_var+set}\" = set"; then
59785   echo $ECHO_N "(cached) $ECHO_C" >&6
59786 else
59787   if test x$gcc_no_link = xyes; then
59788   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
59789 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
59790    { (exit 1); exit 1; }; }
59791 fi
59792 cat >conftest.$ac_ext <<_ACEOF
59793 /* confdefs.h.  */
59794 _ACEOF
59795 cat confdefs.h >>conftest.$ac_ext
59796 cat >>conftest.$ac_ext <<_ACEOF
59797 /* end confdefs.h.  */
59798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59799    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59800 #define $ac_func innocuous_$ac_func
59801
59802 /* System header to define __stub macros and hopefully few prototypes,
59803     which can conflict with char $ac_func (); below.
59804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59805     <limits.h> exists even on freestanding compilers.  */
59806
59807 #ifdef __STDC__
59808 # include <limits.h>
59809 #else
59810 # include <assert.h>
59811 #endif
59812
59813 #undef $ac_func
59814
59815 /* Override any gcc2 internal prototype to avoid an error.  */
59816 #ifdef __cplusplus
59817 extern "C"
59818 {
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 $ac_func ();
59823 /* The GNU C library defines this for functions which it implements
59824     to always fail with ENOSYS.  Some functions are actually named
59825     something starting with __ and the normal name is an alias.  */
59826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
59827 choke me
59828 #else
59829 char (*f) () = $ac_func;
59830 #endif
59831 #ifdef __cplusplus
59832 }
59833 #endif
59834
59835 int
59836 main ()
59837 {
59838 return f != $ac_func;
59839   ;
59840   return 0;
59841 }
59842 _ACEOF
59843 rm -f conftest.$ac_objext conftest$ac_exeext
59844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
59845   (eval $ac_link) 2>conftest.er1
59846   ac_status=$?
59847   grep -v '^ *+' conftest.er1 >conftest.err
59848   rm -f conftest.er1
59849   cat conftest.err >&5
59850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59851   (exit $ac_status); } &&
59852          { ac_try='test -z "$ac_c_werror_flag"
59853                          || test ! -s conftest.err'
59854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59855   (eval $ac_try) 2>&5
59856   ac_status=$?
59857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59858   (exit $ac_status); }; } &&
59859          { ac_try='test -s conftest$ac_exeext'
59860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59861   (eval $ac_try) 2>&5
59862   ac_status=$?
59863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59864   (exit $ac_status); }; }; then
59865   eval "$as_ac_var=yes"
59866 else
59867   echo "$as_me: failed program was:" >&5
59868 sed 's/^/| /' conftest.$ac_ext >&5
59869
59870 eval "$as_ac_var=no"
59871 fi
59872 rm -f conftest.err conftest.$ac_objext \
59873       conftest$ac_exeext conftest.$ac_ext
59874 fi
59875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
59876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
59877 if test `eval echo '${'$as_ac_var'}'` = yes; then
59878   cat >>confdefs.h <<_ACEOF
59879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59880 _ACEOF
59881
59882 fi
59883 done
59884
59885
59886     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
59887 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
59888     if test x"$has_weof" = xyes &&
59889        test x"$has_wchar_minmax" = xyes &&
59890        test x"$ac_wfuncs" = xyes;
59891     then
59892       ac_isoC99_wchar_t=yes
59893     else
59894       ac_isoC99_wchar_t=no
59895     fi
59896     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
59897 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
59898
59899     # Use iconv for wchar_t to char conversions. As such, check for
59900     # X/Open Portability Guide, version 2 features (XPG2).
59901     if test "${ac_cv_header_iconv_h+set}" = set; then
59902   echo "$as_me:$LINENO: checking for iconv.h" >&5
59903 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
59904 if test "${ac_cv_header_iconv_h+set}" = set; then
59905   echo $ECHO_N "(cached) $ECHO_C" >&6
59906 fi
59907 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
59908 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
59909 else
59910   # Is the header compilable?
59911 echo "$as_me:$LINENO: checking iconv.h usability" >&5
59912 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
59913 cat >conftest.$ac_ext <<_ACEOF
59914 /* confdefs.h.  */
59915 _ACEOF
59916 cat confdefs.h >>conftest.$ac_ext
59917 cat >>conftest.$ac_ext <<_ACEOF
59918 /* end confdefs.h.  */
59919 $ac_includes_default
59920 #include <iconv.h>
59921 _ACEOF
59922 rm -f conftest.$ac_objext
59923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
59924   (eval $ac_compile) 2>conftest.er1
59925   ac_status=$?
59926   grep -v '^ *+' conftest.er1 >conftest.err
59927   rm -f conftest.er1
59928   cat conftest.err >&5
59929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59930   (exit $ac_status); } &&
59931          { ac_try='test -z "$ac_c_werror_flag"
59932                          || test ! -s conftest.err'
59933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59934   (eval $ac_try) 2>&5
59935   ac_status=$?
59936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59937   (exit $ac_status); }; } &&
59938          { ac_try='test -s conftest.$ac_objext'
59939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
59940   (eval $ac_try) 2>&5
59941   ac_status=$?
59942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59943   (exit $ac_status); }; }; then
59944   ac_header_compiler=yes
59945 else
59946   echo "$as_me: failed program was:" >&5
59947 sed 's/^/| /' conftest.$ac_ext >&5
59948
59949 ac_header_compiler=no
59950 fi
59951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
59952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
59953 echo "${ECHO_T}$ac_header_compiler" >&6
59954
59955 # Is the header present?
59956 echo "$as_me:$LINENO: checking iconv.h presence" >&5
59957 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
59958 cat >conftest.$ac_ext <<_ACEOF
59959 /* confdefs.h.  */
59960 _ACEOF
59961 cat confdefs.h >>conftest.$ac_ext
59962 cat >>conftest.$ac_ext <<_ACEOF
59963 /* end confdefs.h.  */
59964 #include <iconv.h>
59965 _ACEOF
59966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
59967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
59968   ac_status=$?
59969   grep -v '^ *+' conftest.er1 >conftest.err
59970   rm -f conftest.er1
59971   cat conftest.err >&5
59972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59973   (exit $ac_status); } >/dev/null; then
59974   if test -s conftest.err; then
59975     ac_cpp_err=$ac_c_preproc_warn_flag
59976     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
59977   else
59978     ac_cpp_err=
59979   fi
59980 else
59981   ac_cpp_err=yes
59982 fi
59983 if test -z "$ac_cpp_err"; then
59984   ac_header_preproc=yes
59985 else
59986   echo "$as_me: failed program was:" >&5
59987 sed 's/^/| /' conftest.$ac_ext >&5
59988
59989   ac_header_preproc=no
59990 fi
59991 rm -f conftest.err conftest.$ac_ext
59992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
59993 echo "${ECHO_T}$ac_header_preproc" >&6
59994
59995 # So?  What about this header?
59996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
59997   yes:no: )
59998     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
59999 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
60000     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
60001 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
60002     ac_header_preproc=yes
60003     ;;
60004   no:yes:* )
60005     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
60006 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
60007     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
60008 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
60009     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
60010 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
60011     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
60012 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
60013     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
60014 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
60015     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
60016 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
60017     (
60018       cat <<\_ASBOX
60019 ## ----------------------------------------- ##
60020 ## Report this to the package-unused lists.  ##
60021 ## ----------------------------------------- ##
60022 _ASBOX
60023     ) |
60024       sed "s/^/$as_me: WARNING:     /" >&2
60025     ;;
60026 esac
60027 echo "$as_me:$LINENO: checking for iconv.h" >&5
60028 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
60029 if test "${ac_cv_header_iconv_h+set}" = set; then
60030   echo $ECHO_N "(cached) $ECHO_C" >&6
60031 else
60032   ac_cv_header_iconv_h=$ac_header_preproc
60033 fi
60034 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
60035 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
60036
60037 fi
60038 if test $ac_cv_header_iconv_h = yes; then
60039   ac_has_iconv_h=yes
60040 else
60041   ac_has_iconv_h=no
60042 fi
60043
60044
60045     if test "${ac_cv_header_langinfo_h+set}" = set; then
60046   echo "$as_me:$LINENO: checking for langinfo.h" >&5
60047 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
60048 if test "${ac_cv_header_langinfo_h+set}" = set; then
60049   echo $ECHO_N "(cached) $ECHO_C" >&6
60050 fi
60051 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
60052 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
60053 else
60054   # Is the header compilable?
60055 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
60056 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
60057 cat >conftest.$ac_ext <<_ACEOF
60058 /* confdefs.h.  */
60059 _ACEOF
60060 cat confdefs.h >>conftest.$ac_ext
60061 cat >>conftest.$ac_ext <<_ACEOF
60062 /* end confdefs.h.  */
60063 $ac_includes_default
60064 #include <langinfo.h>
60065 _ACEOF
60066 rm -f conftest.$ac_objext
60067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60068   (eval $ac_compile) 2>conftest.er1
60069   ac_status=$?
60070   grep -v '^ *+' conftest.er1 >conftest.err
60071   rm -f conftest.er1
60072   cat conftest.err >&5
60073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60074   (exit $ac_status); } &&
60075          { ac_try='test -z "$ac_c_werror_flag"
60076                          || test ! -s conftest.err'
60077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60078   (eval $ac_try) 2>&5
60079   ac_status=$?
60080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60081   (exit $ac_status); }; } &&
60082          { ac_try='test -s conftest.$ac_objext'
60083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60084   (eval $ac_try) 2>&5
60085   ac_status=$?
60086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60087   (exit $ac_status); }; }; then
60088   ac_header_compiler=yes
60089 else
60090   echo "$as_me: failed program was:" >&5
60091 sed 's/^/| /' conftest.$ac_ext >&5
60092
60093 ac_header_compiler=no
60094 fi
60095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60097 echo "${ECHO_T}$ac_header_compiler" >&6
60098
60099 # Is the header present?
60100 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
60101 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
60102 cat >conftest.$ac_ext <<_ACEOF
60103 /* confdefs.h.  */
60104 _ACEOF
60105 cat confdefs.h >>conftest.$ac_ext
60106 cat >>conftest.$ac_ext <<_ACEOF
60107 /* end confdefs.h.  */
60108 #include <langinfo.h>
60109 _ACEOF
60110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60112   ac_status=$?
60113   grep -v '^ *+' conftest.er1 >conftest.err
60114   rm -f conftest.er1
60115   cat conftest.err >&5
60116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60117   (exit $ac_status); } >/dev/null; then
60118   if test -s conftest.err; then
60119     ac_cpp_err=$ac_c_preproc_warn_flag
60120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60121   else
60122     ac_cpp_err=
60123   fi
60124 else
60125   ac_cpp_err=yes
60126 fi
60127 if test -z "$ac_cpp_err"; then
60128   ac_header_preproc=yes
60129 else
60130   echo "$as_me: failed program was:" >&5
60131 sed 's/^/| /' conftest.$ac_ext >&5
60132
60133   ac_header_preproc=no
60134 fi
60135 rm -f conftest.err conftest.$ac_ext
60136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60137 echo "${ECHO_T}$ac_header_preproc" >&6
60138
60139 # So?  What about this header?
60140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60141   yes:no: )
60142     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
60143 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
60144     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
60145 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
60146     ac_header_preproc=yes
60147     ;;
60148   no:yes:* )
60149     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
60150 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
60151     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
60152 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
60153     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
60154 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
60155     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
60156 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
60157     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
60158 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
60159     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
60160 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
60161     (
60162       cat <<\_ASBOX
60163 ## ----------------------------------------- ##
60164 ## Report this to the package-unused lists.  ##
60165 ## ----------------------------------------- ##
60166 _ASBOX
60167     ) |
60168       sed "s/^/$as_me: WARNING:     /" >&2
60169     ;;
60170 esac
60171 echo "$as_me:$LINENO: checking for langinfo.h" >&5
60172 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
60173 if test "${ac_cv_header_langinfo_h+set}" = set; then
60174   echo $ECHO_N "(cached) $ECHO_C" >&6
60175 else
60176   ac_cv_header_langinfo_h=$ac_header_preproc
60177 fi
60178 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
60179 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
60180
60181 fi
60182 if test $ac_cv_header_langinfo_h = yes; then
60183   ac_has_langinfo_h=yes
60184 else
60185   ac_has_langinfo_h=no
60186 fi
60187
60188
60189
60190     # Check for existence of libiconv.a providing XPG2 wchar_t support.
60191     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
60192 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
60193 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
60194   echo $ECHO_N "(cached) $ECHO_C" >&6
60195 else
60196   ac_check_lib_save_LIBS=$LIBS
60197 LIBS="-liconv  $LIBS"
60198 if test x$gcc_no_link = xyes; then
60199   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60200 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60201    { (exit 1); exit 1; }; }
60202 fi
60203 cat >conftest.$ac_ext <<_ACEOF
60204 /* confdefs.h.  */
60205 _ACEOF
60206 cat confdefs.h >>conftest.$ac_ext
60207 cat >>conftest.$ac_ext <<_ACEOF
60208 /* end confdefs.h.  */
60209
60210 /* Override any gcc2 internal prototype to avoid an error.  */
60211 #ifdef __cplusplus
60212 extern "C"
60213 #endif
60214 /* We use char because int might match the return type of a gcc2
60215    builtin and then its argument prototype would still apply.  */
60216 char iconv ();
60217 int
60218 main ()
60219 {
60220 iconv ();
60221   ;
60222   return 0;
60223 }
60224 _ACEOF
60225 rm -f conftest.$ac_objext conftest$ac_exeext
60226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60227   (eval $ac_link) 2>conftest.er1
60228   ac_status=$?
60229   grep -v '^ *+' conftest.er1 >conftest.err
60230   rm -f conftest.er1
60231   cat conftest.err >&5
60232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60233   (exit $ac_status); } &&
60234          { ac_try='test -z "$ac_c_werror_flag"
60235                          || test ! -s conftest.err'
60236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60237   (eval $ac_try) 2>&5
60238   ac_status=$?
60239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60240   (exit $ac_status); }; } &&
60241          { ac_try='test -s conftest$ac_exeext'
60242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60243   (eval $ac_try) 2>&5
60244   ac_status=$?
60245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60246   (exit $ac_status); }; }; then
60247   ac_cv_lib_iconv_iconv=yes
60248 else
60249   echo "$as_me: failed program was:" >&5
60250 sed 's/^/| /' conftest.$ac_ext >&5
60251
60252 ac_cv_lib_iconv_iconv=no
60253 fi
60254 rm -f conftest.err conftest.$ac_objext \
60255       conftest$ac_exeext conftest.$ac_ext
60256 LIBS=$ac_check_lib_save_LIBS
60257 fi
60258 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
60259 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
60260 if test $ac_cv_lib_iconv_iconv = yes; then
60261   LIBICONV="-liconv"
60262 fi
60263
60264     ac_save_LIBS="$LIBS"
60265     LIBS="$LIBS $LIBICONV"
60266
60267
60268
60269
60270
60271
60272 for ac_func in iconv_open iconv_close iconv nl_langinfo
60273 do
60274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60275 echo "$as_me:$LINENO: checking for $ac_func" >&5
60276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
60277 if eval "test \"\${$as_ac_var+set}\" = set"; then
60278   echo $ECHO_N "(cached) $ECHO_C" >&6
60279 else
60280   if test x$gcc_no_link = xyes; then
60281   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60282 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60283    { (exit 1); exit 1; }; }
60284 fi
60285 cat >conftest.$ac_ext <<_ACEOF
60286 /* confdefs.h.  */
60287 _ACEOF
60288 cat confdefs.h >>conftest.$ac_ext
60289 cat >>conftest.$ac_ext <<_ACEOF
60290 /* end confdefs.h.  */
60291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60293 #define $ac_func innocuous_$ac_func
60294
60295 /* System header to define __stub macros and hopefully few prototypes,
60296     which can conflict with char $ac_func (); below.
60297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60298     <limits.h> exists even on freestanding compilers.  */
60299
60300 #ifdef __STDC__
60301 # include <limits.h>
60302 #else
60303 # include <assert.h>
60304 #endif
60305
60306 #undef $ac_func
60307
60308 /* Override any gcc2 internal prototype to avoid an error.  */
60309 #ifdef __cplusplus
60310 extern "C"
60311 {
60312 #endif
60313 /* We use char because int might match the return type of a gcc2
60314    builtin and then its argument prototype would still apply.  */
60315 char $ac_func ();
60316 /* The GNU C library defines this for functions which it implements
60317     to always fail with ENOSYS.  Some functions are actually named
60318     something starting with __ and the normal name is an alias.  */
60319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
60320 choke me
60321 #else
60322 char (*f) () = $ac_func;
60323 #endif
60324 #ifdef __cplusplus
60325 }
60326 #endif
60327
60328 int
60329 main ()
60330 {
60331 return f != $ac_func;
60332   ;
60333   return 0;
60334 }
60335 _ACEOF
60336 rm -f conftest.$ac_objext conftest$ac_exeext
60337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60338   (eval $ac_link) 2>conftest.er1
60339   ac_status=$?
60340   grep -v '^ *+' conftest.er1 >conftest.err
60341   rm -f conftest.er1
60342   cat conftest.err >&5
60343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60344   (exit $ac_status); } &&
60345          { ac_try='test -z "$ac_c_werror_flag"
60346                          || test ! -s conftest.err'
60347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60348   (eval $ac_try) 2>&5
60349   ac_status=$?
60350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60351   (exit $ac_status); }; } &&
60352          { ac_try='test -s conftest$ac_exeext'
60353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60354   (eval $ac_try) 2>&5
60355   ac_status=$?
60356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60357   (exit $ac_status); }; }; then
60358   eval "$as_ac_var=yes"
60359 else
60360   echo "$as_me: failed program was:" >&5
60361 sed 's/^/| /' conftest.$ac_ext >&5
60362
60363 eval "$as_ac_var=no"
60364 fi
60365 rm -f conftest.err conftest.$ac_objext \
60366       conftest$ac_exeext conftest.$ac_ext
60367 fi
60368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
60369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
60370 if test `eval echo '${'$as_ac_var'}'` = yes; then
60371   cat >>confdefs.h <<_ACEOF
60372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60373 _ACEOF
60374  ac_XPG2funcs=yes
60375 else
60376   ac_XPG2funcs=no
60377 fi
60378 done
60379
60380
60381     LIBS="$ac_save_LIBS"
60382
60383     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
60384 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
60385     if test x"$ac_has_iconv_h" = xyes &&
60386        test x"$ac_has_langinfo_h" = xyes &&
60387        test x"$ac_XPG2funcs" = xyes;
60388     then
60389       ac_XPG2_wchar_t=yes
60390     else
60391       ac_XPG2_wchar_t=no
60392     fi
60393     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
60394 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
60395
60396     # At the moment, only enable wchar_t specializations if all the
60397     # above support is present.
60398     if test x"$ac_isoC99_wchar_t" = xyes &&
60399        test x"$ac_XPG2_wchar_t" = xyes;
60400     then
60401       cat >>confdefs.h <<\_ACEOF
60402 #define _GLIBCXX_USE_WCHAR_T 1
60403 _ACEOF
60404
60405       enable_wchar_t=yes
60406     fi
60407   fi
60408   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
60409 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
60410   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
60411 echo "${ECHO_T}$enable_wchar_t" >&6
60412
60413
60414     # For LFS.
60415     cat >>confdefs.h <<\_ACEOF
60416 #define HAVE_INT64_T 1
60417 _ACEOF
60418
60419     case "$target" in
60420       *-uclinux*)
60421         # Don't enable LFS with uClibc
60422         ;;
60423       *)
60424         cat >>confdefs.h <<\_ACEOF
60425 #define _GLIBCXX_USE_LFS 1
60426 _ACEOF
60427
60428     esac
60429
60430     # For showmanyc_helper().
60431
60432
60433 for ac_header in sys/ioctl.h sys/filio.h
60434 do
60435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60437   echo "$as_me:$LINENO: checking for $ac_header" >&5
60438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60440   echo $ECHO_N "(cached) $ECHO_C" >&6
60441 fi
60442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60444 else
60445   # Is the header compilable?
60446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60448 cat >conftest.$ac_ext <<_ACEOF
60449 /* confdefs.h.  */
60450 _ACEOF
60451 cat confdefs.h >>conftest.$ac_ext
60452 cat >>conftest.$ac_ext <<_ACEOF
60453 /* end confdefs.h.  */
60454 $ac_includes_default
60455 #include <$ac_header>
60456 _ACEOF
60457 rm -f conftest.$ac_objext
60458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60459   (eval $ac_compile) 2>conftest.er1
60460   ac_status=$?
60461   grep -v '^ *+' conftest.er1 >conftest.err
60462   rm -f conftest.er1
60463   cat conftest.err >&5
60464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60465   (exit $ac_status); } &&
60466          { ac_try='test -z "$ac_c_werror_flag"
60467                          || test ! -s conftest.err'
60468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60469   (eval $ac_try) 2>&5
60470   ac_status=$?
60471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60472   (exit $ac_status); }; } &&
60473          { ac_try='test -s conftest.$ac_objext'
60474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60475   (eval $ac_try) 2>&5
60476   ac_status=$?
60477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60478   (exit $ac_status); }; }; then
60479   ac_header_compiler=yes
60480 else
60481   echo "$as_me: failed program was:" >&5
60482 sed 's/^/| /' conftest.$ac_ext >&5
60483
60484 ac_header_compiler=no
60485 fi
60486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60488 echo "${ECHO_T}$ac_header_compiler" >&6
60489
60490 # Is the header present?
60491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60493 cat >conftest.$ac_ext <<_ACEOF
60494 /* confdefs.h.  */
60495 _ACEOF
60496 cat confdefs.h >>conftest.$ac_ext
60497 cat >>conftest.$ac_ext <<_ACEOF
60498 /* end confdefs.h.  */
60499 #include <$ac_header>
60500 _ACEOF
60501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60503   ac_status=$?
60504   grep -v '^ *+' conftest.er1 >conftest.err
60505   rm -f conftest.er1
60506   cat conftest.err >&5
60507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60508   (exit $ac_status); } >/dev/null; then
60509   if test -s conftest.err; then
60510     ac_cpp_err=$ac_c_preproc_warn_flag
60511     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60512   else
60513     ac_cpp_err=
60514   fi
60515 else
60516   ac_cpp_err=yes
60517 fi
60518 if test -z "$ac_cpp_err"; then
60519   ac_header_preproc=yes
60520 else
60521   echo "$as_me: failed program was:" >&5
60522 sed 's/^/| /' conftest.$ac_ext >&5
60523
60524   ac_header_preproc=no
60525 fi
60526 rm -f conftest.err conftest.$ac_ext
60527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60528 echo "${ECHO_T}$ac_header_preproc" >&6
60529
60530 # So?  What about this header?
60531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60532   yes:no: )
60533     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60537     ac_header_preproc=yes
60538     ;;
60539   no:yes:* )
60540     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60542     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
60543 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
60544     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60546     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
60547 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
60548     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60550     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60552     (
60553       cat <<\_ASBOX
60554 ## ----------------------------------------- ##
60555 ## Report this to the package-unused lists.  ##
60556 ## ----------------------------------------- ##
60557 _ASBOX
60558     ) |
60559       sed "s/^/$as_me: WARNING:     /" >&2
60560     ;;
60561 esac
60562 echo "$as_me:$LINENO: checking for $ac_header" >&5
60563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60565   echo $ECHO_N "(cached) $ECHO_C" >&6
60566 else
60567   eval "$as_ac_Header=\$ac_header_preproc"
60568 fi
60569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60571
60572 fi
60573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60574   cat >>confdefs.h <<_ACEOF
60575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60576 _ACEOF
60577
60578 fi
60579
60580 done
60581
60582
60583   if test "${glibcxx_cv_POLL+set}" = set; then
60584   echo $ECHO_N "(cached) $ECHO_C" >&6
60585 else
60586
60587     if test x$gcc_no_link = xyes; then
60588   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60590    { (exit 1); exit 1; }; }
60591 fi
60592 cat >conftest.$ac_ext <<_ACEOF
60593 /* confdefs.h.  */
60594 _ACEOF
60595 cat confdefs.h >>conftest.$ac_ext
60596 cat >>conftest.$ac_ext <<_ACEOF
60597 /* end confdefs.h.  */
60598 #include <poll.h>
60599 int
60600 main ()
60601 {
60602 struct pollfd pfd[1];
60603        pfd[0].events = POLLIN;
60604        poll(pfd, 1, 0);
60605   ;
60606   return 0;
60607 }
60608 _ACEOF
60609 rm -f conftest.$ac_objext conftest$ac_exeext
60610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60611   (eval $ac_link) 2>conftest.er1
60612   ac_status=$?
60613   grep -v '^ *+' conftest.er1 >conftest.err
60614   rm -f conftest.er1
60615   cat conftest.err >&5
60616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60617   (exit $ac_status); } &&
60618          { ac_try='test -z "$ac_c_werror_flag"
60619                          || test ! -s conftest.err'
60620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60621   (eval $ac_try) 2>&5
60622   ac_status=$?
60623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60624   (exit $ac_status); }; } &&
60625          { ac_try='test -s conftest$ac_exeext'
60626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60627   (eval $ac_try) 2>&5
60628   ac_status=$?
60629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60630   (exit $ac_status); }; }; then
60631   glibcxx_cv_POLL=yes
60632 else
60633   echo "$as_me: failed program was:" >&5
60634 sed 's/^/| /' conftest.$ac_ext >&5
60635
60636 glibcxx_cv_POLL=no
60637 fi
60638 rm -f conftest.err conftest.$ac_objext \
60639       conftest$ac_exeext conftest.$ac_ext
60640
60641 fi
60642
60643   if test $glibcxx_cv_POLL = yes; then
60644     cat >>confdefs.h <<\_ACEOF
60645 #define HAVE_POLL 1
60646 _ACEOF
60647
60648   fi
60649
60650
60651   if test "${glibcxx_cv_S_ISREG+set}" = set; then
60652   echo $ECHO_N "(cached) $ECHO_C" >&6
60653 else
60654
60655     if test x$gcc_no_link = xyes; then
60656   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60658    { (exit 1); exit 1; }; }
60659 fi
60660 cat >conftest.$ac_ext <<_ACEOF
60661 /* confdefs.h.  */
60662 _ACEOF
60663 cat confdefs.h >>conftest.$ac_ext
60664 cat >>conftest.$ac_ext <<_ACEOF
60665 /* end confdefs.h.  */
60666 #include <sys/stat.h>
60667 int
60668 main ()
60669 {
60670 struct stat buffer;
60671        fstat(0, &buffer);
60672        S_ISREG(buffer.st_mode);
60673   ;
60674   return 0;
60675 }
60676 _ACEOF
60677 rm -f conftest.$ac_objext conftest$ac_exeext
60678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60679   (eval $ac_link) 2>conftest.er1
60680   ac_status=$?
60681   grep -v '^ *+' conftest.er1 >conftest.err
60682   rm -f conftest.er1
60683   cat conftest.err >&5
60684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60685   (exit $ac_status); } &&
60686          { ac_try='test -z "$ac_c_werror_flag"
60687                          || test ! -s conftest.err'
60688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60689   (eval $ac_try) 2>&5
60690   ac_status=$?
60691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60692   (exit $ac_status); }; } &&
60693          { ac_try='test -s conftest$ac_exeext'
60694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60695   (eval $ac_try) 2>&5
60696   ac_status=$?
60697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60698   (exit $ac_status); }; }; then
60699   glibcxx_cv_S_ISREG=yes
60700 else
60701   echo "$as_me: failed program was:" >&5
60702 sed 's/^/| /' conftest.$ac_ext >&5
60703
60704 glibcxx_cv_S_ISREG=no
60705 fi
60706 rm -f conftest.err conftest.$ac_objext \
60707       conftest$ac_exeext conftest.$ac_ext
60708
60709 fi
60710
60711   if test "${glibcxx_cv_S_IFREG+set}" = set; then
60712   echo $ECHO_N "(cached) $ECHO_C" >&6
60713 else
60714
60715     if test x$gcc_no_link = xyes; then
60716   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60717 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60718    { (exit 1); exit 1; }; }
60719 fi
60720 cat >conftest.$ac_ext <<_ACEOF
60721 /* confdefs.h.  */
60722 _ACEOF
60723 cat confdefs.h >>conftest.$ac_ext
60724 cat >>conftest.$ac_ext <<_ACEOF
60725 /* end confdefs.h.  */
60726 #include <sys/stat.h>
60727 int
60728 main ()
60729 {
60730 struct stat buffer;
60731        fstat(0, &buffer);
60732        S_IFREG & buffer.st_mode;
60733   ;
60734   return 0;
60735 }
60736 _ACEOF
60737 rm -f conftest.$ac_objext conftest$ac_exeext
60738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60739   (eval $ac_link) 2>conftest.er1
60740   ac_status=$?
60741   grep -v '^ *+' conftest.er1 >conftest.err
60742   rm -f conftest.er1
60743   cat conftest.err >&5
60744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60745   (exit $ac_status); } &&
60746          { ac_try='test -z "$ac_c_werror_flag"
60747                          || test ! -s conftest.err'
60748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60749   (eval $ac_try) 2>&5
60750   ac_status=$?
60751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60752   (exit $ac_status); }; } &&
60753          { ac_try='test -s conftest$ac_exeext'
60754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60755   (eval $ac_try) 2>&5
60756   ac_status=$?
60757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60758   (exit $ac_status); }; }; then
60759   glibcxx_cv_S_IFREG=yes
60760 else
60761   echo "$as_me: failed program was:" >&5
60762 sed 's/^/| /' conftest.$ac_ext >&5
60763
60764 glibcxx_cv_S_IFREG=no
60765 fi
60766 rm -f conftest.err conftest.$ac_objext \
60767       conftest$ac_exeext conftest.$ac_ext
60768
60769 fi
60770
60771   if test $glibcxx_cv_S_ISREG = yes; then
60772     cat >>confdefs.h <<\_ACEOF
60773 #define HAVE_S_ISREG 1
60774 _ACEOF
60775
60776   elif test $glibcxx_cv_S_IFREG = yes; then
60777     cat >>confdefs.h <<\_ACEOF
60778 #define HAVE_S_IFREG 1
60779 _ACEOF
60780
60781   fi
60782
60783
60784     # For xsputn_2().
60785
60786 for ac_header in sys/uio.h
60787 do
60788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
60789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60790   echo "$as_me:$LINENO: checking for $ac_header" >&5
60791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60793   echo $ECHO_N "(cached) $ECHO_C" >&6
60794 fi
60795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60797 else
60798   # Is the header compilable?
60799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
60800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
60801 cat >conftest.$ac_ext <<_ACEOF
60802 /* confdefs.h.  */
60803 _ACEOF
60804 cat confdefs.h >>conftest.$ac_ext
60805 cat >>conftest.$ac_ext <<_ACEOF
60806 /* end confdefs.h.  */
60807 $ac_includes_default
60808 #include <$ac_header>
60809 _ACEOF
60810 rm -f conftest.$ac_objext
60811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
60812   (eval $ac_compile) 2>conftest.er1
60813   ac_status=$?
60814   grep -v '^ *+' conftest.er1 >conftest.err
60815   rm -f conftest.er1
60816   cat conftest.err >&5
60817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60818   (exit $ac_status); } &&
60819          { ac_try='test -z "$ac_c_werror_flag"
60820                          || test ! -s conftest.err'
60821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60822   (eval $ac_try) 2>&5
60823   ac_status=$?
60824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60825   (exit $ac_status); }; } &&
60826          { ac_try='test -s conftest.$ac_objext'
60827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60828   (eval $ac_try) 2>&5
60829   ac_status=$?
60830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60831   (exit $ac_status); }; }; then
60832   ac_header_compiler=yes
60833 else
60834   echo "$as_me: failed program was:" >&5
60835 sed 's/^/| /' conftest.$ac_ext >&5
60836
60837 ac_header_compiler=no
60838 fi
60839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
60840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60841 echo "${ECHO_T}$ac_header_compiler" >&6
60842
60843 # Is the header present?
60844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
60845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
60846 cat >conftest.$ac_ext <<_ACEOF
60847 /* confdefs.h.  */
60848 _ACEOF
60849 cat confdefs.h >>conftest.$ac_ext
60850 cat >>conftest.$ac_ext <<_ACEOF
60851 /* end confdefs.h.  */
60852 #include <$ac_header>
60853 _ACEOF
60854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
60855   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
60856   ac_status=$?
60857   grep -v '^ *+' conftest.er1 >conftest.err
60858   rm -f conftest.er1
60859   cat conftest.err >&5
60860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60861   (exit $ac_status); } >/dev/null; then
60862   if test -s conftest.err; then
60863     ac_cpp_err=$ac_c_preproc_warn_flag
60864     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
60865   else
60866     ac_cpp_err=
60867   fi
60868 else
60869   ac_cpp_err=yes
60870 fi
60871 if test -z "$ac_cpp_err"; then
60872   ac_header_preproc=yes
60873 else
60874   echo "$as_me: failed program was:" >&5
60875 sed 's/^/| /' conftest.$ac_ext >&5
60876
60877   ac_header_preproc=no
60878 fi
60879 rm -f conftest.err conftest.$ac_ext
60880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60881 echo "${ECHO_T}$ac_header_preproc" >&6
60882
60883 # So?  What about this header?
60884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60885   yes:no: )
60886     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60890     ac_header_preproc=yes
60891     ;;
60892   no:yes:* )
60893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60895     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
60896 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
60897     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60899     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
60900 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
60901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60903     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60905     (
60906       cat <<\_ASBOX
60907 ## ----------------------------------------- ##
60908 ## Report this to the package-unused lists.  ##
60909 ## ----------------------------------------- ##
60910 _ASBOX
60911     ) |
60912       sed "s/^/$as_me: WARNING:     /" >&2
60913     ;;
60914 esac
60915 echo "$as_me:$LINENO: checking for $ac_header" >&5
60916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
60917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
60918   echo $ECHO_N "(cached) $ECHO_C" >&6
60919 else
60920   eval "$as_ac_Header=\$ac_header_preproc"
60921 fi
60922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
60923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
60924
60925 fi
60926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
60927   cat >>confdefs.h <<_ACEOF
60928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
60929 _ACEOF
60930
60931 fi
60932
60933 done
60934
60935
60936   if test "${glibcxx_cv_WRITEV+set}" = set; then
60937   echo $ECHO_N "(cached) $ECHO_C" >&6
60938 else
60939
60940     if test x$gcc_no_link = xyes; then
60941   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
60942 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
60943    { (exit 1); exit 1; }; }
60944 fi
60945 cat >conftest.$ac_ext <<_ACEOF
60946 /* confdefs.h.  */
60947 _ACEOF
60948 cat confdefs.h >>conftest.$ac_ext
60949 cat >>conftest.$ac_ext <<_ACEOF
60950 /* end confdefs.h.  */
60951 #include <sys/uio.h>
60952 int
60953 main ()
60954 {
60955 struct iovec iov[2];
60956        writev(0, iov, 0);
60957   ;
60958   return 0;
60959 }
60960 _ACEOF
60961 rm -f conftest.$ac_objext conftest$ac_exeext
60962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
60963   (eval $ac_link) 2>conftest.er1
60964   ac_status=$?
60965   grep -v '^ *+' conftest.er1 >conftest.err
60966   rm -f conftest.er1
60967   cat conftest.err >&5
60968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60969   (exit $ac_status); } &&
60970          { ac_try='test -z "$ac_c_werror_flag"
60971                          || test ! -s conftest.err'
60972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60973   (eval $ac_try) 2>&5
60974   ac_status=$?
60975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60976   (exit $ac_status); }; } &&
60977          { ac_try='test -s conftest$ac_exeext'
60978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
60979   (eval $ac_try) 2>&5
60980   ac_status=$?
60981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60982   (exit $ac_status); }; }; then
60983   glibcxx_cv_WRITEV=yes
60984 else
60985   echo "$as_me: failed program was:" >&5
60986 sed 's/^/| /' conftest.$ac_ext >&5
60987
60988 glibcxx_cv_WRITEV=no
60989 fi
60990 rm -f conftest.err conftest.$ac_objext \
60991       conftest$ac_exeext conftest.$ac_ext
60992
60993 fi
60994
60995   if test $glibcxx_cv_WRITEV = yes; then
60996     cat >>confdefs.h <<\_ACEOF
60997 #define HAVE_WRITEV 1
60998 _ACEOF
60999
61000   fi
61001
61002
61003     cat >>confdefs.h <<\_ACEOF
61004 #define HAVE_ACOSF 1
61005 _ACEOF
61006
61007     cat >>confdefs.h <<\_ACEOF
61008 #define HAVE_ASINF 1
61009 _ACEOF
61010
61011     cat >>confdefs.h <<\_ACEOF
61012 #define HAVE_ATANF 1
61013 _ACEOF
61014
61015     cat >>confdefs.h <<\_ACEOF
61016 #define HAVE_ATAN2F 1
61017 _ACEOF
61018
61019     cat >>confdefs.h <<\_ACEOF
61020 #define HAVE_CEILF 1
61021 _ACEOF
61022
61023     cat >>confdefs.h <<\_ACEOF
61024 #define HAVE_COPYSIGN 1
61025 _ACEOF
61026
61027     cat >>confdefs.h <<\_ACEOF
61028 #define HAVE_COPYSIGNF 1
61029 _ACEOF
61030
61031     cat >>confdefs.h <<\_ACEOF
61032 #define HAVE_COSF 1
61033 _ACEOF
61034
61035     cat >>confdefs.h <<\_ACEOF
61036 #define HAVE_COSHF 1
61037 _ACEOF
61038
61039     cat >>confdefs.h <<\_ACEOF
61040 #define HAVE_EXPF 1
61041 _ACEOF
61042
61043     cat >>confdefs.h <<\_ACEOF
61044 #define HAVE_FABSF 1
61045 _ACEOF
61046
61047     cat >>confdefs.h <<\_ACEOF
61048 #define HAVE_FINITE 1
61049 _ACEOF
61050
61051     cat >>confdefs.h <<\_ACEOF
61052 #define HAVE_FINITEF 1
61053 _ACEOF
61054
61055     cat >>confdefs.h <<\_ACEOF
61056 #define HAVE_FLOORF 1
61057 _ACEOF
61058
61059     cat >>confdefs.h <<\_ACEOF
61060 #define HAVE_FMODF 1
61061 _ACEOF
61062
61063     cat >>confdefs.h <<\_ACEOF
61064 #define HAVE_FREXPF 1
61065 _ACEOF
61066
61067     cat >>confdefs.h <<\_ACEOF
61068 #define HAVE_HYPOT 1
61069 _ACEOF
61070
61071     cat >>confdefs.h <<\_ACEOF
61072 #define HAVE_HYPOTF 1
61073 _ACEOF
61074
61075     cat >>confdefs.h <<\_ACEOF
61076 #define HAVE_ISINF 1
61077 _ACEOF
61078
61079     cat >>confdefs.h <<\_ACEOF
61080 #define HAVE_ISINFF 1
61081 _ACEOF
61082
61083     cat >>confdefs.h <<\_ACEOF
61084 #define HAVE_ISNAN 1
61085 _ACEOF
61086
61087     cat >>confdefs.h <<\_ACEOF
61088 #define HAVE_ISNANF 1
61089 _ACEOF
61090
61091     cat >>confdefs.h <<\_ACEOF
61092 #define HAVE_LOGF 1
61093 _ACEOF
61094
61095     cat >>confdefs.h <<\_ACEOF
61096 #define HAVE_LOG10F 1
61097 _ACEOF
61098
61099     cat >>confdefs.h <<\_ACEOF
61100 #define HAVE_MODFF 1
61101 _ACEOF
61102
61103     cat >>confdefs.h <<\_ACEOF
61104 #define HAVE_SIGNBIT 1
61105 _ACEOF
61106
61107     cat >>confdefs.h <<\_ACEOF
61108 #define HAVE_SIGNBITF 1
61109 _ACEOF
61110
61111     cat >>confdefs.h <<\_ACEOF
61112 #define HAVE_SINF 1
61113 _ACEOF
61114
61115     cat >>confdefs.h <<\_ACEOF
61116 #define HAVE_SINHF 1
61117 _ACEOF
61118
61119     cat >>confdefs.h <<\_ACEOF
61120 #define HAVE_SINCOS 1
61121 _ACEOF
61122
61123     cat >>confdefs.h <<\_ACEOF
61124 #define HAVE_SINCOSF 1
61125 _ACEOF
61126
61127     cat >>confdefs.h <<\_ACEOF
61128 #define HAVE_SQRTF 1
61129 _ACEOF
61130
61131     cat >>confdefs.h <<\_ACEOF
61132 #define HAVE_TANF 1
61133 _ACEOF
61134
61135     cat >>confdefs.h <<\_ACEOF
61136 #define HAVE_TANHF 1
61137 _ACEOF
61138
61139     if test x"long_double_math_on_this_cpu" = x"yes"; then
61140       cat >>confdefs.h <<\_ACEOF
61141 #define HAVE_ACOSL 1
61142 _ACEOF
61143
61144       cat >>confdefs.h <<\_ACEOF
61145 #define HAVE_ASINL 1
61146 _ACEOF
61147
61148       cat >>confdefs.h <<\_ACEOF
61149 #define HAVE_ATANL 1
61150 _ACEOF
61151
61152       cat >>confdefs.h <<\_ACEOF
61153 #define HAVE_ATAN2L 1
61154 _ACEOF
61155
61156       cat >>confdefs.h <<\_ACEOF
61157 #define HAVE_CEILL 1
61158 _ACEOF
61159
61160       cat >>confdefs.h <<\_ACEOF
61161 #define HAVE_COPYSIGNL 1
61162 _ACEOF
61163
61164       cat >>confdefs.h <<\_ACEOF
61165 #define HAVE_COSL 1
61166 _ACEOF
61167
61168       cat >>confdefs.h <<\_ACEOF
61169 #define HAVE_COSHL 1
61170 _ACEOF
61171
61172       cat >>confdefs.h <<\_ACEOF
61173 #define HAVE_EXPL 1
61174 _ACEOF
61175
61176       cat >>confdefs.h <<\_ACEOF
61177 #define HAVE_FABSL 1
61178 _ACEOF
61179
61180       cat >>confdefs.h <<\_ACEOF
61181 #define HAVE_FINITEL 1
61182 _ACEOF
61183
61184       cat >>confdefs.h <<\_ACEOF
61185 #define HAVE_FLOORL 1
61186 _ACEOF
61187
61188       cat >>confdefs.h <<\_ACEOF
61189 #define HAVE_FMODL 1
61190 _ACEOF
61191
61192       cat >>confdefs.h <<\_ACEOF
61193 #define HAVE_FREXPL 1
61194 _ACEOF
61195
61196       cat >>confdefs.h <<\_ACEOF
61197 #define HAVE_HYPOTL 1
61198 _ACEOF
61199
61200       cat >>confdefs.h <<\_ACEOF
61201 #define HAVE_ISINFL 1
61202 _ACEOF
61203
61204       cat >>confdefs.h <<\_ACEOF
61205 #define HAVE_ISNANL 1
61206 _ACEOF
61207
61208       cat >>confdefs.h <<\_ACEOF
61209 #define HAVE_LOGL 1
61210 _ACEOF
61211
61212       cat >>confdefs.h <<\_ACEOF
61213 #define HAVE_LOG10L 1
61214 _ACEOF
61215
61216       cat >>confdefs.h <<\_ACEOF
61217 #define HAVE_MODFL 1
61218 _ACEOF
61219
61220       cat >>confdefs.h <<\_ACEOF
61221 #define HAVE_POWL 1
61222 _ACEOF
61223
61224       cat >>confdefs.h <<\_ACEOF
61225 #define HAVE_SIGNBITL 1
61226 _ACEOF
61227
61228       cat >>confdefs.h <<\_ACEOF
61229 #define HAVE_SINL 1
61230 _ACEOF
61231
61232       cat >>confdefs.h <<\_ACEOF
61233 #define HAVE_SINHL 1
61234 _ACEOF
61235
61236       cat >>confdefs.h <<\_ACEOF
61237 #define HAVE_SINCOSL 1
61238 _ACEOF
61239
61240       cat >>confdefs.h <<\_ACEOF
61241 #define HAVE_SQRTL 1
61242 _ACEOF
61243
61244       cat >>confdefs.h <<\_ACEOF
61245 #define HAVE_TANL 1
61246 _ACEOF
61247
61248       cat >>confdefs.h <<\_ACEOF
61249 #define HAVE_TANHL 1
61250 _ACEOF
61251
61252     fi
61253     ;;
61254   *-mingw32*)
61255
61256
61257
61258 for ac_header in sys/types.h locale.h float.h
61259 do
61260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
61261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61262   echo "$as_me:$LINENO: checking for $ac_header" >&5
61263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61265   echo $ECHO_N "(cached) $ECHO_C" >&6
61266 fi
61267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61269 else
61270   # Is the header compilable?
61271 echo "$as_me:$LINENO: checking $ac_header usability" >&5
61272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
61273 cat >conftest.$ac_ext <<_ACEOF
61274 /* confdefs.h.  */
61275 _ACEOF
61276 cat confdefs.h >>conftest.$ac_ext
61277 cat >>conftest.$ac_ext <<_ACEOF
61278 /* end confdefs.h.  */
61279 $ac_includes_default
61280 #include <$ac_header>
61281 _ACEOF
61282 rm -f conftest.$ac_objext
61283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
61284   (eval $ac_compile) 2>conftest.er1
61285   ac_status=$?
61286   grep -v '^ *+' conftest.er1 >conftest.err
61287   rm -f conftest.er1
61288   cat conftest.err >&5
61289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61290   (exit $ac_status); } &&
61291          { ac_try='test -z "$ac_c_werror_flag"
61292                          || test ! -s conftest.err'
61293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61294   (eval $ac_try) 2>&5
61295   ac_status=$?
61296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61297   (exit $ac_status); }; } &&
61298          { ac_try='test -s conftest.$ac_objext'
61299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61300   (eval $ac_try) 2>&5
61301   ac_status=$?
61302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61303   (exit $ac_status); }; }; then
61304   ac_header_compiler=yes
61305 else
61306   echo "$as_me: failed program was:" >&5
61307 sed 's/^/| /' conftest.$ac_ext >&5
61308
61309 ac_header_compiler=no
61310 fi
61311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
61312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61313 echo "${ECHO_T}$ac_header_compiler" >&6
61314
61315 # Is the header present?
61316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
61317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
61318 cat >conftest.$ac_ext <<_ACEOF
61319 /* confdefs.h.  */
61320 _ACEOF
61321 cat confdefs.h >>conftest.$ac_ext
61322 cat >>conftest.$ac_ext <<_ACEOF
61323 /* end confdefs.h.  */
61324 #include <$ac_header>
61325 _ACEOF
61326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
61327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
61328   ac_status=$?
61329   grep -v '^ *+' conftest.er1 >conftest.err
61330   rm -f conftest.er1
61331   cat conftest.err >&5
61332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61333   (exit $ac_status); } >/dev/null; then
61334   if test -s conftest.err; then
61335     ac_cpp_err=$ac_c_preproc_warn_flag
61336     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
61337   else
61338     ac_cpp_err=
61339   fi
61340 else
61341   ac_cpp_err=yes
61342 fi
61343 if test -z "$ac_cpp_err"; then
61344   ac_header_preproc=yes
61345 else
61346   echo "$as_me: failed program was:" >&5
61347 sed 's/^/| /' conftest.$ac_ext >&5
61348
61349   ac_header_preproc=no
61350 fi
61351 rm -f conftest.err conftest.$ac_ext
61352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61353 echo "${ECHO_T}$ac_header_preproc" >&6
61354
61355 # So?  What about this header?
61356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61357   yes:no: )
61358     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
61361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
61362     ac_header_preproc=yes
61363     ;;
61364   no:yes:* )
61365     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61367     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
61368 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
61369     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
61370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
61371     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
61372 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
61373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61375     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
61376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
61377     (
61378       cat <<\_ASBOX
61379 ## ----------------------------------------- ##
61380 ## Report this to the package-unused lists.  ##
61381 ## ----------------------------------------- ##
61382 _ASBOX
61383     ) |
61384       sed "s/^/$as_me: WARNING:     /" >&2
61385     ;;
61386 esac
61387 echo "$as_me:$LINENO: checking for $ac_header" >&5
61388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
61389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
61390   echo $ECHO_N "(cached) $ECHO_C" >&6
61391 else
61392   eval "$as_ac_Header=\$ac_header_preproc"
61393 fi
61394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
61395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
61396
61397 fi
61398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
61399   cat >>confdefs.h <<_ACEOF
61400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
61401 _ACEOF
61402
61403 fi
61404
61405 done
61406
61407
61408   # If we're not using GNU ld, then there's no point in even trying these
61409   # tests.  Check for that first.  We should have already tested for gld
61410   # by now (in libtool), but require it now just to be safe...
61411   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
61412   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
61413
61414
61415
61416   # The name set by libtool depends on the version of libtool.  Shame on us
61417   # for depending on an impl detail, but c'est la vie.  Older versions used
61418   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
61419   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
61420   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
61421   # set (hence we're using an older libtool), then set it.
61422   if test x${with_gnu_ld+set} != xset; then
61423     if test x${ac_cv_prog_gnu_ld+set} != xset; then
61424       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
61425       with_gnu_ld=no
61426     else
61427       with_gnu_ld=$ac_cv_prog_gnu_ld
61428     fi
61429   fi
61430
61431   # Start by getting the version number.  I think the libtool test already
61432   # does some of this, but throws away the result.
61433
61434   ldver=`$LD --version 2>/dev/null | head -1 | \
61435          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
61436
61437   glibcxx_gnu_ld_version=`echo $ldver | \
61438          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
61439
61440   # Set --gc-sections.
61441   if test "$with_gnu_ld" = "notbroken"; then
61442     # GNU ld it is!  Joy and bunny rabbits!
61443
61444     # All these tests are for C++; save the language and the compiler flags.
61445     # Need to do this so that g++ won't try to link in libstdc++
61446     ac_test_CFLAGS="${CFLAGS+set}"
61447     ac_save_CFLAGS="$CFLAGS"
61448     CFLAGS='-x c++  -Wl,--gc-sections'
61449
61450     # Check for -Wl,--gc-sections
61451     # XXX This test is broken at the moment, as symbols required for linking
61452     # are now in libsupc++ (not built yet).  In addition, this test has
61453     # cored on solaris in the past.  In addition, --gc-sections doesn't
61454     # really work at the moment (keeps on discarding used sections, first
61455     # .eh_frame and now some of the glibc sections for iconv).
61456     # Bzzzzt.  Thanks for playing, maybe next time.
61457     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
61458 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
61459     if test "$cross_compiling" = yes; then
61460   ac_sectionLDflags=yes
61461 else
61462   cat >conftest.$ac_ext <<_ACEOF
61463 /* confdefs.h.  */
61464 _ACEOF
61465 cat confdefs.h >>conftest.$ac_ext
61466 cat >>conftest.$ac_ext <<_ACEOF
61467 /* end confdefs.h.  */
61468
61469      int main(void)
61470      {
61471        try { throw 1; }
61472        catch (...) { };
61473        return 0;
61474      }
61475
61476 _ACEOF
61477 rm -f conftest$ac_exeext
61478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61479   (eval $ac_link) 2>&5
61480   ac_status=$?
61481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61484   (eval $ac_try) 2>&5
61485   ac_status=$?
61486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61487   (exit $ac_status); }; }; then
61488   ac_sectionLDflags=yes
61489 else
61490   echo "$as_me: program exited with status $ac_status" >&5
61491 echo "$as_me: failed program was:" >&5
61492 sed 's/^/| /' conftest.$ac_ext >&5
61493
61494 ( exit $ac_status )
61495 ac_sectionLDflags=no
61496 fi
61497 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61498 fi
61499     if test "$ac_test_CFLAGS" = set; then
61500       CFLAGS="$ac_save_CFLAGS"
61501     else
61502       # this is the suspicious part
61503       CFLAGS=''
61504     fi
61505     if test "$ac_sectionLDflags" = "yes"; then
61506       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
61507     fi
61508     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
61509 echo "${ECHO_T}$ac_sectionLDflags" >&6
61510   fi
61511
61512   # Set linker optimization flags.
61513   if test x"$with_gnu_ld" = x"yes"; then
61514     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
61515   fi
61516
61517
61518
61519
61520
61521
61522 echo "$as_me:$LINENO: checking for main in -lm" >&5
61523 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
61524 if test "${ac_cv_lib_m_main+set}" = set; then
61525   echo $ECHO_N "(cached) $ECHO_C" >&6
61526 else
61527   ac_check_lib_save_LIBS=$LIBS
61528 LIBS="-lm  $LIBS"
61529 if test x$gcc_no_link = xyes; then
61530   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61531 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61532    { (exit 1); exit 1; }; }
61533 fi
61534 cat >conftest.$ac_ext <<_ACEOF
61535 /* confdefs.h.  */
61536 _ACEOF
61537 cat confdefs.h >>conftest.$ac_ext
61538 cat >>conftest.$ac_ext <<_ACEOF
61539 /* end confdefs.h.  */
61540
61541
61542 int
61543 main ()
61544 {
61545 main ();
61546   ;
61547   return 0;
61548 }
61549 _ACEOF
61550 rm -f conftest.$ac_objext conftest$ac_exeext
61551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61552   (eval $ac_link) 2>conftest.er1
61553   ac_status=$?
61554   grep -v '^ *+' conftest.er1 >conftest.err
61555   rm -f conftest.er1
61556   cat conftest.err >&5
61557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61558   (exit $ac_status); } &&
61559          { ac_try='test -z "$ac_c_werror_flag"
61560                          || test ! -s conftest.err'
61561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61562   (eval $ac_try) 2>&5
61563   ac_status=$?
61564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61565   (exit $ac_status); }; } &&
61566          { ac_try='test -s conftest$ac_exeext'
61567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61568   (eval $ac_try) 2>&5
61569   ac_status=$?
61570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61571   (exit $ac_status); }; }; then
61572   ac_cv_lib_m_main=yes
61573 else
61574   echo "$as_me: failed program was:" >&5
61575 sed 's/^/| /' conftest.$ac_ext >&5
61576
61577 ac_cv_lib_m_main=no
61578 fi
61579 rm -f conftest.err conftest.$ac_objext \
61580       conftest$ac_exeext conftest.$ac_ext
61581 LIBS=$ac_check_lib_save_LIBS
61582 fi
61583 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
61584 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
61585 if test $ac_cv_lib_m_main = yes; then
61586   cat >>confdefs.h <<_ACEOF
61587 #define HAVE_LIBM 1
61588 _ACEOF
61589
61590   LIBS="-lm $LIBS"
61591
61592 fi
61593
61594
61595 for ac_func in copysignf
61596 do
61597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61598 echo "$as_me:$LINENO: checking for $ac_func" >&5
61599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61600 if eval "test \"\${$as_ac_var+set}\" = set"; then
61601   echo $ECHO_N "(cached) $ECHO_C" >&6
61602 else
61603   if test x$gcc_no_link = xyes; then
61604   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61605 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61606    { (exit 1); exit 1; }; }
61607 fi
61608 cat >conftest.$ac_ext <<_ACEOF
61609 /* confdefs.h.  */
61610 _ACEOF
61611 cat confdefs.h >>conftest.$ac_ext
61612 cat >>conftest.$ac_ext <<_ACEOF
61613 /* end confdefs.h.  */
61614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61616 #define $ac_func innocuous_$ac_func
61617
61618 /* System header to define __stub macros and hopefully few prototypes,
61619     which can conflict with char $ac_func (); below.
61620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61621     <limits.h> exists even on freestanding compilers.  */
61622
61623 #ifdef __STDC__
61624 # include <limits.h>
61625 #else
61626 # include <assert.h>
61627 #endif
61628
61629 #undef $ac_func
61630
61631 /* Override any gcc2 internal prototype to avoid an error.  */
61632 #ifdef __cplusplus
61633 extern "C"
61634 {
61635 #endif
61636 /* We use char because int might match the return type of a gcc2
61637    builtin and then its argument prototype would still apply.  */
61638 char $ac_func ();
61639 /* The GNU C library defines this for functions which it implements
61640     to always fail with ENOSYS.  Some functions are actually named
61641     something starting with __ and the normal name is an alias.  */
61642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61643 choke me
61644 #else
61645 char (*f) () = $ac_func;
61646 #endif
61647 #ifdef __cplusplus
61648 }
61649 #endif
61650
61651 int
61652 main ()
61653 {
61654 return f != $ac_func;
61655   ;
61656   return 0;
61657 }
61658 _ACEOF
61659 rm -f conftest.$ac_objext conftest$ac_exeext
61660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61661   (eval $ac_link) 2>conftest.er1
61662   ac_status=$?
61663   grep -v '^ *+' conftest.er1 >conftest.err
61664   rm -f conftest.er1
61665   cat conftest.err >&5
61666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61667   (exit $ac_status); } &&
61668          { ac_try='test -z "$ac_c_werror_flag"
61669                          || test ! -s conftest.err'
61670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61671   (eval $ac_try) 2>&5
61672   ac_status=$?
61673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61674   (exit $ac_status); }; } &&
61675          { ac_try='test -s conftest$ac_exeext'
61676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61677   (eval $ac_try) 2>&5
61678   ac_status=$?
61679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61680   (exit $ac_status); }; }; then
61681   eval "$as_ac_var=yes"
61682 else
61683   echo "$as_me: failed program was:" >&5
61684 sed 's/^/| /' conftest.$ac_ext >&5
61685
61686 eval "$as_ac_var=no"
61687 fi
61688 rm -f conftest.err conftest.$ac_objext \
61689       conftest$ac_exeext conftest.$ac_ext
61690 fi
61691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61693 if test `eval echo '${'$as_ac_var'}'` = yes; then
61694   cat >>confdefs.h <<_ACEOF
61695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61696 _ACEOF
61697
61698 else
61699   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
61700 fi
61701 done
61702
61703
61704
61705 for ac_func in __signbit
61706 do
61707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61708 echo "$as_me:$LINENO: checking for $ac_func" >&5
61709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61710 if eval "test \"\${$as_ac_var+set}\" = set"; then
61711   echo $ECHO_N "(cached) $ECHO_C" >&6
61712 else
61713   if test x$gcc_no_link = xyes; then
61714   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61715 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61716    { (exit 1); exit 1; }; }
61717 fi
61718 cat >conftest.$ac_ext <<_ACEOF
61719 /* confdefs.h.  */
61720 _ACEOF
61721 cat confdefs.h >>conftest.$ac_ext
61722 cat >>conftest.$ac_ext <<_ACEOF
61723 /* end confdefs.h.  */
61724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61726 #define $ac_func innocuous_$ac_func
61727
61728 /* System header to define __stub macros and hopefully few prototypes,
61729     which can conflict with char $ac_func (); below.
61730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61731     <limits.h> exists even on freestanding compilers.  */
61732
61733 #ifdef __STDC__
61734 # include <limits.h>
61735 #else
61736 # include <assert.h>
61737 #endif
61738
61739 #undef $ac_func
61740
61741 /* Override any gcc2 internal prototype to avoid an error.  */
61742 #ifdef __cplusplus
61743 extern "C"
61744 {
61745 #endif
61746 /* We use char because int might match the return type of a gcc2
61747    builtin and then its argument prototype would still apply.  */
61748 char $ac_func ();
61749 /* The GNU C library defines this for functions which it implements
61750     to always fail with ENOSYS.  Some functions are actually named
61751     something starting with __ and the normal name is an alias.  */
61752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61753 choke me
61754 #else
61755 char (*f) () = $ac_func;
61756 #endif
61757 #ifdef __cplusplus
61758 }
61759 #endif
61760
61761 int
61762 main ()
61763 {
61764 return f != $ac_func;
61765   ;
61766   return 0;
61767 }
61768 _ACEOF
61769 rm -f conftest.$ac_objext conftest$ac_exeext
61770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61771   (eval $ac_link) 2>conftest.er1
61772   ac_status=$?
61773   grep -v '^ *+' conftest.er1 >conftest.err
61774   rm -f conftest.er1
61775   cat conftest.err >&5
61776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61777   (exit $ac_status); } &&
61778          { ac_try='test -z "$ac_c_werror_flag"
61779                          || test ! -s conftest.err'
61780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61781   (eval $ac_try) 2>&5
61782   ac_status=$?
61783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61784   (exit $ac_status); }; } &&
61785          { ac_try='test -s conftest$ac_exeext'
61786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61787   (eval $ac_try) 2>&5
61788   ac_status=$?
61789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61790   (exit $ac_status); }; }; then
61791   eval "$as_ac_var=yes"
61792 else
61793   echo "$as_me: failed program was:" >&5
61794 sed 's/^/| /' conftest.$ac_ext >&5
61795
61796 eval "$as_ac_var=no"
61797 fi
61798 rm -f conftest.err conftest.$ac_objext \
61799       conftest$ac_exeext conftest.$ac_ext
61800 fi
61801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61803 if test `eval echo '${'$as_ac_var'}'` = yes; then
61804   cat >>confdefs.h <<_ACEOF
61805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61806 _ACEOF
61807
61808 else
61809   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
61810 fi
61811 done
61812
61813
61814 for ac_func in __signbitf
61815 do
61816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61817 echo "$as_me:$LINENO: checking for $ac_func" >&5
61818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61819 if eval "test \"\${$as_ac_var+set}\" = set"; then
61820   echo $ECHO_N "(cached) $ECHO_C" >&6
61821 else
61822   if test x$gcc_no_link = xyes; then
61823   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61824 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61825    { (exit 1); exit 1; }; }
61826 fi
61827 cat >conftest.$ac_ext <<_ACEOF
61828 /* confdefs.h.  */
61829 _ACEOF
61830 cat confdefs.h >>conftest.$ac_ext
61831 cat >>conftest.$ac_ext <<_ACEOF
61832 /* end confdefs.h.  */
61833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61835 #define $ac_func innocuous_$ac_func
61836
61837 /* System header to define __stub macros and hopefully few prototypes,
61838     which can conflict with char $ac_func (); below.
61839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61840     <limits.h> exists even on freestanding compilers.  */
61841
61842 #ifdef __STDC__
61843 # include <limits.h>
61844 #else
61845 # include <assert.h>
61846 #endif
61847
61848 #undef $ac_func
61849
61850 /* Override any gcc2 internal prototype to avoid an error.  */
61851 #ifdef __cplusplus
61852 extern "C"
61853 {
61854 #endif
61855 /* We use char because int might match the return type of a gcc2
61856    builtin and then its argument prototype would still apply.  */
61857 char $ac_func ();
61858 /* The GNU C library defines this for functions which it implements
61859     to always fail with ENOSYS.  Some functions are actually named
61860     something starting with __ and the normal name is an alias.  */
61861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61862 choke me
61863 #else
61864 char (*f) () = $ac_func;
61865 #endif
61866 #ifdef __cplusplus
61867 }
61868 #endif
61869
61870 int
61871 main ()
61872 {
61873 return f != $ac_func;
61874   ;
61875   return 0;
61876 }
61877 _ACEOF
61878 rm -f conftest.$ac_objext conftest$ac_exeext
61879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61880   (eval $ac_link) 2>conftest.er1
61881   ac_status=$?
61882   grep -v '^ *+' conftest.er1 >conftest.err
61883   rm -f conftest.er1
61884   cat conftest.err >&5
61885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61886   (exit $ac_status); } &&
61887          { ac_try='test -z "$ac_c_werror_flag"
61888                          || test ! -s conftest.err'
61889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61890   (eval $ac_try) 2>&5
61891   ac_status=$?
61892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61893   (exit $ac_status); }; } &&
61894          { ac_try='test -s conftest$ac_exeext'
61895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
61896   (eval $ac_try) 2>&5
61897   ac_status=$?
61898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61899   (exit $ac_status); }; }; then
61900   eval "$as_ac_var=yes"
61901 else
61902   echo "$as_me: failed program was:" >&5
61903 sed 's/^/| /' conftest.$ac_ext >&5
61904
61905 eval "$as_ac_var=no"
61906 fi
61907 rm -f conftest.err conftest.$ac_objext \
61908       conftest$ac_exeext conftest.$ac_ext
61909 fi
61910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
61911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
61912 if test `eval echo '${'$as_ac_var'}'` = yes; then
61913   cat >>confdefs.h <<_ACEOF
61914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61915 _ACEOF
61916
61917 else
61918   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
61919 fi
61920 done
61921
61922
61923           if test x$ac_cv_func_copysignl = x"yes"; then
61924
61925 for ac_func in __signbitl
61926 do
61927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61928 echo "$as_me:$LINENO: checking for $ac_func" >&5
61929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
61930 if eval "test \"\${$as_ac_var+set}\" = set"; then
61931   echo $ECHO_N "(cached) $ECHO_C" >&6
61932 else
61933   if test x$gcc_no_link = xyes; then
61934   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
61935 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
61936    { (exit 1); exit 1; }; }
61937 fi
61938 cat >conftest.$ac_ext <<_ACEOF
61939 /* confdefs.h.  */
61940 _ACEOF
61941 cat confdefs.h >>conftest.$ac_ext
61942 cat >>conftest.$ac_ext <<_ACEOF
61943 /* end confdefs.h.  */
61944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61946 #define $ac_func innocuous_$ac_func
61947
61948 /* System header to define __stub macros and hopefully few prototypes,
61949     which can conflict with char $ac_func (); below.
61950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61951     <limits.h> exists even on freestanding compilers.  */
61952
61953 #ifdef __STDC__
61954 # include <limits.h>
61955 #else
61956 # include <assert.h>
61957 #endif
61958
61959 #undef $ac_func
61960
61961 /* Override any gcc2 internal prototype to avoid an error.  */
61962 #ifdef __cplusplus
61963 extern "C"
61964 {
61965 #endif
61966 /* We use char because int might match the return type of a gcc2
61967    builtin and then its argument prototype would still apply.  */
61968 char $ac_func ();
61969 /* The GNU C library defines this for functions which it implements
61970     to always fail with ENOSYS.  Some functions are actually named
61971     something starting with __ and the normal name is an alias.  */
61972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
61973 choke me
61974 #else
61975 char (*f) () = $ac_func;
61976 #endif
61977 #ifdef __cplusplus
61978 }
61979 #endif
61980
61981 int
61982 main ()
61983 {
61984 return f != $ac_func;
61985   ;
61986   return 0;
61987 }
61988 _ACEOF
61989 rm -f conftest.$ac_objext conftest$ac_exeext
61990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
61991   (eval $ac_link) 2>conftest.er1
61992   ac_status=$?
61993   grep -v '^ *+' conftest.er1 >conftest.err
61994   rm -f conftest.er1
61995   cat conftest.err >&5
61996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61997   (exit $ac_status); } &&
61998          { ac_try='test -z "$ac_c_werror_flag"
61999                          || test ! -s conftest.err'
62000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62001   (eval $ac_try) 2>&5
62002   ac_status=$?
62003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62004   (exit $ac_status); }; } &&
62005          { ac_try='test -s conftest$ac_exeext'
62006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62007   (eval $ac_try) 2>&5
62008   ac_status=$?
62009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62010   (exit $ac_status); }; }; then
62011   eval "$as_ac_var=yes"
62012 else
62013   echo "$as_me: failed program was:" >&5
62014 sed 's/^/| /' conftest.$ac_ext >&5
62015
62016 eval "$as_ac_var=no"
62017 fi
62018 rm -f conftest.err conftest.$ac_objext \
62019       conftest$ac_exeext conftest.$ac_ext
62020 fi
62021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62023 if test `eval echo '${'$as_ac_var'}'` = yes; then
62024   cat >>confdefs.h <<_ACEOF
62025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62026 _ACEOF
62027
62028 else
62029   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
62030 fi
62031 done
62032
62033   fi
62034
62035   # XXX Review this.  Nothing uses it.
62036   if test -n "$LIBMATHOBJS"; then
62037     need_libmath=yes
62038   fi
62039
62040
62041
62042   # Test wchar.h for mbstate_t, which is needed for char_traits and
62043   # others even if wchar_t support is not on.
62044   echo "$as_me:$LINENO: checking for mbstate_t" >&5
62045 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
62046   cat >conftest.$ac_ext <<_ACEOF
62047 /* confdefs.h.  */
62048 _ACEOF
62049 cat confdefs.h >>conftest.$ac_ext
62050 cat >>conftest.$ac_ext <<_ACEOF
62051 /* end confdefs.h.  */
62052 #include <wchar.h>
62053 int
62054 main ()
62055 {
62056 mbstate_t teststate;
62057   ;
62058   return 0;
62059 }
62060 _ACEOF
62061 rm -f conftest.$ac_objext
62062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62063   (eval $ac_compile) 2>conftest.er1
62064   ac_status=$?
62065   grep -v '^ *+' conftest.er1 >conftest.err
62066   rm -f conftest.er1
62067   cat conftest.err >&5
62068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62069   (exit $ac_status); } &&
62070          { ac_try='test -z "$ac_c_werror_flag"
62071                          || test ! -s conftest.err'
62072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62073   (eval $ac_try) 2>&5
62074   ac_status=$?
62075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62076   (exit $ac_status); }; } &&
62077          { ac_try='test -s conftest.$ac_objext'
62078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62079   (eval $ac_try) 2>&5
62080   ac_status=$?
62081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62082   (exit $ac_status); }; }; then
62083   have_mbstate_t=yes
62084 else
62085   echo "$as_me: failed program was:" >&5
62086 sed 's/^/| /' conftest.$ac_ext >&5
62087
62088 have_mbstate_t=no
62089 fi
62090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62091   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
62092 echo "${ECHO_T}$have_mbstate_t" >&6
62093   if test x"$have_mbstate_t" = xyes; then
62094     cat >>confdefs.h <<\_ACEOF
62095 #define HAVE_MBSTATE_T 1
62096 _ACEOF
62097
62098   fi
62099
62100   # Sanity check for existence of ISO C99 headers for extended encoding.
62101
62102 for ac_header in wchar.h
62103 do
62104 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
62105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62106   echo "$as_me:$LINENO: checking for $ac_header" >&5
62107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62109   echo $ECHO_N "(cached) $ECHO_C" >&6
62110 fi
62111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62113 else
62114   # Is the header compilable?
62115 echo "$as_me:$LINENO: checking $ac_header usability" >&5
62116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
62117 cat >conftest.$ac_ext <<_ACEOF
62118 /* confdefs.h.  */
62119 _ACEOF
62120 cat confdefs.h >>conftest.$ac_ext
62121 cat >>conftest.$ac_ext <<_ACEOF
62122 /* end confdefs.h.  */
62123 $ac_includes_default
62124 #include <$ac_header>
62125 _ACEOF
62126 rm -f conftest.$ac_objext
62127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62128   (eval $ac_compile) 2>conftest.er1
62129   ac_status=$?
62130   grep -v '^ *+' conftest.er1 >conftest.err
62131   rm -f conftest.er1
62132   cat conftest.err >&5
62133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62134   (exit $ac_status); } &&
62135          { ac_try='test -z "$ac_c_werror_flag"
62136                          || test ! -s conftest.err'
62137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62138   (eval $ac_try) 2>&5
62139   ac_status=$?
62140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62141   (exit $ac_status); }; } &&
62142          { ac_try='test -s conftest.$ac_objext'
62143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62144   (eval $ac_try) 2>&5
62145   ac_status=$?
62146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62147   (exit $ac_status); }; }; then
62148   ac_header_compiler=yes
62149 else
62150   echo "$as_me: failed program was:" >&5
62151 sed 's/^/| /' conftest.$ac_ext >&5
62152
62153 ac_header_compiler=no
62154 fi
62155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62157 echo "${ECHO_T}$ac_header_compiler" >&6
62158
62159 # Is the header present?
62160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
62161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
62162 cat >conftest.$ac_ext <<_ACEOF
62163 /* confdefs.h.  */
62164 _ACEOF
62165 cat confdefs.h >>conftest.$ac_ext
62166 cat >>conftest.$ac_ext <<_ACEOF
62167 /* end confdefs.h.  */
62168 #include <$ac_header>
62169 _ACEOF
62170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62171   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62172   ac_status=$?
62173   grep -v '^ *+' conftest.er1 >conftest.err
62174   rm -f conftest.er1
62175   cat conftest.err >&5
62176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62177   (exit $ac_status); } >/dev/null; then
62178   if test -s conftest.err; then
62179     ac_cpp_err=$ac_c_preproc_warn_flag
62180     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62181   else
62182     ac_cpp_err=
62183   fi
62184 else
62185   ac_cpp_err=yes
62186 fi
62187 if test -z "$ac_cpp_err"; then
62188   ac_header_preproc=yes
62189 else
62190   echo "$as_me: failed program was:" >&5
62191 sed 's/^/| /' conftest.$ac_ext >&5
62192
62193   ac_header_preproc=no
62194 fi
62195 rm -f conftest.err conftest.$ac_ext
62196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62197 echo "${ECHO_T}$ac_header_preproc" >&6
62198
62199 # So?  What about this header?
62200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62201   yes:no: )
62202     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
62203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
62204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
62205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
62206     ac_header_preproc=yes
62207     ;;
62208   no:yes:* )
62209     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
62210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
62211     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
62212 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
62213     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
62214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
62215     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
62216 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
62217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
62218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
62219     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
62220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
62221     (
62222       cat <<\_ASBOX
62223 ## ----------------------------------------- ##
62224 ## Report this to the package-unused lists.  ##
62225 ## ----------------------------------------- ##
62226 _ASBOX
62227     ) |
62228       sed "s/^/$as_me: WARNING:     /" >&2
62229     ;;
62230 esac
62231 echo "$as_me:$LINENO: checking for $ac_header" >&5
62232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62234   echo $ECHO_N "(cached) $ECHO_C" >&6
62235 else
62236   eval "$as_ac_Header=\$ac_header_preproc"
62237 fi
62238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62239 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62240
62241 fi
62242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
62243   cat >>confdefs.h <<_ACEOF
62244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
62245 _ACEOF
62246  ac_has_wchar_h=yes
62247 else
62248   ac_has_wchar_h=no
62249 fi
62250
62251 done
62252
62253
62254 for ac_header in wctype.h
62255 do
62256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
62257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62258   echo "$as_me:$LINENO: checking for $ac_header" >&5
62259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62261   echo $ECHO_N "(cached) $ECHO_C" >&6
62262 fi
62263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62265 else
62266   # Is the header compilable?
62267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
62268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
62269 cat >conftest.$ac_ext <<_ACEOF
62270 /* confdefs.h.  */
62271 _ACEOF
62272 cat confdefs.h >>conftest.$ac_ext
62273 cat >>conftest.$ac_ext <<_ACEOF
62274 /* end confdefs.h.  */
62275 $ac_includes_default
62276 #include <$ac_header>
62277 _ACEOF
62278 rm -f conftest.$ac_objext
62279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62280   (eval $ac_compile) 2>conftest.er1
62281   ac_status=$?
62282   grep -v '^ *+' conftest.er1 >conftest.err
62283   rm -f conftest.er1
62284   cat conftest.err >&5
62285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62286   (exit $ac_status); } &&
62287          { ac_try='test -z "$ac_c_werror_flag"
62288                          || test ! -s conftest.err'
62289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62290   (eval $ac_try) 2>&5
62291   ac_status=$?
62292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62293   (exit $ac_status); }; } &&
62294          { ac_try='test -s conftest.$ac_objext'
62295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62296   (eval $ac_try) 2>&5
62297   ac_status=$?
62298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62299   (exit $ac_status); }; }; then
62300   ac_header_compiler=yes
62301 else
62302   echo "$as_me: failed program was:" >&5
62303 sed 's/^/| /' conftest.$ac_ext >&5
62304
62305 ac_header_compiler=no
62306 fi
62307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62309 echo "${ECHO_T}$ac_header_compiler" >&6
62310
62311 # Is the header present?
62312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
62313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
62314 cat >conftest.$ac_ext <<_ACEOF
62315 /* confdefs.h.  */
62316 _ACEOF
62317 cat confdefs.h >>conftest.$ac_ext
62318 cat >>conftest.$ac_ext <<_ACEOF
62319 /* end confdefs.h.  */
62320 #include <$ac_header>
62321 _ACEOF
62322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62324   ac_status=$?
62325   grep -v '^ *+' conftest.er1 >conftest.err
62326   rm -f conftest.er1
62327   cat conftest.err >&5
62328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62329   (exit $ac_status); } >/dev/null; then
62330   if test -s conftest.err; then
62331     ac_cpp_err=$ac_c_preproc_warn_flag
62332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
62333   else
62334     ac_cpp_err=
62335   fi
62336 else
62337   ac_cpp_err=yes
62338 fi
62339 if test -z "$ac_cpp_err"; then
62340   ac_header_preproc=yes
62341 else
62342   echo "$as_me: failed program was:" >&5
62343 sed 's/^/| /' conftest.$ac_ext >&5
62344
62345   ac_header_preproc=no
62346 fi
62347 rm -f conftest.err conftest.$ac_ext
62348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
62349 echo "${ECHO_T}$ac_header_preproc" >&6
62350
62351 # So?  What about this header?
62352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
62353   yes:no: )
62354     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
62355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
62356     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
62357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
62358     ac_header_preproc=yes
62359     ;;
62360   no:yes:* )
62361     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
62362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
62363     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
62364 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
62365     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
62366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
62367     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
62368 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
62369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
62370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
62371     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
62372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
62373     (
62374       cat <<\_ASBOX
62375 ## ----------------------------------------- ##
62376 ## Report this to the package-unused lists.  ##
62377 ## ----------------------------------------- ##
62378 _ASBOX
62379     ) |
62380       sed "s/^/$as_me: WARNING:     /" >&2
62381     ;;
62382 esac
62383 echo "$as_me:$LINENO: checking for $ac_header" >&5
62384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
62385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
62386   echo $ECHO_N "(cached) $ECHO_C" >&6
62387 else
62388   eval "$as_ac_Header=\$ac_header_preproc"
62389 fi
62390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
62391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
62392
62393 fi
62394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
62395   cat >>confdefs.h <<_ACEOF
62396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
62397 _ACEOF
62398  ac_has_wctype_h=yes
62399 else
62400   ac_has_wctype_h=no
62401 fi
62402
62403 done
62404
62405
62406   # Only continue checking if the ISO C99 headers exist and support is on.
62407   if test x"$ac_has_wchar_h" = xyes &&
62408      test x"$ac_has_wctype_h" = xyes &&
62409      test x"$enable_c_mbchar" != xno; then
62410
62411     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
62412     # numeric_limits can instantiate type_traits<wchar_t>
62413     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
62414 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
62415     cat >conftest.$ac_ext <<_ACEOF
62416 /* confdefs.h.  */
62417 _ACEOF
62418 cat confdefs.h >>conftest.$ac_ext
62419 cat >>conftest.$ac_ext <<_ACEOF
62420 /* end confdefs.h.  */
62421 #include <wchar.h>
62422 int
62423 main ()
62424 {
62425 int i = WCHAR_MIN; int j = WCHAR_MAX;
62426   ;
62427   return 0;
62428 }
62429 _ACEOF
62430 rm -f conftest.$ac_objext
62431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62432   (eval $ac_compile) 2>conftest.er1
62433   ac_status=$?
62434   grep -v '^ *+' conftest.er1 >conftest.err
62435   rm -f conftest.er1
62436   cat conftest.err >&5
62437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62438   (exit $ac_status); } &&
62439          { ac_try='test -z "$ac_c_werror_flag"
62440                          || test ! -s conftest.err'
62441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62442   (eval $ac_try) 2>&5
62443   ac_status=$?
62444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62445   (exit $ac_status); }; } &&
62446          { ac_try='test -s conftest.$ac_objext'
62447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62448   (eval $ac_try) 2>&5
62449   ac_status=$?
62450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62451   (exit $ac_status); }; }; then
62452   has_wchar_minmax=yes
62453 else
62454   echo "$as_me: failed program was:" >&5
62455 sed 's/^/| /' conftest.$ac_ext >&5
62456
62457 has_wchar_minmax=no
62458 fi
62459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62460     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
62461 echo "${ECHO_T}$has_wchar_minmax" >&6
62462
62463     # Test wchar.h for WEOF, which is what we use to determine whether
62464     # to specialize for char_traits<wchar_t> or not.
62465     echo "$as_me:$LINENO: checking for WEOF" >&5
62466 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
62467     cat >conftest.$ac_ext <<_ACEOF
62468 /* confdefs.h.  */
62469 _ACEOF
62470 cat confdefs.h >>conftest.$ac_ext
62471 cat >>conftest.$ac_ext <<_ACEOF
62472 /* end confdefs.h.  */
62473
62474       #include <wchar.h>
62475       #include <stddef.h>
62476 int
62477 main ()
62478 {
62479 wint_t i = WEOF;
62480   ;
62481   return 0;
62482 }
62483 _ACEOF
62484 rm -f conftest.$ac_objext
62485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62486   (eval $ac_compile) 2>conftest.er1
62487   ac_status=$?
62488   grep -v '^ *+' conftest.er1 >conftest.err
62489   rm -f conftest.er1
62490   cat conftest.err >&5
62491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62492   (exit $ac_status); } &&
62493          { ac_try='test -z "$ac_c_werror_flag"
62494                          || test ! -s conftest.err'
62495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62496   (eval $ac_try) 2>&5
62497   ac_status=$?
62498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62499   (exit $ac_status); }; } &&
62500          { ac_try='test -s conftest.$ac_objext'
62501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62502   (eval $ac_try) 2>&5
62503   ac_status=$?
62504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62505   (exit $ac_status); }; }; then
62506   has_weof=yes
62507 else
62508   echo "$as_me: failed program was:" >&5
62509 sed 's/^/| /' conftest.$ac_ext >&5
62510
62511 has_weof=no
62512 fi
62513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62514     echo "$as_me:$LINENO: result: $has_weof" >&5
62515 echo "${ECHO_T}$has_weof" >&6
62516
62517     # Tests for wide character functions used in char_traits<wchar_t>.
62518     ac_wfuncs=yes
62519
62520
62521
62522
62523
62524
62525 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
62526 do
62527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62528 echo "$as_me:$LINENO: checking for $ac_func" >&5
62529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62530 if eval "test \"\${$as_ac_var+set}\" = set"; then
62531   echo $ECHO_N "(cached) $ECHO_C" >&6
62532 else
62533   if test x$gcc_no_link = xyes; then
62534   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62535 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62536    { (exit 1); exit 1; }; }
62537 fi
62538 cat >conftest.$ac_ext <<_ACEOF
62539 /* confdefs.h.  */
62540 _ACEOF
62541 cat confdefs.h >>conftest.$ac_ext
62542 cat >>conftest.$ac_ext <<_ACEOF
62543 /* end confdefs.h.  */
62544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62546 #define $ac_func innocuous_$ac_func
62547
62548 /* System header to define __stub macros and hopefully few prototypes,
62549     which can conflict with char $ac_func (); below.
62550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62551     <limits.h> exists even on freestanding compilers.  */
62552
62553 #ifdef __STDC__
62554 # include <limits.h>
62555 #else
62556 # include <assert.h>
62557 #endif
62558
62559 #undef $ac_func
62560
62561 /* Override any gcc2 internal prototype to avoid an error.  */
62562 #ifdef __cplusplus
62563 extern "C"
62564 {
62565 #endif
62566 /* We use char because int might match the return type of a gcc2
62567    builtin and then its argument prototype would still apply.  */
62568 char $ac_func ();
62569 /* The GNU C library defines this for functions which it implements
62570     to always fail with ENOSYS.  Some functions are actually named
62571     something starting with __ and the normal name is an alias.  */
62572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62573 choke me
62574 #else
62575 char (*f) () = $ac_func;
62576 #endif
62577 #ifdef __cplusplus
62578 }
62579 #endif
62580
62581 int
62582 main ()
62583 {
62584 return f != $ac_func;
62585   ;
62586   return 0;
62587 }
62588 _ACEOF
62589 rm -f conftest.$ac_objext conftest$ac_exeext
62590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62591   (eval $ac_link) 2>conftest.er1
62592   ac_status=$?
62593   grep -v '^ *+' conftest.er1 >conftest.err
62594   rm -f conftest.er1
62595   cat conftest.err >&5
62596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62597   (exit $ac_status); } &&
62598          { ac_try='test -z "$ac_c_werror_flag"
62599                          || test ! -s conftest.err'
62600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62601   (eval $ac_try) 2>&5
62602   ac_status=$?
62603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62604   (exit $ac_status); }; } &&
62605          { ac_try='test -s conftest$ac_exeext'
62606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62607   (eval $ac_try) 2>&5
62608   ac_status=$?
62609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62610   (exit $ac_status); }; }; then
62611   eval "$as_ac_var=yes"
62612 else
62613   echo "$as_me: failed program was:" >&5
62614 sed 's/^/| /' conftest.$ac_ext >&5
62615
62616 eval "$as_ac_var=no"
62617 fi
62618 rm -f conftest.err conftest.$ac_objext \
62619       conftest$ac_exeext conftest.$ac_ext
62620 fi
62621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62623 if test `eval echo '${'$as_ac_var'}'` = yes; then
62624   cat >>confdefs.h <<_ACEOF
62625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62626 _ACEOF
62627
62628 else
62629   ac_wfuncs=no
62630 fi
62631 done
62632
62633
62634     # Checks for names injected into std:: by the c_std headers.
62635
62636
62637
62638
62639
62640
62641
62642
62643
62644
62645
62646
62647
62648
62649
62650
62651
62652
62653
62654
62655
62656
62657
62658
62659
62660
62661
62662
62663
62664
62665
62666
62667
62668
62669
62670
62671
62672
62673
62674
62675
62676
62677
62678
62679
62680
62681 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
62682     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
62683     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
62684     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
62685     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
62686     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
62687 do
62688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62689 echo "$as_me:$LINENO: checking for $ac_func" >&5
62690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62691 if eval "test \"\${$as_ac_var+set}\" = set"; then
62692   echo $ECHO_N "(cached) $ECHO_C" >&6
62693 else
62694   if test x$gcc_no_link = xyes; then
62695   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62696 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62697    { (exit 1); exit 1; }; }
62698 fi
62699 cat >conftest.$ac_ext <<_ACEOF
62700 /* confdefs.h.  */
62701 _ACEOF
62702 cat confdefs.h >>conftest.$ac_ext
62703 cat >>conftest.$ac_ext <<_ACEOF
62704 /* end confdefs.h.  */
62705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62707 #define $ac_func innocuous_$ac_func
62708
62709 /* System header to define __stub macros and hopefully few prototypes,
62710     which can conflict with char $ac_func (); below.
62711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62712     <limits.h> exists even on freestanding compilers.  */
62713
62714 #ifdef __STDC__
62715 # include <limits.h>
62716 #else
62717 # include <assert.h>
62718 #endif
62719
62720 #undef $ac_func
62721
62722 /* Override any gcc2 internal prototype to avoid an error.  */
62723 #ifdef __cplusplus
62724 extern "C"
62725 {
62726 #endif
62727 /* We use char because int might match the return type of a gcc2
62728    builtin and then its argument prototype would still apply.  */
62729 char $ac_func ();
62730 /* The GNU C library defines this for functions which it implements
62731     to always fail with ENOSYS.  Some functions are actually named
62732     something starting with __ and the normal name is an alias.  */
62733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62734 choke me
62735 #else
62736 char (*f) () = $ac_func;
62737 #endif
62738 #ifdef __cplusplus
62739 }
62740 #endif
62741
62742 int
62743 main ()
62744 {
62745 return f != $ac_func;
62746   ;
62747   return 0;
62748 }
62749 _ACEOF
62750 rm -f conftest.$ac_objext conftest$ac_exeext
62751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62752   (eval $ac_link) 2>conftest.er1
62753   ac_status=$?
62754   grep -v '^ *+' conftest.er1 >conftest.err
62755   rm -f conftest.er1
62756   cat conftest.err >&5
62757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62758   (exit $ac_status); } &&
62759          { ac_try='test -z "$ac_c_werror_flag"
62760                          || test ! -s conftest.err'
62761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62762   (eval $ac_try) 2>&5
62763   ac_status=$?
62764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62765   (exit $ac_status); }; } &&
62766          { ac_try='test -s conftest$ac_exeext'
62767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62768   (eval $ac_try) 2>&5
62769   ac_status=$?
62770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62771   (exit $ac_status); }; }; then
62772   eval "$as_ac_var=yes"
62773 else
62774   echo "$as_me: failed program was:" >&5
62775 sed 's/^/| /' conftest.$ac_ext >&5
62776
62777 eval "$as_ac_var=no"
62778 fi
62779 rm -f conftest.err conftest.$ac_objext \
62780       conftest$ac_exeext conftest.$ac_ext
62781 fi
62782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62784 if test `eval echo '${'$as_ac_var'}'` = yes; then
62785   cat >>confdefs.h <<_ACEOF
62786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62787 _ACEOF
62788
62789 else
62790   ac_wfuncs=no
62791 fi
62792 done
62793
62794
62795     # Checks for wide character functions that are not required
62796     # for basic wchar_t support.  Don't disable support if they are missing.
62797     # Injection of these is wrapped with guard macros.
62798
62799
62800
62801
62802
62803 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
62804 do
62805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62806 echo "$as_me:$LINENO: checking for $ac_func" >&5
62807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
62808 if eval "test \"\${$as_ac_var+set}\" = set"; then
62809   echo $ECHO_N "(cached) $ECHO_C" >&6
62810 else
62811   if test x$gcc_no_link = xyes; then
62812   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
62813 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
62814    { (exit 1); exit 1; }; }
62815 fi
62816 cat >conftest.$ac_ext <<_ACEOF
62817 /* confdefs.h.  */
62818 _ACEOF
62819 cat confdefs.h >>conftest.$ac_ext
62820 cat >>conftest.$ac_ext <<_ACEOF
62821 /* end confdefs.h.  */
62822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62824 #define $ac_func innocuous_$ac_func
62825
62826 /* System header to define __stub macros and hopefully few prototypes,
62827     which can conflict with char $ac_func (); below.
62828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62829     <limits.h> exists even on freestanding compilers.  */
62830
62831 #ifdef __STDC__
62832 # include <limits.h>
62833 #else
62834 # include <assert.h>
62835 #endif
62836
62837 #undef $ac_func
62838
62839 /* Override any gcc2 internal prototype to avoid an error.  */
62840 #ifdef __cplusplus
62841 extern "C"
62842 {
62843 #endif
62844 /* We use char because int might match the return type of a gcc2
62845    builtin and then its argument prototype would still apply.  */
62846 char $ac_func ();
62847 /* The GNU C library defines this for functions which it implements
62848     to always fail with ENOSYS.  Some functions are actually named
62849     something starting with __ and the normal name is an alias.  */
62850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
62851 choke me
62852 #else
62853 char (*f) () = $ac_func;
62854 #endif
62855 #ifdef __cplusplus
62856 }
62857 #endif
62858
62859 int
62860 main ()
62861 {
62862 return f != $ac_func;
62863   ;
62864   return 0;
62865 }
62866 _ACEOF
62867 rm -f conftest.$ac_objext conftest$ac_exeext
62868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
62869   (eval $ac_link) 2>conftest.er1
62870   ac_status=$?
62871   grep -v '^ *+' conftest.er1 >conftest.err
62872   rm -f conftest.er1
62873   cat conftest.err >&5
62874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62875   (exit $ac_status); } &&
62876          { ac_try='test -z "$ac_c_werror_flag"
62877                          || test ! -s conftest.err'
62878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62879   (eval $ac_try) 2>&5
62880   ac_status=$?
62881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62882   (exit $ac_status); }; } &&
62883          { ac_try='test -s conftest$ac_exeext'
62884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62885   (eval $ac_try) 2>&5
62886   ac_status=$?
62887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62888   (exit $ac_status); }; }; then
62889   eval "$as_ac_var=yes"
62890 else
62891   echo "$as_me: failed program was:" >&5
62892 sed 's/^/| /' conftest.$ac_ext >&5
62893
62894 eval "$as_ac_var=no"
62895 fi
62896 rm -f conftest.err conftest.$ac_objext \
62897       conftest$ac_exeext conftest.$ac_ext
62898 fi
62899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
62900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
62901 if test `eval echo '${'$as_ac_var'}'` = yes; then
62902   cat >>confdefs.h <<_ACEOF
62903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62904 _ACEOF
62905
62906 fi
62907 done
62908
62909
62910     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
62911 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
62912     if test x"$has_weof" = xyes &&
62913        test x"$has_wchar_minmax" = xyes &&
62914        test x"$ac_wfuncs" = xyes;
62915     then
62916       ac_isoC99_wchar_t=yes
62917     else
62918       ac_isoC99_wchar_t=no
62919     fi
62920     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
62921 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
62922
62923     # Use iconv for wchar_t to char conversions. As such, check for
62924     # X/Open Portability Guide, version 2 features (XPG2).
62925     if test "${ac_cv_header_iconv_h+set}" = set; then
62926   echo "$as_me:$LINENO: checking for iconv.h" >&5
62927 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
62928 if test "${ac_cv_header_iconv_h+set}" = set; then
62929   echo $ECHO_N "(cached) $ECHO_C" >&6
62930 fi
62931 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
62932 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
62933 else
62934   # Is the header compilable?
62935 echo "$as_me:$LINENO: checking iconv.h usability" >&5
62936 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
62937 cat >conftest.$ac_ext <<_ACEOF
62938 /* confdefs.h.  */
62939 _ACEOF
62940 cat confdefs.h >>conftest.$ac_ext
62941 cat >>conftest.$ac_ext <<_ACEOF
62942 /* end confdefs.h.  */
62943 $ac_includes_default
62944 #include <iconv.h>
62945 _ACEOF
62946 rm -f conftest.$ac_objext
62947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
62948   (eval $ac_compile) 2>conftest.er1
62949   ac_status=$?
62950   grep -v '^ *+' conftest.er1 >conftest.err
62951   rm -f conftest.er1
62952   cat conftest.err >&5
62953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62954   (exit $ac_status); } &&
62955          { ac_try='test -z "$ac_c_werror_flag"
62956                          || test ! -s conftest.err'
62957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62958   (eval $ac_try) 2>&5
62959   ac_status=$?
62960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62961   (exit $ac_status); }; } &&
62962          { ac_try='test -s conftest.$ac_objext'
62963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
62964   (eval $ac_try) 2>&5
62965   ac_status=$?
62966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62967   (exit $ac_status); }; }; then
62968   ac_header_compiler=yes
62969 else
62970   echo "$as_me: failed program was:" >&5
62971 sed 's/^/| /' conftest.$ac_ext >&5
62972
62973 ac_header_compiler=no
62974 fi
62975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
62976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
62977 echo "${ECHO_T}$ac_header_compiler" >&6
62978
62979 # Is the header present?
62980 echo "$as_me:$LINENO: checking iconv.h presence" >&5
62981 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
62982 cat >conftest.$ac_ext <<_ACEOF
62983 /* confdefs.h.  */
62984 _ACEOF
62985 cat confdefs.h >>conftest.$ac_ext
62986 cat >>conftest.$ac_ext <<_ACEOF
62987 /* end confdefs.h.  */
62988 #include <iconv.h>
62989 _ACEOF
62990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
62991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
62992   ac_status=$?
62993   grep -v '^ *+' conftest.er1 >conftest.err
62994   rm -f conftest.er1
62995   cat conftest.err >&5
62996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62997   (exit $ac_status); } >/dev/null; then
62998   if test -s conftest.err; then
62999     ac_cpp_err=$ac_c_preproc_warn_flag
63000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63001   else
63002     ac_cpp_err=
63003   fi
63004 else
63005   ac_cpp_err=yes
63006 fi
63007 if test -z "$ac_cpp_err"; then
63008   ac_header_preproc=yes
63009 else
63010   echo "$as_me: failed program was:" >&5
63011 sed 's/^/| /' conftest.$ac_ext >&5
63012
63013   ac_header_preproc=no
63014 fi
63015 rm -f conftest.err conftest.$ac_ext
63016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63017 echo "${ECHO_T}$ac_header_preproc" >&6
63018
63019 # So?  What about this header?
63020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63021   yes:no: )
63022     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
63023 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
63024     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
63025 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
63026     ac_header_preproc=yes
63027     ;;
63028   no:yes:* )
63029     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
63030 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
63031     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
63032 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
63033     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
63034 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
63035     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
63036 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
63037     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
63038 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
63039     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
63040 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
63041     (
63042       cat <<\_ASBOX
63043 ## ----------------------------------------- ##
63044 ## Report this to the package-unused lists.  ##
63045 ## ----------------------------------------- ##
63046 _ASBOX
63047     ) |
63048       sed "s/^/$as_me: WARNING:     /" >&2
63049     ;;
63050 esac
63051 echo "$as_me:$LINENO: checking for iconv.h" >&5
63052 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
63053 if test "${ac_cv_header_iconv_h+set}" = set; then
63054   echo $ECHO_N "(cached) $ECHO_C" >&6
63055 else
63056   ac_cv_header_iconv_h=$ac_header_preproc
63057 fi
63058 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
63059 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
63060
63061 fi
63062 if test $ac_cv_header_iconv_h = yes; then
63063   ac_has_iconv_h=yes
63064 else
63065   ac_has_iconv_h=no
63066 fi
63067
63068
63069     if test "${ac_cv_header_langinfo_h+set}" = set; then
63070   echo "$as_me:$LINENO: checking for langinfo.h" >&5
63071 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
63072 if test "${ac_cv_header_langinfo_h+set}" = set; then
63073   echo $ECHO_N "(cached) $ECHO_C" >&6
63074 fi
63075 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
63076 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
63077 else
63078   # Is the header compilable?
63079 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
63080 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
63081 cat >conftest.$ac_ext <<_ACEOF
63082 /* confdefs.h.  */
63083 _ACEOF
63084 cat confdefs.h >>conftest.$ac_ext
63085 cat >>conftest.$ac_ext <<_ACEOF
63086 /* end confdefs.h.  */
63087 $ac_includes_default
63088 #include <langinfo.h>
63089 _ACEOF
63090 rm -f conftest.$ac_objext
63091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63092   (eval $ac_compile) 2>conftest.er1
63093   ac_status=$?
63094   grep -v '^ *+' conftest.er1 >conftest.err
63095   rm -f conftest.er1
63096   cat conftest.err >&5
63097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63098   (exit $ac_status); } &&
63099          { ac_try='test -z "$ac_c_werror_flag"
63100                          || test ! -s conftest.err'
63101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63102   (eval $ac_try) 2>&5
63103   ac_status=$?
63104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63105   (exit $ac_status); }; } &&
63106          { ac_try='test -s conftest.$ac_objext'
63107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63108   (eval $ac_try) 2>&5
63109   ac_status=$?
63110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63111   (exit $ac_status); }; }; then
63112   ac_header_compiler=yes
63113 else
63114   echo "$as_me: failed program was:" >&5
63115 sed 's/^/| /' conftest.$ac_ext >&5
63116
63117 ac_header_compiler=no
63118 fi
63119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63121 echo "${ECHO_T}$ac_header_compiler" >&6
63122
63123 # Is the header present?
63124 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
63125 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
63126 cat >conftest.$ac_ext <<_ACEOF
63127 /* confdefs.h.  */
63128 _ACEOF
63129 cat confdefs.h >>conftest.$ac_ext
63130 cat >>conftest.$ac_ext <<_ACEOF
63131 /* end confdefs.h.  */
63132 #include <langinfo.h>
63133 _ACEOF
63134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63136   ac_status=$?
63137   grep -v '^ *+' conftest.er1 >conftest.err
63138   rm -f conftest.er1
63139   cat conftest.err >&5
63140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63141   (exit $ac_status); } >/dev/null; then
63142   if test -s conftest.err; then
63143     ac_cpp_err=$ac_c_preproc_warn_flag
63144     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63145   else
63146     ac_cpp_err=
63147   fi
63148 else
63149   ac_cpp_err=yes
63150 fi
63151 if test -z "$ac_cpp_err"; then
63152   ac_header_preproc=yes
63153 else
63154   echo "$as_me: failed program was:" >&5
63155 sed 's/^/| /' conftest.$ac_ext >&5
63156
63157   ac_header_preproc=no
63158 fi
63159 rm -f conftest.err conftest.$ac_ext
63160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63161 echo "${ECHO_T}$ac_header_preproc" >&6
63162
63163 # So?  What about this header?
63164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63165   yes:no: )
63166     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
63167 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
63168     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
63169 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
63170     ac_header_preproc=yes
63171     ;;
63172   no:yes:* )
63173     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
63174 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
63175     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
63176 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
63177     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
63178 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
63179     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
63180 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
63181     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
63182 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
63183     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
63184 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
63185     (
63186       cat <<\_ASBOX
63187 ## ----------------------------------------- ##
63188 ## Report this to the package-unused lists.  ##
63189 ## ----------------------------------------- ##
63190 _ASBOX
63191     ) |
63192       sed "s/^/$as_me: WARNING:     /" >&2
63193     ;;
63194 esac
63195 echo "$as_me:$LINENO: checking for langinfo.h" >&5
63196 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
63197 if test "${ac_cv_header_langinfo_h+set}" = set; then
63198   echo $ECHO_N "(cached) $ECHO_C" >&6
63199 else
63200   ac_cv_header_langinfo_h=$ac_header_preproc
63201 fi
63202 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
63203 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
63204
63205 fi
63206 if test $ac_cv_header_langinfo_h = yes; then
63207   ac_has_langinfo_h=yes
63208 else
63209   ac_has_langinfo_h=no
63210 fi
63211
63212
63213
63214     # Check for existence of libiconv.a providing XPG2 wchar_t support.
63215     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
63216 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
63217 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
63218   echo $ECHO_N "(cached) $ECHO_C" >&6
63219 else
63220   ac_check_lib_save_LIBS=$LIBS
63221 LIBS="-liconv  $LIBS"
63222 if test x$gcc_no_link = xyes; then
63223   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63224 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63225    { (exit 1); exit 1; }; }
63226 fi
63227 cat >conftest.$ac_ext <<_ACEOF
63228 /* confdefs.h.  */
63229 _ACEOF
63230 cat confdefs.h >>conftest.$ac_ext
63231 cat >>conftest.$ac_ext <<_ACEOF
63232 /* end confdefs.h.  */
63233
63234 /* Override any gcc2 internal prototype to avoid an error.  */
63235 #ifdef __cplusplus
63236 extern "C"
63237 #endif
63238 /* We use char because int might match the return type of a gcc2
63239    builtin and then its argument prototype would still apply.  */
63240 char iconv ();
63241 int
63242 main ()
63243 {
63244 iconv ();
63245   ;
63246   return 0;
63247 }
63248 _ACEOF
63249 rm -f conftest.$ac_objext conftest$ac_exeext
63250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63251   (eval $ac_link) 2>conftest.er1
63252   ac_status=$?
63253   grep -v '^ *+' conftest.er1 >conftest.err
63254   rm -f conftest.er1
63255   cat conftest.err >&5
63256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63257   (exit $ac_status); } &&
63258          { ac_try='test -z "$ac_c_werror_flag"
63259                          || test ! -s conftest.err'
63260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63261   (eval $ac_try) 2>&5
63262   ac_status=$?
63263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63264   (exit $ac_status); }; } &&
63265          { ac_try='test -s conftest$ac_exeext'
63266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63267   (eval $ac_try) 2>&5
63268   ac_status=$?
63269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63270   (exit $ac_status); }; }; then
63271   ac_cv_lib_iconv_iconv=yes
63272 else
63273   echo "$as_me: failed program was:" >&5
63274 sed 's/^/| /' conftest.$ac_ext >&5
63275
63276 ac_cv_lib_iconv_iconv=no
63277 fi
63278 rm -f conftest.err conftest.$ac_objext \
63279       conftest$ac_exeext conftest.$ac_ext
63280 LIBS=$ac_check_lib_save_LIBS
63281 fi
63282 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
63283 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
63284 if test $ac_cv_lib_iconv_iconv = yes; then
63285   LIBICONV="-liconv"
63286 fi
63287
63288     ac_save_LIBS="$LIBS"
63289     LIBS="$LIBS $LIBICONV"
63290
63291
63292
63293
63294
63295
63296 for ac_func in iconv_open iconv_close iconv nl_langinfo
63297 do
63298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63299 echo "$as_me:$LINENO: checking for $ac_func" >&5
63300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63301 if eval "test \"\${$as_ac_var+set}\" = set"; then
63302   echo $ECHO_N "(cached) $ECHO_C" >&6
63303 else
63304   if test x$gcc_no_link = xyes; then
63305   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63306 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63307    { (exit 1); exit 1; }; }
63308 fi
63309 cat >conftest.$ac_ext <<_ACEOF
63310 /* confdefs.h.  */
63311 _ACEOF
63312 cat confdefs.h >>conftest.$ac_ext
63313 cat >>conftest.$ac_ext <<_ACEOF
63314 /* end confdefs.h.  */
63315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63316    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63317 #define $ac_func innocuous_$ac_func
63318
63319 /* System header to define __stub macros and hopefully few prototypes,
63320     which can conflict with char $ac_func (); below.
63321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63322     <limits.h> exists even on freestanding compilers.  */
63323
63324 #ifdef __STDC__
63325 # include <limits.h>
63326 #else
63327 # include <assert.h>
63328 #endif
63329
63330 #undef $ac_func
63331
63332 /* Override any gcc2 internal prototype to avoid an error.  */
63333 #ifdef __cplusplus
63334 extern "C"
63335 {
63336 #endif
63337 /* We use char because int might match the return type of a gcc2
63338    builtin and then its argument prototype would still apply.  */
63339 char $ac_func ();
63340 /* The GNU C library defines this for functions which it implements
63341     to always fail with ENOSYS.  Some functions are actually named
63342     something starting with __ and the normal name is an alias.  */
63343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63344 choke me
63345 #else
63346 char (*f) () = $ac_func;
63347 #endif
63348 #ifdef __cplusplus
63349 }
63350 #endif
63351
63352 int
63353 main ()
63354 {
63355 return f != $ac_func;
63356   ;
63357   return 0;
63358 }
63359 _ACEOF
63360 rm -f conftest.$ac_objext conftest$ac_exeext
63361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63362   (eval $ac_link) 2>conftest.er1
63363   ac_status=$?
63364   grep -v '^ *+' conftest.er1 >conftest.err
63365   rm -f conftest.er1
63366   cat conftest.err >&5
63367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63368   (exit $ac_status); } &&
63369          { ac_try='test -z "$ac_c_werror_flag"
63370                          || test ! -s conftest.err'
63371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63372   (eval $ac_try) 2>&5
63373   ac_status=$?
63374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63375   (exit $ac_status); }; } &&
63376          { ac_try='test -s conftest$ac_exeext'
63377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63378   (eval $ac_try) 2>&5
63379   ac_status=$?
63380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63381   (exit $ac_status); }; }; then
63382   eval "$as_ac_var=yes"
63383 else
63384   echo "$as_me: failed program was:" >&5
63385 sed 's/^/| /' conftest.$ac_ext >&5
63386
63387 eval "$as_ac_var=no"
63388 fi
63389 rm -f conftest.err conftest.$ac_objext \
63390       conftest$ac_exeext conftest.$ac_ext
63391 fi
63392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63394 if test `eval echo '${'$as_ac_var'}'` = yes; then
63395   cat >>confdefs.h <<_ACEOF
63396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63397 _ACEOF
63398  ac_XPG2funcs=yes
63399 else
63400   ac_XPG2funcs=no
63401 fi
63402 done
63403
63404
63405     LIBS="$ac_save_LIBS"
63406
63407     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
63408 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
63409     if test x"$ac_has_iconv_h" = xyes &&
63410        test x"$ac_has_langinfo_h" = xyes &&
63411        test x"$ac_XPG2funcs" = xyes;
63412     then
63413       ac_XPG2_wchar_t=yes
63414     else
63415       ac_XPG2_wchar_t=no
63416     fi
63417     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
63418 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
63419
63420     # At the moment, only enable wchar_t specializations if all the
63421     # above support is present.
63422     if test x"$ac_isoC99_wchar_t" = xyes &&
63423        test x"$ac_XPG2_wchar_t" = xyes;
63424     then
63425       cat >>confdefs.h <<\_ACEOF
63426 #define _GLIBCXX_USE_WCHAR_T 1
63427 _ACEOF
63428
63429       enable_wchar_t=yes
63430     fi
63431   fi
63432   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
63433 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
63434   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
63435 echo "${ECHO_T}$enable_wchar_t" >&6
63436
63437     ;;
63438   *-netbsd*)
63439
63440
63441
63442
63443
63444
63445
63446
63447
63448
63449
63450
63451 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
63452       machine/endian.h machine/param.h sys/machine.h sys/types.h \
63453       fp.h locale.h float.h inttypes.h
63454 do
63455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63456 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63457   echo "$as_me:$LINENO: checking for $ac_header" >&5
63458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63460   echo $ECHO_N "(cached) $ECHO_C" >&6
63461 fi
63462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63464 else
63465   # Is the header compilable?
63466 echo "$as_me:$LINENO: checking $ac_header usability" >&5
63467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
63468 cat >conftest.$ac_ext <<_ACEOF
63469 /* confdefs.h.  */
63470 _ACEOF
63471 cat confdefs.h >>conftest.$ac_ext
63472 cat >>conftest.$ac_ext <<_ACEOF
63473 /* end confdefs.h.  */
63474 $ac_includes_default
63475 #include <$ac_header>
63476 _ACEOF
63477 rm -f conftest.$ac_objext
63478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63479   (eval $ac_compile) 2>conftest.er1
63480   ac_status=$?
63481   grep -v '^ *+' conftest.er1 >conftest.err
63482   rm -f conftest.er1
63483   cat conftest.err >&5
63484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63485   (exit $ac_status); } &&
63486          { ac_try='test -z "$ac_c_werror_flag"
63487                          || test ! -s conftest.err'
63488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63489   (eval $ac_try) 2>&5
63490   ac_status=$?
63491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63492   (exit $ac_status); }; } &&
63493          { ac_try='test -s conftest.$ac_objext'
63494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63495   (eval $ac_try) 2>&5
63496   ac_status=$?
63497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63498   (exit $ac_status); }; }; then
63499   ac_header_compiler=yes
63500 else
63501   echo "$as_me: failed program was:" >&5
63502 sed 's/^/| /' conftest.$ac_ext >&5
63503
63504 ac_header_compiler=no
63505 fi
63506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63508 echo "${ECHO_T}$ac_header_compiler" >&6
63509
63510 # Is the header present?
63511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
63512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
63513 cat >conftest.$ac_ext <<_ACEOF
63514 /* confdefs.h.  */
63515 _ACEOF
63516 cat confdefs.h >>conftest.$ac_ext
63517 cat >>conftest.$ac_ext <<_ACEOF
63518 /* end confdefs.h.  */
63519 #include <$ac_header>
63520 _ACEOF
63521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
63522   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
63523   ac_status=$?
63524   grep -v '^ *+' conftest.er1 >conftest.err
63525   rm -f conftest.er1
63526   cat conftest.err >&5
63527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63528   (exit $ac_status); } >/dev/null; then
63529   if test -s conftest.err; then
63530     ac_cpp_err=$ac_c_preproc_warn_flag
63531     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
63532   else
63533     ac_cpp_err=
63534   fi
63535 else
63536   ac_cpp_err=yes
63537 fi
63538 if test -z "$ac_cpp_err"; then
63539   ac_header_preproc=yes
63540 else
63541   echo "$as_me: failed program was:" >&5
63542 sed 's/^/| /' conftest.$ac_ext >&5
63543
63544   ac_header_preproc=no
63545 fi
63546 rm -f conftest.err conftest.$ac_ext
63547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63548 echo "${ECHO_T}$ac_header_preproc" >&6
63549
63550 # So?  What about this header?
63551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63552   yes:no: )
63553     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63557     ac_header_preproc=yes
63558     ;;
63559   no:yes:* )
63560     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63562     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
63563 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
63564     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
63565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
63566     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
63567 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
63568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63570     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63572     (
63573       cat <<\_ASBOX
63574 ## ----------------------------------------- ##
63575 ## Report this to the package-unused lists.  ##
63576 ## ----------------------------------------- ##
63577 _ASBOX
63578     ) |
63579       sed "s/^/$as_me: WARNING:     /" >&2
63580     ;;
63581 esac
63582 echo "$as_me:$LINENO: checking for $ac_header" >&5
63583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
63584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
63585   echo $ECHO_N "(cached) $ECHO_C" >&6
63586 else
63587   eval "$as_ac_Header=\$ac_header_preproc"
63588 fi
63589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
63590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
63591
63592 fi
63593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
63594   cat >>confdefs.h <<_ACEOF
63595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
63596 _ACEOF
63597
63598 fi
63599
63600 done
63601
63602     SECTION_FLAGS='-ffunction-sections -fdata-sections'
63603
63604
63605   # If we're not using GNU ld, then there's no point in even trying these
63606   # tests.  Check for that first.  We should have already tested for gld
63607   # by now (in libtool), but require it now just to be safe...
63608   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
63609   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
63610
63611
63612
63613   # The name set by libtool depends on the version of libtool.  Shame on us
63614   # for depending on an impl detail, but c'est la vie.  Older versions used
63615   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
63616   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
63617   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
63618   # set (hence we're using an older libtool), then set it.
63619   if test x${with_gnu_ld+set} != xset; then
63620     if test x${ac_cv_prog_gnu_ld+set} != xset; then
63621       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
63622       with_gnu_ld=no
63623     else
63624       with_gnu_ld=$ac_cv_prog_gnu_ld
63625     fi
63626   fi
63627
63628   # Start by getting the version number.  I think the libtool test already
63629   # does some of this, but throws away the result.
63630
63631   ldver=`$LD --version 2>/dev/null | head -1 | \
63632          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
63633
63634   glibcxx_gnu_ld_version=`echo $ldver | \
63635          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
63636
63637   # Set --gc-sections.
63638   if test "$with_gnu_ld" = "notbroken"; then
63639     # GNU ld it is!  Joy and bunny rabbits!
63640
63641     # All these tests are for C++; save the language and the compiler flags.
63642     # Need to do this so that g++ won't try to link in libstdc++
63643     ac_test_CFLAGS="${CFLAGS+set}"
63644     ac_save_CFLAGS="$CFLAGS"
63645     CFLAGS='-x c++  -Wl,--gc-sections'
63646
63647     # Check for -Wl,--gc-sections
63648     # XXX This test is broken at the moment, as symbols required for linking
63649     # are now in libsupc++ (not built yet).  In addition, this test has
63650     # cored on solaris in the past.  In addition, --gc-sections doesn't
63651     # really work at the moment (keeps on discarding used sections, first
63652     # .eh_frame and now some of the glibc sections for iconv).
63653     # Bzzzzt.  Thanks for playing, maybe next time.
63654     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
63655 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
63656     if test "$cross_compiling" = yes; then
63657   ac_sectionLDflags=yes
63658 else
63659   cat >conftest.$ac_ext <<_ACEOF
63660 /* confdefs.h.  */
63661 _ACEOF
63662 cat confdefs.h >>conftest.$ac_ext
63663 cat >>conftest.$ac_ext <<_ACEOF
63664 /* end confdefs.h.  */
63665
63666      int main(void)
63667      {
63668        try { throw 1; }
63669        catch (...) { };
63670        return 0;
63671      }
63672
63673 _ACEOF
63674 rm -f conftest$ac_exeext
63675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63676   (eval $ac_link) 2>&5
63677   ac_status=$?
63678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
63680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63681   (eval $ac_try) 2>&5
63682   ac_status=$?
63683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63684   (exit $ac_status); }; }; then
63685   ac_sectionLDflags=yes
63686 else
63687   echo "$as_me: program exited with status $ac_status" >&5
63688 echo "$as_me: failed program was:" >&5
63689 sed 's/^/| /' conftest.$ac_ext >&5
63690
63691 ( exit $ac_status )
63692 ac_sectionLDflags=no
63693 fi
63694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63695 fi
63696     if test "$ac_test_CFLAGS" = set; then
63697       CFLAGS="$ac_save_CFLAGS"
63698     else
63699       # this is the suspicious part
63700       CFLAGS=''
63701     fi
63702     if test "$ac_sectionLDflags" = "yes"; then
63703       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
63704     fi
63705     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
63706 echo "${ECHO_T}$ac_sectionLDflags" >&6
63707   fi
63708
63709   # Set linker optimization flags.
63710   if test x"$with_gnu_ld" = x"yes"; then
63711     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
63712   fi
63713
63714
63715
63716
63717
63718
63719 echo "$as_me:$LINENO: checking for main in -lm" >&5
63720 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
63721 if test "${ac_cv_lib_m_main+set}" = set; then
63722   echo $ECHO_N "(cached) $ECHO_C" >&6
63723 else
63724   ac_check_lib_save_LIBS=$LIBS
63725 LIBS="-lm  $LIBS"
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
63738
63739 int
63740 main ()
63741 {
63742 main ();
63743   ;
63744   return 0;
63745 }
63746 _ACEOF
63747 rm -f conftest.$ac_objext conftest$ac_exeext
63748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63749   (eval $ac_link) 2>conftest.er1
63750   ac_status=$?
63751   grep -v '^ *+' conftest.er1 >conftest.err
63752   rm -f conftest.er1
63753   cat conftest.err >&5
63754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63755   (exit $ac_status); } &&
63756          { ac_try='test -z "$ac_c_werror_flag"
63757                          || test ! -s conftest.err'
63758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63759   (eval $ac_try) 2>&5
63760   ac_status=$?
63761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63762   (exit $ac_status); }; } &&
63763          { ac_try='test -s conftest$ac_exeext'
63764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63765   (eval $ac_try) 2>&5
63766   ac_status=$?
63767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63768   (exit $ac_status); }; }; then
63769   ac_cv_lib_m_main=yes
63770 else
63771   echo "$as_me: failed program was:" >&5
63772 sed 's/^/| /' conftest.$ac_ext >&5
63773
63774 ac_cv_lib_m_main=no
63775 fi
63776 rm -f conftest.err conftest.$ac_objext \
63777       conftest$ac_exeext conftest.$ac_ext
63778 LIBS=$ac_check_lib_save_LIBS
63779 fi
63780 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
63781 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
63782 if test $ac_cv_lib_m_main = yes; then
63783   cat >>confdefs.h <<_ACEOF
63784 #define HAVE_LIBM 1
63785 _ACEOF
63786
63787   LIBS="-lm $LIBS"
63788
63789 fi
63790
63791
63792 for ac_func in copysignf
63793 do
63794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63795 echo "$as_me:$LINENO: checking for $ac_func" >&5
63796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63797 if eval "test \"\${$as_ac_var+set}\" = set"; then
63798   echo $ECHO_N "(cached) $ECHO_C" >&6
63799 else
63800   if test x$gcc_no_link = xyes; then
63801   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63802 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63803    { (exit 1); exit 1; }; }
63804 fi
63805 cat >conftest.$ac_ext <<_ACEOF
63806 /* confdefs.h.  */
63807 _ACEOF
63808 cat confdefs.h >>conftest.$ac_ext
63809 cat >>conftest.$ac_ext <<_ACEOF
63810 /* end confdefs.h.  */
63811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63813 #define $ac_func innocuous_$ac_func
63814
63815 /* System header to define __stub macros and hopefully few prototypes,
63816     which can conflict with char $ac_func (); below.
63817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63818     <limits.h> exists even on freestanding compilers.  */
63819
63820 #ifdef __STDC__
63821 # include <limits.h>
63822 #else
63823 # include <assert.h>
63824 #endif
63825
63826 #undef $ac_func
63827
63828 /* Override any gcc2 internal prototype to avoid an error.  */
63829 #ifdef __cplusplus
63830 extern "C"
63831 {
63832 #endif
63833 /* We use char because int might match the return type of a gcc2
63834    builtin and then its argument prototype would still apply.  */
63835 char $ac_func ();
63836 /* The GNU C library defines this for functions which it implements
63837     to always fail with ENOSYS.  Some functions are actually named
63838     something starting with __ and the normal name is an alias.  */
63839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63840 choke me
63841 #else
63842 char (*f) () = $ac_func;
63843 #endif
63844 #ifdef __cplusplus
63845 }
63846 #endif
63847
63848 int
63849 main ()
63850 {
63851 return f != $ac_func;
63852   ;
63853   return 0;
63854 }
63855 _ACEOF
63856 rm -f conftest.$ac_objext conftest$ac_exeext
63857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63858   (eval $ac_link) 2>conftest.er1
63859   ac_status=$?
63860   grep -v '^ *+' conftest.er1 >conftest.err
63861   rm -f conftest.er1
63862   cat conftest.err >&5
63863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63864   (exit $ac_status); } &&
63865          { ac_try='test -z "$ac_c_werror_flag"
63866                          || test ! -s conftest.err'
63867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63868   (eval $ac_try) 2>&5
63869   ac_status=$?
63870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63871   (exit $ac_status); }; } &&
63872          { ac_try='test -s conftest$ac_exeext'
63873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63874   (eval $ac_try) 2>&5
63875   ac_status=$?
63876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63877   (exit $ac_status); }; }; then
63878   eval "$as_ac_var=yes"
63879 else
63880   echo "$as_me: failed program was:" >&5
63881 sed 's/^/| /' conftest.$ac_ext >&5
63882
63883 eval "$as_ac_var=no"
63884 fi
63885 rm -f conftest.err conftest.$ac_objext \
63886       conftest$ac_exeext conftest.$ac_ext
63887 fi
63888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
63890 if test `eval echo '${'$as_ac_var'}'` = yes; then
63891   cat >>confdefs.h <<_ACEOF
63892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63893 _ACEOF
63894
63895 else
63896   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
63897 fi
63898 done
63899
63900
63901
63902 for ac_func in __signbit
63903 do
63904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63905 echo "$as_me:$LINENO: checking for $ac_func" >&5
63906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
63907 if eval "test \"\${$as_ac_var+set}\" = set"; then
63908   echo $ECHO_N "(cached) $ECHO_C" >&6
63909 else
63910   if test x$gcc_no_link = xyes; then
63911   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
63912 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
63913    { (exit 1); exit 1; }; }
63914 fi
63915 cat >conftest.$ac_ext <<_ACEOF
63916 /* confdefs.h.  */
63917 _ACEOF
63918 cat confdefs.h >>conftest.$ac_ext
63919 cat >>conftest.$ac_ext <<_ACEOF
63920 /* end confdefs.h.  */
63921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63923 #define $ac_func innocuous_$ac_func
63924
63925 /* System header to define __stub macros and hopefully few prototypes,
63926     which can conflict with char $ac_func (); below.
63927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63928     <limits.h> exists even on freestanding compilers.  */
63929
63930 #ifdef __STDC__
63931 # include <limits.h>
63932 #else
63933 # include <assert.h>
63934 #endif
63935
63936 #undef $ac_func
63937
63938 /* Override any gcc2 internal prototype to avoid an error.  */
63939 #ifdef __cplusplus
63940 extern "C"
63941 {
63942 #endif
63943 /* We use char because int might match the return type of a gcc2
63944    builtin and then its argument prototype would still apply.  */
63945 char $ac_func ();
63946 /* The GNU C library defines this for functions which it implements
63947     to always fail with ENOSYS.  Some functions are actually named
63948     something starting with __ and the normal name is an alias.  */
63949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
63950 choke me
63951 #else
63952 char (*f) () = $ac_func;
63953 #endif
63954 #ifdef __cplusplus
63955 }
63956 #endif
63957
63958 int
63959 main ()
63960 {
63961 return f != $ac_func;
63962   ;
63963   return 0;
63964 }
63965 _ACEOF
63966 rm -f conftest.$ac_objext conftest$ac_exeext
63967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
63968   (eval $ac_link) 2>conftest.er1
63969   ac_status=$?
63970   grep -v '^ *+' conftest.er1 >conftest.err
63971   rm -f conftest.er1
63972   cat conftest.err >&5
63973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63974   (exit $ac_status); } &&
63975          { ac_try='test -z "$ac_c_werror_flag"
63976                          || test ! -s conftest.err'
63977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63978   (eval $ac_try) 2>&5
63979   ac_status=$?
63980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63981   (exit $ac_status); }; } &&
63982          { ac_try='test -s conftest$ac_exeext'
63983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
63984   (eval $ac_try) 2>&5
63985   ac_status=$?
63986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63987   (exit $ac_status); }; }; then
63988   eval "$as_ac_var=yes"
63989 else
63990   echo "$as_me: failed program was:" >&5
63991 sed 's/^/| /' conftest.$ac_ext >&5
63992
63993 eval "$as_ac_var=no"
63994 fi
63995 rm -f conftest.err conftest.$ac_objext \
63996       conftest$ac_exeext conftest.$ac_ext
63997 fi
63998 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
63999 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64000 if test `eval echo '${'$as_ac_var'}'` = yes; then
64001   cat >>confdefs.h <<_ACEOF
64002 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64003 _ACEOF
64004
64005 else
64006   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
64007 fi
64008 done
64009
64010
64011 for ac_func in __signbitf
64012 do
64013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64014 echo "$as_me:$LINENO: checking for $ac_func" >&5
64015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64016 if eval "test \"\${$as_ac_var+set}\" = set"; then
64017   echo $ECHO_N "(cached) $ECHO_C" >&6
64018 else
64019   if test x$gcc_no_link = xyes; then
64020   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64021 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64022    { (exit 1); exit 1; }; }
64023 fi
64024 cat >conftest.$ac_ext <<_ACEOF
64025 /* confdefs.h.  */
64026 _ACEOF
64027 cat confdefs.h >>conftest.$ac_ext
64028 cat >>conftest.$ac_ext <<_ACEOF
64029 /* end confdefs.h.  */
64030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64032 #define $ac_func innocuous_$ac_func
64033
64034 /* System header to define __stub macros and hopefully few prototypes,
64035     which can conflict with char $ac_func (); below.
64036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64037     <limits.h> exists even on freestanding compilers.  */
64038
64039 #ifdef __STDC__
64040 # include <limits.h>
64041 #else
64042 # include <assert.h>
64043 #endif
64044
64045 #undef $ac_func
64046
64047 /* Override any gcc2 internal prototype to avoid an error.  */
64048 #ifdef __cplusplus
64049 extern "C"
64050 {
64051 #endif
64052 /* We use char because int might match the return type of a gcc2
64053    builtin and then its argument prototype would still apply.  */
64054 char $ac_func ();
64055 /* The GNU C library defines this for functions which it implements
64056     to always fail with ENOSYS.  Some functions are actually named
64057     something starting with __ and the normal name is an alias.  */
64058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64059 choke me
64060 #else
64061 char (*f) () = $ac_func;
64062 #endif
64063 #ifdef __cplusplus
64064 }
64065 #endif
64066
64067 int
64068 main ()
64069 {
64070 return f != $ac_func;
64071   ;
64072   return 0;
64073 }
64074 _ACEOF
64075 rm -f conftest.$ac_objext conftest$ac_exeext
64076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64077   (eval $ac_link) 2>conftest.er1
64078   ac_status=$?
64079   grep -v '^ *+' conftest.er1 >conftest.err
64080   rm -f conftest.er1
64081   cat conftest.err >&5
64082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64083   (exit $ac_status); } &&
64084          { ac_try='test -z "$ac_c_werror_flag"
64085                          || test ! -s conftest.err'
64086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64087   (eval $ac_try) 2>&5
64088   ac_status=$?
64089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64090   (exit $ac_status); }; } &&
64091          { ac_try='test -s conftest$ac_exeext'
64092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64093   (eval $ac_try) 2>&5
64094   ac_status=$?
64095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64096   (exit $ac_status); }; }; then
64097   eval "$as_ac_var=yes"
64098 else
64099   echo "$as_me: failed program was:" >&5
64100 sed 's/^/| /' conftest.$ac_ext >&5
64101
64102 eval "$as_ac_var=no"
64103 fi
64104 rm -f conftest.err conftest.$ac_objext \
64105       conftest$ac_exeext conftest.$ac_ext
64106 fi
64107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64109 if test `eval echo '${'$as_ac_var'}'` = yes; then
64110   cat >>confdefs.h <<_ACEOF
64111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64112 _ACEOF
64113
64114 else
64115   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
64116 fi
64117 done
64118
64119
64120           if test x$ac_cv_func_copysignl = x"yes"; then
64121
64122 for ac_func in __signbitl
64123 do
64124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64125 echo "$as_me:$LINENO: checking for $ac_func" >&5
64126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64127 if eval "test \"\${$as_ac_var+set}\" = set"; then
64128   echo $ECHO_N "(cached) $ECHO_C" >&6
64129 else
64130   if test x$gcc_no_link = xyes; then
64131   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64132 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64133    { (exit 1); exit 1; }; }
64134 fi
64135 cat >conftest.$ac_ext <<_ACEOF
64136 /* confdefs.h.  */
64137 _ACEOF
64138 cat confdefs.h >>conftest.$ac_ext
64139 cat >>conftest.$ac_ext <<_ACEOF
64140 /* end confdefs.h.  */
64141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64143 #define $ac_func innocuous_$ac_func
64144
64145 /* System header to define __stub macros and hopefully few prototypes,
64146     which can conflict with char $ac_func (); below.
64147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64148     <limits.h> exists even on freestanding compilers.  */
64149
64150 #ifdef __STDC__
64151 # include <limits.h>
64152 #else
64153 # include <assert.h>
64154 #endif
64155
64156 #undef $ac_func
64157
64158 /* Override any gcc2 internal prototype to avoid an error.  */
64159 #ifdef __cplusplus
64160 extern "C"
64161 {
64162 #endif
64163 /* We use char because int might match the return type of a gcc2
64164    builtin and then its argument prototype would still apply.  */
64165 char $ac_func ();
64166 /* The GNU C library defines this for functions which it implements
64167     to always fail with ENOSYS.  Some functions are actually named
64168     something starting with __ and the normal name is an alias.  */
64169 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64170 choke me
64171 #else
64172 char (*f) () = $ac_func;
64173 #endif
64174 #ifdef __cplusplus
64175 }
64176 #endif
64177
64178 int
64179 main ()
64180 {
64181 return f != $ac_func;
64182   ;
64183   return 0;
64184 }
64185 _ACEOF
64186 rm -f conftest.$ac_objext conftest$ac_exeext
64187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64188   (eval $ac_link) 2>conftest.er1
64189   ac_status=$?
64190   grep -v '^ *+' conftest.er1 >conftest.err
64191   rm -f conftest.er1
64192   cat conftest.err >&5
64193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64194   (exit $ac_status); } &&
64195          { ac_try='test -z "$ac_c_werror_flag"
64196                          || test ! -s conftest.err'
64197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64198   (eval $ac_try) 2>&5
64199   ac_status=$?
64200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64201   (exit $ac_status); }; } &&
64202          { ac_try='test -s conftest$ac_exeext'
64203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64204   (eval $ac_try) 2>&5
64205   ac_status=$?
64206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64207   (exit $ac_status); }; }; then
64208   eval "$as_ac_var=yes"
64209 else
64210   echo "$as_me: failed program was:" >&5
64211 sed 's/^/| /' conftest.$ac_ext >&5
64212
64213 eval "$as_ac_var=no"
64214 fi
64215 rm -f conftest.err conftest.$ac_objext \
64216       conftest$ac_exeext conftest.$ac_ext
64217 fi
64218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64220 if test `eval echo '${'$as_ac_var'}'` = yes; then
64221   cat >>confdefs.h <<_ACEOF
64222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64223 _ACEOF
64224
64225 else
64226   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
64227 fi
64228 done
64229
64230   fi
64231
64232   # XXX Review this.  Nothing uses it.
64233   if test -n "$LIBMATHOBJS"; then
64234     need_libmath=yes
64235   fi
64236
64237
64238
64239   # Test wchar.h for mbstate_t, which is needed for char_traits and
64240   # others even if wchar_t support is not on.
64241   echo "$as_me:$LINENO: checking for mbstate_t" >&5
64242 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
64243   cat >conftest.$ac_ext <<_ACEOF
64244 /* confdefs.h.  */
64245 _ACEOF
64246 cat confdefs.h >>conftest.$ac_ext
64247 cat >>conftest.$ac_ext <<_ACEOF
64248 /* end confdefs.h.  */
64249 #include <wchar.h>
64250 int
64251 main ()
64252 {
64253 mbstate_t teststate;
64254   ;
64255   return 0;
64256 }
64257 _ACEOF
64258 rm -f conftest.$ac_objext
64259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64260   (eval $ac_compile) 2>conftest.er1
64261   ac_status=$?
64262   grep -v '^ *+' conftest.er1 >conftest.err
64263   rm -f conftest.er1
64264   cat conftest.err >&5
64265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64266   (exit $ac_status); } &&
64267          { ac_try='test -z "$ac_c_werror_flag"
64268                          || test ! -s conftest.err'
64269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64270   (eval $ac_try) 2>&5
64271   ac_status=$?
64272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64273   (exit $ac_status); }; } &&
64274          { ac_try='test -s conftest.$ac_objext'
64275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64276   (eval $ac_try) 2>&5
64277   ac_status=$?
64278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64279   (exit $ac_status); }; }; then
64280   have_mbstate_t=yes
64281 else
64282   echo "$as_me: failed program was:" >&5
64283 sed 's/^/| /' conftest.$ac_ext >&5
64284
64285 have_mbstate_t=no
64286 fi
64287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64288   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
64289 echo "${ECHO_T}$have_mbstate_t" >&6
64290   if test x"$have_mbstate_t" = xyes; then
64291     cat >>confdefs.h <<\_ACEOF
64292 #define HAVE_MBSTATE_T 1
64293 _ACEOF
64294
64295   fi
64296
64297   # Sanity check for existence of ISO C99 headers for extended encoding.
64298
64299 for ac_header in wchar.h
64300 do
64301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64303   echo "$as_me:$LINENO: checking for $ac_header" >&5
64304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64306   echo $ECHO_N "(cached) $ECHO_C" >&6
64307 fi
64308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64310 else
64311   # Is the header compilable?
64312 echo "$as_me:$LINENO: checking $ac_header usability" >&5
64313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
64314 cat >conftest.$ac_ext <<_ACEOF
64315 /* confdefs.h.  */
64316 _ACEOF
64317 cat confdefs.h >>conftest.$ac_ext
64318 cat >>conftest.$ac_ext <<_ACEOF
64319 /* end confdefs.h.  */
64320 $ac_includes_default
64321 #include <$ac_header>
64322 _ACEOF
64323 rm -f conftest.$ac_objext
64324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64325   (eval $ac_compile) 2>conftest.er1
64326   ac_status=$?
64327   grep -v '^ *+' conftest.er1 >conftest.err
64328   rm -f conftest.er1
64329   cat conftest.err >&5
64330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64331   (exit $ac_status); } &&
64332          { ac_try='test -z "$ac_c_werror_flag"
64333                          || test ! -s conftest.err'
64334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64335   (eval $ac_try) 2>&5
64336   ac_status=$?
64337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64338   (exit $ac_status); }; } &&
64339          { ac_try='test -s conftest.$ac_objext'
64340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64341   (eval $ac_try) 2>&5
64342   ac_status=$?
64343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64344   (exit $ac_status); }; }; then
64345   ac_header_compiler=yes
64346 else
64347   echo "$as_me: failed program was:" >&5
64348 sed 's/^/| /' conftest.$ac_ext >&5
64349
64350 ac_header_compiler=no
64351 fi
64352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64353 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64354 echo "${ECHO_T}$ac_header_compiler" >&6
64355
64356 # Is the header present?
64357 echo "$as_me:$LINENO: checking $ac_header presence" >&5
64358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64359 cat >conftest.$ac_ext <<_ACEOF
64360 /* confdefs.h.  */
64361 _ACEOF
64362 cat confdefs.h >>conftest.$ac_ext
64363 cat >>conftest.$ac_ext <<_ACEOF
64364 /* end confdefs.h.  */
64365 #include <$ac_header>
64366 _ACEOF
64367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64369   ac_status=$?
64370   grep -v '^ *+' conftest.er1 >conftest.err
64371   rm -f conftest.er1
64372   cat conftest.err >&5
64373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64374   (exit $ac_status); } >/dev/null; then
64375   if test -s conftest.err; then
64376     ac_cpp_err=$ac_c_preproc_warn_flag
64377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64378   else
64379     ac_cpp_err=
64380   fi
64381 else
64382   ac_cpp_err=yes
64383 fi
64384 if test -z "$ac_cpp_err"; then
64385   ac_header_preproc=yes
64386 else
64387   echo "$as_me: failed program was:" >&5
64388 sed 's/^/| /' conftest.$ac_ext >&5
64389
64390   ac_header_preproc=no
64391 fi
64392 rm -f conftest.err conftest.$ac_ext
64393 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64394 echo "${ECHO_T}$ac_header_preproc" >&6
64395
64396 # So?  What about this header?
64397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64398   yes:no: )
64399     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64401     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64403     ac_header_preproc=yes
64404     ;;
64405   no:yes:* )
64406     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64408     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
64409 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
64410     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64412     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
64413 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
64414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64416     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64418     (
64419       cat <<\_ASBOX
64420 ## ----------------------------------------- ##
64421 ## Report this to the package-unused lists.  ##
64422 ## ----------------------------------------- ##
64423 _ASBOX
64424     ) |
64425       sed "s/^/$as_me: WARNING:     /" >&2
64426     ;;
64427 esac
64428 echo "$as_me:$LINENO: checking for $ac_header" >&5
64429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64431   echo $ECHO_N "(cached) $ECHO_C" >&6
64432 else
64433   eval "$as_ac_Header=\$ac_header_preproc"
64434 fi
64435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64437
64438 fi
64439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64440   cat >>confdefs.h <<_ACEOF
64441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64442 _ACEOF
64443  ac_has_wchar_h=yes
64444 else
64445   ac_has_wchar_h=no
64446 fi
64447
64448 done
64449
64450
64451 for ac_header in wctype.h
64452 do
64453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64455   echo "$as_me:$LINENO: checking for $ac_header" >&5
64456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64458   echo $ECHO_N "(cached) $ECHO_C" >&6
64459 fi
64460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64462 else
64463   # Is the header compilable?
64464 echo "$as_me:$LINENO: checking $ac_header usability" >&5
64465 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
64466 cat >conftest.$ac_ext <<_ACEOF
64467 /* confdefs.h.  */
64468 _ACEOF
64469 cat confdefs.h >>conftest.$ac_ext
64470 cat >>conftest.$ac_ext <<_ACEOF
64471 /* end confdefs.h.  */
64472 $ac_includes_default
64473 #include <$ac_header>
64474 _ACEOF
64475 rm -f conftest.$ac_objext
64476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64477   (eval $ac_compile) 2>conftest.er1
64478   ac_status=$?
64479   grep -v '^ *+' conftest.er1 >conftest.err
64480   rm -f conftest.er1
64481   cat conftest.err >&5
64482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64483   (exit $ac_status); } &&
64484          { ac_try='test -z "$ac_c_werror_flag"
64485                          || test ! -s conftest.err'
64486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64487   (eval $ac_try) 2>&5
64488   ac_status=$?
64489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64490   (exit $ac_status); }; } &&
64491          { ac_try='test -s conftest.$ac_objext'
64492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64493   (eval $ac_try) 2>&5
64494   ac_status=$?
64495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64496   (exit $ac_status); }; }; then
64497   ac_header_compiler=yes
64498 else
64499   echo "$as_me: failed program was:" >&5
64500 sed 's/^/| /' conftest.$ac_ext >&5
64501
64502 ac_header_compiler=no
64503 fi
64504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64505 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64506 echo "${ECHO_T}$ac_header_compiler" >&6
64507
64508 # Is the header present?
64509 echo "$as_me:$LINENO: checking $ac_header presence" >&5
64510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
64511 cat >conftest.$ac_ext <<_ACEOF
64512 /* confdefs.h.  */
64513 _ACEOF
64514 cat confdefs.h >>conftest.$ac_ext
64515 cat >>conftest.$ac_ext <<_ACEOF
64516 /* end confdefs.h.  */
64517 #include <$ac_header>
64518 _ACEOF
64519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
64520   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
64521   ac_status=$?
64522   grep -v '^ *+' conftest.er1 >conftest.err
64523   rm -f conftest.er1
64524   cat conftest.err >&5
64525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64526   (exit $ac_status); } >/dev/null; then
64527   if test -s conftest.err; then
64528     ac_cpp_err=$ac_c_preproc_warn_flag
64529     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
64530   else
64531     ac_cpp_err=
64532   fi
64533 else
64534   ac_cpp_err=yes
64535 fi
64536 if test -z "$ac_cpp_err"; then
64537   ac_header_preproc=yes
64538 else
64539   echo "$as_me: failed program was:" >&5
64540 sed 's/^/| /' conftest.$ac_ext >&5
64541
64542   ac_header_preproc=no
64543 fi
64544 rm -f conftest.err conftest.$ac_ext
64545 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64546 echo "${ECHO_T}$ac_header_preproc" >&6
64547
64548 # So?  What about this header?
64549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64550   yes:no: )
64551     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64552 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64555     ac_header_preproc=yes
64556     ;;
64557   no:yes:* )
64558     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64559 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64560     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
64561 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
64562     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64563 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64564     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
64565 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
64566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64568     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64569 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64570     (
64571       cat <<\_ASBOX
64572 ## ----------------------------------------- ##
64573 ## Report this to the package-unused lists.  ##
64574 ## ----------------------------------------- ##
64575 _ASBOX
64576     ) |
64577       sed "s/^/$as_me: WARNING:     /" >&2
64578     ;;
64579 esac
64580 echo "$as_me:$LINENO: checking for $ac_header" >&5
64581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
64582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
64583   echo $ECHO_N "(cached) $ECHO_C" >&6
64584 else
64585   eval "$as_ac_Header=\$ac_header_preproc"
64586 fi
64587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
64588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
64589
64590 fi
64591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
64592   cat >>confdefs.h <<_ACEOF
64593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
64594 _ACEOF
64595  ac_has_wctype_h=yes
64596 else
64597   ac_has_wctype_h=no
64598 fi
64599
64600 done
64601
64602
64603   # Only continue checking if the ISO C99 headers exist and support is on.
64604   if test x"$ac_has_wchar_h" = xyes &&
64605      test x"$ac_has_wctype_h" = xyes &&
64606      test x"$enable_c_mbchar" != xno; then
64607
64608     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
64609     # numeric_limits can instantiate type_traits<wchar_t>
64610     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
64611 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
64612     cat >conftest.$ac_ext <<_ACEOF
64613 /* confdefs.h.  */
64614 _ACEOF
64615 cat confdefs.h >>conftest.$ac_ext
64616 cat >>conftest.$ac_ext <<_ACEOF
64617 /* end confdefs.h.  */
64618 #include <wchar.h>
64619 int
64620 main ()
64621 {
64622 int i = WCHAR_MIN; int j = WCHAR_MAX;
64623   ;
64624   return 0;
64625 }
64626 _ACEOF
64627 rm -f conftest.$ac_objext
64628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64629   (eval $ac_compile) 2>conftest.er1
64630   ac_status=$?
64631   grep -v '^ *+' conftest.er1 >conftest.err
64632   rm -f conftest.er1
64633   cat conftest.err >&5
64634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64635   (exit $ac_status); } &&
64636          { ac_try='test -z "$ac_c_werror_flag"
64637                          || test ! -s conftest.err'
64638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64639   (eval $ac_try) 2>&5
64640   ac_status=$?
64641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64642   (exit $ac_status); }; } &&
64643          { ac_try='test -s conftest.$ac_objext'
64644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64645   (eval $ac_try) 2>&5
64646   ac_status=$?
64647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64648   (exit $ac_status); }; }; then
64649   has_wchar_minmax=yes
64650 else
64651   echo "$as_me: failed program was:" >&5
64652 sed 's/^/| /' conftest.$ac_ext >&5
64653
64654 has_wchar_minmax=no
64655 fi
64656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64657     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
64658 echo "${ECHO_T}$has_wchar_minmax" >&6
64659
64660     # Test wchar.h for WEOF, which is what we use to determine whether
64661     # to specialize for char_traits<wchar_t> or not.
64662     echo "$as_me:$LINENO: checking for WEOF" >&5
64663 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
64664     cat >conftest.$ac_ext <<_ACEOF
64665 /* confdefs.h.  */
64666 _ACEOF
64667 cat confdefs.h >>conftest.$ac_ext
64668 cat >>conftest.$ac_ext <<_ACEOF
64669 /* end confdefs.h.  */
64670
64671       #include <wchar.h>
64672       #include <stddef.h>
64673 int
64674 main ()
64675 {
64676 wint_t i = WEOF;
64677   ;
64678   return 0;
64679 }
64680 _ACEOF
64681 rm -f conftest.$ac_objext
64682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
64683   (eval $ac_compile) 2>conftest.er1
64684   ac_status=$?
64685   grep -v '^ *+' conftest.er1 >conftest.err
64686   rm -f conftest.er1
64687   cat conftest.err >&5
64688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64689   (exit $ac_status); } &&
64690          { ac_try='test -z "$ac_c_werror_flag"
64691                          || test ! -s conftest.err'
64692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64693   (eval $ac_try) 2>&5
64694   ac_status=$?
64695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64696   (exit $ac_status); }; } &&
64697          { ac_try='test -s conftest.$ac_objext'
64698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64699   (eval $ac_try) 2>&5
64700   ac_status=$?
64701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64702   (exit $ac_status); }; }; then
64703   has_weof=yes
64704 else
64705   echo "$as_me: failed program was:" >&5
64706 sed 's/^/| /' conftest.$ac_ext >&5
64707
64708 has_weof=no
64709 fi
64710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
64711     echo "$as_me:$LINENO: result: $has_weof" >&5
64712 echo "${ECHO_T}$has_weof" >&6
64713
64714     # Tests for wide character functions used in char_traits<wchar_t>.
64715     ac_wfuncs=yes
64716
64717
64718
64719
64720
64721
64722 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
64723 do
64724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64725 echo "$as_me:$LINENO: checking for $ac_func" >&5
64726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64727 if eval "test \"\${$as_ac_var+set}\" = set"; then
64728   echo $ECHO_N "(cached) $ECHO_C" >&6
64729 else
64730   if test x$gcc_no_link = xyes; then
64731   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64732 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64733    { (exit 1); exit 1; }; }
64734 fi
64735 cat >conftest.$ac_ext <<_ACEOF
64736 /* confdefs.h.  */
64737 _ACEOF
64738 cat confdefs.h >>conftest.$ac_ext
64739 cat >>conftest.$ac_ext <<_ACEOF
64740 /* end confdefs.h.  */
64741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64743 #define $ac_func innocuous_$ac_func
64744
64745 /* System header to define __stub macros and hopefully few prototypes,
64746     which can conflict with char $ac_func (); below.
64747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64748     <limits.h> exists even on freestanding compilers.  */
64749
64750 #ifdef __STDC__
64751 # include <limits.h>
64752 #else
64753 # include <assert.h>
64754 #endif
64755
64756 #undef $ac_func
64757
64758 /* Override any gcc2 internal prototype to avoid an error.  */
64759 #ifdef __cplusplus
64760 extern "C"
64761 {
64762 #endif
64763 /* We use char because int might match the return type of a gcc2
64764    builtin and then its argument prototype would still apply.  */
64765 char $ac_func ();
64766 /* The GNU C library defines this for functions which it implements
64767     to always fail with ENOSYS.  Some functions are actually named
64768     something starting with __ and the normal name is an alias.  */
64769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64770 choke me
64771 #else
64772 char (*f) () = $ac_func;
64773 #endif
64774 #ifdef __cplusplus
64775 }
64776 #endif
64777
64778 int
64779 main ()
64780 {
64781 return f != $ac_func;
64782   ;
64783   return 0;
64784 }
64785 _ACEOF
64786 rm -f conftest.$ac_objext conftest$ac_exeext
64787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64788   (eval $ac_link) 2>conftest.er1
64789   ac_status=$?
64790   grep -v '^ *+' conftest.er1 >conftest.err
64791   rm -f conftest.er1
64792   cat conftest.err >&5
64793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64794   (exit $ac_status); } &&
64795          { ac_try='test -z "$ac_c_werror_flag"
64796                          || test ! -s conftest.err'
64797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64798   (eval $ac_try) 2>&5
64799   ac_status=$?
64800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64801   (exit $ac_status); }; } &&
64802          { ac_try='test -s conftest$ac_exeext'
64803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64804   (eval $ac_try) 2>&5
64805   ac_status=$?
64806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64807   (exit $ac_status); }; }; then
64808   eval "$as_ac_var=yes"
64809 else
64810   echo "$as_me: failed program was:" >&5
64811 sed 's/^/| /' conftest.$ac_ext >&5
64812
64813 eval "$as_ac_var=no"
64814 fi
64815 rm -f conftest.err conftest.$ac_objext \
64816       conftest$ac_exeext conftest.$ac_ext
64817 fi
64818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64820 if test `eval echo '${'$as_ac_var'}'` = yes; then
64821   cat >>confdefs.h <<_ACEOF
64822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64823 _ACEOF
64824
64825 else
64826   ac_wfuncs=no
64827 fi
64828 done
64829
64830
64831     # Checks for names injected into std:: by the c_std headers.
64832
64833
64834
64835
64836
64837
64838
64839
64840
64841
64842
64843
64844
64845
64846
64847
64848
64849
64850
64851
64852
64853
64854
64855
64856
64857
64858
64859
64860
64861
64862
64863
64864
64865
64866
64867
64868
64869
64870
64871
64872
64873
64874
64875
64876
64877
64878 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
64879     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
64880     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
64881     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
64882     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
64883     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
64884 do
64885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64886 echo "$as_me:$LINENO: checking for $ac_func" >&5
64887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
64888 if eval "test \"\${$as_ac_var+set}\" = set"; then
64889   echo $ECHO_N "(cached) $ECHO_C" >&6
64890 else
64891   if test x$gcc_no_link = xyes; then
64892   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
64893 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
64894    { (exit 1); exit 1; }; }
64895 fi
64896 cat >conftest.$ac_ext <<_ACEOF
64897 /* confdefs.h.  */
64898 _ACEOF
64899 cat confdefs.h >>conftest.$ac_ext
64900 cat >>conftest.$ac_ext <<_ACEOF
64901 /* end confdefs.h.  */
64902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64904 #define $ac_func innocuous_$ac_func
64905
64906 /* System header to define __stub macros and hopefully few prototypes,
64907     which can conflict with char $ac_func (); below.
64908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64909     <limits.h> exists even on freestanding compilers.  */
64910
64911 #ifdef __STDC__
64912 # include <limits.h>
64913 #else
64914 # include <assert.h>
64915 #endif
64916
64917 #undef $ac_func
64918
64919 /* Override any gcc2 internal prototype to avoid an error.  */
64920 #ifdef __cplusplus
64921 extern "C"
64922 {
64923 #endif
64924 /* We use char because int might match the return type of a gcc2
64925    builtin and then its argument prototype would still apply.  */
64926 char $ac_func ();
64927 /* The GNU C library defines this for functions which it implements
64928     to always fail with ENOSYS.  Some functions are actually named
64929     something starting with __ and the normal name is an alias.  */
64930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
64931 choke me
64932 #else
64933 char (*f) () = $ac_func;
64934 #endif
64935 #ifdef __cplusplus
64936 }
64937 #endif
64938
64939 int
64940 main ()
64941 {
64942 return f != $ac_func;
64943   ;
64944   return 0;
64945 }
64946 _ACEOF
64947 rm -f conftest.$ac_objext conftest$ac_exeext
64948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
64949   (eval $ac_link) 2>conftest.er1
64950   ac_status=$?
64951   grep -v '^ *+' conftest.er1 >conftest.err
64952   rm -f conftest.er1
64953   cat conftest.err >&5
64954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64955   (exit $ac_status); } &&
64956          { ac_try='test -z "$ac_c_werror_flag"
64957                          || test ! -s conftest.err'
64958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64959   (eval $ac_try) 2>&5
64960   ac_status=$?
64961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64962   (exit $ac_status); }; } &&
64963          { ac_try='test -s conftest$ac_exeext'
64964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
64965   (eval $ac_try) 2>&5
64966   ac_status=$?
64967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64968   (exit $ac_status); }; }; then
64969   eval "$as_ac_var=yes"
64970 else
64971   echo "$as_me: failed program was:" >&5
64972 sed 's/^/| /' conftest.$ac_ext >&5
64973
64974 eval "$as_ac_var=no"
64975 fi
64976 rm -f conftest.err conftest.$ac_objext \
64977       conftest$ac_exeext conftest.$ac_ext
64978 fi
64979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
64980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
64981 if test `eval echo '${'$as_ac_var'}'` = yes; then
64982   cat >>confdefs.h <<_ACEOF
64983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64984 _ACEOF
64985
64986 else
64987   ac_wfuncs=no
64988 fi
64989 done
64990
64991
64992     # Checks for wide character functions that are not required
64993     # for basic wchar_t support.  Don't disable support if they are missing.
64994     # Injection of these is wrapped with guard macros.
64995
64996
64997
64998
64999
65000 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
65001 do
65002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65003 echo "$as_me:$LINENO: checking for $ac_func" >&5
65004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65005 if eval "test \"\${$as_ac_var+set}\" = set"; then
65006   echo $ECHO_N "(cached) $ECHO_C" >&6
65007 else
65008   if test x$gcc_no_link = xyes; then
65009   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65010 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65011    { (exit 1); exit 1; }; }
65012 fi
65013 cat >conftest.$ac_ext <<_ACEOF
65014 /* confdefs.h.  */
65015 _ACEOF
65016 cat confdefs.h >>conftest.$ac_ext
65017 cat >>conftest.$ac_ext <<_ACEOF
65018 /* end confdefs.h.  */
65019 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65021 #define $ac_func innocuous_$ac_func
65022
65023 /* System header to define __stub macros and hopefully few prototypes,
65024     which can conflict with char $ac_func (); below.
65025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65026     <limits.h> exists even on freestanding compilers.  */
65027
65028 #ifdef __STDC__
65029 # include <limits.h>
65030 #else
65031 # include <assert.h>
65032 #endif
65033
65034 #undef $ac_func
65035
65036 /* Override any gcc2 internal prototype to avoid an error.  */
65037 #ifdef __cplusplus
65038 extern "C"
65039 {
65040 #endif
65041 /* We use char because int might match the return type of a gcc2
65042    builtin and then its argument prototype would still apply.  */
65043 char $ac_func ();
65044 /* The GNU C library defines this for functions which it implements
65045     to always fail with ENOSYS.  Some functions are actually named
65046     something starting with __ and the normal name is an alias.  */
65047 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65048 choke me
65049 #else
65050 char (*f) () = $ac_func;
65051 #endif
65052 #ifdef __cplusplus
65053 }
65054 #endif
65055
65056 int
65057 main ()
65058 {
65059 return f != $ac_func;
65060   ;
65061   return 0;
65062 }
65063 _ACEOF
65064 rm -f conftest.$ac_objext conftest$ac_exeext
65065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65066   (eval $ac_link) 2>conftest.er1
65067   ac_status=$?
65068   grep -v '^ *+' conftest.er1 >conftest.err
65069   rm -f conftest.er1
65070   cat conftest.err >&5
65071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65072   (exit $ac_status); } &&
65073          { ac_try='test -z "$ac_c_werror_flag"
65074                          || test ! -s conftest.err'
65075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65076   (eval $ac_try) 2>&5
65077   ac_status=$?
65078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65079   (exit $ac_status); }; } &&
65080          { ac_try='test -s conftest$ac_exeext'
65081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65082   (eval $ac_try) 2>&5
65083   ac_status=$?
65084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65085   (exit $ac_status); }; }; then
65086   eval "$as_ac_var=yes"
65087 else
65088   echo "$as_me: failed program was:" >&5
65089 sed 's/^/| /' conftest.$ac_ext >&5
65090
65091 eval "$as_ac_var=no"
65092 fi
65093 rm -f conftest.err conftest.$ac_objext \
65094       conftest$ac_exeext conftest.$ac_ext
65095 fi
65096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65098 if test `eval echo '${'$as_ac_var'}'` = yes; then
65099   cat >>confdefs.h <<_ACEOF
65100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65101 _ACEOF
65102
65103 fi
65104 done
65105
65106
65107     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
65108 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
65109     if test x"$has_weof" = xyes &&
65110        test x"$has_wchar_minmax" = xyes &&
65111        test x"$ac_wfuncs" = xyes;
65112     then
65113       ac_isoC99_wchar_t=yes
65114     else
65115       ac_isoC99_wchar_t=no
65116     fi
65117     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
65118 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
65119
65120     # Use iconv for wchar_t to char conversions. As such, check for
65121     # X/Open Portability Guide, version 2 features (XPG2).
65122     if test "${ac_cv_header_iconv_h+set}" = set; then
65123   echo "$as_me:$LINENO: checking for iconv.h" >&5
65124 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
65125 if test "${ac_cv_header_iconv_h+set}" = set; then
65126   echo $ECHO_N "(cached) $ECHO_C" >&6
65127 fi
65128 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
65129 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
65130 else
65131   # Is the header compilable?
65132 echo "$as_me:$LINENO: checking iconv.h usability" >&5
65133 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
65134 cat >conftest.$ac_ext <<_ACEOF
65135 /* confdefs.h.  */
65136 _ACEOF
65137 cat confdefs.h >>conftest.$ac_ext
65138 cat >>conftest.$ac_ext <<_ACEOF
65139 /* end confdefs.h.  */
65140 $ac_includes_default
65141 #include <iconv.h>
65142 _ACEOF
65143 rm -f conftest.$ac_objext
65144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65145   (eval $ac_compile) 2>conftest.er1
65146   ac_status=$?
65147   grep -v '^ *+' conftest.er1 >conftest.err
65148   rm -f conftest.er1
65149   cat conftest.err >&5
65150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65151   (exit $ac_status); } &&
65152          { ac_try='test -z "$ac_c_werror_flag"
65153                          || test ! -s conftest.err'
65154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65155   (eval $ac_try) 2>&5
65156   ac_status=$?
65157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65158   (exit $ac_status); }; } &&
65159          { ac_try='test -s conftest.$ac_objext'
65160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65161   (eval $ac_try) 2>&5
65162   ac_status=$?
65163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65164   (exit $ac_status); }; }; then
65165   ac_header_compiler=yes
65166 else
65167   echo "$as_me: failed program was:" >&5
65168 sed 's/^/| /' conftest.$ac_ext >&5
65169
65170 ac_header_compiler=no
65171 fi
65172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
65174 echo "${ECHO_T}$ac_header_compiler" >&6
65175
65176 # Is the header present?
65177 echo "$as_me:$LINENO: checking iconv.h presence" >&5
65178 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
65179 cat >conftest.$ac_ext <<_ACEOF
65180 /* confdefs.h.  */
65181 _ACEOF
65182 cat confdefs.h >>conftest.$ac_ext
65183 cat >>conftest.$ac_ext <<_ACEOF
65184 /* end confdefs.h.  */
65185 #include <iconv.h>
65186 _ACEOF
65187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
65188   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
65189   ac_status=$?
65190   grep -v '^ *+' conftest.er1 >conftest.err
65191   rm -f conftest.er1
65192   cat conftest.err >&5
65193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65194   (exit $ac_status); } >/dev/null; then
65195   if test -s conftest.err; then
65196     ac_cpp_err=$ac_c_preproc_warn_flag
65197     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
65198   else
65199     ac_cpp_err=
65200   fi
65201 else
65202   ac_cpp_err=yes
65203 fi
65204 if test -z "$ac_cpp_err"; then
65205   ac_header_preproc=yes
65206 else
65207   echo "$as_me: failed program was:" >&5
65208 sed 's/^/| /' conftest.$ac_ext >&5
65209
65210   ac_header_preproc=no
65211 fi
65212 rm -f conftest.err conftest.$ac_ext
65213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
65214 echo "${ECHO_T}$ac_header_preproc" >&6
65215
65216 # So?  What about this header?
65217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
65218   yes:no: )
65219     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
65220 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
65221     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
65222 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
65223     ac_header_preproc=yes
65224     ;;
65225   no:yes:* )
65226     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
65227 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
65228     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
65229 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
65230     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
65231 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
65232     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
65233 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
65234     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
65235 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
65236     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
65237 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
65238     (
65239       cat <<\_ASBOX
65240 ## ----------------------------------------- ##
65241 ## Report this to the package-unused lists.  ##
65242 ## ----------------------------------------- ##
65243 _ASBOX
65244     ) |
65245       sed "s/^/$as_me: WARNING:     /" >&2
65246     ;;
65247 esac
65248 echo "$as_me:$LINENO: checking for iconv.h" >&5
65249 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
65250 if test "${ac_cv_header_iconv_h+set}" = set; then
65251   echo $ECHO_N "(cached) $ECHO_C" >&6
65252 else
65253   ac_cv_header_iconv_h=$ac_header_preproc
65254 fi
65255 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
65256 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
65257
65258 fi
65259 if test $ac_cv_header_iconv_h = yes; then
65260   ac_has_iconv_h=yes
65261 else
65262   ac_has_iconv_h=no
65263 fi
65264
65265
65266     if test "${ac_cv_header_langinfo_h+set}" = set; then
65267   echo "$as_me:$LINENO: checking for langinfo.h" >&5
65268 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
65269 if test "${ac_cv_header_langinfo_h+set}" = set; then
65270   echo $ECHO_N "(cached) $ECHO_C" >&6
65271 fi
65272 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
65273 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
65274 else
65275   # Is the header compilable?
65276 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
65277 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
65278 cat >conftest.$ac_ext <<_ACEOF
65279 /* confdefs.h.  */
65280 _ACEOF
65281 cat confdefs.h >>conftest.$ac_ext
65282 cat >>conftest.$ac_ext <<_ACEOF
65283 /* end confdefs.h.  */
65284 $ac_includes_default
65285 #include <langinfo.h>
65286 _ACEOF
65287 rm -f conftest.$ac_objext
65288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
65289   (eval $ac_compile) 2>conftest.er1
65290   ac_status=$?
65291   grep -v '^ *+' conftest.er1 >conftest.err
65292   rm -f conftest.er1
65293   cat conftest.err >&5
65294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65295   (exit $ac_status); } &&
65296          { ac_try='test -z "$ac_c_werror_flag"
65297                          || test ! -s conftest.err'
65298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65299   (eval $ac_try) 2>&5
65300   ac_status=$?
65301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65302   (exit $ac_status); }; } &&
65303          { ac_try='test -s conftest.$ac_objext'
65304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65305   (eval $ac_try) 2>&5
65306   ac_status=$?
65307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65308   (exit $ac_status); }; }; then
65309   ac_header_compiler=yes
65310 else
65311   echo "$as_me: failed program was:" >&5
65312 sed 's/^/| /' conftest.$ac_ext >&5
65313
65314 ac_header_compiler=no
65315 fi
65316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
65317 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
65318 echo "${ECHO_T}$ac_header_compiler" >&6
65319
65320 # Is the header present?
65321 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
65322 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
65323 cat >conftest.$ac_ext <<_ACEOF
65324 /* confdefs.h.  */
65325 _ACEOF
65326 cat confdefs.h >>conftest.$ac_ext
65327 cat >>conftest.$ac_ext <<_ACEOF
65328 /* end confdefs.h.  */
65329 #include <langinfo.h>
65330 _ACEOF
65331 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
65332   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
65333   ac_status=$?
65334   grep -v '^ *+' conftest.er1 >conftest.err
65335   rm -f conftest.er1
65336   cat conftest.err >&5
65337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65338   (exit $ac_status); } >/dev/null; then
65339   if test -s conftest.err; then
65340     ac_cpp_err=$ac_c_preproc_warn_flag
65341     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
65342   else
65343     ac_cpp_err=
65344   fi
65345 else
65346   ac_cpp_err=yes
65347 fi
65348 if test -z "$ac_cpp_err"; then
65349   ac_header_preproc=yes
65350 else
65351   echo "$as_me: failed program was:" >&5
65352 sed 's/^/| /' conftest.$ac_ext >&5
65353
65354   ac_header_preproc=no
65355 fi
65356 rm -f conftest.err conftest.$ac_ext
65357 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
65358 echo "${ECHO_T}$ac_header_preproc" >&6
65359
65360 # So?  What about this header?
65361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
65362   yes:no: )
65363     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
65364 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
65365     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
65366 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
65367     ac_header_preproc=yes
65368     ;;
65369   no:yes:* )
65370     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
65371 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
65372     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
65373 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
65374     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
65375 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
65376     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
65377 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
65378     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
65379 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
65380     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
65381 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
65382     (
65383       cat <<\_ASBOX
65384 ## ----------------------------------------- ##
65385 ## Report this to the package-unused lists.  ##
65386 ## ----------------------------------------- ##
65387 _ASBOX
65388     ) |
65389       sed "s/^/$as_me: WARNING:     /" >&2
65390     ;;
65391 esac
65392 echo "$as_me:$LINENO: checking for langinfo.h" >&5
65393 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
65394 if test "${ac_cv_header_langinfo_h+set}" = set; then
65395   echo $ECHO_N "(cached) $ECHO_C" >&6
65396 else
65397   ac_cv_header_langinfo_h=$ac_header_preproc
65398 fi
65399 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
65400 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
65401
65402 fi
65403 if test $ac_cv_header_langinfo_h = yes; then
65404   ac_has_langinfo_h=yes
65405 else
65406   ac_has_langinfo_h=no
65407 fi
65408
65409
65410
65411     # Check for existence of libiconv.a providing XPG2 wchar_t support.
65412     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
65413 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
65414 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
65415   echo $ECHO_N "(cached) $ECHO_C" >&6
65416 else
65417   ac_check_lib_save_LIBS=$LIBS
65418 LIBS="-liconv  $LIBS"
65419 if test x$gcc_no_link = xyes; then
65420   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65421 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65422    { (exit 1); exit 1; }; }
65423 fi
65424 cat >conftest.$ac_ext <<_ACEOF
65425 /* confdefs.h.  */
65426 _ACEOF
65427 cat confdefs.h >>conftest.$ac_ext
65428 cat >>conftest.$ac_ext <<_ACEOF
65429 /* end confdefs.h.  */
65430
65431 /* Override any gcc2 internal prototype to avoid an error.  */
65432 #ifdef __cplusplus
65433 extern "C"
65434 #endif
65435 /* We use char because int might match the return type of a gcc2
65436    builtin and then its argument prototype would still apply.  */
65437 char iconv ();
65438 int
65439 main ()
65440 {
65441 iconv ();
65442   ;
65443   return 0;
65444 }
65445 _ACEOF
65446 rm -f conftest.$ac_objext conftest$ac_exeext
65447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65448   (eval $ac_link) 2>conftest.er1
65449   ac_status=$?
65450   grep -v '^ *+' conftest.er1 >conftest.err
65451   rm -f conftest.er1
65452   cat conftest.err >&5
65453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65454   (exit $ac_status); } &&
65455          { ac_try='test -z "$ac_c_werror_flag"
65456                          || test ! -s conftest.err'
65457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65458   (eval $ac_try) 2>&5
65459   ac_status=$?
65460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65461   (exit $ac_status); }; } &&
65462          { ac_try='test -s conftest$ac_exeext'
65463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65464   (eval $ac_try) 2>&5
65465   ac_status=$?
65466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65467   (exit $ac_status); }; }; then
65468   ac_cv_lib_iconv_iconv=yes
65469 else
65470   echo "$as_me: failed program was:" >&5
65471 sed 's/^/| /' conftest.$ac_ext >&5
65472
65473 ac_cv_lib_iconv_iconv=no
65474 fi
65475 rm -f conftest.err conftest.$ac_objext \
65476       conftest$ac_exeext conftest.$ac_ext
65477 LIBS=$ac_check_lib_save_LIBS
65478 fi
65479 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
65480 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
65481 if test $ac_cv_lib_iconv_iconv = yes; then
65482   LIBICONV="-liconv"
65483 fi
65484
65485     ac_save_LIBS="$LIBS"
65486     LIBS="$LIBS $LIBICONV"
65487
65488
65489
65490
65491
65492
65493 for ac_func in iconv_open iconv_close iconv nl_langinfo
65494 do
65495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65496 echo "$as_me:$LINENO: checking for $ac_func" >&5
65497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65498 if eval "test \"\${$as_ac_var+set}\" = set"; then
65499   echo $ECHO_N "(cached) $ECHO_C" >&6
65500 else
65501   if test x$gcc_no_link = xyes; then
65502   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65503 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65504    { (exit 1); exit 1; }; }
65505 fi
65506 cat >conftest.$ac_ext <<_ACEOF
65507 /* confdefs.h.  */
65508 _ACEOF
65509 cat confdefs.h >>conftest.$ac_ext
65510 cat >>conftest.$ac_ext <<_ACEOF
65511 /* end confdefs.h.  */
65512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65514 #define $ac_func innocuous_$ac_func
65515
65516 /* System header to define __stub macros and hopefully few prototypes,
65517     which can conflict with char $ac_func (); below.
65518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65519     <limits.h> exists even on freestanding compilers.  */
65520
65521 #ifdef __STDC__
65522 # include <limits.h>
65523 #else
65524 # include <assert.h>
65525 #endif
65526
65527 #undef $ac_func
65528
65529 /* Override any gcc2 internal prototype to avoid an error.  */
65530 #ifdef __cplusplus
65531 extern "C"
65532 {
65533 #endif
65534 /* We use char because int might match the return type of a gcc2
65535    builtin and then its argument prototype would still apply.  */
65536 char $ac_func ();
65537 /* The GNU C library defines this for functions which it implements
65538     to always fail with ENOSYS.  Some functions are actually named
65539     something starting with __ and the normal name is an alias.  */
65540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65541 choke me
65542 #else
65543 char (*f) () = $ac_func;
65544 #endif
65545 #ifdef __cplusplus
65546 }
65547 #endif
65548
65549 int
65550 main ()
65551 {
65552 return f != $ac_func;
65553   ;
65554   return 0;
65555 }
65556 _ACEOF
65557 rm -f conftest.$ac_objext conftest$ac_exeext
65558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65559   (eval $ac_link) 2>conftest.er1
65560   ac_status=$?
65561   grep -v '^ *+' conftest.er1 >conftest.err
65562   rm -f conftest.er1
65563   cat conftest.err >&5
65564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65565   (exit $ac_status); } &&
65566          { ac_try='test -z "$ac_c_werror_flag"
65567                          || test ! -s conftest.err'
65568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65569   (eval $ac_try) 2>&5
65570   ac_status=$?
65571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65572   (exit $ac_status); }; } &&
65573          { ac_try='test -s conftest$ac_exeext'
65574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65575   (eval $ac_try) 2>&5
65576   ac_status=$?
65577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65578   (exit $ac_status); }; }; then
65579   eval "$as_ac_var=yes"
65580 else
65581   echo "$as_me: failed program was:" >&5
65582 sed 's/^/| /' conftest.$ac_ext >&5
65583
65584 eval "$as_ac_var=no"
65585 fi
65586 rm -f conftest.err conftest.$ac_objext \
65587       conftest$ac_exeext conftest.$ac_ext
65588 fi
65589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65591 if test `eval echo '${'$as_ac_var'}'` = yes; then
65592   cat >>confdefs.h <<_ACEOF
65593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65594 _ACEOF
65595  ac_XPG2funcs=yes
65596 else
65597   ac_XPG2funcs=no
65598 fi
65599 done
65600
65601
65602     LIBS="$ac_save_LIBS"
65603
65604     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
65605 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
65606     if test x"$ac_has_iconv_h" = xyes &&
65607        test x"$ac_has_langinfo_h" = xyes &&
65608        test x"$ac_XPG2funcs" = xyes;
65609     then
65610       ac_XPG2_wchar_t=yes
65611     else
65612       ac_XPG2_wchar_t=no
65613     fi
65614     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
65615 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
65616
65617     # At the moment, only enable wchar_t specializations if all the
65618     # above support is present.
65619     if test x"$ac_isoC99_wchar_t" = xyes &&
65620        test x"$ac_XPG2_wchar_t" = xyes;
65621     then
65622       cat >>confdefs.h <<\_ACEOF
65623 #define _GLIBCXX_USE_WCHAR_T 1
65624 _ACEOF
65625
65626       enable_wchar_t=yes
65627     fi
65628   fi
65629   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
65630 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
65631   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
65632 echo "${ECHO_T}$enable_wchar_t" >&6
65633
65634     cat >>confdefs.h <<\_ACEOF
65635 #define HAVE_COPYSIGN 1
65636 _ACEOF
65637
65638     cat >>confdefs.h <<\_ACEOF
65639 #define HAVE_COPYSIGNF 1
65640 _ACEOF
65641
65642     cat >>confdefs.h <<\_ACEOF
65643 #define HAVE_FINITEF 1
65644 _ACEOF
65645
65646     cat >>confdefs.h <<\_ACEOF
65647 #define HAVE_FINITE 1
65648 _ACEOF
65649
65650     cat >>confdefs.h <<\_ACEOF
65651 #define HAVE_FREXPF 1
65652 _ACEOF
65653
65654     cat >>confdefs.h <<\_ACEOF
65655 #define HAVE_HYPOTF 1
65656 _ACEOF
65657
65658     cat >>confdefs.h <<\_ACEOF
65659 #define HAVE_ISINF 1
65660 _ACEOF
65661
65662     cat >>confdefs.h <<\_ACEOF
65663 #define HAVE_ISINFF 1
65664 _ACEOF
65665
65666     cat >>confdefs.h <<\_ACEOF
65667 #define HAVE_ISNAN 1
65668 _ACEOF
65669
65670     cat >>confdefs.h <<\_ACEOF
65671 #define HAVE_ISNANF 1
65672 _ACEOF
65673
65674     if test x"long_double_math_on_this_cpu" = x"yes"; then
65675       cat >>confdefs.h <<\_ACEOF
65676 #define HAVE_FINITEL 1
65677 _ACEOF
65678
65679       cat >>confdefs.h <<\_ACEOF
65680 #define HAVE_ISINFL 1
65681 _ACEOF
65682
65683       cat >>confdefs.h <<\_ACEOF
65684 #define HAVE_ISNANL 1
65685 _ACEOF
65686
65687     fi
65688     ;;
65689   *-qnx6.1* | *-qnx6.2*)
65690     SECTION_FLAGS='-ffunction-sections -fdata-sections'
65691
65692
65693   # If we're not using GNU ld, then there's no point in even trying these
65694   # tests.  Check for that first.  We should have already tested for gld
65695   # by now (in libtool), but require it now just to be safe...
65696   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
65697   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
65698
65699
65700
65701   # The name set by libtool depends on the version of libtool.  Shame on us
65702   # for depending on an impl detail, but c'est la vie.  Older versions used
65703   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
65704   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
65705   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
65706   # set (hence we're using an older libtool), then set it.
65707   if test x${with_gnu_ld+set} != xset; then
65708     if test x${ac_cv_prog_gnu_ld+set} != xset; then
65709       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
65710       with_gnu_ld=no
65711     else
65712       with_gnu_ld=$ac_cv_prog_gnu_ld
65713     fi
65714   fi
65715
65716   # Start by getting the version number.  I think the libtool test already
65717   # does some of this, but throws away the result.
65718
65719   ldver=`$LD --version 2>/dev/null | head -1 | \
65720          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
65721
65722   glibcxx_gnu_ld_version=`echo $ldver | \
65723          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
65724
65725   # Set --gc-sections.
65726   if test "$with_gnu_ld" = "notbroken"; then
65727     # GNU ld it is!  Joy and bunny rabbits!
65728
65729     # All these tests are for C++; save the language and the compiler flags.
65730     # Need to do this so that g++ won't try to link in libstdc++
65731     ac_test_CFLAGS="${CFLAGS+set}"
65732     ac_save_CFLAGS="$CFLAGS"
65733     CFLAGS='-x c++  -Wl,--gc-sections'
65734
65735     # Check for -Wl,--gc-sections
65736     # XXX This test is broken at the moment, as symbols required for linking
65737     # are now in libsupc++ (not built yet).  In addition, this test has
65738     # cored on solaris in the past.  In addition, --gc-sections doesn't
65739     # really work at the moment (keeps on discarding used sections, first
65740     # .eh_frame and now some of the glibc sections for iconv).
65741     # Bzzzzt.  Thanks for playing, maybe next time.
65742     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
65743 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
65744     if test "$cross_compiling" = yes; then
65745   ac_sectionLDflags=yes
65746 else
65747   cat >conftest.$ac_ext <<_ACEOF
65748 /* confdefs.h.  */
65749 _ACEOF
65750 cat confdefs.h >>conftest.$ac_ext
65751 cat >>conftest.$ac_ext <<_ACEOF
65752 /* end confdefs.h.  */
65753
65754      int main(void)
65755      {
65756        try { throw 1; }
65757        catch (...) { };
65758        return 0;
65759      }
65760
65761 _ACEOF
65762 rm -f conftest$ac_exeext
65763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65764   (eval $ac_link) 2>&5
65765   ac_status=$?
65766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
65768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65769   (eval $ac_try) 2>&5
65770   ac_status=$?
65771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65772   (exit $ac_status); }; }; then
65773   ac_sectionLDflags=yes
65774 else
65775   echo "$as_me: program exited with status $ac_status" >&5
65776 echo "$as_me: failed program was:" >&5
65777 sed 's/^/| /' conftest.$ac_ext >&5
65778
65779 ( exit $ac_status )
65780 ac_sectionLDflags=no
65781 fi
65782 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
65783 fi
65784     if test "$ac_test_CFLAGS" = set; then
65785       CFLAGS="$ac_save_CFLAGS"
65786     else
65787       # this is the suspicious part
65788       CFLAGS=''
65789     fi
65790     if test "$ac_sectionLDflags" = "yes"; then
65791       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
65792     fi
65793     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
65794 echo "${ECHO_T}$ac_sectionLDflags" >&6
65795   fi
65796
65797   # Set linker optimization flags.
65798   if test x"$with_gnu_ld" = x"yes"; then
65799     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
65800   fi
65801
65802
65803
65804
65805
65806
65807 echo "$as_me:$LINENO: checking for main in -lm" >&5
65808 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
65809 if test "${ac_cv_lib_m_main+set}" = set; then
65810   echo $ECHO_N "(cached) $ECHO_C" >&6
65811 else
65812   ac_check_lib_save_LIBS=$LIBS
65813 LIBS="-lm  $LIBS"
65814 if test x$gcc_no_link = xyes; then
65815   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65816 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65817    { (exit 1); exit 1; }; }
65818 fi
65819 cat >conftest.$ac_ext <<_ACEOF
65820 /* confdefs.h.  */
65821 _ACEOF
65822 cat confdefs.h >>conftest.$ac_ext
65823 cat >>conftest.$ac_ext <<_ACEOF
65824 /* end confdefs.h.  */
65825
65826
65827 int
65828 main ()
65829 {
65830 main ();
65831   ;
65832   return 0;
65833 }
65834 _ACEOF
65835 rm -f conftest.$ac_objext conftest$ac_exeext
65836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65837   (eval $ac_link) 2>conftest.er1
65838   ac_status=$?
65839   grep -v '^ *+' conftest.er1 >conftest.err
65840   rm -f conftest.er1
65841   cat conftest.err >&5
65842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65843   (exit $ac_status); } &&
65844          { ac_try='test -z "$ac_c_werror_flag"
65845                          || test ! -s conftest.err'
65846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65847   (eval $ac_try) 2>&5
65848   ac_status=$?
65849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65850   (exit $ac_status); }; } &&
65851          { ac_try='test -s conftest$ac_exeext'
65852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65853   (eval $ac_try) 2>&5
65854   ac_status=$?
65855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65856   (exit $ac_status); }; }; then
65857   ac_cv_lib_m_main=yes
65858 else
65859   echo "$as_me: failed program was:" >&5
65860 sed 's/^/| /' conftest.$ac_ext >&5
65861
65862 ac_cv_lib_m_main=no
65863 fi
65864 rm -f conftest.err conftest.$ac_objext \
65865       conftest$ac_exeext conftest.$ac_ext
65866 LIBS=$ac_check_lib_save_LIBS
65867 fi
65868 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
65869 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
65870 if test $ac_cv_lib_m_main = yes; then
65871   cat >>confdefs.h <<_ACEOF
65872 #define HAVE_LIBM 1
65873 _ACEOF
65874
65875   LIBS="-lm $LIBS"
65876
65877 fi
65878
65879
65880 for ac_func in copysignf
65881 do
65882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65883 echo "$as_me:$LINENO: checking for $ac_func" >&5
65884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65885 if eval "test \"\${$as_ac_var+set}\" = set"; then
65886   echo $ECHO_N "(cached) $ECHO_C" >&6
65887 else
65888   if test x$gcc_no_link = xyes; then
65889   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
65890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
65891    { (exit 1); exit 1; }; }
65892 fi
65893 cat >conftest.$ac_ext <<_ACEOF
65894 /* confdefs.h.  */
65895 _ACEOF
65896 cat confdefs.h >>conftest.$ac_ext
65897 cat >>conftest.$ac_ext <<_ACEOF
65898 /* end confdefs.h.  */
65899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65901 #define $ac_func innocuous_$ac_func
65902
65903 /* System header to define __stub macros and hopefully few prototypes,
65904     which can conflict with char $ac_func (); below.
65905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65906     <limits.h> exists even on freestanding compilers.  */
65907
65908 #ifdef __STDC__
65909 # include <limits.h>
65910 #else
65911 # include <assert.h>
65912 #endif
65913
65914 #undef $ac_func
65915
65916 /* Override any gcc2 internal prototype to avoid an error.  */
65917 #ifdef __cplusplus
65918 extern "C"
65919 {
65920 #endif
65921 /* We use char because int might match the return type of a gcc2
65922    builtin and then its argument prototype would still apply.  */
65923 char $ac_func ();
65924 /* The GNU C library defines this for functions which it implements
65925     to always fail with ENOSYS.  Some functions are actually named
65926     something starting with __ and the normal name is an alias.  */
65927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
65928 choke me
65929 #else
65930 char (*f) () = $ac_func;
65931 #endif
65932 #ifdef __cplusplus
65933 }
65934 #endif
65935
65936 int
65937 main ()
65938 {
65939 return f != $ac_func;
65940   ;
65941   return 0;
65942 }
65943 _ACEOF
65944 rm -f conftest.$ac_objext conftest$ac_exeext
65945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
65946   (eval $ac_link) 2>conftest.er1
65947   ac_status=$?
65948   grep -v '^ *+' conftest.er1 >conftest.err
65949   rm -f conftest.er1
65950   cat conftest.err >&5
65951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65952   (exit $ac_status); } &&
65953          { ac_try='test -z "$ac_c_werror_flag"
65954                          || test ! -s conftest.err'
65955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65956   (eval $ac_try) 2>&5
65957   ac_status=$?
65958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65959   (exit $ac_status); }; } &&
65960          { ac_try='test -s conftest$ac_exeext'
65961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
65962   (eval $ac_try) 2>&5
65963   ac_status=$?
65964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65965   (exit $ac_status); }; }; then
65966   eval "$as_ac_var=yes"
65967 else
65968   echo "$as_me: failed program was:" >&5
65969 sed 's/^/| /' conftest.$ac_ext >&5
65970
65971 eval "$as_ac_var=no"
65972 fi
65973 rm -f conftest.err conftest.$ac_objext \
65974       conftest$ac_exeext conftest.$ac_ext
65975 fi
65976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
65977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
65978 if test `eval echo '${'$as_ac_var'}'` = yes; then
65979   cat >>confdefs.h <<_ACEOF
65980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65981 _ACEOF
65982
65983 else
65984   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
65985 fi
65986 done
65987
65988
65989
65990 for ac_func in __signbit
65991 do
65992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65993 echo "$as_me:$LINENO: checking for $ac_func" >&5
65994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
65995 if eval "test \"\${$as_ac_var+set}\" = set"; then
65996   echo $ECHO_N "(cached) $ECHO_C" >&6
65997 else
65998   if test x$gcc_no_link = xyes; then
65999   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66000 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66001    { (exit 1); exit 1; }; }
66002 fi
66003 cat >conftest.$ac_ext <<_ACEOF
66004 /* confdefs.h.  */
66005 _ACEOF
66006 cat confdefs.h >>conftest.$ac_ext
66007 cat >>conftest.$ac_ext <<_ACEOF
66008 /* end confdefs.h.  */
66009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66011 #define $ac_func innocuous_$ac_func
66012
66013 /* System header to define __stub macros and hopefully few prototypes,
66014     which can conflict with char $ac_func (); below.
66015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66016     <limits.h> exists even on freestanding compilers.  */
66017
66018 #ifdef __STDC__
66019 # include <limits.h>
66020 #else
66021 # include <assert.h>
66022 #endif
66023
66024 #undef $ac_func
66025
66026 /* Override any gcc2 internal prototype to avoid an error.  */
66027 #ifdef __cplusplus
66028 extern "C"
66029 {
66030 #endif
66031 /* We use char because int might match the return type of a gcc2
66032    builtin and then its argument prototype would still apply.  */
66033 char $ac_func ();
66034 /* The GNU C library defines this for functions which it implements
66035     to always fail with ENOSYS.  Some functions are actually named
66036     something starting with __ and the normal name is an alias.  */
66037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66038 choke me
66039 #else
66040 char (*f) () = $ac_func;
66041 #endif
66042 #ifdef __cplusplus
66043 }
66044 #endif
66045
66046 int
66047 main ()
66048 {
66049 return f != $ac_func;
66050   ;
66051   return 0;
66052 }
66053 _ACEOF
66054 rm -f conftest.$ac_objext conftest$ac_exeext
66055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66056   (eval $ac_link) 2>conftest.er1
66057   ac_status=$?
66058   grep -v '^ *+' conftest.er1 >conftest.err
66059   rm -f conftest.er1
66060   cat conftest.err >&5
66061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66062   (exit $ac_status); } &&
66063          { ac_try='test -z "$ac_c_werror_flag"
66064                          || test ! -s conftest.err'
66065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66066   (eval $ac_try) 2>&5
66067   ac_status=$?
66068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66069   (exit $ac_status); }; } &&
66070          { ac_try='test -s conftest$ac_exeext'
66071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66072   (eval $ac_try) 2>&5
66073   ac_status=$?
66074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66075   (exit $ac_status); }; }; then
66076   eval "$as_ac_var=yes"
66077 else
66078   echo "$as_me: failed program was:" >&5
66079 sed 's/^/| /' conftest.$ac_ext >&5
66080
66081 eval "$as_ac_var=no"
66082 fi
66083 rm -f conftest.err conftest.$ac_objext \
66084       conftest$ac_exeext conftest.$ac_ext
66085 fi
66086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66088 if test `eval echo '${'$as_ac_var'}'` = yes; then
66089   cat >>confdefs.h <<_ACEOF
66090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66091 _ACEOF
66092
66093 else
66094   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
66095 fi
66096 done
66097
66098
66099 for ac_func in __signbitf
66100 do
66101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66102 echo "$as_me:$LINENO: checking for $ac_func" >&5
66103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66104 if eval "test \"\${$as_ac_var+set}\" = set"; then
66105   echo $ECHO_N "(cached) $ECHO_C" >&6
66106 else
66107   if test x$gcc_no_link = xyes; then
66108   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66110    { (exit 1); exit 1; }; }
66111 fi
66112 cat >conftest.$ac_ext <<_ACEOF
66113 /* confdefs.h.  */
66114 _ACEOF
66115 cat confdefs.h >>conftest.$ac_ext
66116 cat >>conftest.$ac_ext <<_ACEOF
66117 /* end confdefs.h.  */
66118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66120 #define $ac_func innocuous_$ac_func
66121
66122 /* System header to define __stub macros and hopefully few prototypes,
66123     which can conflict with char $ac_func (); below.
66124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66125     <limits.h> exists even on freestanding compilers.  */
66126
66127 #ifdef __STDC__
66128 # include <limits.h>
66129 #else
66130 # include <assert.h>
66131 #endif
66132
66133 #undef $ac_func
66134
66135 /* Override any gcc2 internal prototype to avoid an error.  */
66136 #ifdef __cplusplus
66137 extern "C"
66138 {
66139 #endif
66140 /* We use char because int might match the return type of a gcc2
66141    builtin and then its argument prototype would still apply.  */
66142 char $ac_func ();
66143 /* The GNU C library defines this for functions which it implements
66144     to always fail with ENOSYS.  Some functions are actually named
66145     something starting with __ and the normal name is an alias.  */
66146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66147 choke me
66148 #else
66149 char (*f) () = $ac_func;
66150 #endif
66151 #ifdef __cplusplus
66152 }
66153 #endif
66154
66155 int
66156 main ()
66157 {
66158 return f != $ac_func;
66159   ;
66160   return 0;
66161 }
66162 _ACEOF
66163 rm -f conftest.$ac_objext conftest$ac_exeext
66164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66165   (eval $ac_link) 2>conftest.er1
66166   ac_status=$?
66167   grep -v '^ *+' conftest.er1 >conftest.err
66168   rm -f conftest.er1
66169   cat conftest.err >&5
66170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66171   (exit $ac_status); } &&
66172          { ac_try='test -z "$ac_c_werror_flag"
66173                          || test ! -s conftest.err'
66174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66175   (eval $ac_try) 2>&5
66176   ac_status=$?
66177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66178   (exit $ac_status); }; } &&
66179          { ac_try='test -s conftest$ac_exeext'
66180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66181   (eval $ac_try) 2>&5
66182   ac_status=$?
66183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66184   (exit $ac_status); }; }; then
66185   eval "$as_ac_var=yes"
66186 else
66187   echo "$as_me: failed program was:" >&5
66188 sed 's/^/| /' conftest.$ac_ext >&5
66189
66190 eval "$as_ac_var=no"
66191 fi
66192 rm -f conftest.err conftest.$ac_objext \
66193       conftest$ac_exeext conftest.$ac_ext
66194 fi
66195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66197 if test `eval echo '${'$as_ac_var'}'` = yes; then
66198   cat >>confdefs.h <<_ACEOF
66199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66200 _ACEOF
66201
66202 else
66203   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
66204 fi
66205 done
66206
66207
66208           if test x$ac_cv_func_copysignl = x"yes"; then
66209
66210 for ac_func in __signbitl
66211 do
66212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66213 echo "$as_me:$LINENO: checking for $ac_func" >&5
66214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66215 if eval "test \"\${$as_ac_var+set}\" = set"; then
66216   echo $ECHO_N "(cached) $ECHO_C" >&6
66217 else
66218   if test x$gcc_no_link = xyes; then
66219   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66220 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66221    { (exit 1); exit 1; }; }
66222 fi
66223 cat >conftest.$ac_ext <<_ACEOF
66224 /* confdefs.h.  */
66225 _ACEOF
66226 cat confdefs.h >>conftest.$ac_ext
66227 cat >>conftest.$ac_ext <<_ACEOF
66228 /* end confdefs.h.  */
66229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66231 #define $ac_func innocuous_$ac_func
66232
66233 /* System header to define __stub macros and hopefully few prototypes,
66234     which can conflict with char $ac_func (); below.
66235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66236     <limits.h> exists even on freestanding compilers.  */
66237
66238 #ifdef __STDC__
66239 # include <limits.h>
66240 #else
66241 # include <assert.h>
66242 #endif
66243
66244 #undef $ac_func
66245
66246 /* Override any gcc2 internal prototype to avoid an error.  */
66247 #ifdef __cplusplus
66248 extern "C"
66249 {
66250 #endif
66251 /* We use char because int might match the return type of a gcc2
66252    builtin and then its argument prototype would still apply.  */
66253 char $ac_func ();
66254 /* The GNU C library defines this for functions which it implements
66255     to always fail with ENOSYS.  Some functions are actually named
66256     something starting with __ and the normal name is an alias.  */
66257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66258 choke me
66259 #else
66260 char (*f) () = $ac_func;
66261 #endif
66262 #ifdef __cplusplus
66263 }
66264 #endif
66265
66266 int
66267 main ()
66268 {
66269 return f != $ac_func;
66270   ;
66271   return 0;
66272 }
66273 _ACEOF
66274 rm -f conftest.$ac_objext conftest$ac_exeext
66275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66276   (eval $ac_link) 2>conftest.er1
66277   ac_status=$?
66278   grep -v '^ *+' conftest.er1 >conftest.err
66279   rm -f conftest.er1
66280   cat conftest.err >&5
66281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66282   (exit $ac_status); } &&
66283          { ac_try='test -z "$ac_c_werror_flag"
66284                          || test ! -s conftest.err'
66285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66286   (eval $ac_try) 2>&5
66287   ac_status=$?
66288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66289   (exit $ac_status); }; } &&
66290          { ac_try='test -s conftest$ac_exeext'
66291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66292   (eval $ac_try) 2>&5
66293   ac_status=$?
66294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66295   (exit $ac_status); }; }; then
66296   eval "$as_ac_var=yes"
66297 else
66298   echo "$as_me: failed program was:" >&5
66299 sed 's/^/| /' conftest.$ac_ext >&5
66300
66301 eval "$as_ac_var=no"
66302 fi
66303 rm -f conftest.err conftest.$ac_objext \
66304       conftest$ac_exeext conftest.$ac_ext
66305 fi
66306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66308 if test `eval echo '${'$as_ac_var'}'` = yes; then
66309   cat >>confdefs.h <<_ACEOF
66310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66311 _ACEOF
66312
66313 else
66314   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
66315 fi
66316 done
66317
66318   fi
66319
66320   # XXX Review this.  Nothing uses it.
66321   if test -n "$LIBMATHOBJS"; then
66322     need_libmath=yes
66323   fi
66324
66325
66326
66327   # Test wchar.h for mbstate_t, which is needed for char_traits and
66328   # others even if wchar_t support is not on.
66329   echo "$as_me:$LINENO: checking for mbstate_t" >&5
66330 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
66331   cat >conftest.$ac_ext <<_ACEOF
66332 /* confdefs.h.  */
66333 _ACEOF
66334 cat confdefs.h >>conftest.$ac_ext
66335 cat >>conftest.$ac_ext <<_ACEOF
66336 /* end confdefs.h.  */
66337 #include <wchar.h>
66338 int
66339 main ()
66340 {
66341 mbstate_t teststate;
66342   ;
66343   return 0;
66344 }
66345 _ACEOF
66346 rm -f conftest.$ac_objext
66347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66348   (eval $ac_compile) 2>conftest.er1
66349   ac_status=$?
66350   grep -v '^ *+' conftest.er1 >conftest.err
66351   rm -f conftest.er1
66352   cat conftest.err >&5
66353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66354   (exit $ac_status); } &&
66355          { ac_try='test -z "$ac_c_werror_flag"
66356                          || test ! -s conftest.err'
66357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66358   (eval $ac_try) 2>&5
66359   ac_status=$?
66360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66361   (exit $ac_status); }; } &&
66362          { ac_try='test -s conftest.$ac_objext'
66363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66364   (eval $ac_try) 2>&5
66365   ac_status=$?
66366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66367   (exit $ac_status); }; }; then
66368   have_mbstate_t=yes
66369 else
66370   echo "$as_me: failed program was:" >&5
66371 sed 's/^/| /' conftest.$ac_ext >&5
66372
66373 have_mbstate_t=no
66374 fi
66375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66376   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
66377 echo "${ECHO_T}$have_mbstate_t" >&6
66378   if test x"$have_mbstate_t" = xyes; then
66379     cat >>confdefs.h <<\_ACEOF
66380 #define HAVE_MBSTATE_T 1
66381 _ACEOF
66382
66383   fi
66384
66385   # Sanity check for existence of ISO C99 headers for extended encoding.
66386
66387 for ac_header in wchar.h
66388 do
66389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66391   echo "$as_me:$LINENO: checking for $ac_header" >&5
66392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66394   echo $ECHO_N "(cached) $ECHO_C" >&6
66395 fi
66396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66398 else
66399   # Is the header compilable?
66400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
66401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
66402 cat >conftest.$ac_ext <<_ACEOF
66403 /* confdefs.h.  */
66404 _ACEOF
66405 cat confdefs.h >>conftest.$ac_ext
66406 cat >>conftest.$ac_ext <<_ACEOF
66407 /* end confdefs.h.  */
66408 $ac_includes_default
66409 #include <$ac_header>
66410 _ACEOF
66411 rm -f conftest.$ac_objext
66412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66413   (eval $ac_compile) 2>conftest.er1
66414   ac_status=$?
66415   grep -v '^ *+' conftest.er1 >conftest.err
66416   rm -f conftest.er1
66417   cat conftest.err >&5
66418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66419   (exit $ac_status); } &&
66420          { ac_try='test -z "$ac_c_werror_flag"
66421                          || test ! -s conftest.err'
66422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66423   (eval $ac_try) 2>&5
66424   ac_status=$?
66425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66426   (exit $ac_status); }; } &&
66427          { ac_try='test -s conftest.$ac_objext'
66428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66429   (eval $ac_try) 2>&5
66430   ac_status=$?
66431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66432   (exit $ac_status); }; }; then
66433   ac_header_compiler=yes
66434 else
66435   echo "$as_me: failed program was:" >&5
66436 sed 's/^/| /' conftest.$ac_ext >&5
66437
66438 ac_header_compiler=no
66439 fi
66440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66442 echo "${ECHO_T}$ac_header_compiler" >&6
66443
66444 # Is the header present?
66445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66447 cat >conftest.$ac_ext <<_ACEOF
66448 /* confdefs.h.  */
66449 _ACEOF
66450 cat confdefs.h >>conftest.$ac_ext
66451 cat >>conftest.$ac_ext <<_ACEOF
66452 /* end confdefs.h.  */
66453 #include <$ac_header>
66454 _ACEOF
66455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66456   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66457   ac_status=$?
66458   grep -v '^ *+' conftest.er1 >conftest.err
66459   rm -f conftest.er1
66460   cat conftest.err >&5
66461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66462   (exit $ac_status); } >/dev/null; then
66463   if test -s conftest.err; then
66464     ac_cpp_err=$ac_c_preproc_warn_flag
66465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66466   else
66467     ac_cpp_err=
66468   fi
66469 else
66470   ac_cpp_err=yes
66471 fi
66472 if test -z "$ac_cpp_err"; then
66473   ac_header_preproc=yes
66474 else
66475   echo "$as_me: failed program was:" >&5
66476 sed 's/^/| /' conftest.$ac_ext >&5
66477
66478   ac_header_preproc=no
66479 fi
66480 rm -f conftest.err conftest.$ac_ext
66481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66482 echo "${ECHO_T}$ac_header_preproc" >&6
66483
66484 # So?  What about this header?
66485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66486   yes:no: )
66487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66491     ac_header_preproc=yes
66492     ;;
66493   no:yes:* )
66494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
66497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
66498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
66501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
66502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66506     (
66507       cat <<\_ASBOX
66508 ## ----------------------------------------- ##
66509 ## Report this to the package-unused lists.  ##
66510 ## ----------------------------------------- ##
66511 _ASBOX
66512     ) |
66513       sed "s/^/$as_me: WARNING:     /" >&2
66514     ;;
66515 esac
66516 echo "$as_me:$LINENO: checking for $ac_header" >&5
66517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66519   echo $ECHO_N "(cached) $ECHO_C" >&6
66520 else
66521   eval "$as_ac_Header=\$ac_header_preproc"
66522 fi
66523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66525
66526 fi
66527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66528   cat >>confdefs.h <<_ACEOF
66529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66530 _ACEOF
66531  ac_has_wchar_h=yes
66532 else
66533   ac_has_wchar_h=no
66534 fi
66535
66536 done
66537
66538
66539 for ac_header in wctype.h
66540 do
66541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
66542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66543   echo "$as_me:$LINENO: checking for $ac_header" >&5
66544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66546   echo $ECHO_N "(cached) $ECHO_C" >&6
66547 fi
66548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66550 else
66551   # Is the header compilable?
66552 echo "$as_me:$LINENO: checking $ac_header usability" >&5
66553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
66554 cat >conftest.$ac_ext <<_ACEOF
66555 /* confdefs.h.  */
66556 _ACEOF
66557 cat confdefs.h >>conftest.$ac_ext
66558 cat >>conftest.$ac_ext <<_ACEOF
66559 /* end confdefs.h.  */
66560 $ac_includes_default
66561 #include <$ac_header>
66562 _ACEOF
66563 rm -f conftest.$ac_objext
66564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66565   (eval $ac_compile) 2>conftest.er1
66566   ac_status=$?
66567   grep -v '^ *+' conftest.er1 >conftest.err
66568   rm -f conftest.er1
66569   cat conftest.err >&5
66570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66571   (exit $ac_status); } &&
66572          { ac_try='test -z "$ac_c_werror_flag"
66573                          || test ! -s conftest.err'
66574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66575   (eval $ac_try) 2>&5
66576   ac_status=$?
66577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66578   (exit $ac_status); }; } &&
66579          { ac_try='test -s conftest.$ac_objext'
66580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66581   (eval $ac_try) 2>&5
66582   ac_status=$?
66583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66584   (exit $ac_status); }; }; then
66585   ac_header_compiler=yes
66586 else
66587   echo "$as_me: failed program was:" >&5
66588 sed 's/^/| /' conftest.$ac_ext >&5
66589
66590 ac_header_compiler=no
66591 fi
66592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66593 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66594 echo "${ECHO_T}$ac_header_compiler" >&6
66595
66596 # Is the header present?
66597 echo "$as_me:$LINENO: checking $ac_header presence" >&5
66598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
66599 cat >conftest.$ac_ext <<_ACEOF
66600 /* confdefs.h.  */
66601 _ACEOF
66602 cat confdefs.h >>conftest.$ac_ext
66603 cat >>conftest.$ac_ext <<_ACEOF
66604 /* end confdefs.h.  */
66605 #include <$ac_header>
66606 _ACEOF
66607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
66608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
66609   ac_status=$?
66610   grep -v '^ *+' conftest.er1 >conftest.err
66611   rm -f conftest.er1
66612   cat conftest.err >&5
66613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66614   (exit $ac_status); } >/dev/null; then
66615   if test -s conftest.err; then
66616     ac_cpp_err=$ac_c_preproc_warn_flag
66617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
66618   else
66619     ac_cpp_err=
66620   fi
66621 else
66622   ac_cpp_err=yes
66623 fi
66624 if test -z "$ac_cpp_err"; then
66625   ac_header_preproc=yes
66626 else
66627   echo "$as_me: failed program was:" >&5
66628 sed 's/^/| /' conftest.$ac_ext >&5
66629
66630   ac_header_preproc=no
66631 fi
66632 rm -f conftest.err conftest.$ac_ext
66633 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66634 echo "${ECHO_T}$ac_header_preproc" >&6
66635
66636 # So?  What about this header?
66637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66638   yes:no: )
66639     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66643     ac_header_preproc=yes
66644     ;;
66645   no:yes:* )
66646     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66648     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
66649 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
66650     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66652     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
66653 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
66654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66656     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66658     (
66659       cat <<\_ASBOX
66660 ## ----------------------------------------- ##
66661 ## Report this to the package-unused lists.  ##
66662 ## ----------------------------------------- ##
66663 _ASBOX
66664     ) |
66665       sed "s/^/$as_me: WARNING:     /" >&2
66666     ;;
66667 esac
66668 echo "$as_me:$LINENO: checking for $ac_header" >&5
66669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
66670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
66671   echo $ECHO_N "(cached) $ECHO_C" >&6
66672 else
66673   eval "$as_ac_Header=\$ac_header_preproc"
66674 fi
66675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
66676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
66677
66678 fi
66679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
66680   cat >>confdefs.h <<_ACEOF
66681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
66682 _ACEOF
66683  ac_has_wctype_h=yes
66684 else
66685   ac_has_wctype_h=no
66686 fi
66687
66688 done
66689
66690
66691   # Only continue checking if the ISO C99 headers exist and support is on.
66692   if test x"$ac_has_wchar_h" = xyes &&
66693      test x"$ac_has_wctype_h" = xyes &&
66694      test x"$enable_c_mbchar" != xno; then
66695
66696     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
66697     # numeric_limits can instantiate type_traits<wchar_t>
66698     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
66699 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
66700     cat >conftest.$ac_ext <<_ACEOF
66701 /* confdefs.h.  */
66702 _ACEOF
66703 cat confdefs.h >>conftest.$ac_ext
66704 cat >>conftest.$ac_ext <<_ACEOF
66705 /* end confdefs.h.  */
66706 #include <wchar.h>
66707 int
66708 main ()
66709 {
66710 int i = WCHAR_MIN; int j = WCHAR_MAX;
66711   ;
66712   return 0;
66713 }
66714 _ACEOF
66715 rm -f conftest.$ac_objext
66716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66717   (eval $ac_compile) 2>conftest.er1
66718   ac_status=$?
66719   grep -v '^ *+' conftest.er1 >conftest.err
66720   rm -f conftest.er1
66721   cat conftest.err >&5
66722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66723   (exit $ac_status); } &&
66724          { ac_try='test -z "$ac_c_werror_flag"
66725                          || test ! -s conftest.err'
66726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66727   (eval $ac_try) 2>&5
66728   ac_status=$?
66729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66730   (exit $ac_status); }; } &&
66731          { ac_try='test -s conftest.$ac_objext'
66732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66733   (eval $ac_try) 2>&5
66734   ac_status=$?
66735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66736   (exit $ac_status); }; }; then
66737   has_wchar_minmax=yes
66738 else
66739   echo "$as_me: failed program was:" >&5
66740 sed 's/^/| /' conftest.$ac_ext >&5
66741
66742 has_wchar_minmax=no
66743 fi
66744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66745     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
66746 echo "${ECHO_T}$has_wchar_minmax" >&6
66747
66748     # Test wchar.h for WEOF, which is what we use to determine whether
66749     # to specialize for char_traits<wchar_t> or not.
66750     echo "$as_me:$LINENO: checking for WEOF" >&5
66751 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
66752     cat >conftest.$ac_ext <<_ACEOF
66753 /* confdefs.h.  */
66754 _ACEOF
66755 cat confdefs.h >>conftest.$ac_ext
66756 cat >>conftest.$ac_ext <<_ACEOF
66757 /* end confdefs.h.  */
66758
66759       #include <wchar.h>
66760       #include <stddef.h>
66761 int
66762 main ()
66763 {
66764 wint_t i = WEOF;
66765   ;
66766   return 0;
66767 }
66768 _ACEOF
66769 rm -f conftest.$ac_objext
66770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
66771   (eval $ac_compile) 2>conftest.er1
66772   ac_status=$?
66773   grep -v '^ *+' conftest.er1 >conftest.err
66774   rm -f conftest.er1
66775   cat conftest.err >&5
66776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66777   (exit $ac_status); } &&
66778          { ac_try='test -z "$ac_c_werror_flag"
66779                          || test ! -s conftest.err'
66780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66781   (eval $ac_try) 2>&5
66782   ac_status=$?
66783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66784   (exit $ac_status); }; } &&
66785          { ac_try='test -s conftest.$ac_objext'
66786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66787   (eval $ac_try) 2>&5
66788   ac_status=$?
66789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66790   (exit $ac_status); }; }; then
66791   has_weof=yes
66792 else
66793   echo "$as_me: failed program was:" >&5
66794 sed 's/^/| /' conftest.$ac_ext >&5
66795
66796 has_weof=no
66797 fi
66798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
66799     echo "$as_me:$LINENO: result: $has_weof" >&5
66800 echo "${ECHO_T}$has_weof" >&6
66801
66802     # Tests for wide character functions used in char_traits<wchar_t>.
66803     ac_wfuncs=yes
66804
66805
66806
66807
66808
66809
66810 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
66811 do
66812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66813 echo "$as_me:$LINENO: checking for $ac_func" >&5
66814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66815 if eval "test \"\${$as_ac_var+set}\" = set"; then
66816   echo $ECHO_N "(cached) $ECHO_C" >&6
66817 else
66818   if test x$gcc_no_link = xyes; then
66819   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66820 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66821    { (exit 1); exit 1; }; }
66822 fi
66823 cat >conftest.$ac_ext <<_ACEOF
66824 /* confdefs.h.  */
66825 _ACEOF
66826 cat confdefs.h >>conftest.$ac_ext
66827 cat >>conftest.$ac_ext <<_ACEOF
66828 /* end confdefs.h.  */
66829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66831 #define $ac_func innocuous_$ac_func
66832
66833 /* System header to define __stub macros and hopefully few prototypes,
66834     which can conflict with char $ac_func (); below.
66835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66836     <limits.h> exists even on freestanding compilers.  */
66837
66838 #ifdef __STDC__
66839 # include <limits.h>
66840 #else
66841 # include <assert.h>
66842 #endif
66843
66844 #undef $ac_func
66845
66846 /* Override any gcc2 internal prototype to avoid an error.  */
66847 #ifdef __cplusplus
66848 extern "C"
66849 {
66850 #endif
66851 /* We use char because int might match the return type of a gcc2
66852    builtin and then its argument prototype would still apply.  */
66853 char $ac_func ();
66854 /* The GNU C library defines this for functions which it implements
66855     to always fail with ENOSYS.  Some functions are actually named
66856     something starting with __ and the normal name is an alias.  */
66857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
66858 choke me
66859 #else
66860 char (*f) () = $ac_func;
66861 #endif
66862 #ifdef __cplusplus
66863 }
66864 #endif
66865
66866 int
66867 main ()
66868 {
66869 return f != $ac_func;
66870   ;
66871   return 0;
66872 }
66873 _ACEOF
66874 rm -f conftest.$ac_objext conftest$ac_exeext
66875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
66876   (eval $ac_link) 2>conftest.er1
66877   ac_status=$?
66878   grep -v '^ *+' conftest.er1 >conftest.err
66879   rm -f conftest.er1
66880   cat conftest.err >&5
66881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66882   (exit $ac_status); } &&
66883          { ac_try='test -z "$ac_c_werror_flag"
66884                          || test ! -s conftest.err'
66885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66886   (eval $ac_try) 2>&5
66887   ac_status=$?
66888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66889   (exit $ac_status); }; } &&
66890          { ac_try='test -s conftest$ac_exeext'
66891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
66892   (eval $ac_try) 2>&5
66893   ac_status=$?
66894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66895   (exit $ac_status); }; }; then
66896   eval "$as_ac_var=yes"
66897 else
66898   echo "$as_me: failed program was:" >&5
66899 sed 's/^/| /' conftest.$ac_ext >&5
66900
66901 eval "$as_ac_var=no"
66902 fi
66903 rm -f conftest.err conftest.$ac_objext \
66904       conftest$ac_exeext conftest.$ac_ext
66905 fi
66906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
66907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
66908 if test `eval echo '${'$as_ac_var'}'` = yes; then
66909   cat >>confdefs.h <<_ACEOF
66910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66911 _ACEOF
66912
66913 else
66914   ac_wfuncs=no
66915 fi
66916 done
66917
66918
66919     # Checks for names injected into std:: by the c_std headers.
66920
66921
66922
66923
66924
66925
66926
66927
66928
66929
66930
66931
66932
66933
66934
66935
66936
66937
66938
66939
66940
66941
66942
66943
66944
66945
66946
66947
66948
66949
66950
66951
66952
66953
66954
66955
66956
66957
66958
66959
66960
66961
66962
66963
66964
66965
66966 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
66967     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
66968     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
66969     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
66970     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
66971     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
66972 do
66973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66974 echo "$as_me:$LINENO: checking for $ac_func" >&5
66975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
66976 if eval "test \"\${$as_ac_var+set}\" = set"; then
66977   echo $ECHO_N "(cached) $ECHO_C" >&6
66978 else
66979   if test x$gcc_no_link = xyes; then
66980   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
66981 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
66982    { (exit 1); exit 1; }; }
66983 fi
66984 cat >conftest.$ac_ext <<_ACEOF
66985 /* confdefs.h.  */
66986 _ACEOF
66987 cat confdefs.h >>conftest.$ac_ext
66988 cat >>conftest.$ac_ext <<_ACEOF
66989 /* end confdefs.h.  */
66990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66992 #define $ac_func innocuous_$ac_func
66993
66994 /* System header to define __stub macros and hopefully few prototypes,
66995     which can conflict with char $ac_func (); below.
66996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66997     <limits.h> exists even on freestanding compilers.  */
66998
66999 #ifdef __STDC__
67000 # include <limits.h>
67001 #else
67002 # include <assert.h>
67003 #endif
67004
67005 #undef $ac_func
67006
67007 /* Override any gcc2 internal prototype to avoid an error.  */
67008 #ifdef __cplusplus
67009 extern "C"
67010 {
67011 #endif
67012 /* We use char because int might match the return type of a gcc2
67013    builtin and then its argument prototype would still apply.  */
67014 char $ac_func ();
67015 /* The GNU C library defines this for functions which it implements
67016     to always fail with ENOSYS.  Some functions are actually named
67017     something starting with __ and the normal name is an alias.  */
67018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
67019 choke me
67020 #else
67021 char (*f) () = $ac_func;
67022 #endif
67023 #ifdef __cplusplus
67024 }
67025 #endif
67026
67027 int
67028 main ()
67029 {
67030 return f != $ac_func;
67031   ;
67032   return 0;
67033 }
67034 _ACEOF
67035 rm -f conftest.$ac_objext conftest$ac_exeext
67036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67037   (eval $ac_link) 2>conftest.er1
67038   ac_status=$?
67039   grep -v '^ *+' conftest.er1 >conftest.err
67040   rm -f conftest.er1
67041   cat conftest.err >&5
67042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67043   (exit $ac_status); } &&
67044          { ac_try='test -z "$ac_c_werror_flag"
67045                          || test ! -s conftest.err'
67046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67047   (eval $ac_try) 2>&5
67048   ac_status=$?
67049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67050   (exit $ac_status); }; } &&
67051          { ac_try='test -s conftest$ac_exeext'
67052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67053   (eval $ac_try) 2>&5
67054   ac_status=$?
67055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67056   (exit $ac_status); }; }; then
67057   eval "$as_ac_var=yes"
67058 else
67059   echo "$as_me: failed program was:" >&5
67060 sed 's/^/| /' conftest.$ac_ext >&5
67061
67062 eval "$as_ac_var=no"
67063 fi
67064 rm -f conftest.err conftest.$ac_objext \
67065       conftest$ac_exeext conftest.$ac_ext
67066 fi
67067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
67068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
67069 if test `eval echo '${'$as_ac_var'}'` = yes; then
67070   cat >>confdefs.h <<_ACEOF
67071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67072 _ACEOF
67073
67074 else
67075   ac_wfuncs=no
67076 fi
67077 done
67078
67079
67080     # Checks for wide character functions that are not required
67081     # for basic wchar_t support.  Don't disable support if they are missing.
67082     # Injection of these is wrapped with guard macros.
67083
67084
67085
67086
67087
67088 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
67089 do
67090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67091 echo "$as_me:$LINENO: checking for $ac_func" >&5
67092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
67093 if eval "test \"\${$as_ac_var+set}\" = set"; then
67094   echo $ECHO_N "(cached) $ECHO_C" >&6
67095 else
67096   if test x$gcc_no_link = xyes; then
67097   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67099    { (exit 1); exit 1; }; }
67100 fi
67101 cat >conftest.$ac_ext <<_ACEOF
67102 /* confdefs.h.  */
67103 _ACEOF
67104 cat confdefs.h >>conftest.$ac_ext
67105 cat >>conftest.$ac_ext <<_ACEOF
67106 /* end confdefs.h.  */
67107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67109 #define $ac_func innocuous_$ac_func
67110
67111 /* System header to define __stub macros and hopefully few prototypes,
67112     which can conflict with char $ac_func (); below.
67113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67114     <limits.h> exists even on freestanding compilers.  */
67115
67116 #ifdef __STDC__
67117 # include <limits.h>
67118 #else
67119 # include <assert.h>
67120 #endif
67121
67122 #undef $ac_func
67123
67124 /* Override any gcc2 internal prototype to avoid an error.  */
67125 #ifdef __cplusplus
67126 extern "C"
67127 {
67128 #endif
67129 /* We use char because int might match the return type of a gcc2
67130    builtin and then its argument prototype would still apply.  */
67131 char $ac_func ();
67132 /* The GNU C library defines this for functions which it implements
67133     to always fail with ENOSYS.  Some functions are actually named
67134     something starting with __ and the normal name is an alias.  */
67135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
67136 choke me
67137 #else
67138 char (*f) () = $ac_func;
67139 #endif
67140 #ifdef __cplusplus
67141 }
67142 #endif
67143
67144 int
67145 main ()
67146 {
67147 return f != $ac_func;
67148   ;
67149   return 0;
67150 }
67151 _ACEOF
67152 rm -f conftest.$ac_objext conftest$ac_exeext
67153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67154   (eval $ac_link) 2>conftest.er1
67155   ac_status=$?
67156   grep -v '^ *+' conftest.er1 >conftest.err
67157   rm -f conftest.er1
67158   cat conftest.err >&5
67159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67160   (exit $ac_status); } &&
67161          { ac_try='test -z "$ac_c_werror_flag"
67162                          || test ! -s conftest.err'
67163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67164   (eval $ac_try) 2>&5
67165   ac_status=$?
67166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67167   (exit $ac_status); }; } &&
67168          { ac_try='test -s conftest$ac_exeext'
67169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67170   (eval $ac_try) 2>&5
67171   ac_status=$?
67172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67173   (exit $ac_status); }; }; then
67174   eval "$as_ac_var=yes"
67175 else
67176   echo "$as_me: failed program was:" >&5
67177 sed 's/^/| /' conftest.$ac_ext >&5
67178
67179 eval "$as_ac_var=no"
67180 fi
67181 rm -f conftest.err conftest.$ac_objext \
67182       conftest$ac_exeext conftest.$ac_ext
67183 fi
67184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
67185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
67186 if test `eval echo '${'$as_ac_var'}'` = yes; then
67187   cat >>confdefs.h <<_ACEOF
67188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67189 _ACEOF
67190
67191 fi
67192 done
67193
67194
67195     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
67196 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
67197     if test x"$has_weof" = xyes &&
67198        test x"$has_wchar_minmax" = xyes &&
67199        test x"$ac_wfuncs" = xyes;
67200     then
67201       ac_isoC99_wchar_t=yes
67202     else
67203       ac_isoC99_wchar_t=no
67204     fi
67205     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
67206 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
67207
67208     # Use iconv for wchar_t to char conversions. As such, check for
67209     # X/Open Portability Guide, version 2 features (XPG2).
67210     if test "${ac_cv_header_iconv_h+set}" = set; then
67211   echo "$as_me:$LINENO: checking for iconv.h" >&5
67212 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
67213 if test "${ac_cv_header_iconv_h+set}" = set; then
67214   echo $ECHO_N "(cached) $ECHO_C" >&6
67215 fi
67216 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
67217 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
67218 else
67219   # Is the header compilable?
67220 echo "$as_me:$LINENO: checking iconv.h usability" >&5
67221 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
67222 cat >conftest.$ac_ext <<_ACEOF
67223 /* confdefs.h.  */
67224 _ACEOF
67225 cat confdefs.h >>conftest.$ac_ext
67226 cat >>conftest.$ac_ext <<_ACEOF
67227 /* end confdefs.h.  */
67228 $ac_includes_default
67229 #include <iconv.h>
67230 _ACEOF
67231 rm -f conftest.$ac_objext
67232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67233   (eval $ac_compile) 2>conftest.er1
67234   ac_status=$?
67235   grep -v '^ *+' conftest.er1 >conftest.err
67236   rm -f conftest.er1
67237   cat conftest.err >&5
67238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67239   (exit $ac_status); } &&
67240          { ac_try='test -z "$ac_c_werror_flag"
67241                          || test ! -s conftest.err'
67242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67243   (eval $ac_try) 2>&5
67244   ac_status=$?
67245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67246   (exit $ac_status); }; } &&
67247          { ac_try='test -s conftest.$ac_objext'
67248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67249   (eval $ac_try) 2>&5
67250   ac_status=$?
67251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67252   (exit $ac_status); }; }; then
67253   ac_header_compiler=yes
67254 else
67255   echo "$as_me: failed program was:" >&5
67256 sed 's/^/| /' conftest.$ac_ext >&5
67257
67258 ac_header_compiler=no
67259 fi
67260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67261 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67262 echo "${ECHO_T}$ac_header_compiler" >&6
67263
67264 # Is the header present?
67265 echo "$as_me:$LINENO: checking iconv.h presence" >&5
67266 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
67267 cat >conftest.$ac_ext <<_ACEOF
67268 /* confdefs.h.  */
67269 _ACEOF
67270 cat confdefs.h >>conftest.$ac_ext
67271 cat >>conftest.$ac_ext <<_ACEOF
67272 /* end confdefs.h.  */
67273 #include <iconv.h>
67274 _ACEOF
67275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67276   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67277   ac_status=$?
67278   grep -v '^ *+' conftest.er1 >conftest.err
67279   rm -f conftest.er1
67280   cat conftest.err >&5
67281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67282   (exit $ac_status); } >/dev/null; then
67283   if test -s conftest.err; then
67284     ac_cpp_err=$ac_c_preproc_warn_flag
67285     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67286   else
67287     ac_cpp_err=
67288   fi
67289 else
67290   ac_cpp_err=yes
67291 fi
67292 if test -z "$ac_cpp_err"; then
67293   ac_header_preproc=yes
67294 else
67295   echo "$as_me: failed program was:" >&5
67296 sed 's/^/| /' conftest.$ac_ext >&5
67297
67298   ac_header_preproc=no
67299 fi
67300 rm -f conftest.err conftest.$ac_ext
67301 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67302 echo "${ECHO_T}$ac_header_preproc" >&6
67303
67304 # So?  What about this header?
67305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67306   yes:no: )
67307     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
67308 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
67309     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
67310 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
67311     ac_header_preproc=yes
67312     ;;
67313   no:yes:* )
67314     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
67315 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
67316     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
67317 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
67318     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
67319 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
67320     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
67321 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
67322     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
67323 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
67324     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
67325 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
67326     (
67327       cat <<\_ASBOX
67328 ## ----------------------------------------- ##
67329 ## Report this to the package-unused lists.  ##
67330 ## ----------------------------------------- ##
67331 _ASBOX
67332     ) |
67333       sed "s/^/$as_me: WARNING:     /" >&2
67334     ;;
67335 esac
67336 echo "$as_me:$LINENO: checking for iconv.h" >&5
67337 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
67338 if test "${ac_cv_header_iconv_h+set}" = set; then
67339   echo $ECHO_N "(cached) $ECHO_C" >&6
67340 else
67341   ac_cv_header_iconv_h=$ac_header_preproc
67342 fi
67343 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
67344 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
67345
67346 fi
67347 if test $ac_cv_header_iconv_h = yes; then
67348   ac_has_iconv_h=yes
67349 else
67350   ac_has_iconv_h=no
67351 fi
67352
67353
67354     if test "${ac_cv_header_langinfo_h+set}" = set; then
67355   echo "$as_me:$LINENO: checking for langinfo.h" >&5
67356 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
67357 if test "${ac_cv_header_langinfo_h+set}" = set; then
67358   echo $ECHO_N "(cached) $ECHO_C" >&6
67359 fi
67360 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
67361 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
67362 else
67363   # Is the header compilable?
67364 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
67365 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
67366 cat >conftest.$ac_ext <<_ACEOF
67367 /* confdefs.h.  */
67368 _ACEOF
67369 cat confdefs.h >>conftest.$ac_ext
67370 cat >>conftest.$ac_ext <<_ACEOF
67371 /* end confdefs.h.  */
67372 $ac_includes_default
67373 #include <langinfo.h>
67374 _ACEOF
67375 rm -f conftest.$ac_objext
67376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
67377   (eval $ac_compile) 2>conftest.er1
67378   ac_status=$?
67379   grep -v '^ *+' conftest.er1 >conftest.err
67380   rm -f conftest.er1
67381   cat conftest.err >&5
67382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67383   (exit $ac_status); } &&
67384          { ac_try='test -z "$ac_c_werror_flag"
67385                          || test ! -s conftest.err'
67386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67387   (eval $ac_try) 2>&5
67388   ac_status=$?
67389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67390   (exit $ac_status); }; } &&
67391          { ac_try='test -s conftest.$ac_objext'
67392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67393   (eval $ac_try) 2>&5
67394   ac_status=$?
67395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67396   (exit $ac_status); }; }; then
67397   ac_header_compiler=yes
67398 else
67399   echo "$as_me: failed program was:" >&5
67400 sed 's/^/| /' conftest.$ac_ext >&5
67401
67402 ac_header_compiler=no
67403 fi
67404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
67405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
67406 echo "${ECHO_T}$ac_header_compiler" >&6
67407
67408 # Is the header present?
67409 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
67410 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
67411 cat >conftest.$ac_ext <<_ACEOF
67412 /* confdefs.h.  */
67413 _ACEOF
67414 cat confdefs.h >>conftest.$ac_ext
67415 cat >>conftest.$ac_ext <<_ACEOF
67416 /* end confdefs.h.  */
67417 #include <langinfo.h>
67418 _ACEOF
67419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
67420   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
67421   ac_status=$?
67422   grep -v '^ *+' conftest.er1 >conftest.err
67423   rm -f conftest.er1
67424   cat conftest.err >&5
67425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67426   (exit $ac_status); } >/dev/null; then
67427   if test -s conftest.err; then
67428     ac_cpp_err=$ac_c_preproc_warn_flag
67429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
67430   else
67431     ac_cpp_err=
67432   fi
67433 else
67434   ac_cpp_err=yes
67435 fi
67436 if test -z "$ac_cpp_err"; then
67437   ac_header_preproc=yes
67438 else
67439   echo "$as_me: failed program was:" >&5
67440 sed 's/^/| /' conftest.$ac_ext >&5
67441
67442   ac_header_preproc=no
67443 fi
67444 rm -f conftest.err conftest.$ac_ext
67445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
67446 echo "${ECHO_T}$ac_header_preproc" >&6
67447
67448 # So?  What about this header?
67449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
67450   yes:no: )
67451     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
67452 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
67453     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
67454 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
67455     ac_header_preproc=yes
67456     ;;
67457   no:yes:* )
67458     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
67459 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
67460     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
67461 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
67462     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
67463 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
67464     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
67465 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
67466     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
67467 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
67468     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
67469 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
67470     (
67471       cat <<\_ASBOX
67472 ## ----------------------------------------- ##
67473 ## Report this to the package-unused lists.  ##
67474 ## ----------------------------------------- ##
67475 _ASBOX
67476     ) |
67477       sed "s/^/$as_me: WARNING:     /" >&2
67478     ;;
67479 esac
67480 echo "$as_me:$LINENO: checking for langinfo.h" >&5
67481 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
67482 if test "${ac_cv_header_langinfo_h+set}" = set; then
67483   echo $ECHO_N "(cached) $ECHO_C" >&6
67484 else
67485   ac_cv_header_langinfo_h=$ac_header_preproc
67486 fi
67487 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
67488 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
67489
67490 fi
67491 if test $ac_cv_header_langinfo_h = yes; then
67492   ac_has_langinfo_h=yes
67493 else
67494   ac_has_langinfo_h=no
67495 fi
67496
67497
67498
67499     # Check for existence of libiconv.a providing XPG2 wchar_t support.
67500     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
67501 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
67502 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
67503   echo $ECHO_N "(cached) $ECHO_C" >&6
67504 else
67505   ac_check_lib_save_LIBS=$LIBS
67506 LIBS="-liconv  $LIBS"
67507 if test x$gcc_no_link = xyes; then
67508   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67509 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67510    { (exit 1); exit 1; }; }
67511 fi
67512 cat >conftest.$ac_ext <<_ACEOF
67513 /* confdefs.h.  */
67514 _ACEOF
67515 cat confdefs.h >>conftest.$ac_ext
67516 cat >>conftest.$ac_ext <<_ACEOF
67517 /* end confdefs.h.  */
67518
67519 /* Override any gcc2 internal prototype to avoid an error.  */
67520 #ifdef __cplusplus
67521 extern "C"
67522 #endif
67523 /* We use char because int might match the return type of a gcc2
67524    builtin and then its argument prototype would still apply.  */
67525 char iconv ();
67526 int
67527 main ()
67528 {
67529 iconv ();
67530   ;
67531   return 0;
67532 }
67533 _ACEOF
67534 rm -f conftest.$ac_objext conftest$ac_exeext
67535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67536   (eval $ac_link) 2>conftest.er1
67537   ac_status=$?
67538   grep -v '^ *+' conftest.er1 >conftest.err
67539   rm -f conftest.er1
67540   cat conftest.err >&5
67541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67542   (exit $ac_status); } &&
67543          { ac_try='test -z "$ac_c_werror_flag"
67544                          || test ! -s conftest.err'
67545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67546   (eval $ac_try) 2>&5
67547   ac_status=$?
67548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67549   (exit $ac_status); }; } &&
67550          { ac_try='test -s conftest$ac_exeext'
67551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67552   (eval $ac_try) 2>&5
67553   ac_status=$?
67554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67555   (exit $ac_status); }; }; then
67556   ac_cv_lib_iconv_iconv=yes
67557 else
67558   echo "$as_me: failed program was:" >&5
67559 sed 's/^/| /' conftest.$ac_ext >&5
67560
67561 ac_cv_lib_iconv_iconv=no
67562 fi
67563 rm -f conftest.err conftest.$ac_objext \
67564       conftest$ac_exeext conftest.$ac_ext
67565 LIBS=$ac_check_lib_save_LIBS
67566 fi
67567 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
67568 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
67569 if test $ac_cv_lib_iconv_iconv = yes; then
67570   LIBICONV="-liconv"
67571 fi
67572
67573     ac_save_LIBS="$LIBS"
67574     LIBS="$LIBS $LIBICONV"
67575
67576
67577
67578
67579
67580
67581 for ac_func in iconv_open iconv_close iconv nl_langinfo
67582 do
67583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67584 echo "$as_me:$LINENO: checking for $ac_func" >&5
67585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
67586 if eval "test \"\${$as_ac_var+set}\" = set"; then
67587   echo $ECHO_N "(cached) $ECHO_C" >&6
67588 else
67589   if test x$gcc_no_link = xyes; then
67590   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
67591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
67592    { (exit 1); exit 1; }; }
67593 fi
67594 cat >conftest.$ac_ext <<_ACEOF
67595 /* confdefs.h.  */
67596 _ACEOF
67597 cat confdefs.h >>conftest.$ac_ext
67598 cat >>conftest.$ac_ext <<_ACEOF
67599 /* end confdefs.h.  */
67600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67602 #define $ac_func innocuous_$ac_func
67603
67604 /* System header to define __stub macros and hopefully few prototypes,
67605     which can conflict with char $ac_func (); below.
67606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67607     <limits.h> exists even on freestanding compilers.  */
67608
67609 #ifdef __STDC__
67610 # include <limits.h>
67611 #else
67612 # include <assert.h>
67613 #endif
67614
67615 #undef $ac_func
67616
67617 /* Override any gcc2 internal prototype to avoid an error.  */
67618 #ifdef __cplusplus
67619 extern "C"
67620 {
67621 #endif
67622 /* We use char because int might match the return type of a gcc2
67623    builtin and then its argument prototype would still apply.  */
67624 char $ac_func ();
67625 /* The GNU C library defines this for functions which it implements
67626     to always fail with ENOSYS.  Some functions are actually named
67627     something starting with __ and the normal name is an alias.  */
67628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
67629 choke me
67630 #else
67631 char (*f) () = $ac_func;
67632 #endif
67633 #ifdef __cplusplus
67634 }
67635 #endif
67636
67637 int
67638 main ()
67639 {
67640 return f != $ac_func;
67641   ;
67642   return 0;
67643 }
67644 _ACEOF
67645 rm -f conftest.$ac_objext conftest$ac_exeext
67646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67647   (eval $ac_link) 2>conftest.er1
67648   ac_status=$?
67649   grep -v '^ *+' conftest.er1 >conftest.err
67650   rm -f conftest.er1
67651   cat conftest.err >&5
67652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67653   (exit $ac_status); } &&
67654          { ac_try='test -z "$ac_c_werror_flag"
67655                          || test ! -s conftest.err'
67656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67657   (eval $ac_try) 2>&5
67658   ac_status=$?
67659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67660   (exit $ac_status); }; } &&
67661          { ac_try='test -s conftest$ac_exeext'
67662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
67663   (eval $ac_try) 2>&5
67664   ac_status=$?
67665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67666   (exit $ac_status); }; }; then
67667   eval "$as_ac_var=yes"
67668 else
67669   echo "$as_me: failed program was:" >&5
67670 sed 's/^/| /' conftest.$ac_ext >&5
67671
67672 eval "$as_ac_var=no"
67673 fi
67674 rm -f conftest.err conftest.$ac_objext \
67675       conftest$ac_exeext conftest.$ac_ext
67676 fi
67677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
67678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
67679 if test `eval echo '${'$as_ac_var'}'` = yes; then
67680   cat >>confdefs.h <<_ACEOF
67681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67682 _ACEOF
67683  ac_XPG2funcs=yes
67684 else
67685   ac_XPG2funcs=no
67686 fi
67687 done
67688
67689
67690     LIBS="$ac_save_LIBS"
67691
67692     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
67693 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
67694     if test x"$ac_has_iconv_h" = xyes &&
67695        test x"$ac_has_langinfo_h" = xyes &&
67696        test x"$ac_XPG2funcs" = xyes;
67697     then
67698       ac_XPG2_wchar_t=yes
67699     else
67700       ac_XPG2_wchar_t=no
67701     fi
67702     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
67703 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
67704
67705     # At the moment, only enable wchar_t specializations if all the
67706     # above support is present.
67707     if test x"$ac_isoC99_wchar_t" = xyes &&
67708        test x"$ac_XPG2_wchar_t" = xyes;
67709     then
67710       cat >>confdefs.h <<\_ACEOF
67711 #define _GLIBCXX_USE_WCHAR_T 1
67712 _ACEOF
67713
67714       enable_wchar_t=yes
67715     fi
67716   fi
67717   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
67718 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
67719   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
67720 echo "${ECHO_T}$enable_wchar_t" >&6
67721
67722     cat >>confdefs.h <<\_ACEOF
67723 #define HAVE_COSF 1
67724 _ACEOF
67725
67726     cat >>confdefs.h <<\_ACEOF
67727 #define HAVE_COSL 1
67728 _ACEOF
67729
67730     cat >>confdefs.h <<\_ACEOF
67731 #define HAVE_COSHF 1
67732 _ACEOF
67733
67734     cat >>confdefs.h <<\_ACEOF
67735 #define HAVE_COSHL 1
67736 _ACEOF
67737
67738     cat >>confdefs.h <<\_ACEOF
67739 #define HAVE_LOGF 1
67740 _ACEOF
67741
67742     cat >>confdefs.h <<\_ACEOF
67743 #define HAVE_LOGL 1
67744 _ACEOF
67745
67746     cat >>confdefs.h <<\_ACEOF
67747 #define HAVE_LOG10F 1
67748 _ACEOF
67749
67750     cat >>confdefs.h <<\_ACEOF
67751 #define HAVE_LOG10L 1
67752 _ACEOF
67753
67754     cat >>confdefs.h <<\_ACEOF
67755 #define HAVE_SINF 1
67756 _ACEOF
67757
67758     cat >>confdefs.h <<\_ACEOF
67759 #define HAVE_SINL 1
67760 _ACEOF
67761
67762     cat >>confdefs.h <<\_ACEOF
67763 #define HAVE_SINHF 1
67764 _ACEOF
67765
67766     cat >>confdefs.h <<\_ACEOF
67767 #define HAVE_SINHL 1
67768 _ACEOF
67769
67770     ;;
67771   *-solaris*)
67772     case "$target" in
67773     #  *-solaris2.5)
67774     #    os_include_dir="os/solaris/solaris2.5"
67775     #    ;;
67776     #  *-solaris2.6)
67777     #    os_include_dir="os/solaris/solaris2.6"
67778     #    ;;
67779       *-solaris2.7 | *-solaris2.8 | *-solaris2.9 | *-solaris2.10)
67780          cat >>confdefs.h <<\_ACEOF
67781 #define HAVE_GETPAGESIZE 1
67782 _ACEOF
67783
67784          cat >>confdefs.h <<\_ACEOF
67785 #define HAVE_SIGSETJMP 1
67786 _ACEOF
67787
67788          cat >>confdefs.h <<\_ACEOF
67789 #define HAVE_MBSTATE_T 1
67790 _ACEOF
67791
67792          cat >>confdefs.h <<\_ACEOF
67793 #define HAVE_POLL 1
67794 _ACEOF
67795
67796          cat >>confdefs.h <<\_ACEOF
67797 #define HAVE_S_ISREG 1
67798 _ACEOF
67799
67800          cat >>confdefs.h <<\_ACEOF
67801 #define HAVE_LC_MESSAGES 1
67802 _ACEOF
67803
67804          cat >>confdefs.h <<\_ACEOF
67805 #define HAVE_BTOWC 1
67806 _ACEOF
67807
67808          cat >>confdefs.h <<\_ACEOF
67809 #define HAVE_FGETWC 1
67810 _ACEOF
67811
67812          cat >>confdefs.h <<\_ACEOF
67813 #define HAVE_FGETWS 1
67814 _ACEOF
67815
67816          cat >>confdefs.h <<\_ACEOF
67817 #define HAVE_FINITE 1
67818 _ACEOF
67819
67820          cat >>confdefs.h <<\_ACEOF
67821 #define HAVE_FPCLASS 1
67822 _ACEOF
67823
67824          cat >>confdefs.h <<\_ACEOF
67825 #define HAVE_FPUTWC 1
67826 _ACEOF
67827
67828          cat >>confdefs.h <<\_ACEOF
67829 #define HAVE_FPUTWS 1
67830 _ACEOF
67831
67832          cat >>confdefs.h <<\_ACEOF
67833 #define HAVE_FWIDE 1
67834 _ACEOF
67835
67836          cat >>confdefs.h <<\_ACEOF
67837 #define HAVE_FWPRINTF 1
67838 _ACEOF
67839
67840          cat >>confdefs.h <<\_ACEOF
67841 #define HAVE_FWSCANF 1
67842 _ACEOF
67843
67844          cat >>confdefs.h <<\_ACEOF
67845 #define HAVE_GETPAGESIZE 1
67846 _ACEOF
67847
67848          cat >>confdefs.h <<\_ACEOF
67849 #define HAVE_GETWC 1
67850 _ACEOF
67851
67852          cat >>confdefs.h <<\_ACEOF
67853 #define HAVE_GETWCHAR 1
67854 _ACEOF
67855
67856          cat >>confdefs.h <<\_ACEOF
67857 #define HAVE_MBRLEN 1
67858 _ACEOF
67859
67860          cat >>confdefs.h <<\_ACEOF
67861 #define HAVE_MBRTOWC 1
67862 _ACEOF
67863
67864          cat >>confdefs.h <<\_ACEOF
67865 #define HAVE_MBSINIT 1
67866 _ACEOF
67867
67868          cat >>confdefs.h <<\_ACEOF
67869 #define HAVE_MBSRTOWCS 1
67870 _ACEOF
67871
67872          cat >>confdefs.h <<\_ACEOF
67873 #define HAVE_NL_LANGINFO 1
67874 _ACEOF
67875
67876          cat >>confdefs.h <<\_ACEOF
67877 #define HAVE_PUTWC 1
67878 _ACEOF
67879
67880          cat >>confdefs.h <<\_ACEOF
67881 #define HAVE_PUTWCHAR 1
67882 _ACEOF
67883
67884          cat >>confdefs.h <<\_ACEOF
67885 #define HAVE_SWPRINTF 1
67886 _ACEOF
67887
67888          cat >>confdefs.h <<\_ACEOF
67889 #define HAVE_SWSCANF 1
67890 _ACEOF
67891
67892          cat >>confdefs.h <<\_ACEOF
67893 #define HAVE_UNGETWC 1
67894 _ACEOF
67895
67896          cat >>confdefs.h <<\_ACEOF
67897 #define HAVE_VFWPRINTF 1
67898 _ACEOF
67899
67900          cat >>confdefs.h <<\_ACEOF
67901 #define HAVE_VSWPRINTF 1
67902 _ACEOF
67903
67904          cat >>confdefs.h <<\_ACEOF
67905 #define HAVE_VWPRINTF 1
67906 _ACEOF
67907
67908          cat >>confdefs.h <<\_ACEOF
67909 #define HAVE_WCRTOMB 1
67910 _ACEOF
67911
67912          cat >>confdefs.h <<\_ACEOF
67913 #define HAVE_WCSCAT 1
67914 _ACEOF
67915
67916          cat >>confdefs.h <<\_ACEOF
67917 #define HAVE_WCSCHR 1
67918 _ACEOF
67919
67920          cat >>confdefs.h <<\_ACEOF
67921 #define HAVE_WCSCMP 1
67922 _ACEOF
67923
67924          cat >>confdefs.h <<\_ACEOF
67925 #define HAVE_WCSCOLL 1
67926 _ACEOF
67927
67928          cat >>confdefs.h <<\_ACEOF
67929 #define HAVE_WCSCPY 1
67930 _ACEOF
67931
67932          cat >>confdefs.h <<\_ACEOF
67933 #define HAVE_WCSCSPN 1
67934 _ACEOF
67935
67936          cat >>confdefs.h <<\_ACEOF
67937 #define HAVE_WCSFTIME 1
67938 _ACEOF
67939
67940          cat >>confdefs.h <<\_ACEOF
67941 #define HAVE_WCSLEN 1
67942 _ACEOF
67943
67944          cat >>confdefs.h <<\_ACEOF
67945 #define HAVE_WCSNCAT 1
67946 _ACEOF
67947
67948          cat >>confdefs.h <<\_ACEOF
67949 #define HAVE_WCSNCMP 1
67950 _ACEOF
67951
67952          cat >>confdefs.h <<\_ACEOF
67953 #define HAVE_WCSNCPY 1
67954 _ACEOF
67955
67956          cat >>confdefs.h <<\_ACEOF
67957 #define HAVE_WCSPBRK 1
67958 _ACEOF
67959
67960          cat >>confdefs.h <<\_ACEOF
67961 #define HAVE_WCSRCHR 1
67962 _ACEOF
67963
67964          cat >>confdefs.h <<\_ACEOF
67965 #define HAVE_WCSRTOMBS 1
67966 _ACEOF
67967
67968          cat >>confdefs.h <<\_ACEOF
67969 #define HAVE_WCSSPN 1
67970 _ACEOF
67971
67972          cat >>confdefs.h <<\_ACEOF
67973 #define HAVE_WCSSTR 1
67974 _ACEOF
67975
67976          cat >>confdefs.h <<\_ACEOF
67977 #define HAVE_WCSTOD 1
67978 _ACEOF
67979
67980          cat >>confdefs.h <<\_ACEOF
67981 #define HAVE_WCSTOK 1
67982 _ACEOF
67983
67984          cat >>confdefs.h <<\_ACEOF
67985 #define HAVE_WCSTOL 1
67986 _ACEOF
67987
67988          cat >>confdefs.h <<\_ACEOF
67989 #define HAVE_WCSTOUL 1
67990 _ACEOF
67991
67992          cat >>confdefs.h <<\_ACEOF
67993 #define HAVE_WCSXFRM 1
67994 _ACEOF
67995
67996          cat >>confdefs.h <<\_ACEOF
67997 #define HAVE_WCTOB 1
67998 _ACEOF
67999
68000          cat >>confdefs.h <<\_ACEOF
68001 #define HAVE_WMEMCHR 1
68002 _ACEOF
68003
68004          cat >>confdefs.h <<\_ACEOF
68005 #define HAVE_WMEMCMP 1
68006 _ACEOF
68007
68008          cat >>confdefs.h <<\_ACEOF
68009 #define HAVE_WMEMCPY 1
68010 _ACEOF
68011
68012          cat >>confdefs.h <<\_ACEOF
68013 #define HAVE_WMEMMOVE 1
68014 _ACEOF
68015
68016          cat >>confdefs.h <<\_ACEOF
68017 #define HAVE_WMEMSET 1
68018 _ACEOF
68019
68020          cat >>confdefs.h <<\_ACEOF
68021 #define HAVE_WPRINTF 1
68022 _ACEOF
68023
68024          cat >>confdefs.h <<\_ACEOF
68025 #define HAVE_WSCANF 1
68026 _ACEOF
68027
68028          cat >>confdefs.h <<\_ACEOF
68029 #define HAVE_ICONV 1
68030 _ACEOF
68031
68032          cat >>confdefs.h <<\_ACEOF
68033 #define HAVE_ICONV_CLOSE 1
68034 _ACEOF
68035
68036          cat >>confdefs.h <<\_ACEOF
68037 #define HAVE_ICONV_OPEN 1
68038 _ACEOF
68039
68040          # Look for the pieces required for wchar_t support in order to
68041          # get all the right HAVE_* macros defined.
68042
68043   # Test wchar.h for mbstate_t, which is needed for char_traits and
68044   # others even if wchar_t support is not on.
68045   echo "$as_me:$LINENO: checking for mbstate_t" >&5
68046 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
68047   cat >conftest.$ac_ext <<_ACEOF
68048 /* confdefs.h.  */
68049 _ACEOF
68050 cat confdefs.h >>conftest.$ac_ext
68051 cat >>conftest.$ac_ext <<_ACEOF
68052 /* end confdefs.h.  */
68053 #include <wchar.h>
68054 int
68055 main ()
68056 {
68057 mbstate_t teststate;
68058   ;
68059   return 0;
68060 }
68061 _ACEOF
68062 rm -f conftest.$ac_objext
68063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68064   (eval $ac_compile) 2>conftest.er1
68065   ac_status=$?
68066   grep -v '^ *+' conftest.er1 >conftest.err
68067   rm -f conftest.er1
68068   cat conftest.err >&5
68069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68070   (exit $ac_status); } &&
68071          { ac_try='test -z "$ac_c_werror_flag"
68072                          || test ! -s conftest.err'
68073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68074   (eval $ac_try) 2>&5
68075   ac_status=$?
68076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68077   (exit $ac_status); }; } &&
68078          { ac_try='test -s conftest.$ac_objext'
68079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68080   (eval $ac_try) 2>&5
68081   ac_status=$?
68082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68083   (exit $ac_status); }; }; then
68084   have_mbstate_t=yes
68085 else
68086   echo "$as_me: failed program was:" >&5
68087 sed 's/^/| /' conftest.$ac_ext >&5
68088
68089 have_mbstate_t=no
68090 fi
68091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68092   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
68093 echo "${ECHO_T}$have_mbstate_t" >&6
68094   if test x"$have_mbstate_t" = xyes; then
68095     cat >>confdefs.h <<\_ACEOF
68096 #define HAVE_MBSTATE_T 1
68097 _ACEOF
68098
68099   fi
68100
68101   # Sanity check for existence of ISO C99 headers for extended encoding.
68102
68103 for ac_header in wchar.h
68104 do
68105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
68106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68107   echo "$as_me:$LINENO: checking for $ac_header" >&5
68108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
68109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68110   echo $ECHO_N "(cached) $ECHO_C" >&6
68111 fi
68112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
68113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
68114 else
68115   # Is the header compilable?
68116 echo "$as_me:$LINENO: checking $ac_header usability" >&5
68117 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
68118 cat >conftest.$ac_ext <<_ACEOF
68119 /* confdefs.h.  */
68120 _ACEOF
68121 cat confdefs.h >>conftest.$ac_ext
68122 cat >>conftest.$ac_ext <<_ACEOF
68123 /* end confdefs.h.  */
68124 $ac_includes_default
68125 #include <$ac_header>
68126 _ACEOF
68127 rm -f conftest.$ac_objext
68128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68129   (eval $ac_compile) 2>conftest.er1
68130   ac_status=$?
68131   grep -v '^ *+' conftest.er1 >conftest.err
68132   rm -f conftest.er1
68133   cat conftest.err >&5
68134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68135   (exit $ac_status); } &&
68136          { ac_try='test -z "$ac_c_werror_flag"
68137                          || test ! -s conftest.err'
68138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68139   (eval $ac_try) 2>&5
68140   ac_status=$?
68141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68142   (exit $ac_status); }; } &&
68143          { ac_try='test -s conftest.$ac_objext'
68144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68145   (eval $ac_try) 2>&5
68146   ac_status=$?
68147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68148   (exit $ac_status); }; }; then
68149   ac_header_compiler=yes
68150 else
68151   echo "$as_me: failed program was:" >&5
68152 sed 's/^/| /' conftest.$ac_ext >&5
68153
68154 ac_header_compiler=no
68155 fi
68156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68157 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68158 echo "${ECHO_T}$ac_header_compiler" >&6
68159
68160 # Is the header present?
68161 echo "$as_me:$LINENO: checking $ac_header presence" >&5
68162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
68163 cat >conftest.$ac_ext <<_ACEOF
68164 /* confdefs.h.  */
68165 _ACEOF
68166 cat confdefs.h >>conftest.$ac_ext
68167 cat >>conftest.$ac_ext <<_ACEOF
68168 /* end confdefs.h.  */
68169 #include <$ac_header>
68170 _ACEOF
68171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68172   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68173   ac_status=$?
68174   grep -v '^ *+' conftest.er1 >conftest.err
68175   rm -f conftest.er1
68176   cat conftest.err >&5
68177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68178   (exit $ac_status); } >/dev/null; then
68179   if test -s conftest.err; then
68180     ac_cpp_err=$ac_c_preproc_warn_flag
68181     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68182   else
68183     ac_cpp_err=
68184   fi
68185 else
68186   ac_cpp_err=yes
68187 fi
68188 if test -z "$ac_cpp_err"; then
68189   ac_header_preproc=yes
68190 else
68191   echo "$as_me: failed program was:" >&5
68192 sed 's/^/| /' conftest.$ac_ext >&5
68193
68194   ac_header_preproc=no
68195 fi
68196 rm -f conftest.err conftest.$ac_ext
68197 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68198 echo "${ECHO_T}$ac_header_preproc" >&6
68199
68200 # So?  What about this header?
68201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68202   yes:no: )
68203     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
68204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
68205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
68206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
68207     ac_header_preproc=yes
68208     ;;
68209   no:yes:* )
68210     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
68211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
68212     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
68213 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
68214     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
68215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
68216     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
68217 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
68218     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
68219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
68220     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
68221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
68222     (
68223       cat <<\_ASBOX
68224 ## ----------------------------------------- ##
68225 ## Report this to the package-unused lists.  ##
68226 ## ----------------------------------------- ##
68227 _ASBOX
68228     ) |
68229       sed "s/^/$as_me: WARNING:     /" >&2
68230     ;;
68231 esac
68232 echo "$as_me:$LINENO: checking for $ac_header" >&5
68233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
68234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68235   echo $ECHO_N "(cached) $ECHO_C" >&6
68236 else
68237   eval "$as_ac_Header=\$ac_header_preproc"
68238 fi
68239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
68240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
68241
68242 fi
68243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
68244   cat >>confdefs.h <<_ACEOF
68245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
68246 _ACEOF
68247  ac_has_wchar_h=yes
68248 else
68249   ac_has_wchar_h=no
68250 fi
68251
68252 done
68253
68254
68255 for ac_header in wctype.h
68256 do
68257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
68258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68259   echo "$as_me:$LINENO: checking for $ac_header" >&5
68260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
68261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68262   echo $ECHO_N "(cached) $ECHO_C" >&6
68263 fi
68264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
68265 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
68266 else
68267   # Is the header compilable?
68268 echo "$as_me:$LINENO: checking $ac_header usability" >&5
68269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
68270 cat >conftest.$ac_ext <<_ACEOF
68271 /* confdefs.h.  */
68272 _ACEOF
68273 cat confdefs.h >>conftest.$ac_ext
68274 cat >>conftest.$ac_ext <<_ACEOF
68275 /* end confdefs.h.  */
68276 $ac_includes_default
68277 #include <$ac_header>
68278 _ACEOF
68279 rm -f conftest.$ac_objext
68280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68281   (eval $ac_compile) 2>conftest.er1
68282   ac_status=$?
68283   grep -v '^ *+' conftest.er1 >conftest.err
68284   rm -f conftest.er1
68285   cat conftest.err >&5
68286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68287   (exit $ac_status); } &&
68288          { ac_try='test -z "$ac_c_werror_flag"
68289                          || test ! -s conftest.err'
68290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68291   (eval $ac_try) 2>&5
68292   ac_status=$?
68293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68294   (exit $ac_status); }; } &&
68295          { ac_try='test -s conftest.$ac_objext'
68296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68297   (eval $ac_try) 2>&5
68298   ac_status=$?
68299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68300   (exit $ac_status); }; }; then
68301   ac_header_compiler=yes
68302 else
68303   echo "$as_me: failed program was:" >&5
68304 sed 's/^/| /' conftest.$ac_ext >&5
68305
68306 ac_header_compiler=no
68307 fi
68308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68309 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68310 echo "${ECHO_T}$ac_header_compiler" >&6
68311
68312 # Is the header present?
68313 echo "$as_me:$LINENO: checking $ac_header presence" >&5
68314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
68315 cat >conftest.$ac_ext <<_ACEOF
68316 /* confdefs.h.  */
68317 _ACEOF
68318 cat confdefs.h >>conftest.$ac_ext
68319 cat >>conftest.$ac_ext <<_ACEOF
68320 /* end confdefs.h.  */
68321 #include <$ac_header>
68322 _ACEOF
68323 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68324   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68325   ac_status=$?
68326   grep -v '^ *+' conftest.er1 >conftest.err
68327   rm -f conftest.er1
68328   cat conftest.err >&5
68329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68330   (exit $ac_status); } >/dev/null; then
68331   if test -s conftest.err; then
68332     ac_cpp_err=$ac_c_preproc_warn_flag
68333     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
68334   else
68335     ac_cpp_err=
68336   fi
68337 else
68338   ac_cpp_err=yes
68339 fi
68340 if test -z "$ac_cpp_err"; then
68341   ac_header_preproc=yes
68342 else
68343   echo "$as_me: failed program was:" >&5
68344 sed 's/^/| /' conftest.$ac_ext >&5
68345
68346   ac_header_preproc=no
68347 fi
68348 rm -f conftest.err conftest.$ac_ext
68349 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
68350 echo "${ECHO_T}$ac_header_preproc" >&6
68351
68352 # So?  What about this header?
68353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
68354   yes:no: )
68355     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
68356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
68357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
68358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
68359     ac_header_preproc=yes
68360     ;;
68361   no:yes:* )
68362     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
68363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
68364     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
68365 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
68366     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
68367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
68368     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
68369 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
68370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
68371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
68372     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
68373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
68374     (
68375       cat <<\_ASBOX
68376 ## ----------------------------------------- ##
68377 ## Report this to the package-unused lists.  ##
68378 ## ----------------------------------------- ##
68379 _ASBOX
68380     ) |
68381       sed "s/^/$as_me: WARNING:     /" >&2
68382     ;;
68383 esac
68384 echo "$as_me:$LINENO: checking for $ac_header" >&5
68385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
68386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
68387   echo $ECHO_N "(cached) $ECHO_C" >&6
68388 else
68389   eval "$as_ac_Header=\$ac_header_preproc"
68390 fi
68391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
68392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
68393
68394 fi
68395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
68396   cat >>confdefs.h <<_ACEOF
68397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
68398 _ACEOF
68399  ac_has_wctype_h=yes
68400 else
68401   ac_has_wctype_h=no
68402 fi
68403
68404 done
68405
68406
68407   # Only continue checking if the ISO C99 headers exist and support is on.
68408   if test x"$ac_has_wchar_h" = xyes &&
68409      test x"$ac_has_wctype_h" = xyes &&
68410      test x"$enable_c_mbchar" != xno; then
68411
68412     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
68413     # numeric_limits can instantiate type_traits<wchar_t>
68414     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
68415 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
68416     cat >conftest.$ac_ext <<_ACEOF
68417 /* confdefs.h.  */
68418 _ACEOF
68419 cat confdefs.h >>conftest.$ac_ext
68420 cat >>conftest.$ac_ext <<_ACEOF
68421 /* end confdefs.h.  */
68422 #include <wchar.h>
68423 int
68424 main ()
68425 {
68426 int i = WCHAR_MIN; int j = WCHAR_MAX;
68427   ;
68428   return 0;
68429 }
68430 _ACEOF
68431 rm -f conftest.$ac_objext
68432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68433   (eval $ac_compile) 2>conftest.er1
68434   ac_status=$?
68435   grep -v '^ *+' conftest.er1 >conftest.err
68436   rm -f conftest.er1
68437   cat conftest.err >&5
68438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68439   (exit $ac_status); } &&
68440          { ac_try='test -z "$ac_c_werror_flag"
68441                          || test ! -s conftest.err'
68442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68443   (eval $ac_try) 2>&5
68444   ac_status=$?
68445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68446   (exit $ac_status); }; } &&
68447          { ac_try='test -s conftest.$ac_objext'
68448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68449   (eval $ac_try) 2>&5
68450   ac_status=$?
68451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68452   (exit $ac_status); }; }; then
68453   has_wchar_minmax=yes
68454 else
68455   echo "$as_me: failed program was:" >&5
68456 sed 's/^/| /' conftest.$ac_ext >&5
68457
68458 has_wchar_minmax=no
68459 fi
68460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68461     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
68462 echo "${ECHO_T}$has_wchar_minmax" >&6
68463
68464     # Test wchar.h for WEOF, which is what we use to determine whether
68465     # to specialize for char_traits<wchar_t> or not.
68466     echo "$as_me:$LINENO: checking for WEOF" >&5
68467 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
68468     cat >conftest.$ac_ext <<_ACEOF
68469 /* confdefs.h.  */
68470 _ACEOF
68471 cat confdefs.h >>conftest.$ac_ext
68472 cat >>conftest.$ac_ext <<_ACEOF
68473 /* end confdefs.h.  */
68474
68475       #include <wchar.h>
68476       #include <stddef.h>
68477 int
68478 main ()
68479 {
68480 wint_t i = WEOF;
68481   ;
68482   return 0;
68483 }
68484 _ACEOF
68485 rm -f conftest.$ac_objext
68486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68487   (eval $ac_compile) 2>conftest.er1
68488   ac_status=$?
68489   grep -v '^ *+' conftest.er1 >conftest.err
68490   rm -f conftest.er1
68491   cat conftest.err >&5
68492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68493   (exit $ac_status); } &&
68494          { ac_try='test -z "$ac_c_werror_flag"
68495                          || test ! -s conftest.err'
68496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68497   (eval $ac_try) 2>&5
68498   ac_status=$?
68499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68500   (exit $ac_status); }; } &&
68501          { ac_try='test -s conftest.$ac_objext'
68502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68503   (eval $ac_try) 2>&5
68504   ac_status=$?
68505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68506   (exit $ac_status); }; }; then
68507   has_weof=yes
68508 else
68509   echo "$as_me: failed program was:" >&5
68510 sed 's/^/| /' conftest.$ac_ext >&5
68511
68512 has_weof=no
68513 fi
68514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68515     echo "$as_me:$LINENO: result: $has_weof" >&5
68516 echo "${ECHO_T}$has_weof" >&6
68517
68518     # Tests for wide character functions used in char_traits<wchar_t>.
68519     ac_wfuncs=yes
68520
68521
68522
68523
68524
68525
68526 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
68527 do
68528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68529 echo "$as_me:$LINENO: checking for $ac_func" >&5
68530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68531 if eval "test \"\${$as_ac_var+set}\" = set"; then
68532   echo $ECHO_N "(cached) $ECHO_C" >&6
68533 else
68534   if test x$gcc_no_link = xyes; then
68535   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68536 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68537    { (exit 1); exit 1; }; }
68538 fi
68539 cat >conftest.$ac_ext <<_ACEOF
68540 /* confdefs.h.  */
68541 _ACEOF
68542 cat confdefs.h >>conftest.$ac_ext
68543 cat >>conftest.$ac_ext <<_ACEOF
68544 /* end confdefs.h.  */
68545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68547 #define $ac_func innocuous_$ac_func
68548
68549 /* System header to define __stub macros and hopefully few prototypes,
68550     which can conflict with char $ac_func (); below.
68551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68552     <limits.h> exists even on freestanding compilers.  */
68553
68554 #ifdef __STDC__
68555 # include <limits.h>
68556 #else
68557 # include <assert.h>
68558 #endif
68559
68560 #undef $ac_func
68561
68562 /* Override any gcc2 internal prototype to avoid an error.  */
68563 #ifdef __cplusplus
68564 extern "C"
68565 {
68566 #endif
68567 /* We use char because int might match the return type of a gcc2
68568    builtin and then its argument prototype would still apply.  */
68569 char $ac_func ();
68570 /* The GNU C library defines this for functions which it implements
68571     to always fail with ENOSYS.  Some functions are actually named
68572     something starting with __ and the normal name is an alias.  */
68573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68574 choke me
68575 #else
68576 char (*f) () = $ac_func;
68577 #endif
68578 #ifdef __cplusplus
68579 }
68580 #endif
68581
68582 int
68583 main ()
68584 {
68585 return f != $ac_func;
68586   ;
68587   return 0;
68588 }
68589 _ACEOF
68590 rm -f conftest.$ac_objext conftest$ac_exeext
68591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68592   (eval $ac_link) 2>conftest.er1
68593   ac_status=$?
68594   grep -v '^ *+' conftest.er1 >conftest.err
68595   rm -f conftest.er1
68596   cat conftest.err >&5
68597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68598   (exit $ac_status); } &&
68599          { ac_try='test -z "$ac_c_werror_flag"
68600                          || test ! -s conftest.err'
68601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68602   (eval $ac_try) 2>&5
68603   ac_status=$?
68604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68605   (exit $ac_status); }; } &&
68606          { ac_try='test -s conftest$ac_exeext'
68607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68608   (eval $ac_try) 2>&5
68609   ac_status=$?
68610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68611   (exit $ac_status); }; }; then
68612   eval "$as_ac_var=yes"
68613 else
68614   echo "$as_me: failed program was:" >&5
68615 sed 's/^/| /' conftest.$ac_ext >&5
68616
68617 eval "$as_ac_var=no"
68618 fi
68619 rm -f conftest.err conftest.$ac_objext \
68620       conftest$ac_exeext conftest.$ac_ext
68621 fi
68622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68624 if test `eval echo '${'$as_ac_var'}'` = yes; then
68625   cat >>confdefs.h <<_ACEOF
68626 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68627 _ACEOF
68628
68629 else
68630   ac_wfuncs=no
68631 fi
68632 done
68633
68634
68635     # Checks for names injected into std:: by the c_std headers.
68636
68637
68638
68639
68640
68641
68642
68643
68644
68645
68646
68647
68648
68649
68650
68651
68652
68653
68654
68655
68656
68657
68658
68659
68660
68661
68662
68663
68664
68665
68666
68667
68668
68669
68670
68671
68672
68673
68674
68675
68676
68677
68678
68679
68680
68681
68682 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
68683     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
68684     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
68685     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
68686     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
68687     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
68688 do
68689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68690 echo "$as_me:$LINENO: checking for $ac_func" >&5
68691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68692 if eval "test \"\${$as_ac_var+set}\" = set"; then
68693   echo $ECHO_N "(cached) $ECHO_C" >&6
68694 else
68695   if test x$gcc_no_link = xyes; then
68696   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68697 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68698    { (exit 1); exit 1; }; }
68699 fi
68700 cat >conftest.$ac_ext <<_ACEOF
68701 /* confdefs.h.  */
68702 _ACEOF
68703 cat confdefs.h >>conftest.$ac_ext
68704 cat >>conftest.$ac_ext <<_ACEOF
68705 /* end confdefs.h.  */
68706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68708 #define $ac_func innocuous_$ac_func
68709
68710 /* System header to define __stub macros and hopefully few prototypes,
68711     which can conflict with char $ac_func (); below.
68712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68713     <limits.h> exists even on freestanding compilers.  */
68714
68715 #ifdef __STDC__
68716 # include <limits.h>
68717 #else
68718 # include <assert.h>
68719 #endif
68720
68721 #undef $ac_func
68722
68723 /* Override any gcc2 internal prototype to avoid an error.  */
68724 #ifdef __cplusplus
68725 extern "C"
68726 {
68727 #endif
68728 /* We use char because int might match the return type of a gcc2
68729    builtin and then its argument prototype would still apply.  */
68730 char $ac_func ();
68731 /* The GNU C library defines this for functions which it implements
68732     to always fail with ENOSYS.  Some functions are actually named
68733     something starting with __ and the normal name is an alias.  */
68734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68735 choke me
68736 #else
68737 char (*f) () = $ac_func;
68738 #endif
68739 #ifdef __cplusplus
68740 }
68741 #endif
68742
68743 int
68744 main ()
68745 {
68746 return f != $ac_func;
68747   ;
68748   return 0;
68749 }
68750 _ACEOF
68751 rm -f conftest.$ac_objext conftest$ac_exeext
68752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68753   (eval $ac_link) 2>conftest.er1
68754   ac_status=$?
68755   grep -v '^ *+' conftest.er1 >conftest.err
68756   rm -f conftest.er1
68757   cat conftest.err >&5
68758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68759   (exit $ac_status); } &&
68760          { ac_try='test -z "$ac_c_werror_flag"
68761                          || test ! -s conftest.err'
68762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68763   (eval $ac_try) 2>&5
68764   ac_status=$?
68765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68766   (exit $ac_status); }; } &&
68767          { ac_try='test -s conftest$ac_exeext'
68768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68769   (eval $ac_try) 2>&5
68770   ac_status=$?
68771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68772   (exit $ac_status); }; }; then
68773   eval "$as_ac_var=yes"
68774 else
68775   echo "$as_me: failed program was:" >&5
68776 sed 's/^/| /' conftest.$ac_ext >&5
68777
68778 eval "$as_ac_var=no"
68779 fi
68780 rm -f conftest.err conftest.$ac_objext \
68781       conftest$ac_exeext conftest.$ac_ext
68782 fi
68783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68785 if test `eval echo '${'$as_ac_var'}'` = yes; then
68786   cat >>confdefs.h <<_ACEOF
68787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68788 _ACEOF
68789
68790 else
68791   ac_wfuncs=no
68792 fi
68793 done
68794
68795
68796     # Checks for wide character functions that are not required
68797     # for basic wchar_t support.  Don't disable support if they are missing.
68798     # Injection of these is wrapped with guard macros.
68799
68800
68801
68802
68803
68804 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
68805 do
68806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68807 echo "$as_me:$LINENO: checking for $ac_func" >&5
68808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
68809 if eval "test \"\${$as_ac_var+set}\" = set"; then
68810   echo $ECHO_N "(cached) $ECHO_C" >&6
68811 else
68812   if test x$gcc_no_link = xyes; then
68813   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
68814 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
68815    { (exit 1); exit 1; }; }
68816 fi
68817 cat >conftest.$ac_ext <<_ACEOF
68818 /* confdefs.h.  */
68819 _ACEOF
68820 cat confdefs.h >>conftest.$ac_ext
68821 cat >>conftest.$ac_ext <<_ACEOF
68822 /* end confdefs.h.  */
68823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68825 #define $ac_func innocuous_$ac_func
68826
68827 /* System header to define __stub macros and hopefully few prototypes,
68828     which can conflict with char $ac_func (); below.
68829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68830     <limits.h> exists even on freestanding compilers.  */
68831
68832 #ifdef __STDC__
68833 # include <limits.h>
68834 #else
68835 # include <assert.h>
68836 #endif
68837
68838 #undef $ac_func
68839
68840 /* Override any gcc2 internal prototype to avoid an error.  */
68841 #ifdef __cplusplus
68842 extern "C"
68843 {
68844 #endif
68845 /* We use char because int might match the return type of a gcc2
68846    builtin and then its argument prototype would still apply.  */
68847 char $ac_func ();
68848 /* The GNU C library defines this for functions which it implements
68849     to always fail with ENOSYS.  Some functions are actually named
68850     something starting with __ and the normal name is an alias.  */
68851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
68852 choke me
68853 #else
68854 char (*f) () = $ac_func;
68855 #endif
68856 #ifdef __cplusplus
68857 }
68858 #endif
68859
68860 int
68861 main ()
68862 {
68863 return f != $ac_func;
68864   ;
68865   return 0;
68866 }
68867 _ACEOF
68868 rm -f conftest.$ac_objext conftest$ac_exeext
68869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68870   (eval $ac_link) 2>conftest.er1
68871   ac_status=$?
68872   grep -v '^ *+' conftest.er1 >conftest.err
68873   rm -f conftest.er1
68874   cat conftest.err >&5
68875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68876   (exit $ac_status); } &&
68877          { ac_try='test -z "$ac_c_werror_flag"
68878                          || test ! -s conftest.err'
68879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68880   (eval $ac_try) 2>&5
68881   ac_status=$?
68882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68883   (exit $ac_status); }; } &&
68884          { ac_try='test -s conftest$ac_exeext'
68885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68886   (eval $ac_try) 2>&5
68887   ac_status=$?
68888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68889   (exit $ac_status); }; }; then
68890   eval "$as_ac_var=yes"
68891 else
68892   echo "$as_me: failed program was:" >&5
68893 sed 's/^/| /' conftest.$ac_ext >&5
68894
68895 eval "$as_ac_var=no"
68896 fi
68897 rm -f conftest.err conftest.$ac_objext \
68898       conftest$ac_exeext conftest.$ac_ext
68899 fi
68900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
68901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
68902 if test `eval echo '${'$as_ac_var'}'` = yes; then
68903   cat >>confdefs.h <<_ACEOF
68904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68905 _ACEOF
68906
68907 fi
68908 done
68909
68910
68911     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
68912 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
68913     if test x"$has_weof" = xyes &&
68914        test x"$has_wchar_minmax" = xyes &&
68915        test x"$ac_wfuncs" = xyes;
68916     then
68917       ac_isoC99_wchar_t=yes
68918     else
68919       ac_isoC99_wchar_t=no
68920     fi
68921     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
68922 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
68923
68924     # Use iconv for wchar_t to char conversions. As such, check for
68925     # X/Open Portability Guide, version 2 features (XPG2).
68926     if test "${ac_cv_header_iconv_h+set}" = set; then
68927   echo "$as_me:$LINENO: checking for iconv.h" >&5
68928 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
68929 if test "${ac_cv_header_iconv_h+set}" = set; then
68930   echo $ECHO_N "(cached) $ECHO_C" >&6
68931 fi
68932 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
68933 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
68934 else
68935   # Is the header compilable?
68936 echo "$as_me:$LINENO: checking iconv.h usability" >&5
68937 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
68938 cat >conftest.$ac_ext <<_ACEOF
68939 /* confdefs.h.  */
68940 _ACEOF
68941 cat confdefs.h >>conftest.$ac_ext
68942 cat >>conftest.$ac_ext <<_ACEOF
68943 /* end confdefs.h.  */
68944 $ac_includes_default
68945 #include <iconv.h>
68946 _ACEOF
68947 rm -f conftest.$ac_objext
68948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
68949   (eval $ac_compile) 2>conftest.er1
68950   ac_status=$?
68951   grep -v '^ *+' conftest.er1 >conftest.err
68952   rm -f conftest.er1
68953   cat conftest.err >&5
68954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68955   (exit $ac_status); } &&
68956          { ac_try='test -z "$ac_c_werror_flag"
68957                          || test ! -s conftest.err'
68958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68959   (eval $ac_try) 2>&5
68960   ac_status=$?
68961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68962   (exit $ac_status); }; } &&
68963          { ac_try='test -s conftest.$ac_objext'
68964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
68965   (eval $ac_try) 2>&5
68966   ac_status=$?
68967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68968   (exit $ac_status); }; }; then
68969   ac_header_compiler=yes
68970 else
68971   echo "$as_me: failed program was:" >&5
68972 sed 's/^/| /' conftest.$ac_ext >&5
68973
68974 ac_header_compiler=no
68975 fi
68976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
68977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
68978 echo "${ECHO_T}$ac_header_compiler" >&6
68979
68980 # Is the header present?
68981 echo "$as_me:$LINENO: checking iconv.h presence" >&5
68982 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
68983 cat >conftest.$ac_ext <<_ACEOF
68984 /* confdefs.h.  */
68985 _ACEOF
68986 cat confdefs.h >>conftest.$ac_ext
68987 cat >>conftest.$ac_ext <<_ACEOF
68988 /* end confdefs.h.  */
68989 #include <iconv.h>
68990 _ACEOF
68991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
68992   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
68993   ac_status=$?
68994   grep -v '^ *+' conftest.er1 >conftest.err
68995   rm -f conftest.er1
68996   cat conftest.err >&5
68997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68998   (exit $ac_status); } >/dev/null; then
68999   if test -s conftest.err; then
69000     ac_cpp_err=$ac_c_preproc_warn_flag
69001     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
69002   else
69003     ac_cpp_err=
69004   fi
69005 else
69006   ac_cpp_err=yes
69007 fi
69008 if test -z "$ac_cpp_err"; then
69009   ac_header_preproc=yes
69010 else
69011   echo "$as_me: failed program was:" >&5
69012 sed 's/^/| /' conftest.$ac_ext >&5
69013
69014   ac_header_preproc=no
69015 fi
69016 rm -f conftest.err conftest.$ac_ext
69017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
69018 echo "${ECHO_T}$ac_header_preproc" >&6
69019
69020 # So?  What about this header?
69021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
69022   yes:no: )
69023     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
69024 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
69025     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
69026 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
69027     ac_header_preproc=yes
69028     ;;
69029   no:yes:* )
69030     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
69031 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
69032     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
69033 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
69034     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
69035 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
69036     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
69037 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
69038     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
69039 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
69040     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
69041 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
69042     (
69043       cat <<\_ASBOX
69044 ## ----------------------------------------- ##
69045 ## Report this to the package-unused lists.  ##
69046 ## ----------------------------------------- ##
69047 _ASBOX
69048     ) |
69049       sed "s/^/$as_me: WARNING:     /" >&2
69050     ;;
69051 esac
69052 echo "$as_me:$LINENO: checking for iconv.h" >&5
69053 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
69054 if test "${ac_cv_header_iconv_h+set}" = set; then
69055   echo $ECHO_N "(cached) $ECHO_C" >&6
69056 else
69057   ac_cv_header_iconv_h=$ac_header_preproc
69058 fi
69059 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
69060 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
69061
69062 fi
69063 if test $ac_cv_header_iconv_h = yes; then
69064   ac_has_iconv_h=yes
69065 else
69066   ac_has_iconv_h=no
69067 fi
69068
69069
69070     if test "${ac_cv_header_langinfo_h+set}" = set; then
69071   echo "$as_me:$LINENO: checking for langinfo.h" >&5
69072 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
69073 if test "${ac_cv_header_langinfo_h+set}" = set; then
69074   echo $ECHO_N "(cached) $ECHO_C" >&6
69075 fi
69076 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
69077 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
69078 else
69079   # Is the header compilable?
69080 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
69081 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
69082 cat >conftest.$ac_ext <<_ACEOF
69083 /* confdefs.h.  */
69084 _ACEOF
69085 cat confdefs.h >>conftest.$ac_ext
69086 cat >>conftest.$ac_ext <<_ACEOF
69087 /* end confdefs.h.  */
69088 $ac_includes_default
69089 #include <langinfo.h>
69090 _ACEOF
69091 rm -f conftest.$ac_objext
69092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
69093   (eval $ac_compile) 2>conftest.er1
69094   ac_status=$?
69095   grep -v '^ *+' conftest.er1 >conftest.err
69096   rm -f conftest.er1
69097   cat conftest.err >&5
69098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69099   (exit $ac_status); } &&
69100          { ac_try='test -z "$ac_c_werror_flag"
69101                          || test ! -s conftest.err'
69102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69103   (eval $ac_try) 2>&5
69104   ac_status=$?
69105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69106   (exit $ac_status); }; } &&
69107          { ac_try='test -s conftest.$ac_objext'
69108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69109   (eval $ac_try) 2>&5
69110   ac_status=$?
69111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69112   (exit $ac_status); }; }; then
69113   ac_header_compiler=yes
69114 else
69115   echo "$as_me: failed program was:" >&5
69116 sed 's/^/| /' conftest.$ac_ext >&5
69117
69118 ac_header_compiler=no
69119 fi
69120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
69121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
69122 echo "${ECHO_T}$ac_header_compiler" >&6
69123
69124 # Is the header present?
69125 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
69126 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
69127 cat >conftest.$ac_ext <<_ACEOF
69128 /* confdefs.h.  */
69129 _ACEOF
69130 cat confdefs.h >>conftest.$ac_ext
69131 cat >>conftest.$ac_ext <<_ACEOF
69132 /* end confdefs.h.  */
69133 #include <langinfo.h>
69134 _ACEOF
69135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
69136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
69137   ac_status=$?
69138   grep -v '^ *+' conftest.er1 >conftest.err
69139   rm -f conftest.er1
69140   cat conftest.err >&5
69141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69142   (exit $ac_status); } >/dev/null; then
69143   if test -s conftest.err; then
69144     ac_cpp_err=$ac_c_preproc_warn_flag
69145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
69146   else
69147     ac_cpp_err=
69148   fi
69149 else
69150   ac_cpp_err=yes
69151 fi
69152 if test -z "$ac_cpp_err"; then
69153   ac_header_preproc=yes
69154 else
69155   echo "$as_me: failed program was:" >&5
69156 sed 's/^/| /' conftest.$ac_ext >&5
69157
69158   ac_header_preproc=no
69159 fi
69160 rm -f conftest.err conftest.$ac_ext
69161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
69162 echo "${ECHO_T}$ac_header_preproc" >&6
69163
69164 # So?  What about this header?
69165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
69166   yes:no: )
69167     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
69168 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
69169     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
69170 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
69171     ac_header_preproc=yes
69172     ;;
69173   no:yes:* )
69174     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
69175 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
69176     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
69177 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
69178     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
69179 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
69180     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
69181 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
69182     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
69183 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
69184     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
69185 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
69186     (
69187       cat <<\_ASBOX
69188 ## ----------------------------------------- ##
69189 ## Report this to the package-unused lists.  ##
69190 ## ----------------------------------------- ##
69191 _ASBOX
69192     ) |
69193       sed "s/^/$as_me: WARNING:     /" >&2
69194     ;;
69195 esac
69196 echo "$as_me:$LINENO: checking for langinfo.h" >&5
69197 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
69198 if test "${ac_cv_header_langinfo_h+set}" = set; then
69199   echo $ECHO_N "(cached) $ECHO_C" >&6
69200 else
69201   ac_cv_header_langinfo_h=$ac_header_preproc
69202 fi
69203 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
69204 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
69205
69206 fi
69207 if test $ac_cv_header_langinfo_h = yes; then
69208   ac_has_langinfo_h=yes
69209 else
69210   ac_has_langinfo_h=no
69211 fi
69212
69213
69214
69215     # Check for existence of libiconv.a providing XPG2 wchar_t support.
69216     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
69217 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
69218 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
69219   echo $ECHO_N "(cached) $ECHO_C" >&6
69220 else
69221   ac_check_lib_save_LIBS=$LIBS
69222 LIBS="-liconv  $LIBS"
69223 if test x$gcc_no_link = xyes; then
69224   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69225 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69226    { (exit 1); exit 1; }; }
69227 fi
69228 cat >conftest.$ac_ext <<_ACEOF
69229 /* confdefs.h.  */
69230 _ACEOF
69231 cat confdefs.h >>conftest.$ac_ext
69232 cat >>conftest.$ac_ext <<_ACEOF
69233 /* end confdefs.h.  */
69234
69235 /* Override any gcc2 internal prototype to avoid an error.  */
69236 #ifdef __cplusplus
69237 extern "C"
69238 #endif
69239 /* We use char because int might match the return type of a gcc2
69240    builtin and then its argument prototype would still apply.  */
69241 char iconv ();
69242 int
69243 main ()
69244 {
69245 iconv ();
69246   ;
69247   return 0;
69248 }
69249 _ACEOF
69250 rm -f conftest.$ac_objext conftest$ac_exeext
69251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69252   (eval $ac_link) 2>conftest.er1
69253   ac_status=$?
69254   grep -v '^ *+' conftest.er1 >conftest.err
69255   rm -f conftest.er1
69256   cat conftest.err >&5
69257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69258   (exit $ac_status); } &&
69259          { ac_try='test -z "$ac_c_werror_flag"
69260                          || test ! -s conftest.err'
69261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69262   (eval $ac_try) 2>&5
69263   ac_status=$?
69264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69265   (exit $ac_status); }; } &&
69266          { ac_try='test -s conftest$ac_exeext'
69267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69268   (eval $ac_try) 2>&5
69269   ac_status=$?
69270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69271   (exit $ac_status); }; }; then
69272   ac_cv_lib_iconv_iconv=yes
69273 else
69274   echo "$as_me: failed program was:" >&5
69275 sed 's/^/| /' conftest.$ac_ext >&5
69276
69277 ac_cv_lib_iconv_iconv=no
69278 fi
69279 rm -f conftest.err conftest.$ac_objext \
69280       conftest$ac_exeext conftest.$ac_ext
69281 LIBS=$ac_check_lib_save_LIBS
69282 fi
69283 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
69284 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
69285 if test $ac_cv_lib_iconv_iconv = yes; then
69286   LIBICONV="-liconv"
69287 fi
69288
69289     ac_save_LIBS="$LIBS"
69290     LIBS="$LIBS $LIBICONV"
69291
69292
69293
69294
69295
69296
69297 for ac_func in iconv_open iconv_close iconv nl_langinfo
69298 do
69299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69300 echo "$as_me:$LINENO: checking for $ac_func" >&5
69301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69302 if eval "test \"\${$as_ac_var+set}\" = set"; then
69303   echo $ECHO_N "(cached) $ECHO_C" >&6
69304 else
69305   if test x$gcc_no_link = xyes; then
69306   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69307 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69308    { (exit 1); exit 1; }; }
69309 fi
69310 cat >conftest.$ac_ext <<_ACEOF
69311 /* confdefs.h.  */
69312 _ACEOF
69313 cat confdefs.h >>conftest.$ac_ext
69314 cat >>conftest.$ac_ext <<_ACEOF
69315 /* end confdefs.h.  */
69316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69318 #define $ac_func innocuous_$ac_func
69319
69320 /* System header to define __stub macros and hopefully few prototypes,
69321     which can conflict with char $ac_func (); below.
69322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69323     <limits.h> exists even on freestanding compilers.  */
69324
69325 #ifdef __STDC__
69326 # include <limits.h>
69327 #else
69328 # include <assert.h>
69329 #endif
69330
69331 #undef $ac_func
69332
69333 /* Override any gcc2 internal prototype to avoid an error.  */
69334 #ifdef __cplusplus
69335 extern "C"
69336 {
69337 #endif
69338 /* We use char because int might match the return type of a gcc2
69339    builtin and then its argument prototype would still apply.  */
69340 char $ac_func ();
69341 /* The GNU C library defines this for functions which it implements
69342     to always fail with ENOSYS.  Some functions are actually named
69343     something starting with __ and the normal name is an alias.  */
69344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69345 choke me
69346 #else
69347 char (*f) () = $ac_func;
69348 #endif
69349 #ifdef __cplusplus
69350 }
69351 #endif
69352
69353 int
69354 main ()
69355 {
69356 return f != $ac_func;
69357   ;
69358   return 0;
69359 }
69360 _ACEOF
69361 rm -f conftest.$ac_objext conftest$ac_exeext
69362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69363   (eval $ac_link) 2>conftest.er1
69364   ac_status=$?
69365   grep -v '^ *+' conftest.er1 >conftest.err
69366   rm -f conftest.er1
69367   cat conftest.err >&5
69368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69369   (exit $ac_status); } &&
69370          { ac_try='test -z "$ac_c_werror_flag"
69371                          || test ! -s conftest.err'
69372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69373   (eval $ac_try) 2>&5
69374   ac_status=$?
69375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69376   (exit $ac_status); }; } &&
69377          { ac_try='test -s conftest$ac_exeext'
69378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69379   (eval $ac_try) 2>&5
69380   ac_status=$?
69381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69382   (exit $ac_status); }; }; then
69383   eval "$as_ac_var=yes"
69384 else
69385   echo "$as_me: failed program was:" >&5
69386 sed 's/^/| /' conftest.$ac_ext >&5
69387
69388 eval "$as_ac_var=no"
69389 fi
69390 rm -f conftest.err conftest.$ac_objext \
69391       conftest$ac_exeext conftest.$ac_ext
69392 fi
69393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
69394 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
69395 if test `eval echo '${'$as_ac_var'}'` = yes; then
69396   cat >>confdefs.h <<_ACEOF
69397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
69398 _ACEOF
69399  ac_XPG2funcs=yes
69400 else
69401   ac_XPG2funcs=no
69402 fi
69403 done
69404
69405
69406     LIBS="$ac_save_LIBS"
69407
69408     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
69409 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
69410     if test x"$ac_has_iconv_h" = xyes &&
69411        test x"$ac_has_langinfo_h" = xyes &&
69412        test x"$ac_XPG2funcs" = xyes;
69413     then
69414       ac_XPG2_wchar_t=yes
69415     else
69416       ac_XPG2_wchar_t=no
69417     fi
69418     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
69419 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
69420
69421     # At the moment, only enable wchar_t specializations if all the
69422     # above support is present.
69423     if test x"$ac_isoC99_wchar_t" = xyes &&
69424        test x"$ac_XPG2_wchar_t" = xyes;
69425     then
69426       cat >>confdefs.h <<\_ACEOF
69427 #define _GLIBCXX_USE_WCHAR_T 1
69428 _ACEOF
69429
69430       enable_wchar_t=yes
69431     fi
69432   fi
69433   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
69434 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
69435   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
69436 echo "${ECHO_T}$enable_wchar_t" >&6
69437
69438          # All of the dependencies for wide character support are here, so
69439          # turn it on.  This requires some syncronization with the
69440          # GLIBCXX_CHECK_WCHAR_T_SUPPORT in acinclude.m4
69441          cat >>confdefs.h <<\_ACEOF
69442 #define _GLIBCXX_USE_WCHAR_T 1
69443 _ACEOF
69444
69445          # Are these tested for even when cross?
69446          cat >>confdefs.h <<\_ACEOF
69447 #define HAVE_FLOAT_H 1
69448 _ACEOF
69449
69450          cat >>confdefs.h <<\_ACEOF
69451 #define HAVE_IEEEFP_H 1
69452 _ACEOF
69453
69454          cat >>confdefs.h <<\_ACEOF
69455 #define HAVE_INTTYPES_H 1
69456 _ACEOF
69457
69458          cat >>confdefs.h <<\_ACEOF
69459 #define HAVE_LOCALE_H 1
69460 _ACEOF
69461
69462          cat >>confdefs.h <<\_ACEOF
69463 #define HAVE_NAN_H 1
69464 _ACEOF
69465
69466          cat >>confdefs.h <<\_ACEOF
69467 #define HAVE_SYS_FILIO_H 1
69468 _ACEOF
69469
69470          cat >>confdefs.h <<\_ACEOF
69471 #define HAVE_SYS_IOCTL_H 1
69472 _ACEOF
69473
69474          cat >>confdefs.h <<\_ACEOF
69475 #define HAVE_SYS_ISA_DEFS_H 1
69476 _ACEOF
69477
69478          cat >>confdefs.h <<\_ACEOF
69479 #define HAVE_SYS_RESOURCE_H 1
69480 _ACEOF
69481
69482          cat >>confdefs.h <<\_ACEOF
69483 #define HAVE_SYS_TIME_H 1
69484 _ACEOF
69485
69486          cat >>confdefs.h <<\_ACEOF
69487 #define HAVE_SYS_TYPES_H 1
69488 _ACEOF
69489
69490          cat >>confdefs.h <<\_ACEOF
69491 #define HAVE_UNISTD_H 1
69492 _ACEOF
69493
69494          cat >>confdefs.h <<\_ACEOF
69495 #define HAVE_WCHAR_H 1
69496 _ACEOF
69497
69498          cat >>confdefs.h <<\_ACEOF
69499 #define HAVE_WCTYPE_H 1
69500 _ACEOF
69501
69502          cat >>confdefs.h <<\_ACEOF
69503 #define HAVE_LIBM 1
69504 _ACEOF
69505
69506         ;;
69507     esac
69508     case "$target" in
69509       sparc*-*-solaris2.8 | sparc*-*-solaris2.9 | sparc*-*-solaris2.10)
69510         # I saw these on sparc-sun-solaris2.8, but not 2.6, and not on i386
69511         cat >>confdefs.h <<\_ACEOF
69512 #define HAVE___BUILTIN_ABS 1
69513 _ACEOF
69514
69515         cat >>confdefs.h <<\_ACEOF
69516 #define HAVE___BUILTIN_LABS 1
69517 _ACEOF
69518
69519         cat >>confdefs.h <<\_ACEOF
69520 #define HAVE___BUILTIN_FABS 1
69521 _ACEOF
69522
69523         cat >>confdefs.h <<\_ACEOF
69524 #define HAVE___BUILTIN_FABSF 1
69525 _ACEOF
69526
69527         cat >>confdefs.h <<\_ACEOF
69528 #define HAVE___BUILTIN_FABSL 1
69529 _ACEOF
69530
69531         cat >>confdefs.h <<\_ACEOF
69532 #define HAVE___BUILTIN_COS 1
69533 _ACEOF
69534
69535         cat >>confdefs.h <<\_ACEOF
69536 #define HAVE___BUILTIN_COSF 1
69537 _ACEOF
69538
69539         cat >>confdefs.h <<\_ACEOF
69540 #define HAVE___BUILTIN_SIN 1
69541 _ACEOF
69542
69543         cat >>confdefs.h <<\_ACEOF
69544 #define HAVE___BUILTIN_SINF 1
69545 _ACEOF
69546
69547        ;;
69548     esac
69549     cat >>confdefs.h <<\_ACEOF
69550 #define HAVE_STRTOF 1
69551 _ACEOF
69552
69553     cat >>confdefs.h <<\_ACEOF
69554 #define HAVE_STRTOLD 1
69555 _ACEOF
69556
69557     cat >>confdefs.h <<\_ACEOF
69558 #define HAVE_MMAP 1
69559 _ACEOF
69560
69561     cat >>confdefs.h <<\_ACEOF
69562 #define HAVE_COPYSIGN 1
69563 _ACEOF
69564
69565     cat >>confdefs.h <<\_ACEOF
69566 #define HAVE_ISNAN 1
69567 _ACEOF
69568
69569     cat >>confdefs.h <<\_ACEOF
69570 #define HAVE_ISNANF 1
69571 _ACEOF
69572
69573     cat >>confdefs.h <<\_ACEOF
69574 #define HAVE_MODFF 1
69575 _ACEOF
69576
69577     cat >>confdefs.h <<\_ACEOF
69578 #define HAVE_HYPOT 1
69579 _ACEOF
69580
69581     ;;
69582   *-tpf)
69583
69584
69585
69586
69587
69588
69589
69590
69591 for ac_header in nan.h endian.h machine/endian.h  \
69592       sys/param.h sys/types.h locale.h float.h inttypes.h
69593 do
69594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
69595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69596   echo "$as_me:$LINENO: checking for $ac_header" >&5
69597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
69598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69599   echo $ECHO_N "(cached) $ECHO_C" >&6
69600 fi
69601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
69602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69603 else
69604   # Is the header compilable?
69605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
69606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
69607 cat >conftest.$ac_ext <<_ACEOF
69608 /* confdefs.h.  */
69609 _ACEOF
69610 cat confdefs.h >>conftest.$ac_ext
69611 cat >>conftest.$ac_ext <<_ACEOF
69612 /* end confdefs.h.  */
69613 $ac_includes_default
69614 #include <$ac_header>
69615 _ACEOF
69616 rm -f conftest.$ac_objext
69617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
69618   (eval $ac_compile) 2>conftest.er1
69619   ac_status=$?
69620   grep -v '^ *+' conftest.er1 >conftest.err
69621   rm -f conftest.er1
69622   cat conftest.err >&5
69623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69624   (exit $ac_status); } &&
69625          { ac_try='test -z "$ac_c_werror_flag"
69626                          || test ! -s conftest.err'
69627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69628   (eval $ac_try) 2>&5
69629   ac_status=$?
69630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69631   (exit $ac_status); }; } &&
69632          { ac_try='test -s conftest.$ac_objext'
69633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69634   (eval $ac_try) 2>&5
69635   ac_status=$?
69636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69637   (exit $ac_status); }; }; then
69638   ac_header_compiler=yes
69639 else
69640   echo "$as_me: failed program was:" >&5
69641 sed 's/^/| /' conftest.$ac_ext >&5
69642
69643 ac_header_compiler=no
69644 fi
69645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
69646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
69647 echo "${ECHO_T}$ac_header_compiler" >&6
69648
69649 # Is the header present?
69650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
69651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
69652 cat >conftest.$ac_ext <<_ACEOF
69653 /* confdefs.h.  */
69654 _ACEOF
69655 cat confdefs.h >>conftest.$ac_ext
69656 cat >>conftest.$ac_ext <<_ACEOF
69657 /* end confdefs.h.  */
69658 #include <$ac_header>
69659 _ACEOF
69660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
69661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
69662   ac_status=$?
69663   grep -v '^ *+' conftest.er1 >conftest.err
69664   rm -f conftest.er1
69665   cat conftest.err >&5
69666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69667   (exit $ac_status); } >/dev/null; then
69668   if test -s conftest.err; then
69669     ac_cpp_err=$ac_c_preproc_warn_flag
69670     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
69671   else
69672     ac_cpp_err=
69673   fi
69674 else
69675   ac_cpp_err=yes
69676 fi
69677 if test -z "$ac_cpp_err"; then
69678   ac_header_preproc=yes
69679 else
69680   echo "$as_me: failed program was:" >&5
69681 sed 's/^/| /' conftest.$ac_ext >&5
69682
69683   ac_header_preproc=no
69684 fi
69685 rm -f conftest.err conftest.$ac_ext
69686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
69687 echo "${ECHO_T}$ac_header_preproc" >&6
69688
69689 # So?  What about this header?
69690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
69691   yes:no: )
69692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
69693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
69694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
69695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
69696     ac_header_preproc=yes
69697     ;;
69698   no:yes:* )
69699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
69700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
69701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
69702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
69703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
69704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
69705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
69706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
69707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
69708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
69709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
69710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
69711     (
69712       cat <<\_ASBOX
69713 ## ----------------------------------------- ##
69714 ## Report this to the package-unused lists.  ##
69715 ## ----------------------------------------- ##
69716 _ASBOX
69717     ) |
69718       sed "s/^/$as_me: WARNING:     /" >&2
69719     ;;
69720 esac
69721 echo "$as_me:$LINENO: checking for $ac_header" >&5
69722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
69723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
69724   echo $ECHO_N "(cached) $ECHO_C" >&6
69725 else
69726   eval "$as_ac_Header=\$ac_header_preproc"
69727 fi
69728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
69729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
69730
69731 fi
69732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
69733   cat >>confdefs.h <<_ACEOF
69734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
69735 _ACEOF
69736
69737 fi
69738
69739 done
69740
69741     SECTION_FLAGS='-ffunction-sections -fdata-sections'
69742
69743
69744   # If we're not using GNU ld, then there's no point in even trying these
69745   # tests.  Check for that first.  We should have already tested for gld
69746   # by now (in libtool), but require it now just to be safe...
69747   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
69748   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
69749
69750
69751
69752   # The name set by libtool depends on the version of libtool.  Shame on us
69753   # for depending on an impl detail, but c'est la vie.  Older versions used
69754   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
69755   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
69756   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
69757   # set (hence we're using an older libtool), then set it.
69758   if test x${with_gnu_ld+set} != xset; then
69759     if test x${ac_cv_prog_gnu_ld+set} != xset; then
69760       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
69761       with_gnu_ld=no
69762     else
69763       with_gnu_ld=$ac_cv_prog_gnu_ld
69764     fi
69765   fi
69766
69767   # Start by getting the version number.  I think the libtool test already
69768   # does some of this, but throws away the result.
69769
69770   ldver=`$LD --version 2>/dev/null | head -1 | \
69771          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
69772
69773   glibcxx_gnu_ld_version=`echo $ldver | \
69774          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
69775
69776   # Set --gc-sections.
69777   if test "$with_gnu_ld" = "notbroken"; then
69778     # GNU ld it is!  Joy and bunny rabbits!
69779
69780     # All these tests are for C++; save the language and the compiler flags.
69781     # Need to do this so that g++ won't try to link in libstdc++
69782     ac_test_CFLAGS="${CFLAGS+set}"
69783     ac_save_CFLAGS="$CFLAGS"
69784     CFLAGS='-x c++  -Wl,--gc-sections'
69785
69786     # Check for -Wl,--gc-sections
69787     # XXX This test is broken at the moment, as symbols required for linking
69788     # are now in libsupc++ (not built yet).  In addition, this test has
69789     # cored on solaris in the past.  In addition, --gc-sections doesn't
69790     # really work at the moment (keeps on discarding used sections, first
69791     # .eh_frame and now some of the glibc sections for iconv).
69792     # Bzzzzt.  Thanks for playing, maybe next time.
69793     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
69794 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
69795     if test "$cross_compiling" = yes; then
69796   ac_sectionLDflags=yes
69797 else
69798   cat >conftest.$ac_ext <<_ACEOF
69799 /* confdefs.h.  */
69800 _ACEOF
69801 cat confdefs.h >>conftest.$ac_ext
69802 cat >>conftest.$ac_ext <<_ACEOF
69803 /* end confdefs.h.  */
69804
69805      int main(void)
69806      {
69807        try { throw 1; }
69808        catch (...) { };
69809        return 0;
69810      }
69811
69812 _ACEOF
69813 rm -f conftest$ac_exeext
69814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69815   (eval $ac_link) 2>&5
69816   ac_status=$?
69817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69818   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
69819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69820   (eval $ac_try) 2>&5
69821   ac_status=$?
69822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69823   (exit $ac_status); }; }; then
69824   ac_sectionLDflags=yes
69825 else
69826   echo "$as_me: program exited with status $ac_status" >&5
69827 echo "$as_me: failed program was:" >&5
69828 sed 's/^/| /' conftest.$ac_ext >&5
69829
69830 ( exit $ac_status )
69831 ac_sectionLDflags=no
69832 fi
69833 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
69834 fi
69835     if test "$ac_test_CFLAGS" = set; then
69836       CFLAGS="$ac_save_CFLAGS"
69837     else
69838       # this is the suspicious part
69839       CFLAGS=''
69840     fi
69841     if test "$ac_sectionLDflags" = "yes"; then
69842       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
69843     fi
69844     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
69845 echo "${ECHO_T}$ac_sectionLDflags" >&6
69846   fi
69847
69848   # Set linker optimization flags.
69849   if test x"$with_gnu_ld" = x"yes"; then
69850     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
69851   fi
69852
69853
69854
69855
69856
69857
69858 echo "$as_me:$LINENO: checking for main in -lm" >&5
69859 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
69860 if test "${ac_cv_lib_m_main+set}" = set; then
69861   echo $ECHO_N "(cached) $ECHO_C" >&6
69862 else
69863   ac_check_lib_save_LIBS=$LIBS
69864 LIBS="-lm  $LIBS"
69865 if test x$gcc_no_link = xyes; then
69866   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69867 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69868    { (exit 1); exit 1; }; }
69869 fi
69870 cat >conftest.$ac_ext <<_ACEOF
69871 /* confdefs.h.  */
69872 _ACEOF
69873 cat confdefs.h >>conftest.$ac_ext
69874 cat >>conftest.$ac_ext <<_ACEOF
69875 /* end confdefs.h.  */
69876
69877
69878 int
69879 main ()
69880 {
69881 main ();
69882   ;
69883   return 0;
69884 }
69885 _ACEOF
69886 rm -f conftest.$ac_objext conftest$ac_exeext
69887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69888   (eval $ac_link) 2>conftest.er1
69889   ac_status=$?
69890   grep -v '^ *+' conftest.er1 >conftest.err
69891   rm -f conftest.er1
69892   cat conftest.err >&5
69893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69894   (exit $ac_status); } &&
69895          { ac_try='test -z "$ac_c_werror_flag"
69896                          || test ! -s conftest.err'
69897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69898   (eval $ac_try) 2>&5
69899   ac_status=$?
69900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69901   (exit $ac_status); }; } &&
69902          { ac_try='test -s conftest$ac_exeext'
69903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
69904   (eval $ac_try) 2>&5
69905   ac_status=$?
69906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
69907   (exit $ac_status); }; }; then
69908   ac_cv_lib_m_main=yes
69909 else
69910   echo "$as_me: failed program was:" >&5
69911 sed 's/^/| /' conftest.$ac_ext >&5
69912
69913 ac_cv_lib_m_main=no
69914 fi
69915 rm -f conftest.err conftest.$ac_objext \
69916       conftest$ac_exeext conftest.$ac_ext
69917 LIBS=$ac_check_lib_save_LIBS
69918 fi
69919 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
69920 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
69921 if test $ac_cv_lib_m_main = yes; then
69922   cat >>confdefs.h <<_ACEOF
69923 #define HAVE_LIBM 1
69924 _ACEOF
69925
69926   LIBS="-lm $LIBS"
69927
69928 fi
69929
69930
69931 for ac_func in copysignf
69932 do
69933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
69934 echo "$as_me:$LINENO: checking for $ac_func" >&5
69935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
69936 if eval "test \"\${$as_ac_var+set}\" = set"; then
69937   echo $ECHO_N "(cached) $ECHO_C" >&6
69938 else
69939   if test x$gcc_no_link = xyes; then
69940   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
69941 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
69942    { (exit 1); exit 1; }; }
69943 fi
69944 cat >conftest.$ac_ext <<_ACEOF
69945 /* confdefs.h.  */
69946 _ACEOF
69947 cat confdefs.h >>conftest.$ac_ext
69948 cat >>conftest.$ac_ext <<_ACEOF
69949 /* end confdefs.h.  */
69950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
69951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
69952 #define $ac_func innocuous_$ac_func
69953
69954 /* System header to define __stub macros and hopefully few prototypes,
69955     which can conflict with char $ac_func (); below.
69956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
69957     <limits.h> exists even on freestanding compilers.  */
69958
69959 #ifdef __STDC__
69960 # include <limits.h>
69961 #else
69962 # include <assert.h>
69963 #endif
69964
69965 #undef $ac_func
69966
69967 /* Override any gcc2 internal prototype to avoid an error.  */
69968 #ifdef __cplusplus
69969 extern "C"
69970 {
69971 #endif
69972 /* We use char because int might match the return type of a gcc2
69973    builtin and then its argument prototype would still apply.  */
69974 char $ac_func ();
69975 /* The GNU C library defines this for functions which it implements
69976     to always fail with ENOSYS.  Some functions are actually named
69977     something starting with __ and the normal name is an alias.  */
69978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
69979 choke me
69980 #else
69981 char (*f) () = $ac_func;
69982 #endif
69983 #ifdef __cplusplus
69984 }
69985 #endif
69986
69987 int
69988 main ()
69989 {
69990 return f != $ac_func;
69991   ;
69992   return 0;
69993 }
69994 _ACEOF
69995 rm -f conftest.$ac_objext conftest$ac_exeext
69996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
69997   (eval $ac_link) 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_exeext'
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   eval "$as_ac_var=yes"
70018 else
70019   echo "$as_me: failed program was:" >&5
70020 sed 's/^/| /' conftest.$ac_ext >&5
70021
70022 eval "$as_ac_var=no"
70023 fi
70024 rm -f conftest.err conftest.$ac_objext \
70025       conftest$ac_exeext conftest.$ac_ext
70026 fi
70027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70029 if test `eval echo '${'$as_ac_var'}'` = yes; then
70030   cat >>confdefs.h <<_ACEOF
70031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70032 _ACEOF
70033
70034 else
70035   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
70036 fi
70037 done
70038
70039
70040
70041 for ac_func in __signbit
70042 do
70043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70044 echo "$as_me:$LINENO: checking for $ac_func" >&5
70045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70046 if eval "test \"\${$as_ac_var+set}\" = set"; then
70047   echo $ECHO_N "(cached) $ECHO_C" >&6
70048 else
70049   if test x$gcc_no_link = xyes; then
70050   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70051 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70052    { (exit 1); exit 1; }; }
70053 fi
70054 cat >conftest.$ac_ext <<_ACEOF
70055 /* confdefs.h.  */
70056 _ACEOF
70057 cat confdefs.h >>conftest.$ac_ext
70058 cat >>conftest.$ac_ext <<_ACEOF
70059 /* end confdefs.h.  */
70060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70062 #define $ac_func innocuous_$ac_func
70063
70064 /* System header to define __stub macros and hopefully few prototypes,
70065     which can conflict with char $ac_func (); below.
70066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70067     <limits.h> exists even on freestanding compilers.  */
70068
70069 #ifdef __STDC__
70070 # include <limits.h>
70071 #else
70072 # include <assert.h>
70073 #endif
70074
70075 #undef $ac_func
70076
70077 /* Override any gcc2 internal prototype to avoid an error.  */
70078 #ifdef __cplusplus
70079 extern "C"
70080 {
70081 #endif
70082 /* We use char because int might match the return type of a gcc2
70083    builtin and then its argument prototype would still apply.  */
70084 char $ac_func ();
70085 /* The GNU C library defines this for functions which it implements
70086     to always fail with ENOSYS.  Some functions are actually named
70087     something starting with __ and the normal name is an alias.  */
70088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70089 choke me
70090 #else
70091 char (*f) () = $ac_func;
70092 #endif
70093 #ifdef __cplusplus
70094 }
70095 #endif
70096
70097 int
70098 main ()
70099 {
70100 return f != $ac_func;
70101   ;
70102   return 0;
70103 }
70104 _ACEOF
70105 rm -f conftest.$ac_objext conftest$ac_exeext
70106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70107   (eval $ac_link) 2>conftest.er1
70108   ac_status=$?
70109   grep -v '^ *+' conftest.er1 >conftest.err
70110   rm -f conftest.er1
70111   cat conftest.err >&5
70112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70113   (exit $ac_status); } &&
70114          { ac_try='test -z "$ac_c_werror_flag"
70115                          || test ! -s conftest.err'
70116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70117   (eval $ac_try) 2>&5
70118   ac_status=$?
70119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70120   (exit $ac_status); }; } &&
70121          { ac_try='test -s conftest$ac_exeext'
70122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70123   (eval $ac_try) 2>&5
70124   ac_status=$?
70125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70126   (exit $ac_status); }; }; then
70127   eval "$as_ac_var=yes"
70128 else
70129   echo "$as_me: failed program was:" >&5
70130 sed 's/^/| /' conftest.$ac_ext >&5
70131
70132 eval "$as_ac_var=no"
70133 fi
70134 rm -f conftest.err conftest.$ac_objext \
70135       conftest$ac_exeext conftest.$ac_ext
70136 fi
70137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70139 if test `eval echo '${'$as_ac_var'}'` = yes; then
70140   cat >>confdefs.h <<_ACEOF
70141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70142 _ACEOF
70143
70144 else
70145   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
70146 fi
70147 done
70148
70149
70150 for ac_func in __signbitf
70151 do
70152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70153 echo "$as_me:$LINENO: checking for $ac_func" >&5
70154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70155 if eval "test \"\${$as_ac_var+set}\" = set"; then
70156   echo $ECHO_N "(cached) $ECHO_C" >&6
70157 else
70158   if test x$gcc_no_link = xyes; then
70159   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70160 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70161    { (exit 1); exit 1; }; }
70162 fi
70163 cat >conftest.$ac_ext <<_ACEOF
70164 /* confdefs.h.  */
70165 _ACEOF
70166 cat confdefs.h >>conftest.$ac_ext
70167 cat >>conftest.$ac_ext <<_ACEOF
70168 /* end confdefs.h.  */
70169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70171 #define $ac_func innocuous_$ac_func
70172
70173 /* System header to define __stub macros and hopefully few prototypes,
70174     which can conflict with char $ac_func (); below.
70175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70176     <limits.h> exists even on freestanding compilers.  */
70177
70178 #ifdef __STDC__
70179 # include <limits.h>
70180 #else
70181 # include <assert.h>
70182 #endif
70183
70184 #undef $ac_func
70185
70186 /* Override any gcc2 internal prototype to avoid an error.  */
70187 #ifdef __cplusplus
70188 extern "C"
70189 {
70190 #endif
70191 /* We use char because int might match the return type of a gcc2
70192    builtin and then its argument prototype would still apply.  */
70193 char $ac_func ();
70194 /* The GNU C library defines this for functions which it implements
70195     to always fail with ENOSYS.  Some functions are actually named
70196     something starting with __ and the normal name is an alias.  */
70197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70198 choke me
70199 #else
70200 char (*f) () = $ac_func;
70201 #endif
70202 #ifdef __cplusplus
70203 }
70204 #endif
70205
70206 int
70207 main ()
70208 {
70209 return f != $ac_func;
70210   ;
70211   return 0;
70212 }
70213 _ACEOF
70214 rm -f conftest.$ac_objext conftest$ac_exeext
70215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70216   (eval $ac_link) 2>conftest.er1
70217   ac_status=$?
70218   grep -v '^ *+' conftest.er1 >conftest.err
70219   rm -f conftest.er1
70220   cat conftest.err >&5
70221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70222   (exit $ac_status); } &&
70223          { ac_try='test -z "$ac_c_werror_flag"
70224                          || test ! -s conftest.err'
70225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70226   (eval $ac_try) 2>&5
70227   ac_status=$?
70228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70229   (exit $ac_status); }; } &&
70230          { ac_try='test -s conftest$ac_exeext'
70231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70232   (eval $ac_try) 2>&5
70233   ac_status=$?
70234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70235   (exit $ac_status); }; }; then
70236   eval "$as_ac_var=yes"
70237 else
70238   echo "$as_me: failed program was:" >&5
70239 sed 's/^/| /' conftest.$ac_ext >&5
70240
70241 eval "$as_ac_var=no"
70242 fi
70243 rm -f conftest.err conftest.$ac_objext \
70244       conftest$ac_exeext conftest.$ac_ext
70245 fi
70246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70248 if test `eval echo '${'$as_ac_var'}'` = yes; then
70249   cat >>confdefs.h <<_ACEOF
70250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70251 _ACEOF
70252
70253 else
70254   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
70255 fi
70256 done
70257
70258
70259           if test x$ac_cv_func_copysignl = x"yes"; then
70260
70261 for ac_func in __signbitl
70262 do
70263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70264 echo "$as_me:$LINENO: checking for $ac_func" >&5
70265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70266 if eval "test \"\${$as_ac_var+set}\" = set"; then
70267   echo $ECHO_N "(cached) $ECHO_C" >&6
70268 else
70269   if test x$gcc_no_link = xyes; then
70270   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70271 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70272    { (exit 1); exit 1; }; }
70273 fi
70274 cat >conftest.$ac_ext <<_ACEOF
70275 /* confdefs.h.  */
70276 _ACEOF
70277 cat confdefs.h >>conftest.$ac_ext
70278 cat >>conftest.$ac_ext <<_ACEOF
70279 /* end confdefs.h.  */
70280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70282 #define $ac_func innocuous_$ac_func
70283
70284 /* System header to define __stub macros and hopefully few prototypes,
70285     which can conflict with char $ac_func (); below.
70286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70287     <limits.h> exists even on freestanding compilers.  */
70288
70289 #ifdef __STDC__
70290 # include <limits.h>
70291 #else
70292 # include <assert.h>
70293 #endif
70294
70295 #undef $ac_func
70296
70297 /* Override any gcc2 internal prototype to avoid an error.  */
70298 #ifdef __cplusplus
70299 extern "C"
70300 {
70301 #endif
70302 /* We use char because int might match the return type of a gcc2
70303    builtin and then its argument prototype would still apply.  */
70304 char $ac_func ();
70305 /* The GNU C library defines this for functions which it implements
70306     to always fail with ENOSYS.  Some functions are actually named
70307     something starting with __ and the normal name is an alias.  */
70308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70309 choke me
70310 #else
70311 char (*f) () = $ac_func;
70312 #endif
70313 #ifdef __cplusplus
70314 }
70315 #endif
70316
70317 int
70318 main ()
70319 {
70320 return f != $ac_func;
70321   ;
70322   return 0;
70323 }
70324 _ACEOF
70325 rm -f conftest.$ac_objext conftest$ac_exeext
70326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70327   (eval $ac_link) 2>conftest.er1
70328   ac_status=$?
70329   grep -v '^ *+' conftest.er1 >conftest.err
70330   rm -f conftest.er1
70331   cat conftest.err >&5
70332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70333   (exit $ac_status); } &&
70334          { ac_try='test -z "$ac_c_werror_flag"
70335                          || test ! -s conftest.err'
70336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70337   (eval $ac_try) 2>&5
70338   ac_status=$?
70339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70340   (exit $ac_status); }; } &&
70341          { ac_try='test -s conftest$ac_exeext'
70342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70343   (eval $ac_try) 2>&5
70344   ac_status=$?
70345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70346   (exit $ac_status); }; }; then
70347   eval "$as_ac_var=yes"
70348 else
70349   echo "$as_me: failed program was:" >&5
70350 sed 's/^/| /' conftest.$ac_ext >&5
70351
70352 eval "$as_ac_var=no"
70353 fi
70354 rm -f conftest.err conftest.$ac_objext \
70355       conftest$ac_exeext conftest.$ac_ext
70356 fi
70357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70359 if test `eval echo '${'$as_ac_var'}'` = yes; then
70360   cat >>confdefs.h <<_ACEOF
70361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70362 _ACEOF
70363
70364 else
70365   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
70366 fi
70367 done
70368
70369   fi
70370
70371   # XXX Review this.  Nothing uses it.
70372   if test -n "$LIBMATHOBJS"; then
70373     need_libmath=yes
70374   fi
70375
70376
70377
70378   # Test wchar.h for mbstate_t, which is needed for char_traits and
70379   # others even if wchar_t support is not on.
70380   echo "$as_me:$LINENO: checking for mbstate_t" >&5
70381 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
70382   cat >conftest.$ac_ext <<_ACEOF
70383 /* confdefs.h.  */
70384 _ACEOF
70385 cat confdefs.h >>conftest.$ac_ext
70386 cat >>conftest.$ac_ext <<_ACEOF
70387 /* end confdefs.h.  */
70388 #include <wchar.h>
70389 int
70390 main ()
70391 {
70392 mbstate_t teststate;
70393   ;
70394   return 0;
70395 }
70396 _ACEOF
70397 rm -f conftest.$ac_objext
70398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70399   (eval $ac_compile) 2>conftest.er1
70400   ac_status=$?
70401   grep -v '^ *+' conftest.er1 >conftest.err
70402   rm -f conftest.er1
70403   cat conftest.err >&5
70404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70405   (exit $ac_status); } &&
70406          { ac_try='test -z "$ac_c_werror_flag"
70407                          || test ! -s conftest.err'
70408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70409   (eval $ac_try) 2>&5
70410   ac_status=$?
70411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70412   (exit $ac_status); }; } &&
70413          { ac_try='test -s conftest.$ac_objext'
70414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70415   (eval $ac_try) 2>&5
70416   ac_status=$?
70417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70418   (exit $ac_status); }; }; then
70419   have_mbstate_t=yes
70420 else
70421   echo "$as_me: failed program was:" >&5
70422 sed 's/^/| /' conftest.$ac_ext >&5
70423
70424 have_mbstate_t=no
70425 fi
70426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70427   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
70428 echo "${ECHO_T}$have_mbstate_t" >&6
70429   if test x"$have_mbstate_t" = xyes; then
70430     cat >>confdefs.h <<\_ACEOF
70431 #define HAVE_MBSTATE_T 1
70432 _ACEOF
70433
70434   fi
70435
70436   # Sanity check for existence of ISO C99 headers for extended encoding.
70437
70438 for ac_header in wchar.h
70439 do
70440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
70441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70442   echo "$as_me:$LINENO: checking for $ac_header" >&5
70443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70445   echo $ECHO_N "(cached) $ECHO_C" >&6
70446 fi
70447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70449 else
70450   # Is the header compilable?
70451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
70452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
70453 cat >conftest.$ac_ext <<_ACEOF
70454 /* confdefs.h.  */
70455 _ACEOF
70456 cat confdefs.h >>conftest.$ac_ext
70457 cat >>conftest.$ac_ext <<_ACEOF
70458 /* end confdefs.h.  */
70459 $ac_includes_default
70460 #include <$ac_header>
70461 _ACEOF
70462 rm -f conftest.$ac_objext
70463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70464   (eval $ac_compile) 2>conftest.er1
70465   ac_status=$?
70466   grep -v '^ *+' conftest.er1 >conftest.err
70467   rm -f conftest.er1
70468   cat conftest.err >&5
70469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70470   (exit $ac_status); } &&
70471          { ac_try='test -z "$ac_c_werror_flag"
70472                          || test ! -s conftest.err'
70473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70474   (eval $ac_try) 2>&5
70475   ac_status=$?
70476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70477   (exit $ac_status); }; } &&
70478          { ac_try='test -s conftest.$ac_objext'
70479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70480   (eval $ac_try) 2>&5
70481   ac_status=$?
70482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70483   (exit $ac_status); }; }; then
70484   ac_header_compiler=yes
70485 else
70486   echo "$as_me: failed program was:" >&5
70487 sed 's/^/| /' conftest.$ac_ext >&5
70488
70489 ac_header_compiler=no
70490 fi
70491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70493 echo "${ECHO_T}$ac_header_compiler" >&6
70494
70495 # Is the header present?
70496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
70497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
70498 cat >conftest.$ac_ext <<_ACEOF
70499 /* confdefs.h.  */
70500 _ACEOF
70501 cat confdefs.h >>conftest.$ac_ext
70502 cat >>conftest.$ac_ext <<_ACEOF
70503 /* end confdefs.h.  */
70504 #include <$ac_header>
70505 _ACEOF
70506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70508   ac_status=$?
70509   grep -v '^ *+' conftest.er1 >conftest.err
70510   rm -f conftest.er1
70511   cat conftest.err >&5
70512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70513   (exit $ac_status); } >/dev/null; then
70514   if test -s conftest.err; then
70515     ac_cpp_err=$ac_c_preproc_warn_flag
70516     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70517   else
70518     ac_cpp_err=
70519   fi
70520 else
70521   ac_cpp_err=yes
70522 fi
70523 if test -z "$ac_cpp_err"; then
70524   ac_header_preproc=yes
70525 else
70526   echo "$as_me: failed program was:" >&5
70527 sed 's/^/| /' conftest.$ac_ext >&5
70528
70529   ac_header_preproc=no
70530 fi
70531 rm -f conftest.err conftest.$ac_ext
70532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70533 echo "${ECHO_T}$ac_header_preproc" >&6
70534
70535 # So?  What about this header?
70536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70537   yes:no: )
70538     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
70539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
70540     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
70541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
70542     ac_header_preproc=yes
70543     ;;
70544   no:yes:* )
70545     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
70546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
70547     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
70548 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
70549     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
70550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
70551     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
70552 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
70553     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
70554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
70555     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
70556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
70557     (
70558       cat <<\_ASBOX
70559 ## ----------------------------------------- ##
70560 ## Report this to the package-unused lists.  ##
70561 ## ----------------------------------------- ##
70562 _ASBOX
70563     ) |
70564       sed "s/^/$as_me: WARNING:     /" >&2
70565     ;;
70566 esac
70567 echo "$as_me:$LINENO: checking for $ac_header" >&5
70568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70570   echo $ECHO_N "(cached) $ECHO_C" >&6
70571 else
70572   eval "$as_ac_Header=\$ac_header_preproc"
70573 fi
70574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70576
70577 fi
70578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
70579   cat >>confdefs.h <<_ACEOF
70580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
70581 _ACEOF
70582  ac_has_wchar_h=yes
70583 else
70584   ac_has_wchar_h=no
70585 fi
70586
70587 done
70588
70589
70590 for ac_header in wctype.h
70591 do
70592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
70593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70594   echo "$as_me:$LINENO: checking for $ac_header" >&5
70595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70597   echo $ECHO_N "(cached) $ECHO_C" >&6
70598 fi
70599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70601 else
70602   # Is the header compilable?
70603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
70604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
70605 cat >conftest.$ac_ext <<_ACEOF
70606 /* confdefs.h.  */
70607 _ACEOF
70608 cat confdefs.h >>conftest.$ac_ext
70609 cat >>conftest.$ac_ext <<_ACEOF
70610 /* end confdefs.h.  */
70611 $ac_includes_default
70612 #include <$ac_header>
70613 _ACEOF
70614 rm -f conftest.$ac_objext
70615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70616   (eval $ac_compile) 2>conftest.er1
70617   ac_status=$?
70618   grep -v '^ *+' conftest.er1 >conftest.err
70619   rm -f conftest.er1
70620   cat conftest.err >&5
70621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70622   (exit $ac_status); } &&
70623          { ac_try='test -z "$ac_c_werror_flag"
70624                          || test ! -s conftest.err'
70625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70626   (eval $ac_try) 2>&5
70627   ac_status=$?
70628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70629   (exit $ac_status); }; } &&
70630          { ac_try='test -s conftest.$ac_objext'
70631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70632   (eval $ac_try) 2>&5
70633   ac_status=$?
70634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70635   (exit $ac_status); }; }; then
70636   ac_header_compiler=yes
70637 else
70638   echo "$as_me: failed program was:" >&5
70639 sed 's/^/| /' conftest.$ac_ext >&5
70640
70641 ac_header_compiler=no
70642 fi
70643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
70645 echo "${ECHO_T}$ac_header_compiler" >&6
70646
70647 # Is the header present?
70648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
70649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
70650 cat >conftest.$ac_ext <<_ACEOF
70651 /* confdefs.h.  */
70652 _ACEOF
70653 cat confdefs.h >>conftest.$ac_ext
70654 cat >>conftest.$ac_ext <<_ACEOF
70655 /* end confdefs.h.  */
70656 #include <$ac_header>
70657 _ACEOF
70658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
70659   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
70660   ac_status=$?
70661   grep -v '^ *+' conftest.er1 >conftest.err
70662   rm -f conftest.er1
70663   cat conftest.err >&5
70664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70665   (exit $ac_status); } >/dev/null; then
70666   if test -s conftest.err; then
70667     ac_cpp_err=$ac_c_preproc_warn_flag
70668     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
70669   else
70670     ac_cpp_err=
70671   fi
70672 else
70673   ac_cpp_err=yes
70674 fi
70675 if test -z "$ac_cpp_err"; then
70676   ac_header_preproc=yes
70677 else
70678   echo "$as_me: failed program was:" >&5
70679 sed 's/^/| /' conftest.$ac_ext >&5
70680
70681   ac_header_preproc=no
70682 fi
70683 rm -f conftest.err conftest.$ac_ext
70684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
70685 echo "${ECHO_T}$ac_header_preproc" >&6
70686
70687 # So?  What about this header?
70688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
70689   yes:no: )
70690     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
70691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
70692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
70693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
70694     ac_header_preproc=yes
70695     ;;
70696   no:yes:* )
70697     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
70698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
70699     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
70700 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
70701     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
70702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
70703     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
70704 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
70705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
70706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
70707     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
70708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
70709     (
70710       cat <<\_ASBOX
70711 ## ----------------------------------------- ##
70712 ## Report this to the package-unused lists.  ##
70713 ## ----------------------------------------- ##
70714 _ASBOX
70715     ) |
70716       sed "s/^/$as_me: WARNING:     /" >&2
70717     ;;
70718 esac
70719 echo "$as_me:$LINENO: checking for $ac_header" >&5
70720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
70721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
70722   echo $ECHO_N "(cached) $ECHO_C" >&6
70723 else
70724   eval "$as_ac_Header=\$ac_header_preproc"
70725 fi
70726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
70727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
70728
70729 fi
70730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
70731   cat >>confdefs.h <<_ACEOF
70732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
70733 _ACEOF
70734  ac_has_wctype_h=yes
70735 else
70736   ac_has_wctype_h=no
70737 fi
70738
70739 done
70740
70741
70742   # Only continue checking if the ISO C99 headers exist and support is on.
70743   if test x"$ac_has_wchar_h" = xyes &&
70744      test x"$ac_has_wctype_h" = xyes &&
70745      test x"$enable_c_mbchar" != xno; then
70746
70747     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
70748     # numeric_limits can instantiate type_traits<wchar_t>
70749     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
70750 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
70751     cat >conftest.$ac_ext <<_ACEOF
70752 /* confdefs.h.  */
70753 _ACEOF
70754 cat confdefs.h >>conftest.$ac_ext
70755 cat >>conftest.$ac_ext <<_ACEOF
70756 /* end confdefs.h.  */
70757 #include <wchar.h>
70758 int
70759 main ()
70760 {
70761 int i = WCHAR_MIN; int j = WCHAR_MAX;
70762   ;
70763   return 0;
70764 }
70765 _ACEOF
70766 rm -f conftest.$ac_objext
70767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70768   (eval $ac_compile) 2>conftest.er1
70769   ac_status=$?
70770   grep -v '^ *+' conftest.er1 >conftest.err
70771   rm -f conftest.er1
70772   cat conftest.err >&5
70773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70774   (exit $ac_status); } &&
70775          { ac_try='test -z "$ac_c_werror_flag"
70776                          || test ! -s conftest.err'
70777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70778   (eval $ac_try) 2>&5
70779   ac_status=$?
70780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70781   (exit $ac_status); }; } &&
70782          { ac_try='test -s conftest.$ac_objext'
70783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70784   (eval $ac_try) 2>&5
70785   ac_status=$?
70786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70787   (exit $ac_status); }; }; then
70788   has_wchar_minmax=yes
70789 else
70790   echo "$as_me: failed program was:" >&5
70791 sed 's/^/| /' conftest.$ac_ext >&5
70792
70793 has_wchar_minmax=no
70794 fi
70795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70796     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
70797 echo "${ECHO_T}$has_wchar_minmax" >&6
70798
70799     # Test wchar.h for WEOF, which is what we use to determine whether
70800     # to specialize for char_traits<wchar_t> or not.
70801     echo "$as_me:$LINENO: checking for WEOF" >&5
70802 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
70803     cat >conftest.$ac_ext <<_ACEOF
70804 /* confdefs.h.  */
70805 _ACEOF
70806 cat confdefs.h >>conftest.$ac_ext
70807 cat >>conftest.$ac_ext <<_ACEOF
70808 /* end confdefs.h.  */
70809
70810       #include <wchar.h>
70811       #include <stddef.h>
70812 int
70813 main ()
70814 {
70815 wint_t i = WEOF;
70816   ;
70817   return 0;
70818 }
70819 _ACEOF
70820 rm -f conftest.$ac_objext
70821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
70822   (eval $ac_compile) 2>conftest.er1
70823   ac_status=$?
70824   grep -v '^ *+' conftest.er1 >conftest.err
70825   rm -f conftest.er1
70826   cat conftest.err >&5
70827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70828   (exit $ac_status); } &&
70829          { ac_try='test -z "$ac_c_werror_flag"
70830                          || test ! -s conftest.err'
70831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70832   (eval $ac_try) 2>&5
70833   ac_status=$?
70834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70835   (exit $ac_status); }; } &&
70836          { ac_try='test -s conftest.$ac_objext'
70837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70838   (eval $ac_try) 2>&5
70839   ac_status=$?
70840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70841   (exit $ac_status); }; }; then
70842   has_weof=yes
70843 else
70844   echo "$as_me: failed program was:" >&5
70845 sed 's/^/| /' conftest.$ac_ext >&5
70846
70847 has_weof=no
70848 fi
70849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70850     echo "$as_me:$LINENO: result: $has_weof" >&5
70851 echo "${ECHO_T}$has_weof" >&6
70852
70853     # Tests for wide character functions used in char_traits<wchar_t>.
70854     ac_wfuncs=yes
70855
70856
70857
70858
70859
70860
70861 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
70862 do
70863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
70864 echo "$as_me:$LINENO: checking for $ac_func" >&5
70865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
70866 if eval "test \"\${$as_ac_var+set}\" = set"; then
70867   echo $ECHO_N "(cached) $ECHO_C" >&6
70868 else
70869   if test x$gcc_no_link = xyes; then
70870   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
70871 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
70872    { (exit 1); exit 1; }; }
70873 fi
70874 cat >conftest.$ac_ext <<_ACEOF
70875 /* confdefs.h.  */
70876 _ACEOF
70877 cat confdefs.h >>conftest.$ac_ext
70878 cat >>conftest.$ac_ext <<_ACEOF
70879 /* end confdefs.h.  */
70880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
70881    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
70882 #define $ac_func innocuous_$ac_func
70883
70884 /* System header to define __stub macros and hopefully few prototypes,
70885     which can conflict with char $ac_func (); below.
70886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
70887     <limits.h> exists even on freestanding compilers.  */
70888
70889 #ifdef __STDC__
70890 # include <limits.h>
70891 #else
70892 # include <assert.h>
70893 #endif
70894
70895 #undef $ac_func
70896
70897 /* Override any gcc2 internal prototype to avoid an error.  */
70898 #ifdef __cplusplus
70899 extern "C"
70900 {
70901 #endif
70902 /* We use char because int might match the return type of a gcc2
70903    builtin and then its argument prototype would still apply.  */
70904 char $ac_func ();
70905 /* The GNU C library defines this for functions which it implements
70906     to always fail with ENOSYS.  Some functions are actually named
70907     something starting with __ and the normal name is an alias.  */
70908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
70909 choke me
70910 #else
70911 char (*f) () = $ac_func;
70912 #endif
70913 #ifdef __cplusplus
70914 }
70915 #endif
70916
70917 int
70918 main ()
70919 {
70920 return f != $ac_func;
70921   ;
70922   return 0;
70923 }
70924 _ACEOF
70925 rm -f conftest.$ac_objext conftest$ac_exeext
70926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
70927   (eval $ac_link) 2>conftest.er1
70928   ac_status=$?
70929   grep -v '^ *+' conftest.er1 >conftest.err
70930   rm -f conftest.er1
70931   cat conftest.err >&5
70932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70933   (exit $ac_status); } &&
70934          { ac_try='test -z "$ac_c_werror_flag"
70935                          || test ! -s conftest.err'
70936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70937   (eval $ac_try) 2>&5
70938   ac_status=$?
70939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70940   (exit $ac_status); }; } &&
70941          { ac_try='test -s conftest$ac_exeext'
70942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70943   (eval $ac_try) 2>&5
70944   ac_status=$?
70945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
70946   (exit $ac_status); }; }; then
70947   eval "$as_ac_var=yes"
70948 else
70949   echo "$as_me: failed program was:" >&5
70950 sed 's/^/| /' conftest.$ac_ext >&5
70951
70952 eval "$as_ac_var=no"
70953 fi
70954 rm -f conftest.err conftest.$ac_objext \
70955       conftest$ac_exeext conftest.$ac_ext
70956 fi
70957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
70958 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
70959 if test `eval echo '${'$as_ac_var'}'` = yes; then
70960   cat >>confdefs.h <<_ACEOF
70961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
70962 _ACEOF
70963
70964 else
70965   ac_wfuncs=no
70966 fi
70967 done
70968
70969
70970     # Checks for names injected into std:: by the c_std headers.
70971
70972
70973
70974
70975
70976
70977
70978
70979
70980
70981
70982
70983
70984
70985
70986
70987
70988
70989
70990
70991
70992
70993
70994
70995
70996
70997
70998
70999
71000
71001
71002
71003
71004
71005
71006
71007
71008
71009
71010
71011
71012
71013
71014
71015
71016
71017 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
71018     fwprintf fwscanf swprintf swscanf vfwprintf vswprintf \
71019     vwprintf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
71020     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstol \
71021     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
71022     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
71023 do
71024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
71025 echo "$as_me:$LINENO: checking for $ac_func" >&5
71026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
71027 if eval "test \"\${$as_ac_var+set}\" = set"; then
71028   echo $ECHO_N "(cached) $ECHO_C" >&6
71029 else
71030   if test x$gcc_no_link = xyes; then
71031   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71033    { (exit 1); exit 1; }; }
71034 fi
71035 cat >conftest.$ac_ext <<_ACEOF
71036 /* confdefs.h.  */
71037 _ACEOF
71038 cat confdefs.h >>conftest.$ac_ext
71039 cat >>conftest.$ac_ext <<_ACEOF
71040 /* end confdefs.h.  */
71041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71043 #define $ac_func innocuous_$ac_func
71044
71045 /* System header to define __stub macros and hopefully few prototypes,
71046     which can conflict with char $ac_func (); below.
71047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71048     <limits.h> exists even on freestanding compilers.  */
71049
71050 #ifdef __STDC__
71051 # include <limits.h>
71052 #else
71053 # include <assert.h>
71054 #endif
71055
71056 #undef $ac_func
71057
71058 /* Override any gcc2 internal prototype to avoid an error.  */
71059 #ifdef __cplusplus
71060 extern "C"
71061 {
71062 #endif
71063 /* We use char because int might match the return type of a gcc2
71064    builtin and then its argument prototype would still apply.  */
71065 char $ac_func ();
71066 /* The GNU C library defines this for functions which it implements
71067     to always fail with ENOSYS.  Some functions are actually named
71068     something starting with __ and the normal name is an alias.  */
71069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
71070 choke me
71071 #else
71072 char (*f) () = $ac_func;
71073 #endif
71074 #ifdef __cplusplus
71075 }
71076 #endif
71077
71078 int
71079 main ()
71080 {
71081 return f != $ac_func;
71082   ;
71083   return 0;
71084 }
71085 _ACEOF
71086 rm -f conftest.$ac_objext conftest$ac_exeext
71087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71088   (eval $ac_link) 2>conftest.er1
71089   ac_status=$?
71090   grep -v '^ *+' conftest.er1 >conftest.err
71091   rm -f conftest.er1
71092   cat conftest.err >&5
71093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71094   (exit $ac_status); } &&
71095          { ac_try='test -z "$ac_c_werror_flag"
71096                          || test ! -s conftest.err'
71097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71098   (eval $ac_try) 2>&5
71099   ac_status=$?
71100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71101   (exit $ac_status); }; } &&
71102          { ac_try='test -s conftest$ac_exeext'
71103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71104   (eval $ac_try) 2>&5
71105   ac_status=$?
71106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71107   (exit $ac_status); }; }; then
71108   eval "$as_ac_var=yes"
71109 else
71110   echo "$as_me: failed program was:" >&5
71111 sed 's/^/| /' conftest.$ac_ext >&5
71112
71113 eval "$as_ac_var=no"
71114 fi
71115 rm -f conftest.err conftest.$ac_objext \
71116       conftest$ac_exeext conftest.$ac_ext
71117 fi
71118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
71119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
71120 if test `eval echo '${'$as_ac_var'}'` = yes; then
71121   cat >>confdefs.h <<_ACEOF
71122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
71123 _ACEOF
71124
71125 else
71126   ac_wfuncs=no
71127 fi
71128 done
71129
71130
71131     # Checks for wide character functions that are not required
71132     # for basic wchar_t support.  Don't disable support if they are missing.
71133     # Injection of these is wrapped with guard macros.
71134
71135
71136
71137
71138
71139 for ac_func in vfwscanf vswscanf vwscanf wcstof iswblank
71140 do
71141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
71142 echo "$as_me:$LINENO: checking for $ac_func" >&5
71143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
71144 if eval "test \"\${$as_ac_var+set}\" = set"; then
71145   echo $ECHO_N "(cached) $ECHO_C" >&6
71146 else
71147   if test x$gcc_no_link = xyes; then
71148   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71149 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71150    { (exit 1); exit 1; }; }
71151 fi
71152 cat >conftest.$ac_ext <<_ACEOF
71153 /* confdefs.h.  */
71154 _ACEOF
71155 cat confdefs.h >>conftest.$ac_ext
71156 cat >>conftest.$ac_ext <<_ACEOF
71157 /* end confdefs.h.  */
71158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71160 #define $ac_func innocuous_$ac_func
71161
71162 /* System header to define __stub macros and hopefully few prototypes,
71163     which can conflict with char $ac_func (); below.
71164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71165     <limits.h> exists even on freestanding compilers.  */
71166
71167 #ifdef __STDC__
71168 # include <limits.h>
71169 #else
71170 # include <assert.h>
71171 #endif
71172
71173 #undef $ac_func
71174
71175 /* Override any gcc2 internal prototype to avoid an error.  */
71176 #ifdef __cplusplus
71177 extern "C"
71178 {
71179 #endif
71180 /* We use char because int might match the return type of a gcc2
71181    builtin and then its argument prototype would still apply.  */
71182 char $ac_func ();
71183 /* The GNU C library defines this for functions which it implements
71184     to always fail with ENOSYS.  Some functions are actually named
71185     something starting with __ and the normal name is an alias.  */
71186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
71187 choke me
71188 #else
71189 char (*f) () = $ac_func;
71190 #endif
71191 #ifdef __cplusplus
71192 }
71193 #endif
71194
71195 int
71196 main ()
71197 {
71198 return f != $ac_func;
71199   ;
71200   return 0;
71201 }
71202 _ACEOF
71203 rm -f conftest.$ac_objext conftest$ac_exeext
71204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71205   (eval $ac_link) 2>conftest.er1
71206   ac_status=$?
71207   grep -v '^ *+' conftest.er1 >conftest.err
71208   rm -f conftest.er1
71209   cat conftest.err >&5
71210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71211   (exit $ac_status); } &&
71212          { ac_try='test -z "$ac_c_werror_flag"
71213                          || test ! -s conftest.err'
71214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71215   (eval $ac_try) 2>&5
71216   ac_status=$?
71217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71218   (exit $ac_status); }; } &&
71219          { ac_try='test -s conftest$ac_exeext'
71220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71221   (eval $ac_try) 2>&5
71222   ac_status=$?
71223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71224   (exit $ac_status); }; }; then
71225   eval "$as_ac_var=yes"
71226 else
71227   echo "$as_me: failed program was:" >&5
71228 sed 's/^/| /' conftest.$ac_ext >&5
71229
71230 eval "$as_ac_var=no"
71231 fi
71232 rm -f conftest.err conftest.$ac_objext \
71233       conftest$ac_exeext conftest.$ac_ext
71234 fi
71235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
71236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
71237 if test `eval echo '${'$as_ac_var'}'` = yes; then
71238   cat >>confdefs.h <<_ACEOF
71239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
71240 _ACEOF
71241
71242 fi
71243 done
71244
71245
71246     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
71247 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
71248     if test x"$has_weof" = xyes &&
71249        test x"$has_wchar_minmax" = xyes &&
71250        test x"$ac_wfuncs" = xyes;
71251     then
71252       ac_isoC99_wchar_t=yes
71253     else
71254       ac_isoC99_wchar_t=no
71255     fi
71256     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
71257 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
71258
71259     # Use iconv for wchar_t to char conversions. As such, check for
71260     # X/Open Portability Guide, version 2 features (XPG2).
71261     if test "${ac_cv_header_iconv_h+set}" = set; then
71262   echo "$as_me:$LINENO: checking for iconv.h" >&5
71263 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
71264 if test "${ac_cv_header_iconv_h+set}" = set; then
71265   echo $ECHO_N "(cached) $ECHO_C" >&6
71266 fi
71267 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
71268 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
71269 else
71270   # Is the header compilable?
71271 echo "$as_me:$LINENO: checking iconv.h usability" >&5
71272 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
71273 cat >conftest.$ac_ext <<_ACEOF
71274 /* confdefs.h.  */
71275 _ACEOF
71276 cat confdefs.h >>conftest.$ac_ext
71277 cat >>conftest.$ac_ext <<_ACEOF
71278 /* end confdefs.h.  */
71279 $ac_includes_default
71280 #include <iconv.h>
71281 _ACEOF
71282 rm -f conftest.$ac_objext
71283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
71284   (eval $ac_compile) 2>conftest.er1
71285   ac_status=$?
71286   grep -v '^ *+' conftest.er1 >conftest.err
71287   rm -f conftest.er1
71288   cat conftest.err >&5
71289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71290   (exit $ac_status); } &&
71291          { ac_try='test -z "$ac_c_werror_flag"
71292                          || test ! -s conftest.err'
71293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71294   (eval $ac_try) 2>&5
71295   ac_status=$?
71296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71297   (exit $ac_status); }; } &&
71298          { ac_try='test -s conftest.$ac_objext'
71299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71300   (eval $ac_try) 2>&5
71301   ac_status=$?
71302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71303   (exit $ac_status); }; }; then
71304   ac_header_compiler=yes
71305 else
71306   echo "$as_me: failed program was:" >&5
71307 sed 's/^/| /' conftest.$ac_ext >&5
71308
71309 ac_header_compiler=no
71310 fi
71311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
71312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
71313 echo "${ECHO_T}$ac_header_compiler" >&6
71314
71315 # Is the header present?
71316 echo "$as_me:$LINENO: checking iconv.h presence" >&5
71317 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
71318 cat >conftest.$ac_ext <<_ACEOF
71319 /* confdefs.h.  */
71320 _ACEOF
71321 cat confdefs.h >>conftest.$ac_ext
71322 cat >>conftest.$ac_ext <<_ACEOF
71323 /* end confdefs.h.  */
71324 #include <iconv.h>
71325 _ACEOF
71326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
71327   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
71328   ac_status=$?
71329   grep -v '^ *+' conftest.er1 >conftest.err
71330   rm -f conftest.er1
71331   cat conftest.err >&5
71332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71333   (exit $ac_status); } >/dev/null; then
71334   if test -s conftest.err; then
71335     ac_cpp_err=$ac_c_preproc_warn_flag
71336     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
71337   else
71338     ac_cpp_err=
71339   fi
71340 else
71341   ac_cpp_err=yes
71342 fi
71343 if test -z "$ac_cpp_err"; then
71344   ac_header_preproc=yes
71345 else
71346   echo "$as_me: failed program was:" >&5
71347 sed 's/^/| /' conftest.$ac_ext >&5
71348
71349   ac_header_preproc=no
71350 fi
71351 rm -f conftest.err conftest.$ac_ext
71352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
71353 echo "${ECHO_T}$ac_header_preproc" >&6
71354
71355 # So?  What about this header?
71356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
71357   yes:no: )
71358     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
71359 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
71360     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
71361 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
71362     ac_header_preproc=yes
71363     ;;
71364   no:yes:* )
71365     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
71366 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
71367     { echo "$as_me:$LINENO: WARNING: iconv.h:     check for missing prerequisite headers?" >&5
71368 echo "$as_me: WARNING: iconv.h:     check for missing prerequisite headers?" >&2;}
71369     { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
71370 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
71371     { echo "$as_me:$LINENO: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&5
71372 echo "$as_me: WARNING: iconv.h:     section \"Present But Cannot Be Compiled\"" >&2;}
71373     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
71374 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
71375     { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
71376 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
71377     (
71378       cat <<\_ASBOX
71379 ## ----------------------------------------- ##
71380 ## Report this to the package-unused lists.  ##
71381 ## ----------------------------------------- ##
71382 _ASBOX
71383     ) |
71384       sed "s/^/$as_me: WARNING:     /" >&2
71385     ;;
71386 esac
71387 echo "$as_me:$LINENO: checking for iconv.h" >&5
71388 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
71389 if test "${ac_cv_header_iconv_h+set}" = set; then
71390   echo $ECHO_N "(cached) $ECHO_C" >&6
71391 else
71392   ac_cv_header_iconv_h=$ac_header_preproc
71393 fi
71394 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
71395 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
71396
71397 fi
71398 if test $ac_cv_header_iconv_h = yes; then
71399   ac_has_iconv_h=yes
71400 else
71401   ac_has_iconv_h=no
71402 fi
71403
71404
71405     if test "${ac_cv_header_langinfo_h+set}" = set; then
71406   echo "$as_me:$LINENO: checking for langinfo.h" >&5
71407 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
71408 if test "${ac_cv_header_langinfo_h+set}" = set; then
71409   echo $ECHO_N "(cached) $ECHO_C" >&6
71410 fi
71411 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
71412 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
71413 else
71414   # Is the header compilable?
71415 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
71416 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
71417 cat >conftest.$ac_ext <<_ACEOF
71418 /* confdefs.h.  */
71419 _ACEOF
71420 cat confdefs.h >>conftest.$ac_ext
71421 cat >>conftest.$ac_ext <<_ACEOF
71422 /* end confdefs.h.  */
71423 $ac_includes_default
71424 #include <langinfo.h>
71425 _ACEOF
71426 rm -f conftest.$ac_objext
71427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
71428   (eval $ac_compile) 2>conftest.er1
71429   ac_status=$?
71430   grep -v '^ *+' conftest.er1 >conftest.err
71431   rm -f conftest.er1
71432   cat conftest.err >&5
71433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71434   (exit $ac_status); } &&
71435          { ac_try='test -z "$ac_c_werror_flag"
71436                          || test ! -s conftest.err'
71437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71438   (eval $ac_try) 2>&5
71439   ac_status=$?
71440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71441   (exit $ac_status); }; } &&
71442          { ac_try='test -s conftest.$ac_objext'
71443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71444   (eval $ac_try) 2>&5
71445   ac_status=$?
71446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71447   (exit $ac_status); }; }; then
71448   ac_header_compiler=yes
71449 else
71450   echo "$as_me: failed program was:" >&5
71451 sed 's/^/| /' conftest.$ac_ext >&5
71452
71453 ac_header_compiler=no
71454 fi
71455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
71456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
71457 echo "${ECHO_T}$ac_header_compiler" >&6
71458
71459 # Is the header present?
71460 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
71461 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
71462 cat >conftest.$ac_ext <<_ACEOF
71463 /* confdefs.h.  */
71464 _ACEOF
71465 cat confdefs.h >>conftest.$ac_ext
71466 cat >>conftest.$ac_ext <<_ACEOF
71467 /* end confdefs.h.  */
71468 #include <langinfo.h>
71469 _ACEOF
71470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
71471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
71472   ac_status=$?
71473   grep -v '^ *+' conftest.er1 >conftest.err
71474   rm -f conftest.er1
71475   cat conftest.err >&5
71476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71477   (exit $ac_status); } >/dev/null; then
71478   if test -s conftest.err; then
71479     ac_cpp_err=$ac_c_preproc_warn_flag
71480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
71481   else
71482     ac_cpp_err=
71483   fi
71484 else
71485   ac_cpp_err=yes
71486 fi
71487 if test -z "$ac_cpp_err"; then
71488   ac_header_preproc=yes
71489 else
71490   echo "$as_me: failed program was:" >&5
71491 sed 's/^/| /' conftest.$ac_ext >&5
71492
71493   ac_header_preproc=no
71494 fi
71495 rm -f conftest.err conftest.$ac_ext
71496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
71497 echo "${ECHO_T}$ac_header_preproc" >&6
71498
71499 # So?  What about this header?
71500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
71501   yes:no: )
71502     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
71503 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
71504     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
71505 echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
71506     ac_header_preproc=yes
71507     ;;
71508   no:yes:* )
71509     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
71510 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
71511     { echo "$as_me:$LINENO: WARNING: langinfo.h:     check for missing prerequisite headers?" >&5
71512 echo "$as_me: WARNING: langinfo.h:     check for missing prerequisite headers?" >&2;}
71513     { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
71514 echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
71515     { echo "$as_me:$LINENO: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&5
71516 echo "$as_me: WARNING: langinfo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
71517     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
71518 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
71519     { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
71520 echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
71521     (
71522       cat <<\_ASBOX
71523 ## ----------------------------------------- ##
71524 ## Report this to the package-unused lists.  ##
71525 ## ----------------------------------------- ##
71526 _ASBOX
71527     ) |
71528       sed "s/^/$as_me: WARNING:     /" >&2
71529     ;;
71530 esac
71531 echo "$as_me:$LINENO: checking for langinfo.h" >&5
71532 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
71533 if test "${ac_cv_header_langinfo_h+set}" = set; then
71534   echo $ECHO_N "(cached) $ECHO_C" >&6
71535 else
71536   ac_cv_header_langinfo_h=$ac_header_preproc
71537 fi
71538 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
71539 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
71540
71541 fi
71542 if test $ac_cv_header_langinfo_h = yes; then
71543   ac_has_langinfo_h=yes
71544 else
71545   ac_has_langinfo_h=no
71546 fi
71547
71548
71549
71550     # Check for existence of libiconv.a providing XPG2 wchar_t support.
71551     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
71552 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
71553 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
71554   echo $ECHO_N "(cached) $ECHO_C" >&6
71555 else
71556   ac_check_lib_save_LIBS=$LIBS
71557 LIBS="-liconv  $LIBS"
71558 if test x$gcc_no_link = xyes; then
71559   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71560 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71561    { (exit 1); exit 1; }; }
71562 fi
71563 cat >conftest.$ac_ext <<_ACEOF
71564 /* confdefs.h.  */
71565 _ACEOF
71566 cat confdefs.h >>conftest.$ac_ext
71567 cat >>conftest.$ac_ext <<_ACEOF
71568 /* end confdefs.h.  */
71569
71570 /* Override any gcc2 internal prototype to avoid an error.  */
71571 #ifdef __cplusplus
71572 extern "C"
71573 #endif
71574 /* We use char because int might match the return type of a gcc2
71575    builtin and then its argument prototype would still apply.  */
71576 char iconv ();
71577 int
71578 main ()
71579 {
71580 iconv ();
71581   ;
71582   return 0;
71583 }
71584 _ACEOF
71585 rm -f conftest.$ac_objext conftest$ac_exeext
71586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71587   (eval $ac_link) 2>conftest.er1
71588   ac_status=$?
71589   grep -v '^ *+' conftest.er1 >conftest.err
71590   rm -f conftest.er1
71591   cat conftest.err >&5
71592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71593   (exit $ac_status); } &&
71594          { ac_try='test -z "$ac_c_werror_flag"
71595                          || test ! -s conftest.err'
71596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71597   (eval $ac_try) 2>&5
71598   ac_status=$?
71599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71600   (exit $ac_status); }; } &&
71601          { ac_try='test -s conftest$ac_exeext'
71602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71603   (eval $ac_try) 2>&5
71604   ac_status=$?
71605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71606   (exit $ac_status); }; }; then
71607   ac_cv_lib_iconv_iconv=yes
71608 else
71609   echo "$as_me: failed program was:" >&5
71610 sed 's/^/| /' conftest.$ac_ext >&5
71611
71612 ac_cv_lib_iconv_iconv=no
71613 fi
71614 rm -f conftest.err conftest.$ac_objext \
71615       conftest$ac_exeext conftest.$ac_ext
71616 LIBS=$ac_check_lib_save_LIBS
71617 fi
71618 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
71619 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
71620 if test $ac_cv_lib_iconv_iconv = yes; then
71621   LIBICONV="-liconv"
71622 fi
71623
71624     ac_save_LIBS="$LIBS"
71625     LIBS="$LIBS $LIBICONV"
71626
71627
71628
71629
71630
71631
71632 for ac_func in iconv_open iconv_close iconv nl_langinfo
71633 do
71634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
71635 echo "$as_me:$LINENO: checking for $ac_func" >&5
71636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
71637 if eval "test \"\${$as_ac_var+set}\" = set"; then
71638   echo $ECHO_N "(cached) $ECHO_C" >&6
71639 else
71640   if test x$gcc_no_link = xyes; then
71641   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
71642 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
71643    { (exit 1); exit 1; }; }
71644 fi
71645 cat >conftest.$ac_ext <<_ACEOF
71646 /* confdefs.h.  */
71647 _ACEOF
71648 cat confdefs.h >>conftest.$ac_ext
71649 cat >>conftest.$ac_ext <<_ACEOF
71650 /* end confdefs.h.  */
71651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
71652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
71653 #define $ac_func innocuous_$ac_func
71654
71655 /* System header to define __stub macros and hopefully few prototypes,
71656     which can conflict with char $ac_func (); below.
71657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
71658     <limits.h> exists even on freestanding compilers.  */
71659
71660 #ifdef __STDC__
71661 # include <limits.h>
71662 #else
71663 # include <assert.h>
71664 #endif
71665
71666 #undef $ac_func
71667
71668 /* Override any gcc2 internal prototype to avoid an error.  */
71669 #ifdef __cplusplus
71670 extern "C"
71671 {
71672 #endif
71673 /* We use char because int might match the return type of a gcc2
71674    builtin and then its argument prototype would still apply.  */
71675 char $ac_func ();
71676 /* The GNU C library defines this for functions which it implements
71677     to always fail with ENOSYS.  Some functions are actually named
71678     something starting with __ and the normal name is an alias.  */
71679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
71680 choke me
71681 #else
71682 char (*f) () = $ac_func;
71683 #endif
71684 #ifdef __cplusplus
71685 }
71686 #endif
71687
71688 int
71689 main ()
71690 {
71691 return f != $ac_func;
71692   ;
71693   return 0;
71694 }
71695 _ACEOF
71696 rm -f conftest.$ac_objext conftest$ac_exeext
71697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
71698   (eval $ac_link) 2>conftest.er1
71699   ac_status=$?
71700   grep -v '^ *+' conftest.er1 >conftest.err
71701   rm -f conftest.er1
71702   cat conftest.err >&5
71703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71704   (exit $ac_status); } &&
71705          { ac_try='test -z "$ac_c_werror_flag"
71706                          || test ! -s conftest.err'
71707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71708   (eval $ac_try) 2>&5
71709   ac_status=$?
71710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71711   (exit $ac_status); }; } &&
71712          { ac_try='test -s conftest$ac_exeext'
71713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
71714   (eval $ac_try) 2>&5
71715   ac_status=$?
71716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
71717   (exit $ac_status); }; }; then
71718   eval "$as_ac_var=yes"
71719 else
71720   echo "$as_me: failed program was:" >&5
71721 sed 's/^/| /' conftest.$ac_ext >&5
71722
71723 eval "$as_ac_var=no"
71724 fi
71725 rm -f conftest.err conftest.$ac_objext \
71726       conftest$ac_exeext conftest.$ac_ext
71727 fi
71728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
71729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
71730 if test `eval echo '${'$as_ac_var'}'` = yes; then
71731   cat >>confdefs.h <<_ACEOF
71732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
71733 _ACEOF
71734  ac_XPG2funcs=yes
71735 else
71736   ac_XPG2funcs=no
71737 fi
71738 done
71739
71740
71741     LIBS="$ac_save_LIBS"
71742
71743     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
71744 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
71745     if test x"$ac_has_iconv_h" = xyes &&
71746        test x"$ac_has_langinfo_h" = xyes &&
71747        test x"$ac_XPG2funcs" = xyes;
71748     then
71749       ac_XPG2_wchar_t=yes
71750     else
71751       ac_XPG2_wchar_t=no
71752     fi
71753     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
71754 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
71755
71756     # At the moment, only enable wchar_t specializations if all the
71757     # above support is present.
71758     if test x"$ac_isoC99_wchar_t" = xyes &&
71759        test x"$ac_XPG2_wchar_t" = xyes;
71760     then
71761       cat >>confdefs.h <<\_ACEOF
71762 #define _GLIBCXX_USE_WCHAR_T 1
71763 _ACEOF
71764
71765       enable_wchar_t=yes
71766     fi
71767   fi
71768   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
71769 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
71770   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
71771 echo "${ECHO_T}$enable_wchar_t" >&6
71772
71773     cat >>confdefs.h <<\_ACEOF
71774 #define HAVE_COPYSIGN 1
71775 _ACEOF
71776
71777     cat >>confdefs.h <<\_ACEOF
71778 #define HAVE_COPYSIGNF 1
71779 _ACEOF
71780
71781     cat >>confdefs.h <<\_ACEOF
71782 #define HAVE_FINITE 1
71783 _ACEOF
71784
71785     cat >>confdefs.h <<\_ACEOF
71786 #define HAVE_FINITEF 1
71787 _ACEOF
71788
71789     cat >>confdefs.h <<\_ACEOF
71790 #define HAVE_FREXPF 1
71791 _ACEOF
71792
71793     cat >>confdefs.h <<\_ACEOF
71794 #define HAVE_HYPOTF 1
71795 _ACEOF
71796
71797     cat >>confdefs.h <<\_ACEOF
71798 #define HAVE_ISINF 1
71799 _ACEOF
71800
71801     cat >>confdefs.h <<\_ACEOF
71802 #define HAVE_ISINFF 1
71803 _ACEOF
71804
71805     cat >>confdefs.h <<\_ACEOF
71806 #define HAVE_ISNAN 1
71807 _ACEOF
71808
71809     cat >>confdefs.h <<\_ACEOF
71810 #define HAVE_ISNANF 1
71811 _ACEOF
71812
71813     cat >>confdefs.h <<\_ACEOF
71814 #define HAVE_SINCOS 1
71815 _ACEOF
71816
71817     cat >>confdefs.h <<\_ACEOF
71818 #define HAVE_SINCOSF 1
71819 _ACEOF
71820
71821     if test x"long_double_math_on_this_cpu" = x"yes"; then
71822       cat >>confdefs.h <<\_ACEOF
71823 #define HAVE_FINITEL 1
71824 _ACEOF
71825
71826       cat >>confdefs.h <<\_ACEOF
71827 #define HAVE_HYPOTL 1
71828 _ACEOF
71829
71830       cat >>confdefs.h <<\_ACEOF
71831 #define HAVE_ISINFL 1
71832 _ACEOF
71833
71834       cat >>confdefs.h <<\_ACEOF
71835 #define HAVE_ISNANL 1
71836 _ACEOF
71837
71838     fi
71839     ;;
71840   *-vxworks)
71841     cat >>confdefs.h <<\_ACEOF
71842 #define HAVE_MMAP 1
71843 _ACEOF
71844
71845     cat >>confdefs.h <<\_ACEOF
71846 #define HAVE_ACOSF 1
71847 _ACEOF
71848
71849     cat >>confdefs.h <<\_ACEOF
71850 #define HAVE_ASINF 1
71851 _ACEOF
71852
71853     cat >>confdefs.h <<\_ACEOF
71854 #define HAVE_ATAN2F 1
71855 _ACEOF
71856
71857     cat >>confdefs.h <<\_ACEOF
71858 #define HAVE_ATANF 1
71859 _ACEOF
71860
71861     cat >>confdefs.h <<\_ACEOF
71862 #define HAVE_CEILF 1
71863 _ACEOF
71864
71865     cat >>confdefs.h <<\_ACEOF
71866 #define HAVE_COSF 1
71867 _ACEOF
71868
71869     cat >>confdefs.h <<\_ACEOF
71870 #define HAVE_COSHF 1
71871 _ACEOF
71872
71873     cat >>confdefs.h <<\_ACEOF
71874 #define HAVE_EXPF 1
71875 _ACEOF
71876
71877     cat >>confdefs.h <<\_ACEOF
71878 #define HAVE_FABSF 1
71879 _ACEOF
71880
71881     cat >>confdefs.h <<\_ACEOF
71882 #define HAVE_FLOORF 1
71883 _ACEOF
71884
71885     cat >>confdefs.h <<\_ACEOF
71886 #define HAVE_FMODF 1
71887 _ACEOF
71888
71889     cat >>confdefs.h <<\_ACEOF
71890 #define HAVE_HYPOT 1
71891 _ACEOF
71892
71893     cat >>confdefs.h <<\_ACEOF
71894 #define HAVE_LOG10F 1
71895 _ACEOF
71896
71897     cat >>confdefs.h <<\_ACEOF
71898 #define HAVE_LOGF 1
71899 _ACEOF
71900
71901     cat >>confdefs.h <<\_ACEOF
71902 #define HAVE_POWF 1
71903 _ACEOF
71904
71905     cat >>confdefs.h <<\_ACEOF
71906 #define HAVE_SINF 1
71907 _ACEOF
71908
71909     cat >>confdefs.h <<\_ACEOF
71910 #define HAVE_SINHF 1
71911 _ACEOF
71912
71913     cat >>confdefs.h <<\_ACEOF
71914 #define HAVE_SQRTF 1
71915 _ACEOF
71916
71917     cat >>confdefs.h <<\_ACEOF
71918 #define HAVE_TANF 1
71919 _ACEOF
71920
71921     cat >>confdefs.h <<\_ACEOF
71922 #define HAVE_TANHF 1
71923 _ACEOF
71924
71925     ;;
71926   *-windiss*)
71927     cat >>confdefs.h <<\_ACEOF
71928 #define HAVE_ACOSF 1
71929 _ACEOF
71930
71931     cat >>confdefs.h <<\_ACEOF
71932 #define HAVE_ACOSL 1
71933 _ACEOF
71934
71935     cat >>confdefs.h <<\_ACEOF
71936 #define HAVE_ASINF 1
71937 _ACEOF
71938
71939     cat >>confdefs.h <<\_ACEOF
71940 #define HAVE_ASINL 1
71941 _ACEOF
71942
71943     cat >>confdefs.h <<\_ACEOF
71944 #define HAVE_ATAN2F 1
71945 _ACEOF
71946
71947     cat >>confdefs.h <<\_ACEOF
71948 #define HAVE_ATAN2L 1
71949 _ACEOF
71950
71951     cat >>confdefs.h <<\_ACEOF
71952 #define HAVE_ATANF 1
71953 _ACEOF
71954
71955     cat >>confdefs.h <<\_ACEOF
71956 #define HAVE_ATANL 1
71957 _ACEOF
71958
71959     cat >>confdefs.h <<\_ACEOF
71960 #define HAVE_CEILF 1
71961 _ACEOF
71962
71963     cat >>confdefs.h <<\_ACEOF
71964 #define HAVE_CEILL 1
71965 _ACEOF
71966
71967     cat >>confdefs.h <<\_ACEOF
71968 #define HAVE_COPYSIGN 1
71969 _ACEOF
71970
71971     cat >>confdefs.h <<\_ACEOF
71972 #define HAVE_COPYSIGNF 1
71973 _ACEOF
71974
71975     cat >>confdefs.h <<\_ACEOF
71976 #define HAVE_COSF 1
71977 _ACEOF
71978
71979     cat >>confdefs.h <<\_ACEOF
71980 #define HAVE_COSL 1
71981 _ACEOF
71982
71983     cat >>confdefs.h <<\_ACEOF
71984 #define HAVE_COSHF 1
71985 _ACEOF
71986
71987     cat >>confdefs.h <<\_ACEOF
71988 #define HAVE_COSHL 1
71989 _ACEOF
71990
71991     cat >>confdefs.h <<\_ACEOF
71992 #define HAVE_EXPF 1
71993 _ACEOF
71994
71995     cat >>confdefs.h <<\_ACEOF
71996 #define HAVE_EXPL 1
71997 _ACEOF
71998
71999     cat >>confdefs.h <<\_ACEOF
72000 #define HAVE_FABSF 1
72001 _ACEOF
72002
72003     cat >>confdefs.h <<\_ACEOF
72004 #define HAVE_FABSL 1
72005 _ACEOF
72006
72007     cat >>confdefs.h <<\_ACEOF
72008 #define HAVE_FLOORF 1
72009 _ACEOF
72010
72011     cat >>confdefs.h <<\_ACEOF
72012 #define HAVE_FLOORL 1
72013 _ACEOF
72014
72015     cat >>confdefs.h <<\_ACEOF
72016 #define HAVE_FMODF 1
72017 _ACEOF
72018
72019     cat >>confdefs.h <<\_ACEOF
72020 #define HAVE_FMODL 1
72021 _ACEOF
72022
72023     cat >>confdefs.h <<\_ACEOF
72024 #define HAVE_FREXPF 1
72025 _ACEOF
72026
72027     cat >>confdefs.h <<\_ACEOF
72028 #define HAVE_FREXPL 1
72029 _ACEOF
72030
72031     cat >>confdefs.h <<\_ACEOF
72032 #define HAVE_LDEXPF 1
72033 _ACEOF
72034
72035     cat >>confdefs.h <<\_ACEOF
72036 #define HAVE_LDEXPL 1
72037 _ACEOF
72038
72039     cat >>confdefs.h <<\_ACEOF
72040 #define HAVE_LOG10F 1
72041 _ACEOF
72042
72043     cat >>confdefs.h <<\_ACEOF
72044 #define HAVE_LOG10L 1
72045 _ACEOF
72046
72047     cat >>confdefs.h <<\_ACEOF
72048 #define HAVE_LOGF 1
72049 _ACEOF
72050
72051     cat >>confdefs.h <<\_ACEOF
72052 #define HAVE_MODFF 1
72053 _ACEOF
72054
72055     cat >>confdefs.h <<\_ACEOF
72056 #define HAVE_MODFL 1
72057 _ACEOF
72058
72059     cat >>confdefs.h <<\_ACEOF
72060 #define HAVE_POWF 1
72061 _ACEOF
72062
72063     cat >>confdefs.h <<\_ACEOF
72064 #define HAVE_POWL 1
72065 _ACEOF
72066
72067     cat >>confdefs.h <<\_ACEOF
72068 #define HAVE_SINF 1
72069 _ACEOF
72070
72071     cat >>confdefs.h <<\_ACEOF
72072 #define HAVE_SINL 1
72073 _ACEOF
72074
72075     cat >>confdefs.h <<\_ACEOF
72076 #define HAVE_SINHF 1
72077 _ACEOF
72078
72079     cat >>confdefs.h <<\_ACEOF
72080 #define HAVE_SINHL 1
72081 _ACEOF
72082
72083     cat >>confdefs.h <<\_ACEOF
72084 #define HAVE_SQRTF 1
72085 _ACEOF
72086
72087     cat >>confdefs.h <<\_ACEOF
72088 #define HAVE_SQRTL 1
72089 _ACEOF
72090
72091     cat >>confdefs.h <<\_ACEOF
72092 #define HAVE_TANF 1
72093 _ACEOF
72094
72095     cat >>confdefs.h <<\_ACEOF
72096 #define HAVE_TANL 1
72097 _ACEOF
72098
72099     cat >>confdefs.h <<\_ACEOF
72100 #define HAVE_TANHF 1
72101 _ACEOF
72102
72103     cat >>confdefs.h <<\_ACEOF
72104 #define HAVE_TANHL 1
72105 _ACEOF
72106
72107     ;;
72108   *)
72109     { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
72110 echo "$as_me: error: No support for this host/target combination." >&2;}
72111    { (exit 1); exit 1; }; }
72112    ;;
72113 esac
72114
72115
72116   fi
72117
72118   # At some point, we should differentiate between architectures
72119   # like x86, which have long double versions, and alpha/powerpc/etc.,
72120   # which don't. For the time being, punt.
72121   if test x"long_double_math_on_this_cpu" = x"yes"; then
72122     cat >>confdefs.h <<\_ACEOF
72123 #define HAVE_ACOSL 1
72124 _ACEOF
72125
72126     cat >>confdefs.h <<\_ACEOF
72127 #define HAVE_ASINL 1
72128 _ACEOF
72129
72130     cat >>confdefs.h <<\_ACEOF
72131 #define HAVE_ATAN2L 1
72132 _ACEOF
72133
72134     cat >>confdefs.h <<\_ACEOF
72135 #define HAVE_ATANL 1
72136 _ACEOF
72137
72138     cat >>confdefs.h <<\_ACEOF
72139 #define HAVE_CEILL 1
72140 _ACEOF
72141
72142     cat >>confdefs.h <<\_ACEOF
72143 #define HAVE_COPYSIGNL 1
72144 _ACEOF
72145
72146     cat >>confdefs.h <<\_ACEOF
72147 #define HAVE_COSL 1
72148 _ACEOF
72149
72150     cat >>confdefs.h <<\_ACEOF
72151 #define HAVE_COSHL 1
72152 _ACEOF
72153
72154     cat >>confdefs.h <<\_ACEOF
72155 #define HAVE_EXPL 1
72156 _ACEOF
72157
72158     cat >>confdefs.h <<\_ACEOF
72159 #define HAVE_FABSL 1
72160 _ACEOF
72161
72162     cat >>confdefs.h <<\_ACEOF
72163 #define HAVE_FLOORL 1
72164 _ACEOF
72165
72166     cat >>confdefs.h <<\_ACEOF
72167 #define HAVE_FMODL 1
72168 _ACEOF
72169
72170     cat >>confdefs.h <<\_ACEOF
72171 #define HAVE_FREXPL 1
72172 _ACEOF
72173
72174     cat >>confdefs.h <<\_ACEOF
72175 #define HAVE_LDEXPL 1
72176 _ACEOF
72177
72178     cat >>confdefs.h <<\_ACEOF
72179 #define HAVE_LOG10L 1
72180 _ACEOF
72181
72182     cat >>confdefs.h <<\_ACEOF
72183 #define HAVE_LOGL 1
72184 _ACEOF
72185
72186     cat >>confdefs.h <<\_ACEOF
72187 #define HAVE_MODFL 1
72188 _ACEOF
72189
72190     cat >>confdefs.h <<\_ACEOF
72191 #define HAVE_POWL 1
72192 _ACEOF
72193
72194     cat >>confdefs.h <<\_ACEOF
72195 #define HAVE_SINCOSL 1
72196 _ACEOF
72197
72198     cat >>confdefs.h <<\_ACEOF
72199 #define HAVE_SINL 1
72200 _ACEOF
72201
72202     cat >>confdefs.h <<\_ACEOF
72203 #define HAVE_SINHL 1
72204 _ACEOF
72205
72206     cat >>confdefs.h <<\_ACEOF
72207 #define HAVE_SQRTL 1
72208 _ACEOF
72209
72210     cat >>confdefs.h <<\_ACEOF
72211 #define HAVE_TANL 1
72212 _ACEOF
72213
72214     cat >>confdefs.h <<\_ACEOF
72215 #define HAVE_TANHL 1
72216 _ACEOF
72217
72218   fi
72219
72220 fi
72221
72222 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
72223
72224
72225  # Check whether --enable-symvers or --disable-symvers was given.
72226 if test "${enable_symvers+set}" = set; then
72227   enableval="$enable_symvers"
72228
72229       case "$enableval" in
72230        yes|no|gnu) ;;
72231        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
72232 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
72233    { (exit 1); exit 1; }; } ;;
72234                           esac
72235
72236 else
72237   enable_symvers=yes
72238 fi;
72239
72240
72241 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
72242 # don't know enough about $LD to do tricks...
72243
72244 # FIXME  The following test is too strict, in theory.
72245 if test $enable_shared = no ||
72246         test "x$LD" = x ||
72247         test x$glibcxx_gnu_ld_version = x; then
72248   enable_symvers=no
72249 fi
72250
72251 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
72252 if test $enable_symvers != no; then
72253   echo "$as_me:$LINENO: checking for shared libgcc" >&5
72254 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
72255   ac_save_CFLAGS="$CFLAGS"
72256   CFLAGS=' -lgcc_s'
72257   if test x$gcc_no_link = xyes; then
72258   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
72259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
72260    { (exit 1); exit 1; }; }
72261 fi
72262 cat >conftest.$ac_ext <<_ACEOF
72263 /* confdefs.h.  */
72264 _ACEOF
72265 cat confdefs.h >>conftest.$ac_ext
72266 cat >>conftest.$ac_ext <<_ACEOF
72267 /* end confdefs.h.  */
72268
72269 int
72270 main ()
72271 {
72272 return 0;
72273   ;
72274   return 0;
72275 }
72276 _ACEOF
72277 rm -f conftest.$ac_objext conftest$ac_exeext
72278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
72279   (eval $ac_link) 2>conftest.er1
72280   ac_status=$?
72281   grep -v '^ *+' conftest.er1 >conftest.err
72282   rm -f conftest.er1
72283   cat conftest.err >&5
72284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72285   (exit $ac_status); } &&
72286          { ac_try='test -z "$ac_c_werror_flag"
72287                          || test ! -s conftest.err'
72288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72289   (eval $ac_try) 2>&5
72290   ac_status=$?
72291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72292   (exit $ac_status); }; } &&
72293          { ac_try='test -s conftest$ac_exeext'
72294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72295   (eval $ac_try) 2>&5
72296   ac_status=$?
72297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72298   (exit $ac_status); }; }; then
72299   glibcxx_shared_libgcc=yes
72300 else
72301   echo "$as_me: failed program was:" >&5
72302 sed 's/^/| /' conftest.$ac_ext >&5
72303
72304 glibcxx_shared_libgcc=no
72305 fi
72306 rm -f conftest.err conftest.$ac_objext \
72307       conftest$ac_exeext conftest.$ac_ext
72308   CFLAGS="$ac_save_CFLAGS"
72309   echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
72310 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
72311 fi
72312
72313 # For GNU ld, we need at least this version.  The format is described in
72314 # GLIBCXX_CHECK_LINKER_FEATURES above.
72315 glibcxx_min_gnu_ld_version=21400
72316 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
72317
72318 # Check to see if unspecified "yes" value can win, given results above.
72319 # Change "yes" into either "no" or a style name.
72320 if test $enable_symvers = yes; then
72321   if test $with_gnu_ld = yes &&
72322      test $glibcxx_shared_libgcc = yes;
72323   then
72324     if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
72325       enable_symvers=gnu
72326     else
72327       # The right tools, the right setup, but too old.  Fallbacks?
72328       { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
72329 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
72330       { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
72331 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
72332       { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
72333 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
72334       { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
72335 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
72336       if test $glibcxx_gnu_ld_version -ge 21200 ; then
72337         # Globbing fix is present, proper block support is not.
72338                         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
72339 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
72340         enable_symvers=no
72341       else
72342         # 2.11 or older.
72343         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
72344 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
72345         enable_symvers=no
72346       fi
72347     fi
72348   else
72349     # just fail for now
72350     { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
72351 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
72352     { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
72353 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
72354     { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
72355 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
72356     { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
72357 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
72358     enable_symvers=no
72359   fi
72360 fi
72361
72362 # Everything parsed; figure out what file to use.
72363 case $enable_symvers in
72364   no)
72365     SYMVER_MAP=config/linker-map.dummy
72366     ;;
72367   gnu)
72368     SYMVER_MAP=config/linker-map.gnu
72369     cat >>confdefs.h <<\_ACEOF
72370 #define _GLIBCXX_SYMVER 1
72371 _ACEOF
72372
72373     ;;
72374 esac
72375
72376
72377
72378
72379 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
72380 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
72381
72382
72383 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
72384
72385   if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
72386     # Do checks for resource limit functions.
72387
72388   setrlimit_have_headers=yes
72389
72390
72391
72392 for ac_header in unistd.h sys/time.h sys/resource.h
72393 do
72394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
72395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72396   echo "$as_me:$LINENO: checking for $ac_header" >&5
72397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
72398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72399   echo $ECHO_N "(cached) $ECHO_C" >&6
72400 fi
72401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
72402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
72403 else
72404   # Is the header compilable?
72405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
72406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
72407 cat >conftest.$ac_ext <<_ACEOF
72408 /* confdefs.h.  */
72409 _ACEOF
72410 cat confdefs.h >>conftest.$ac_ext
72411 cat >>conftest.$ac_ext <<_ACEOF
72412 /* end confdefs.h.  */
72413 $ac_includes_default
72414 #include <$ac_header>
72415 _ACEOF
72416 rm -f conftest.$ac_objext
72417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72418   (eval $ac_compile) 2>conftest.er1
72419   ac_status=$?
72420   grep -v '^ *+' conftest.er1 >conftest.err
72421   rm -f conftest.er1
72422   cat conftest.err >&5
72423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72424   (exit $ac_status); } &&
72425          { ac_try='test -z "$ac_c_werror_flag"
72426                          || test ! -s conftest.err'
72427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72428   (eval $ac_try) 2>&5
72429   ac_status=$?
72430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72431   (exit $ac_status); }; } &&
72432          { ac_try='test -s conftest.$ac_objext'
72433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72434   (eval $ac_try) 2>&5
72435   ac_status=$?
72436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72437   (exit $ac_status); }; }; then
72438   ac_header_compiler=yes
72439 else
72440   echo "$as_me: failed program was:" >&5
72441 sed 's/^/| /' conftest.$ac_ext >&5
72442
72443 ac_header_compiler=no
72444 fi
72445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
72447 echo "${ECHO_T}$ac_header_compiler" >&6
72448
72449 # Is the header present?
72450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
72451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
72452 cat >conftest.$ac_ext <<_ACEOF
72453 /* confdefs.h.  */
72454 _ACEOF
72455 cat confdefs.h >>conftest.$ac_ext
72456 cat >>conftest.$ac_ext <<_ACEOF
72457 /* end confdefs.h.  */
72458 #include <$ac_header>
72459 _ACEOF
72460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
72461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
72462   ac_status=$?
72463   grep -v '^ *+' conftest.er1 >conftest.err
72464   rm -f conftest.er1
72465   cat conftest.err >&5
72466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72467   (exit $ac_status); } >/dev/null; then
72468   if test -s conftest.err; then
72469     ac_cpp_err=$ac_c_preproc_warn_flag
72470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
72471   else
72472     ac_cpp_err=
72473   fi
72474 else
72475   ac_cpp_err=yes
72476 fi
72477 if test -z "$ac_cpp_err"; then
72478   ac_header_preproc=yes
72479 else
72480   echo "$as_me: failed program was:" >&5
72481 sed 's/^/| /' conftest.$ac_ext >&5
72482
72483   ac_header_preproc=no
72484 fi
72485 rm -f conftest.err conftest.$ac_ext
72486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
72487 echo "${ECHO_T}$ac_header_preproc" >&6
72488
72489 # So?  What about this header?
72490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
72491   yes:no: )
72492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
72493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
72494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
72495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
72496     ac_header_preproc=yes
72497     ;;
72498   no:yes:* )
72499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
72500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
72501     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
72502 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
72503     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
72504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
72505     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
72506 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
72507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
72508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
72509     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
72510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
72511     (
72512       cat <<\_ASBOX
72513 ## ----------------------------------------- ##
72514 ## Report this to the package-unused lists.  ##
72515 ## ----------------------------------------- ##
72516 _ASBOX
72517     ) |
72518       sed "s/^/$as_me: WARNING:     /" >&2
72519     ;;
72520 esac
72521 echo "$as_me:$LINENO: checking for $ac_header" >&5
72522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
72523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
72524   echo $ECHO_N "(cached) $ECHO_C" >&6
72525 else
72526   eval "$as_ac_Header=\$ac_header_preproc"
72527 fi
72528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
72529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
72530
72531 fi
72532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
72533   cat >>confdefs.h <<_ACEOF
72534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
72535 _ACEOF
72536
72537 else
72538   setrlimit_have_headers=no
72539 fi
72540
72541 done
72542
72543   # If don't have the headers, then we can't run the tests now, and we
72544   # won't be seeing any of these during testsuite compilation.
72545   if test $setrlimit_have_headers = yes; then
72546     # Can't do these in a loop, else the resulting syntax is wrong.
72547
72548   cat >conftest.$ac_ext <<_ACEOF
72549 /* confdefs.h.  */
72550 _ACEOF
72551 cat confdefs.h >>conftest.$ac_ext
72552 cat >>conftest.$ac_ext <<_ACEOF
72553 /* end confdefs.h.  */
72554 #include <unistd.h>
72555      #include <sys/time.h>
72556      #include <sys/resource.h>
72557
72558 int
72559 main ()
72560 {
72561  int f = RLIMIT_DATA ;
72562   ;
72563   return 0;
72564 }
72565 _ACEOF
72566 rm -f conftest.$ac_objext
72567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72568   (eval $ac_compile) 2>conftest.er1
72569   ac_status=$?
72570   grep -v '^ *+' conftest.er1 >conftest.err
72571   rm -f conftest.er1
72572   cat conftest.err >&5
72573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72574   (exit $ac_status); } &&
72575          { ac_try='test -z "$ac_c_werror_flag"
72576                          || test ! -s conftest.err'
72577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72578   (eval $ac_try) 2>&5
72579   ac_status=$?
72580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72581   (exit $ac_status); }; } &&
72582          { ac_try='test -s conftest.$ac_objext'
72583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72584   (eval $ac_try) 2>&5
72585   ac_status=$?
72586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72587   (exit $ac_status); }; }; then
72588   glibcxx_mresult=1
72589 else
72590   echo "$as_me: failed program was:" >&5
72591 sed 's/^/| /' conftest.$ac_ext >&5
72592
72593 glibcxx_mresult=0
72594 fi
72595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72596
72597 cat >>confdefs.h <<_ACEOF
72598 #define HAVE_LIMIT_DATA $glibcxx_mresult
72599 _ACEOF
72600
72601
72602
72603   cat >conftest.$ac_ext <<_ACEOF
72604 /* confdefs.h.  */
72605 _ACEOF
72606 cat confdefs.h >>conftest.$ac_ext
72607 cat >>conftest.$ac_ext <<_ACEOF
72608 /* end confdefs.h.  */
72609 #include <unistd.h>
72610      #include <sys/time.h>
72611      #include <sys/resource.h>
72612
72613 int
72614 main ()
72615 {
72616  int f = RLIMIT_RSS ;
72617   ;
72618   return 0;
72619 }
72620 _ACEOF
72621 rm -f conftest.$ac_objext
72622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72623   (eval $ac_compile) 2>conftest.er1
72624   ac_status=$?
72625   grep -v '^ *+' conftest.er1 >conftest.err
72626   rm -f conftest.er1
72627   cat conftest.err >&5
72628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72629   (exit $ac_status); } &&
72630          { ac_try='test -z "$ac_c_werror_flag"
72631                          || test ! -s conftest.err'
72632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72633   (eval $ac_try) 2>&5
72634   ac_status=$?
72635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72636   (exit $ac_status); }; } &&
72637          { ac_try='test -s conftest.$ac_objext'
72638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72639   (eval $ac_try) 2>&5
72640   ac_status=$?
72641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72642   (exit $ac_status); }; }; then
72643   glibcxx_mresult=1
72644 else
72645   echo "$as_me: failed program was:" >&5
72646 sed 's/^/| /' conftest.$ac_ext >&5
72647
72648 glibcxx_mresult=0
72649 fi
72650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72651
72652 cat >>confdefs.h <<_ACEOF
72653 #define HAVE_LIMIT_RSS $glibcxx_mresult
72654 _ACEOF
72655
72656
72657
72658   cat >conftest.$ac_ext <<_ACEOF
72659 /* confdefs.h.  */
72660 _ACEOF
72661 cat confdefs.h >>conftest.$ac_ext
72662 cat >>conftest.$ac_ext <<_ACEOF
72663 /* end confdefs.h.  */
72664 #include <unistd.h>
72665      #include <sys/time.h>
72666      #include <sys/resource.h>
72667
72668 int
72669 main ()
72670 {
72671  int f = RLIMIT_VMEM ;
72672   ;
72673   return 0;
72674 }
72675 _ACEOF
72676 rm -f conftest.$ac_objext
72677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72678   (eval $ac_compile) 2>conftest.er1
72679   ac_status=$?
72680   grep -v '^ *+' conftest.er1 >conftest.err
72681   rm -f conftest.er1
72682   cat conftest.err >&5
72683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72684   (exit $ac_status); } &&
72685          { ac_try='test -z "$ac_c_werror_flag"
72686                          || test ! -s conftest.err'
72687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72688   (eval $ac_try) 2>&5
72689   ac_status=$?
72690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72691   (exit $ac_status); }; } &&
72692          { ac_try='test -s conftest.$ac_objext'
72693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72694   (eval $ac_try) 2>&5
72695   ac_status=$?
72696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72697   (exit $ac_status); }; }; then
72698   glibcxx_mresult=1
72699 else
72700   echo "$as_me: failed program was:" >&5
72701 sed 's/^/| /' conftest.$ac_ext >&5
72702
72703 glibcxx_mresult=0
72704 fi
72705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72706
72707 cat >>confdefs.h <<_ACEOF
72708 #define HAVE_LIMIT_VMEM $glibcxx_mresult
72709 _ACEOF
72710
72711
72712
72713   cat >conftest.$ac_ext <<_ACEOF
72714 /* confdefs.h.  */
72715 _ACEOF
72716 cat confdefs.h >>conftest.$ac_ext
72717 cat >>conftest.$ac_ext <<_ACEOF
72718 /* end confdefs.h.  */
72719 #include <unistd.h>
72720      #include <sys/time.h>
72721      #include <sys/resource.h>
72722
72723 int
72724 main ()
72725 {
72726  int f = RLIMIT_AS ;
72727   ;
72728   return 0;
72729 }
72730 _ACEOF
72731 rm -f conftest.$ac_objext
72732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72733   (eval $ac_compile) 2>conftest.er1
72734   ac_status=$?
72735   grep -v '^ *+' conftest.er1 >conftest.err
72736   rm -f conftest.er1
72737   cat conftest.err >&5
72738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72739   (exit $ac_status); } &&
72740          { ac_try='test -z "$ac_c_werror_flag"
72741                          || test ! -s conftest.err'
72742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72743   (eval $ac_try) 2>&5
72744   ac_status=$?
72745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72746   (exit $ac_status); }; } &&
72747          { ac_try='test -s conftest.$ac_objext'
72748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72749   (eval $ac_try) 2>&5
72750   ac_status=$?
72751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72752   (exit $ac_status); }; }; then
72753   glibcxx_mresult=1
72754 else
72755   echo "$as_me: failed program was:" >&5
72756 sed 's/^/| /' conftest.$ac_ext >&5
72757
72758 glibcxx_mresult=0
72759 fi
72760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72761
72762 cat >>confdefs.h <<_ACEOF
72763 #define HAVE_LIMIT_AS $glibcxx_mresult
72764 _ACEOF
72765
72766
72767
72768   cat >conftest.$ac_ext <<_ACEOF
72769 /* confdefs.h.  */
72770 _ACEOF
72771 cat confdefs.h >>conftest.$ac_ext
72772 cat >>conftest.$ac_ext <<_ACEOF
72773 /* end confdefs.h.  */
72774 #include <unistd.h>
72775      #include <sys/time.h>
72776      #include <sys/resource.h>
72777
72778 int
72779 main ()
72780 {
72781  int f = RLIMIT_FSIZE ;
72782   ;
72783   return 0;
72784 }
72785 _ACEOF
72786 rm -f conftest.$ac_objext
72787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72788   (eval $ac_compile) 2>conftest.er1
72789   ac_status=$?
72790   grep -v '^ *+' conftest.er1 >conftest.err
72791   rm -f conftest.er1
72792   cat conftest.err >&5
72793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72794   (exit $ac_status); } &&
72795          { ac_try='test -z "$ac_c_werror_flag"
72796                          || test ! -s conftest.err'
72797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72798   (eval $ac_try) 2>&5
72799   ac_status=$?
72800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72801   (exit $ac_status); }; } &&
72802          { ac_try='test -s conftest.$ac_objext'
72803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72804   (eval $ac_try) 2>&5
72805   ac_status=$?
72806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72807   (exit $ac_status); }; }; then
72808   glibcxx_mresult=1
72809 else
72810   echo "$as_me: failed program was:" >&5
72811 sed 's/^/| /' conftest.$ac_ext >&5
72812
72813 glibcxx_mresult=0
72814 fi
72815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72816
72817 cat >>confdefs.h <<_ACEOF
72818 #define HAVE_LIMIT_FSIZE $glibcxx_mresult
72819 _ACEOF
72820
72821
72822
72823     # Check for rlimit, setrlimit.
72824     if test "${ac_setrlimit+set}" = set; then
72825   echo $ECHO_N "(cached) $ECHO_C" >&6
72826 else
72827
72828       cat >conftest.$ac_ext <<_ACEOF
72829 /* confdefs.h.  */
72830 _ACEOF
72831 cat confdefs.h >>conftest.$ac_ext
72832 cat >>conftest.$ac_ext <<_ACEOF
72833 /* end confdefs.h.  */
72834 #include <unistd.h>
72835          #include <sys/time.h>
72836          #include <sys/resource.h>
72837
72838 int
72839 main ()
72840 {
72841 struct rlimit r;
72842          setrlimit(0, &r);
72843   ;
72844   return 0;
72845 }
72846 _ACEOF
72847 rm -f conftest.$ac_objext
72848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72849   (eval $ac_compile) 2>conftest.er1
72850   ac_status=$?
72851   grep -v '^ *+' conftest.er1 >conftest.err
72852   rm -f conftest.er1
72853   cat conftest.err >&5
72854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72855   (exit $ac_status); } &&
72856          { ac_try='test -z "$ac_c_werror_flag"
72857                          || test ! -s conftest.err'
72858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72859   (eval $ac_try) 2>&5
72860   ac_status=$?
72861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72862   (exit $ac_status); }; } &&
72863          { ac_try='test -s conftest.$ac_objext'
72864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72865   (eval $ac_try) 2>&5
72866   ac_status=$?
72867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72868   (exit $ac_status); }; }; then
72869   ac_setrlimit=yes
72870 else
72871   echo "$as_me: failed program was:" >&5
72872 sed 's/^/| /' conftest.$ac_ext >&5
72873
72874 ac_setrlimit=no
72875 fi
72876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72877
72878 fi
72879
72880   fi
72881
72882   echo "$as_me:$LINENO: checking for testsuite resource limits support" >&5
72883 echo $ECHO_N "checking for testsuite resource limits support... $ECHO_C" >&6
72884   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
72885     ac_res_limits=yes
72886     cat >>confdefs.h <<\_ACEOF
72887 #define _GLIBCXX_RES_LIMITS 1
72888 _ACEOF
72889
72890   else
72891     ac_res_limits=no
72892   fi
72893   echo "$as_me:$LINENO: result: $ac_res_limits" >&5
72894 echo "${ECHO_T}$ac_res_limits" >&6
72895
72896
72897     # Look for setenv, so that extended locale tests can be performed.
72898
72899   echo "$as_me:$LINENO: checking for setenv declaration" >&5
72900 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
72901   if test x${glibcxx_cv_func_setenv_use+set} != xset; then
72902     if test "${glibcxx_cv_func_setenv_use+set}" = set; then
72903   echo $ECHO_N "(cached) $ECHO_C" >&6
72904 else
72905
72906
72907
72908       ac_ext=cc
72909 ac_cpp='$CXXCPP $CPPFLAGS'
72910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
72913
72914       cat >conftest.$ac_ext <<_ACEOF
72915 /* confdefs.h.  */
72916 _ACEOF
72917 cat confdefs.h >>conftest.$ac_ext
72918 cat >>conftest.$ac_ext <<_ACEOF
72919 /* end confdefs.h.  */
72920 #include <stdlib.h>
72921 int
72922 main ()
72923 {
72924  setenv(0, 0, 0);
72925   ;
72926   return 0;
72927 }
72928 _ACEOF
72929 rm -f conftest.$ac_objext
72930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
72931   (eval $ac_compile) 2>conftest.er1
72932   ac_status=$?
72933   grep -v '^ *+' conftest.er1 >conftest.err
72934   rm -f conftest.er1
72935   cat conftest.err >&5
72936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72937   (exit $ac_status); } &&
72938          { ac_try='test -z "$ac_cxx_werror_flag"
72939                          || test ! -s conftest.err'
72940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72941   (eval $ac_try) 2>&5
72942   ac_status=$?
72943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72944   (exit $ac_status); }; } &&
72945          { ac_try='test -s conftest.$ac_objext'
72946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
72947   (eval $ac_try) 2>&5
72948   ac_status=$?
72949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
72950   (exit $ac_status); }; }; then
72951   glibcxx_cv_func_setenv_use=yes
72952 else
72953   echo "$as_me: failed program was:" >&5
72954 sed 's/^/| /' conftest.$ac_ext >&5
72955
72956 glibcxx_cv_func_setenv_use=no
72957 fi
72958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
72959       ac_ext=c
72960 ac_cpp='$CPP $CPPFLAGS'
72961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
72962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
72963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
72964
72965
72966 fi
72967
72968   fi
72969   echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
72970 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
72971   if test x$glibcxx_cv_func_setenv_use = x"yes"; then
72972
72973 for ac_func in setenv
72974 do
72975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
72976 echo "$as_me:$LINENO: checking for $ac_func" >&5
72977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
72978 if eval "test \"\${$as_ac_var+set}\" = set"; then
72979   echo $ECHO_N "(cached) $ECHO_C" >&6
72980 else
72981   if test x$gcc_no_link = xyes; then
72982   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
72983 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
72984    { (exit 1); exit 1; }; }
72985 fi
72986 cat >conftest.$ac_ext <<_ACEOF
72987 /* confdefs.h.  */
72988 _ACEOF
72989 cat confdefs.h >>conftest.$ac_ext
72990 cat >>conftest.$ac_ext <<_ACEOF
72991 /* end confdefs.h.  */
72992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
72993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
72994 #define $ac_func innocuous_$ac_func
72995
72996 /* System header to define __stub macros and hopefully few prototypes,
72997     which can conflict with char $ac_func (); below.
72998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
72999     <limits.h> exists even on freestanding compilers.  */
73000
73001 #ifdef __STDC__
73002 # include <limits.h>
73003 #else
73004 # include <assert.h>
73005 #endif
73006
73007 #undef $ac_func
73008
73009 /* Override any gcc2 internal prototype to avoid an error.  */
73010 #ifdef __cplusplus
73011 extern "C"
73012 {
73013 #endif
73014 /* We use char because int might match the return type of a gcc2
73015    builtin and then its argument prototype would still apply.  */
73016 char $ac_func ();
73017 /* The GNU C library defines this for functions which it implements
73018     to always fail with ENOSYS.  Some functions are actually named
73019     something starting with __ and the normal name is an alias.  */
73020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
73021 choke me
73022 #else
73023 char (*f) () = $ac_func;
73024 #endif
73025 #ifdef __cplusplus
73026 }
73027 #endif
73028
73029 int
73030 main ()
73031 {
73032 return f != $ac_func;
73033   ;
73034   return 0;
73035 }
73036 _ACEOF
73037 rm -f conftest.$ac_objext conftest$ac_exeext
73038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
73039   (eval $ac_link) 2>conftest.er1
73040   ac_status=$?
73041   grep -v '^ *+' conftest.er1 >conftest.err
73042   rm -f conftest.er1
73043   cat conftest.err >&5
73044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
73045   (exit $ac_status); } &&
73046          { ac_try='test -z "$ac_c_werror_flag"
73047                          || test ! -s conftest.err'
73048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
73049   (eval $ac_try) 2>&5
73050   ac_status=$?
73051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
73052   (exit $ac_status); }; } &&
73053          { ac_try='test -s conftest$ac_exeext'
73054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
73055   (eval $ac_try) 2>&5
73056   ac_status=$?
73057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
73058   (exit $ac_status); }; }; then
73059   eval "$as_ac_var=yes"
73060 else
73061   echo "$as_me: failed program was:" >&5
73062 sed 's/^/| /' conftest.$ac_ext >&5
73063
73064 eval "$as_ac_var=no"
73065 fi
73066 rm -f conftest.err conftest.$ac_objext \
73067       conftest$ac_exeext conftest.$ac_ext
73068 fi
73069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
73070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
73071 if test `eval echo '${'$as_ac_var'}'` = yes; then
73072   cat >>confdefs.h <<_ACEOF
73073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
73074 _ACEOF
73075
73076 fi
73077 done
73078
73079   fi
73080
73081
73082     if test $enable_symvers = no; then
73083       enable_abi_check=no
73084     else
73085       case "$host" in
73086         *-*-cygwin*)
73087           enable_abi_check=no ;;
73088         *)
73089           enable_abi_check=yes ;;
73090       esac
73091     fi
73092   else
73093     # Only build this as native, since automake does not understand
73094     # CXX_FOR_BUILD.
73095     enable_abi_check=no
73096   fi
73097
73098   # Export file names for ABI checking.
73099   baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
73100
73101
73102
73103
73104
73105
73106 # Propagate the target-specific source directories through the build chain.
73107 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
73108 # uses it, and it only gets used in this file.)
73109 ATOMICITY_SRCDIR=config/${atomicity_dir}
73110 ATOMIC_WORD_SRCDIR=config/${atomic_word_dir}
73111 OS_INC_SRCDIR=config/${os_include_dir}
73112
73113
73114
73115
73116 # Determine cross-compile flags and AM_CONDITIONALs.
73117 #AC_SUBST(GLIBCXX_IS_NATIVE)
73118 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
73119 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
73120 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH,  test $need_libmath = yes)
73121
73122
73123 if test $is_hosted = yes; then
73124   GLIBCXX_HOSTED_TRUE=
73125   GLIBCXX_HOSTED_FALSE='#'
73126 else
73127   GLIBCXX_HOSTED_TRUE='#'
73128   GLIBCXX_HOSTED_FALSE=
73129 fi
73130
73131
73132
73133
73134 if test $enable_libstdcxx_pch = yes; then
73135   GLIBCXX_BUILD_PCH_TRUE=
73136   GLIBCXX_BUILD_PCH_FALSE='#'
73137 else
73138   GLIBCXX_BUILD_PCH_TRUE='#'
73139   GLIBCXX_BUILD_PCH_FALSE=
73140 fi
73141
73142
73143
73144
73145 if test $enable_cheaders = c; then
73146   GLIBCXX_C_HEADERS_C_TRUE=
73147   GLIBCXX_C_HEADERS_C_FALSE='#'
73148 else
73149   GLIBCXX_C_HEADERS_C_TRUE='#'
73150   GLIBCXX_C_HEADERS_C_FALSE=
73151 fi
73152
73153
73154
73155
73156 if test $enable_cheaders = c_std; then
73157   GLIBCXX_C_HEADERS_C_STD_TRUE=
73158   GLIBCXX_C_HEADERS_C_STD_FALSE='#'
73159 else
73160   GLIBCXX_C_HEADERS_C_STD_TRUE='#'
73161   GLIBCXX_C_HEADERS_C_STD_FALSE=
73162 fi
73163
73164
73165
73166
73167 if test $c_compatibility = yes; then
73168   GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
73169   GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
73170 else
73171   GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
73172   GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
73173 fi
73174
73175
73176
73177
73178 if test $enable_libstdcxx_debug = yes; then
73179   GLIBCXX_BUILD_DEBUG_TRUE=
73180   GLIBCXX_BUILD_DEBUG_FALSE='#'
73181 else
73182   GLIBCXX_BUILD_DEBUG_TRUE='#'
73183   GLIBCXX_BUILD_DEBUG_FALSE=
73184 fi
73185
73186
73187
73188
73189 if test $enable_symvers != no; then
73190   GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
73191   GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
73192 else
73193   GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
73194   GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
73195 fi
73196
73197
73198
73199
73200 if test $enable_wchar_t = yes; then
73201   GLIBCXX_TEST_WCHAR_T_TRUE=
73202   GLIBCXX_TEST_WCHAR_T_FALSE='#'
73203 else
73204   GLIBCXX_TEST_WCHAR_T_TRUE='#'
73205   GLIBCXX_TEST_WCHAR_T_FALSE=
73206 fi
73207
73208
73209
73210
73211 if test $enable_abi_check = yes; then
73212   GLIBCXX_TEST_ABI_TRUE=
73213   GLIBCXX_TEST_ABI_FALSE='#'
73214 else
73215   GLIBCXX_TEST_ABI_TRUE='#'
73216   GLIBCXX_TEST_ABI_FALSE=
73217 fi
73218
73219
73220
73221
73222 cat >confcache <<\_ACEOF
73223 # This file is a shell script that caches the results of configure
73224 # tests run on this system so they can be shared between configure
73225 # scripts and configure runs, see configure's option --config-cache.
73226 # It is not useful on other systems.  If it contains results you don't
73227 # want to keep, you may remove or edit it.
73228 #
73229 # config.status only pays attention to the cache file if you give it
73230 # the --recheck option to rerun configure.
73231 #
73232 # `ac_cv_env_foo' variables (set or unset) will be overridden when
73233 # loading this file, other *unset* `ac_cv_foo' will be assigned the
73234 # following values.
73235
73236 _ACEOF
73237
73238 # The following way of writing the cache mishandles newlines in values,
73239 # but we know of no workaround that is simple, portable, and efficient.
73240 # So, don't put newlines in cache variables' values.
73241 # Ultrix sh set writes to stderr and can't be redirected directly,
73242 # and sets the high bit in the cache file unless we assign to the vars.
73243 {
73244   (set) 2>&1 |
73245     case `(ac_space=' '; set | grep ac_space) 2>&1` in
73246     *ac_space=\ *)
73247       # `set' does not quote correctly, so add quotes (double-quote
73248       # substitution turns \\\\ into \\, and sed turns \\ into \).
73249       sed -n \
73250         "s/'/'\\\\''/g;
73251           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
73252       ;;
73253     *)
73254       # `set' quotes correctly as required by POSIX, so do not add quotes.
73255       sed -n \
73256         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
73257       ;;
73258     esac;
73259 } |
73260   sed '
73261      t clear
73262      : clear
73263      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
73264      t end
73265      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
73266      : end' >>confcache
73267 if diff $cache_file confcache >/dev/null 2>&1; then :; else
73268   if test -w $cache_file; then
73269     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
73270     cat confcache >$cache_file
73271   else
73272     echo "not updating unwritable cache $cache_file"
73273   fi
73274 fi
73275 rm -f confcache
73276
73277 if test ${multilib} = yes; then
73278   multilib_arg="--enable-multilib"
73279 else
73280   multilib_arg=
73281 fi
73282
73283 # Export all the install information.
73284
73285   glibcxx_toolexecdir=no
73286   glibcxx_toolexeclibdir=no
73287   glibcxx_prefixdir=$prefix
73288
73289   echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
73290 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
73291
73292 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
73293 if test "${with_gxx_include_dir+set}" = set; then
73294   withval="$with_gxx_include_dir"
73295   case "$withval" in
73296       yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
73297 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
73298    { (exit 1); exit 1; }; } ;;
73299       no)  gxx_include_dir=no ;;
73300       *)   gxx_include_dir=$withval ;;
73301      esac
73302 else
73303   gxx_include_dir=no
73304 fi;
73305   echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
73306 echo "${ECHO_T}$gxx_include_dir" >&6
73307
73308   echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
73309 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
73310   # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
73311 if test "${enable_version_specific_runtime_libs+set}" = set; then
73312   enableval="$enable_version_specific_runtime_libs"
73313   case "$enableval" in
73314       yes) version_specific_libs=yes ;;
73315       no)  version_specific_libs=no ;;
73316       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
73317 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
73318    { (exit 1); exit 1; }; };;
73319      esac
73320 else
73321   version_specific_libs=no
73322 fi;
73323   echo "$as_me:$LINENO: result: $version_specific_libs" >&5
73324 echo "${ECHO_T}$version_specific_libs" >&6
73325
73326   # Default case for install directory for include files.
73327   if test $version_specific_libs = no && test $gxx_include_dir = no; then
73328     gxx_include_dir='${prefix}'/include/c++/${gcc_version}
73329   fi
73330
73331   # Version-specific runtime libs processing.
73332   if test $version_specific_libs = yes; then
73333     # Need the gcc compiler version to know where to install libraries
73334     # and header files if --enable-version-specific-runtime-libs option
73335     # is selected.  FIXME: these variables are misnamed, there are
73336     # no executables installed in _toolexecdir or _toolexeclibdir.
73337     if test x"$gxx_include_dir" = x"no"; then
73338       gxx_include_dir='${libdir}/gcc/${host_alias}/'$gcc_version/include/c++
73339     fi
73340     glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
73341     glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
73342   fi
73343
73344   # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
73345   # Install a library built with a cross compiler in tooldir, not libdir.
73346   if test x"$glibcxx_toolexecdir" = x"no"; then
73347     if test -n "$with_cross_host" &&
73348        test x"$with_cross_host" != x"no"; then
73349       glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
73350       glibcxx_toolexeclibdir='${toolexecdir}/lib'
73351     else
73352       glibcxx_toolexecdir='${libdir}/gcc/${host_alias}'
73353       glibcxx_toolexeclibdir='${libdir}'
73354     fi
73355     multi_os_directory=`$CXX -print-multi-os-directory`
73356     case $multi_os_directory in
73357       .) ;; # Avoid trailing /.
73358       *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
73359     esac
73360   fi
73361
73362   echo "$as_me:$LINENO: checking for install location" >&5
73363 echo $ECHO_N "checking for install location... $ECHO_C" >&6
73364   echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
73365 echo "${ECHO_T}$gxx_include_dir" >&6
73366
73367
73368
73369
73370
73371
73372
73373 # Export all the include and flag information to Makefiles.
73374
73375   # Used for every C++ compile we perform.
73376   GLIBCXX_INCLUDES="\
73377 -I$glibcxx_builddir/include/$host_alias \
73378 -I$glibcxx_builddir/include \
73379 -I$glibcxx_srcdir/libsupc++"
73380
73381   # For Canadian crosses, pick this up too.
73382   if test $CANADIAN = yes; then
73383     GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
73384   fi
73385
73386   # Stuff in the actual top level.  Currently only used by libsupc++ to
73387   # get unwind* headers from the gcc dir.
73388   #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
73389   TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
73390
73391   # Now, export this to all the little Makefiles....
73392
73393
73394
73395
73396   # Optimization flags that are probably a good idea for thrill-seekers. Just
73397   # uncomment the lines below and make, everything else is ready to go...
73398   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
73399   OPTIMIZE_CXXFLAGS=
73400
73401
73402   WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
73403
73404
73405
73406 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
73407    grep "enable shared" > /dev/null;
73408 then
73409   LIBSUPCXX_PICFLAGS=-prefer-pic
73410 else
73411   LIBSUPCXX_PICFLAGS=
73412 fi
73413
73414
73415                                                                       ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
73416
73417           ac_config_files="$ac_config_files scripts/check_survey"
73418
73419           ac_config_files="$ac_config_files scripts/testsuite_flags"
73420
73421
73422           ac_config_commands="$ac_config_commands default"
73423
73424
73425 cat >confcache <<\_ACEOF
73426 # This file is a shell script that caches the results of configure
73427 # tests run on this system so they can be shared between configure
73428 # scripts and configure runs, see configure's option --config-cache.
73429 # It is not useful on other systems.  If it contains results you don't
73430 # want to keep, you may remove or edit it.
73431 #
73432 # config.status only pays attention to the cache file if you give it
73433 # the --recheck option to rerun configure.
73434 #
73435 # `ac_cv_env_foo' variables (set or unset) will be overridden when
73436 # loading this file, other *unset* `ac_cv_foo' will be assigned the
73437 # following values.
73438
73439 _ACEOF
73440
73441 # The following way of writing the cache mishandles newlines in values,
73442 # but we know of no workaround that is simple, portable, and efficient.
73443 # So, don't put newlines in cache variables' values.
73444 # Ultrix sh set writes to stderr and can't be redirected directly,
73445 # and sets the high bit in the cache file unless we assign to the vars.
73446 {
73447   (set) 2>&1 |
73448     case `(ac_space=' '; set | grep ac_space) 2>&1` in
73449     *ac_space=\ *)
73450       # `set' does not quote correctly, so add quotes (double-quote
73451       # substitution turns \\\\ into \\, and sed turns \\ into \).
73452       sed -n \
73453         "s/'/'\\\\''/g;
73454           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
73455       ;;
73456     *)
73457       # `set' quotes correctly as required by POSIX, so do not add quotes.
73458       sed -n \
73459         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
73460       ;;
73461     esac;
73462 } |
73463   sed '
73464      t clear
73465      : clear
73466      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
73467      t end
73468      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
73469      : end' >>confcache
73470 if diff $cache_file confcache >/dev/null 2>&1; then :; else
73471   if test -w $cache_file; then
73472     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
73473     cat confcache >$cache_file
73474   else
73475     echo "not updating unwritable cache $cache_file"
73476   fi
73477 fi
73478 rm -f confcache
73479
73480 test "x$prefix" = xNONE && prefix=$ac_default_prefix
73481 # Let make expand exec_prefix.
73482 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
73483
73484 # VPATH may cause trouble with some makes, so we remove $(srcdir),
73485 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
73486 # trailing colons and then remove the whole line if VPATH becomes empty
73487 # (actually we leave an empty line to preserve line numbers).
73488 if test "x$srcdir" = x.; then
73489   ac_vpsub='/^[  ]*VPATH[        ]*=/{
73490 s/:*\$(srcdir):*/:/;
73491 s/:*\${srcdir}:*/:/;
73492 s/:*@srcdir@:*/:/;
73493 s/^\([^=]*=[     ]*\):*/\1/;
73494 s/:*$//;
73495 s/^[^=]*=[       ]*$//;
73496 }'
73497 fi
73498
73499 DEFS=-DHAVE_CONFIG_H
73500
73501 ac_libobjs=
73502 ac_ltlibobjs=
73503 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
73504   # 1. Remove the extension, and $U if already installed.
73505   ac_i=`echo "$ac_i" |
73506          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
73507   # 2. Add them.
73508   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
73509   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
73510 done
73511 LIBOBJS=$ac_libobjs
73512
73513 LTLIBOBJS=$ac_ltlibobjs
73514
73515
73516 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
73517   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
73518 Usually this means the macro was only invoked conditionally." >&5
73519 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
73520 Usually this means the macro was only invoked conditionally." >&2;}
73521    { (exit 1); exit 1; }; }
73522 fi
73523 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
73524   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
73525 Usually this means the macro was only invoked conditionally." >&5
73526 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
73527 Usually this means the macro was only invoked conditionally." >&2;}
73528    { (exit 1); exit 1; }; }
73529 fi
73530 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
73531   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
73532 Usually this means the macro was only invoked conditionally." >&5
73533 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
73534 Usually this means the macro was only invoked conditionally." >&2;}
73535    { (exit 1); exit 1; }; }
73536 fi
73537 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
73538   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
73539 Usually this means the macro was only invoked conditionally." >&5
73540 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
73541 Usually this means the macro was only invoked conditionally." >&2;}
73542    { (exit 1); exit 1; }; }
73543 fi
73544 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
73545   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
73546 Usually this means the macro was only invoked conditionally." >&5
73547 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
73548 Usually this means the macro was only invoked conditionally." >&2;}
73549    { (exit 1); exit 1; }; }
73550 fi
73551 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
73552   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
73553 Usually this means the macro was only invoked conditionally." >&5
73554 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
73555 Usually this means the macro was only invoked conditionally." >&2;}
73556    { (exit 1); exit 1; }; }
73557 fi
73558 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
73559   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
73560 Usually this means the macro was only invoked conditionally." >&5
73561 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
73562 Usually this means the macro was only invoked conditionally." >&2;}
73563    { (exit 1); exit 1; }; }
73564 fi
73565 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
73566   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
73567 Usually this means the macro was only invoked conditionally." >&5
73568 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
73569 Usually this means the macro was only invoked conditionally." >&2;}
73570    { (exit 1); exit 1; }; }
73571 fi
73572 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
73573   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
73574 Usually this means the macro was only invoked conditionally." >&5
73575 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
73576 Usually this means the macro was only invoked conditionally." >&2;}
73577    { (exit 1); exit 1; }; }
73578 fi
73579 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
73580   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
73581 Usually this means the macro was only invoked conditionally." >&5
73582 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
73583 Usually this means the macro was only invoked conditionally." >&2;}
73584    { (exit 1); exit 1; }; }
73585 fi
73586
73587 : ${CONFIG_STATUS=./config.status}
73588 ac_clean_files_save=$ac_clean_files
73589 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
73590 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
73591 echo "$as_me: creating $CONFIG_STATUS" >&6;}
73592 cat >$CONFIG_STATUS <<_ACEOF
73593 #! $SHELL
73594 # Generated by $as_me.
73595 # Run this file to recreate the current configuration.
73596 # Compiler output produced by configure, useful for debugging
73597 # configure, is in config.log if it exists.
73598
73599 debug=false
73600 ac_cs_recheck=false
73601 ac_cs_silent=false
73602 SHELL=\${CONFIG_SHELL-$SHELL}
73603 _ACEOF
73604
73605 cat >>$CONFIG_STATUS <<\_ACEOF
73606 ## --------------------- ##
73607 ## M4sh Initialization.  ##
73608 ## --------------------- ##
73609
73610 # Be Bourne compatible
73611 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
73612   emulate sh
73613   NULLCMD=:
73614   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
73615   # is contrary to our usage.  Disable this feature.
73616   alias -g '${1+"$@"}'='"$@"'
73617 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
73618   set -o posix
73619 fi
73620 DUALCASE=1; export DUALCASE # for MKS sh
73621
73622 # Support unset when possible.
73623 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
73624   as_unset=unset
73625 else
73626   as_unset=false
73627 fi
73628
73629
73630 # Work around bugs in pre-3.0 UWIN ksh.
73631 $as_unset ENV MAIL MAILPATH
73632 PS1='$ '
73633 PS2='> '
73634 PS4='+ '
73635
73636 # NLS nuisances.
73637 for as_var in \
73638   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
73639   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
73640   LC_TELEPHONE LC_TIME
73641 do
73642   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
73643     eval $as_var=C; export $as_var
73644   else
73645     $as_unset $as_var
73646   fi
73647 done
73648
73649 # Required to use basename.
73650 if expr a : '\(a\)' >/dev/null 2>&1; then
73651   as_expr=expr
73652 else
73653   as_expr=false
73654 fi
73655
73656 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
73657   as_basename=basename
73658 else
73659   as_basename=false
73660 fi
73661
73662
73663 # Name of the executable.
73664 as_me=`$as_basename "$0" ||
73665 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
73666          X"$0" : 'X\(//\)$' \| \
73667          X"$0" : 'X\(/\)$' \| \
73668          .     : '\(.\)' 2>/dev/null ||
73669 echo X/"$0" |
73670     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73671           /^X\/\(\/\/\)$/{ s//\1/; q; }
73672           /^X\/\(\/\).*/{ s//\1/; q; }
73673           s/.*/./; q'`
73674
73675
73676 # PATH needs CR, and LINENO needs CR and PATH.
73677 # Avoid depending upon Character Ranges.
73678 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
73679 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
73680 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
73681 as_cr_digits='0123456789'
73682 as_cr_alnum=$as_cr_Letters$as_cr_digits
73683
73684 # The user is always right.
73685 if test "${PATH_SEPARATOR+set}" != set; then
73686   echo "#! /bin/sh" >conf$$.sh
73687   echo  "exit 0"   >>conf$$.sh
73688   chmod +x conf$$.sh
73689   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
73690     PATH_SEPARATOR=';'
73691   else
73692     PATH_SEPARATOR=:
73693   fi
73694   rm -f conf$$.sh
73695 fi
73696
73697
73698   as_lineno_1=$LINENO
73699   as_lineno_2=$LINENO
73700   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
73701   test "x$as_lineno_1" != "x$as_lineno_2" &&
73702   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
73703   # Find who we are.  Look in the path if we contain no path at all
73704   # relative or not.
73705   case $0 in
73706     *[\\/]* ) as_myself=$0 ;;
73707     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73708 for as_dir in $PATH
73709 do
73710   IFS=$as_save_IFS
73711   test -z "$as_dir" && as_dir=.
73712   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
73713 done
73714
73715        ;;
73716   esac
73717   # We did not find ourselves, most probably we were run as `sh COMMAND'
73718   # in which case we are not to be found in the path.
73719   if test "x$as_myself" = x; then
73720     as_myself=$0
73721   fi
73722   if test ! -f "$as_myself"; then
73723     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
73724 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
73725    { (exit 1); exit 1; }; }
73726   fi
73727   case $CONFIG_SHELL in
73728   '')
73729     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73730 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
73731 do
73732   IFS=$as_save_IFS
73733   test -z "$as_dir" && as_dir=.
73734   for as_base in sh bash ksh sh5; do
73735          case $as_dir in
73736          /*)
73737            if ("$as_dir/$as_base" -c '
73738   as_lineno_1=$LINENO
73739   as_lineno_2=$LINENO
73740   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
73741   test "x$as_lineno_1" != "x$as_lineno_2" &&
73742   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
73743              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
73744              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
73745              CONFIG_SHELL=$as_dir/$as_base
73746              export CONFIG_SHELL
73747              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
73748            fi;;
73749          esac
73750        done
73751 done
73752 ;;
73753   esac
73754
73755   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
73756   # uniformly replaced by the line number.  The first 'sed' inserts a
73757   # line-number line before each line; the second 'sed' does the real
73758   # work.  The second script uses 'N' to pair each line-number line
73759   # with the numbered line, and appends trailing '-' during
73760   # substitution so that $LINENO is not a special case at line end.
73761   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
73762   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
73763   sed '=' <$as_myself |
73764     sed '
73765       N
73766       s,$,-,
73767       : loop
73768       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
73769       t loop
73770       s,-$,,
73771       s,^['$as_cr_digits']*\n,,
73772     ' >$as_me.lineno &&
73773   chmod +x $as_me.lineno ||
73774     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
73775 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
73776    { (exit 1); exit 1; }; }
73777
73778   # Don't try to exec as it changes $[0], causing all sort of problems
73779   # (the dirname of $[0] is not the place where we might find the
73780   # original and so on.  Autoconf is especially sensible to this).
73781   . ./$as_me.lineno
73782   # Exit status is that of the last command.
73783   exit
73784 }
73785
73786
73787 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
73788   *c*,-n*) ECHO_N= ECHO_C='
73789 ' ECHO_T='      ' ;;
73790   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
73791   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
73792 esac
73793
73794 if expr a : '\(a\)' >/dev/null 2>&1; then
73795   as_expr=expr
73796 else
73797   as_expr=false
73798 fi
73799
73800 rm -f conf$$ conf$$.exe conf$$.file
73801 echo >conf$$.file
73802 if ln -s conf$$.file conf$$ 2>/dev/null; then
73803   # We could just check for DJGPP; but this test a) works b) is more generic
73804   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
73805   if test -f conf$$.exe; then
73806     # Don't use ln at all; we don't have any links
73807     as_ln_s='cp -p'
73808   else
73809     as_ln_s='ln -s'
73810   fi
73811 elif ln conf$$.file conf$$ 2>/dev/null; then
73812   as_ln_s=ln
73813 else
73814   as_ln_s='cp -p'
73815 fi
73816 rm -f conf$$ conf$$.exe conf$$.file
73817
73818 if mkdir -p . 2>/dev/null; then
73819   as_mkdir_p=:
73820 else
73821   test -d ./-p && rmdir ./-p
73822   as_mkdir_p=false
73823 fi
73824
73825 as_executable_p="test -f"
73826
73827 # Sed expression to map a string onto a valid CPP name.
73828 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
73829
73830 # Sed expression to map a string onto a valid variable name.
73831 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
73832
73833
73834 # IFS
73835 # We need space, tab and new line, in precisely that order.
73836 as_nl='
73837 '
73838 IFS="   $as_nl"
73839
73840 # CDPATH.
73841 $as_unset CDPATH
73842
73843 exec 6>&1
73844
73845 # Open the log real soon, to keep \$[0] and so on meaningful, and to
73846 # report actual input values of CONFIG_FILES etc. instead of their
73847 # values after options handling.  Logging --version etc. is OK.
73848 exec 5>>config.log
73849 {
73850   echo
73851   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
73852 ## Running $as_me. ##
73853 _ASBOX
73854 } >&5
73855 cat >&5 <<_CSEOF
73856
73857 This file was extended by package-unused $as_me version-unused, which was
73858 generated by GNU Autoconf 2.59.  Invocation command line was
73859
73860   CONFIG_FILES    = $CONFIG_FILES
73861   CONFIG_HEADERS  = $CONFIG_HEADERS
73862   CONFIG_LINKS    = $CONFIG_LINKS
73863   CONFIG_COMMANDS = $CONFIG_COMMANDS
73864   $ $0 $@
73865
73866 _CSEOF
73867 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
73868 echo >&5
73869 _ACEOF
73870
73871 # Files that config.status was made for.
73872 if test -n "$ac_config_files"; then
73873   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
73874 fi
73875
73876 if test -n "$ac_config_headers"; then
73877   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
73878 fi
73879
73880 if test -n "$ac_config_links"; then
73881   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
73882 fi
73883
73884 if test -n "$ac_config_commands"; then
73885   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
73886 fi
73887
73888 cat >>$CONFIG_STATUS <<\_ACEOF
73889
73890 ac_cs_usage="\
73891 \`$as_me' instantiates files from templates according to the
73892 current configuration.
73893
73894 Usage: $0 [OPTIONS] [FILE]...
73895
73896   -h, --help       print this help, then exit
73897   -V, --version    print version number, then exit
73898   -q, --quiet      do not print progress messages
73899   -d, --debug      don't remove temporary files
73900       --recheck    update $as_me by reconfiguring in the same conditions
73901   --file=FILE[:TEMPLATE]
73902                    instantiate the configuration file FILE
73903   --header=FILE[:TEMPLATE]
73904                    instantiate the configuration header FILE
73905
73906 Configuration files:
73907 $config_files
73908
73909 Configuration headers:
73910 $config_headers
73911
73912 Configuration commands:
73913 $config_commands
73914
73915 Report bugs to <bug-autoconf@gnu.org>."
73916 _ACEOF
73917
73918 cat >>$CONFIG_STATUS <<_ACEOF
73919 ac_cs_version="\\
73920 package-unused config.status version-unused
73921 configured by $0, generated by GNU Autoconf 2.59,
73922   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
73923
73924 Copyright (C) 2003 Free Software Foundation, Inc.
73925 This config.status script is free software; the Free Software Foundation
73926 gives unlimited permission to copy, distribute and modify it."
73927 srcdir=$srcdir
73928 INSTALL="$INSTALL"
73929 _ACEOF
73930
73931 cat >>$CONFIG_STATUS <<\_ACEOF
73932 # If no file are specified by the user, then we need to provide default
73933 # value.  By we need to know if files were specified by the user.
73934 ac_need_defaults=:
73935 while test $# != 0
73936 do
73937   case $1 in
73938   --*=*)
73939     ac_option=`expr "x$1" : 'x\([^=]*\)='`
73940     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
73941     ac_shift=:
73942     ;;
73943   -*)
73944     ac_option=$1
73945     ac_optarg=$2
73946     ac_shift=shift
73947     ;;
73948   *) # This is not an option, so the user has probably given explicit
73949      # arguments.
73950      ac_option=$1
73951      ac_need_defaults=false;;
73952   esac
73953
73954   case $ac_option in
73955   # Handling of the options.
73956 _ACEOF
73957 cat >>$CONFIG_STATUS <<\_ACEOF
73958   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
73959     ac_cs_recheck=: ;;
73960   --version | --vers* | -V )
73961     echo "$ac_cs_version"; exit 0 ;;
73962   --he | --h)
73963     # Conflict between --help and --header
73964     { { echo "$as_me:$LINENO: error: ambiguous option: $1
73965 Try \`$0 --help' for more information." >&5
73966 echo "$as_me: error: ambiguous option: $1
73967 Try \`$0 --help' for more information." >&2;}
73968    { (exit 1); exit 1; }; };;
73969   --help | --hel | -h )
73970     echo "$ac_cs_usage"; exit 0 ;;
73971   --debug | --d* | -d )
73972     debug=: ;;
73973   --file | --fil | --fi | --f )
73974     $ac_shift
73975     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
73976     ac_need_defaults=false;;
73977   --header | --heade | --head | --hea )
73978     $ac_shift
73979     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
73980     ac_need_defaults=false;;
73981   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
73982   | -silent | --silent | --silen | --sile | --sil | --si | --s)
73983     ac_cs_silent=: ;;
73984
73985   # This is an error.
73986   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
73987 Try \`$0 --help' for more information." >&5
73988 echo "$as_me: error: unrecognized option: $1
73989 Try \`$0 --help' for more information." >&2;}
73990    { (exit 1); exit 1; }; } ;;
73991
73992   *) ac_config_targets="$ac_config_targets $1" ;;
73993
73994   esac
73995   shift
73996 done
73997
73998 ac_configure_extra_args=
73999
74000 if $ac_cs_silent; then
74001   exec 6>/dev/null
74002   ac_configure_extra_args="$ac_configure_extra_args --silent"
74003 fi
74004
74005 _ACEOF
74006 cat >>$CONFIG_STATUS <<_ACEOF
74007 if \$ac_cs_recheck; then
74008   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
74009   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
74010 fi
74011
74012 _ACEOF
74013
74014 cat >>$CONFIG_STATUS <<_ACEOF
74015 #
74016 # INIT-COMMANDS section.
74017 #
74018
74019
74020 srcdir="$srcdir"
74021 host="$host"
74022 target="$target"
74023 with_multisubdir="$with_multisubdir"
74024 with_multisrctop="$with_multisrctop"
74025 with_target_subdir="$with_target_subdir"
74026 ac_configure_args="${multilib_arg} ${ac_configure_args}"
74027 multi_basedir="$multi_basedir"
74028 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
74029 CC="$CC"
74030
74031 # Variables needed in config.status (file generation) which aren't already
74032 # passed by autoconf.
74033 SUBDIRS="$SUBDIRS"
74034
74035
74036 _ACEOF
74037
74038
74039
74040 cat >>$CONFIG_STATUS <<\_ACEOF
74041 for ac_config_target in $ac_config_targets
74042 do
74043   case "$ac_config_target" in
74044   # Handling of arguments.
74045   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
74046   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
74047   "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
74048   "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
74049   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
74050   "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
74051   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
74052   "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
74053   "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
74054   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
74055   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
74056   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
74057   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
74058 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
74059    { (exit 1); exit 1; }; };;
74060   esac
74061 done
74062
74063 # If the user did not use the arguments to specify the items to instantiate,
74064 # then the envvar interface is used.  Set only those that are not.
74065 # We use the long form for the default assignment because of an extremely
74066 # bizarre bug on SunOS 4.1.3.
74067 if $ac_need_defaults; then
74068   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
74069   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
74070   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
74071 fi
74072
74073 # Have a temporary directory for convenience.  Make it in the build tree
74074 # simply because there is no reason to put it here, and in addition,
74075 # creating and moving files from /tmp can sometimes cause problems.
74076 # Create a temporary directory, and hook for its removal unless debugging.
74077 $debug ||
74078 {
74079   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
74080   trap '{ (exit 1); exit 1; }' 1 2 13 15
74081 }
74082
74083 # Create a (secure) tmp directory for tmp files.
74084
74085 {
74086   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
74087   test -n "$tmp" && test -d "$tmp"
74088 }  ||
74089 {
74090   tmp=./confstat$$-$RANDOM
74091   (umask 077 && mkdir $tmp)
74092 } ||
74093 {
74094    echo "$me: cannot create a temporary directory in ." >&2
74095    { (exit 1); exit 1; }
74096 }
74097
74098 _ACEOF
74099
74100 cat >>$CONFIG_STATUS <<_ACEOF
74101
74102 #
74103 # CONFIG_FILES section.
74104 #
74105
74106 # No need to generate the scripts if there are no CONFIG_FILES.
74107 # This happens for instance when ./config.status config.h
74108 if test -n "\$CONFIG_FILES"; then
74109   # Protect against being on the right side of a sed subst in config.status.
74110   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
74111    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
74112 s,@SHELL@,$SHELL,;t t
74113 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
74114 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
74115 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
74116 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
74117 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
74118 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
74119 s,@exec_prefix@,$exec_prefix,;t t
74120 s,@prefix@,$prefix,;t t
74121 s,@program_transform_name@,$program_transform_name,;t t
74122 s,@bindir@,$bindir,;t t
74123 s,@sbindir@,$sbindir,;t t
74124 s,@libexecdir@,$libexecdir,;t t
74125 s,@datadir@,$datadir,;t t
74126 s,@sysconfdir@,$sysconfdir,;t t
74127 s,@sharedstatedir@,$sharedstatedir,;t t
74128 s,@localstatedir@,$localstatedir,;t t
74129 s,@libdir@,$libdir,;t t
74130 s,@includedir@,$includedir,;t t
74131 s,@oldincludedir@,$oldincludedir,;t t
74132 s,@infodir@,$infodir,;t t
74133 s,@mandir@,$mandir,;t t
74134 s,@build_alias@,$build_alias,;t t
74135 s,@host_alias@,$host_alias,;t t
74136 s,@target_alias@,$target_alias,;t t
74137 s,@DEFS@,$DEFS,;t t
74138 s,@ECHO_C@,$ECHO_C,;t t
74139 s,@ECHO_N@,$ECHO_N,;t t
74140 s,@ECHO_T@,$ECHO_T,;t t
74141 s,@LIBS@,$LIBS,;t t
74142 s,@libtool_VERSION@,$libtool_VERSION,;t t
74143 s,@multi_basedir@,$multi_basedir,;t t
74144 s,@build@,$build,;t t
74145 s,@build_cpu@,$build_cpu,;t t
74146 s,@build_vendor@,$build_vendor,;t t
74147 s,@build_os@,$build_os,;t t
74148 s,@host@,$host,;t t
74149 s,@host_cpu@,$host_cpu,;t t
74150 s,@host_vendor@,$host_vendor,;t t
74151 s,@host_os@,$host_os,;t t
74152 s,@target@,$target,;t t
74153 s,@target_cpu@,$target_cpu,;t t
74154 s,@target_vendor@,$target_vendor,;t t
74155 s,@target_os@,$target_os,;t t
74156 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
74157 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
74158 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
74159 s,@CYGPATH_W@,$CYGPATH_W,;t t
74160 s,@PACKAGE@,$PACKAGE,;t t
74161 s,@VERSION@,$VERSION,;t t
74162 s,@ACLOCAL@,$ACLOCAL,;t t
74163 s,@AUTOCONF@,$AUTOCONF,;t t
74164 s,@AUTOMAKE@,$AUTOMAKE,;t t
74165 s,@AUTOHEADER@,$AUTOHEADER,;t t
74166 s,@MAKEINFO@,$MAKEINFO,;t t
74167 s,@AMTAR@,$AMTAR,;t t
74168 s,@install_sh@,$install_sh,;t t
74169 s,@STRIP@,$STRIP,;t t
74170 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
74171 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
74172 s,@mkdir_p@,$mkdir_p,;t t
74173 s,@AWK@,$AWK,;t t
74174 s,@SET_MAKE@,$SET_MAKE,;t t
74175 s,@am__leading_dot@,$am__leading_dot,;t t
74176 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
74177 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
74178 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
74179 s,@CC@,$CC,;t t
74180 s,@ac_ct_CC@,$ac_ct_CC,;t t
74181 s,@EXEEXT@,$EXEEXT,;t t
74182 s,@OBJEXT@,$OBJEXT,;t t
74183 s,@CXX@,$CXX,;t t
74184 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
74185 s,@CFLAGS@,$CFLAGS,;t t
74186 s,@CXXFLAGS@,$CXXFLAGS,;t t
74187 s,@LN_S@,$LN_S,;t t
74188 s,@AS@,$AS,;t t
74189 s,@ac_ct_AS@,$ac_ct_AS,;t t
74190 s,@AR@,$AR,;t t
74191 s,@ac_ct_AR@,$ac_ct_AR,;t t
74192 s,@RANLIB@,$RANLIB,;t t
74193 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
74194 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
74195 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
74196 s,@MAINT@,$MAINT,;t t
74197 s,@LIBTOOL@,$LIBTOOL,;t t
74198 s,@CXXCPP@,$CXXCPP,;t t
74199 s,@CPPFLAGS@,$CPPFLAGS,;t t
74200 s,@enable_shared@,$enable_shared,;t t
74201 s,@enable_static@,$enable_static,;t t
74202 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
74203 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
74204 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
74205 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
74206 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
74207 s,@CSTDIO_H@,$CSTDIO_H,;t t
74208 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
74209 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
74210 s,@CPP@,$CPP,;t t
74211 s,@EGREP@,$EGREP,;t t
74212 s,@check_msgfmt@,$check_msgfmt,;t t
74213 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
74214 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
74215 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
74216 s,@USE_NLS@,$USE_NLS,;t t
74217 s,@CLOCALE_H@,$CLOCALE_H,;t t
74218 s,@CCODECVT_H@,$CCODECVT_H,;t t
74219 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
74220 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
74221 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
74222 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
74223 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
74224 s,@CMONEY_CC@,$CMONEY_CC,;t t
74225 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
74226 s,@CTIME_H@,$CTIME_H,;t t
74227 s,@CTIME_CC@,$CTIME_CC,;t t
74228 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
74229 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
74230 s,@ALLOCATOR_H@,$ALLOCATOR_H,;t t
74231 s,@ALLOCATOR_NAME@,$ALLOCATOR_NAME,;t t
74232 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
74233 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
74234 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
74235 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
74236 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
74237 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
74238 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
74239 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
74240 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
74241 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
74242 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
74243 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
74244 s,@WERROR@,$WERROR,;t t
74245 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
74246 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
74247 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
74248 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
74249 s,@LIBICONV@,$LIBICONV,;t t
74250 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
74251 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
74252 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
74253 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
74254 s,@baseline_dir@,$baseline_dir,;t t
74255 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
74256 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
74257 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
74258 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
74259 s,@ATOMICITY_SRCDIR@,$ATOMICITY_SRCDIR,;t t
74260 s,@ATOMIC_WORD_SRCDIR@,$ATOMIC_WORD_SRCDIR,;t t
74261 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
74262 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
74263 s,@gxx_include_dir@,$gxx_include_dir,;t t
74264 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
74265 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
74266 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
74267 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
74268 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
74269 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
74270 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
74271 s,@LIBOBJS@,$LIBOBJS,;t t
74272 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
74273 CEOF
74274
74275 _ACEOF
74276
74277   cat >>$CONFIG_STATUS <<\_ACEOF
74278   # Split the substitutions into bite-sized pieces for seds with
74279   # small command number limits, like on Digital OSF/1 and HP-UX.
74280   ac_max_sed_lines=48
74281   ac_sed_frag=1 # Number of current file.
74282   ac_beg=1 # First line for current file.
74283   ac_end=$ac_max_sed_lines # Line after last line for current file.
74284   ac_more_lines=:
74285   ac_sed_cmds=
74286   while $ac_more_lines; do
74287     if test $ac_beg -gt 1; then
74288       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
74289     else
74290       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
74291     fi
74292     if test ! -s $tmp/subs.frag; then
74293       ac_more_lines=false
74294     else
74295       # The purpose of the label and of the branching condition is to
74296       # speed up the sed processing (if there are no `@' at all, there
74297       # is no need to browse any of the substitutions).
74298       # These are the two extra sed commands mentioned above.
74299       (echo ':t
74300   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
74301       if test -z "$ac_sed_cmds"; then
74302         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
74303       else
74304         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
74305       fi
74306       ac_sed_frag=`expr $ac_sed_frag + 1`
74307       ac_beg=$ac_end
74308       ac_end=`expr $ac_end + $ac_max_sed_lines`
74309     fi
74310   done
74311   if test -z "$ac_sed_cmds"; then
74312     ac_sed_cmds=cat
74313   fi
74314 fi # test -n "$CONFIG_FILES"
74315
74316 _ACEOF
74317 cat >>$CONFIG_STATUS <<\_ACEOF
74318 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
74319   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
74320   case $ac_file in
74321   - | *:- | *:-:* ) # input from stdin
74322         cat >$tmp/stdin
74323         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74324         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74325   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74326         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74327   * )   ac_file_in=$ac_file.in ;;
74328   esac
74329
74330   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
74331   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
74332 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74333          X"$ac_file" : 'X\(//\)[^/]' \| \
74334          X"$ac_file" : 'X\(//\)$' \| \
74335          X"$ac_file" : 'X\(/\)' \| \
74336          .     : '\(.\)' 2>/dev/null ||
74337 echo X"$ac_file" |
74338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74339           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74340           /^X\(\/\/\)$/{ s//\1/; q; }
74341           /^X\(\/\).*/{ s//\1/; q; }
74342           s/.*/./; q'`
74343   { if $as_mkdir_p; then
74344     mkdir -p "$ac_dir"
74345   else
74346     as_dir="$ac_dir"
74347     as_dirs=
74348     while test ! -d "$as_dir"; do
74349       as_dirs="$as_dir $as_dirs"
74350       as_dir=`(dirname "$as_dir") 2>/dev/null ||
74351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74352          X"$as_dir" : 'X\(//\)[^/]' \| \
74353          X"$as_dir" : 'X\(//\)$' \| \
74354          X"$as_dir" : 'X\(/\)' \| \
74355          .     : '\(.\)' 2>/dev/null ||
74356 echo X"$as_dir" |
74357     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74358           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74359           /^X\(\/\/\)$/{ s//\1/; q; }
74360           /^X\(\/\).*/{ s//\1/; q; }
74361           s/.*/./; q'`
74362     done
74363     test ! -n "$as_dirs" || mkdir $as_dirs
74364   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74365 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74366    { (exit 1); exit 1; }; }; }
74367
74368   ac_builddir=.
74369
74370 if test "$ac_dir" != .; then
74371   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
74372   # A "../" for each directory in $ac_dir_suffix.
74373   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
74374 else
74375   ac_dir_suffix= ac_top_builddir=
74376 fi
74377
74378 case $srcdir in
74379   .)  # No --srcdir option.  We are building in place.
74380     ac_srcdir=.
74381     if test -z "$ac_top_builddir"; then
74382        ac_top_srcdir=.
74383     else
74384        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
74385     fi ;;
74386   [\\/]* | ?:[\\/]* )  # Absolute path.
74387     ac_srcdir=$srcdir$ac_dir_suffix;
74388     ac_top_srcdir=$srcdir ;;
74389   *) # Relative path.
74390     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
74391     ac_top_srcdir=$ac_top_builddir$srcdir ;;
74392 esac
74393
74394 # Do not use `cd foo && pwd` to compute absolute paths, because
74395 # the directories may not exist.
74396 case `pwd` in
74397 .) ac_abs_builddir="$ac_dir";;
74398 *)
74399   case "$ac_dir" in
74400   .) ac_abs_builddir=`pwd`;;
74401   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
74402   *) ac_abs_builddir=`pwd`/"$ac_dir";;
74403   esac;;
74404 esac
74405 case $ac_abs_builddir in
74406 .) ac_abs_top_builddir=${ac_top_builddir}.;;
74407 *)
74408   case ${ac_top_builddir}. in
74409   .) ac_abs_top_builddir=$ac_abs_builddir;;
74410   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
74411   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
74412   esac;;
74413 esac
74414 case $ac_abs_builddir in
74415 .) ac_abs_srcdir=$ac_srcdir;;
74416 *)
74417   case $ac_srcdir in
74418   .) ac_abs_srcdir=$ac_abs_builddir;;
74419   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
74420   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
74421   esac;;
74422 esac
74423 case $ac_abs_builddir in
74424 .) ac_abs_top_srcdir=$ac_top_srcdir;;
74425 *)
74426   case $ac_top_srcdir in
74427   .) ac_abs_top_srcdir=$ac_abs_builddir;;
74428   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
74429   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
74430   esac;;
74431 esac
74432
74433
74434   case $INSTALL in
74435   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
74436   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
74437   esac
74438
74439   if test x"$ac_file" != x-; then
74440     { echo "$as_me:$LINENO: creating $ac_file" >&5
74441 echo "$as_me: creating $ac_file" >&6;}
74442     rm -f "$ac_file"
74443   fi
74444   # Let's still pretend it is `configure' which instantiates (i.e., don't
74445   # use $as_me), people would be surprised to read:
74446   #    /* config.h.  Generated by config.status.  */
74447   if test x"$ac_file" = x-; then
74448     configure_input=
74449   else
74450     configure_input="$ac_file.  "
74451   fi
74452   configure_input=$configure_input"Generated from `echo $ac_file_in |
74453                                      sed 's,.*/,,'` by configure."
74454
74455   # First look for the input files in the build tree, otherwise in the
74456   # src tree.
74457   ac_file_inputs=`IFS=:
74458     for f in $ac_file_in; do
74459       case $f in
74460       -) echo $tmp/stdin ;;
74461       [\\/$]*)
74462          # Absolute (can't be DOS-style, as IFS=:)
74463          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74464 echo "$as_me: error: cannot find input file: $f" >&2;}
74465    { (exit 1); exit 1; }; }
74466          echo "$f";;
74467       *) # Relative
74468          if test -f "$f"; then
74469            # Build tree
74470            echo "$f"
74471          elif test -f "$srcdir/$f"; then
74472            # Source tree
74473            echo "$srcdir/$f"
74474          else
74475            # /dev/null tree
74476            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74477 echo "$as_me: error: cannot find input file: $f" >&2;}
74478    { (exit 1); exit 1; }; }
74479          fi;;
74480       esac
74481     done` || { (exit 1); exit 1; }
74482 _ACEOF
74483 cat >>$CONFIG_STATUS <<_ACEOF
74484   sed "$ac_vpsub
74485 $extrasub
74486 _ACEOF
74487 cat >>$CONFIG_STATUS <<\_ACEOF
74488 :t
74489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
74490 s,@configure_input@,$configure_input,;t t
74491 s,@srcdir@,$ac_srcdir,;t t
74492 s,@abs_srcdir@,$ac_abs_srcdir,;t t
74493 s,@top_srcdir@,$ac_top_srcdir,;t t
74494 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
74495 s,@builddir@,$ac_builddir,;t t
74496 s,@abs_builddir@,$ac_abs_builddir,;t t
74497 s,@top_builddir@,$ac_top_builddir,;t t
74498 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
74499 s,@INSTALL@,$ac_INSTALL,;t t
74500 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
74501   rm -f $tmp/stdin
74502   if test x"$ac_file" != x-; then
74503     mv $tmp/out $ac_file
74504   else
74505     cat $tmp/out
74506     rm -f $tmp/out
74507   fi
74508
74509   # Run the commands associated with the file.
74510   case $ac_file in
74511     scripts/check_survey ) chmod +x scripts/check_survey ;;
74512     scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
74513   esac
74514 done
74515 _ACEOF
74516 cat >>$CONFIG_STATUS <<\_ACEOF
74517
74518 #
74519 # CONFIG_HEADER section.
74520 #
74521
74522 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
74523 # NAME is the cpp macro being defined and VALUE is the value it is being given.
74524 #
74525 # ac_d sets the value in "#define NAME VALUE" lines.
74526 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
74527 ac_dB='[         ].*$,\1#\2'
74528 ac_dC=' '
74529 ac_dD=',;t'
74530 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
74531 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
74532 ac_uB='$,\1#\2define\3'
74533 ac_uC=' '
74534 ac_uD=',;t'
74535
74536 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
74537   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
74538   case $ac_file in
74539   - | *:- | *:-:* ) # input from stdin
74540         cat >$tmp/stdin
74541         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74542         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74543   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
74544         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
74545   * )   ac_file_in=$ac_file.in ;;
74546   esac
74547
74548   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
74549 echo "$as_me: creating $ac_file" >&6;}
74550
74551   # First look for the input files in the build tree, otherwise in the
74552   # src tree.
74553   ac_file_inputs=`IFS=:
74554     for f in $ac_file_in; do
74555       case $f in
74556       -) echo $tmp/stdin ;;
74557       [\\/$]*)
74558          # Absolute (can't be DOS-style, as IFS=:)
74559          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74560 echo "$as_me: error: cannot find input file: $f" >&2;}
74561    { (exit 1); exit 1; }; }
74562          # Do quote $f, to prevent DOS paths from being IFS'd.
74563          echo "$f";;
74564       *) # Relative
74565          if test -f "$f"; then
74566            # Build tree
74567            echo "$f"
74568          elif test -f "$srcdir/$f"; then
74569            # Source tree
74570            echo "$srcdir/$f"
74571          else
74572            # /dev/null tree
74573            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
74574 echo "$as_me: error: cannot find input file: $f" >&2;}
74575    { (exit 1); exit 1; }; }
74576          fi;;
74577       esac
74578     done` || { (exit 1); exit 1; }
74579   # Remove the trailing spaces.
74580   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
74581
74582 _ACEOF
74583
74584 # Transform confdefs.h into two sed scripts, `conftest.defines' and
74585 # `conftest.undefs', that substitutes the proper values into
74586 # config.h.in to produce config.h.  The first handles `#define'
74587 # templates, and the second `#undef' templates.
74588 # And first: Protect against being on the right side of a sed subst in
74589 # config.status.  Protect against being in an unquoted here document
74590 # in config.status.
74591 rm -f conftest.defines conftest.undefs
74592 # Using a here document instead of a string reduces the quoting nightmare.
74593 # Putting comments in sed scripts is not portable.
74594 #
74595 # `end' is used to avoid that the second main sed command (meant for
74596 # 0-ary CPP macros) applies to n-ary macro definitions.
74597 # See the Autoconf documentation for `clear'.
74598 cat >confdef2sed.sed <<\_ACEOF
74599 s/[\\&,]/\\&/g
74600 s,[\\$`],\\&,g
74601 t clear
74602 : clear
74603 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
74604 t end
74605 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
74606 : end
74607 _ACEOF
74608 # If some macros were called several times there might be several times
74609 # the same #defines, which is useless.  Nevertheless, we may not want to
74610 # sort them, since we want the *last* AC-DEFINE to be honored.
74611 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
74612 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
74613 rm -f confdef2sed.sed
74614
74615 # This sed command replaces #undef with comments.  This is necessary, for
74616 # example, in the case of _POSIX_SOURCE, which is predefined and required
74617 # on some systems where configure will not decide to define it.
74618 cat >>conftest.undefs <<\_ACEOF
74619 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
74620 _ACEOF
74621
74622 # Break up conftest.defines because some shells have a limit on the size
74623 # of here documents, and old seds have small limits too (100 cmds).
74624 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
74625 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
74626 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
74627 echo '  :' >>$CONFIG_STATUS
74628 rm -f conftest.tail
74629 while grep . conftest.defines >/dev/null
74630 do
74631   # Write a limited-size here document to $tmp/defines.sed.
74632   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
74633   # Speed up: don't consider the non `#define' lines.
74634   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
74635   # Work around the forget-to-reset-the-flag bug.
74636   echo 't clr' >>$CONFIG_STATUS
74637   echo ': clr' >>$CONFIG_STATUS
74638   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
74639   echo 'CEOF
74640   sed -f $tmp/defines.sed $tmp/in >$tmp/out
74641   rm -f $tmp/in
74642   mv $tmp/out $tmp/in
74643 ' >>$CONFIG_STATUS
74644   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
74645   rm -f conftest.defines
74646   mv conftest.tail conftest.defines
74647 done
74648 rm -f conftest.defines
74649 echo '  fi # grep' >>$CONFIG_STATUS
74650 echo >>$CONFIG_STATUS
74651
74652 # Break up conftest.undefs because some shells have a limit on the size
74653 # of here documents, and old seds have small limits too (100 cmds).
74654 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
74655 rm -f conftest.tail
74656 while grep . conftest.undefs >/dev/null
74657 do
74658   # Write a limited-size here document to $tmp/undefs.sed.
74659   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
74660   # Speed up: don't consider the non `#undef'
74661   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
74662   # Work around the forget-to-reset-the-flag bug.
74663   echo 't clr' >>$CONFIG_STATUS
74664   echo ': clr' >>$CONFIG_STATUS
74665   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
74666   echo 'CEOF
74667   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
74668   rm -f $tmp/in
74669   mv $tmp/out $tmp/in
74670 ' >>$CONFIG_STATUS
74671   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
74672   rm -f conftest.undefs
74673   mv conftest.tail conftest.undefs
74674 done
74675 rm -f conftest.undefs
74676
74677 cat >>$CONFIG_STATUS <<\_ACEOF
74678   # Let's still pretend it is `configure' which instantiates (i.e., don't
74679   # use $as_me), people would be surprised to read:
74680   #    /* config.h.  Generated by config.status.  */
74681   if test x"$ac_file" = x-; then
74682     echo "/* Generated by configure.  */" >$tmp/config.h
74683   else
74684     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
74685   fi
74686   cat $tmp/in >>$tmp/config.h
74687   rm -f $tmp/in
74688   if test x"$ac_file" != x-; then
74689     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
74690       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
74691 echo "$as_me: $ac_file is unchanged" >&6;}
74692     else
74693       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
74694 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74695          X"$ac_file" : 'X\(//\)[^/]' \| \
74696          X"$ac_file" : 'X\(//\)$' \| \
74697          X"$ac_file" : 'X\(/\)' \| \
74698          .     : '\(.\)' 2>/dev/null ||
74699 echo X"$ac_file" |
74700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74701           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74702           /^X\(\/\/\)$/{ s//\1/; q; }
74703           /^X\(\/\).*/{ s//\1/; q; }
74704           s/.*/./; q'`
74705       { if $as_mkdir_p; then
74706     mkdir -p "$ac_dir"
74707   else
74708     as_dir="$ac_dir"
74709     as_dirs=
74710     while test ! -d "$as_dir"; do
74711       as_dirs="$as_dir $as_dirs"
74712       as_dir=`(dirname "$as_dir") 2>/dev/null ||
74713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74714          X"$as_dir" : 'X\(//\)[^/]' \| \
74715          X"$as_dir" : 'X\(//\)$' \| \
74716          X"$as_dir" : 'X\(/\)' \| \
74717          .     : '\(.\)' 2>/dev/null ||
74718 echo X"$as_dir" |
74719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74721           /^X\(\/\/\)$/{ s//\1/; q; }
74722           /^X\(\/\).*/{ s//\1/; q; }
74723           s/.*/./; q'`
74724     done
74725     test ! -n "$as_dirs" || mkdir $as_dirs
74726   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74727 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74728    { (exit 1); exit 1; }; }; }
74729
74730       rm -f $ac_file
74731       mv $tmp/config.h $ac_file
74732     fi
74733   else
74734     cat $tmp/config.h
74735     rm -f $tmp/config.h
74736   fi
74737 # Compute $ac_file's index in $config_headers.
74738 _am_stamp_count=1
74739 for _am_header in $config_headers :; do
74740   case $_am_header in
74741     $ac_file | $ac_file:* )
74742       break ;;
74743     * )
74744       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
74745   esac
74746 done
74747 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
74748 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74749          X$ac_file : 'X\(//\)[^/]' \| \
74750          X$ac_file : 'X\(//\)$' \| \
74751          X$ac_file : 'X\(/\)' \| \
74752          .     : '\(.\)' 2>/dev/null ||
74753 echo X$ac_file |
74754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74755           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74756           /^X\(\/\/\)$/{ s//\1/; q; }
74757           /^X\(\/\).*/{ s//\1/; q; }
74758           s/.*/./; q'`/stamp-h$_am_stamp_count
74759 done
74760 _ACEOF
74761 cat >>$CONFIG_STATUS <<\_ACEOF
74762
74763 #
74764 # CONFIG_COMMANDS section.
74765 #
74766 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
74767   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
74768   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
74769   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
74770 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74771          X"$ac_dest" : 'X\(//\)[^/]' \| \
74772          X"$ac_dest" : 'X\(//\)$' \| \
74773          X"$ac_dest" : 'X\(/\)' \| \
74774          .     : '\(.\)' 2>/dev/null ||
74775 echo X"$ac_dest" |
74776     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74777           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74778           /^X\(\/\/\)$/{ s//\1/; q; }
74779           /^X\(\/\).*/{ s//\1/; q; }
74780           s/.*/./; q'`
74781   { if $as_mkdir_p; then
74782     mkdir -p "$ac_dir"
74783   else
74784     as_dir="$ac_dir"
74785     as_dirs=
74786     while test ! -d "$as_dir"; do
74787       as_dirs="$as_dir $as_dirs"
74788       as_dir=`(dirname "$as_dir") 2>/dev/null ||
74789 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
74790          X"$as_dir" : 'X\(//\)[^/]' \| \
74791          X"$as_dir" : 'X\(//\)$' \| \
74792          X"$as_dir" : 'X\(/\)' \| \
74793          .     : '\(.\)' 2>/dev/null ||
74794 echo X"$as_dir" |
74795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
74796           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
74797           /^X\(\/\/\)$/{ s//\1/; q; }
74798           /^X\(\/\).*/{ s//\1/; q; }
74799           s/.*/./; q'`
74800     done
74801     test ! -n "$as_dirs" || mkdir $as_dirs
74802   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
74803 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
74804    { (exit 1); exit 1; }; }; }
74805
74806   ac_builddir=.
74807
74808 if test "$ac_dir" != .; then
74809   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
74810   # A "../" for each directory in $ac_dir_suffix.
74811   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
74812 else
74813   ac_dir_suffix= ac_top_builddir=
74814 fi
74815
74816 case $srcdir in
74817   .)  # No --srcdir option.  We are building in place.
74818     ac_srcdir=.
74819     if test -z "$ac_top_builddir"; then
74820        ac_top_srcdir=.
74821     else
74822        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
74823     fi ;;
74824   [\\/]* | ?:[\\/]* )  # Absolute path.
74825     ac_srcdir=$srcdir$ac_dir_suffix;
74826     ac_top_srcdir=$srcdir ;;
74827   *) # Relative path.
74828     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
74829     ac_top_srcdir=$ac_top_builddir$srcdir ;;
74830 esac
74831
74832 # Do not use `cd foo && pwd` to compute absolute paths, because
74833 # the directories may not exist.
74834 case `pwd` in
74835 .) ac_abs_builddir="$ac_dir";;
74836 *)
74837   case "$ac_dir" in
74838   .) ac_abs_builddir=`pwd`;;
74839   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
74840   *) ac_abs_builddir=`pwd`/"$ac_dir";;
74841   esac;;
74842 esac
74843 case $ac_abs_builddir in
74844 .) ac_abs_top_builddir=${ac_top_builddir}.;;
74845 *)
74846   case ${ac_top_builddir}. in
74847   .) ac_abs_top_builddir=$ac_abs_builddir;;
74848   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
74849   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
74850   esac;;
74851 esac
74852 case $ac_abs_builddir in
74853 .) ac_abs_srcdir=$ac_srcdir;;
74854 *)
74855   case $ac_srcdir in
74856   .) ac_abs_srcdir=$ac_abs_builddir;;
74857   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
74858   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
74859   esac;;
74860 esac
74861 case $ac_abs_builddir in
74862 .) ac_abs_top_srcdir=$ac_top_srcdir;;
74863 *)
74864   case $ac_top_srcdir in
74865   .) ac_abs_top_srcdir=$ac_abs_builddir;;
74866   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
74867   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
74868   esac;;
74869 esac
74870
74871
74872   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
74873 echo "$as_me: executing $ac_dest commands" >&6;}
74874   case $ac_dest in
74875     default-1 )
74876 # Only add multilib support code if we just rebuilt the top-level
74877 # Makefile.
74878 case " $CONFIG_FILES " in
74879  *" Makefile "*)
74880    ac_file=Makefile . ${multi_basedir}/config-ml.in
74881    ;;
74882 esac ;;
74883     default ) if test -n "$CONFIG_FILES"; then
74884    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
74885    # that multilib installs will end up installed in the correct place.
74886    # The testsuite needs it for multilib-aware ABI baseline files.
74887    # To work around this not being passed down from config-ml.in ->
74888    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
74889    # append it here.  Only modify Makefiles that have just been created.
74890    #
74891    # Also, get rid of this simulated-VPATH thing that automake does.
74892    cat > vpsed << \_EOF
74893 s!`test -f '$<' || echo '$(srcdir)/'`!!
74894 _EOF
74895    for i in $SUBDIRS; do
74896     case $CONFIG_FILES in
74897      *${i}/Makefile*)
74898        #echo "Adding MULTISUBDIR to $i/Makefile"
74899        sed -f vpsed $i/Makefile > tmp
74900        grep '^MULTISUBDIR =' Makefile >> tmp
74901        mv tmp $i/Makefile
74902        ;;
74903     esac
74904    done
74905    rm vpsed
74906  fi
74907  (cd include && ${MAKE-make})
74908  ;;
74909   esac
74910 done
74911 _ACEOF
74912
74913 cat >>$CONFIG_STATUS <<\_ACEOF
74914
74915 { (exit 0); exit 0; }
74916 _ACEOF
74917 chmod +x $CONFIG_STATUS
74918 ac_clean_files=$ac_clean_files_save
74919
74920
74921 # configure is writing to config.log, and then calls config.status.
74922 # config.status does its own redirection, appending to config.log.
74923 # Unfortunately, on DOS this fails, as config.log is still kept open
74924 # by configure, so config.status won't be able to write to it; its
74925 # output is simply discarded.  So we exec the FD to /dev/null,
74926 # effectively closing config.log, so it can be properly (re)opened and
74927 # appended to by config.status.  When coming back to configure, we
74928 # need to make the FD available again.
74929 if test "$no_create" != yes; then
74930   ac_cs_success=:
74931   ac_config_status_args=
74932   test "$silent" = yes &&
74933     ac_config_status_args="$ac_config_status_args --quiet"
74934   exec 5>/dev/null
74935   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
74936   exec 5>>config.log
74937   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
74938   # would make configure fail if this is the last instruction.
74939   $ac_cs_success || { (exit 1); exit 1; }
74940 fi
74941