OSDN Git Service

* acinclude.m4: Don't call AC_ISC_POSIX.
[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.57 for package-unused version-unused.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME='package-unused'
268 PACKAGE_TARNAME='libstdc++'
269 PACKAGE_VERSION='version-unused'
270 PACKAGE_STRING='package-unused version-unused'
271 PACKAGE_BUGREPORT=''
272
273 ac_unique_file="src/ios.cc"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 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 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 LIBUNWIND_FLAG GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS CSTDIO_H FPOS_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 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 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_INC_SRCDIR FPOS_INC_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'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CXXCPP_set=${CXXCPP+set}
753 ac_env_CXXCPP_value=$CXXCPP
754 ac_cv_env_CXXCPP_set=${CXXCPP+set}
755 ac_cv_env_CXXCPP_value=$CXXCPP
756 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
757 ac_env_CPPFLAGS_value=$CPPFLAGS
758 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
760 ac_env_CPP_set=${CPP+set}
761 ac_env_CPP_value=$CPP
762 ac_cv_env_CPP_set=${CPP+set}
763 ac_cv_env_CPP_value=$CPP
764
765 #
766 # Report the --help message.
767 #
768 if test "$ac_init_help" = "long"; then
769   # Omit some internal or obsolete options to make the list less imposing.
770   # This message is too long to be a string in the A/UX 3.1 sh.
771   cat <<_ACEOF
772 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
773
774 Usage: $0 [OPTION]... [VAR=VALUE]...
775
776 To assign environment variables (e.g., CC, CFLAGS...), specify them as
777 VAR=VALUE.  See below for descriptions of some of the useful variables.
778
779 Defaults for the options are specified in brackets.
780
781 Configuration:
782   -h, --help              display this help and exit
783       --help=short        display options specific to this package
784       --help=recursive    display the short help of all the included packages
785   -V, --version           display version information and exit
786   -q, --quiet, --silent   do not print \`checking...' messages
787       --cache-file=FILE   cache test results in FILE [disabled]
788   -C, --config-cache      alias for \`--cache-file=config.cache'
789   -n, --no-create         do not create output files
790       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
791
792 _ACEOF
793
794   cat <<_ACEOF
795 Installation directories:
796   --prefix=PREFIX         install architecture-independent files in PREFIX
797                           [$ac_default_prefix]
798   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
799                           [PREFIX]
800
801 By default, \`make install' will install all the files in
802 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
803 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
804 for instance \`--prefix=\$HOME'.
805
806 For better control, use the options below.
807
808 Fine tuning of the installation directories:
809   --bindir=DIR           user executables [EPREFIX/bin]
810   --sbindir=DIR          system admin executables [EPREFIX/sbin]
811   --libexecdir=DIR       program executables [EPREFIX/libexec]
812   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
813   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
814   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
815   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
816   --libdir=DIR           object code libraries [EPREFIX/lib]
817   --includedir=DIR       C header files [PREFIX/include]
818   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
819   --infodir=DIR          info documentation [PREFIX/info]
820   --mandir=DIR           man documentation [PREFIX/man]
821 _ACEOF
822
823   cat <<\_ACEOF
824
825 Program names:
826   --program-prefix=PREFIX            prepend PREFIX to installed program names
827   --program-suffix=SUFFIX            append SUFFIX to installed program names
828   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
829
830 System types:
831   --build=BUILD     configure for building on BUILD [guessed]
832   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
833   --target=TARGET   configure for building compilers for TARGET [HOST]
834 _ACEOF
835 fi
836
837 if test -n "$ac_init_help"; then
838   case $ac_init_help in
839      short | recursive ) echo "Configuration of package-unused version-unused:";;
840    esac
841   cat <<\_ACEOF
842
843 Optional Features:
844   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
845   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
846   --enable-multilib         build many library versions (default)
847   --enable-maintainer-mode enable make rules and dependencies not useful
848                           (and sometimes confusing) to the casual installer
849   --enable-shared=PKGS  build shared libraries default=yes
850   --enable-static=PKGS  build static libraries default=yes
851   --enable-fast-install=PKGS  optimize for fast installation default=yes
852   --disable-libtool-lock  avoid locking (might break parallel builds)
853   --disable-hosted-libstdcxx
854                           only build freestanding C++ runtime support
855   --enable-sjlj-exceptions
856                           force use of builtin_setjmp for exceptions
857                           [default=auto]
858   --enable-libunwind-exceptions
859                           force use of libunwind for exceptions
860                           [default=no]
861   --enable-libstdcxx-pch  build pre-compiled libstdc++ headers
862                           [default=$is_hosted]
863   --enable-cstdio=PACKAGE use target-specific I/O package
864                           [default=stdio]
865   --enable-clocale[=MODEL]
866                           use MODEL for target locale package
867                           [default=auto]
868   --enable-nls            use Native Language Support (default)
869   --enable-cheaders=KIND  construct "C" headers for g++
870                           [default=$c_model]
871   --enable-c-mbchar       enable multibyte (wide) characters
872                           [default=yes]
873   --enable-c99            turns on ISO/IEC 9899:1999 support
874                           [default=yes]
875   --enable-long-long      enables I/O support for 'long long'
876                           [default=yes]
877   --enable-concept-checks use Boost-derived template checks [default=no]
878   --enable-libstdcxx-debug-flags=FLAGS
879                           pass compiler FLAGS when building debug library
880                           [default="-g3 -O0"]
881   --enable-libstdcxx-debug
882                           build extra debug library [default=no]
883   --enable-cxx-flags=FLAGS
884                           pass compiler FLAGS when building library
885                           [default=]
886   --enable-symvers=STYLE  enables symbol versioning of the shared library
887                           [default=yes]
888   --enable-version-specific-runtime-libs
889                           Specify that runtime libraries should be installed
890                           in a compiler-specific directory
891
892 Optional Packages:
893   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
894   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
895   --with-target-subdir=SUBDIR
896                           configuring in a subdirectory
897   --with-cross-host=HOST  configuring with a cross compiler
898   --with-newlib           assume newlib as a system C library
899   --with-gnu-ld           assume the C compiler uses GNU ld default=no
900   --with-pic              try to use only PIC/non-PIC objects default=use both
901   --with-gxx-include-dir=DIR
902                           installation directory for include files
903
904 Some influential environment variables:
905   CC          C compiler command
906   CFLAGS      C compiler flags
907   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
908               nonstandard directory <lib dir>
909   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
910               headers in a nonstandard directory <include dir>
911   CXX         C++ compiler command
912   CXXFLAGS    C++ compiler flags
913   CXXCPP      C++ preprocessor
914   CPP         C preprocessor
915
916 Use these variables to override the choices made by `configure' or to help
917 it to find libraries and programs with nonstandard names/locations.
918
919 _ACEOF
920 fi
921
922 if test "$ac_init_help" = "recursive"; then
923   # If there are subdirs, report their specific --help.
924   ac_popdir=`pwd`
925   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
926     test -d $ac_dir || continue
927     ac_builddir=.
928
929 if test "$ac_dir" != .; then
930   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
931   # A "../" for each directory in $ac_dir_suffix.
932   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 else
934   ac_dir_suffix= ac_top_builddir=
935 fi
936
937 case $srcdir in
938   .)  # No --srcdir option.  We are building in place.
939     ac_srcdir=.
940     if test -z "$ac_top_builddir"; then
941        ac_top_srcdir=.
942     else
943        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944     fi ;;
945   [\\/]* | ?:[\\/]* )  # Absolute path.
946     ac_srcdir=$srcdir$ac_dir_suffix;
947     ac_top_srcdir=$srcdir ;;
948   *) # Relative path.
949     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
950     ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 esac
952 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
953 # absolute.
954 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
955 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
956 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
957 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
958
959     cd $ac_dir
960     # Check for guested configure; otherwise get Cygnus style configure.
961     if test -f $ac_srcdir/configure.gnu; then
962       echo
963       $SHELL $ac_srcdir/configure.gnu  --help=recursive
964     elif test -f $ac_srcdir/configure; then
965       echo
966       $SHELL $ac_srcdir/configure  --help=recursive
967     elif test -f $ac_srcdir/configure.ac ||
968            test -f $ac_srcdir/configure.in; then
969       echo
970       $ac_configure --help
971     else
972       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
973     fi
974     cd "$ac_popdir"
975   done
976 fi
977
978 test -n "$ac_init_help" && exit 0
979 if $ac_init_version; then
980   cat <<\_ACEOF
981 package-unused configure version-unused
982 generated by GNU Autoconf 2.57
983
984 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
985 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989   exit 0
990 fi
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
995
996 It was created by package-unused $as_me version-unused, which was
997 generated by GNU Autoconf 2.57.  Invocation command line was
998
999   $ $0 $@
1000
1001 _ACEOF
1002 {
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1007
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1016
1017 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1018 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1021 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1022 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1023 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1024
1025 _ASUNAME
1026
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1029 do
1030   IFS=$as_save_IFS
1031   test -z "$as_dir" && as_dir=.
1032   echo "PATH: $as_dir"
1033 done
1034
1035 } >&5
1036
1037 cat >&5 <<_ACEOF
1038
1039
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1043
1044 _ACEOF
1045
1046
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1058 do
1059   for ac_arg
1060   do
1061     case $ac_arg in
1062     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064     | -silent | --silent | --silen | --sile | --sil)
1065       continue ;;
1066     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068     esac
1069     case $ac_pass in
1070     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071     2)
1072       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073       if test $ac_must_keep_next = true; then
1074         ac_must_keep_next=false # Got value, back to normal.
1075       else
1076         case $ac_arg in
1077           *=* | --config-cache | -C | -disable-* | --disable-* \
1078           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080           | -with-* | --with-* | -without-* | --without-* | --x)
1081             case "$ac_configure_args0 " in
1082               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083             esac
1084             ;;
1085           -* ) ac_must_keep_next=true ;;
1086         esac
1087       fi
1088       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089       # Get rid of the leading space.
1090       ac_sep=" "
1091       ;;
1092     esac
1093   done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log.  We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104   # Save into config.log some information that might help in debugging.
1105   {
1106     echo
1107
1108     cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113     echo
1114     # The following way of writing the cache mishandles newlines in values,
1115 {
1116   (set) 2>&1 |
1117     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118     *ac_space=\ *)
1119       sed -n \
1120         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122       ;;
1123     *)
1124       sed -n \
1125         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126       ;;
1127     esac;
1128 }
1129     echo
1130
1131     cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136     echo
1137     for ac_var in $ac_subst_vars
1138     do
1139       eval ac_val=$`echo $ac_var`
1140       echo "$ac_var='"'"'$ac_val'"'"'"
1141     done | sort
1142     echo
1143
1144     if test -n "$ac_subst_files"; then
1145       cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150       echo
1151       for ac_var in $ac_subst_files
1152       do
1153         eval ac_val=$`echo $ac_var`
1154         echo "$ac_var='"'"'$ac_val'"'"'"
1155       done | sort
1156       echo
1157     fi
1158
1159     if test -s confdefs.h; then
1160       cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165       echo
1166       sed "/^$/d" confdefs.h | sort
1167       echo
1168     fi
1169     test "$ac_signal" != 0 &&
1170       echo "$as_me: caught signal $ac_signal"
1171     echo "$as_me: exit $exit_status"
1172   } >&5
1173   rm -f core *.core &&
1174   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175     exit $exit_status
1176      ' 0
1177 for ac_signal in 1 2 13 15; do
1178   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1181
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1186
1187 # Predefined preprocessor variables.
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1212
1213
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217   if test "x$prefix" != xNONE; then
1218     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219   else
1220     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221   fi
1222 fi
1223 for ac_site_file in $CONFIG_SITE; do
1224   if test -r "$ac_site_file"; then
1225     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227     sed 's/^/| /' "$ac_site_file" >&5
1228     . "$ac_site_file"
1229   fi
1230 done
1231
1232 if test -r "$cache_file"; then
1233   # Some versions of bash will fail to source /dev/null (special
1234   # files actually), so we avoid doing that.
1235   if test -f "$cache_file"; then
1236     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238     case $cache_file in
1239       [\\/]* | ?:[\\/]* ) . $cache_file;;
1240       *)                      . ./$cache_file;;
1241     esac
1242   fi
1243 else
1244   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246   >$cache_file
1247 fi
1248
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255   eval ac_new_set=\$ac_env_${ac_var}_set
1256   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257   eval ac_new_val="\$ac_env_${ac_var}_value"
1258   case $ac_old_set,$ac_new_set in
1259     set,)
1260       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262       ac_cache_corrupted=: ;;
1263     ,set)
1264       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266       ac_cache_corrupted=: ;;
1267     ,);;
1268     *)
1269       if test "x$ac_old_val" != "x$ac_new_val"; then
1270         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1273 echo "$as_me:   former value:  $ac_old_val" >&2;}
1274         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1275 echo "$as_me:   current value: $ac_new_val" >&2;}
1276         ac_cache_corrupted=:
1277       fi;;
1278   esac
1279   # Pass precious variables to config.status.
1280   if test "$ac_new_set" = set; then
1281     case $ac_new_val in
1282     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284     *) ac_arg=$ac_var=$ac_new_val ;;
1285     esac
1286     case " $ac_configure_args " in
1287       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1288       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289     esac
1290   fi
1291 done
1292 if $ac_cache_corrupted; then
1293   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297    { (exit 1); exit 1; }; }
1298 fi
1299
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333           ac_config_headers="$ac_config_headers config.h"
1334
1335
1336 # This works around the fact that libtool configuration may change LD
1337 # for this particular configuration, but some shells, instead of
1338 # keeping the changes in LD private, export them just because LD is
1339 # exported.  Only used at the end of this file.
1340 ### am handles this now?  ORIGINAL_LD_FOR_MULTILIBS=$LD
1341
1342 # For libtool versioning info, format is CURRENT:REVISION:AGE
1343 libtool_VERSION=6:0:0
1344
1345
1346 # Find the rest of the source tree framework.
1347
1348   # Sets up multi_basedir, which is srcdir/.. plus the usual
1349   # "multi_source_toprel_bottom_adjust" lunacy as needed.
1350   # Default to --enable-multilib
1351 # Check whether --enable-multilib or --disable-multilib was given.
1352 if test "${enable_multilib+set}" = set; then
1353   enableval="$enable_multilib"
1354   case "$enableval" in
1355   yes) multilib=yes ;;
1356   no)  multilib=no ;;
1357   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1358 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1359    { (exit 1); exit 1; }; } ;;
1360  esac
1361 else
1362   multilib=yes
1363 fi;
1364
1365 # We may get other options which we leave undocumented:
1366 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1367 # See config-ml.in if you want the gory details.
1368
1369 if test "$srcdir" = "."; then
1370   if test "$with_target_subdir" != "."; then
1371     multi_basedir="$srcdir/$with_multisrctop../.."
1372   else
1373     multi_basedir="$srcdir/$with_multisrctop.."
1374   fi
1375 else
1376   multi_basedir="$srcdir/.."
1377 fi
1378
1379
1380           ac_config_commands="$ac_config_commands default-1"
1381
1382
1383   # The generated code is exactly the same, except that automake's looks in
1384   # ".. $srcdir/.." and autoconf's looks in multi_basedir.  Apparently other
1385   # things are triggered on the presence of the two ...AUX_DIR[S], but I don't
1386   # know what they are or what the other differences might be (and they keep
1387   # changing anyhow).
1388   #
1389   # Looking in multi_basedir seems smarter, so actually execute that branch.
1390   if false; then
1391     # this is for automake
1392     ac_aux_dir=
1393 for ac_dir in .. $srcdir/..; do
1394   if test -f $ac_dir/install-sh; then
1395     ac_aux_dir=$ac_dir
1396     ac_install_sh="$ac_aux_dir/install-sh -c"
1397     break
1398   elif test -f $ac_dir/install.sh; then
1399     ac_aux_dir=$ac_dir
1400     ac_install_sh="$ac_aux_dir/install.sh -c"
1401     break
1402   elif test -f $ac_dir/shtool; then
1403     ac_aux_dir=$ac_dir
1404     ac_install_sh="$ac_aux_dir/shtool install -c"
1405     break
1406   fi
1407 done
1408 if test -z "$ac_aux_dir"; then
1409   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1410 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1411    { (exit 1); exit 1; }; }
1412 fi
1413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1416
1417   else
1418     # this is for autoconf
1419     ac_aux_dir=
1420 for ac_dir in ${multi_basedir}; do
1421   if test -f $ac_dir/install-sh; then
1422     ac_aux_dir=$ac_dir
1423     ac_install_sh="$ac_aux_dir/install-sh -c"
1424     break
1425   elif test -f $ac_dir/install.sh; then
1426     ac_aux_dir=$ac_dir
1427     ac_install_sh="$ac_aux_dir/install.sh -c"
1428     break
1429   elif test -f $ac_dir/shtool; then
1430     ac_aux_dir=$ac_dir
1431     ac_install_sh="$ac_aux_dir/shtool install -c"
1432     break
1433   fi
1434 done
1435 if test -z "$ac_aux_dir"; then
1436   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5
1437 echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;}
1438    { (exit 1); exit 1; }; }
1439 fi
1440 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1441 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1442 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1443
1444   fi
1445
1446
1447
1448 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1449 #
1450 # You will slowly go insane if you do not grok the following fact:  when
1451 # building v3 as part of the compiler, the top-level /target/ becomes the
1452 # library's /host/.  configure then causes --target to default to --host,
1453 # exactly like any other package using autoconf.  Therefore, 'target' and
1454 # 'host' will always be the same.  This makes sense both for native and
1455 # cross compilers, just think about it for a little while.  :-)
1456 #
1457 # Also, if v3 is being configured as part of a cross compiler, the top-level
1458 # configure script will pass the "real" host as $with_cross_host.
1459 #
1460 # Do not delete or change the following two lines.  For why, see
1461 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1462 # Make sure we can run config.sub.
1463 $ac_config_sub sun4 >/dev/null 2>&1 ||
1464   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1465 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1466    { (exit 1); exit 1; }; }
1467
1468 echo "$as_me:$LINENO: checking build system type" >&5
1469 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1470 if test "${ac_cv_build+set}" = set; then
1471   echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473   ac_cv_build_alias=$build_alias
1474 test -z "$ac_cv_build_alias" &&
1475   ac_cv_build_alias=`$ac_config_guess`
1476 test -z "$ac_cv_build_alias" &&
1477   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1478 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1479    { (exit 1); exit 1; }; }
1480 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1481   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1482 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1483    { (exit 1); exit 1; }; }
1484
1485 fi
1486 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1487 echo "${ECHO_T}$ac_cv_build" >&6
1488 build=$ac_cv_build
1489 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1490 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1491 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1492
1493
1494 echo "$as_me:$LINENO: checking host system type" >&5
1495 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1496 if test "${ac_cv_host+set}" = set; then
1497   echo $ECHO_N "(cached) $ECHO_C" >&6
1498 else
1499   ac_cv_host_alias=$host_alias
1500 test -z "$ac_cv_host_alias" &&
1501   ac_cv_host_alias=$ac_cv_build_alias
1502 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1503   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1504 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1505    { (exit 1); exit 1; }; }
1506
1507 fi
1508 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1509 echo "${ECHO_T}$ac_cv_host" >&6
1510 host=$ac_cv_host
1511 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1512 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1513 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1514
1515
1516 echo "$as_me:$LINENO: checking target system type" >&5
1517 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1518 if test "${ac_cv_target+set}" = set; then
1519   echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521   ac_cv_target_alias=$target_alias
1522 test "x$ac_cv_target_alias" = "x" &&
1523   ac_cv_target_alias=$ac_cv_host_alias
1524 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1525   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1526 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1527    { (exit 1); exit 1; }; }
1528
1529 fi
1530 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1531 echo "${ECHO_T}$ac_cv_target" >&6
1532 target=$ac_cv_target
1533 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1534 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1535 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1536
1537
1538 # The aliases save the names the user supplied, while $host etc.
1539 # will get canonicalized.
1540 test -n "$target_alias" &&
1541   test "$program_prefix$program_suffix$program_transform_name" = \
1542     NONENONEs,x,x, &&
1543   program_prefix=${target_alias}-
1544 target_alias=${target_alias-$host_alias}
1545
1546 # Handy for debugging:
1547 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1548
1549 if test "$build" != "$host"; then
1550   # We are being configured with some form of cross compiler.
1551   GLIBCXX_IS_NATIVE=false
1552   # GCC_NO_EXECUTABLES
1553 else
1554   GLIBCXX_IS_NATIVE=true
1555 fi
1556
1557 # Sets up automake.  Must come after AC_CANONICAL_SYSTEM.  Each of the
1558 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1559 #  1.x:  minimum required version
1560 #  no-define:  PACKAGE and VERSION will not be #define'd in config.h (a bunch
1561 #              of other PACKAGE_* variables will, however, and there's nothing
1562 #              we can do about that; they come from AC_INIT).
1563 #  foreign:  we don't follow the normal rules for GNU packages (no COPYING
1564 #            file in the top srcdir, etc, etc), so stop complaining.
1565 #  no-dependencies:  turns off auto dependency generation (just for now)
1566 #  -Wall:  turns on all automake warnings
1567 am__api_version="1.7"
1568 # Find a good install program.  We prefer a C program (faster),
1569 # so one script is as good as another.  But avoid the broken or
1570 # incompatible versions:
1571 # SysV /etc/install, /usr/sbin/install
1572 # SunOS /usr/etc/install
1573 # IRIX /sbin/install
1574 # AIX /bin/install
1575 # AmigaOS /C/install, which installs bootblocks on floppy discs
1576 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1577 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1578 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1579 # ./install, which can be erroneously created by make from ./install.sh.
1580 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1581 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1582 if test -z "$INSTALL"; then
1583 if test "${ac_cv_path_install+set}" = set; then
1584   echo $ECHO_N "(cached) $ECHO_C" >&6
1585 else
1586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589   IFS=$as_save_IFS
1590   test -z "$as_dir" && as_dir=.
1591   # Account for people who put trailing slashes in PATH elements.
1592 case $as_dir/ in
1593   ./ | .// | /cC/* | \
1594   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1595   /usr/ucb/* ) ;;
1596   *)
1597     # OSF1 and SCO ODT 3.0 have their own names for install.
1598     # Don't use installbsd from OSF since it installs stuff as root
1599     # by default.
1600     for ac_prog in ginstall scoinst install; do
1601       for ac_exec_ext in '' $ac_executable_extensions; do
1602         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1603           if test $ac_prog = install &&
1604             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1605             # AIX install.  It has an incompatible calling convention.
1606             :
1607           elif test $ac_prog = install &&
1608             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1609             # program-specific install script used by HP pwplus--don't use.
1610             :
1611           else
1612             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1613             break 3
1614           fi
1615         fi
1616       done
1617     done
1618     ;;
1619 esac
1620 done
1621
1622
1623 fi
1624   if test "${ac_cv_path_install+set}" = set; then
1625     INSTALL=$ac_cv_path_install
1626   else
1627     # As a last resort, use the slow shell script.  We don't cache a
1628     # path for INSTALL within a source directory, because that will
1629     # break other packages using the cache if that directory is
1630     # removed, or if the path is relative.
1631     INSTALL=$ac_install_sh
1632   fi
1633 fi
1634 echo "$as_me:$LINENO: result: $INSTALL" >&5
1635 echo "${ECHO_T}$INSTALL" >&6
1636
1637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1638 # It thinks the first close brace ends the variable substitution.
1639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1640
1641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1642
1643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1644
1645 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1646 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1647 # Just in case
1648 sleep 1
1649 echo timestamp > conftest.file
1650 # Do `set' in a subshell so we don't clobber the current shell's
1651 # arguments.  Must try -L first in case configure is actually a
1652 # symlink; some systems play weird games with the mod time of symlinks
1653 # (eg FreeBSD returns the mod time of the symlink's containing
1654 # directory).
1655 if (
1656    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1657    if test "$*" = "X"; then
1658       # -L didn't work.
1659       set X `ls -t $srcdir/configure conftest.file`
1660    fi
1661    rm -f conftest.file
1662    if test "$*" != "X $srcdir/configure conftest.file" \
1663       && test "$*" != "X conftest.file $srcdir/configure"; then
1664
1665       # If neither matched, then we have a broken ls.  This can happen
1666       # if, for instance, CONFIG_SHELL is bash and it inherits a
1667       # broken ls alias from the environment.  This has actually
1668       # happened.  Such a system could not be considered "sane".
1669       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1670 alias in your environment" >&5
1671 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1672 alias in your environment" >&2;}
1673    { (exit 1); exit 1; }; }
1674    fi
1675
1676    test "$2" = conftest.file
1677    )
1678 then
1679    # Ok.
1680    :
1681 else
1682    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1683 Check your system clock" >&5
1684 echo "$as_me: error: newly created file is older than distributed files!
1685 Check your system clock" >&2;}
1686    { (exit 1); exit 1; }; }
1687 fi
1688 echo "$as_me:$LINENO: result: yes" >&5
1689 echo "${ECHO_T}yes" >&6
1690 test "$program_prefix" != NONE &&
1691   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1692 # Use a double $ so make ignores it.
1693 test "$program_suffix" != NONE &&
1694   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1695 # Double any \ or $.  echo might interpret backslashes.
1696 # By default was `s,x,x', remove it if useless.
1697 cat <<\_ACEOF >conftest.sed
1698 s/[\\$]/&&/g;s/;s,x,x,$//
1699 _ACEOF
1700 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1701 rm conftest.sed
1702
1703
1704 # expand $ac_aux_dir to an absolute path
1705 am_aux_dir=`cd $ac_aux_dir && pwd`
1706
1707 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1708 # Use eval to expand $SHELL
1709 if eval "$MISSING --run true"; then
1710   am_missing_run="$MISSING --run "
1711 else
1712   am_missing_run=
1713   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1714 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1715 fi
1716
1717 for ac_prog in gawk mawk nawk awk
1718 do
1719   # Extract the first word of "$ac_prog", so it can be a program name with args.
1720 set dummy $ac_prog; ac_word=$2
1721 echo "$as_me:$LINENO: checking for $ac_word" >&5
1722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1723 if test "${ac_cv_prog_AWK+set}" = set; then
1724   echo $ECHO_N "(cached) $ECHO_C" >&6
1725 else
1726   if test -n "$AWK"; then
1727   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1728 else
1729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 for as_dir in $PATH
1731 do
1732   IFS=$as_save_IFS
1733   test -z "$as_dir" && as_dir=.
1734   for ac_exec_ext in '' $ac_executable_extensions; do
1735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1736     ac_cv_prog_AWK="$ac_prog"
1737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1738     break 2
1739   fi
1740 done
1741 done
1742
1743 fi
1744 fi
1745 AWK=$ac_cv_prog_AWK
1746 if test -n "$AWK"; then
1747   echo "$as_me:$LINENO: result: $AWK" >&5
1748 echo "${ECHO_T}$AWK" >&6
1749 else
1750   echo "$as_me:$LINENO: result: no" >&5
1751 echo "${ECHO_T}no" >&6
1752 fi
1753
1754   test -n "$AWK" && break
1755 done
1756
1757 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1758 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1759 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1760 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1761   echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763   cat >conftest.make <<\_ACEOF
1764 all:
1765         @echo 'ac_maketemp="$(MAKE)"'
1766 _ACEOF
1767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1768 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1769 if test -n "$ac_maketemp"; then
1770   eval ac_cv_prog_make_${ac_make}_set=yes
1771 else
1772   eval ac_cv_prog_make_${ac_make}_set=no
1773 fi
1774 rm -f conftest.make
1775 fi
1776 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1777   echo "$as_me:$LINENO: result: yes" >&5
1778 echo "${ECHO_T}yes" >&6
1779   SET_MAKE=
1780 else
1781   echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1783   SET_MAKE="MAKE=${MAKE-make}"
1784 fi
1785
1786 rm -rf .tst 2>/dev/null
1787 mkdir .tst 2>/dev/null
1788 if test -d .tst; then
1789   am__leading_dot=.
1790 else
1791   am__leading_dot=_
1792 fi
1793 rmdir .tst 2>/dev/null
1794
1795  # test to see if srcdir already configured
1796 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1797    test -f $srcdir/config.status; then
1798   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1799 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1800    { (exit 1); exit 1; }; }
1801 fi
1802
1803 # test whether we have cygpath
1804 if test -z "$CYGPATH_W"; then
1805   if (cygpath --version) >/dev/null 2>/dev/null; then
1806     CYGPATH_W='cygpath -w'
1807   else
1808     CYGPATH_W=echo
1809   fi
1810 fi
1811
1812
1813 # Define the identity of the package.
1814  PACKAGE='libstdc++'
1815  VERSION='version-unused'
1816
1817
1818 # Some tools Automake needs.
1819
1820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1821
1822
1823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1824
1825
1826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1827
1828
1829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1830
1831
1832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1833
1834
1835 AMTAR=${AMTAR-"${am_missing_run}tar"}
1836
1837 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1838
1839 # Installed binaries are usually stripped using `strip' when the user
1840 # run `make install-strip'.  However `strip' might not be the right
1841 # tool to use in cross-compilation environments, therefore Automake
1842 # will honor the `STRIP' environment variable to overrule this program.
1843 if test "$cross_compiling" != no; then
1844   if test -n "$ac_tool_prefix"; then
1845   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1846 set dummy ${ac_tool_prefix}strip; ac_word=$2
1847 echo "$as_me:$LINENO: checking for $ac_word" >&5
1848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849 if test "${ac_cv_prog_STRIP+set}" = set; then
1850   echo $ECHO_N "(cached) $ECHO_C" >&6
1851 else
1852   if test -n "$STRIP"; then
1853   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1854 else
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858   IFS=$as_save_IFS
1859   test -z "$as_dir" && as_dir=.
1860   for ac_exec_ext in '' $ac_executable_extensions; do
1861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864     break 2
1865   fi
1866 done
1867 done
1868
1869 fi
1870 fi
1871 STRIP=$ac_cv_prog_STRIP
1872 if test -n "$STRIP"; then
1873   echo "$as_me:$LINENO: result: $STRIP" >&5
1874 echo "${ECHO_T}$STRIP" >&6
1875 else
1876   echo "$as_me:$LINENO: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1878 fi
1879
1880 fi
1881 if test -z "$ac_cv_prog_STRIP"; then
1882   ac_ct_STRIP=$STRIP
1883   # Extract the first word of "strip", so it can be a program name with args.
1884 set dummy strip; ac_word=$2
1885 echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1888   echo $ECHO_N "(cached) $ECHO_C" >&6
1889 else
1890   if test -n "$ac_ct_STRIP"; then
1891   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1892 else
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1894 for as_dir in $PATH
1895 do
1896   IFS=$as_save_IFS
1897   test -z "$as_dir" && as_dir=.
1898   for ac_exec_ext in '' $ac_executable_extensions; do
1899   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900     ac_cv_prog_ac_ct_STRIP="strip"
1901     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902     break 2
1903   fi
1904 done
1905 done
1906
1907   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1908 fi
1909 fi
1910 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1911 if test -n "$ac_ct_STRIP"; then
1912   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1913 echo "${ECHO_T}$ac_ct_STRIP" >&6
1914 else
1915   echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6
1917 fi
1918
1919   STRIP=$ac_ct_STRIP
1920 else
1921   STRIP="$ac_cv_prog_STRIP"
1922 fi
1923
1924 fi
1925 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1926
1927 # We need awk for the "check" target.  The system "awk" is bad on
1928 # some platforms.
1929
1930
1931
1932
1933 # Runs configure.host, finds CC, CXX, and assorted other critical bits.  Sets
1934 # up critical shell variables.
1935
1936   # Keep these sync'd with the list in Makefile.am.  The first provides an
1937   # expandable list at autoconf time; the second provides an expandable list
1938   # (i.e., shell variable) at configure time.
1939
1940   SUBDIRS='include libmath libsupc++ src po testsuite'
1941
1942   # These need to be absolute paths, yet at the same time need to
1943   # canonicalize only relative paths, because then amd will not unmount
1944   # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
1945   glibcxx_builddir=`${PWDCMD-pwd}`
1946   case $srcdir in
1947     \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
1948     *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
1949   esac
1950   toplevel_srcdir=${glibcxx_srcdir}/..
1951
1952
1953
1954
1955   # We use these options to decide which functions to include.  They are
1956   # set from the top level.
1957
1958 # Check whether --with-target-subdir or --without-target-subdir was given.
1959 if test "${with_target_subdir+set}" = set; then
1960   withval="$with_target_subdir"
1961
1962 fi;
1963
1964
1965 # Check whether --with-cross-host or --without-cross-host was given.
1966 if test "${with_cross_host+set}" = set; then
1967   withval="$with_cross_host"
1968
1969 fi;
1970
1971
1972 # Check whether --with-newlib or --without-newlib was given.
1973 if test "${with_newlib+set}" = set; then
1974   withval="$with_newlib"
1975
1976 fi;
1977
1978   # We're almost certainly being configured before anything else which uses
1979   # C++, so all of our AC_PROG_* discoveries will be cached.  It's vital that
1980   # we not cache the value of CXX that we "discover" here, because it's set
1981   # to something unique for us and libjava.  Other target libraries need to
1982   # find CXX for themselves.  We yank the rug out from under the normal AC_*
1983   # process by sneakily renaming the cache variable.  This also lets us debug
1984   # the value of "our" CXX in postmortems.
1985   #
1986   # We must also force CXX to /not/ be a precious variable, otherwise the
1987   # wrong (non-multilib-adjusted) value will be used in multilibs.  This
1988   # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS.  And as a side
1989   # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
1990   # that ourselves.  Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
1991   #
1992   # -fno-builtin must be present here so that a non-conflicting form of
1993   # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
1994
1995
1996
1997
1998   save_CXXFLAGS="$CXXFLAGS"
1999   CXXFLAGS="$CXXFLAGS -fno-builtin"
2000   ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005 if test -n "$ac_tool_prefix"; then
2006   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_CC+set}" = set; then
2011   echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013   if test -n "$CC"; then
2014   ac_cv_prog_CC="$CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021   for ac_exec_ext in '' $ac_executable_extensions; do
2022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025     break 2
2026   fi
2027 done
2028 done
2029
2030 fi
2031 fi
2032 CC=$ac_cv_prog_CC
2033 if test -n "$CC"; then
2034   echo "$as_me:$LINENO: result: $CC" >&5
2035 echo "${ECHO_T}$CC" >&6
2036 else
2037   echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2039 fi
2040
2041 fi
2042 if test -z "$ac_cv_prog_CC"; then
2043   ac_ct_CC=$CC
2044   # Extract the first word of "gcc", so it can be a program name with args.
2045 set dummy gcc; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   if test -n "$ac_ct_CC"; then
2052   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057   IFS=$as_save_IFS
2058   test -z "$as_dir" && as_dir=.
2059   for ac_exec_ext in '' $ac_executable_extensions; do
2060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061     ac_cv_prog_ac_ct_CC="gcc"
2062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063     break 2
2064   fi
2065 done
2066 done
2067
2068 fi
2069 fi
2070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2071 if test -n "$ac_ct_CC"; then
2072   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073 echo "${ECHO_T}$ac_ct_CC" >&6
2074 else
2075   echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6
2077 fi
2078
2079   CC=$ac_ct_CC
2080 else
2081   CC="$ac_cv_prog_CC"
2082 fi
2083
2084 if test -z "$CC"; then
2085   if test -n "$ac_tool_prefix"; then
2086   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2087 set dummy ${ac_tool_prefix}cc; ac_word=$2
2088 echo "$as_me:$LINENO: checking for $ac_word" >&5
2089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090 if test "${ac_cv_prog_CC+set}" = set; then
2091   echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093   if test -n "$CC"; then
2094   ac_cv_prog_CC="$CC" # Let the user override the test.
2095 else
2096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097 for as_dir in $PATH
2098 do
2099   IFS=$as_save_IFS
2100   test -z "$as_dir" && as_dir=.
2101   for ac_exec_ext in '' $ac_executable_extensions; do
2102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103     ac_cv_prog_CC="${ac_tool_prefix}cc"
2104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105     break 2
2106   fi
2107 done
2108 done
2109
2110 fi
2111 fi
2112 CC=$ac_cv_prog_CC
2113 if test -n "$CC"; then
2114   echo "$as_me:$LINENO: result: $CC" >&5
2115 echo "${ECHO_T}$CC" >&6
2116 else
2117   echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2119 fi
2120
2121 fi
2122 if test -z "$ac_cv_prog_CC"; then
2123   ac_ct_CC=$CC
2124   # Extract the first word of "cc", so it can be a program name with args.
2125 set dummy cc; ac_word=$2
2126 echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2129   echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131   if test -n "$ac_ct_CC"; then
2132   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2133 else
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2136 do
2137   IFS=$as_save_IFS
2138   test -z "$as_dir" && as_dir=.
2139   for ac_exec_ext in '' $ac_executable_extensions; do
2140   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141     ac_cv_prog_ac_ct_CC="cc"
2142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143     break 2
2144   fi
2145 done
2146 done
2147
2148 fi
2149 fi
2150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2151 if test -n "$ac_ct_CC"; then
2152   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153 echo "${ECHO_T}$ac_ct_CC" >&6
2154 else
2155   echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2157 fi
2158
2159   CC=$ac_ct_CC
2160 else
2161   CC="$ac_cv_prog_CC"
2162 fi
2163
2164 fi
2165 if test -z "$CC"; then
2166   # Extract the first word of "cc", so it can be a program name with args.
2167 set dummy cc; ac_word=$2
2168 echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   if test -n "$CC"; then
2174   ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176   ac_prog_rejected=no
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   for ac_exec_ext in '' $ac_executable_extensions; do
2183   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2184     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185        ac_prog_rejected=yes
2186        continue
2187      fi
2188     ac_cv_prog_CC="cc"
2189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190     break 2
2191   fi
2192 done
2193 done
2194
2195 if test $ac_prog_rejected = yes; then
2196   # We found a bogon in the path, so make sure we never use it.
2197   set dummy $ac_cv_prog_CC
2198   shift
2199   if test $# != 0; then
2200     # We chose a different compiler from the bogus one.
2201     # However, it has the same basename, so the bogon will be chosen
2202     # first if we set CC to just the basename; use the full file name.
2203     shift
2204     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2205   fi
2206 fi
2207 fi
2208 fi
2209 CC=$ac_cv_prog_CC
2210 if test -n "$CC"; then
2211   echo "$as_me:$LINENO: result: $CC" >&5
2212 echo "${ECHO_T}$CC" >&6
2213 else
2214   echo "$as_me:$LINENO: result: no" >&5
2215 echo "${ECHO_T}no" >&6
2216 fi
2217
2218 fi
2219 if test -z "$CC"; then
2220   if test -n "$ac_tool_prefix"; then
2221   for ac_prog in cl
2222   do
2223     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2225 echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2227 if test "${ac_cv_prog_CC+set}" = set; then
2228   echo $ECHO_N "(cached) $ECHO_C" >&6
2229 else
2230   if test -n "$CC"; then
2231   ac_cv_prog_CC="$CC" # Let the user override the test.
2232 else
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH
2235 do
2236   IFS=$as_save_IFS
2237   test -z "$as_dir" && as_dir=.
2238   for ac_exec_ext in '' $ac_executable_extensions; do
2239   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2240     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2242     break 2
2243   fi
2244 done
2245 done
2246
2247 fi
2248 fi
2249 CC=$ac_cv_prog_CC
2250 if test -n "$CC"; then
2251   echo "$as_me:$LINENO: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6
2253 else
2254   echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6
2256 fi
2257
2258     test -n "$CC" && break
2259   done
2260 fi
2261 if test -z "$CC"; then
2262   ac_ct_CC=$CC
2263   for ac_prog in cl
2264 do
2265   # Extract the first word of "$ac_prog", so it can be a program name with args.
2266 set dummy $ac_prog; ac_word=$2
2267 echo "$as_me:$LINENO: checking for $ac_word" >&5
2268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2269 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2270   echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272   if test -n "$ac_ct_CC"; then
2273   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2274 else
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278   IFS=$as_save_IFS
2279   test -z "$as_dir" && as_dir=.
2280   for ac_exec_ext in '' $ac_executable_extensions; do
2281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2282     ac_cv_prog_ac_ct_CC="$ac_prog"
2283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2284     break 2
2285   fi
2286 done
2287 done
2288
2289 fi
2290 fi
2291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2292 if test -n "$ac_ct_CC"; then
2293   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2294 echo "${ECHO_T}$ac_ct_CC" >&6
2295 else
2296   echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6
2298 fi
2299
2300   test -n "$ac_ct_CC" && break
2301 done
2302
2303   CC=$ac_ct_CC
2304 fi
2305
2306 fi
2307
2308
2309 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: no acceptable C compiler found in \$PATH
2312 See \`config.log' for more details." >&2;}
2313    { (exit 1); exit 1; }; }
2314
2315 # Provide some information about the compiler.
2316 echo "$as_me:$LINENO:" \
2317      "checking for C compiler version" >&5
2318 ac_compiler=`set X $ac_compile; echo $2`
2319 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2320   (eval $ac_compiler --version </dev/null >&5) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }
2324 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2325   (eval $ac_compiler -v </dev/null >&5) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }
2329 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2330   (eval $ac_compiler -V </dev/null >&5) 2>&5
2331   ac_status=$?
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); }
2334
2335 cat >conftest.$ac_ext <<_ACEOF
2336 #line $LINENO "configure"
2337 /* confdefs.h.  */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h.  */
2342
2343 int
2344 main ()
2345 {
2346
2347   ;
2348   return 0;
2349 }
2350 _ACEOF
2351 ac_clean_files_save=$ac_clean_files
2352 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2353 # Try to create an executable without -o first, disregard a.out.
2354 # It will help us diagnose broken compilers, and finding out an intuition
2355 # of exeext.
2356 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2357 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2358 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2359 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2360   (eval $ac_link_default) 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; then
2364   # Find the output, starting from the most likely.  This scheme is
2365 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2366 # resort.
2367
2368 # Be careful to initialize this variable, since it used to be cached.
2369 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2370 ac_cv_exeext=
2371 # b.out is created by i960 compilers.
2372 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2373 do
2374   test -f "$ac_file" || continue
2375   case $ac_file in
2376     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2377         ;;
2378     conftest.$ac_ext )
2379         # This is the source file.
2380         ;;
2381     [ab].out )
2382         # We found the default executable, but exeext='' is most
2383         # certainly right.
2384         break;;
2385     *.* )
2386         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2387         # FIXME: I believe we export ac_cv_exeext for Libtool,
2388         # but it would be cool to find out if it's true.  Does anybody
2389         # maintain Libtool? --akim.
2390         export ac_cv_exeext
2391         break;;
2392     * )
2393         break;;
2394   esac
2395 done
2396 else
2397   echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2399
2400 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2401 See \`config.log' for more details." >&5
2402 echo "$as_me: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&2;}
2404    { (exit 77); exit 77; }; }
2405 fi
2406
2407 ac_exeext=$ac_cv_exeext
2408 echo "$as_me:$LINENO: result: $ac_file" >&5
2409 echo "${ECHO_T}$ac_file" >&6
2410
2411 # Check the compiler produces executables we can run.  If not, either
2412 # the compiler is broken, or we cross compile.
2413 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2414 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2415 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2416 # If not cross compiling, check that we can run a simple program.
2417 if test "$cross_compiling" != yes; then
2418   if { ac_try='./$ac_file'
2419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420   (eval $ac_try) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; }; then
2424     cross_compiling=no
2425   else
2426     if test "$cross_compiling" = maybe; then
2427         cross_compiling=yes
2428     else
2429         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2430 If you meant to cross compile, use \`--host'.
2431 See \`config.log' for more details." >&5
2432 echo "$as_me: error: cannot run C compiled programs.
2433 If you meant to cross compile, use \`--host'.
2434 See \`config.log' for more details." >&2;}
2435    { (exit 1); exit 1; }; }
2436     fi
2437   fi
2438 fi
2439 echo "$as_me:$LINENO: result: yes" >&5
2440 echo "${ECHO_T}yes" >&6
2441
2442 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2443 ac_clean_files=$ac_clean_files_save
2444 # Check the compiler produces executables we can run.  If not, either
2445 # the compiler is broken, or we cross compile.
2446 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2447 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2448 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2449 echo "${ECHO_T}$cross_compiling" >&6
2450
2451 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2452 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2454   (eval $ac_link) 2>&5
2455   ac_status=$?
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); }; then
2458   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2459 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2460 # work properly (i.e., refer to `conftest.exe'), while it won't with
2461 # `rm'.
2462 for ac_file in conftest.exe conftest conftest.*; do
2463   test -f "$ac_file" || continue
2464   case $ac_file in
2465     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2466     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2467           export ac_cv_exeext
2468           break;;
2469     * ) break;;
2470   esac
2471 done
2472 else
2473   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2474 See \`config.log' for more details." >&5
2475 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2476 See \`config.log' for more details." >&2;}
2477    { (exit 1); exit 1; }; }
2478 fi
2479
2480 rm -f conftest$ac_cv_exeext
2481 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2482 echo "${ECHO_T}$ac_cv_exeext" >&6
2483
2484 rm -f conftest.$ac_ext
2485 EXEEXT=$ac_cv_exeext
2486 ac_exeext=$EXEEXT
2487 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2488 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2489 if test "${ac_cv_objext+set}" = set; then
2490   echo $ECHO_N "(cached) $ECHO_C" >&6
2491 else
2492   cat >conftest.$ac_ext <<_ACEOF
2493 #line $LINENO "configure"
2494 /* confdefs.h.  */
2495 _ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h.  */
2499
2500 int
2501 main ()
2502 {
2503
2504   ;
2505   return 0;
2506 }
2507 _ACEOF
2508 rm -f conftest.o conftest.obj
2509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2510   (eval $ac_compile) 2>&5
2511   ac_status=$?
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); }; then
2514   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2515   case $ac_file in
2516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2517     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2518        break;;
2519   esac
2520 done
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&2;}
2529    { (exit 1); exit 1; }; }
2530 fi
2531
2532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2533 fi
2534 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535 echo "${ECHO_T}$ac_cv_objext" >&6
2536 OBJEXT=$ac_cv_objext
2537 ac_objext=$OBJEXT
2538 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2540 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   cat >conftest.$ac_ext <<_ACEOF
2544 #line $LINENO "configure"
2545 /* confdefs.h.  */
2546 _ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h.  */
2550
2551 int
2552 main ()
2553 {
2554 #ifndef __GNUC__
2555        choke me
2556 #endif
2557
2558   ;
2559   return 0;
2560 }
2561 _ACEOF
2562 rm -f conftest.$ac_objext
2563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2564   (eval $ac_compile) 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); } &&
2568          { ac_try='test -s conftest.$ac_objext'
2569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570   (eval $ac_try) 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }; }; then
2574   ac_compiler_gnu=yes
2575 else
2576   echo "$as_me: failed program was:" >&5
2577 sed 's/^/| /' conftest.$ac_ext >&5
2578
2579 ac_compiler_gnu=no
2580 fi
2581 rm -f conftest.$ac_objext conftest.$ac_ext
2582 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2583
2584 fi
2585 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2586 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2587 GCC=`test $ac_compiler_gnu = yes && echo yes`
2588 ac_test_CFLAGS=${CFLAGS+set}
2589 ac_save_CFLAGS=$CFLAGS
2590 CFLAGS="-g"
2591 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2592 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2593 if test "${ac_cv_prog_cc_g+set}" = set; then
2594   echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596   cat >conftest.$ac_ext <<_ACEOF
2597 #line $LINENO "configure"
2598 /* confdefs.h.  */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h.  */
2603
2604 int
2605 main ()
2606 {
2607
2608   ;
2609   return 0;
2610 }
2611 _ACEOF
2612 rm -f conftest.$ac_objext
2613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2614   (eval $ac_compile) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); } &&
2618          { ac_try='test -s conftest.$ac_objext'
2619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620   (eval $ac_try) 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); }; }; then
2624   ac_cv_prog_cc_g=yes
2625 else
2626   echo "$as_me: failed program was:" >&5
2627 sed 's/^/| /' conftest.$ac_ext >&5
2628
2629 ac_cv_prog_cc_g=no
2630 fi
2631 rm -f conftest.$ac_objext conftest.$ac_ext
2632 fi
2633 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2634 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2635 if test "$ac_test_CFLAGS" = set; then
2636   CFLAGS=$ac_save_CFLAGS
2637 elif test $ac_cv_prog_cc_g = yes; then
2638   if test "$GCC" = yes; then
2639     CFLAGS="-g -O2"
2640   else
2641     CFLAGS="-g"
2642   fi
2643 else
2644   if test "$GCC" = yes; then
2645     CFLAGS="-O2"
2646   else
2647     CFLAGS=
2648   fi
2649 fi
2650 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2651 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2652 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2653   echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655   ac_cv_prog_cc_stdc=no
2656 ac_save_CC=$CC
2657 cat >conftest.$ac_ext <<_ACEOF
2658 #line $LINENO "configure"
2659 /* confdefs.h.  */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h.  */
2664 #include <stdarg.h>
2665 #include <stdio.h>
2666 #include <sys/types.h>
2667 #include <sys/stat.h>
2668 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2669 struct buf { int x; };
2670 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2671 static char *e (p, i)
2672      char **p;
2673      int i;
2674 {
2675   return p[i];
2676 }
2677 static char *f (char * (*g) (char **, int), char **p, ...)
2678 {
2679   char *s;
2680   va_list v;
2681   va_start (v,p);
2682   s = g (p, va_arg (v,int));
2683   va_end (v);
2684   return s;
2685 }
2686 int test (int i, double x);
2687 struct s1 {int (*f) (int a);};
2688 struct s2 {int (*f) (double a);};
2689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2690 int argc;
2691 char **argv;
2692 int
2693 main ()
2694 {
2695 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 # Don't try gcc -ansi; that turns off useful extensions and
2701 # breaks some systems' header files.
2702 # AIX                   -qlanglvl=ansi
2703 # Ultrix and OSF/1      -std1
2704 # HP-UX 10.20 and later -Ae
2705 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2706 # SVR4                  -Xc -D__EXTENSIONS__
2707 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2708 do
2709   CC="$ac_save_CC $ac_arg"
2710   rm -f conftest.$ac_objext
2711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712   (eval $ac_compile) 2>&5
2713   ac_status=$?
2714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715   (exit $ac_status); } &&
2716          { ac_try='test -s conftest.$ac_objext'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722   ac_cv_prog_cc_stdc=$ac_arg
2723 break
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728 fi
2729 rm -f conftest.$ac_objext
2730 done
2731 rm -f conftest.$ac_ext conftest.$ac_objext
2732 CC=$ac_save_CC
2733
2734 fi
2735
2736 case "x$ac_cv_prog_cc_stdc" in
2737   x|xno)
2738     echo "$as_me:$LINENO: result: none needed" >&5
2739 echo "${ECHO_T}none needed" >&6 ;;
2740   *)
2741     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2742 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2743     CC="$CC $ac_cv_prog_cc_stdc" ;;
2744 esac
2745
2746 # Some people use a C++ compiler to compile C.  Since we use `exit',
2747 # in C++ we need to declare it.  In case someone uses the same compiler
2748 # for both compiling C and C++ we need to have the C++ compiler decide
2749 # the declaration of exit, since it's the most demanding environment.
2750 cat >conftest.$ac_ext <<_ACEOF
2751 #ifndef __cplusplus
2752   choke me
2753 #endif
2754 _ACEOF
2755 rm -f conftest.$ac_objext
2756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2757   (eval $ac_compile) 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); } &&
2761          { ac_try='test -s conftest.$ac_objext'
2762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763   (eval $ac_try) 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }; }; then
2767   for ac_declaration in \
2768    '' \
2769    'extern "C" void std::exit (int) throw (); using std::exit;' \
2770    'extern "C" void std::exit (int); using std::exit;' \
2771    'extern "C" void exit (int) throw ();' \
2772    'extern "C" void exit (int);' \
2773    'void exit (int);'
2774 do
2775   cat >conftest.$ac_ext <<_ACEOF
2776 #line $LINENO "configure"
2777 /* confdefs.h.  */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h.  */
2782 $ac_declaration
2783 #include <stdlib.h>
2784 int
2785 main ()
2786 {
2787 exit (42);
2788   ;
2789   return 0;
2790 }
2791 _ACEOF
2792 rm -f conftest.$ac_objext
2793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2794   (eval $ac_compile) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); } &&
2798          { ac_try='test -s conftest.$ac_objext'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; }; then
2804   :
2805 else
2806   echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 continue
2810 fi
2811 rm -f conftest.$ac_objext conftest.$ac_ext
2812   cat >conftest.$ac_ext <<_ACEOF
2813 #line $LINENO "configure"
2814 /* confdefs.h.  */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h.  */
2819 $ac_declaration
2820 int
2821 main ()
2822 {
2823 exit (42);
2824   ;
2825   return 0;
2826 }
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830   (eval $ac_compile) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } &&
2834          { ac_try='test -s conftest.$ac_objext'
2835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836   (eval $ac_try) 2>&5
2837   ac_status=$?
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); }; }; then
2840   break
2841 else
2842   echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2844
2845 fi
2846 rm -f conftest.$ac_objext conftest.$ac_ext
2847 done
2848 rm -f conftest*
2849 if test -n "$ac_declaration"; then
2850   echo '#ifdef __cplusplus' >>confdefs.h
2851   echo $ac_declaration      >>confdefs.h
2852   echo '#endif'             >>confdefs.h
2853 fi
2854
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 fi
2860 rm -f conftest.$ac_objext conftest.$ac_ext
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866
2867   ac_ext=cc
2868 ac_cpp='$CXXCPP $CPPFLAGS'
2869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2872 if test -n "$ac_tool_prefix"; then
2873   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2874   do
2875     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   if test -n "$CXX"; then
2883   glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892     glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898
2899 fi
2900 fi
2901 CXX=$glibcxx_cv_prog_CXX
2902 if test -n "$CXX"; then
2903   echo "$as_me:$LINENO: result: $CXX" >&5
2904 echo "${ECHO_T}$CXX" >&6
2905 else
2906   echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2908 fi
2909
2910     test -n "$CXX" && break
2911   done
2912 fi
2913 if test -z "$CXX"; then
2914   ac_ct_CXX=$CXX
2915   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2916 do
2917   # Extract the first word of "$ac_prog", so it can be a program name with args.
2918 set dummy $ac_prog; ac_word=$2
2919 echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2921 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2922   echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924   if test -n "$ac_ct_CXX"; then
2925   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930   IFS=$as_save_IFS
2931   test -z "$as_dir" && as_dir=.
2932   for ac_exec_ext in '' $ac_executable_extensions; do
2933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2934     ac_cv_prog_ac_ct_CXX="$ac_prog"
2935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936     break 2
2937   fi
2938 done
2939 done
2940
2941 fi
2942 fi
2943 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2944 if test -n "$ac_ct_CXX"; then
2945   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2946 echo "${ECHO_T}$ac_ct_CXX" >&6
2947 else
2948   echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6
2950 fi
2951
2952   test -n "$ac_ct_CXX" && break
2953 done
2954 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2955
2956   CXX=$ac_ct_CXX
2957 fi
2958
2959
2960 # Provide some information about the compiler.
2961 echo "$as_me:$LINENO:" \
2962      "checking for C++ compiler version" >&5
2963 ac_compiler=`set X $ac_compile; echo $2`
2964 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2965   (eval $ac_compiler --version </dev/null >&5) 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }
2969 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2970   (eval $ac_compiler -v </dev/null >&5) 2>&5
2971   ac_status=$?
2972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973   (exit $ac_status); }
2974 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2975   (eval $ac_compiler -V </dev/null >&5) 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }
2979
2980 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2981 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2982 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2983   echo $ECHO_N "(cached) $ECHO_C" >&6
2984 else
2985   cat >conftest.$ac_ext <<_ACEOF
2986 #line $LINENO "configure"
2987 /* confdefs.h.  */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h.  */
2992
2993 int
2994 main ()
2995 {
2996 #ifndef __GNUC__
2997        choke me
2998 #endif
2999
3000   ;
3001   return 0;
3002 }
3003 _ACEOF
3004 rm -f conftest.$ac_objext
3005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3006   (eval $ac_compile) 2>&5
3007   ac_status=$?
3008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009   (exit $ac_status); } &&
3010          { ac_try='test -s conftest.$ac_objext'
3011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012   (eval $ac_try) 2>&5
3013   ac_status=$?
3014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015   (exit $ac_status); }; }; then
3016   ac_compiler_gnu=yes
3017 else
3018   echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3020
3021 ac_compiler_gnu=no
3022 fi
3023 rm -f conftest.$ac_objext conftest.$ac_ext
3024 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3025
3026 fi
3027 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3028 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3029 GXX=`test $ac_compiler_gnu = yes && echo yes`
3030 ac_test_CXXFLAGS=${CXXFLAGS+set}
3031 ac_save_CXXFLAGS=$CXXFLAGS
3032 CXXFLAGS="-g"
3033 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3034 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3035 if test "${ac_cv_prog_cxx_g+set}" = set; then
3036   echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038   cat >conftest.$ac_ext <<_ACEOF
3039 #line $LINENO "configure"
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3045
3046 int
3047 main ()
3048 {
3049
3050   ;
3051   return 0;
3052 }
3053 _ACEOF
3054 rm -f conftest.$ac_objext
3055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3056   (eval $ac_compile) 2>&5
3057   ac_status=$?
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); } &&
3060          { ac_try='test -s conftest.$ac_objext'
3061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062   (eval $ac_try) 2>&5
3063   ac_status=$?
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); }; }; then
3066   ac_cv_prog_cxx_g=yes
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 ac_cv_prog_cxx_g=no
3072 fi
3073 rm -f conftest.$ac_objext conftest.$ac_ext
3074 fi
3075 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3076 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3077 if test "$ac_test_CXXFLAGS" = set; then
3078   CXXFLAGS=$ac_save_CXXFLAGS
3079 elif test $ac_cv_prog_cxx_g = yes; then
3080   if test "$GXX" = yes; then
3081     CXXFLAGS="-g -O2"
3082   else
3083     CXXFLAGS="-g"
3084   fi
3085 else
3086   if test "$GXX" = yes; then
3087     CXXFLAGS="-O2"
3088   else
3089     CXXFLAGS=
3090   fi
3091 fi
3092 for ac_declaration in \
3093    '' \
3094    'extern "C" void std::exit (int) throw (); using std::exit;' \
3095    'extern "C" void std::exit (int); using std::exit;' \
3096    'extern "C" void exit (int) throw ();' \
3097    'extern "C" void exit (int);' \
3098    'void exit (int);'
3099 do
3100   cat >conftest.$ac_ext <<_ACEOF
3101 #line $LINENO "configure"
3102 /* confdefs.h.  */
3103 _ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h.  */
3107 $ac_declaration
3108 #include <stdlib.h>
3109 int
3110 main ()
3111 {
3112 exit (42);
3113   ;
3114   return 0;
3115 }
3116 _ACEOF
3117 rm -f conftest.$ac_objext
3118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3119   (eval $ac_compile) 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); } &&
3123          { ac_try='test -s conftest.$ac_objext'
3124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3125   (eval $ac_try) 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }; }; then
3129   :
3130 else
3131   echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134 continue
3135 fi
3136 rm -f conftest.$ac_objext conftest.$ac_ext
3137   cat >conftest.$ac_ext <<_ACEOF
3138 #line $LINENO "configure"
3139 /* confdefs.h.  */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h.  */
3144 $ac_declaration
3145 int
3146 main ()
3147 {
3148 exit (42);
3149   ;
3150   return 0;
3151 }
3152 _ACEOF
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155   (eval $ac_compile) 2>&5
3156   ac_status=$?
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); } &&
3159          { ac_try='test -s conftest.$ac_objext'
3160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161   (eval $ac_try) 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; }; then
3165   break
3166 else
3167   echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170 fi
3171 rm -f conftest.$ac_objext conftest.$ac_ext
3172 done
3173 rm -f conftest*
3174 if test -n "$ac_declaration"; then
3175   echo '#ifdef __cplusplus' >>confdefs.h
3176   echo $ac_declaration      >>confdefs.h
3177   echo '#endif'             >>confdefs.h
3178 fi
3179
3180 ac_ext=c
3181 ac_cpp='$CPP $CPPFLAGS'
3182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3185
3186   CXXFLAGS="$save_CXXFLAGS"
3187
3188
3189
3190
3191   # For directory versioning (e.g., headers) and other variables.
3192   echo "$as_me:$LINENO: checking for GCC version number" >&5
3193 echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6
3194   gcc_version=`$CXX -dumpversion`
3195   echo "$as_me:$LINENO: result: $gcc_version" >&5
3196 echo "${ECHO_T}$gcc_version" >&6
3197
3198   # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3199   # available).  Uncomment the next line to force a particular method.
3200   echo "$as_me:$LINENO: checking whether ln -s works" >&5
3201 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3202 LN_S=$as_ln_s
3203 if test "$LN_S" = "ln -s"; then
3204   echo "$as_me:$LINENO: result: yes" >&5
3205 echo "${ECHO_T}yes" >&6
3206 else
3207   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3208 echo "${ECHO_T}no, using $LN_S" >&6
3209 fi
3210
3211   #LN_S='cp -p'
3212
3213   if test -n "$ac_tool_prefix"; then
3214   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3215 set dummy ${ac_tool_prefix}as; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_prog_AS+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   if test -n "$AS"; then
3222   ac_cv_prog_AS="$AS" # Let the user override the test.
3223 else
3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227   IFS=$as_save_IFS
3228   test -z "$as_dir" && as_dir=.
3229   for ac_exec_ext in '' $ac_executable_extensions; do
3230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3231     ac_cv_prog_AS="${ac_tool_prefix}as"
3232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233     break 2
3234   fi
3235 done
3236 done
3237
3238 fi
3239 fi
3240 AS=$ac_cv_prog_AS
3241 if test -n "$AS"; then
3242   echo "$as_me:$LINENO: result: $AS" >&5
3243 echo "${ECHO_T}$AS" >&6
3244 else
3245   echo "$as_me:$LINENO: result: no" >&5
3246 echo "${ECHO_T}no" >&6
3247 fi
3248
3249 fi
3250 if test -z "$ac_cv_prog_AS"; then
3251   ac_ct_AS=$AS
3252   # Extract the first word of "as", so it can be a program name with args.
3253 set dummy as; ac_word=$2
3254 echo "$as_me:$LINENO: checking for $ac_word" >&5
3255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3256 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3257   echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259   if test -n "$ac_ct_AS"; then
3260   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3264 do
3265   IFS=$as_save_IFS
3266   test -z "$as_dir" && as_dir=.
3267   for ac_exec_ext in '' $ac_executable_extensions; do
3268   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269     ac_cv_prog_ac_ct_AS="as"
3270     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271     break 2
3272   fi
3273 done
3274 done
3275
3276 fi
3277 fi
3278 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3279 if test -n "$ac_ct_AS"; then
3280   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3281 echo "${ECHO_T}$ac_ct_AS" >&6
3282 else
3283   echo "$as_me:$LINENO: result: no" >&5
3284 echo "${ECHO_T}no" >&6
3285 fi
3286
3287   AS=$ac_ct_AS
3288 else
3289   AS="$ac_cv_prog_AS"
3290 fi
3291
3292   if test -n "$ac_tool_prefix"; then
3293   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3294 set dummy ${ac_tool_prefix}ar; ac_word=$2
3295 echo "$as_me:$LINENO: checking for $ac_word" >&5
3296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3297 if test "${ac_cv_prog_AR+set}" = set; then
3298   echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300   if test -n "$AR"; then
3301   ac_cv_prog_AR="$AR" # Let the user override the test.
3302 else
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306   IFS=$as_save_IFS
3307   test -z "$as_dir" && as_dir=.
3308   for ac_exec_ext in '' $ac_executable_extensions; do
3309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310     ac_cv_prog_AR="${ac_tool_prefix}ar"
3311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312     break 2
3313   fi
3314 done
3315 done
3316
3317 fi
3318 fi
3319 AR=$ac_cv_prog_AR
3320 if test -n "$AR"; then
3321   echo "$as_me:$LINENO: result: $AR" >&5
3322 echo "${ECHO_T}$AR" >&6
3323 else
3324   echo "$as_me:$LINENO: result: no" >&5
3325 echo "${ECHO_T}no" >&6
3326 fi
3327
3328 fi
3329 if test -z "$ac_cv_prog_AR"; then
3330   ac_ct_AR=$AR
3331   # Extract the first word of "ar", so it can be a program name with args.
3332 set dummy ar; ac_word=$2
3333 echo "$as_me:$LINENO: checking for $ac_word" >&5
3334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3335 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3336   echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338   if test -n "$ac_ct_AR"; then
3339   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344   IFS=$as_save_IFS
3345   test -z "$as_dir" && as_dir=.
3346   for ac_exec_ext in '' $ac_executable_extensions; do
3347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348     ac_cv_prog_ac_ct_AR="ar"
3349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350     break 2
3351   fi
3352 done
3353 done
3354
3355 fi
3356 fi
3357 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3358 if test -n "$ac_ct_AR"; then
3359   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3360 echo "${ECHO_T}$ac_ct_AR" >&6
3361 else
3362   echo "$as_me:$LINENO: result: no" >&5
3363 echo "${ECHO_T}no" >&6
3364 fi
3365
3366   AR=$ac_ct_AR
3367 else
3368   AR="$ac_cv_prog_AR"
3369 fi
3370
3371   if test -n "$ac_tool_prefix"; then
3372   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3373 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3374 echo "$as_me:$LINENO: checking for $ac_word" >&5
3375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3376 if test "${ac_cv_prog_RANLIB+set}" = set; then
3377   echo $ECHO_N "(cached) $ECHO_C" >&6
3378 else
3379   if test -n "$RANLIB"; then
3380   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3384 do
3385   IFS=$as_save_IFS
3386   test -z "$as_dir" && as_dir=.
3387   for ac_exec_ext in '' $ac_executable_extensions; do
3388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3391     break 2
3392   fi
3393 done
3394 done
3395
3396 fi
3397 fi
3398 RANLIB=$ac_cv_prog_RANLIB
3399 if test -n "$RANLIB"; then
3400   echo "$as_me:$LINENO: result: $RANLIB" >&5
3401 echo "${ECHO_T}$RANLIB" >&6
3402 else
3403   echo "$as_me:$LINENO: result: no" >&5
3404 echo "${ECHO_T}no" >&6
3405 fi
3406
3407 fi
3408 if test -z "$ac_cv_prog_RANLIB"; then
3409   ac_ct_RANLIB=$RANLIB
3410   # Extract the first word of "ranlib", so it can be a program name with args.
3411 set dummy ranlib; ac_word=$2
3412 echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3415   echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417   if test -n "$ac_ct_RANLIB"; then
3418   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423   IFS=$as_save_IFS
3424   test -z "$as_dir" && as_dir=.
3425   for ac_exec_ext in '' $ac_executable_extensions; do
3426   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427     ac_cv_prog_ac_ct_RANLIB="ranlib"
3428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3429     break 2
3430   fi
3431 done
3432 done
3433
3434   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3435 fi
3436 fi
3437 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3438 if test -n "$ac_ct_RANLIB"; then
3439   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3440 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3441 else
3442   echo "$as_me:$LINENO: result: no" >&5
3443 echo "${ECHO_T}no" >&6
3444 fi
3445
3446   RANLIB=$ac_ct_RANLIB
3447 else
3448   RANLIB="$ac_cv_prog_RANLIB"
3449 fi
3450
3451
3452   echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3453 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3454     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3455 if test "${enable_maintainer_mode+set}" = set; then
3456   enableval="$enable_maintainer_mode"
3457   USE_MAINTAINER_MODE=$enableval
3458 else
3459   USE_MAINTAINER_MODE=no
3460 fi;
3461   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3462 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3463
3464
3465 if test $USE_MAINTAINER_MODE = yes; then
3466   MAINTAINER_MODE_TRUE=
3467   MAINTAINER_MODE_FALSE='#'
3468 else
3469   MAINTAINER_MODE_TRUE='#'
3470   MAINTAINER_MODE_FALSE=
3471 fi
3472
3473   MAINT=$MAINTAINER_MODE_TRUE
3474
3475
3476
3477   # Set up safe default values for all subsequent AM_CONDITIONAL tests
3478   # which are themselves conditionally expanded.
3479   ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3480   ## other macros from doing the same.  This should be automated.)  -pme
3481   need_libmath=no
3482   enable_wchar_t=no
3483   #enable_libstdcxx_debug=no
3484   #enable_libstdcxx_pch=no
3485   #enable_cheaders=c
3486   #c_compatibility=no
3487   #enable_abi_check=no
3488   #enable_symvers=no
3489   #enable_hosted_libstdcxx=yes
3490
3491   # Find platform-specific directories containing configuration info.
3492   # Also possibly modify flags used elsewhere, as needed by the platform.
3493
3494   . $glibcxx_srcdir/configure.host
3495   { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3496 echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3497   { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3498 echo "$as_me: OS config directory is $os_include_dir" >&6;}
3499
3500
3501
3502 #AC_MSG_NOTICE([====== Starting libtool configuration])
3503
3504 # Check whether --enable-shared or --disable-shared was given.
3505 if test "${enable_shared+set}" = set; then
3506   enableval="$enable_shared"
3507   p=${PACKAGE-default}
3508 case $enableval in
3509 yes) enable_shared=yes ;;
3510 no) enable_shared=no ;;
3511 *)
3512   enable_shared=no
3513   # Look at the argument we got.  We use all the common list separators.
3514   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3515   for pkg in $enableval; do
3516     if test "X$pkg" = "X$p"; then
3517       enable_shared=yes
3518     fi
3519   done
3520   IFS="$ac_save_ifs"
3521   ;;
3522 esac
3523 else
3524   enable_shared=yes
3525 fi;
3526 # Check whether --enable-static or --disable-static was given.
3527 if test "${enable_static+set}" = set; then
3528   enableval="$enable_static"
3529   p=${PACKAGE-default}
3530 case $enableval in
3531 yes) enable_static=yes ;;
3532 no) enable_static=no ;;
3533 *)
3534   enable_static=no
3535   # Look at the argument we got.  We use all the common list separators.
3536   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3537   for pkg in $enableval; do
3538     if test "X$pkg" = "X$p"; then
3539       enable_static=yes
3540     fi
3541   done
3542   IFS="$ac_save_ifs"
3543   ;;
3544 esac
3545 else
3546   enable_static=yes
3547 fi;
3548 # Check whether --enable-fast-install or --disable-fast-install was given.
3549 if test "${enable_fast_install+set}" = set; then
3550   enableval="$enable_fast_install"
3551   p=${PACKAGE-default}
3552 case $enableval in
3553 yes) enable_fast_install=yes ;;
3554 no) enable_fast_install=no ;;
3555 *)
3556   enable_fast_install=no
3557   # Look at the argument we got.  We use all the common list separators.
3558   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3559   for pkg in $enableval; do
3560     if test "X$pkg" = "X$p"; then
3561       enable_fast_install=yes
3562     fi
3563   done
3564   IFS="$ac_save_ifs"
3565   ;;
3566 esac
3567 else
3568   enable_fast_install=yes
3569 fi;
3570
3571 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3572 if test "${with_gnu_ld+set}" = set; then
3573   withval="$with_gnu_ld"
3574   test "$withval" = no || with_gnu_ld=yes
3575 else
3576   with_gnu_ld=no
3577 fi;
3578 ac_prog=ld
3579 if test "$GCC" = yes; then
3580   # Check if gcc -print-prog-name=ld gives a path.
3581   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3582 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3583   case $host in
3584   *-*-mingw*)
3585     # gcc leaves a trailing carriage return which upsets mingw
3586     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3587   *)
3588     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3589   esac
3590   case $ac_prog in
3591     # Accept absolute paths.
3592     [\\/]* | [A-Za-z]:[\\/]*)
3593       re_direlt='/[^/][^/]*/\.\./'
3594       # Canonicalize the path of ld
3595       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3596       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3597         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3598       done
3599       test -z "$LD" && LD="$ac_prog"
3600       ;;
3601   "")
3602     # If it fails, then pretend we aren't using GCC.
3603     ac_prog=ld
3604     ;;
3605   *)
3606     # If it is relative, then search for the first ld in PATH.
3607     with_gnu_ld=unknown
3608     ;;
3609   esac
3610 elif test "$with_gnu_ld" = yes; then
3611   echo "$as_me:$LINENO: checking for GNU ld" >&5
3612 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3613 else
3614   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3615 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3616 fi
3617 if test "${lt_cv_path_LD+set}" = set; then
3618   echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620   if test -z "$LD"; then
3621   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3622   for ac_dir in $PATH; do
3623     test -z "$ac_dir" && ac_dir=.
3624     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3625       lt_cv_path_LD="$ac_dir/$ac_prog"
3626       # Check to see if the program is GNU ld.  I'd rather use --version,
3627       # but apparently some GNU ld's only accept -v.
3628       # Break only if it was the GNU/non-GNU ld that we prefer.
3629       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3630         test "$with_gnu_ld" != no && break
3631       else
3632         test "$with_gnu_ld" != yes && break
3633       fi
3634     fi
3635   done
3636   IFS="$ac_save_ifs"
3637 else
3638   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3639 fi
3640 fi
3641
3642 LD="$lt_cv_path_LD"
3643 if test -n "$LD"; then
3644   echo "$as_me:$LINENO: result: $LD" >&5
3645 echo "${ECHO_T}$LD" >&6
3646 else
3647   echo "$as_me:$LINENO: result: no" >&5
3648 echo "${ECHO_T}no" >&6
3649 fi
3650 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3651 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3652    { (exit 1); exit 1; }; }
3653 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3654 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3655 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3659 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3660   lt_cv_prog_gnu_ld=yes
3661 else
3662   lt_cv_prog_gnu_ld=no
3663 fi
3664 fi
3665 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3666 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3667 with_gnu_ld=$lt_cv_prog_gnu_ld
3668
3669
3670 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3671 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3672 if test "${lt_cv_ld_reload_flag+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   lt_cv_ld_reload_flag='-r'
3676 fi
3677 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3678 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3679 reload_flag=$lt_cv_ld_reload_flag
3680 test -n "$reload_flag" && reload_flag=" $reload_flag"
3681
3682 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3683 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3684 if test "${lt_cv_path_NM+set}" = set; then
3685   echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687   if test -n "$NM"; then
3688   # Let the user override the test.
3689   lt_cv_path_NM="$NM"
3690 else
3691   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3692   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3693     test -z "$ac_dir" && ac_dir=.
3694     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3695     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3696       # Check to see if the nm accepts a BSD-compat flag.
3697       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3698       #   nm: unknown option "B" ignored
3699       # Tru64's nm complains that /dev/null is an invalid object file
3700       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3701         lt_cv_path_NM="$tmp_nm -B"
3702         break
3703       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3704         lt_cv_path_NM="$tmp_nm -p"
3705         break
3706       else
3707         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3708         continue # so that we can try to find one that supports BSD flags
3709       fi
3710     fi
3711   done
3712   IFS="$ac_save_ifs"
3713   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3714 fi
3715 fi
3716
3717 NM="$lt_cv_path_NM"
3718 echo "$as_me:$LINENO: result: $NM" >&5
3719 echo "${ECHO_T}$NM" >&6
3720
3721 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3722 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3723 if test "${lt_cv_deplibs_check_method+set}" = set; then
3724   echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726   lt_cv_file_magic_cmd='$MAGIC_CMD'
3727 lt_cv_file_magic_test_file=
3728 lt_cv_deplibs_check_method='unknown'
3729 # Need to set the preceding variable on all platforms that support
3730 # interlibrary dependencies.
3731 # 'none' -- dependencies not supported.
3732 # `unknown' -- same as none, but documents that we really don't know.
3733 # 'pass_all' -- all dependencies passed with no checks.
3734 # 'test_compile' -- check by making test program.
3735 # 'file_magic [regex]' -- check by looking for files in library path
3736 # which responds to the $file_magic_cmd with a given egrep regex.
3737 # If you have `file' or equivalent on your system and you're not sure
3738 # whether `pass_all' will *always* work, you probably want this one.
3739
3740 case $host_os in
3741 aix*)
3742   lt_cv_deplibs_check_method=pass_all
3743   ;;
3744
3745 beos*)
3746   lt_cv_deplibs_check_method=pass_all
3747   ;;
3748
3749 bsdi4*)
3750   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3751   lt_cv_file_magic_cmd='/usr/bin/file -L'
3752   lt_cv_file_magic_test_file=/shlib/libc.so
3753   ;;
3754
3755 cygwin* | mingw* |pw32*)
3756   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3757   lt_cv_file_magic_cmd='$OBJDUMP -f'
3758   ;;
3759
3760 darwin* | rhapsody*)
3761   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3762   lt_cv_file_magic_cmd='/usr/bin/file -L'
3763   case "$host_os" in
3764   rhapsody* | darwin1.012)
3765     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3766     ;;
3767   *) # Darwin 1.3 on
3768     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3769     ;;
3770   esac
3771   ;;
3772
3773 freebsd* )
3774   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3775     case $host_cpu in
3776     i*86 )
3777       # Not sure whether the presence of OpenBSD here was a mistake.
3778       # Let's accept both of them until this is cleared up.
3779       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3780       lt_cv_file_magic_cmd=/usr/bin/file
3781       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3782       ;;
3783     esac
3784   else
3785     lt_cv_deplibs_check_method=pass_all
3786   fi
3787   ;;
3788
3789 gnu*)
3790   lt_cv_deplibs_check_method=pass_all
3791   ;;
3792
3793 hpux10.20*|hpux11*)
3794   case $host_cpu in
3795   hppa*)
3796     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3797     lt_cv_file_magic_cmd=/usr/bin/file
3798     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3799     ;;
3800   ia64*)
3801     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3802     lt_cv_file_magic_cmd=/usr/bin/file
3803     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3804     ;;
3805   esac
3806   ;;
3807
3808 irix5* | irix6*)
3809   case $host_os in
3810   irix5*)
3811     # this will be overridden with pass_all, but let us keep it just in case
3812     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3813     ;;
3814   *)
3815     case $LD in
3816     *-32|*"-32 ") libmagic=32-bit;;
3817     *-n32|*"-n32 ") libmagic=N32;;
3818     *-64|*"-64 ") libmagic=64-bit;;
3819     *) libmagic=never-match;;
3820     esac
3821     # this will be overridden with pass_all, but let us keep it just in case
3822     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3823     ;;
3824   esac
3825   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3826   lt_cv_deplibs_check_method=pass_all
3827   ;;
3828
3829 # This must be Linux ELF.
3830 linux-gnu*)
3831   case $host_cpu in
3832   alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3833     lt_cv_deplibs_check_method=pass_all ;;
3834   *)
3835     # glibc up to 2.1.1 does not perform some relocations on ARM
3836     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3837   esac
3838   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3839   ;;
3840
3841 netbsd*)
3842   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3843     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3844   else
3845     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3846   fi
3847   ;;
3848
3849 newsos6)
3850   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3851   lt_cv_file_magic_cmd=/usr/bin/file
3852   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3853   ;;
3854
3855 osf3* | osf4* | osf5*)
3856   # this will be overridden with pass_all, but let us keep it just in case
3857   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3858   lt_cv_file_magic_test_file=/shlib/libc.so
3859   lt_cv_deplibs_check_method=pass_all
3860   ;;
3861
3862 sco3.2v5*)
3863   lt_cv_deplibs_check_method=pass_all
3864   ;;
3865
3866 solaris*)
3867   lt_cv_deplibs_check_method=pass_all
3868   lt_cv_file_magic_test_file=/lib/libc.so
3869   ;;
3870
3871 sysv5uw[78]* | sysv4*uw2*)
3872   lt_cv_deplibs_check_method=pass_all
3873   ;;
3874
3875 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3876   case $host_vendor in
3877   ncr)
3878     lt_cv_deplibs_check_method=pass_all
3879     ;;
3880   motorola)
3881     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]'
3882     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3883     ;;
3884   esac
3885   ;;
3886 esac
3887
3888 fi
3889 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3890 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3891 file_magic_cmd=$lt_cv_file_magic_cmd
3892 deplibs_check_method=$lt_cv_deplibs_check_method
3893
3894
3895
3896
3897
3898 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3899
3900 # Only perform the check for file, if the check method requires it
3901 case $deplibs_check_method in
3902 file_magic*)
3903   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3904     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3905 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3906 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   case $MAGIC_CMD in
3910   /*)
3911   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3912   ;;
3913   ?:/*)
3914   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3915   ;;
3916   *)
3917   ac_save_MAGIC_CMD="$MAGIC_CMD"
3918   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3919   ac_dummy="/usr/bin:$PATH"
3920   for ac_dir in $ac_dummy; do
3921     test -z "$ac_dir" && ac_dir=.
3922     if test -f $ac_dir/${ac_tool_prefix}file; then
3923       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3924       if test -n "$file_magic_test_file"; then
3925         case $deplibs_check_method in
3926         "file_magic "*)
3927           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3928           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3929           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3930             egrep "$file_magic_regex" > /dev/null; then
3931             :
3932           else
3933             cat <<EOF 1>&2
3934
3935 *** Warning: the command libtool uses to detect shared libraries,
3936 *** $file_magic_cmd, produces output that libtool cannot recognize.
3937 *** The result is that libtool may fail to recognize shared libraries
3938 *** as such.  This will affect the creation of libtool libraries that
3939 *** depend on shared libraries, but programs linked with such libtool
3940 *** libraries will work regardless of this problem.  Nevertheless, you
3941 *** may want to report the problem to your system manager and/or to
3942 *** bug-libtool@gnu.org
3943
3944 EOF
3945           fi ;;
3946         esac
3947       fi
3948       break
3949     fi
3950   done
3951   IFS="$ac_save_ifs"
3952   MAGIC_CMD="$ac_save_MAGIC_CMD"
3953   ;;
3954 esac
3955 fi
3956
3957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3958 if test -n "$MAGIC_CMD"; then
3959   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3960 echo "${ECHO_T}$MAGIC_CMD" >&6
3961 else
3962   echo "$as_me:$LINENO: result: no" >&5
3963 echo "${ECHO_T}no" >&6
3964 fi
3965
3966 if test -z "$lt_cv_path_MAGIC_CMD"; then
3967   if test -n "$ac_tool_prefix"; then
3968     echo "$as_me:$LINENO: checking for file" >&5
3969 echo $ECHO_N "checking for file... $ECHO_C" >&6
3970 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   case $MAGIC_CMD in
3974   /*)
3975   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3976   ;;
3977   ?:/*)
3978   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3979   ;;
3980   *)
3981   ac_save_MAGIC_CMD="$MAGIC_CMD"
3982   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3983   ac_dummy="/usr/bin:$PATH"
3984   for ac_dir in $ac_dummy; do
3985     test -z "$ac_dir" && ac_dir=.
3986     if test -f $ac_dir/file; then
3987       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3988       if test -n "$file_magic_test_file"; then
3989         case $deplibs_check_method in
3990         "file_magic "*)
3991           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3992           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3993           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3994             egrep "$file_magic_regex" > /dev/null; then
3995             :
3996           else
3997             cat <<EOF 1>&2
3998
3999 *** Warning: the command libtool uses to detect shared libraries,
4000 *** $file_magic_cmd, produces output that libtool cannot recognize.
4001 *** The result is that libtool may fail to recognize shared libraries
4002 *** as such.  This will affect the creation of libtool libraries that
4003 *** depend on shared libraries, but programs linked with such libtool
4004 *** libraries will work regardless of this problem.  Nevertheless, you
4005 *** may want to report the problem to your system manager and/or to
4006 *** bug-libtool@gnu.org
4007
4008 EOF
4009           fi ;;
4010         esac
4011       fi
4012       break
4013     fi
4014   done
4015   IFS="$ac_save_ifs"
4016   MAGIC_CMD="$ac_save_MAGIC_CMD"
4017   ;;
4018 esac
4019 fi
4020
4021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4022 if test -n "$MAGIC_CMD"; then
4023   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4024 echo "${ECHO_T}$MAGIC_CMD" >&6
4025 else
4026   echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6
4028 fi
4029
4030   else
4031     MAGIC_CMD=:
4032   fi
4033 fi
4034
4035   fi
4036   ;;
4037 esac
4038
4039 if test -n "$ac_tool_prefix"; then
4040   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4041 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4042 echo "$as_me:$LINENO: checking for $ac_word" >&5
4043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4044 if test "${ac_cv_prog_RANLIB+set}" = set; then
4045   echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047   if test -n "$RANLIB"; then
4048   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4049 else
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053   IFS=$as_save_IFS
4054   test -z "$as_dir" && as_dir=.
4055   for ac_exec_ext in '' $ac_executable_extensions; do
4056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4057     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4059     break 2
4060   fi
4061 done
4062 done
4063
4064 fi
4065 fi
4066 RANLIB=$ac_cv_prog_RANLIB
4067 if test -n "$RANLIB"; then
4068   echo "$as_me:$LINENO: result: $RANLIB" >&5
4069 echo "${ECHO_T}$RANLIB" >&6
4070 else
4071   echo "$as_me:$LINENO: result: no" >&5
4072 echo "${ECHO_T}no" >&6
4073 fi
4074
4075 fi
4076 if test -z "$ac_cv_prog_RANLIB"; then
4077   ac_ct_RANLIB=$RANLIB
4078   # Extract the first word of "ranlib", so it can be a program name with args.
4079 set dummy ranlib; ac_word=$2
4080 echo "$as_me:$LINENO: checking for $ac_word" >&5
4081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4083   echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085   if test -n "$ac_ct_RANLIB"; then
4086   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4090 do
4091   IFS=$as_save_IFS
4092   test -z "$as_dir" && as_dir=.
4093   for ac_exec_ext in '' $ac_executable_extensions; do
4094   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095     ac_cv_prog_ac_ct_RANLIB="ranlib"
4096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4097     break 2
4098   fi
4099 done
4100 done
4101
4102   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4103 fi
4104 fi
4105 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4106 if test -n "$ac_ct_RANLIB"; then
4107   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4108 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4109 else
4110   echo "$as_me:$LINENO: result: no" >&5
4111 echo "${ECHO_T}no" >&6
4112 fi
4113
4114   RANLIB=$ac_ct_RANLIB
4115 else
4116   RANLIB="$ac_cv_prog_RANLIB"
4117 fi
4118
4119 if test -n "$ac_tool_prefix"; then
4120   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4121 set dummy ${ac_tool_prefix}strip; ac_word=$2
4122 echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4124 if test "${ac_cv_prog_STRIP+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   if test -n "$STRIP"; then
4128   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133   IFS=$as_save_IFS
4134   test -z "$as_dir" && as_dir=.
4135   for ac_exec_ext in '' $ac_executable_extensions; do
4136   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4139     break 2
4140   fi
4141 done
4142 done
4143
4144 fi
4145 fi
4146 STRIP=$ac_cv_prog_STRIP
4147 if test -n "$STRIP"; then
4148   echo "$as_me:$LINENO: result: $STRIP" >&5
4149 echo "${ECHO_T}$STRIP" >&6
4150 else
4151   echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6
4153 fi
4154
4155 fi
4156 if test -z "$ac_cv_prog_STRIP"; then
4157   ac_ct_STRIP=$STRIP
4158   # Extract the first word of "strip", so it can be a program name with args.
4159 set dummy strip; ac_word=$2
4160 echo "$as_me:$LINENO: checking for $ac_word" >&5
4161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4162 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4163   echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165   if test -n "$ac_ct_STRIP"; then
4166   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4167 else
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH
4170 do
4171   IFS=$as_save_IFS
4172   test -z "$as_dir" && as_dir=.
4173   for ac_exec_ext in '' $ac_executable_extensions; do
4174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175     ac_cv_prog_ac_ct_STRIP="strip"
4176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4177     break 2
4178   fi
4179 done
4180 done
4181
4182   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4183 fi
4184 fi
4185 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4186 if test -n "$ac_ct_STRIP"; then
4187   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4188 echo "${ECHO_T}$ac_ct_STRIP" >&6
4189 else
4190   echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6
4192 fi
4193
4194   STRIP=$ac_ct_STRIP
4195 else
4196   STRIP="$ac_cv_prog_STRIP"
4197 fi
4198
4199
4200 # Check for any special flags to pass to ltconfig.
4201 libtool_flags="--cache-file=$cache_file"
4202 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4203 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4204 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4205 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4206 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4207
4208
4209 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4210 if test "${enable_libtool_lock+set}" = set; then
4211   enableval="$enable_libtool_lock"
4212
4213 fi;
4214 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4215 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4216
4217
4218 # Check whether --with-pic or --without-pic was given.
4219 if test "${with_pic+set}" = set; then
4220   withval="$with_pic"
4221   pic_mode="$withval"
4222 else
4223   pic_mode=default
4224 fi;
4225 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4226 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4227
4228 # Some flags need to be propagated to the compiler or linker for good
4229 # libtool support.
4230 case $host in
4231 *-*-irix6*)
4232   # Find out which ABI we are using.
4233   echo '#line 4233 "configure"' > conftest.$ac_ext
4234   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4235   (eval $ac_compile) 2>&5
4236   ac_status=$?
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); }; then
4239    if test "$lt_cv_prog_gnu_ld" = yes; then
4240     case `/usr/bin/file conftest.$ac_objext` in
4241     *32-bit*)
4242       LD="${LD-ld} -melf32bsmip"
4243       ;;
4244     *N32*)
4245       LD="${LD-ld} -melf32bmipn32"
4246       ;;
4247     *64-bit*)
4248       LD="${LD-ld} -melf64bmip"
4249       ;;
4250     esac
4251    else
4252     case `/usr/bin/file conftest.$ac_objext` in
4253     *32-bit*)
4254       LD="${LD-ld} -32"
4255       ;;
4256     *N32*)
4257       LD="${LD-ld} -n32"
4258       ;;
4259     *64-bit*)
4260       LD="${LD-ld} -64"
4261       ;;
4262     esac
4263    fi
4264   fi
4265   rm -rf conftest*
4266   ;;
4267
4268 ia64-*-hpux*)
4269   # Find out which ABI we are using.
4270   echo 'int i;' > conftest.$ac_ext
4271   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4272   (eval $ac_compile) 2>&5
4273   ac_status=$?
4274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275   (exit $ac_status); }; then
4276     case "`/usr/bin/file conftest.o`" in
4277     *ELF-32*)
4278       HPUX_IA64_MODE="32"
4279       ;;
4280     *ELF-64*)
4281       HPUX_IA64_MODE="64"
4282       ;;
4283     esac
4284   fi
4285   rm -rf conftest*
4286   ;;
4287
4288 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4289   # Find out which ABI we are using.
4290   echo 'int i;' > conftest.$ac_ext
4291   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292   (eval $ac_compile) 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; then
4296     case "`/usr/bin/file conftest.o`" in
4297     *32-bit*)
4298       case $host in
4299         x86_64-*linux*)
4300           LD="${LD-ld} -m elf_i386"
4301           ;;
4302         ppc64-*linux*)
4303           LD="${LD-ld} -m elf32ppclinux"
4304           ;;
4305         s390x-*linux*)
4306           LD="${LD-ld} -m elf_s390"
4307           ;;
4308         sparc64-*linux*)
4309           LD="${LD-ld} -m elf32_sparc"
4310           ;;
4311       esac
4312       ;;
4313     *64-bit*)
4314       case $host in
4315         x86_64-*linux*)
4316           LD="${LD-ld} -m elf_x86_64"
4317           ;;
4318         ppc*-*linux*|powerpc*-*linux*)
4319           LD="${LD-ld} -m elf64ppc"
4320           ;;
4321         s390*-*linux*)
4322           LD="${LD-ld} -m elf64_s390"
4323           ;;
4324         sparc*-*linux*)
4325           LD="${LD-ld} -m elf64_sparc"
4326           ;;
4327       esac
4328       ;;
4329     esac
4330   fi
4331   rm -rf conftest*
4332   ;;
4333
4334 *-*-sco3.2v5*)
4335   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4336   SAVE_CFLAGS="$CFLAGS"
4337   CFLAGS="$CFLAGS -belf"
4338   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4339 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4340 if test "${lt_cv_cc_needs_belf+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343
4344
4345      ac_ext=c
4346 ac_cpp='$CPP $CPPFLAGS'
4347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350
4351      cat >conftest.$ac_ext <<_ACEOF
4352 #line $LINENO "configure"
4353 /* confdefs.h.  */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h.  */
4358
4359 int
4360 main ()
4361 {
4362
4363   ;
4364   return 0;
4365 }
4366 _ACEOF
4367 rm -f conftest.$ac_objext conftest$ac_exeext
4368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4369   (eval $ac_link) 2>&5
4370   ac_status=$?
4371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372   (exit $ac_status); } &&
4373          { ac_try='test -s conftest$ac_exeext'
4374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375   (eval $ac_try) 2>&5
4376   ac_status=$?
4377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378   (exit $ac_status); }; }; then
4379   lt_cv_cc_needs_belf=yes
4380 else
4381   echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384 lt_cv_cc_needs_belf=no
4385 fi
4386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4387      ac_ext=c
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392
4393 fi
4394 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4395 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4396   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4397     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4398     CFLAGS="$SAVE_CFLAGS"
4399   fi
4400   ;;
4401
4402
4403 esac
4404
4405
4406 # Save cache, so that ltconfig can load it
4407 cat >confcache <<\_ACEOF
4408 # This file is a shell script that caches the results of configure
4409 # tests run on this system so they can be shared between configure
4410 # scripts and configure runs, see configure's option --config-cache.
4411 # It is not useful on other systems.  If it contains results you don't
4412 # want to keep, you may remove or edit it.
4413 #
4414 # config.status only pays attention to the cache file if you give it
4415 # the --recheck option to rerun configure.
4416 #
4417 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4418 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4419 # following values.
4420
4421 _ACEOF
4422
4423 # The following way of writing the cache mishandles newlines in values,
4424 # but we know of no workaround that is simple, portable, and efficient.
4425 # So, don't put newlines in cache variables' values.
4426 # Ultrix sh set writes to stderr and can't be redirected directly,
4427 # and sets the high bit in the cache file unless we assign to the vars.
4428 {
4429   (set) 2>&1 |
4430     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4431     *ac_space=\ *)
4432       # `set' does not quote correctly, so add quotes (double-quote
4433       # substitution turns \\\\ into \\, and sed turns \\ into \).
4434       sed -n \
4435         "s/'/'\\\\''/g;
4436           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4437       ;;
4438     *)
4439       # `set' quotes correctly as required by POSIX, so do not add quotes.
4440       sed -n \
4441         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4442       ;;
4443     esac;
4444 } |
4445   sed '
4446      t clear
4447      : clear
4448      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4449      t end
4450      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4451      : end' >>confcache
4452 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4453   if test -w $cache_file; then
4454     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4455     cat confcache >$cache_file
4456   else
4457     echo "not updating unwritable cache $cache_file"
4458   fi
4459 fi
4460 rm -f confcache
4461
4462 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4463 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4464 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4465 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4466 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4467 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4468 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4469 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4470 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4471 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4472 echo "$as_me: error: libtool configure failed" >&2;}
4473    { (exit 1); exit 1; }; }
4474
4475 # Reload cache, that may have been modified by ltconfig
4476 if test -r "$cache_file"; then
4477   # Some versions of bash will fail to source /dev/null (special
4478   # files actually), so we avoid doing that.
4479   if test -f "$cache_file"; then
4480     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4481 echo "$as_me: loading cache $cache_file" >&6;}
4482     case $cache_file in
4483       [\\/]* | ?:[\\/]* ) . $cache_file;;
4484       *)                      . ./$cache_file;;
4485     esac
4486   fi
4487 else
4488   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4489 echo "$as_me: creating cache $cache_file" >&6;}
4490   >$cache_file
4491 fi
4492
4493
4494 # This can be used to rebuild libtool when needed
4495 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4496
4497 # Always use our own libtool.
4498 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4499
4500 # Redirect the config.log output again, so that the ltconfig log is not
4501 # clobbered by the next message.
4502 exec 5>>./config.log
4503
4504 ac_ext=cc
4505 ac_cpp='$CXXCPP $CPPFLAGS'
4506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4509 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4510 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4511 if test -z "$CXXCPP"; then
4512   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515       # Double quotes because CXXCPP needs to be expanded
4516     for CXXCPP in "$CXX -E" "/lib/cpp"
4517     do
4518       ac_preproc_ok=false
4519 for ac_cxx_preproc_warn_flag in '' yes
4520 do
4521   # Use a header file that comes with gcc, so configuring glibc
4522   # with a fresh cross-compiler works.
4523   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4524   # <limits.h> exists even on freestanding compilers.
4525   # On the NeXT, cc -E runs the code through the compiler's parser,
4526   # not just through cpp. "Syntax error" is here to catch this case.
4527   cat >conftest.$ac_ext <<_ACEOF
4528 #line $LINENO "configure"
4529 /* confdefs.h.  */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h.  */
4534 #ifdef __STDC__
4535 # include <limits.h>
4536 #else
4537 # include <assert.h>
4538 #endif
4539                      Syntax error
4540 _ACEOF
4541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4542   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4543   ac_status=$?
4544   grep -v '^ *+' conftest.er1 >conftest.err
4545   rm -f conftest.er1
4546   cat conftest.err >&5
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); } >/dev/null; then
4549   if test -s conftest.err; then
4550     ac_cpp_err=$ac_cxx_preproc_warn_flag
4551   else
4552     ac_cpp_err=
4553   fi
4554 else
4555   ac_cpp_err=yes
4556 fi
4557 if test -z "$ac_cpp_err"; then
4558   :
4559 else
4560   echo "$as_me: failed program was:" >&5
4561 sed 's/^/| /' conftest.$ac_ext >&5
4562
4563   # Broken: fails on valid input.
4564 continue
4565 fi
4566 rm -f conftest.err conftest.$ac_ext
4567
4568   # OK, works on sane cases.  Now check whether non-existent headers
4569   # can be detected and how.
4570   cat >conftest.$ac_ext <<_ACEOF
4571 #line $LINENO "configure"
4572 /* confdefs.h.  */
4573 _ACEOF
4574 cat confdefs.h >>conftest.$ac_ext
4575 cat >>conftest.$ac_ext <<_ACEOF
4576 /* end confdefs.h.  */
4577 #include <ac_nonexistent.h>
4578 _ACEOF
4579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4580   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4581   ac_status=$?
4582   grep -v '^ *+' conftest.er1 >conftest.err
4583   rm -f conftest.er1
4584   cat conftest.err >&5
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } >/dev/null; then
4587   if test -s conftest.err; then
4588     ac_cpp_err=$ac_cxx_preproc_warn_flag
4589   else
4590     ac_cpp_err=
4591   fi
4592 else
4593   ac_cpp_err=yes
4594 fi
4595 if test -z "$ac_cpp_err"; then
4596   # Broken: success on invalid input.
4597 continue
4598 else
4599   echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602   # Passes both tests.
4603 ac_preproc_ok=:
4604 break
4605 fi
4606 rm -f conftest.err conftest.$ac_ext
4607
4608 done
4609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4610 rm -f conftest.err conftest.$ac_ext
4611 if $ac_preproc_ok; then
4612   break
4613 fi
4614
4615     done
4616     ac_cv_prog_CXXCPP=$CXXCPP
4617
4618 fi
4619   CXXCPP=$ac_cv_prog_CXXCPP
4620 else
4621   ac_cv_prog_CXXCPP=$CXXCPP
4622 fi
4623 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4624 echo "${ECHO_T}$CXXCPP" >&6
4625 ac_preproc_ok=false
4626 for ac_cxx_preproc_warn_flag in '' yes
4627 do
4628   # Use a header file that comes with gcc, so configuring glibc
4629   # with a fresh cross-compiler works.
4630   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4631   # <limits.h> exists even on freestanding compilers.
4632   # On the NeXT, cc -E runs the code through the compiler's parser,
4633   # not just through cpp. "Syntax error" is here to catch this case.
4634   cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4636 /* confdefs.h.  */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h.  */
4641 #ifdef __STDC__
4642 # include <limits.h>
4643 #else
4644 # include <assert.h>
4645 #endif
4646                      Syntax error
4647 _ACEOF
4648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4649   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4650   ac_status=$?
4651   grep -v '^ *+' conftest.er1 >conftest.err
4652   rm -f conftest.er1
4653   cat conftest.err >&5
4654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655   (exit $ac_status); } >/dev/null; then
4656   if test -s conftest.err; then
4657     ac_cpp_err=$ac_cxx_preproc_warn_flag
4658   else
4659     ac_cpp_err=
4660   fi
4661 else
4662   ac_cpp_err=yes
4663 fi
4664 if test -z "$ac_cpp_err"; then
4665   :
4666 else
4667   echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4669
4670   # Broken: fails on valid input.
4671 continue
4672 fi
4673 rm -f conftest.err conftest.$ac_ext
4674
4675   # OK, works on sane cases.  Now check whether non-existent headers
4676   # can be detected and how.
4677   cat >conftest.$ac_ext <<_ACEOF
4678 #line $LINENO "configure"
4679 /* confdefs.h.  */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h.  */
4684 #include <ac_nonexistent.h>
4685 _ACEOF
4686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4687   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4688   ac_status=$?
4689   grep -v '^ *+' conftest.er1 >conftest.err
4690   rm -f conftest.er1
4691   cat conftest.err >&5
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); } >/dev/null; then
4694   if test -s conftest.err; then
4695     ac_cpp_err=$ac_cxx_preproc_warn_flag
4696   else
4697     ac_cpp_err=
4698   fi
4699 else
4700   ac_cpp_err=yes
4701 fi
4702 if test -z "$ac_cpp_err"; then
4703   # Broken: success on invalid input.
4704 continue
4705 else
4706   echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4708
4709   # Passes both tests.
4710 ac_preproc_ok=:
4711 break
4712 fi
4713 rm -f conftest.err conftest.$ac_ext
4714
4715 done
4716 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4717 rm -f conftest.err conftest.$ac_ext
4718 if $ac_preproc_ok; then
4719   :
4720 else
4721   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4722 See \`config.log' for more details." >&5
4723 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4724 See \`config.log' for more details." >&2;}
4725    { (exit 1); exit 1; }; }
4726 fi
4727
4728 ac_ext=c
4729 ac_cpp='$CPP $CPPFLAGS'
4730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733
4734
4735
4736 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4737 lt_save_CC="$CC"
4738 lt_save_CFLAGS="$CFLAGS"
4739 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4740 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4741 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4742 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4743 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4744 deplibs_check_method="$deplibs_check_method" \
4745 file_magic_cmd="$file_magic_cmd" \
4746 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4747 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4748 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4749 echo "$as_me: error: libtool tag configuration failed" >&2;}
4750    { (exit 1); exit 1; }; }
4751 CC="$lt_save_CC"
4752 CFLAGS="$lt_save_CFLAGS"
4753
4754 # Redirect the config.log output again, so that the ltconfig log is not
4755 # clobbered by the next message.
4756 exec 5>>./config.log
4757
4758
4759
4760
4761
4762
4763
4764
4765 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
4766
4767 # Possibly disable most of the library.
4768 ## XXX Consider skipping unncessary tests altogether in this case, rather
4769 ## than just ignoring the results.  Faster /and/ more correct, win win.
4770
4771   # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
4772 if test "${enable_hosted_libstdcxx+set}" = set; then
4773   enableval="$enable_hosted_libstdcxx"
4774
4775 else
4776   enable_hosted_libstdcxx=yes
4777 fi;
4778   if test "$enable_hosted_libstdcxx" = no; then
4779     { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
4780 echo "$as_me: Only freestanding libraries will be built" >&6;}
4781     is_hosted=no
4782     enable_abi_check=no
4783     enable_libstdcxx_pch=no
4784   else
4785     is_hosted=yes
4786   fi
4787
4788
4789
4790 # Check for support bits and g++ features that don't require linking.
4791
4792   echo "$as_me:$LINENO: checking for exception model to use" >&5
4793 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
4794
4795
4796   ac_ext=cc
4797 ac_cpp='$CXXCPP $CPPFLAGS'
4798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4801
4802    # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
4803 if test "${enable_sjlj_exceptions+set}" = set; then
4804   enableval="$enable_sjlj_exceptions"
4805
4806       case "$enableval" in
4807        yes|no|auto) ;;
4808        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
4809 echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
4810    { (exit 1); exit 1; }; } ;;
4811                           esac
4812
4813 else
4814   enable_sjlj_exceptions=auto
4815 fi;
4816
4817
4818   if test $enable_sjlj_exceptions = auto; then
4819     # Botheration.  Now we've got to detect the exception model.  Link tests
4820     # against libgcc.a are problematic since we've not been given proper -L
4821     # bits for single-tree newlib and libgloss.
4822     #
4823     # Fake what AC_TRY_COMPILE does.  XXX Look at redoing this new-style.
4824     cat > conftest.$ac_ext << EOF
4825 #line 4825 "configure"
4826 struct S { ~S(); };
4827 void bar();
4828 void foo()
4829 {
4830   S s;
4831   bar();
4832 }
4833 EOF
4834     old_CXXFLAGS="$CXXFLAGS"
4835     CXXFLAGS=-S
4836     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4837   (eval $ac_compile) 2>&5
4838   ac_status=$?
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); }; then
4841       if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
4842         enable_sjlj_exceptions=yes
4843       elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
4844         enable_sjlj_exceptions=no
4845       fi
4846     fi
4847     CXXFLAGS="$old_CXXFLAGS"
4848     rm -f conftest*
4849   fi
4850
4851   # This is a tad weird, for hysterical raisins.  We have to map enable/disable
4852   # to two different models.
4853   case $enable_sjlj_exceptions in
4854     yes)
4855
4856 cat >>confdefs.h <<\_ACEOF
4857 #define _GLIBCXX_SJLJ_EXCEPTIONS 1
4858 _ACEOF
4859
4860       ac_exception_model_name=sjlj
4861       ;;
4862     no)
4863       ac_exception_model_name="call frame"
4864       ;;
4865     *)
4866       { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
4867 echo "$as_me: error: unable to detect exception model" >&2;}
4868    { (exit 1); exit 1; }; }
4869       ;;
4870   esac
4871  ac_ext=c
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876
4877  echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
4878 echo "${ECHO_T}$ac_exception_model_name" >&6
4879
4880
4881   echo "$as_me:$LINENO: checking for use of libunwind" >&5
4882 echo $ECHO_N "checking for use of libunwind... $ECHO_C" >&6
4883    # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given.
4884 if test "${enable_libunwind_exceptions+set}" = set; then
4885   enableval="$enable_libunwind_exceptions"
4886
4887       case "$enableval" in
4888        yes|no) ;;
4889        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&5
4890 echo "$as_me: error: Argument to enable/disable libunwind-exceptions must be yes or no" >&2;}
4891    { (exit 1); exit 1; }; } ;;
4892       esac
4893
4894 else
4895   enable_libunwind_exceptions=no
4896 fi;
4897
4898   echo "$as_me:$LINENO: result: $use_libunwind_exceptions" >&5
4899 echo "${ECHO_T}$use_libunwind_exceptions" >&6
4900   if test $enable_libunwind_exceptions = yes; then
4901     LIBUNWIND_FLAG="-lunwind"
4902   else
4903     LIBUNWIND_FLAG=""
4904   fi
4905
4906
4907
4908   echo "$as_me:$LINENO: checking for enabled PCH" >&5
4909 echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
4910    # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
4911 if test "${enable_libstdcxx_pch+set}" = set; then
4912   enableval="$enable_libstdcxx_pch"
4913
4914       case "$enableval" in
4915        yes|no) ;;
4916        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
4917 echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
4918    { (exit 1); exit 1; }; } ;;
4919       esac
4920
4921 else
4922   enable_libstdcxx_pch=$is_hosted
4923 fi;
4924
4925   echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
4926 echo "${ECHO_T}$enable_libstdcxx_pch" >&6
4927
4928   if test $enable_libstdcxx_pch = yes; then
4929     echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
4930 echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
4931 if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934   ac_save_CXXFLAGS="$CXXFLAGS"
4935        CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
4936
4937
4938        ac_ext=cc
4939 ac_cpp='$CXXCPP $CPPFLAGS'
4940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4943
4944        echo '#include <math.h>' > conftest.h
4945        if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
4946                           -o conftest.h.gch 1>&5 2>&1 &&
4947                 echo '#error "pch failed"' > conftest.h &&
4948           echo '#include "conftest.h"' > conftest.cc &&
4949                $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
4950        then
4951          glibcxx_cv_prog_CXX_pch=yes
4952        else
4953          glibcxx_cv_prog_CXX_pch=no
4954        fi
4955        rm -f conftest*
4956        CXXFLAGS=$ac_save_CXXFLAGS
4957        ac_ext=c
4958 ac_cpp='$CPP $CPPFLAGS'
4959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4962
4963
4964 fi
4965 echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
4966 echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
4967     enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
4968   fi
4969
4970
4971   if test $enable_libstdcxx_pch = yes; then
4972     glibcxx_PCHFLAGS="-include bits/stdc++.h"
4973   else
4974     glibcxx_PCHFLAGS=""
4975   fi
4976
4977
4978
4979 # Enable all the variable C++ runtime options.
4980 # NB: C_MBCHAR must come early.
4981
4982   echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
4983 echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
4984    # Check whether --enable-cstdio or --disable-cstdio was given.
4985 if test "${enable_cstdio+set}" = set; then
4986   enableval="$enable_cstdio"
4987
4988       case "$enableval" in
4989        stdio) ;;
4990        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
4991 echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
4992    { (exit 1); exit 1; }; } ;;
4993                           esac
4994
4995 else
4996   enable_cstdio=stdio
4997 fi;
4998
4999
5000   # Now that libio has been removed, you can have any color you want as long
5001   # as it's black.  This is one big no-op until other packages are added, but
5002   # showing the framework never hurts.
5003   case ${enable_cstdio} in
5004     stdio)
5005       CSTDIO_H=config/io/c_io_stdio.h
5006       BASIC_FILE_H=config/io/basic_file_stdio.h
5007       BASIC_FILE_CC=config/io/basic_file_stdio.cc
5008       echo "$as_me:$LINENO: result: stdio" >&5
5009 echo "${ECHO_T}stdio" >&6
5010       ;;
5011   esac
5012
5013     FPOS_H=$fpos_include_dir
5014
5015
5016
5017
5018
5019
5020 ac_ext=c
5021 ac_cpp='$CPP $CPPFLAGS'
5022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5025 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5026 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5027 # On Suns, sometimes $CPP names a directory.
5028 if test -n "$CPP" && test -d "$CPP"; then
5029   CPP=
5030 fi
5031 if test -z "$CPP"; then
5032   if test "${ac_cv_prog_CPP+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035       # Double quotes because CPP needs to be expanded
5036     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5037     do
5038       ac_preproc_ok=false
5039 for ac_c_preproc_warn_flag in '' yes
5040 do
5041   # Use a header file that comes with gcc, so configuring glibc
5042   # with a fresh cross-compiler works.
5043   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044   # <limits.h> exists even on freestanding compilers.
5045   # On the NeXT, cc -E runs the code through the compiler's parser,
5046   # not just through cpp. "Syntax error" is here to catch this case.
5047   cat >conftest.$ac_ext <<_ACEOF
5048 #line $LINENO "configure"
5049 /* confdefs.h.  */
5050 _ACEOF
5051 cat confdefs.h >>conftest.$ac_ext
5052 cat >>conftest.$ac_ext <<_ACEOF
5053 /* end confdefs.h.  */
5054 #ifdef __STDC__
5055 # include <limits.h>
5056 #else
5057 # include <assert.h>
5058 #endif
5059                      Syntax error
5060 _ACEOF
5061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5063   ac_status=$?
5064   grep -v '^ *+' conftest.er1 >conftest.err
5065   rm -f conftest.er1
5066   cat conftest.err >&5
5067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068   (exit $ac_status); } >/dev/null; then
5069   if test -s conftest.err; then
5070     ac_cpp_err=$ac_c_preproc_warn_flag
5071   else
5072     ac_cpp_err=
5073   fi
5074 else
5075   ac_cpp_err=yes
5076 fi
5077 if test -z "$ac_cpp_err"; then
5078   :
5079 else
5080   echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5082
5083   # Broken: fails on valid input.
5084 continue
5085 fi
5086 rm -f conftest.err conftest.$ac_ext
5087
5088   # OK, works on sane cases.  Now check whether non-existent headers
5089   # can be detected and how.
5090   cat >conftest.$ac_ext <<_ACEOF
5091 #line $LINENO "configure"
5092 /* confdefs.h.  */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h.  */
5097 #include <ac_nonexistent.h>
5098 _ACEOF
5099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5101   ac_status=$?
5102   grep -v '^ *+' conftest.er1 >conftest.err
5103   rm -f conftest.er1
5104   cat conftest.err >&5
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); } >/dev/null; then
5107   if test -s conftest.err; then
5108     ac_cpp_err=$ac_c_preproc_warn_flag
5109   else
5110     ac_cpp_err=
5111   fi
5112 else
5113   ac_cpp_err=yes
5114 fi
5115 if test -z "$ac_cpp_err"; then
5116   # Broken: success on invalid input.
5117 continue
5118 else
5119   echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5121
5122   # Passes both tests.
5123 ac_preproc_ok=:
5124 break
5125 fi
5126 rm -f conftest.err conftest.$ac_ext
5127
5128 done
5129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130 rm -f conftest.err conftest.$ac_ext
5131 if $ac_preproc_ok; then
5132   break
5133 fi
5134
5135     done
5136     ac_cv_prog_CPP=$CPP
5137
5138 fi
5139   CPP=$ac_cv_prog_CPP
5140 else
5141   ac_cv_prog_CPP=$CPP
5142 fi
5143 echo "$as_me:$LINENO: result: $CPP" >&5
5144 echo "${ECHO_T}$CPP" >&6
5145 ac_preproc_ok=false
5146 for ac_c_preproc_warn_flag in '' yes
5147 do
5148   # Use a header file that comes with gcc, so configuring glibc
5149   # with a fresh cross-compiler works.
5150   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5151   # <limits.h> exists even on freestanding compilers.
5152   # On the NeXT, cc -E runs the code through the compiler's parser,
5153   # not just through cpp. "Syntax error" is here to catch this case.
5154   cat >conftest.$ac_ext <<_ACEOF
5155 #line $LINENO "configure"
5156 /* confdefs.h.  */
5157 _ACEOF
5158 cat confdefs.h >>conftest.$ac_ext
5159 cat >>conftest.$ac_ext <<_ACEOF
5160 /* end confdefs.h.  */
5161 #ifdef __STDC__
5162 # include <limits.h>
5163 #else
5164 # include <assert.h>
5165 #endif
5166                      Syntax error
5167 _ACEOF
5168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5169   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5170   ac_status=$?
5171   grep -v '^ *+' conftest.er1 >conftest.err
5172   rm -f conftest.er1
5173   cat conftest.err >&5
5174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175   (exit $ac_status); } >/dev/null; then
5176   if test -s conftest.err; then
5177     ac_cpp_err=$ac_c_preproc_warn_flag
5178   else
5179     ac_cpp_err=
5180   fi
5181 else
5182   ac_cpp_err=yes
5183 fi
5184 if test -z "$ac_cpp_err"; then
5185   :
5186 else
5187   echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5189
5190   # Broken: fails on valid input.
5191 continue
5192 fi
5193 rm -f conftest.err conftest.$ac_ext
5194
5195   # OK, works on sane cases.  Now check whether non-existent headers
5196   # can be detected and how.
5197   cat >conftest.$ac_ext <<_ACEOF
5198 #line $LINENO "configure"
5199 /* confdefs.h.  */
5200 _ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h.  */
5204 #include <ac_nonexistent.h>
5205 _ACEOF
5206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5207   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5208   ac_status=$?
5209   grep -v '^ *+' conftest.er1 >conftest.err
5210   rm -f conftest.er1
5211   cat conftest.err >&5
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); } >/dev/null; then
5214   if test -s conftest.err; then
5215     ac_cpp_err=$ac_c_preproc_warn_flag
5216   else
5217     ac_cpp_err=
5218   fi
5219 else
5220   ac_cpp_err=yes
5221 fi
5222 if test -z "$ac_cpp_err"; then
5223   # Broken: success on invalid input.
5224 continue
5225 else
5226   echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5228
5229   # Passes both tests.
5230 ac_preproc_ok=:
5231 break
5232 fi
5233 rm -f conftest.err conftest.$ac_ext
5234
5235 done
5236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5237 rm -f conftest.err conftest.$ac_ext
5238 if $ac_preproc_ok; then
5239   :
5240 else
5241   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5242 See \`config.log' for more details." >&5
5243 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5244 See \`config.log' for more details." >&2;}
5245    { (exit 1); exit 1; }; }
5246 fi
5247
5248 ac_ext=c
5249 ac_cpp='$CPP $CPPFLAGS'
5250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5253
5254
5255 echo "$as_me:$LINENO: checking for egrep" >&5
5256 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5257 if test "${ac_cv_prog_egrep+set}" = set; then
5258   echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5261     then ac_cv_prog_egrep='grep -E'
5262     else ac_cv_prog_egrep='egrep'
5263     fi
5264 fi
5265 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5266 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5267  EGREP=$ac_cv_prog_egrep
5268
5269
5270 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5271 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5272 if test "${ac_cv_header_stdc+set}" = set; then
5273   echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275   cat >conftest.$ac_ext <<_ACEOF
5276 #line $LINENO "configure"
5277 /* confdefs.h.  */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h.  */
5282 #include <stdlib.h>
5283 #include <stdarg.h>
5284 #include <string.h>
5285 #include <float.h>
5286
5287 int
5288 main ()
5289 {
5290
5291   ;
5292   return 0;
5293 }
5294 _ACEOF
5295 rm -f conftest.$ac_objext
5296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297   (eval $ac_compile) 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); } &&
5301          { ac_try='test -s conftest.$ac_objext'
5302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303   (eval $ac_try) 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }; }; then
5307   ac_cv_header_stdc=yes
5308 else
5309   echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5311
5312 ac_cv_header_stdc=no
5313 fi
5314 rm -f conftest.$ac_objext conftest.$ac_ext
5315
5316 if test $ac_cv_header_stdc = yes; then
5317   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5318   cat >conftest.$ac_ext <<_ACEOF
5319 #line $LINENO "configure"
5320 /* confdefs.h.  */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h.  */
5325 #include <string.h>
5326
5327 _ACEOF
5328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5329   $EGREP "memchr" >/dev/null 2>&1; then
5330   :
5331 else
5332   ac_cv_header_stdc=no
5333 fi
5334 rm -f conftest*
5335
5336 fi
5337
5338 if test $ac_cv_header_stdc = yes; then
5339   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5340   cat >conftest.$ac_ext <<_ACEOF
5341 #line $LINENO "configure"
5342 /* confdefs.h.  */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h.  */
5347 #include <stdlib.h>
5348
5349 _ACEOF
5350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5351   $EGREP "free" >/dev/null 2>&1; then
5352   :
5353 else
5354   ac_cv_header_stdc=no
5355 fi
5356 rm -f conftest*
5357
5358 fi
5359
5360 if test $ac_cv_header_stdc = yes; then
5361   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5362   if test "$cross_compiling" = yes; then
5363   :
5364 else
5365   cat >conftest.$ac_ext <<_ACEOF
5366 #line $LINENO "configure"
5367 /* confdefs.h.  */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h.  */
5372 #include <ctype.h>
5373 #if ((' ' & 0x0FF) == 0x020)
5374 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5375 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5376 #else
5377 # define ISLOWER(c) \
5378                    (('a' <= (c) && (c) <= 'i') \
5379                      || ('j' <= (c) && (c) <= 'r') \
5380                      || ('s' <= (c) && (c) <= 'z'))
5381 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5382 #endif
5383
5384 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5385 int
5386 main ()
5387 {
5388   int i;
5389   for (i = 0; i < 256; i++)
5390     if (XOR (islower (i), ISLOWER (i))
5391         || toupper (i) != TOUPPER (i))
5392       exit(2);
5393   exit (0);
5394 }
5395 _ACEOF
5396 rm -f conftest$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398   (eval $ac_link) 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403   (eval $ac_try) 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); }; }; then
5407   :
5408 else
5409   echo "$as_me: program exited with status $ac_status" >&5
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5412
5413 ( exit $ac_status )
5414 ac_cv_header_stdc=no
5415 fi
5416 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5417 fi
5418 fi
5419 fi
5420 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5421 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5422 if test $ac_cv_header_stdc = yes; then
5423
5424 cat >>confdefs.h <<\_ACEOF
5425 #define STDC_HEADERS 1
5426 _ACEOF
5427
5428 fi
5429
5430 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5441                   inttypes.h stdint.h unistd.h
5442 do
5443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5444 echo "$as_me:$LINENO: checking for $ac_header" >&5
5445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5447   echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449   cat >conftest.$ac_ext <<_ACEOF
5450 #line $LINENO "configure"
5451 /* confdefs.h.  */
5452 _ACEOF
5453 cat confdefs.h >>conftest.$ac_ext
5454 cat >>conftest.$ac_ext <<_ACEOF
5455 /* end confdefs.h.  */
5456 $ac_includes_default
5457
5458 #include <$ac_header>
5459 _ACEOF
5460 rm -f conftest.$ac_objext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462   (eval $ac_compile) 2>&5
5463   ac_status=$?
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); } &&
5466          { ac_try='test -s conftest.$ac_objext'
5467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468   (eval $ac_try) 2>&5
5469   ac_status=$?
5470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471   (exit $ac_status); }; }; then
5472   eval "$as_ac_Header=yes"
5473 else
5474   echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477 eval "$as_ac_Header=no"
5478 fi
5479 rm -f conftest.$ac_objext conftest.$ac_ext
5480 fi
5481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5484   cat >>confdefs.h <<_ACEOF
5485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5486 _ACEOF
5487
5488 fi
5489
5490 done
5491
5492
5493
5494   echo "$as_me:$LINENO: checking for C locale to use" >&5
5495 echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5496    # Check whether --enable-clocale or --disable-clocale was given.
5497 if test "${enable_clocale+set}" = set; then
5498   enableval="$enable_clocale"
5499
5500       case "$enableval" in
5501        generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5502        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5503 echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5504    { (exit 1); exit 1; }; } ;;
5505                           esac
5506
5507 else
5508   enable_clocale=auto
5509 fi;
5510
5511
5512   # If they didn't use this option switch, or if they specified --enable
5513   # with no specific model, we'll have to look for one.  If they
5514   # specified --disable (???), do likewise.
5515   if test $enable_clocale = no || test $enable_clocale = yes; then
5516      enable_clocale=auto
5517   fi
5518
5519   # Either a known package, or "auto"
5520   enable_clocale_flag=$enable_clocale
5521
5522   # Probe for locale support if no specific model is specified.
5523   # Default to "generic".
5524   if test $enable_clocale_flag = auto; then
5525     case x${target_os} in
5526       xlinux* | xgnu*)
5527         cat >conftest.$ac_ext <<_ACEOF
5528 #line $LINENO "configure"
5529 /* confdefs.h.  */
5530 _ACEOF
5531 cat confdefs.h >>conftest.$ac_ext
5532 cat >>conftest.$ac_ext <<_ACEOF
5533 /* end confdefs.h.  */
5534
5535         #include <features.h>
5536         #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
5537           _GLIBCXX_ok
5538         #endif
5539
5540 _ACEOF
5541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5542   $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
5543   enable_clocale_flag=gnu
5544 else
5545   enable_clocale_flag=generic
5546 fi
5547 rm -f conftest*
5548
5549
5550         # Test for bugs early in glibc-2.2.x series
5551           if test x$enable_clocale_flag = xgnu; then
5552           if test "$cross_compiling" = yes; then
5553   enable_clocale_flag=generic
5554 else
5555   cat >conftest.$ac_ext <<_ACEOF
5556 #line $LINENO "configure"
5557 /* confdefs.h.  */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h.  */
5562
5563           #define _GNU_SOURCE 1
5564           #include <locale.h>
5565           #include <string.h>
5566           #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5567           extern __typeof(newlocale) __newlocale;
5568           extern __typeof(duplocale) __duplocale;
5569           extern __typeof(strcoll_l) __strcoll_l;
5570           #endif
5571           int main()
5572           {
5573               const char __one[] = "Äuglein Augmen";
5574               const char __two[] = "Äuglein";
5575               int i;
5576               int j;
5577               __locale_t        loc;
5578                __locale_t        loc_dup;
5579               loc = __newlocale(1 << LC_ALL, "de_DE", 0);
5580               loc_dup = __duplocale(loc);
5581               i = __strcoll_l(__one, __two, loc);
5582               j = __strcoll_l(__one, __two, loc_dup);
5583               return 0;
5584           }
5585
5586 _ACEOF
5587 rm -f conftest$ac_exeext
5588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5589   (eval $ac_link) 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5594   (eval $ac_try) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); }; }; then
5598   enable_clocale_flag=gnu
5599 else
5600   echo "$as_me: program exited with status $ac_status" >&5
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5603
5604 ( exit $ac_status )
5605 enable_clocale_flag=generic
5606 fi
5607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5608 fi
5609           fi
5610
5611         # ... at some point put __strxfrm_l tests in as well.
5612         ;;
5613       *)
5614         enable_clocale_flag=generic
5615         ;;
5616     esac
5617   fi
5618
5619   # Deal with gettext issues.  Default to not using it (=no) until we detect
5620   # support for it later.  Let the user turn it off via --e/d, but let that
5621   # default to on for easier handling.
5622   USE_NLS=no
5623   # Check whether --enable-nls or --disable-nls was given.
5624 if test "${enable_nls+set}" = set; then
5625   enableval="$enable_nls"
5626
5627 else
5628   enable_nls=yes
5629 fi;
5630
5631   # Set configure bits for specified locale package
5632   case ${enable_clocale_flag} in
5633     generic)
5634       echo "$as_me:$LINENO: result: generic" >&5
5635 echo "${ECHO_T}generic" >&6
5636
5637       CLOCALE_H=config/locale/generic/c_locale.h
5638       CLOCALE_CC=config/locale/generic/c_locale.cc
5639       CCODECVT_H=config/locale/generic/codecvt_specializations.h
5640       CCODECVT_CC=config/locale/generic/codecvt_members.cc
5641       CCOLLATE_CC=config/locale/generic/collate_members.cc
5642       CCTYPE_CC=config/locale/generic/ctype_members.cc
5643       CMESSAGES_H=config/locale/generic/messages_members.h
5644       CMESSAGES_CC=config/locale/generic/messages_members.cc
5645       CMONEY_CC=config/locale/generic/monetary_members.cc
5646       CNUMERIC_CC=config/locale/generic/numeric_members.cc
5647       CTIME_H=config/locale/generic/time_members.h
5648       CTIME_CC=config/locale/generic/time_members.cc
5649       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5650       ;;
5651     gnu)
5652       echo "$as_me:$LINENO: result: gnu" >&5
5653 echo "${ECHO_T}gnu" >&6
5654
5655       # Declare intention to use gettext, and add support for specific
5656       # languages.
5657       # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT
5658       ALL_LINGUAS="de fr"
5659
5660       # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.
5661       # Extract the first word of "msgfmt", so it can be a program name with args.
5662 set dummy msgfmt; ac_word=$2
5663 echo "$as_me:$LINENO: checking for $ac_word" >&5
5664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5665 if test "${ac_cv_prog_check_msgfmt+set}" = set; then
5666   echo $ECHO_N "(cached) $ECHO_C" >&6
5667 else
5668   if test -n "$check_msgfmt"; then
5669   ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674   IFS=$as_save_IFS
5675   test -z "$as_dir" && as_dir=.
5676   for ac_exec_ext in '' $ac_executable_extensions; do
5677   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5678     ac_cv_prog_check_msgfmt="yes"
5679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680     break 2
5681   fi
5682 done
5683 done
5684
5685   test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"
5686 fi
5687 fi
5688 check_msgfmt=$ac_cv_prog_check_msgfmt
5689 if test -n "$check_msgfmt"; then
5690   echo "$as_me:$LINENO: result: $check_msgfmt" >&5
5691 echo "${ECHO_T}$check_msgfmt" >&6
5692 else
5693   echo "$as_me:$LINENO: result: no" >&5
5694 echo "${ECHO_T}no" >&6
5695 fi
5696
5697       if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then
5698         USE_NLS=yes
5699       fi
5700       # Export the build objects.
5701       for ling in $ALL_LINGUAS; do \
5702         glibcxx_MOFILES="$glibcxx_MOFILES $ling.mo"; \
5703         glibcxx_POFILES="$glibcxx_POFILES $ling.po"; \
5704       done
5705
5706
5707
5708       CLOCALE_H=config/locale/gnu/c_locale.h
5709       CLOCALE_CC=config/locale/gnu/c_locale.cc
5710       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5711       CCODECVT_CC=config/locale/gnu/codecvt_members.cc
5712       CCOLLATE_CC=config/locale/gnu/collate_members.cc
5713       CCTYPE_CC=config/locale/gnu/ctype_members.cc
5714       CMESSAGES_H=config/locale/gnu/messages_members.h
5715       CMESSAGES_CC=config/locale/gnu/messages_members.cc
5716       CMONEY_CC=config/locale/gnu/monetary_members.cc
5717       CNUMERIC_CC=config/locale/gnu/numeric_members.cc
5718       CTIME_H=config/locale/gnu/time_members.h
5719       CTIME_CC=config/locale/gnu/time_members.cc
5720       CLOCALE_INTERNAL_H=config/locale/gnu/c++locale_internal.h
5721       ;;
5722     ieee_1003.1-2001)
5723       echo "$as_me:$LINENO: result: IEEE 1003.1" >&5
5724 echo "${ECHO_T}IEEE 1003.1" >&6
5725
5726       CLOCALE_H=config/locale/ieee_1003.1-2001/c_locale.h
5727       CLOCALE_CC=config/locale/ieee_1003.1-2001/c_locale.cc
5728       CCODECVT_H=config/locale/ieee_1003.1-2001/codecvt_specializations.h
5729       CCODECVT_CC=config/locale/generic/codecvt_members.cc
5730       CCOLLATE_CC=config/locale/generic/collate_members.cc
5731       CCTYPE_CC=config/locale/generic/ctype_members.cc
5732       CMESSAGES_H=config/locale/ieee_1003.1-2001/messages_members.h
5733       CMESSAGES_CC=config/locale/ieee_1003.1-2001/messages_members.cc
5734       CMONEY_CC=config/locale/generic/monetary_members.cc
5735       CNUMERIC_CC=config/locale/generic/numeric_members.cc
5736       CTIME_H=config/locale/generic/time_members.h
5737       CTIME_CC=config/locale/generic/time_members.cc
5738       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
5739       ;;
5740   esac
5741
5742   # This is where the testsuite looks for locale catalogs, using the
5743   # -DLOCALEDIR define during testsuite compilation.
5744   glibcxx_localedir=${glibcxx_builddir}/po/share/locale
5745
5746
5747   # A standalone libintl (e.g., GNU libintl) may be in use.
5748   if test $USE_NLS = yes; then
5749
5750 for ac_header in libintl.h
5751 do
5752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5754   echo "$as_me:$LINENO: checking for $ac_header" >&5
5755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5757   echo $ECHO_N "(cached) $ECHO_C" >&6
5758 fi
5759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5761 else
5762   # Is the header compilable?
5763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5765 cat >conftest.$ac_ext <<_ACEOF
5766 #line $LINENO "configure"
5767 /* confdefs.h.  */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h.  */
5772 $ac_includes_default
5773 #include <$ac_header>
5774 _ACEOF
5775 rm -f conftest.$ac_objext
5776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777   (eval $ac_compile) 2>&5
5778   ac_status=$?
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); } &&
5781          { ac_try='test -s conftest.$ac_objext'
5782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783   (eval $ac_try) 2>&5
5784   ac_status=$?
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); }; }; then
5787   ac_header_compiler=yes
5788 else
5789   echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5791
5792 ac_header_compiler=no
5793 fi
5794 rm -f conftest.$ac_objext conftest.$ac_ext
5795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5796 echo "${ECHO_T}$ac_header_compiler" >&6
5797
5798 # Is the header present?
5799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5801 cat >conftest.$ac_ext <<_ACEOF
5802 #line $LINENO "configure"
5803 /* confdefs.h.  */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h.  */
5808 #include <$ac_header>
5809 _ACEOF
5810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5812   ac_status=$?
5813   grep -v '^ *+' conftest.er1 >conftest.err
5814   rm -f conftest.er1
5815   cat conftest.err >&5
5816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817   (exit $ac_status); } >/dev/null; then
5818   if test -s conftest.err; then
5819     ac_cpp_err=$ac_c_preproc_warn_flag
5820   else
5821     ac_cpp_err=
5822   fi
5823 else
5824   ac_cpp_err=yes
5825 fi
5826 if test -z "$ac_cpp_err"; then
5827   ac_header_preproc=yes
5828 else
5829   echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5831
5832   ac_header_preproc=no
5833 fi
5834 rm -f conftest.err conftest.$ac_ext
5835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5836 echo "${ECHO_T}$ac_header_preproc" >&6
5837
5838 # So?  What about this header?
5839 case $ac_header_compiler:$ac_header_preproc in
5840   yes:no )
5841     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5845     (
5846       cat <<\_ASBOX
5847 ## ------------------------------------ ##
5848 ## Report this to bug-autoconf@gnu.org. ##
5849 ## ------------------------------------ ##
5850 _ASBOX
5851     ) |
5852       sed "s/^/$as_me: WARNING:     /" >&2
5853     ;;
5854   no:yes )
5855     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5857     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5861     (
5862       cat <<\_ASBOX
5863 ## ------------------------------------ ##
5864 ## Report this to bug-autoconf@gnu.org. ##
5865 ## ------------------------------------ ##
5866 _ASBOX
5867     ) |
5868       sed "s/^/$as_me: WARNING:     /" >&2
5869     ;;
5870 esac
5871 echo "$as_me:$LINENO: checking for $ac_header" >&5
5872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   eval "$as_ac_Header=$ac_header_preproc"
5877 fi
5878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5880
5881 fi
5882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5883   cat >>confdefs.h <<_ACEOF
5884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5885 _ACEOF
5886
5887 else
5888   USE_NLS=no
5889 fi
5890
5891 done
5892
5893     echo "$as_me:$LINENO: checking for library containing gettext" >&5
5894 echo $ECHO_N "checking for library containing gettext... $ECHO_C" >&6
5895 if test "${ac_cv_search_gettext+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   ac_func_search_save_LIBS=$LIBS
5899 ac_cv_search_gettext=no
5900 cat >conftest.$ac_ext <<_ACEOF
5901 #line $LINENO "configure"
5902 /* confdefs.h.  */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h.  */
5907
5908 /* Override any gcc2 internal prototype to avoid an error.  */
5909 #ifdef __cplusplus
5910 extern "C"
5911 #endif
5912 /* We use char because int might match the return type of a gcc2
5913    builtin and then its argument prototype would still apply.  */
5914 char gettext ();
5915 int
5916 main ()
5917 {
5918 gettext ();
5919   ;
5920   return 0;
5921 }
5922 _ACEOF
5923 rm -f conftest.$ac_objext conftest$ac_exeext
5924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5925   (eval $ac_link) 2>&5
5926   ac_status=$?
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); } &&
5929          { ac_try='test -s conftest$ac_exeext'
5930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931   (eval $ac_try) 2>&5
5932   ac_status=$?
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); }; }; then
5935   ac_cv_search_gettext="none required"
5936 else
5937   echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5939
5940 fi
5941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5942 if test "$ac_cv_search_gettext" = no; then
5943   for ac_lib in intl; do
5944     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5945     cat >conftest.$ac_ext <<_ACEOF
5946 #line $LINENO "configure"
5947 /* confdefs.h.  */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h.  */
5952
5953 /* Override any gcc2 internal prototype to avoid an error.  */
5954 #ifdef __cplusplus
5955 extern "C"
5956 #endif
5957 /* We use char because int might match the return type of a gcc2
5958    builtin and then its argument prototype would still apply.  */
5959 char gettext ();
5960 int
5961 main ()
5962 {
5963 gettext ();
5964   ;
5965   return 0;
5966 }
5967 _ACEOF
5968 rm -f conftest.$ac_objext conftest$ac_exeext
5969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5970   (eval $ac_link) 2>&5
5971   ac_status=$?
5972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973   (exit $ac_status); } &&
5974          { ac_try='test -s conftest$ac_exeext'
5975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5976   (eval $ac_try) 2>&5
5977   ac_status=$?
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); }; }; then
5980   ac_cv_search_gettext="-l$ac_lib"
5981 break
5982 else
5983   echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5985
5986 fi
5987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5988   done
5989 fi
5990 LIBS=$ac_func_search_save_LIBS
5991 fi
5992 echo "$as_me:$LINENO: result: $ac_cv_search_gettext" >&5
5993 echo "${ECHO_T}$ac_cv_search_gettext" >&6
5994 if test "$ac_cv_search_gettext" != no; then
5995   test "$ac_cv_search_gettext" = "none required" || LIBS="$ac_cv_search_gettext $LIBS"
5996
5997 else
5998   USE_NLS=no
5999 fi
6000
6001   fi
6002   if test $USE_NLS = yes; then
6003     cat >>confdefs.h <<\_ACEOF
6004 #define _GLIBCXX_USE_NLS 1
6005 _ACEOF
6006
6007   fi
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025    # Check whether --enable-cheaders or --disable-cheaders was given.
6026 if test "${enable_cheaders+set}" = set; then
6027   enableval="$enable_cheaders"
6028
6029       case "$enableval" in
6030        c|c_std) ;;
6031        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cheaders" >&5
6032 echo "$as_me: error: Unknown argument to enable/disable cheaders" >&2;}
6033    { (exit 1); exit 1; }; } ;;
6034                           esac
6035
6036 else
6037   enable_cheaders=$c_model
6038 fi;
6039
6040   { echo "$as_me:$LINENO: \"C\" header strategy set to $enable_cheaders" >&5
6041 echo "$as_me: \"C\" header strategy set to $enable_cheaders" >&6;}
6042
6043   C_INCLUDE_DIR='${glibcxx_srcdir}/include/'$enable_cheaders
6044
6045
6046
6047
6048
6049
6050    # Check whether --enable-c-mbchar or --disable-c-mbchar was given.
6051 if test "${enable_c_mbchar+set}" = set; then
6052   enableval="$enable_c_mbchar"
6053
6054       case "$enableval" in
6055        yes|no) ;;
6056        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c-mbchar must be yes or no" >&5
6057 echo "$as_me: error: Argument to enable/disable c-mbchar must be yes or no" >&2;}
6058    { (exit 1); exit 1; }; } ;;
6059       esac
6060
6061 else
6062   enable_c_mbchar=yes
6063 fi;
6064
6065   # Option parsed, now other scripts can test enable_c_mbchar for yes/no.
6066
6067
6068
6069    # Check whether --enable-c99 or --disable-c99 was given.
6070 if test "${enable_c99+set}" = set; then
6071   enableval="$enable_c99"
6072
6073       case "$enableval" in
6074        yes|no) ;;
6075        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable c99 must be yes or no" >&5
6076 echo "$as_me: error: Argument to enable/disable c99 must be yes or no" >&2;}
6077    { (exit 1); exit 1; }; } ;;
6078       esac
6079
6080 else
6081   enable_c99=yes
6082 fi;
6083
6084
6085
6086
6087   ac_ext=cc
6088 ac_cpp='$CXXCPP $CPPFLAGS'
6089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6092
6093
6094   # Check for the existence of <math.h> functions used if C99 is enabled.
6095   ac_c99_math=yes;
6096   echo "$as_me:$LINENO: checking for ISO C99 support in <math.h>" >&5
6097 echo $ECHO_N "checking for ISO C99 support in <math.h>... $ECHO_C" >&6
6098   cat >conftest.$ac_ext <<_ACEOF
6099 #line $LINENO "configure"
6100 /* confdefs.h.  */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h.  */
6105 #include <math.h>
6106 int
6107 main ()
6108 {
6109 fpclassify(0.0);
6110   ;
6111   return 0;
6112 }
6113 _ACEOF
6114 rm -f conftest.$ac_objext
6115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116   (eval $ac_compile) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); } &&
6120          { ac_try='test -s conftest.$ac_objext'
6121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122   (eval $ac_try) 2>&5
6123   ac_status=$?
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); }; }; then
6126   :
6127 else
6128   echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6130
6131 ac_c99_math=no
6132 fi
6133 rm -f conftest.$ac_objext conftest.$ac_ext
6134   cat >conftest.$ac_ext <<_ACEOF
6135 #line $LINENO "configure"
6136 /* confdefs.h.  */
6137 _ACEOF
6138 cat confdefs.h >>conftest.$ac_ext
6139 cat >>conftest.$ac_ext <<_ACEOF
6140 /* end confdefs.h.  */
6141 #include <math.h>
6142 int
6143 main ()
6144 {
6145 isfinite(0.0);
6146   ;
6147   return 0;
6148 }
6149 _ACEOF
6150 rm -f conftest.$ac_objext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6152   (eval $ac_compile) 2>&5
6153   ac_status=$?
6154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155   (exit $ac_status); } &&
6156          { ac_try='test -s conftest.$ac_objext'
6157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158   (eval $ac_try) 2>&5
6159   ac_status=$?
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); }; }; then
6162   :
6163 else
6164   echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 ac_c99_math=no
6168 fi
6169 rm -f conftest.$ac_objext conftest.$ac_ext
6170   cat >conftest.$ac_ext <<_ACEOF
6171 #line $LINENO "configure"
6172 /* confdefs.h.  */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h.  */
6177 #include <math.h>
6178 int
6179 main ()
6180 {
6181 isinf(0.0);
6182   ;
6183   return 0;
6184 }
6185 _ACEOF
6186 rm -f conftest.$ac_objext
6187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188   (eval $ac_compile) 2>&5
6189   ac_status=$?
6190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191   (exit $ac_status); } &&
6192          { ac_try='test -s conftest.$ac_objext'
6193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194   (eval $ac_try) 2>&5
6195   ac_status=$?
6196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197   (exit $ac_status); }; }; then
6198   :
6199 else
6200   echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203 ac_c99_math=no
6204 fi
6205 rm -f conftest.$ac_objext conftest.$ac_ext
6206   cat >conftest.$ac_ext <<_ACEOF
6207 #line $LINENO "configure"
6208 /* confdefs.h.  */
6209 _ACEOF
6210 cat confdefs.h >>conftest.$ac_ext
6211 cat >>conftest.$ac_ext <<_ACEOF
6212 /* end confdefs.h.  */
6213 #include <math.h>
6214 int
6215 main ()
6216 {
6217 isnan(0.0);
6218   ;
6219   return 0;
6220 }
6221 _ACEOF
6222 rm -f conftest.$ac_objext
6223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6224   (eval $ac_compile) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); } &&
6228          { ac_try='test -s conftest.$ac_objext'
6229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230   (eval $ac_try) 2>&5
6231   ac_status=$?
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); }; }; then
6234   :
6235 else
6236   echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239 ac_c99_math=no
6240 fi
6241 rm -f conftest.$ac_objext conftest.$ac_ext
6242   cat >conftest.$ac_ext <<_ACEOF
6243 #line $LINENO "configure"
6244 /* confdefs.h.  */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h.  */
6249 #include <math.h>
6250 int
6251 main ()
6252 {
6253 isnormal(0.0);
6254   ;
6255   return 0;
6256 }
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6260   (eval $ac_compile) 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); } &&
6264          { ac_try='test -s conftest.$ac_objext'
6265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266   (eval $ac_try) 2>&5
6267   ac_status=$?
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); }; }; then
6270   :
6271 else
6272   echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275 ac_c99_math=no
6276 fi
6277 rm -f conftest.$ac_objext conftest.$ac_ext
6278   cat >conftest.$ac_ext <<_ACEOF
6279 #line $LINENO "configure"
6280 /* confdefs.h.  */
6281 _ACEOF
6282 cat confdefs.h >>conftest.$ac_ext
6283 cat >>conftest.$ac_ext <<_ACEOF
6284 /* end confdefs.h.  */
6285 #include <math.h>
6286 int
6287 main ()
6288 {
6289 signbit(0.0);
6290   ;
6291   return 0;
6292 }
6293 _ACEOF
6294 rm -f conftest.$ac_objext
6295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296   (eval $ac_compile) 2>&5
6297   ac_status=$?
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); } &&
6300          { ac_try='test -s conftest.$ac_objext'
6301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302   (eval $ac_try) 2>&5
6303   ac_status=$?
6304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305   (exit $ac_status); }; }; then
6306   :
6307 else
6308   echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6310
6311 ac_c99_math=no
6312 fi
6313 rm -f conftest.$ac_objext conftest.$ac_ext
6314   cat >conftest.$ac_ext <<_ACEOF
6315 #line $LINENO "configure"
6316 /* confdefs.h.  */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h.  */
6321 #include <math.h>
6322 int
6323 main ()
6324 {
6325 isgreater(0.0,0.0);
6326   ;
6327   return 0;
6328 }
6329 _ACEOF
6330 rm -f conftest.$ac_objext
6331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6332   (eval $ac_compile) 2>&5
6333   ac_status=$?
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); } &&
6336          { ac_try='test -s conftest.$ac_objext'
6337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338   (eval $ac_try) 2>&5
6339   ac_status=$?
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); }; }; then
6342   :
6343 else
6344   echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6346
6347 ac_c99_math=no
6348 fi
6349 rm -f conftest.$ac_objext conftest.$ac_ext
6350   cat >conftest.$ac_ext <<_ACEOF
6351 #line $LINENO "configure"
6352 /* confdefs.h.  */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h.  */
6357 #include <math.h>
6358 int
6359 main ()
6360 {
6361 isgreaterequal(0.0,0.0);
6362   ;
6363   return 0;
6364 }
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6368   (eval $ac_compile) 2>&5
6369   ac_status=$?
6370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); } &&
6372          { ac_try='test -s conftest.$ac_objext'
6373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374   (eval $ac_try) 2>&5
6375   ac_status=$?
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); }; }; then
6378   :
6379 else
6380   echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383 ac_c99_math=no
6384 fi
6385 rm -f conftest.$ac_objext conftest.$ac_ext
6386   cat >conftest.$ac_ext <<_ACEOF
6387 #line $LINENO "configure"
6388 /* confdefs.h.  */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h.  */
6393 #include <math.h>
6394 int
6395 main ()
6396 {
6397 isless(0.0,0.0);
6398   ;
6399   return 0;
6400 }
6401 _ACEOF
6402 rm -f conftest.$ac_objext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6404   (eval $ac_compile) 2>&5
6405   ac_status=$?
6406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); } &&
6408          { ac_try='test -s conftest.$ac_objext'
6409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410   (eval $ac_try) 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); }; }; then
6414   :
6415 else
6416   echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 ac_c99_math=no
6420 fi
6421 rm -f conftest.$ac_objext conftest.$ac_ext
6422   cat >conftest.$ac_ext <<_ACEOF
6423 #line $LINENO "configure"
6424 /* confdefs.h.  */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h.  */
6429 #include <math.h>
6430 int
6431 main ()
6432 {
6433 islessequal(0.0,0.0);
6434   ;
6435   return 0;
6436 }
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440   (eval $ac_compile) 2>&5
6441   ac_status=$?
6442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443   (exit $ac_status); } &&
6444          { ac_try='test -s conftest.$ac_objext'
6445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446   (eval $ac_try) 2>&5
6447   ac_status=$?
6448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); }; }; then
6450   :
6451 else
6452   echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6454
6455 ac_c99_math=no
6456 fi
6457 rm -f conftest.$ac_objext conftest.$ac_ext
6458   cat >conftest.$ac_ext <<_ACEOF
6459 #line $LINENO "configure"
6460 /* confdefs.h.  */
6461 _ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h.  */
6465 #include <math.h>
6466 int
6467 main ()
6468 {
6469 islessgreater(0.0,0.0);
6470   ;
6471   return 0;
6472 }
6473 _ACEOF
6474 rm -f conftest.$ac_objext
6475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476   (eval $ac_compile) 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.$ac_objext conftest.$ac_ext
6494   cat >conftest.$ac_ext <<_ACEOF
6495 #line $LINENO "configure"
6496 /* confdefs.h.  */
6497 _ACEOF
6498 cat confdefs.h >>conftest.$ac_ext
6499 cat >>conftest.$ac_ext <<_ACEOF
6500 /* end confdefs.h.  */
6501 #include <math.h>
6502 int
6503 main ()
6504 {
6505 isunordered(0.0,0.0);
6506   ;
6507   return 0;
6508 }
6509 _ACEOF
6510 rm -f conftest.$ac_objext
6511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6512   (eval $ac_compile) 2>&5
6513   ac_status=$?
6514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515   (exit $ac_status); } &&
6516          { ac_try='test -s conftest.$ac_objext'
6517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518   (eval $ac_try) 2>&5
6519   ac_status=$?
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); }; }; then
6522   :
6523 else
6524   echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6526
6527 ac_c99_math=no
6528 fi
6529 rm -f conftest.$ac_objext conftest.$ac_ext
6530   echo "$as_me:$LINENO: result: $ac_c99_math" >&5
6531 echo "${ECHO_T}$ac_c99_math" >&6
6532
6533   # Check for the existence in <stdio.h> of vscanf, et. al.
6534   ac_c99_stdio=yes;
6535   echo "$as_me:$LINENO: checking for ISO C99 support in <stdio.h>" >&5
6536 echo $ECHO_N "checking for ISO C99 support in <stdio.h>... $ECHO_C" >&6
6537   cat >conftest.$ac_ext <<_ACEOF
6538 #line $LINENO "configure"
6539 /* confdefs.h.  */
6540 _ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h.  */
6544 #include <stdio.h>
6545 int
6546 main ()
6547 {
6548 snprintf("12", 0, "%i");
6549   ;
6550   return 0;
6551 }
6552 _ACEOF
6553 rm -f conftest.$ac_objext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555   (eval $ac_compile) 2>&5
6556   ac_status=$?
6557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); } &&
6559          { ac_try='test -s conftest.$ac_objext'
6560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561   (eval $ac_try) 2>&5
6562   ac_status=$?
6563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564   (exit $ac_status); }; }; then
6565   :
6566 else
6567   echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6569
6570 ac_c99_stdio=no
6571 fi
6572 rm -f conftest.$ac_objext conftest.$ac_ext
6573   cat >conftest.$ac_ext <<_ACEOF
6574 #line $LINENO "configure"
6575 /* confdefs.h.  */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h.  */
6580 #include <stdio.h>
6581                   #include <stdarg.h>
6582                   void foo(char* fmt, ...)
6583                   {va_list args; va_start(args, fmt);
6584                   vfscanf(stderr, "%i", args);}
6585 int
6586 main ()
6587 {
6588
6589   ;
6590   return 0;
6591 }
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595   (eval $ac_compile) 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); } &&
6599          { ac_try='test -s conftest.$ac_objext'
6600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601   (eval $ac_try) 2>&5
6602   ac_status=$?
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); }; }; then
6605   :
6606 else
6607   echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6609
6610 ac_c99_stdio=no
6611 fi
6612 rm -f conftest.$ac_objext conftest.$ac_ext
6613   cat >conftest.$ac_ext <<_ACEOF
6614 #line $LINENO "configure"
6615 /* confdefs.h.  */
6616 _ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h.  */
6620 #include <stdio.h>
6621                   #include <stdarg.h>
6622                   void foo(char* fmt, ...)
6623                   {va_list args; va_start(args, fmt);
6624                   vscanf("%i", args);}
6625 int
6626 main ()
6627 {
6628
6629   ;
6630   return 0;
6631 }
6632 _ACEOF
6633 rm -f conftest.$ac_objext
6634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6635   (eval $ac_compile) 2>&5
6636   ac_status=$?
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); } &&
6639          { ac_try='test -s conftest.$ac_objext'
6640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6641   (eval $ac_try) 2>&5
6642   ac_status=$?
6643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644   (exit $ac_status); }; }; then
6645   :
6646 else
6647   echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6649
6650 ac_c99_stdio=no
6651 fi
6652 rm -f conftest.$ac_objext conftest.$ac_ext
6653   cat >conftest.$ac_ext <<_ACEOF
6654 #line $LINENO "configure"
6655 /* confdefs.h.  */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h.  */
6660 #include <stdio.h>
6661                   #include <stdarg.h>
6662                   void foo(char* fmt, ...)
6663                   {va_list args; va_start(args, fmt);
6664                   vsnprintf(fmt, 0, "%i", args);}
6665 int
6666 main ()
6667 {
6668
6669   ;
6670   return 0;
6671 }
6672 _ACEOF
6673 rm -f conftest.$ac_objext
6674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6675   (eval $ac_compile) 2>&5
6676   ac_status=$?
6677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678   (exit $ac_status); } &&
6679          { ac_try='test -s conftest.$ac_objext'
6680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681   (eval $ac_try) 2>&5
6682   ac_status=$?
6683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684   (exit $ac_status); }; }; then
6685   :
6686 else
6687   echo "$as_me: failed program was:" >&5
6688 sed 's/^/| /' conftest.$ac_ext >&5
6689
6690 ac_c99_stdio=no
6691 fi
6692 rm -f conftest.$ac_objext conftest.$ac_ext
6693   cat >conftest.$ac_ext <<_ACEOF
6694 #line $LINENO "configure"
6695 /* confdefs.h.  */
6696 _ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h.  */
6700 #include <stdio.h>
6701                   #include <stdarg.h>
6702                   void foo(char* fmt, ...)
6703                   {va_list args; va_start(args, fmt);
6704                   vsscanf(fmt, "%i", args);}
6705 int
6706 main ()
6707 {
6708
6709   ;
6710   return 0;
6711 }
6712 _ACEOF
6713 rm -f conftest.$ac_objext
6714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6715   (eval $ac_compile) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); } &&
6719          { ac_try='test -s conftest.$ac_objext'
6720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721   (eval $ac_try) 2>&5
6722   ac_status=$?
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); }; }; then
6725   :
6726 else
6727   echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 ac_c99_stdio=no
6731 fi
6732 rm -f conftest.$ac_objext conftest.$ac_ext
6733   echo "$as_me:$LINENO: result: $ac_c99_stdio" >&5
6734 echo "${ECHO_T}$ac_c99_stdio" >&6
6735
6736   # Check for the existence in <stdlib.h> of lldiv_t, et. al.
6737   ac_c99_stdlib=yes;
6738   echo "$as_me:$LINENO: checking for lldiv_t declaration" >&5
6739 echo $ECHO_N "checking for lldiv_t declaration... $ECHO_C" >&6
6740   if test "${ac_c99_lldiv_t+set}" = set; then
6741   echo $ECHO_N "(cached) $ECHO_C" >&6
6742 else
6743
6744   cat >conftest.$ac_ext <<_ACEOF
6745 #line $LINENO "configure"
6746 /* confdefs.h.  */
6747 _ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h.  */
6751 #include <stdlib.h>
6752 int
6753 main ()
6754 {
6755  lldiv_t mydivt;
6756   ;
6757   return 0;
6758 }
6759 _ACEOF
6760 rm -f conftest.$ac_objext
6761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6762   (eval $ac_compile) 2>&5
6763   ac_status=$?
6764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765   (exit $ac_status); } &&
6766          { ac_try='test -s conftest.$ac_objext'
6767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768   (eval $ac_try) 2>&5
6769   ac_status=$?
6770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771   (exit $ac_status); }; }; then
6772   ac_c99_lldiv_t=yes
6773 else
6774   echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6776
6777 ac_c99_lldiv_t=no
6778 fi
6779 rm -f conftest.$ac_objext conftest.$ac_ext
6780
6781 fi
6782
6783   echo "$as_me:$LINENO: result: $ac_c99_lldiv_t" >&5
6784 echo "${ECHO_T}$ac_c99_lldiv_t" >&6
6785
6786   echo "$as_me:$LINENO: checking for ISO C99 support in <stdlib.h>" >&5
6787 echo $ECHO_N "checking for ISO C99 support in <stdlib.h>... $ECHO_C" >&6
6788   cat >conftest.$ac_ext <<_ACEOF
6789 #line $LINENO "configure"
6790 /* confdefs.h.  */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h.  */
6795 #include <stdlib.h>
6796 int
6797 main ()
6798 {
6799 char* tmp; strtof("gnu", &tmp);
6800   ;
6801   return 0;
6802 }
6803 _ACEOF
6804 rm -f conftest.$ac_objext
6805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6806   (eval $ac_compile) 2>&5
6807   ac_status=$?
6808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809   (exit $ac_status); } &&
6810          { ac_try='test -s conftest.$ac_objext'
6811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812   (eval $ac_try) 2>&5
6813   ac_status=$?
6814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815   (exit $ac_status); }; }; then
6816   :
6817 else
6818   echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6820
6821 ac_c99_stdlib=no
6822 fi
6823 rm -f conftest.$ac_objext conftest.$ac_ext
6824   cat >conftest.$ac_ext <<_ACEOF
6825 #line $LINENO "configure"
6826 /* confdefs.h.  */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h.  */
6831 #include <stdlib.h>
6832 int
6833 main ()
6834 {
6835 char* tmp; strtold("gnu", &tmp);
6836   ;
6837   return 0;
6838 }
6839 _ACEOF
6840 rm -f conftest.$ac_objext
6841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6842   (eval $ac_compile) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); } &&
6846          { ac_try='test -s conftest.$ac_objext'
6847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848   (eval $ac_try) 2>&5
6849   ac_status=$?
6850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851   (exit $ac_status); }; }; then
6852   :
6853 else
6854   echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6856
6857 ac_c99_stdlib=no
6858 fi
6859 rm -f conftest.$ac_objext conftest.$ac_ext
6860   cat >conftest.$ac_ext <<_ACEOF
6861 #line $LINENO "configure"
6862 /* confdefs.h.  */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h.  */
6867 #include <stdlib.h>
6868 int
6869 main ()
6870 {
6871 llabs(10);
6872   ;
6873   return 0;
6874 }
6875 _ACEOF
6876 rm -f conftest.$ac_objext
6877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6878   (eval $ac_compile) 2>&5
6879   ac_status=$?
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); } &&
6882          { ac_try='test -s conftest.$ac_objext'
6883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884   (eval $ac_try) 2>&5
6885   ac_status=$?
6886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887   (exit $ac_status); }; }; then
6888   :
6889 else
6890   echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6892
6893 ac_c99_stdlib=no
6894 fi
6895 rm -f conftest.$ac_objext conftest.$ac_ext
6896   cat >conftest.$ac_ext <<_ACEOF
6897 #line $LINENO "configure"
6898 /* confdefs.h.  */
6899 _ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h.  */
6903 #include <stdlib.h>
6904 int
6905 main ()
6906 {
6907 lldiv(10,1);
6908   ;
6909   return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914   (eval $ac_compile) 2>&5
6915   ac_status=$?
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } &&
6918          { ac_try='test -s conftest.$ac_objext'
6919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920   (eval $ac_try) 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }; }; then
6924   :
6925 else
6926   echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929 ac_c99_stdlib=no
6930 fi
6931 rm -f conftest.$ac_objext conftest.$ac_ext
6932   cat >conftest.$ac_ext <<_ACEOF
6933 #line $LINENO "configure"
6934 /* confdefs.h.  */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h.  */
6939 #include <stdlib.h>
6940 int
6941 main ()
6942 {
6943 atoll("10");
6944   ;
6945   return 0;
6946 }
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6950   (eval $ac_compile) 2>&5
6951   ac_status=$?
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); } &&
6954          { ac_try='test -s conftest.$ac_objext'
6955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956   (eval $ac_try) 2>&5
6957   ac_status=$?
6958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); }; }; then
6960   :
6961 else
6962   echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965 ac_c99_stdlib=no
6966 fi
6967 rm -f conftest.$ac_objext conftest.$ac_ext
6968   cat >conftest.$ac_ext <<_ACEOF
6969 #line $LINENO "configure"
6970 /* confdefs.h.  */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h.  */
6975 #include <stdlib.h>
6976 int
6977 main ()
6978 {
6979 _Exit(0);
6980   ;
6981   return 0;
6982 }
6983 _ACEOF
6984 rm -f conftest.$ac_objext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986   (eval $ac_compile) 2>&5
6987   ac_status=$?
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); } &&
6990          { ac_try='test -s conftest.$ac_objext'
6991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992   (eval $ac_try) 2>&5
6993   ac_status=$?
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); }; }; then
6996   :
6997 else
6998   echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 ac_c99_stdlib=no
7002 fi
7003 rm -f conftest.$ac_objext conftest.$ac_ext
7004   if test x"$ac_c99_lldiv_t" = x"no"; then
7005     ac_c99_stdlib=no;
7006   fi;
7007   echo "$as_me:$LINENO: result: $ac_c99_stdlib" >&5
7008 echo "${ECHO_T}$ac_c99_stdlib" >&6
7009
7010   # Check for the existence of <wchar.h> functions used if C99 is enabled.
7011   # XXX the wchar.h checks should be rolled into the general C99 bits.
7012   ac_c99_wchar=yes;
7013   echo "$as_me:$LINENO: checking for additional ISO C99 support in <wchar.h>" >&5
7014 echo $ECHO_N "checking for additional ISO C99 support in <wchar.h>... $ECHO_C" >&6
7015   cat >conftest.$ac_ext <<_ACEOF
7016 #line $LINENO "configure"
7017 /* confdefs.h.  */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h.  */
7022 #include <wchar.h>
7023 int
7024 main ()
7025 {
7026 wcstold(L"10.0", NULL);
7027   ;
7028   return 0;
7029 }
7030 _ACEOF
7031 rm -f conftest.$ac_objext
7032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7033   (eval $ac_compile) 2>&5
7034   ac_status=$?
7035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036   (exit $ac_status); } &&
7037          { ac_try='test -s conftest.$ac_objext'
7038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039   (eval $ac_try) 2>&5
7040   ac_status=$?
7041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042   (exit $ac_status); }; }; then
7043   :
7044 else
7045   echo "$as_me: failed program was:" >&5
7046 sed 's/^/| /' conftest.$ac_ext >&5
7047
7048 ac_c99_wchar=no
7049 fi
7050 rm -f conftest.$ac_objext conftest.$ac_ext
7051   cat >conftest.$ac_ext <<_ACEOF
7052 #line $LINENO "configure"
7053 /* confdefs.h.  */
7054 _ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h.  */
7058 #include <wchar.h>
7059 int
7060 main ()
7061 {
7062 wcstoll(L"10", NULL, 10);
7063   ;
7064   return 0;
7065 }
7066 _ACEOF
7067 rm -f conftest.$ac_objext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069   (eval $ac_compile) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } &&
7073          { ac_try='test -s conftest.$ac_objext'
7074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075   (eval $ac_try) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); }; }; then
7079   :
7080 else
7081   echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7083
7084 ac_c99_wchar=no
7085 fi
7086 rm -f conftest.$ac_objext conftest.$ac_ext
7087   cat >conftest.$ac_ext <<_ACEOF
7088 #line $LINENO "configure"
7089 /* confdefs.h.  */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h.  */
7094 #include <wchar.h>
7095 int
7096 main ()
7097 {
7098 wcstoull(L"10", NULL, 10);
7099   ;
7100   return 0;
7101 }
7102 _ACEOF
7103 rm -f conftest.$ac_objext
7104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7105   (eval $ac_compile) 2>&5
7106   ac_status=$?
7107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); } &&
7109          { ac_try='test -s conftest.$ac_objext'
7110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111   (eval $ac_try) 2>&5
7112   ac_status=$?
7113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114   (exit $ac_status); }; }; then
7115   :
7116 else
7117   echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120 ac_c99_wchar=no
7121 fi
7122 rm -f conftest.$ac_objext conftest.$ac_ext
7123   echo "$as_me:$LINENO: result: $ac_c99_wchar" >&5
7124 echo "${ECHO_T}$ac_c99_wchar" >&6
7125
7126   echo "$as_me:$LINENO: checking for enabled ISO C99 support" >&5
7127 echo $ECHO_N "checking for enabled ISO C99 support... $ECHO_C" >&6
7128   if test x"$ac_c99_math" = x"no" ||
7129      test x"$ac_c99_stdio" = x"no" ||
7130      test x"$ac_c99_stdlib" = x"no" ||
7131      test x"$ac_c99_wchar" = x"no"; then
7132     enable_c99=no;
7133   fi;
7134   echo "$as_me:$LINENO: result: $enable_c99" >&5
7135 echo "${ECHO_T}$enable_c99" >&6
7136
7137   # Option parsed, now set things appropriately
7138   if test x"$enable_c99" = x"yes"; then
7139     cat >>confdefs.h <<\_ACEOF
7140 #define _GLIBCXX_USE_C99 1
7141 _ACEOF
7142
7143   fi
7144
7145   ac_ext=c
7146 ac_cpp='$CPP $CPPFLAGS'
7147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7150
7151
7152
7153    # Check whether --enable-long-long or --disable-long-long was given.
7154 if test "${enable_long_long+set}" = set; then
7155   enableval="$enable_long_long"
7156
7157       case "$enableval" in
7158        yes|no) ;;
7159        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable long-long must be yes or no" >&5
7160 echo "$as_me: error: Argument to enable/disable long-long must be yes or no" >&2;}
7161    { (exit 1); exit 1; }; } ;;
7162       esac
7163
7164 else
7165   enable_long_long=yes
7166 fi;
7167
7168
7169
7170
7171   ac_ext=cc
7172 ac_cpp='$CXXCPP $CPPFLAGS'
7173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7176
7177
7178   echo "$as_me:$LINENO: checking for enabled long long I/O support" >&5
7179 echo $ECHO_N "checking for enabled long long I/O support... $ECHO_C" >&6
7180   # iostreams require strtoll, strtoull to compile
7181   cat >conftest.$ac_ext <<_ACEOF
7182 #line $LINENO "configure"
7183 /* confdefs.h.  */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h.  */
7188 #include <stdlib.h>
7189 int
7190 main ()
7191 {
7192 char* tmp; strtoll("gnu", &tmp, 10);
7193   ;
7194   return 0;
7195 }
7196 _ACEOF
7197 rm -f conftest.$ac_objext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7199   (eval $ac_compile) 2>&5
7200   ac_status=$?
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); } &&
7203          { ac_try='test -s conftest.$ac_objext'
7204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205   (eval $ac_try) 2>&5
7206   ac_status=$?
7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208   (exit $ac_status); }; }; then
7209   :
7210 else
7211   echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7213
7214 enable_long_long=no
7215 fi
7216 rm -f conftest.$ac_objext conftest.$ac_ext
7217   cat >conftest.$ac_ext <<_ACEOF
7218 #line $LINENO "configure"
7219 /* confdefs.h.  */
7220 _ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h.  */
7224 #include <stdlib.h>
7225 int
7226 main ()
7227 {
7228 char* tmp; strtoull("gnu", &tmp, 10);
7229   ;
7230   return 0;
7231 }
7232 _ACEOF
7233 rm -f conftest.$ac_objext
7234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7235   (eval $ac_compile) 2>&5
7236   ac_status=$?
7237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238   (exit $ac_status); } &&
7239          { ac_try='test -s conftest.$ac_objext'
7240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241   (eval $ac_try) 2>&5
7242   ac_status=$?
7243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244   (exit $ac_status); }; }; then
7245   :
7246 else
7247   echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7249
7250 enable_long_long=no
7251 fi
7252 rm -f conftest.$ac_objext conftest.$ac_ext
7253
7254   # Option parsed, now set things appropriately
7255   if test $enable_long_long = yes; then
7256     cat >>confdefs.h <<\_ACEOF
7257 #define _GLIBCXX_USE_LONG_LONG 1
7258 _ACEOF
7259
7260   fi
7261   echo "$as_me:$LINENO: result: $enable_long_long" >&5
7262 echo "${ECHO_T}$enable_long_long" >&6
7263
7264   ac_ext=c
7265 ac_cpp='$CPP $CPPFLAGS'
7266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269
7270
7271
7272   echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7273 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7274   target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
7275   echo "$as_me:$LINENO: result: $target_thread_file" >&5
7276 echo "${ECHO_T}$target_thread_file" >&6
7277
7278   if test $target_thread_file != single; then
7279     cat >>confdefs.h <<\_ACEOF
7280 #define HAVE_GTHR_DEFAULT 1
7281 _ACEOF
7282
7283     cat >>confdefs.h <<\_ACEOF
7284 #define _GLIBCXX_SUPPORTS_WEAK __GXX_WEAK__
7285 _ACEOF
7286
7287   fi
7288
7289   glibcxx_thread_h=gthr-$target_thread_file.h
7290
7291
7292
7293    # Check whether --enable-concept-checks or --disable-concept-checks was given.
7294 if test "${enable_concept_checks+set}" = set; then
7295   enableval="$enable_concept_checks"
7296
7297       case "$enableval" in
7298        yes|no) ;;
7299        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable concept-checks must be yes or no" >&5
7300 echo "$as_me: error: Argument to enable/disable concept-checks must be yes or no" >&2;}
7301    { (exit 1); exit 1; }; } ;;
7302       esac
7303
7304 else
7305   enable_concept_checks=no
7306 fi;
7307
7308   if test $enable_concept_checks = yes; then
7309     cat >>confdefs.h <<\_ACEOF
7310 #define _GLIBCXX_CONCEPT_CHECKS 1
7311 _ACEOF
7312
7313   fi
7314
7315
7316    # Check whether --enable-libstdcxx-debug-flags or --disable-libstdcxx-debug-flags was given.
7317 if test "${enable_libstdcxx_debug_flags+set}" = set; then
7318   enableval="$enable_libstdcxx_debug_flags"
7319   case "x$enable_libstdcxx_debug_flags" in
7320       xno | x)    enable_libstdcxx_debug_flags= ;;
7321       x-*)        ;;
7322       *)          { { echo "$as_me:$LINENO: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&5
7323 echo "$as_me: error: --enable-libstdcxx-debug-flags needs compiler flags as arguments" >&2;}
7324    { (exit 1); exit 1; }; } ;;
7325      esac
7326 else
7327   enable_libstdcxx_debug_flags="-g3 -O0"
7328 fi;
7329
7330
7331   # Option parsed, now set things appropriately
7332   DEBUG_FLAGS="$enable_libstdcxx_debug_flags"
7333
7334
7335   { echo "$as_me:$LINENO: Debug build flags set to $DEBUG_FLAGS" >&5
7336 echo "$as_me: Debug build flags set to $DEBUG_FLAGS" >&6;}
7337
7338
7339   echo "$as_me:$LINENO: checking for additional debug build" >&5
7340 echo $ECHO_N "checking for additional debug build... $ECHO_C" >&6
7341    # Check whether --enable-libstdcxx-debug or --disable-libstdcxx-debug was given.
7342 if test "${enable_libstdcxx_debug+set}" = set; then
7343   enableval="$enable_libstdcxx_debug"
7344
7345       case "$enableval" in
7346        yes|no) ;;
7347        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&5
7348 echo "$as_me: error: Argument to enable/disable libstdcxx-debug must be yes or no" >&2;}
7349    { (exit 1); exit 1; }; } ;;
7350       esac
7351
7352 else
7353   enable_libstdcxx_debug=no
7354 fi;
7355
7356   echo "$as_me:$LINENO: result: $enable_libstdcxx_debug" >&5
7357 echo "${ECHO_T}$enable_libstdcxx_debug" >&6
7358
7359
7360   echo "$as_me:$LINENO: checking for extra compiler flags for building" >&5
7361 echo $ECHO_N "checking for extra compiler flags for building... $ECHO_C" >&6
7362    # Check whether --enable-cxx-flags or --disable-cxx-flags was given.
7363 if test "${enable_cxx_flags+set}" = set; then
7364   enableval="$enable_cxx_flags"
7365   case "x$enable_cxx_flags" in
7366       xno | x)   enable_cxx_flags= ;;
7367       x-*)       ;;
7368       *)         { { echo "$as_me:$LINENO: error: --enable-cxx-flags needs compiler flags as arguments" >&5
7369 echo "$as_me: error: --enable-cxx-flags needs compiler flags as arguments" >&2;}
7370    { (exit 1); exit 1; }; } ;;
7371      esac
7372 else
7373   enable_cxx_flags=
7374 fi;
7375
7376
7377   # Run through flags (either default or command-line) and set anything
7378   # extra (e.g., #defines) that must accompany particular g++ options.
7379   if test -n "$enable_cxx_flags"; then
7380     for f in $enable_cxx_flags; do
7381       case "$f" in
7382         -fhonor-std)  ;;
7383         -*)  ;;
7384         *)   # and we're trying to pass /what/ exactly?
7385              { { echo "$as_me:$LINENO: error: compiler flags start with a -" >&5
7386 echo "$as_me: error: compiler flags start with a -" >&2;}
7387    { (exit 1); exit 1; }; } ;;
7388       esac
7389     done
7390   fi
7391
7392   EXTRA_CXX_FLAGS="$enable_cxx_flags"
7393   echo "$as_me:$LINENO: result: $EXTRA_CXX_FLAGS" >&5
7394 echo "${ECHO_T}$EXTRA_CXX_FLAGS" >&6
7395
7396
7397
7398 # No surprises, no surprises...
7399 if test $atomicity_include_dir = cpu/generic ; then
7400   { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
7401 echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
7402   if test $target_thread_file = single; then
7403     { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
7404 echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
7405     { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
7406 echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
7407   else
7408     { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
7409 echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
7410     { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
7411 echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
7412   fi
7413 fi
7414
7415
7416 if $GLIBCXX_IS_NATIVE; then
7417
7418   # We can do more elaborate tests that assume a working linker.
7419   CANADIAN=no
7420
7421   # Check for available headers.
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
7436   machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
7437   sys/types.h
7438 do
7439 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7441   echo "$as_me:$LINENO: checking for $ac_header" >&5
7442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7444   echo $ECHO_N "(cached) $ECHO_C" >&6
7445 fi
7446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7448 else
7449   # Is the header compilable?
7450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7452 cat >conftest.$ac_ext <<_ACEOF
7453 #line $LINENO "configure"
7454 /* confdefs.h.  */
7455 _ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h.  */
7459 $ac_includes_default
7460 #include <$ac_header>
7461 _ACEOF
7462 rm -f conftest.$ac_objext
7463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7464   (eval $ac_compile) 2>&5
7465   ac_status=$?
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); } &&
7468          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7474   ac_header_compiler=yes
7475 else
7476   echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479 ac_header_compiler=no
7480 fi
7481 rm -f conftest.$ac_objext conftest.$ac_ext
7482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7483 echo "${ECHO_T}$ac_header_compiler" >&6
7484
7485 # Is the header present?
7486 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7488 cat >conftest.$ac_ext <<_ACEOF
7489 #line $LINENO "configure"
7490 /* confdefs.h.  */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h.  */
7495 #include <$ac_header>
7496 _ACEOF
7497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7498   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7499   ac_status=$?
7500   grep -v '^ *+' conftest.er1 >conftest.err
7501   rm -f conftest.er1
7502   cat conftest.err >&5
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); } >/dev/null; then
7505   if test -s conftest.err; then
7506     ac_cpp_err=$ac_c_preproc_warn_flag
7507   else
7508     ac_cpp_err=
7509   fi
7510 else
7511   ac_cpp_err=yes
7512 fi
7513 if test -z "$ac_cpp_err"; then
7514   ac_header_preproc=yes
7515 else
7516   echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7518
7519   ac_header_preproc=no
7520 fi
7521 rm -f conftest.err conftest.$ac_ext
7522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7523 echo "${ECHO_T}$ac_header_preproc" >&6
7524
7525 # So?  What about this header?
7526 case $ac_header_compiler:$ac_header_preproc in
7527   yes:no )
7528     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7532     (
7533       cat <<\_ASBOX
7534 ## ------------------------------------ ##
7535 ## Report this to bug-autoconf@gnu.org. ##
7536 ## ------------------------------------ ##
7537 _ASBOX
7538     ) |
7539       sed "s/^/$as_me: WARNING:     /" >&2
7540     ;;
7541   no:yes )
7542     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7543 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7544     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7545 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7548     (
7549       cat <<\_ASBOX
7550 ## ------------------------------------ ##
7551 ## Report this to bug-autoconf@gnu.org. ##
7552 ## ------------------------------------ ##
7553 _ASBOX
7554     ) |
7555       sed "s/^/$as_me: WARNING:     /" >&2
7556     ;;
7557 esac
7558 echo "$as_me:$LINENO: checking for $ac_header" >&5
7559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7561   echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563   eval "$as_ac_Header=$ac_header_preproc"
7564 fi
7565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7567
7568 fi
7569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7570   cat >>confdefs.h <<_ACEOF
7571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7572 _ACEOF
7573
7574 fi
7575
7576 done
7577
7578
7579
7580   # All these tests are for C++; save the language and the compiler flags.
7581   # The CXXFLAGS thing is suspicious, but based on similar bits previously
7582   # found in GLIBCXX_CONFIGURE.
7583
7584
7585   ac_ext=cc
7586 ac_cpp='$CXXCPP $CPPFLAGS'
7587 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7588 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7589 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7590
7591   ac_test_CXXFLAGS="${CXXFLAGS+set}"
7592   ac_save_CXXFLAGS="$CXXFLAGS"
7593
7594   # Check for maintainer-mode bits.
7595   if test x"$USE_MAINTAINER_MODE" = xno; then
7596     WERROR=''
7597   else
7598     WERROR='-Werror'
7599   fi
7600
7601   # Check for -ffunction-sections -fdata-sections
7602   echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
7603 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
7604   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
7605   cat >conftest.$ac_ext <<_ACEOF
7606 #line $LINENO "configure"
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612
7613 int
7614 main ()
7615 {
7616 int foo;
7617   ;
7618   return 0;
7619 }
7620 _ACEOF
7621 rm -f conftest.$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623   (eval $ac_compile) 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); } &&
7627          { ac_try='test -s conftest.$ac_objext'
7628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629   (eval $ac_try) 2>&5
7630   ac_status=$?
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); }; }; then
7633   ac_fdsections=yes
7634 else
7635   echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7637
7638 ac_fdsections=no
7639 fi
7640 rm -f conftest.$ac_objext conftest.$ac_ext
7641   if test "$ac_test_CXXFLAGS" = set; then
7642     CXXFLAGS="$ac_save_CXXFLAGS"
7643   else
7644     # this is the suspicious part
7645     CXXFLAGS=''
7646   fi
7647   if test x"$ac_fdsections" = x"yes"; then
7648     SECTION_FLAGS='-ffunction-sections -fdata-sections'
7649   fi
7650   echo "$as_me:$LINENO: result: $ac_fdsections" >&5
7651 echo "${ECHO_T}$ac_fdsections" >&6
7652
7653   ac_ext=c
7654 ac_cpp='$CPP $CPPFLAGS'
7655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658
7659
7660
7661
7662
7663   # If we're not using GNU ld, then there's no point in even trying these
7664   # tests.  Check for that first.  We should have already tested for gld
7665   # by now (in libtool), but require it now just to be safe...
7666   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
7667   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
7668
7669
7670
7671   # The name set by libtool depends on the version of libtool.  Shame on us
7672   # for depending on an impl detail, but c'est la vie.  Older versions used
7673   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
7674   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
7675   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
7676   # set (hence we're using an older libtool), then set it.
7677   if test x${with_gnu_ld+set} != xset; then
7678     if test x${ac_cv_prog_gnu_ld+set} != xset; then
7679       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
7680       with_gnu_ld=no
7681     else
7682       with_gnu_ld=$ac_cv_prog_gnu_ld
7683     fi
7684   fi
7685
7686   # Start by getting the version number.  I think the libtool test already
7687   # does some of this, but throws away the result.
7688
7689   ldver=`$LD --version 2>/dev/null | head -1 | \
7690          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
7691
7692   glibcxx_gnu_ld_version=`echo $ldver | \
7693          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
7694
7695   # Set --gc-sections.
7696   if test "$with_gnu_ld" = "notbroken"; then
7697     # GNU ld it is!  Joy and bunny rabbits!
7698
7699     # All these tests are for C++; save the language and the compiler flags.
7700     # Need to do this so that g++ won't try to link in libstdc++
7701     ac_test_CFLAGS="${CFLAGS+set}"
7702     ac_save_CFLAGS="$CFLAGS"
7703     CFLAGS='-x c++  -Wl,--gc-sections'
7704
7705     # Check for -Wl,--gc-sections
7706     # XXX This test is broken at the moment, as symbols required for linking
7707     # are now in libsupc++ (not built yet).  In addition, this test has
7708     # cored on solaris in the past.  In addition, --gc-sections doesn't
7709     # really work at the moment (keeps on discarding used sections, first
7710     # .eh_frame and now some of the glibc sections for iconv).
7711     # Bzzzzt.  Thanks for playing, maybe next time.
7712     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
7713 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
7714     if test "$cross_compiling" = yes; then
7715   ac_sectionLDflags=yes
7716 else
7717   cat >conftest.$ac_ext <<_ACEOF
7718 #line $LINENO "configure"
7719 /* confdefs.h.  */
7720 _ACEOF
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h.  */
7724
7725      int main(void)
7726      {
7727        try { throw 1; }
7728        catch (...) { };
7729        return 0;
7730      }
7731
7732 _ACEOF
7733 rm -f conftest$ac_exeext
7734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7735   (eval $ac_link) 2>&5
7736   ac_status=$?
7737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740   (eval $ac_try) 2>&5
7741   ac_status=$?
7742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); }; }; then
7744   ac_sectionLDflags=yes
7745 else
7746   echo "$as_me: program exited with status $ac_status" >&5
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7749
7750 ( exit $ac_status )
7751 ac_sectionLDflags=no
7752 fi
7753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7754 fi
7755     if test "$ac_test_CFLAGS" = set; then
7756       CFLAGS="$ac_save_CFLAGS"
7757     else
7758       # this is the suspicious part
7759       CFLAGS=''
7760     fi
7761     if test "$ac_sectionLDflags" = "yes"; then
7762       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
7763     fi
7764     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
7765 echo "${ECHO_T}$ac_sectionLDflags" >&6
7766   fi
7767
7768   # Set linker optimization flags.
7769   if test x"$with_gnu_ld" = x"yes"; then
7770     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
7771   fi
7772
7773
7774
7775
7776
7777   ac_test_CXXFLAGS="${CXXFLAGS+set}"
7778   ac_save_CXXFLAGS="$CXXFLAGS"
7779   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
7780
7781     echo "$as_me:$LINENO: checking for sin in -lm" >&5
7782 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
7783 if test "${ac_cv_lib_m_sin+set}" = set; then
7784   echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786   ac_check_lib_save_LIBS=$LIBS
7787 LIBS="-lm  $LIBS"
7788 cat >conftest.$ac_ext <<_ACEOF
7789 #line $LINENO "configure"
7790 /* confdefs.h.  */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h.  */
7795
7796 /* Override any gcc2 internal prototype to avoid an error.  */
7797 #ifdef __cplusplus
7798 extern "C"
7799 #endif
7800 /* We use char because int might match the return type of a gcc2
7801    builtin and then its argument prototype would still apply.  */
7802 char sin ();
7803 int
7804 main ()
7805 {
7806 sin ();
7807   ;
7808   return 0;
7809 }
7810 _ACEOF
7811 rm -f conftest.$ac_objext conftest$ac_exeext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7813   (eval $ac_link) 2>&5
7814   ac_status=$?
7815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816   (exit $ac_status); } &&
7817          { ac_try='test -s conftest$ac_exeext'
7818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7819   (eval $ac_try) 2>&5
7820   ac_status=$?
7821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822   (exit $ac_status); }; }; then
7823   ac_cv_lib_m_sin=yes
7824 else
7825   echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7827
7828 ac_cv_lib_m_sin=no
7829 fi
7830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7831 LIBS=$ac_check_lib_save_LIBS
7832 fi
7833 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
7834 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
7835 if test $ac_cv_lib_m_sin = yes; then
7836   libm="-lm"
7837 fi
7838
7839   ac_save_LIBS="$LIBS"
7840   LIBS="$LIBS $libm"
7841
7842
7843
7844   echo "$as_me:$LINENO: checking for isinf declaration" >&5
7845 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
7846   if test x${glibcxx_cv_func_isinf_use+set} != xset; then
7847     if test "${glibcxx_cv_func_isinf_use+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850
7851
7852
7853       ac_ext=cc
7854 ac_cpp='$CXXCPP $CPPFLAGS'
7855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7858
7859       cat >conftest.$ac_ext <<_ACEOF
7860 #line $LINENO "configure"
7861 /* confdefs.h.  */
7862 _ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h.  */
7866 #include <math.h>
7867                       #ifdef HAVE_IEEEFP_H
7868                       #include <ieeefp.h>
7869                       #endif
7870
7871 int
7872 main ()
7873 {
7874  isinf(0);
7875   ;
7876   return 0;
7877 }
7878 _ACEOF
7879 rm -f conftest.$ac_objext
7880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881   (eval $ac_compile) 2>&5
7882   ac_status=$?
7883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884   (exit $ac_status); } &&
7885          { ac_try='test -s conftest.$ac_objext'
7886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7887   (eval $ac_try) 2>&5
7888   ac_status=$?
7889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890   (exit $ac_status); }; }; then
7891   glibcxx_cv_func_isinf_use=yes
7892 else
7893   echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7895
7896 glibcxx_cv_func_isinf_use=no
7897 fi
7898 rm -f conftest.$ac_objext conftest.$ac_ext
7899       ac_ext=c
7900 ac_cpp='$CPP $CPPFLAGS'
7901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904
7905
7906 fi
7907
7908   fi
7909   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
7910 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
7911
7912   if test x$glibcxx_cv_func_isinf_use = x"yes"; then
7913
7914 for ac_func in isinf
7915 do
7916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7917 echo "$as_me:$LINENO: checking for $ac_func" >&5
7918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7919 if eval "test \"\${$as_ac_var+set}\" = set"; then
7920   echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922   cat >conftest.$ac_ext <<_ACEOF
7923 #line $LINENO "configure"
7924 /* confdefs.h.  */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h.  */
7929 /* System header to define __stub macros and hopefully few prototypes,
7930     which can conflict with char $ac_func (); below.
7931     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7932     <limits.h> exists even on freestanding compilers.  */
7933 #ifdef __STDC__
7934 # include <limits.h>
7935 #else
7936 # include <assert.h>
7937 #endif
7938 /* Override any gcc2 internal prototype to avoid an error.  */
7939 #ifdef __cplusplus
7940 extern "C"
7941 {
7942 #endif
7943 /* We use char because int might match the return type of a gcc2
7944    builtin and then its argument prototype would still apply.  */
7945 char $ac_func ();
7946 /* The GNU C library defines this for functions which it implements
7947     to always fail with ENOSYS.  Some functions are actually named
7948     something starting with __ and the normal name is an alias.  */
7949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7950 choke me
7951 #else
7952 char (*f) () = $ac_func;
7953 #endif
7954 #ifdef __cplusplus
7955 }
7956 #endif
7957
7958 int
7959 main ()
7960 {
7961 return f != $ac_func;
7962   ;
7963   return 0;
7964 }
7965 _ACEOF
7966 rm -f conftest.$ac_objext conftest$ac_exeext
7967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7968   (eval $ac_link) 2>&5
7969   ac_status=$?
7970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971   (exit $ac_status); } &&
7972          { ac_try='test -s conftest$ac_exeext'
7973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974   (eval $ac_try) 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); }; }; then
7978   eval "$as_ac_var=yes"
7979 else
7980   echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983 eval "$as_ac_var=no"
7984 fi
7985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7986 fi
7987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7989 if test `eval echo '${'$as_ac_var'}'` = yes; then
7990   cat >>confdefs.h <<_ACEOF
7991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7992 _ACEOF
7993
7994 fi
7995 done
7996
7997   else
7998
7999   echo "$as_me:$LINENO: checking for _isinf declaration" >&5
8000 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
8001   if test x${glibcxx_cv_func__isinf_use+set} != xset; then
8002     if test "${glibcxx_cv_func__isinf_use+set}" = set; then
8003   echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005
8006
8007
8008       ac_ext=cc
8009 ac_cpp='$CXXCPP $CPPFLAGS'
8010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8013
8014       cat >conftest.$ac_ext <<_ACEOF
8015 #line $LINENO "configure"
8016 /* confdefs.h.  */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h.  */
8021 #include <math.h>
8022                       #ifdef HAVE_IEEEFP_H
8023                       #include <ieeefp.h>
8024                       #endif
8025
8026 int
8027 main ()
8028 {
8029  _isinf(0);
8030   ;
8031   return 0;
8032 }
8033 _ACEOF
8034 rm -f conftest.$ac_objext
8035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8036   (eval $ac_compile) 2>&5
8037   ac_status=$?
8038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039   (exit $ac_status); } &&
8040          { ac_try='test -s conftest.$ac_objext'
8041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042   (eval $ac_try) 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); }; }; then
8046   glibcxx_cv_func__isinf_use=yes
8047 else
8048   echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8050
8051 glibcxx_cv_func__isinf_use=no
8052 fi
8053 rm -f conftest.$ac_objext conftest.$ac_ext
8054       ac_ext=c
8055 ac_cpp='$CPP $CPPFLAGS'
8056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8059
8060
8061 fi
8062
8063   fi
8064   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
8065 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
8066
8067     if test x$glibcxx_cv_func__isinf_use = x"yes"; then
8068
8069 for ac_func in _isinf
8070 do
8071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8072 echo "$as_me:$LINENO: checking for $ac_func" >&5
8073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8074 if eval "test \"\${$as_ac_var+set}\" = set"; then
8075   echo $ECHO_N "(cached) $ECHO_C" >&6
8076 else
8077   cat >conftest.$ac_ext <<_ACEOF
8078 #line $LINENO "configure"
8079 /* confdefs.h.  */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h.  */
8084 /* System header to define __stub macros and hopefully few prototypes,
8085     which can conflict with char $ac_func (); below.
8086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8087     <limits.h> exists even on freestanding compilers.  */
8088 #ifdef __STDC__
8089 # include <limits.h>
8090 #else
8091 # include <assert.h>
8092 #endif
8093 /* Override any gcc2 internal prototype to avoid an error.  */
8094 #ifdef __cplusplus
8095 extern "C"
8096 {
8097 #endif
8098 /* We use char because int might match the return type of a gcc2
8099    builtin and then its argument prototype would still apply.  */
8100 char $ac_func ();
8101 /* The GNU C library defines this for functions which it implements
8102     to always fail with ENOSYS.  Some functions are actually named
8103     something starting with __ and the normal name is an alias.  */
8104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8105 choke me
8106 #else
8107 char (*f) () = $ac_func;
8108 #endif
8109 #ifdef __cplusplus
8110 }
8111 #endif
8112
8113 int
8114 main ()
8115 {
8116 return f != $ac_func;
8117   ;
8118   return 0;
8119 }
8120 _ACEOF
8121 rm -f conftest.$ac_objext conftest$ac_exeext
8122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8123   (eval $ac_link) 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); } &&
8127          { ac_try='test -s conftest$ac_exeext'
8128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129   (eval $ac_try) 2>&5
8130   ac_status=$?
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); }; }; then
8133   eval "$as_ac_var=yes"
8134 else
8135   echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8137
8138 eval "$as_ac_var=no"
8139 fi
8140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8141 fi
8142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8144 if test `eval echo '${'$as_ac_var'}'` = yes; then
8145   cat >>confdefs.h <<_ACEOF
8146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8147 _ACEOF
8148
8149 fi
8150 done
8151
8152     fi
8153   fi
8154
8155
8156
8157   echo "$as_me:$LINENO: checking for isnan declaration" >&5
8158 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
8159   if test x${glibcxx_cv_func_isnan_use+set} != xset; then
8160     if test "${glibcxx_cv_func_isnan_use+set}" = set; then
8161   echo $ECHO_N "(cached) $ECHO_C" >&6
8162 else
8163
8164
8165
8166       ac_ext=cc
8167 ac_cpp='$CXXCPP $CPPFLAGS'
8168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8171
8172       cat >conftest.$ac_ext <<_ACEOF
8173 #line $LINENO "configure"
8174 /* confdefs.h.  */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h.  */
8179 #include <math.h>
8180                       #ifdef HAVE_IEEEFP_H
8181                       #include <ieeefp.h>
8182                       #endif
8183
8184 int
8185 main ()
8186 {
8187  isnan(0);
8188   ;
8189   return 0;
8190 }
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8194   (eval $ac_compile) 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); } &&
8198          { ac_try='test -s conftest.$ac_objext'
8199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200   (eval $ac_try) 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); }; }; then
8204   glibcxx_cv_func_isnan_use=yes
8205 else
8206   echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8208
8209 glibcxx_cv_func_isnan_use=no
8210 fi
8211 rm -f conftest.$ac_objext conftest.$ac_ext
8212       ac_ext=c
8213 ac_cpp='$CPP $CPPFLAGS'
8214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8217
8218
8219 fi
8220
8221   fi
8222   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
8223 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
8224
8225   if test x$glibcxx_cv_func_isnan_use = x"yes"; then
8226
8227 for ac_func in isnan
8228 do
8229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8230 echo "$as_me:$LINENO: checking for $ac_func" >&5
8231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8232 if eval "test \"\${$as_ac_var+set}\" = set"; then
8233   echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235   cat >conftest.$ac_ext <<_ACEOF
8236 #line $LINENO "configure"
8237 /* confdefs.h.  */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h.  */
8242 /* System header to define __stub macros and hopefully few prototypes,
8243     which can conflict with char $ac_func (); below.
8244     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8245     <limits.h> exists even on freestanding compilers.  */
8246 #ifdef __STDC__
8247 # include <limits.h>
8248 #else
8249 # include <assert.h>
8250 #endif
8251 /* Override any gcc2 internal prototype to avoid an error.  */
8252 #ifdef __cplusplus
8253 extern "C"
8254 {
8255 #endif
8256 /* We use char because int might match the return type of a gcc2
8257    builtin and then its argument prototype would still apply.  */
8258 char $ac_func ();
8259 /* The GNU C library defines this for functions which it implements
8260     to always fail with ENOSYS.  Some functions are actually named
8261     something starting with __ and the normal name is an alias.  */
8262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8263 choke me
8264 #else
8265 char (*f) () = $ac_func;
8266 #endif
8267 #ifdef __cplusplus
8268 }
8269 #endif
8270
8271 int
8272 main ()
8273 {
8274 return f != $ac_func;
8275   ;
8276   return 0;
8277 }
8278 _ACEOF
8279 rm -f conftest.$ac_objext conftest$ac_exeext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8281   (eval $ac_link) 2>&5
8282   ac_status=$?
8283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284   (exit $ac_status); } &&
8285          { ac_try='test -s conftest$ac_exeext'
8286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287   (eval $ac_try) 2>&5
8288   ac_status=$?
8289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290   (exit $ac_status); }; }; then
8291   eval "$as_ac_var=yes"
8292 else
8293   echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8295
8296 eval "$as_ac_var=no"
8297 fi
8298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8299 fi
8300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8301 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8302 if test `eval echo '${'$as_ac_var'}'` = yes; then
8303   cat >>confdefs.h <<_ACEOF
8304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8305 _ACEOF
8306
8307 fi
8308 done
8309
8310   else
8311
8312   echo "$as_me:$LINENO: checking for _isnan declaration" >&5
8313 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
8314   if test x${glibcxx_cv_func__isnan_use+set} != xset; then
8315     if test "${glibcxx_cv_func__isnan_use+set}" = set; then
8316   echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318
8319
8320
8321       ac_ext=cc
8322 ac_cpp='$CXXCPP $CPPFLAGS'
8323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8326
8327       cat >conftest.$ac_ext <<_ACEOF
8328 #line $LINENO "configure"
8329 /* confdefs.h.  */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h.  */
8334 #include <math.h>
8335                       #ifdef HAVE_IEEEFP_H
8336                       #include <ieeefp.h>
8337                       #endif
8338
8339 int
8340 main ()
8341 {
8342  _isnan(0);
8343   ;
8344   return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8349   (eval $ac_compile) 2>&5
8350   ac_status=$?
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); } &&
8353          { ac_try='test -s conftest.$ac_objext'
8354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355   (eval $ac_try) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; }; then
8359   glibcxx_cv_func__isnan_use=yes
8360 else
8361   echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.$ac_ext >&5
8363
8364 glibcxx_cv_func__isnan_use=no
8365 fi
8366 rm -f conftest.$ac_objext conftest.$ac_ext
8367       ac_ext=c
8368 ac_cpp='$CPP $CPPFLAGS'
8369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8372
8373
8374 fi
8375
8376   fi
8377   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
8378 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
8379
8380     if test x$glibcxx_cv_func__isnan_use = x"yes"; then
8381
8382 for ac_func in _isnan
8383 do
8384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8385 echo "$as_me:$LINENO: checking for $ac_func" >&5
8386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8387 if eval "test \"\${$as_ac_var+set}\" = set"; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390   cat >conftest.$ac_ext <<_ACEOF
8391 #line $LINENO "configure"
8392 /* confdefs.h.  */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h.  */
8397 /* System header to define __stub macros and hopefully few prototypes,
8398     which can conflict with char $ac_func (); below.
8399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8400     <limits.h> exists even on freestanding compilers.  */
8401 #ifdef __STDC__
8402 # include <limits.h>
8403 #else
8404 # include <assert.h>
8405 #endif
8406 /* Override any gcc2 internal prototype to avoid an error.  */
8407 #ifdef __cplusplus
8408 extern "C"
8409 {
8410 #endif
8411 /* We use char because int might match the return type of a gcc2
8412    builtin and then its argument prototype would still apply.  */
8413 char $ac_func ();
8414 /* The GNU C library defines this for functions which it implements
8415     to always fail with ENOSYS.  Some functions are actually named
8416     something starting with __ and the normal name is an alias.  */
8417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8418 choke me
8419 #else
8420 char (*f) () = $ac_func;
8421 #endif
8422 #ifdef __cplusplus
8423 }
8424 #endif
8425
8426 int
8427 main ()
8428 {
8429 return f != $ac_func;
8430   ;
8431   return 0;
8432 }
8433 _ACEOF
8434 rm -f conftest.$ac_objext conftest$ac_exeext
8435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8436   (eval $ac_link) 2>&5
8437   ac_status=$?
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); } &&
8440          { ac_try='test -s conftest$ac_exeext'
8441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442   (eval $ac_try) 2>&5
8443   ac_status=$?
8444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445   (exit $ac_status); }; }; then
8446   eval "$as_ac_var=yes"
8447 else
8448   echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8450
8451 eval "$as_ac_var=no"
8452 fi
8453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8454 fi
8455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8457 if test `eval echo '${'$as_ac_var'}'` = yes; then
8458   cat >>confdefs.h <<_ACEOF
8459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8460 _ACEOF
8461
8462 fi
8463 done
8464
8465     fi
8466   fi
8467
8468
8469
8470   echo "$as_me:$LINENO: checking for finite declaration" >&5
8471 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
8472   if test x${glibcxx_cv_func_finite_use+set} != xset; then
8473     if test "${glibcxx_cv_func_finite_use+set}" = set; then
8474   echo $ECHO_N "(cached) $ECHO_C" >&6
8475 else
8476
8477
8478
8479       ac_ext=cc
8480 ac_cpp='$CXXCPP $CPPFLAGS'
8481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8484
8485       cat >conftest.$ac_ext <<_ACEOF
8486 #line $LINENO "configure"
8487 /* confdefs.h.  */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h.  */
8492 #include <math.h>
8493                       #ifdef HAVE_IEEEFP_H
8494                       #include <ieeefp.h>
8495                       #endif
8496
8497 int
8498 main ()
8499 {
8500  finite(0);
8501   ;
8502   return 0;
8503 }
8504 _ACEOF
8505 rm -f conftest.$ac_objext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8507   (eval $ac_compile) 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); } &&
8511          { ac_try='test -s conftest.$ac_objext'
8512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513   (eval $ac_try) 2>&5
8514   ac_status=$?
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); }; }; then
8517   glibcxx_cv_func_finite_use=yes
8518 else
8519   echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8521
8522 glibcxx_cv_func_finite_use=no
8523 fi
8524 rm -f conftest.$ac_objext conftest.$ac_ext
8525       ac_ext=c
8526 ac_cpp='$CPP $CPPFLAGS'
8527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8530
8531
8532 fi
8533
8534   fi
8535   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
8536 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
8537
8538   if test x$glibcxx_cv_func_finite_use = x"yes"; then
8539
8540 for ac_func in finite
8541 do
8542 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8543 echo "$as_me:$LINENO: checking for $ac_func" >&5
8544 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8545 if eval "test \"\${$as_ac_var+set}\" = set"; then
8546   echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548   cat >conftest.$ac_ext <<_ACEOF
8549 #line $LINENO "configure"
8550 /* confdefs.h.  */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h.  */
8555 /* System header to define __stub macros and hopefully few prototypes,
8556     which can conflict with char $ac_func (); below.
8557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8558     <limits.h> exists even on freestanding compilers.  */
8559 #ifdef __STDC__
8560 # include <limits.h>
8561 #else
8562 # include <assert.h>
8563 #endif
8564 /* Override any gcc2 internal prototype to avoid an error.  */
8565 #ifdef __cplusplus
8566 extern "C"
8567 {
8568 #endif
8569 /* We use char because int might match the return type of a gcc2
8570    builtin and then its argument prototype would still apply.  */
8571 char $ac_func ();
8572 /* The GNU C library defines this for functions which it implements
8573     to always fail with ENOSYS.  Some functions are actually named
8574     something starting with __ and the normal name is an alias.  */
8575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8576 choke me
8577 #else
8578 char (*f) () = $ac_func;
8579 #endif
8580 #ifdef __cplusplus
8581 }
8582 #endif
8583
8584 int
8585 main ()
8586 {
8587 return f != $ac_func;
8588   ;
8589   return 0;
8590 }
8591 _ACEOF
8592 rm -f conftest.$ac_objext conftest$ac_exeext
8593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8594   (eval $ac_link) 2>&5
8595   ac_status=$?
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); } &&
8598          { ac_try='test -s conftest$ac_exeext'
8599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600   (eval $ac_try) 2>&5
8601   ac_status=$?
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); }; }; then
8604   eval "$as_ac_var=yes"
8605 else
8606   echo "$as_me: failed program was:" >&5
8607 sed 's/^/| /' conftest.$ac_ext >&5
8608
8609 eval "$as_ac_var=no"
8610 fi
8611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8612 fi
8613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8615 if test `eval echo '${'$as_ac_var'}'` = yes; then
8616   cat >>confdefs.h <<_ACEOF
8617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8618 _ACEOF
8619
8620 fi
8621 done
8622
8623   else
8624
8625   echo "$as_me:$LINENO: checking for _finite declaration" >&5
8626 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
8627   if test x${glibcxx_cv_func__finite_use+set} != xset; then
8628     if test "${glibcxx_cv_func__finite_use+set}" = set; then
8629   echo $ECHO_N "(cached) $ECHO_C" >&6
8630 else
8631
8632
8633
8634       ac_ext=cc
8635 ac_cpp='$CXXCPP $CPPFLAGS'
8636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8639
8640       cat >conftest.$ac_ext <<_ACEOF
8641 #line $LINENO "configure"
8642 /* confdefs.h.  */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h.  */
8647 #include <math.h>
8648                       #ifdef HAVE_IEEEFP_H
8649                       #include <ieeefp.h>
8650                       #endif
8651
8652 int
8653 main ()
8654 {
8655  _finite(0);
8656   ;
8657   return 0;
8658 }
8659 _ACEOF
8660 rm -f conftest.$ac_objext
8661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8662   (eval $ac_compile) 2>&5
8663   ac_status=$?
8664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665   (exit $ac_status); } &&
8666          { ac_try='test -s conftest.$ac_objext'
8667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668   (eval $ac_try) 2>&5
8669   ac_status=$?
8670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671   (exit $ac_status); }; }; then
8672   glibcxx_cv_func__finite_use=yes
8673 else
8674   echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8676
8677 glibcxx_cv_func__finite_use=no
8678 fi
8679 rm -f conftest.$ac_objext conftest.$ac_ext
8680       ac_ext=c
8681 ac_cpp='$CPP $CPPFLAGS'
8682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8685
8686
8687 fi
8688
8689   fi
8690   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
8691 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
8692
8693     if test x$glibcxx_cv_func__finite_use = x"yes"; then
8694
8695 for ac_func in _finite
8696 do
8697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8698 echo "$as_me:$LINENO: checking for $ac_func" >&5
8699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8700 if eval "test \"\${$as_ac_var+set}\" = set"; then
8701   echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703   cat >conftest.$ac_ext <<_ACEOF
8704 #line $LINENO "configure"
8705 /* confdefs.h.  */
8706 _ACEOF
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h.  */
8710 /* System header to define __stub macros and hopefully few prototypes,
8711     which can conflict with char $ac_func (); below.
8712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8713     <limits.h> exists even on freestanding compilers.  */
8714 #ifdef __STDC__
8715 # include <limits.h>
8716 #else
8717 # include <assert.h>
8718 #endif
8719 /* Override any gcc2 internal prototype to avoid an error.  */
8720 #ifdef __cplusplus
8721 extern "C"
8722 {
8723 #endif
8724 /* We use char because int might match the return type of a gcc2
8725    builtin and then its argument prototype would still apply.  */
8726 char $ac_func ();
8727 /* The GNU C library defines this for functions which it implements
8728     to always fail with ENOSYS.  Some functions are actually named
8729     something starting with __ and the normal name is an alias.  */
8730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8731 choke me
8732 #else
8733 char (*f) () = $ac_func;
8734 #endif
8735 #ifdef __cplusplus
8736 }
8737 #endif
8738
8739 int
8740 main ()
8741 {
8742 return f != $ac_func;
8743   ;
8744   return 0;
8745 }
8746 _ACEOF
8747 rm -f conftest.$ac_objext conftest$ac_exeext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8749   (eval $ac_link) 2>&5
8750   ac_status=$?
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   (exit $ac_status); } &&
8753          { ac_try='test -s conftest$ac_exeext'
8754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755   (eval $ac_try) 2>&5
8756   ac_status=$?
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); }; }; then
8759   eval "$as_ac_var=yes"
8760 else
8761   echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8763
8764 eval "$as_ac_var=no"
8765 fi
8766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8767 fi
8768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8770 if test `eval echo '${'$as_ac_var'}'` = yes; then
8771   cat >>confdefs.h <<_ACEOF
8772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8773 _ACEOF
8774
8775 fi
8776 done
8777
8778     fi
8779   fi
8780
8781
8782
8783   echo "$as_me:$LINENO: checking for copysign declaration" >&5
8784 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
8785   if test x${glibcxx_cv_func_copysign_use+set} != xset; then
8786     if test "${glibcxx_cv_func_copysign_use+set}" = set; then
8787   echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789
8790
8791
8792       ac_ext=cc
8793 ac_cpp='$CXXCPP $CPPFLAGS'
8794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8797
8798       cat >conftest.$ac_ext <<_ACEOF
8799 #line $LINENO "configure"
8800 /* confdefs.h.  */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h.  */
8805 #include <math.h>
8806 int
8807 main ()
8808 {
8809  copysign(0, 0);
8810   ;
8811   return 0;
8812 }
8813 _ACEOF
8814 rm -f conftest.$ac_objext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8816   (eval $ac_compile) 2>&5
8817   ac_status=$?
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); } &&
8820          { ac_try='test -s conftest.$ac_objext'
8821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822   (eval $ac_try) 2>&5
8823   ac_status=$?
8824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); }; }; then
8826   glibcxx_cv_func_copysign_use=yes
8827 else
8828   echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8830
8831 glibcxx_cv_func_copysign_use=no
8832 fi
8833 rm -f conftest.$ac_objext conftest.$ac_ext
8834       ac_ext=c
8835 ac_cpp='$CPP $CPPFLAGS'
8836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8839
8840
8841 fi
8842
8843   fi
8844   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
8845 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
8846
8847   if test x$glibcxx_cv_func_copysign_use = x"yes"; then
8848
8849 for ac_func in copysign
8850 do
8851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8852 echo "$as_me:$LINENO: checking for $ac_func" >&5
8853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8854 if eval "test \"\${$as_ac_var+set}\" = set"; then
8855   echo $ECHO_N "(cached) $ECHO_C" >&6
8856 else
8857   cat >conftest.$ac_ext <<_ACEOF
8858 #line $LINENO "configure"
8859 /* confdefs.h.  */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h.  */
8864 /* System header to define __stub macros and hopefully few prototypes,
8865     which can conflict with char $ac_func (); below.
8866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8867     <limits.h> exists even on freestanding compilers.  */
8868 #ifdef __STDC__
8869 # include <limits.h>
8870 #else
8871 # include <assert.h>
8872 #endif
8873 /* Override any gcc2 internal prototype to avoid an error.  */
8874 #ifdef __cplusplus
8875 extern "C"
8876 {
8877 #endif
8878 /* We use char because int might match the return type of a gcc2
8879    builtin and then its argument prototype would still apply.  */
8880 char $ac_func ();
8881 /* The GNU C library defines this for functions which it implements
8882     to always fail with ENOSYS.  Some functions are actually named
8883     something starting with __ and the normal name is an alias.  */
8884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8885 choke me
8886 #else
8887 char (*f) () = $ac_func;
8888 #endif
8889 #ifdef __cplusplus
8890 }
8891 #endif
8892
8893 int
8894 main ()
8895 {
8896 return f != $ac_func;
8897   ;
8898   return 0;
8899 }
8900 _ACEOF
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903   (eval $ac_link) 2>&5
8904   ac_status=$?
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); } &&
8907          { ac_try='test -s conftest$ac_exeext'
8908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909   (eval $ac_try) 2>&5
8910   ac_status=$?
8911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912   (exit $ac_status); }; }; then
8913   eval "$as_ac_var=yes"
8914 else
8915   echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8917
8918 eval "$as_ac_var=no"
8919 fi
8920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8921 fi
8922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8924 if test `eval echo '${'$as_ac_var'}'` = yes; then
8925   cat >>confdefs.h <<_ACEOF
8926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8927 _ACEOF
8928
8929 fi
8930 done
8931
8932   else
8933
8934   echo "$as_me:$LINENO: checking for _copysign declaration" >&5
8935 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
8936   if test x${glibcxx_cv_func__copysign_use+set} != xset; then
8937     if test "${glibcxx_cv_func__copysign_use+set}" = set; then
8938   echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940
8941
8942
8943       ac_ext=cc
8944 ac_cpp='$CXXCPP $CPPFLAGS'
8945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8948
8949       cat >conftest.$ac_ext <<_ACEOF
8950 #line $LINENO "configure"
8951 /* confdefs.h.  */
8952 _ACEOF
8953 cat confdefs.h >>conftest.$ac_ext
8954 cat >>conftest.$ac_ext <<_ACEOF
8955 /* end confdefs.h.  */
8956 #include <math.h>
8957 int
8958 main ()
8959 {
8960  _copysign(0, 0);
8961   ;
8962   return 0;
8963 }
8964 _ACEOF
8965 rm -f conftest.$ac_objext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967   (eval $ac_compile) 2>&5
8968   ac_status=$?
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   (exit $ac_status); } &&
8971          { ac_try='test -s conftest.$ac_objext'
8972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973   (eval $ac_try) 2>&5
8974   ac_status=$?
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); }; }; then
8977   glibcxx_cv_func__copysign_use=yes
8978 else
8979   echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8981
8982 glibcxx_cv_func__copysign_use=no
8983 fi
8984 rm -f conftest.$ac_objext conftest.$ac_ext
8985       ac_ext=c
8986 ac_cpp='$CPP $CPPFLAGS'
8987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8990
8991
8992 fi
8993
8994   fi
8995   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
8996 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
8997
8998     if test x$glibcxx_cv_func__copysign_use = x"yes"; then
8999
9000 for ac_func in _copysign
9001 do
9002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9003 echo "$as_me:$LINENO: checking for $ac_func" >&5
9004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9005 if eval "test \"\${$as_ac_var+set}\" = set"; then
9006   echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008   cat >conftest.$ac_ext <<_ACEOF
9009 #line $LINENO "configure"
9010 /* confdefs.h.  */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h.  */
9015 /* System header to define __stub macros and hopefully few prototypes,
9016     which can conflict with char $ac_func (); below.
9017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9018     <limits.h> exists even on freestanding compilers.  */
9019 #ifdef __STDC__
9020 # include <limits.h>
9021 #else
9022 # include <assert.h>
9023 #endif
9024 /* Override any gcc2 internal prototype to avoid an error.  */
9025 #ifdef __cplusplus
9026 extern "C"
9027 {
9028 #endif
9029 /* We use char because int might match the return type of a gcc2
9030    builtin and then its argument prototype would still apply.  */
9031 char $ac_func ();
9032 /* The GNU C library defines this for functions which it implements
9033     to always fail with ENOSYS.  Some functions are actually named
9034     something starting with __ and the normal name is an alias.  */
9035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9036 choke me
9037 #else
9038 char (*f) () = $ac_func;
9039 #endif
9040 #ifdef __cplusplus
9041 }
9042 #endif
9043
9044 int
9045 main ()
9046 {
9047 return f != $ac_func;
9048   ;
9049   return 0;
9050 }
9051 _ACEOF
9052 rm -f conftest.$ac_objext conftest$ac_exeext
9053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9054   (eval $ac_link) 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); } &&
9058          { ac_try='test -s conftest$ac_exeext'
9059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060   (eval $ac_try) 2>&5
9061   ac_status=$?
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); }; }; then
9064   eval "$as_ac_var=yes"
9065 else
9066   echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9068
9069 eval "$as_ac_var=no"
9070 fi
9071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9072 fi
9073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9075 if test `eval echo '${'$as_ac_var'}'` = yes; then
9076   cat >>confdefs.h <<_ACEOF
9077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9078 _ACEOF
9079
9080 fi
9081 done
9082
9083     fi
9084   fi
9085
9086
9087
9088   echo "$as_me:$LINENO: checking for sincos declaration" >&5
9089 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
9090   if test x${glibcxx_cv_func_sincos_use+set} != xset; then
9091     if test "${glibcxx_cv_func_sincos_use+set}" = set; then
9092   echo $ECHO_N "(cached) $ECHO_C" >&6
9093 else
9094
9095
9096
9097       ac_ext=cc
9098 ac_cpp='$CXXCPP $CPPFLAGS'
9099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9102
9103       cat >conftest.$ac_ext <<_ACEOF
9104 #line $LINENO "configure"
9105 /* confdefs.h.  */
9106 _ACEOF
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h.  */
9110 #include <math.h>
9111 int
9112 main ()
9113 {
9114  sincos(0, 0, 0);
9115   ;
9116   return 0;
9117 }
9118 _ACEOF
9119 rm -f conftest.$ac_objext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9121   (eval $ac_compile) 2>&5
9122   ac_status=$?
9123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   (exit $ac_status); } &&
9125          { ac_try='test -s conftest.$ac_objext'
9126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127   (eval $ac_try) 2>&5
9128   ac_status=$?
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); }; }; then
9131   glibcxx_cv_func_sincos_use=yes
9132 else
9133   echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9135
9136 glibcxx_cv_func_sincos_use=no
9137 fi
9138 rm -f conftest.$ac_objext conftest.$ac_ext
9139       ac_ext=c
9140 ac_cpp='$CPP $CPPFLAGS'
9141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9144
9145
9146 fi
9147
9148   fi
9149   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
9150 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
9151
9152   if test x$glibcxx_cv_func_sincos_use = x"yes"; then
9153
9154 for ac_func in sincos
9155 do
9156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9157 echo "$as_me:$LINENO: checking for $ac_func" >&5
9158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9159 if eval "test \"\${$as_ac_var+set}\" = set"; then
9160   echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162   cat >conftest.$ac_ext <<_ACEOF
9163 #line $LINENO "configure"
9164 /* confdefs.h.  */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h.  */
9169 /* System header to define __stub macros and hopefully few prototypes,
9170     which can conflict with char $ac_func (); below.
9171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9172     <limits.h> exists even on freestanding compilers.  */
9173 #ifdef __STDC__
9174 # include <limits.h>
9175 #else
9176 # include <assert.h>
9177 #endif
9178 /* Override any gcc2 internal prototype to avoid an error.  */
9179 #ifdef __cplusplus
9180 extern "C"
9181 {
9182 #endif
9183 /* We use char because int might match the return type of a gcc2
9184    builtin and then its argument prototype would still apply.  */
9185 char $ac_func ();
9186 /* The GNU C library defines this for functions which it implements
9187     to always fail with ENOSYS.  Some functions are actually named
9188     something starting with __ and the normal name is an alias.  */
9189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9190 choke me
9191 #else
9192 char (*f) () = $ac_func;
9193 #endif
9194 #ifdef __cplusplus
9195 }
9196 #endif
9197
9198 int
9199 main ()
9200 {
9201 return f != $ac_func;
9202   ;
9203   return 0;
9204 }
9205 _ACEOF
9206 rm -f conftest.$ac_objext conftest$ac_exeext
9207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9208   (eval $ac_link) 2>&5
9209   ac_status=$?
9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); } &&
9212          { ac_try='test -s conftest$ac_exeext'
9213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214   (eval $ac_try) 2>&5
9215   ac_status=$?
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); }; }; then
9218   eval "$as_ac_var=yes"
9219 else
9220   echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9222
9223 eval "$as_ac_var=no"
9224 fi
9225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9226 fi
9227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9228 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9229 if test `eval echo '${'$as_ac_var'}'` = yes; then
9230   cat >>confdefs.h <<_ACEOF
9231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9232 _ACEOF
9233
9234 fi
9235 done
9236
9237   else
9238
9239   echo "$as_me:$LINENO: checking for _sincos declaration" >&5
9240 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
9241   if test x${glibcxx_cv_func__sincos_use+set} != xset; then
9242     if test "${glibcxx_cv_func__sincos_use+set}" = set; then
9243   echo $ECHO_N "(cached) $ECHO_C" >&6
9244 else
9245
9246
9247
9248       ac_ext=cc
9249 ac_cpp='$CXXCPP $CPPFLAGS'
9250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9253
9254       cat >conftest.$ac_ext <<_ACEOF
9255 #line $LINENO "configure"
9256 /* confdefs.h.  */
9257 _ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h.  */
9261 #include <math.h>
9262 int
9263 main ()
9264 {
9265  _sincos(0, 0, 0);
9266   ;
9267   return 0;
9268 }
9269 _ACEOF
9270 rm -f conftest.$ac_objext
9271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9272   (eval $ac_compile) 2>&5
9273   ac_status=$?
9274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275   (exit $ac_status); } &&
9276          { ac_try='test -s conftest.$ac_objext'
9277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278   (eval $ac_try) 2>&5
9279   ac_status=$?
9280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281   (exit $ac_status); }; }; then
9282   glibcxx_cv_func__sincos_use=yes
9283 else
9284   echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9286
9287 glibcxx_cv_func__sincos_use=no
9288 fi
9289 rm -f conftest.$ac_objext conftest.$ac_ext
9290       ac_ext=c
9291 ac_cpp='$CPP $CPPFLAGS'
9292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9295
9296
9297 fi
9298
9299   fi
9300   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
9301 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
9302
9303     if test x$glibcxx_cv_func__sincos_use = x"yes"; then
9304
9305 for ac_func in _sincos
9306 do
9307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9308 echo "$as_me:$LINENO: checking for $ac_func" >&5
9309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9310 if eval "test \"\${$as_ac_var+set}\" = set"; then
9311   echo $ECHO_N "(cached) $ECHO_C" >&6
9312 else
9313   cat >conftest.$ac_ext <<_ACEOF
9314 #line $LINENO "configure"
9315 /* confdefs.h.  */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h.  */
9320 /* System header to define __stub macros and hopefully few prototypes,
9321     which can conflict with char $ac_func (); below.
9322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9323     <limits.h> exists even on freestanding compilers.  */
9324 #ifdef __STDC__
9325 # include <limits.h>
9326 #else
9327 # include <assert.h>
9328 #endif
9329 /* Override any gcc2 internal prototype to avoid an error.  */
9330 #ifdef __cplusplus
9331 extern "C"
9332 {
9333 #endif
9334 /* We use char because int might match the return type of a gcc2
9335    builtin and then its argument prototype would still apply.  */
9336 char $ac_func ();
9337 /* The GNU C library defines this for functions which it implements
9338     to always fail with ENOSYS.  Some functions are actually named
9339     something starting with __ and the normal name is an alias.  */
9340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9341 choke me
9342 #else
9343 char (*f) () = $ac_func;
9344 #endif
9345 #ifdef __cplusplus
9346 }
9347 #endif
9348
9349 int
9350 main ()
9351 {
9352 return f != $ac_func;
9353   ;
9354   return 0;
9355 }
9356 _ACEOF
9357 rm -f conftest.$ac_objext conftest$ac_exeext
9358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9359   (eval $ac_link) 2>&5
9360   ac_status=$?
9361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); } &&
9363          { ac_try='test -s conftest$ac_exeext'
9364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9365   (eval $ac_try) 2>&5
9366   ac_status=$?
9367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368   (exit $ac_status); }; }; then
9369   eval "$as_ac_var=yes"
9370 else
9371   echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9373
9374 eval "$as_ac_var=no"
9375 fi
9376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9377 fi
9378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9380 if test `eval echo '${'$as_ac_var'}'` = yes; then
9381   cat >>confdefs.h <<_ACEOF
9382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9383 _ACEOF
9384
9385 fi
9386 done
9387
9388     fi
9389   fi
9390
9391
9392
9393   echo "$as_me:$LINENO: checking for fpclass declaration" >&5
9394 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
9395   if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
9396     if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
9397   echo $ECHO_N "(cached) $ECHO_C" >&6
9398 else
9399
9400
9401
9402       ac_ext=cc
9403 ac_cpp='$CXXCPP $CPPFLAGS'
9404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9407
9408       cat >conftest.$ac_ext <<_ACEOF
9409 #line $LINENO "configure"
9410 /* confdefs.h.  */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h.  */
9415 #include <math.h>
9416                       #ifdef HAVE_IEEEFP_H
9417                       #include <ieeefp.h>
9418                       #endif
9419
9420 int
9421 main ()
9422 {
9423  fpclass(0);
9424   ;
9425   return 0;
9426 }
9427 _ACEOF
9428 rm -f conftest.$ac_objext
9429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9430   (eval $ac_compile) 2>&5
9431   ac_status=$?
9432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433   (exit $ac_status); } &&
9434          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9440   glibcxx_cv_func_fpclass_use=yes
9441 else
9442   echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9444
9445 glibcxx_cv_func_fpclass_use=no
9446 fi
9447 rm -f conftest.$ac_objext conftest.$ac_ext
9448       ac_ext=c
9449 ac_cpp='$CPP $CPPFLAGS'
9450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9453
9454
9455 fi
9456
9457   fi
9458   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
9459 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
9460
9461   if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
9462
9463 for ac_func in fpclass
9464 do
9465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9466 echo "$as_me:$LINENO: checking for $ac_func" >&5
9467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9468 if eval "test \"\${$as_ac_var+set}\" = set"; then
9469   echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471   cat >conftest.$ac_ext <<_ACEOF
9472 #line $LINENO "configure"
9473 /* confdefs.h.  */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h.  */
9478 /* System header to define __stub macros and hopefully few prototypes,
9479     which can conflict with char $ac_func (); below.
9480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9481     <limits.h> exists even on freestanding compilers.  */
9482 #ifdef __STDC__
9483 # include <limits.h>
9484 #else
9485 # include <assert.h>
9486 #endif
9487 /* Override any gcc2 internal prototype to avoid an error.  */
9488 #ifdef __cplusplus
9489 extern "C"
9490 {
9491 #endif
9492 /* We use char because int might match the return type of a gcc2
9493    builtin and then its argument prototype would still apply.  */
9494 char $ac_func ();
9495 /* The GNU C library defines this for functions which it implements
9496     to always fail with ENOSYS.  Some functions are actually named
9497     something starting with __ and the normal name is an alias.  */
9498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9499 choke me
9500 #else
9501 char (*f) () = $ac_func;
9502 #endif
9503 #ifdef __cplusplus
9504 }
9505 #endif
9506
9507 int
9508 main ()
9509 {
9510 return f != $ac_func;
9511   ;
9512   return 0;
9513 }
9514 _ACEOF
9515 rm -f conftest.$ac_objext conftest$ac_exeext
9516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9517   (eval $ac_link) 2>&5
9518   ac_status=$?
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); } &&
9521          { ac_try='test -s conftest$ac_exeext'
9522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523   (eval $ac_try) 2>&5
9524   ac_status=$?
9525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); }; }; then
9527   eval "$as_ac_var=yes"
9528 else
9529   echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9531
9532 eval "$as_ac_var=no"
9533 fi
9534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9535 fi
9536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9538 if test `eval echo '${'$as_ac_var'}'` = yes; then
9539   cat >>confdefs.h <<_ACEOF
9540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9541 _ACEOF
9542
9543 fi
9544 done
9545
9546   else
9547
9548   echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
9549 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
9550   if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
9551     if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
9552   echo $ECHO_N "(cached) $ECHO_C" >&6
9553 else
9554
9555
9556
9557       ac_ext=cc
9558 ac_cpp='$CXXCPP $CPPFLAGS'
9559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9562
9563       cat >conftest.$ac_ext <<_ACEOF
9564 #line $LINENO "configure"
9565 /* confdefs.h.  */
9566 _ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h.  */
9570 #include <math.h>
9571                       #ifdef HAVE_IEEEFP_H
9572                       #include <ieeefp.h>
9573                       #endif
9574
9575 int
9576 main ()
9577 {
9578  _fpclass(0);
9579   ;
9580   return 0;
9581 }
9582 _ACEOF
9583 rm -f conftest.$ac_objext
9584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9585   (eval $ac_compile) 2>&5
9586   ac_status=$?
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); } &&
9589          { ac_try='test -s conftest.$ac_objext'
9590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591   (eval $ac_try) 2>&5
9592   ac_status=$?
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); }; }; then
9595   glibcxx_cv_func__fpclass_use=yes
9596 else
9597   echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 glibcxx_cv_func__fpclass_use=no
9601 fi
9602 rm -f conftest.$ac_objext conftest.$ac_ext
9603       ac_ext=c
9604 ac_cpp='$CPP $CPPFLAGS'
9605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9608
9609
9610 fi
9611
9612   fi
9613   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
9614 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
9615
9616     if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
9617
9618 for ac_func in _fpclass
9619 do
9620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9621 echo "$as_me:$LINENO: checking for $ac_func" >&5
9622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9623 if eval "test \"\${$as_ac_var+set}\" = set"; then
9624   echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626   cat >conftest.$ac_ext <<_ACEOF
9627 #line $LINENO "configure"
9628 /* confdefs.h.  */
9629 _ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h.  */
9633 /* System header to define __stub macros and hopefully few prototypes,
9634     which can conflict with char $ac_func (); below.
9635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9636     <limits.h> exists even on freestanding compilers.  */
9637 #ifdef __STDC__
9638 # include <limits.h>
9639 #else
9640 # include <assert.h>
9641 #endif
9642 /* Override any gcc2 internal prototype to avoid an error.  */
9643 #ifdef __cplusplus
9644 extern "C"
9645 {
9646 #endif
9647 /* We use char because int might match the return type of a gcc2
9648    builtin and then its argument prototype would still apply.  */
9649 char $ac_func ();
9650 /* The GNU C library defines this for functions which it implements
9651     to always fail with ENOSYS.  Some functions are actually named
9652     something starting with __ and the normal name is an alias.  */
9653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9654 choke me
9655 #else
9656 char (*f) () = $ac_func;
9657 #endif
9658 #ifdef __cplusplus
9659 }
9660 #endif
9661
9662 int
9663 main ()
9664 {
9665 return f != $ac_func;
9666   ;
9667   return 0;
9668 }
9669 _ACEOF
9670 rm -f conftest.$ac_objext conftest$ac_exeext
9671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9672   (eval $ac_link) 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); } &&
9676          { ac_try='test -s conftest$ac_exeext'
9677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678   (eval $ac_try) 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); }; }; then
9682   eval "$as_ac_var=yes"
9683 else
9684   echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9686
9687 eval "$as_ac_var=no"
9688 fi
9689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9690 fi
9691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9693 if test `eval echo '${'$as_ac_var'}'` = yes; then
9694   cat >>confdefs.h <<_ACEOF
9695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9696 _ACEOF
9697
9698 fi
9699 done
9700
9701     fi
9702   fi
9703
9704
9705
9706   echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
9707 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
9708   if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
9709     if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
9710   echo $ECHO_N "(cached) $ECHO_C" >&6
9711 else
9712
9713
9714
9715       ac_ext=cc
9716 ac_cpp='$CXXCPP $CPPFLAGS'
9717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9720
9721       cat >conftest.$ac_ext <<_ACEOF
9722 #line $LINENO "configure"
9723 /* confdefs.h.  */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h.  */
9728 #include <math.h>
9729                       #ifdef HAVE_IEEEFP_H
9730                       #include <ieeefp.h>
9731                       #endif
9732
9733 int
9734 main ()
9735 {
9736  qfpclass(0);
9737   ;
9738   return 0;
9739 }
9740 _ACEOF
9741 rm -f conftest.$ac_objext
9742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9743   (eval $ac_compile) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); } &&
9747          { ac_try='test -s conftest.$ac_objext'
9748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749   (eval $ac_try) 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; }; then
9753   glibcxx_cv_func_qfpclass_use=yes
9754 else
9755   echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9757
9758 glibcxx_cv_func_qfpclass_use=no
9759 fi
9760 rm -f conftest.$ac_objext conftest.$ac_ext
9761       ac_ext=c
9762 ac_cpp='$CPP $CPPFLAGS'
9763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9766
9767
9768 fi
9769
9770   fi
9771   echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
9772 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
9773
9774   if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
9775
9776 for ac_func in qfpclass
9777 do
9778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9779 echo "$as_me:$LINENO: checking for $ac_func" >&5
9780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9781 if eval "test \"\${$as_ac_var+set}\" = set"; then
9782   echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784   cat >conftest.$ac_ext <<_ACEOF
9785 #line $LINENO "configure"
9786 /* confdefs.h.  */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h.  */
9791 /* System header to define __stub macros and hopefully few prototypes,
9792     which can conflict with char $ac_func (); below.
9793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9794     <limits.h> exists even on freestanding compilers.  */
9795 #ifdef __STDC__
9796 # include <limits.h>
9797 #else
9798 # include <assert.h>
9799 #endif
9800 /* Override any gcc2 internal prototype to avoid an error.  */
9801 #ifdef __cplusplus
9802 extern "C"
9803 {
9804 #endif
9805 /* We use char because int might match the return type of a gcc2
9806    builtin and then its argument prototype would still apply.  */
9807 char $ac_func ();
9808 /* The GNU C library defines this for functions which it implements
9809     to always fail with ENOSYS.  Some functions are actually named
9810     something starting with __ and the normal name is an alias.  */
9811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9812 choke me
9813 #else
9814 char (*f) () = $ac_func;
9815 #endif
9816 #ifdef __cplusplus
9817 }
9818 #endif
9819
9820 int
9821 main ()
9822 {
9823 return f != $ac_func;
9824   ;
9825   return 0;
9826 }
9827 _ACEOF
9828 rm -f conftest.$ac_objext conftest$ac_exeext
9829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830   (eval $ac_link) 2>&5
9831   ac_status=$?
9832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833   (exit $ac_status); } &&
9834          { ac_try='test -s conftest$ac_exeext'
9835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836   (eval $ac_try) 2>&5
9837   ac_status=$?
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); }; }; then
9840   eval "$as_ac_var=yes"
9841 else
9842   echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9844
9845 eval "$as_ac_var=no"
9846 fi
9847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9848 fi
9849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9850 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9851 if test `eval echo '${'$as_ac_var'}'` = yes; then
9852   cat >>confdefs.h <<_ACEOF
9853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9854 _ACEOF
9855
9856 fi
9857 done
9858
9859   else
9860
9861   echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
9862 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
9863   if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
9864     if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867
9868
9869
9870       ac_ext=cc
9871 ac_cpp='$CXXCPP $CPPFLAGS'
9872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9875
9876       cat >conftest.$ac_ext <<_ACEOF
9877 #line $LINENO "configure"
9878 /* confdefs.h.  */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h.  */
9883 #include <math.h>
9884                       #ifdef HAVE_IEEEFP_H
9885                       #include <ieeefp.h>
9886                       #endif
9887
9888 int
9889 main ()
9890 {
9891  _qfpclass(0);
9892   ;
9893   return 0;
9894 }
9895 _ACEOF
9896 rm -f conftest.$ac_objext
9897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9898   (eval $ac_compile) 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); } &&
9902          { ac_try='test -s conftest.$ac_objext'
9903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904   (eval $ac_try) 2>&5
9905   ac_status=$?
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); }; }; then
9908   glibcxx_cv_func__qfpclass_use=yes
9909 else
9910   echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9912
9913 glibcxx_cv_func__qfpclass_use=no
9914 fi
9915 rm -f conftest.$ac_objext conftest.$ac_ext
9916       ac_ext=c
9917 ac_cpp='$CPP $CPPFLAGS'
9918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9921
9922
9923 fi
9924
9925   fi
9926   echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
9927 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
9928
9929     if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
9930
9931 for ac_func in _qfpclass
9932 do
9933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9934 echo "$as_me:$LINENO: checking for $ac_func" >&5
9935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9936 if eval "test \"\${$as_ac_var+set}\" = set"; then
9937   echo $ECHO_N "(cached) $ECHO_C" >&6
9938 else
9939   cat >conftest.$ac_ext <<_ACEOF
9940 #line $LINENO "configure"
9941 /* confdefs.h.  */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h.  */
9946 /* System header to define __stub macros and hopefully few prototypes,
9947     which can conflict with char $ac_func (); below.
9948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9949     <limits.h> exists even on freestanding compilers.  */
9950 #ifdef __STDC__
9951 # include <limits.h>
9952 #else
9953 # include <assert.h>
9954 #endif
9955 /* Override any gcc2 internal prototype to avoid an error.  */
9956 #ifdef __cplusplus
9957 extern "C"
9958 {
9959 #endif
9960 /* We use char because int might match the return type of a gcc2
9961    builtin and then its argument prototype would still apply.  */
9962 char $ac_func ();
9963 /* The GNU C library defines this for functions which it implements
9964     to always fail with ENOSYS.  Some functions are actually named
9965     something starting with __ and the normal name is an alias.  */
9966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9967 choke me
9968 #else
9969 char (*f) () = $ac_func;
9970 #endif
9971 #ifdef __cplusplus
9972 }
9973 #endif
9974
9975 int
9976 main ()
9977 {
9978 return f != $ac_func;
9979   ;
9980   return 0;
9981 }
9982 _ACEOF
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9985   (eval $ac_link) 2>&5
9986   ac_status=$?
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); } &&
9989          { ac_try='test -s conftest$ac_exeext'
9990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991   (eval $ac_try) 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); }; }; then
9995   eval "$as_ac_var=yes"
9996 else
9997   echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000 eval "$as_ac_var=no"
10001 fi
10002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10003 fi
10004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10006 if test `eval echo '${'$as_ac_var'}'` = yes; then
10007   cat >>confdefs.h <<_ACEOF
10008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10009 _ACEOF
10010
10011 fi
10012 done
10013
10014     fi
10015   fi
10016
10017
10018
10019   echo "$as_me:$LINENO: checking for hypot declaration" >&5
10020 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
10021   if test x${glibcxx_cv_func_hypot_use+set} != xset; then
10022     if test "${glibcxx_cv_func_hypot_use+set}" = set; then
10023   echo $ECHO_N "(cached) $ECHO_C" >&6
10024 else
10025
10026
10027
10028       ac_ext=cc
10029 ac_cpp='$CXXCPP $CPPFLAGS'
10030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10033
10034       cat >conftest.$ac_ext <<_ACEOF
10035 #line $LINENO "configure"
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041 #include <math.h>
10042 int
10043 main ()
10044 {
10045  hypot(0, 0);
10046   ;
10047   return 0;
10048 }
10049 _ACEOF
10050 rm -f conftest.$ac_objext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10052   (eval $ac_compile) 2>&5
10053   ac_status=$?
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } &&
10056          { ac_try='test -s conftest.$ac_objext'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10062   glibcxx_cv_func_hypot_use=yes
10063 else
10064   echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10066
10067 glibcxx_cv_func_hypot_use=no
10068 fi
10069 rm -f conftest.$ac_objext conftest.$ac_ext
10070       ac_ext=c
10071 ac_cpp='$CPP $CPPFLAGS'
10072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10075
10076
10077 fi
10078
10079   fi
10080   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
10081 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
10082
10083   if test x$glibcxx_cv_func_hypot_use = x"yes"; then
10084
10085 for ac_func in hypot
10086 do
10087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10088 echo "$as_me:$LINENO: checking for $ac_func" >&5
10089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10090 if eval "test \"\${$as_ac_var+set}\" = set"; then
10091   echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093   cat >conftest.$ac_ext <<_ACEOF
10094 #line $LINENO "configure"
10095 /* confdefs.h.  */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h.  */
10100 /* System header to define __stub macros and hopefully few prototypes,
10101     which can conflict with char $ac_func (); below.
10102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10103     <limits.h> exists even on freestanding compilers.  */
10104 #ifdef __STDC__
10105 # include <limits.h>
10106 #else
10107 # include <assert.h>
10108 #endif
10109 /* Override any gcc2 internal prototype to avoid an error.  */
10110 #ifdef __cplusplus
10111 extern "C"
10112 {
10113 #endif
10114 /* We use char because int might match the return type of a gcc2
10115    builtin and then its argument prototype would still apply.  */
10116 char $ac_func ();
10117 /* The GNU C library defines this for functions which it implements
10118     to always fail with ENOSYS.  Some functions are actually named
10119     something starting with __ and the normal name is an alias.  */
10120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10121 choke me
10122 #else
10123 char (*f) () = $ac_func;
10124 #endif
10125 #ifdef __cplusplus
10126 }
10127 #endif
10128
10129 int
10130 main ()
10131 {
10132 return f != $ac_func;
10133   ;
10134   return 0;
10135 }
10136 _ACEOF
10137 rm -f conftest.$ac_objext conftest$ac_exeext
10138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10139   (eval $ac_link) 2>&5
10140   ac_status=$?
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); } &&
10143          { ac_try='test -s conftest$ac_exeext'
10144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145   (eval $ac_try) 2>&5
10146   ac_status=$?
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); }; }; then
10149   eval "$as_ac_var=yes"
10150 else
10151   echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10153
10154 eval "$as_ac_var=no"
10155 fi
10156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10157 fi
10158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10160 if test `eval echo '${'$as_ac_var'}'` = yes; then
10161   cat >>confdefs.h <<_ACEOF
10162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10163 _ACEOF
10164
10165 fi
10166 done
10167
10168   else
10169
10170   echo "$as_me:$LINENO: checking for _hypot declaration" >&5
10171 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
10172   if test x${glibcxx_cv_func__hypot_use+set} != xset; then
10173     if test "${glibcxx_cv_func__hypot_use+set}" = set; then
10174   echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176
10177
10178
10179       ac_ext=cc
10180 ac_cpp='$CXXCPP $CPPFLAGS'
10181 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10182 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10183 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10184
10185       cat >conftest.$ac_ext <<_ACEOF
10186 #line $LINENO "configure"
10187 /* confdefs.h.  */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h.  */
10192 #include <math.h>
10193 int
10194 main ()
10195 {
10196  _hypot(0, 0);
10197   ;
10198   return 0;
10199 }
10200 _ACEOF
10201 rm -f conftest.$ac_objext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10203   (eval $ac_compile) 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); } &&
10207          { ac_try='test -s conftest.$ac_objext'
10208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209   (eval $ac_try) 2>&5
10210   ac_status=$?
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); }; }; then
10213   glibcxx_cv_func__hypot_use=yes
10214 else
10215   echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10217
10218 glibcxx_cv_func__hypot_use=no
10219 fi
10220 rm -f conftest.$ac_objext conftest.$ac_ext
10221       ac_ext=c
10222 ac_cpp='$CPP $CPPFLAGS'
10223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10226
10227
10228 fi
10229
10230   fi
10231   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
10232 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
10233
10234     if test x$glibcxx_cv_func__hypot_use = x"yes"; then
10235
10236 for ac_func in _hypot
10237 do
10238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10239 echo "$as_me:$LINENO: checking for $ac_func" >&5
10240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10241 if eval "test \"\${$as_ac_var+set}\" = set"; then
10242   echo $ECHO_N "(cached) $ECHO_C" >&6
10243 else
10244   cat >conftest.$ac_ext <<_ACEOF
10245 #line $LINENO "configure"
10246 /* confdefs.h.  */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h.  */
10251 /* System header to define __stub macros and hopefully few prototypes,
10252     which can conflict with char $ac_func (); below.
10253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10254     <limits.h> exists even on freestanding compilers.  */
10255 #ifdef __STDC__
10256 # include <limits.h>
10257 #else
10258 # include <assert.h>
10259 #endif
10260 /* Override any gcc2 internal prototype to avoid an error.  */
10261 #ifdef __cplusplus
10262 extern "C"
10263 {
10264 #endif
10265 /* We use char because int might match the return type of a gcc2
10266    builtin and then its argument prototype would still apply.  */
10267 char $ac_func ();
10268 /* The GNU C library defines this for functions which it implements
10269     to always fail with ENOSYS.  Some functions are actually named
10270     something starting with __ and the normal name is an alias.  */
10271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10272 choke me
10273 #else
10274 char (*f) () = $ac_func;
10275 #endif
10276 #ifdef __cplusplus
10277 }
10278 #endif
10279
10280 int
10281 main ()
10282 {
10283 return f != $ac_func;
10284   ;
10285   return 0;
10286 }
10287 _ACEOF
10288 rm -f conftest.$ac_objext conftest$ac_exeext
10289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290   (eval $ac_link) 2>&5
10291   ac_status=$?
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); } &&
10294          { ac_try='test -s conftest$ac_exeext'
10295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296   (eval $ac_try) 2>&5
10297   ac_status=$?
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); }; }; then
10300   eval "$as_ac_var=yes"
10301 else
10302   echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10304
10305 eval "$as_ac_var=no"
10306 fi
10307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10308 fi
10309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10311 if test `eval echo '${'$as_ac_var'}'` = yes; then
10312   cat >>confdefs.h <<_ACEOF
10313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10314 _ACEOF
10315
10316 fi
10317 done
10318
10319     fi
10320   fi
10321
10322
10323
10324   echo "$as_me:$LINENO: checking for float trig functions" >&5
10325 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
10326   if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
10327   echo $ECHO_N "(cached) $ECHO_C" >&6
10328 else
10329
10330
10331
10332     ac_ext=cc
10333 ac_cpp='$CXXCPP $CPPFLAGS'
10334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10337
10338     cat >conftest.$ac_ext <<_ACEOF
10339 #line $LINENO "configure"
10340 /* confdefs.h.  */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h.  */
10345 #include <math.h>
10346 int
10347 main ()
10348 {
10349  `for x in acosf asinf atanf \
10350                                           cosf sinf tanf \
10351                                           coshf sinhf tanhf; do echo "$x (0);"; done`
10352   ;
10353   return 0;
10354 }
10355 _ACEOF
10356 rm -f conftest.$ac_objext
10357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10358   (eval $ac_compile) 2>&5
10359   ac_status=$?
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); } &&
10362          { ac_try='test -s conftest.$ac_objext'
10363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364   (eval $ac_try) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); }; }; then
10368   glibcxx_cv_func_float_trig_use=yes
10369 else
10370   echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10372
10373 glibcxx_cv_func_float_trig_use=no
10374 fi
10375 rm -f conftest.$ac_objext conftest.$ac_ext
10376     ac_ext=c
10377 ac_cpp='$CPP $CPPFLAGS'
10378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10381
10382 fi
10383
10384   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
10385 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
10386   if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396 for ac_func in acosf asinf atanf \
10397                                           cosf sinf tanf \
10398                                           coshf sinhf tanhf
10399 do
10400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10401 echo "$as_me:$LINENO: checking for $ac_func" >&5
10402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10403 if eval "test \"\${$as_ac_var+set}\" = set"; then
10404   echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406   cat >conftest.$ac_ext <<_ACEOF
10407 #line $LINENO "configure"
10408 /* confdefs.h.  */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h.  */
10413 /* System header to define __stub macros and hopefully few prototypes,
10414     which can conflict with char $ac_func (); below.
10415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10416     <limits.h> exists even on freestanding compilers.  */
10417 #ifdef __STDC__
10418 # include <limits.h>
10419 #else
10420 # include <assert.h>
10421 #endif
10422 /* Override any gcc2 internal prototype to avoid an error.  */
10423 #ifdef __cplusplus
10424 extern "C"
10425 {
10426 #endif
10427 /* We use char because int might match the return type of a gcc2
10428    builtin and then its argument prototype would still apply.  */
10429 char $ac_func ();
10430 /* The GNU C library defines this for functions which it implements
10431     to always fail with ENOSYS.  Some functions are actually named
10432     something starting with __ and the normal name is an alias.  */
10433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10434 choke me
10435 #else
10436 char (*f) () = $ac_func;
10437 #endif
10438 #ifdef __cplusplus
10439 }
10440 #endif
10441
10442 int
10443 main ()
10444 {
10445 return f != $ac_func;
10446   ;
10447   return 0;
10448 }
10449 _ACEOF
10450 rm -f conftest.$ac_objext conftest$ac_exeext
10451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10452   (eval $ac_link) 2>&5
10453   ac_status=$?
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); } &&
10456          { ac_try='test -s conftest$ac_exeext'
10457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458   (eval $ac_try) 2>&5
10459   ac_status=$?
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); }; }; then
10462   eval "$as_ac_var=yes"
10463 else
10464   echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10466
10467 eval "$as_ac_var=no"
10468 fi
10469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10470 fi
10471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10473 if test `eval echo '${'$as_ac_var'}'` = yes; then
10474   cat >>confdefs.h <<_ACEOF
10475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10476 _ACEOF
10477
10478 fi
10479 done
10480
10481   fi
10482
10483
10484   echo "$as_me:$LINENO: checking for float round functions" >&5
10485 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
10486   if test "${glibcxx_cv_func_float_round_use+set}" = set; then
10487   echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489
10490
10491
10492     ac_ext=cc
10493 ac_cpp='$CXXCPP $CPPFLAGS'
10494 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10495 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10496 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10497
10498     cat >conftest.$ac_ext <<_ACEOF
10499 #line $LINENO "configure"
10500 /* confdefs.h.  */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h.  */
10505 #include <math.h>
10506 int
10507 main ()
10508 {
10509  `for x in ceilf floorf; do echo "$x (0);"; done`
10510   ;
10511   return 0;
10512 }
10513 _ACEOF
10514 rm -f conftest.$ac_objext
10515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10516   (eval $ac_compile) 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); } &&
10520          { ac_try='test -s conftest.$ac_objext'
10521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522   (eval $ac_try) 2>&5
10523   ac_status=$?
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); }; }; then
10526   glibcxx_cv_func_float_round_use=yes
10527 else
10528   echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10530
10531 glibcxx_cv_func_float_round_use=no
10532 fi
10533 rm -f conftest.$ac_objext conftest.$ac_ext
10534     ac_ext=c
10535 ac_cpp='$CPP $CPPFLAGS'
10536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10539
10540 fi
10541
10542   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
10543 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
10544   if test x$glibcxx_cv_func_float_round_use = x"yes"; then
10545
10546
10547 for ac_func in ceilf floorf
10548 do
10549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10550 echo "$as_me:$LINENO: checking for $ac_func" >&5
10551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10552 if eval "test \"\${$as_ac_var+set}\" = set"; then
10553   echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555   cat >conftest.$ac_ext <<_ACEOF
10556 #line $LINENO "configure"
10557 /* confdefs.h.  */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h.  */
10562 /* System header to define __stub macros and hopefully few prototypes,
10563     which can conflict with char $ac_func (); below.
10564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10565     <limits.h> exists even on freestanding compilers.  */
10566 #ifdef __STDC__
10567 # include <limits.h>
10568 #else
10569 # include <assert.h>
10570 #endif
10571 /* Override any gcc2 internal prototype to avoid an error.  */
10572 #ifdef __cplusplus
10573 extern "C"
10574 {
10575 #endif
10576 /* We use char because int might match the return type of a gcc2
10577    builtin and then its argument prototype would still apply.  */
10578 char $ac_func ();
10579 /* The GNU C library defines this for functions which it implements
10580     to always fail with ENOSYS.  Some functions are actually named
10581     something starting with __ and the normal name is an alias.  */
10582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10583 choke me
10584 #else
10585 char (*f) () = $ac_func;
10586 #endif
10587 #ifdef __cplusplus
10588 }
10589 #endif
10590
10591 int
10592 main ()
10593 {
10594 return f != $ac_func;
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10601   (eval $ac_link) 2>&5
10602   ac_status=$?
10603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604   (exit $ac_status); } &&
10605          { ac_try='test -s conftest$ac_exeext'
10606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607   (eval $ac_try) 2>&5
10608   ac_status=$?
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); }; }; then
10611   eval "$as_ac_var=yes"
10612 else
10613   echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10615
10616 eval "$as_ac_var=no"
10617 fi
10618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10619 fi
10620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10621 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10622 if test `eval echo '${'$as_ac_var'}'` = yes; then
10623   cat >>confdefs.h <<_ACEOF
10624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10625 _ACEOF
10626
10627 fi
10628 done
10629
10630   fi
10631
10632
10633
10634   echo "$as_me:$LINENO: checking for expf declaration" >&5
10635 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
10636   if test x${glibcxx_cv_func_expf_use+set} != xset; then
10637     if test "${glibcxx_cv_func_expf_use+set}" = set; then
10638   echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640
10641
10642
10643       ac_ext=cc
10644 ac_cpp='$CXXCPP $CPPFLAGS'
10645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10648
10649       cat >conftest.$ac_ext <<_ACEOF
10650 #line $LINENO "configure"
10651 /* confdefs.h.  */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h.  */
10656 #include <math.h>
10657                       #ifdef HAVE_IEEEFP_H
10658                       #include <ieeefp.h>
10659                       #endif
10660
10661 int
10662 main ()
10663 {
10664  expf(0);
10665   ;
10666   return 0;
10667 }
10668 _ACEOF
10669 rm -f conftest.$ac_objext
10670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10671   (eval $ac_compile) 2>&5
10672   ac_status=$?
10673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674   (exit $ac_status); } &&
10675          { ac_try='test -s conftest.$ac_objext'
10676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677   (eval $ac_try) 2>&5
10678   ac_status=$?
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); }; }; then
10681   glibcxx_cv_func_expf_use=yes
10682 else
10683   echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10685
10686 glibcxx_cv_func_expf_use=no
10687 fi
10688 rm -f conftest.$ac_objext conftest.$ac_ext
10689       ac_ext=c
10690 ac_cpp='$CPP $CPPFLAGS'
10691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10694
10695
10696 fi
10697
10698   fi
10699   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
10700 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
10701
10702   if test x$glibcxx_cv_func_expf_use = x"yes"; then
10703
10704 for ac_func in expf
10705 do
10706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10707 echo "$as_me:$LINENO: checking for $ac_func" >&5
10708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10709 if eval "test \"\${$as_ac_var+set}\" = set"; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   cat >conftest.$ac_ext <<_ACEOF
10713 #line $LINENO "configure"
10714 /* confdefs.h.  */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h.  */
10719 /* System header to define __stub macros and hopefully few prototypes,
10720     which can conflict with char $ac_func (); below.
10721     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10722     <limits.h> exists even on freestanding compilers.  */
10723 #ifdef __STDC__
10724 # include <limits.h>
10725 #else
10726 # include <assert.h>
10727 #endif
10728 /* Override any gcc2 internal prototype to avoid an error.  */
10729 #ifdef __cplusplus
10730 extern "C"
10731 {
10732 #endif
10733 /* We use char because int might match the return type of a gcc2
10734    builtin and then its argument prototype would still apply.  */
10735 char $ac_func ();
10736 /* The GNU C library defines this for functions which it implements
10737     to always fail with ENOSYS.  Some functions are actually named
10738     something starting with __ and the normal name is an alias.  */
10739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10740 choke me
10741 #else
10742 char (*f) () = $ac_func;
10743 #endif
10744 #ifdef __cplusplus
10745 }
10746 #endif
10747
10748 int
10749 main ()
10750 {
10751 return f != $ac_func;
10752   ;
10753   return 0;
10754 }
10755 _ACEOF
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10758   (eval $ac_link) 2>&5
10759   ac_status=$?
10760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761   (exit $ac_status); } &&
10762          { ac_try='test -s conftest$ac_exeext'
10763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764   (eval $ac_try) 2>&5
10765   ac_status=$?
10766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767   (exit $ac_status); }; }; then
10768   eval "$as_ac_var=yes"
10769 else
10770   echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10772
10773 eval "$as_ac_var=no"
10774 fi
10775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10776 fi
10777 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10778 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10779 if test `eval echo '${'$as_ac_var'}'` = yes; then
10780   cat >>confdefs.h <<_ACEOF
10781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10782 _ACEOF
10783
10784 fi
10785 done
10786
10787   else
10788
10789   echo "$as_me:$LINENO: checking for _expf declaration" >&5
10790 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
10791   if test x${glibcxx_cv_func__expf_use+set} != xset; then
10792     if test "${glibcxx_cv_func__expf_use+set}" = set; then
10793   echo $ECHO_N "(cached) $ECHO_C" >&6
10794 else
10795
10796
10797
10798       ac_ext=cc
10799 ac_cpp='$CXXCPP $CPPFLAGS'
10800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10803
10804       cat >conftest.$ac_ext <<_ACEOF
10805 #line $LINENO "configure"
10806 /* confdefs.h.  */
10807 _ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h.  */
10811 #include <math.h>
10812                       #ifdef HAVE_IEEEFP_H
10813                       #include <ieeefp.h>
10814                       #endif
10815
10816 int
10817 main ()
10818 {
10819  _expf(0);
10820   ;
10821   return 0;
10822 }
10823 _ACEOF
10824 rm -f conftest.$ac_objext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10826   (eval $ac_compile) 2>&5
10827   ac_status=$?
10828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829   (exit $ac_status); } &&
10830          { ac_try='test -s conftest.$ac_objext'
10831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832   (eval $ac_try) 2>&5
10833   ac_status=$?
10834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835   (exit $ac_status); }; }; then
10836   glibcxx_cv_func__expf_use=yes
10837 else
10838   echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10840
10841 glibcxx_cv_func__expf_use=no
10842 fi
10843 rm -f conftest.$ac_objext conftest.$ac_ext
10844       ac_ext=c
10845 ac_cpp='$CPP $CPPFLAGS'
10846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10849
10850
10851 fi
10852
10853   fi
10854   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
10855 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
10856
10857     if test x$glibcxx_cv_func__expf_use = x"yes"; then
10858
10859 for ac_func in _expf
10860 do
10861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10862 echo "$as_me:$LINENO: checking for $ac_func" >&5
10863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10864 if eval "test \"\${$as_ac_var+set}\" = set"; then
10865   echo $ECHO_N "(cached) $ECHO_C" >&6
10866 else
10867   cat >conftest.$ac_ext <<_ACEOF
10868 #line $LINENO "configure"
10869 /* confdefs.h.  */
10870 _ACEOF
10871 cat confdefs.h >>conftest.$ac_ext
10872 cat >>conftest.$ac_ext <<_ACEOF
10873 /* end confdefs.h.  */
10874 /* System header to define __stub macros and hopefully few prototypes,
10875     which can conflict with char $ac_func (); below.
10876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10877     <limits.h> exists even on freestanding compilers.  */
10878 #ifdef __STDC__
10879 # include <limits.h>
10880 #else
10881 # include <assert.h>
10882 #endif
10883 /* Override any gcc2 internal prototype to avoid an error.  */
10884 #ifdef __cplusplus
10885 extern "C"
10886 {
10887 #endif
10888 /* We use char because int might match the return type of a gcc2
10889    builtin and then its argument prototype would still apply.  */
10890 char $ac_func ();
10891 /* The GNU C library defines this for functions which it implements
10892     to always fail with ENOSYS.  Some functions are actually named
10893     something starting with __ and the normal name is an alias.  */
10894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10895 choke me
10896 #else
10897 char (*f) () = $ac_func;
10898 #endif
10899 #ifdef __cplusplus
10900 }
10901 #endif
10902
10903 int
10904 main ()
10905 {
10906 return f != $ac_func;
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 rm -f conftest.$ac_objext conftest$ac_exeext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10913   (eval $ac_link) 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); } &&
10917          { ac_try='test -s conftest$ac_exeext'
10918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919   (eval $ac_try) 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); }; }; then
10923   eval "$as_ac_var=yes"
10924 else
10925   echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10927
10928 eval "$as_ac_var=no"
10929 fi
10930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10931 fi
10932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10934 if test `eval echo '${'$as_ac_var'}'` = yes; then
10935   cat >>confdefs.h <<_ACEOF
10936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10937 _ACEOF
10938
10939 fi
10940 done
10941
10942     fi
10943   fi
10944
10945
10946
10947   echo "$as_me:$LINENO: checking for isnanf declaration" >&5
10948 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
10949   if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
10950     if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
10951   echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953
10954
10955
10956       ac_ext=cc
10957 ac_cpp='$CXXCPP $CPPFLAGS'
10958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10961
10962       cat >conftest.$ac_ext <<_ACEOF
10963 #line $LINENO "configure"
10964 /* confdefs.h.  */
10965 _ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h.  */
10969 #include <math.h>
10970                       #ifdef HAVE_IEEEFP_H
10971                       #include <ieeefp.h>
10972                       #endif
10973
10974 int
10975 main ()
10976 {
10977  isnanf(0);
10978   ;
10979   return 0;
10980 }
10981 _ACEOF
10982 rm -f conftest.$ac_objext
10983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10984   (eval $ac_compile) 2>&5
10985   ac_status=$?
10986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987   (exit $ac_status); } &&
10988          { ac_try='test -s conftest.$ac_objext'
10989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990   (eval $ac_try) 2>&5
10991   ac_status=$?
10992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993   (exit $ac_status); }; }; then
10994   glibcxx_cv_func_isnanf_use=yes
10995 else
10996   echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10998
10999 glibcxx_cv_func_isnanf_use=no
11000 fi
11001 rm -f conftest.$ac_objext conftest.$ac_ext
11002       ac_ext=c
11003 ac_cpp='$CPP $CPPFLAGS'
11004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11007
11008
11009 fi
11010
11011   fi
11012   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
11013 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
11014
11015   if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
11016
11017 for ac_func in isnanf
11018 do
11019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11020 echo "$as_me:$LINENO: checking for $ac_func" >&5
11021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11022 if eval "test \"\${$as_ac_var+set}\" = set"; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   cat >conftest.$ac_ext <<_ACEOF
11026 #line $LINENO "configure"
11027 /* confdefs.h.  */
11028 _ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h.  */
11032 /* System header to define __stub macros and hopefully few prototypes,
11033     which can conflict with char $ac_func (); below.
11034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11035     <limits.h> exists even on freestanding compilers.  */
11036 #ifdef __STDC__
11037 # include <limits.h>
11038 #else
11039 # include <assert.h>
11040 #endif
11041 /* Override any gcc2 internal prototype to avoid an error.  */
11042 #ifdef __cplusplus
11043 extern "C"
11044 {
11045 #endif
11046 /* We use char because int might match the return type of a gcc2
11047    builtin and then its argument prototype would still apply.  */
11048 char $ac_func ();
11049 /* The GNU C library defines this for functions which it implements
11050     to always fail with ENOSYS.  Some functions are actually named
11051     something starting with __ and the normal name is an alias.  */
11052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11053 choke me
11054 #else
11055 char (*f) () = $ac_func;
11056 #endif
11057 #ifdef __cplusplus
11058 }
11059 #endif
11060
11061 int
11062 main ()
11063 {
11064 return f != $ac_func;
11065   ;
11066   return 0;
11067 }
11068 _ACEOF
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11071   (eval $ac_link) 2>&5
11072   ac_status=$?
11073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074   (exit $ac_status); } &&
11075          { ac_try='test -s conftest$ac_exeext'
11076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077   (eval $ac_try) 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }; }; then
11081   eval "$as_ac_var=yes"
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 eval "$as_ac_var=no"
11087 fi
11088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11089 fi
11090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11092 if test `eval echo '${'$as_ac_var'}'` = yes; then
11093   cat >>confdefs.h <<_ACEOF
11094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11095 _ACEOF
11096
11097 fi
11098 done
11099
11100   else
11101
11102   echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
11103 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
11104   if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
11105     if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
11106   echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108
11109
11110
11111       ac_ext=cc
11112 ac_cpp='$CXXCPP $CPPFLAGS'
11113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11116
11117       cat >conftest.$ac_ext <<_ACEOF
11118 #line $LINENO "configure"
11119 /* confdefs.h.  */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h.  */
11124 #include <math.h>
11125                       #ifdef HAVE_IEEEFP_H
11126                       #include <ieeefp.h>
11127                       #endif
11128
11129 int
11130 main ()
11131 {
11132  _isnanf(0);
11133   ;
11134   return 0;
11135 }
11136 _ACEOF
11137 rm -f conftest.$ac_objext
11138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11139   (eval $ac_compile) 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); } &&
11143          { ac_try='test -s conftest.$ac_objext'
11144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145   (eval $ac_try) 2>&5
11146   ac_status=$?
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); }; }; then
11149   glibcxx_cv_func__isnanf_use=yes
11150 else
11151   echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11153
11154 glibcxx_cv_func__isnanf_use=no
11155 fi
11156 rm -f conftest.$ac_objext conftest.$ac_ext
11157       ac_ext=c
11158 ac_cpp='$CPP $CPPFLAGS'
11159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11162
11163
11164 fi
11165
11166   fi
11167   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
11168 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
11169
11170     if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
11171
11172 for ac_func in _isnanf
11173 do
11174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11175 echo "$as_me:$LINENO: checking for $ac_func" >&5
11176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11177 if eval "test \"\${$as_ac_var+set}\" = set"; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180   cat >conftest.$ac_ext <<_ACEOF
11181 #line $LINENO "configure"
11182 /* confdefs.h.  */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h.  */
11187 /* System header to define __stub macros and hopefully few prototypes,
11188     which can conflict with char $ac_func (); below.
11189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11190     <limits.h> exists even on freestanding compilers.  */
11191 #ifdef __STDC__
11192 # include <limits.h>
11193 #else
11194 # include <assert.h>
11195 #endif
11196 /* Override any gcc2 internal prototype to avoid an error.  */
11197 #ifdef __cplusplus
11198 extern "C"
11199 {
11200 #endif
11201 /* We use char because int might match the return type of a gcc2
11202    builtin and then its argument prototype would still apply.  */
11203 char $ac_func ();
11204 /* The GNU C library defines this for functions which it implements
11205     to always fail with ENOSYS.  Some functions are actually named
11206     something starting with __ and the normal name is an alias.  */
11207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11208 choke me
11209 #else
11210 char (*f) () = $ac_func;
11211 #endif
11212 #ifdef __cplusplus
11213 }
11214 #endif
11215
11216 int
11217 main ()
11218 {
11219 return f != $ac_func;
11220   ;
11221   return 0;
11222 }
11223 _ACEOF
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226   (eval $ac_link) 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); } &&
11230          { ac_try='test -s conftest$ac_exeext'
11231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232   (eval $ac_try) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }; }; then
11236   eval "$as_ac_var=yes"
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241 eval "$as_ac_var=no"
11242 fi
11243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11244 fi
11245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11247 if test `eval echo '${'$as_ac_var'}'` = yes; then
11248   cat >>confdefs.h <<_ACEOF
11249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11250 _ACEOF
11251
11252 fi
11253 done
11254
11255     fi
11256   fi
11257
11258
11259
11260   echo "$as_me:$LINENO: checking for isinff declaration" >&5
11261 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
11262   if test x${glibcxx_cv_func_isinff_use+set} != xset; then
11263     if test "${glibcxx_cv_func_isinff_use+set}" = set; then
11264   echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266
11267
11268
11269       ac_ext=cc
11270 ac_cpp='$CXXCPP $CPPFLAGS'
11271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11274
11275       cat >conftest.$ac_ext <<_ACEOF
11276 #line $LINENO "configure"
11277 /* confdefs.h.  */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h.  */
11282 #include <math.h>
11283                       #ifdef HAVE_IEEEFP_H
11284                       #include <ieeefp.h>
11285                       #endif
11286
11287 int
11288 main ()
11289 {
11290  isinff(0);
11291   ;
11292   return 0;
11293 }
11294 _ACEOF
11295 rm -f conftest.$ac_objext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297   (eval $ac_compile) 2>&5
11298   ac_status=$?
11299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300   (exit $ac_status); } &&
11301          { ac_try='test -s conftest.$ac_objext'
11302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303   (eval $ac_try) 2>&5
11304   ac_status=$?
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); }; }; then
11307   glibcxx_cv_func_isinff_use=yes
11308 else
11309   echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11311
11312 glibcxx_cv_func_isinff_use=no
11313 fi
11314 rm -f conftest.$ac_objext conftest.$ac_ext
11315       ac_ext=c
11316 ac_cpp='$CPP $CPPFLAGS'
11317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11320
11321
11322 fi
11323
11324   fi
11325   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
11326 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
11327
11328   if test x$glibcxx_cv_func_isinff_use = x"yes"; then
11329
11330 for ac_func in isinff
11331 do
11332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11333 echo "$as_me:$LINENO: checking for $ac_func" >&5
11334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11335 if eval "test \"\${$as_ac_var+set}\" = set"; then
11336   echo $ECHO_N "(cached) $ECHO_C" >&6
11337 else
11338   cat >conftest.$ac_ext <<_ACEOF
11339 #line $LINENO "configure"
11340 /* confdefs.h.  */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h.  */
11345 /* System header to define __stub macros and hopefully few prototypes,
11346     which can conflict with char $ac_func (); below.
11347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11348     <limits.h> exists even on freestanding compilers.  */
11349 #ifdef __STDC__
11350 # include <limits.h>
11351 #else
11352 # include <assert.h>
11353 #endif
11354 /* Override any gcc2 internal prototype to avoid an error.  */
11355 #ifdef __cplusplus
11356 extern "C"
11357 {
11358 #endif
11359 /* We use char because int might match the return type of a gcc2
11360    builtin and then its argument prototype would still apply.  */
11361 char $ac_func ();
11362 /* The GNU C library defines this for functions which it implements
11363     to always fail with ENOSYS.  Some functions are actually named
11364     something starting with __ and the normal name is an alias.  */
11365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11366 choke me
11367 #else
11368 char (*f) () = $ac_func;
11369 #endif
11370 #ifdef __cplusplus
11371 }
11372 #endif
11373
11374 int
11375 main ()
11376 {
11377 return f != $ac_func;
11378   ;
11379   return 0;
11380 }
11381 _ACEOF
11382 rm -f conftest.$ac_objext conftest$ac_exeext
11383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11384   (eval $ac_link) 2>&5
11385   ac_status=$?
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); } &&
11388          { ac_try='test -s conftest$ac_exeext'
11389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390   (eval $ac_try) 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); }; }; then
11394   eval "$as_ac_var=yes"
11395 else
11396   echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11398
11399 eval "$as_ac_var=no"
11400 fi
11401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11402 fi
11403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11404 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11405 if test `eval echo '${'$as_ac_var'}'` = yes; then
11406   cat >>confdefs.h <<_ACEOF
11407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11408 _ACEOF
11409
11410 fi
11411 done
11412
11413   else
11414
11415   echo "$as_me:$LINENO: checking for _isinff declaration" >&5
11416 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
11417   if test x${glibcxx_cv_func__isinff_use+set} != xset; then
11418     if test "${glibcxx_cv_func__isinff_use+set}" = set; then
11419   echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421
11422
11423
11424       ac_ext=cc
11425 ac_cpp='$CXXCPP $CPPFLAGS'
11426 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11427 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11428 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11429
11430       cat >conftest.$ac_ext <<_ACEOF
11431 #line $LINENO "configure"
11432 /* confdefs.h.  */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h.  */
11437 #include <math.h>
11438                       #ifdef HAVE_IEEEFP_H
11439                       #include <ieeefp.h>
11440                       #endif
11441
11442 int
11443 main ()
11444 {
11445  _isinff(0);
11446   ;
11447   return 0;
11448 }
11449 _ACEOF
11450 rm -f conftest.$ac_objext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11452   (eval $ac_compile) 2>&5
11453   ac_status=$?
11454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455   (exit $ac_status); } &&
11456          { ac_try='test -s conftest.$ac_objext'
11457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458   (eval $ac_try) 2>&5
11459   ac_status=$?
11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461   (exit $ac_status); }; }; then
11462   glibcxx_cv_func__isinff_use=yes
11463 else
11464   echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11466
11467 glibcxx_cv_func__isinff_use=no
11468 fi
11469 rm -f conftest.$ac_objext conftest.$ac_ext
11470       ac_ext=c
11471 ac_cpp='$CPP $CPPFLAGS'
11472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11475
11476
11477 fi
11478
11479   fi
11480   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
11481 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
11482
11483     if test x$glibcxx_cv_func__isinff_use = x"yes"; then
11484
11485 for ac_func in _isinff
11486 do
11487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11488 echo "$as_me:$LINENO: checking for $ac_func" >&5
11489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11490 if eval "test \"\${$as_ac_var+set}\" = set"; then
11491   echo $ECHO_N "(cached) $ECHO_C" >&6
11492 else
11493   cat >conftest.$ac_ext <<_ACEOF
11494 #line $LINENO "configure"
11495 /* confdefs.h.  */
11496 _ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h.  */
11500 /* System header to define __stub macros and hopefully few prototypes,
11501     which can conflict with char $ac_func (); below.
11502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11503     <limits.h> exists even on freestanding compilers.  */
11504 #ifdef __STDC__
11505 # include <limits.h>
11506 #else
11507 # include <assert.h>
11508 #endif
11509 /* Override any gcc2 internal prototype to avoid an error.  */
11510 #ifdef __cplusplus
11511 extern "C"
11512 {
11513 #endif
11514 /* We use char because int might match the return type of a gcc2
11515    builtin and then its argument prototype would still apply.  */
11516 char $ac_func ();
11517 /* The GNU C library defines this for functions which it implements
11518     to always fail with ENOSYS.  Some functions are actually named
11519     something starting with __ and the normal name is an alias.  */
11520 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11521 choke me
11522 #else
11523 char (*f) () = $ac_func;
11524 #endif
11525 #ifdef __cplusplus
11526 }
11527 #endif
11528
11529 int
11530 main ()
11531 {
11532 return f != $ac_func;
11533   ;
11534   return 0;
11535 }
11536 _ACEOF
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11539   (eval $ac_link) 2>&5
11540   ac_status=$?
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); } &&
11543          { ac_try='test -s conftest$ac_exeext'
11544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545   (eval $ac_try) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); }; }; then
11549   eval "$as_ac_var=yes"
11550 else
11551   echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11553
11554 eval "$as_ac_var=no"
11555 fi
11556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11557 fi
11558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11560 if test `eval echo '${'$as_ac_var'}'` = yes; then
11561   cat >>confdefs.h <<_ACEOF
11562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11563 _ACEOF
11564
11565 fi
11566 done
11567
11568     fi
11569   fi
11570
11571
11572
11573   echo "$as_me:$LINENO: checking for atan2f declaration" >&5
11574 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
11575   if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
11576     if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
11577   echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579
11580
11581
11582       ac_ext=cc
11583 ac_cpp='$CXXCPP $CPPFLAGS'
11584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11587
11588       cat >conftest.$ac_ext <<_ACEOF
11589 #line $LINENO "configure"
11590 /* confdefs.h.  */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h.  */
11595 #include <math.h>
11596 int
11597 main ()
11598 {
11599  atan2f(0, 0);
11600   ;
11601   return 0;
11602 }
11603 _ACEOF
11604 rm -f conftest.$ac_objext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606   (eval $ac_compile) 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); } &&
11610          { ac_try='test -s conftest.$ac_objext'
11611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612   (eval $ac_try) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; }; then
11616   glibcxx_cv_func_atan2f_use=yes
11617 else
11618   echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11620
11621 glibcxx_cv_func_atan2f_use=no
11622 fi
11623 rm -f conftest.$ac_objext conftest.$ac_ext
11624       ac_ext=c
11625 ac_cpp='$CPP $CPPFLAGS'
11626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11629
11630
11631 fi
11632
11633   fi
11634   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
11635 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
11636
11637   if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
11638
11639 for ac_func in atan2f
11640 do
11641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11642 echo "$as_me:$LINENO: checking for $ac_func" >&5
11643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11644 if eval "test \"\${$as_ac_var+set}\" = set"; then
11645   echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11647   cat >conftest.$ac_ext <<_ACEOF
11648 #line $LINENO "configure"
11649 /* confdefs.h.  */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h.  */
11654 /* System header to define __stub macros and hopefully few prototypes,
11655     which can conflict with char $ac_func (); below.
11656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11657     <limits.h> exists even on freestanding compilers.  */
11658 #ifdef __STDC__
11659 # include <limits.h>
11660 #else
11661 # include <assert.h>
11662 #endif
11663 /* Override any gcc2 internal prototype to avoid an error.  */
11664 #ifdef __cplusplus
11665 extern "C"
11666 {
11667 #endif
11668 /* We use char because int might match the return type of a gcc2
11669    builtin and then its argument prototype would still apply.  */
11670 char $ac_func ();
11671 /* The GNU C library defines this for functions which it implements
11672     to always fail with ENOSYS.  Some functions are actually named
11673     something starting with __ and the normal name is an alias.  */
11674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11675 choke me
11676 #else
11677 char (*f) () = $ac_func;
11678 #endif
11679 #ifdef __cplusplus
11680 }
11681 #endif
11682
11683 int
11684 main ()
11685 {
11686 return f != $ac_func;
11687   ;
11688   return 0;
11689 }
11690 _ACEOF
11691 rm -f conftest.$ac_objext conftest$ac_exeext
11692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11693   (eval $ac_link) 2>&5
11694   ac_status=$?
11695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696   (exit $ac_status); } &&
11697          { ac_try='test -s conftest$ac_exeext'
11698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699   (eval $ac_try) 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; }; then
11703   eval "$as_ac_var=yes"
11704 else
11705   echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11707
11708 eval "$as_ac_var=no"
11709 fi
11710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11711 fi
11712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11714 if test `eval echo '${'$as_ac_var'}'` = yes; then
11715   cat >>confdefs.h <<_ACEOF
11716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11717 _ACEOF
11718
11719 fi
11720 done
11721
11722   else
11723
11724   echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
11725 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
11726   if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
11727     if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
11728   echo $ECHO_N "(cached) $ECHO_C" >&6
11729 else
11730
11731
11732
11733       ac_ext=cc
11734 ac_cpp='$CXXCPP $CPPFLAGS'
11735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11738
11739       cat >conftest.$ac_ext <<_ACEOF
11740 #line $LINENO "configure"
11741 /* confdefs.h.  */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h.  */
11746 #include <math.h>
11747 int
11748 main ()
11749 {
11750  _atan2f(0, 0);
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 rm -f conftest.$ac_objext
11756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11757   (eval $ac_compile) 2>&5
11758   ac_status=$?
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } &&
11761          { ac_try='test -s conftest.$ac_objext'
11762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763   (eval $ac_try) 2>&5
11764   ac_status=$?
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); }; }; then
11767   glibcxx_cv_func__atan2f_use=yes
11768 else
11769   echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11771
11772 glibcxx_cv_func__atan2f_use=no
11773 fi
11774 rm -f conftest.$ac_objext conftest.$ac_ext
11775       ac_ext=c
11776 ac_cpp='$CPP $CPPFLAGS'
11777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11780
11781
11782 fi
11783
11784   fi
11785   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
11786 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
11787
11788     if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
11789
11790 for ac_func in _atan2f
11791 do
11792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11793 echo "$as_me:$LINENO: checking for $ac_func" >&5
11794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11795 if eval "test \"\${$as_ac_var+set}\" = set"; then
11796   echo $ECHO_N "(cached) $ECHO_C" >&6
11797 else
11798   cat >conftest.$ac_ext <<_ACEOF
11799 #line $LINENO "configure"
11800 /* confdefs.h.  */
11801 _ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h.  */
11805 /* System header to define __stub macros and hopefully few prototypes,
11806     which can conflict with char $ac_func (); below.
11807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11808     <limits.h> exists even on freestanding compilers.  */
11809 #ifdef __STDC__
11810 # include <limits.h>
11811 #else
11812 # include <assert.h>
11813 #endif
11814 /* Override any gcc2 internal prototype to avoid an error.  */
11815 #ifdef __cplusplus
11816 extern "C"
11817 {
11818 #endif
11819 /* We use char because int might match the return type of a gcc2
11820    builtin and then its argument prototype would still apply.  */
11821 char $ac_func ();
11822 /* The GNU C library defines this for functions which it implements
11823     to always fail with ENOSYS.  Some functions are actually named
11824     something starting with __ and the normal name is an alias.  */
11825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11826 choke me
11827 #else
11828 char (*f) () = $ac_func;
11829 #endif
11830 #ifdef __cplusplus
11831 }
11832 #endif
11833
11834 int
11835 main ()
11836 {
11837 return f != $ac_func;
11838   ;
11839   return 0;
11840 }
11841 _ACEOF
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11844   (eval $ac_link) 2>&5
11845   ac_status=$?
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); } &&
11848          { ac_try='test -s conftest$ac_exeext'
11849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850   (eval $ac_try) 2>&5
11851   ac_status=$?
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); }; }; then
11854   eval "$as_ac_var=yes"
11855 else
11856   echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 eval "$as_ac_var=no"
11860 fi
11861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11862 fi
11863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11865 if test `eval echo '${'$as_ac_var'}'` = yes; then
11866   cat >>confdefs.h <<_ACEOF
11867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11868 _ACEOF
11869
11870 fi
11871 done
11872
11873     fi
11874   fi
11875
11876
11877
11878   echo "$as_me:$LINENO: checking for fabsf declaration" >&5
11879 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
11880   if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
11881     if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
11882   echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884
11885
11886
11887       ac_ext=cc
11888 ac_cpp='$CXXCPP $CPPFLAGS'
11889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11892
11893       cat >conftest.$ac_ext <<_ACEOF
11894 #line $LINENO "configure"
11895 /* confdefs.h.  */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h.  */
11900 #include <math.h>
11901                       #ifdef HAVE_IEEEFP_H
11902                       #include <ieeefp.h>
11903                       #endif
11904
11905 int
11906 main ()
11907 {
11908  fabsf(0);
11909   ;
11910   return 0;
11911 }
11912 _ACEOF
11913 rm -f conftest.$ac_objext
11914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11915   (eval $ac_compile) 2>&5
11916   ac_status=$?
11917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918   (exit $ac_status); } &&
11919          { ac_try='test -s conftest.$ac_objext'
11920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921   (eval $ac_try) 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); }; }; then
11925   glibcxx_cv_func_fabsf_use=yes
11926 else
11927   echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11929
11930 glibcxx_cv_func_fabsf_use=no
11931 fi
11932 rm -f conftest.$ac_objext conftest.$ac_ext
11933       ac_ext=c
11934 ac_cpp='$CPP $CPPFLAGS'
11935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11938
11939
11940 fi
11941
11942   fi
11943   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
11944 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
11945
11946   if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
11947
11948 for ac_func in fabsf
11949 do
11950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11951 echo "$as_me:$LINENO: checking for $ac_func" >&5
11952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11953 if eval "test \"\${$as_ac_var+set}\" = set"; then
11954   echo $ECHO_N "(cached) $ECHO_C" >&6
11955 else
11956   cat >conftest.$ac_ext <<_ACEOF
11957 #line $LINENO "configure"
11958 /* confdefs.h.  */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h.  */
11963 /* System header to define __stub macros and hopefully few prototypes,
11964     which can conflict with char $ac_func (); below.
11965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11966     <limits.h> exists even on freestanding compilers.  */
11967 #ifdef __STDC__
11968 # include <limits.h>
11969 #else
11970 # include <assert.h>
11971 #endif
11972 /* Override any gcc2 internal prototype to avoid an error.  */
11973 #ifdef __cplusplus
11974 extern "C"
11975 {
11976 #endif
11977 /* We use char because int might match the return type of a gcc2
11978    builtin and then its argument prototype would still apply.  */
11979 char $ac_func ();
11980 /* The GNU C library defines this for functions which it implements
11981     to always fail with ENOSYS.  Some functions are actually named
11982     something starting with __ and the normal name is an alias.  */
11983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11984 choke me
11985 #else
11986 char (*f) () = $ac_func;
11987 #endif
11988 #ifdef __cplusplus
11989 }
11990 #endif
11991
11992 int
11993 main ()
11994 {
11995 return f != $ac_func;
11996   ;
11997   return 0;
11998 }
11999 _ACEOF
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12002   (eval $ac_link) 2>&5
12003   ac_status=$?
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); } &&
12006          { ac_try='test -s conftest$ac_exeext'
12007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008   (eval $ac_try) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); }; }; then
12012   eval "$as_ac_var=yes"
12013 else
12014   echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12016
12017 eval "$as_ac_var=no"
12018 fi
12019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12020 fi
12021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12023 if test `eval echo '${'$as_ac_var'}'` = yes; then
12024   cat >>confdefs.h <<_ACEOF
12025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12026 _ACEOF
12027
12028 fi
12029 done
12030
12031   else
12032
12033   echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
12034 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
12035   if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
12036     if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
12037   echo $ECHO_N "(cached) $ECHO_C" >&6
12038 else
12039
12040
12041
12042       ac_ext=cc
12043 ac_cpp='$CXXCPP $CPPFLAGS'
12044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12047
12048       cat >conftest.$ac_ext <<_ACEOF
12049 #line $LINENO "configure"
12050 /* confdefs.h.  */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h.  */
12055 #include <math.h>
12056                       #ifdef HAVE_IEEEFP_H
12057                       #include <ieeefp.h>
12058                       #endif
12059
12060 int
12061 main ()
12062 {
12063  _fabsf(0);
12064   ;
12065   return 0;
12066 }
12067 _ACEOF
12068 rm -f conftest.$ac_objext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12070   (eval $ac_compile) 2>&5
12071   ac_status=$?
12072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073   (exit $ac_status); } &&
12074          { ac_try='test -s conftest.$ac_objext'
12075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076   (eval $ac_try) 2>&5
12077   ac_status=$?
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); }; }; then
12080   glibcxx_cv_func__fabsf_use=yes
12081 else
12082   echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12084
12085 glibcxx_cv_func__fabsf_use=no
12086 fi
12087 rm -f conftest.$ac_objext conftest.$ac_ext
12088       ac_ext=c
12089 ac_cpp='$CPP $CPPFLAGS'
12090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12093
12094
12095 fi
12096
12097   fi
12098   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
12099 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
12100
12101     if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
12102
12103 for ac_func in _fabsf
12104 do
12105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12106 echo "$as_me:$LINENO: checking for $ac_func" >&5
12107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12108 if eval "test \"\${$as_ac_var+set}\" = set"; then
12109   echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111   cat >conftest.$ac_ext <<_ACEOF
12112 #line $LINENO "configure"
12113 /* confdefs.h.  */
12114 _ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h.  */
12118 /* System header to define __stub macros and hopefully few prototypes,
12119     which can conflict with char $ac_func (); below.
12120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12121     <limits.h> exists even on freestanding compilers.  */
12122 #ifdef __STDC__
12123 # include <limits.h>
12124 #else
12125 # include <assert.h>
12126 #endif
12127 /* Override any gcc2 internal prototype to avoid an error.  */
12128 #ifdef __cplusplus
12129 extern "C"
12130 {
12131 #endif
12132 /* We use char because int might match the return type of a gcc2
12133    builtin and then its argument prototype would still apply.  */
12134 char $ac_func ();
12135 /* The GNU C library defines this for functions which it implements
12136     to always fail with ENOSYS.  Some functions are actually named
12137     something starting with __ and the normal name is an alias.  */
12138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12139 choke me
12140 #else
12141 char (*f) () = $ac_func;
12142 #endif
12143 #ifdef __cplusplus
12144 }
12145 #endif
12146
12147 int
12148 main ()
12149 {
12150 return f != $ac_func;
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12157   (eval $ac_link) 2>&5
12158   ac_status=$?
12159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160   (exit $ac_status); } &&
12161          { ac_try='test -s conftest$ac_exeext'
12162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163   (eval $ac_try) 2>&5
12164   ac_status=$?
12165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166   (exit $ac_status); }; }; then
12167   eval "$as_ac_var=yes"
12168 else
12169   echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12171
12172 eval "$as_ac_var=no"
12173 fi
12174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12175 fi
12176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12178 if test `eval echo '${'$as_ac_var'}'` = yes; then
12179   cat >>confdefs.h <<_ACEOF
12180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12181 _ACEOF
12182
12183 fi
12184 done
12185
12186     fi
12187   fi
12188
12189
12190
12191   echo "$as_me:$LINENO: checking for fmodf declaration" >&5
12192 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
12193   if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
12194     if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
12195   echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197
12198
12199
12200       ac_ext=cc
12201 ac_cpp='$CXXCPP $CPPFLAGS'
12202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12205
12206       cat >conftest.$ac_ext <<_ACEOF
12207 #line $LINENO "configure"
12208 /* confdefs.h.  */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h.  */
12213 #include <math.h>
12214 int
12215 main ()
12216 {
12217  fmodf(0, 0);
12218   ;
12219   return 0;
12220 }
12221 _ACEOF
12222 rm -f conftest.$ac_objext
12223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12224   (eval $ac_compile) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } &&
12228          { ac_try='test -s conftest.$ac_objext'
12229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230   (eval $ac_try) 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); }; }; then
12234   glibcxx_cv_func_fmodf_use=yes
12235 else
12236   echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 glibcxx_cv_func_fmodf_use=no
12240 fi
12241 rm -f conftest.$ac_objext conftest.$ac_ext
12242       ac_ext=c
12243 ac_cpp='$CPP $CPPFLAGS'
12244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12247
12248
12249 fi
12250
12251   fi
12252   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
12253 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
12254
12255   if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
12256
12257 for ac_func in fmodf
12258 do
12259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12260 echo "$as_me:$LINENO: checking for $ac_func" >&5
12261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12262 if eval "test \"\${$as_ac_var+set}\" = set"; then
12263   echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265   cat >conftest.$ac_ext <<_ACEOF
12266 #line $LINENO "configure"
12267 /* confdefs.h.  */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h.  */
12272 /* System header to define __stub macros and hopefully few prototypes,
12273     which can conflict with char $ac_func (); below.
12274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12275     <limits.h> exists even on freestanding compilers.  */
12276 #ifdef __STDC__
12277 # include <limits.h>
12278 #else
12279 # include <assert.h>
12280 #endif
12281 /* Override any gcc2 internal prototype to avoid an error.  */
12282 #ifdef __cplusplus
12283 extern "C"
12284 {
12285 #endif
12286 /* We use char because int might match the return type of a gcc2
12287    builtin and then its argument prototype would still apply.  */
12288 char $ac_func ();
12289 /* The GNU C library defines this for functions which it implements
12290     to always fail with ENOSYS.  Some functions are actually named
12291     something starting with __ and the normal name is an alias.  */
12292 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12293 choke me
12294 #else
12295 char (*f) () = $ac_func;
12296 #endif
12297 #ifdef __cplusplus
12298 }
12299 #endif
12300
12301 int
12302 main ()
12303 {
12304 return f != $ac_func;
12305   ;
12306   return 0;
12307 }
12308 _ACEOF
12309 rm -f conftest.$ac_objext conftest$ac_exeext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12311   (eval $ac_link) 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); } &&
12315          { ac_try='test -s conftest$ac_exeext'
12316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12317   (eval $ac_try) 2>&5
12318   ac_status=$?
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); }; }; then
12321   eval "$as_ac_var=yes"
12322 else
12323   echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12325
12326 eval "$as_ac_var=no"
12327 fi
12328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12329 fi
12330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12332 if test `eval echo '${'$as_ac_var'}'` = yes; then
12333   cat >>confdefs.h <<_ACEOF
12334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12335 _ACEOF
12336
12337 fi
12338 done
12339
12340   else
12341
12342   echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
12343 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
12344   if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
12345     if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
12346   echo $ECHO_N "(cached) $ECHO_C" >&6
12347 else
12348
12349
12350
12351       ac_ext=cc
12352 ac_cpp='$CXXCPP $CPPFLAGS'
12353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12356
12357       cat >conftest.$ac_ext <<_ACEOF
12358 #line $LINENO "configure"
12359 /* confdefs.h.  */
12360 _ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h.  */
12364 #include <math.h>
12365 int
12366 main ()
12367 {
12368  _fmodf(0, 0);
12369   ;
12370   return 0;
12371 }
12372 _ACEOF
12373 rm -f conftest.$ac_objext
12374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12375   (eval $ac_compile) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); } &&
12379          { ac_try='test -s conftest.$ac_objext'
12380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381   (eval $ac_try) 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); }; }; then
12385   glibcxx_cv_func__fmodf_use=yes
12386 else
12387   echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12389
12390 glibcxx_cv_func__fmodf_use=no
12391 fi
12392 rm -f conftest.$ac_objext conftest.$ac_ext
12393       ac_ext=c
12394 ac_cpp='$CPP $CPPFLAGS'
12395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12398
12399
12400 fi
12401
12402   fi
12403   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
12404 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
12405
12406     if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
12407
12408 for ac_func in _fmodf
12409 do
12410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12411 echo "$as_me:$LINENO: checking for $ac_func" >&5
12412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12413 if eval "test \"\${$as_ac_var+set}\" = set"; then
12414   echo $ECHO_N "(cached) $ECHO_C" >&6
12415 else
12416   cat >conftest.$ac_ext <<_ACEOF
12417 #line $LINENO "configure"
12418 /* confdefs.h.  */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h.  */
12423 /* System header to define __stub macros and hopefully few prototypes,
12424     which can conflict with char $ac_func (); below.
12425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12426     <limits.h> exists even on freestanding compilers.  */
12427 #ifdef __STDC__
12428 # include <limits.h>
12429 #else
12430 # include <assert.h>
12431 #endif
12432 /* Override any gcc2 internal prototype to avoid an error.  */
12433 #ifdef __cplusplus
12434 extern "C"
12435 {
12436 #endif
12437 /* We use char because int might match the return type of a gcc2
12438    builtin and then its argument prototype would still apply.  */
12439 char $ac_func ();
12440 /* The GNU C library defines this for functions which it implements
12441     to always fail with ENOSYS.  Some functions are actually named
12442     something starting with __ and the normal name is an alias.  */
12443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12444 choke me
12445 #else
12446 char (*f) () = $ac_func;
12447 #endif
12448 #ifdef __cplusplus
12449 }
12450 #endif
12451
12452 int
12453 main ()
12454 {
12455 return f != $ac_func;
12456   ;
12457   return 0;
12458 }
12459 _ACEOF
12460 rm -f conftest.$ac_objext conftest$ac_exeext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462   (eval $ac_link) 2>&5
12463   ac_status=$?
12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465   (exit $ac_status); } &&
12466          { ac_try='test -s conftest$ac_exeext'
12467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468   (eval $ac_try) 2>&5
12469   ac_status=$?
12470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471   (exit $ac_status); }; }; then
12472   eval "$as_ac_var=yes"
12473 else
12474   echo "$as_me: failed program was:" >&5
12475 sed 's/^/| /' conftest.$ac_ext >&5
12476
12477 eval "$as_ac_var=no"
12478 fi
12479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12480 fi
12481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12483 if test `eval echo '${'$as_ac_var'}'` = yes; then
12484   cat >>confdefs.h <<_ACEOF
12485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12486 _ACEOF
12487
12488 fi
12489 done
12490
12491     fi
12492   fi
12493
12494
12495
12496   echo "$as_me:$LINENO: checking for frexpf declaration" >&5
12497 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
12498   if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
12499     if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
12500   echo $ECHO_N "(cached) $ECHO_C" >&6
12501 else
12502
12503
12504
12505       ac_ext=cc
12506 ac_cpp='$CXXCPP $CPPFLAGS'
12507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12510
12511       cat >conftest.$ac_ext <<_ACEOF
12512 #line $LINENO "configure"
12513 /* confdefs.h.  */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h.  */
12518 #include <math.h>
12519 int
12520 main ()
12521 {
12522  frexpf(0, 0);
12523   ;
12524   return 0;
12525 }
12526 _ACEOF
12527 rm -f conftest.$ac_objext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12529   (eval $ac_compile) 2>&5
12530   ac_status=$?
12531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532   (exit $ac_status); } &&
12533          { ac_try='test -s conftest.$ac_objext'
12534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535   (eval $ac_try) 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; }; then
12539   glibcxx_cv_func_frexpf_use=yes
12540 else
12541   echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12543
12544 glibcxx_cv_func_frexpf_use=no
12545 fi
12546 rm -f conftest.$ac_objext conftest.$ac_ext
12547       ac_ext=c
12548 ac_cpp='$CPP $CPPFLAGS'
12549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12552
12553
12554 fi
12555
12556   fi
12557   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
12558 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
12559
12560   if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
12561
12562 for ac_func in frexpf
12563 do
12564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12565 echo "$as_me:$LINENO: checking for $ac_func" >&5
12566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12567 if eval "test \"\${$as_ac_var+set}\" = set"; then
12568   echo $ECHO_N "(cached) $ECHO_C" >&6
12569 else
12570   cat >conftest.$ac_ext <<_ACEOF
12571 #line $LINENO "configure"
12572 /* confdefs.h.  */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h.  */
12577 /* System header to define __stub macros and hopefully few prototypes,
12578     which can conflict with char $ac_func (); below.
12579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12580     <limits.h> exists even on freestanding compilers.  */
12581 #ifdef __STDC__
12582 # include <limits.h>
12583 #else
12584 # include <assert.h>
12585 #endif
12586 /* Override any gcc2 internal prototype to avoid an error.  */
12587 #ifdef __cplusplus
12588 extern "C"
12589 {
12590 #endif
12591 /* We use char because int might match the return type of a gcc2
12592    builtin and then its argument prototype would still apply.  */
12593 char $ac_func ();
12594 /* The GNU C library defines this for functions which it implements
12595     to always fail with ENOSYS.  Some functions are actually named
12596     something starting with __ and the normal name is an alias.  */
12597 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12598 choke me
12599 #else
12600 char (*f) () = $ac_func;
12601 #endif
12602 #ifdef __cplusplus
12603 }
12604 #endif
12605
12606 int
12607 main ()
12608 {
12609 return f != $ac_func;
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest.$ac_objext conftest$ac_exeext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12616   (eval $ac_link) 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); } &&
12620          { ac_try='test -s conftest$ac_exeext'
12621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622   (eval $ac_try) 2>&5
12623   ac_status=$?
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); }; }; then
12626   eval "$as_ac_var=yes"
12627 else
12628   echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12630
12631 eval "$as_ac_var=no"
12632 fi
12633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12634 fi
12635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12637 if test `eval echo '${'$as_ac_var'}'` = yes; then
12638   cat >>confdefs.h <<_ACEOF
12639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12640 _ACEOF
12641
12642 fi
12643 done
12644
12645   else
12646
12647   echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
12648 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
12649   if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
12650     if test "${glibcxx_cv_func__frexpf_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 #line $LINENO "configure"
12664 /* confdefs.h.  */
12665 _ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h.  */
12669 #include <math.h>
12670 int
12671 main ()
12672 {
12673  _frexpf(0, 0);
12674   ;
12675   return 0;
12676 }
12677 _ACEOF
12678 rm -f conftest.$ac_objext
12679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12680   (eval $ac_compile) 2>&5
12681   ac_status=$?
12682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); } &&
12684          { ac_try='test -s conftest.$ac_objext'
12685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686   (eval $ac_try) 2>&5
12687   ac_status=$?
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); }; }; then
12690   glibcxx_cv_func__frexpf_use=yes
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 glibcxx_cv_func__frexpf_use=no
12696 fi
12697 rm -f conftest.$ac_objext conftest.$ac_ext
12698       ac_ext=c
12699 ac_cpp='$CPP $CPPFLAGS'
12700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12703
12704
12705 fi
12706
12707   fi
12708   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
12709 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
12710
12711     if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
12712
12713 for ac_func in _frexpf
12714 do
12715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12716 echo "$as_me:$LINENO: checking for $ac_func" >&5
12717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12718 if eval "test \"\${$as_ac_var+set}\" = set"; then
12719   echo $ECHO_N "(cached) $ECHO_C" >&6
12720 else
12721   cat >conftest.$ac_ext <<_ACEOF
12722 #line $LINENO "configure"
12723 /* confdefs.h.  */
12724 _ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h.  */
12728 /* System header to define __stub macros and hopefully few prototypes,
12729     which can conflict with char $ac_func (); below.
12730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12731     <limits.h> exists even on freestanding compilers.  */
12732 #ifdef __STDC__
12733 # include <limits.h>
12734 #else
12735 # include <assert.h>
12736 #endif
12737 /* Override any gcc2 internal prototype to avoid an error.  */
12738 #ifdef __cplusplus
12739 extern "C"
12740 {
12741 #endif
12742 /* We use char because int might match the return type of a gcc2
12743    builtin and then its argument prototype would still apply.  */
12744 char $ac_func ();
12745 /* The GNU C library defines this for functions which it implements
12746     to always fail with ENOSYS.  Some functions are actually named
12747     something starting with __ and the normal name is an alias.  */
12748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12749 choke me
12750 #else
12751 char (*f) () = $ac_func;
12752 #endif
12753 #ifdef __cplusplus
12754 }
12755 #endif
12756
12757 int
12758 main ()
12759 {
12760 return f != $ac_func;
12761   ;
12762   return 0;
12763 }
12764 _ACEOF
12765 rm -f conftest.$ac_objext conftest$ac_exeext
12766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12767   (eval $ac_link) 2>&5
12768   ac_status=$?
12769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770   (exit $ac_status); } &&
12771          { ac_try='test -s conftest$ac_exeext'
12772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773   (eval $ac_try) 2>&5
12774   ac_status=$?
12775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776   (exit $ac_status); }; }; then
12777   eval "$as_ac_var=yes"
12778 else
12779   echo "$as_me: failed program was:" >&5
12780 sed 's/^/| /' conftest.$ac_ext >&5
12781
12782 eval "$as_ac_var=no"
12783 fi
12784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12785 fi
12786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12788 if test `eval echo '${'$as_ac_var'}'` = yes; then
12789   cat >>confdefs.h <<_ACEOF
12790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12791 _ACEOF
12792
12793 fi
12794 done
12795
12796     fi
12797   fi
12798
12799
12800
12801   echo "$as_me:$LINENO: checking for hypotf declaration" >&5
12802 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
12803   if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
12804     if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
12805   echo $ECHO_N "(cached) $ECHO_C" >&6
12806 else
12807
12808
12809
12810       ac_ext=cc
12811 ac_cpp='$CXXCPP $CPPFLAGS'
12812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12815
12816       cat >conftest.$ac_ext <<_ACEOF
12817 #line $LINENO "configure"
12818 /* confdefs.h.  */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h.  */
12823 #include <math.h>
12824 int
12825 main ()
12826 {
12827  hypotf(0, 0);
12828   ;
12829   return 0;
12830 }
12831 _ACEOF
12832 rm -f conftest.$ac_objext
12833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12834   (eval $ac_compile) 2>&5
12835   ac_status=$?
12836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837   (exit $ac_status); } &&
12838          { ac_try='test -s conftest.$ac_objext'
12839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840   (eval $ac_try) 2>&5
12841   ac_status=$?
12842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843   (exit $ac_status); }; }; then
12844   glibcxx_cv_func_hypotf_use=yes
12845 else
12846   echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12848
12849 glibcxx_cv_func_hypotf_use=no
12850 fi
12851 rm -f conftest.$ac_objext conftest.$ac_ext
12852       ac_ext=c
12853 ac_cpp='$CPP $CPPFLAGS'
12854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12857
12858
12859 fi
12860
12861   fi
12862   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
12863 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
12864
12865   if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
12866
12867 for ac_func in hypotf
12868 do
12869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12870 echo "$as_me:$LINENO: checking for $ac_func" >&5
12871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12872 if eval "test \"\${$as_ac_var+set}\" = set"; then
12873   echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875   cat >conftest.$ac_ext <<_ACEOF
12876 #line $LINENO "configure"
12877 /* confdefs.h.  */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h.  */
12882 /* System header to define __stub macros and hopefully few prototypes,
12883     which can conflict with char $ac_func (); below.
12884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12885     <limits.h> exists even on freestanding compilers.  */
12886 #ifdef __STDC__
12887 # include <limits.h>
12888 #else
12889 # include <assert.h>
12890 #endif
12891 /* Override any gcc2 internal prototype to avoid an error.  */
12892 #ifdef __cplusplus
12893 extern "C"
12894 {
12895 #endif
12896 /* We use char because int might match the return type of a gcc2
12897    builtin and then its argument prototype would still apply.  */
12898 char $ac_func ();
12899 /* The GNU C library defines this for functions which it implements
12900     to always fail with ENOSYS.  Some functions are actually named
12901     something starting with __ and the normal name is an alias.  */
12902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12903 choke me
12904 #else
12905 char (*f) () = $ac_func;
12906 #endif
12907 #ifdef __cplusplus
12908 }
12909 #endif
12910
12911 int
12912 main ()
12913 {
12914 return f != $ac_func;
12915   ;
12916   return 0;
12917 }
12918 _ACEOF
12919 rm -f conftest.$ac_objext conftest$ac_exeext
12920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12921   (eval $ac_link) 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); } &&
12925          { ac_try='test -s conftest$ac_exeext'
12926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927   (eval $ac_try) 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); }; }; then
12931   eval "$as_ac_var=yes"
12932 else
12933   echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12935
12936 eval "$as_ac_var=no"
12937 fi
12938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12939 fi
12940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12942 if test `eval echo '${'$as_ac_var'}'` = yes; then
12943   cat >>confdefs.h <<_ACEOF
12944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12945 _ACEOF
12946
12947 fi
12948 done
12949
12950   else
12951
12952   echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
12953 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
12954   if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
12955     if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
12956   echo $ECHO_N "(cached) $ECHO_C" >&6
12957 else
12958
12959
12960
12961       ac_ext=cc
12962 ac_cpp='$CXXCPP $CPPFLAGS'
12963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12966
12967       cat >conftest.$ac_ext <<_ACEOF
12968 #line $LINENO "configure"
12969 /* confdefs.h.  */
12970 _ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h.  */
12974 #include <math.h>
12975 int
12976 main ()
12977 {
12978  _hypotf(0, 0);
12979   ;
12980   return 0;
12981 }
12982 _ACEOF
12983 rm -f conftest.$ac_objext
12984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12985   (eval $ac_compile) 2>&5
12986   ac_status=$?
12987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988   (exit $ac_status); } &&
12989          { ac_try='test -s conftest.$ac_objext'
12990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991   (eval $ac_try) 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); }; }; then
12995   glibcxx_cv_func__hypotf_use=yes
12996 else
12997   echo "$as_me: failed program was:" >&5
12998 sed 's/^/| /' conftest.$ac_ext >&5
12999
13000 glibcxx_cv_func__hypotf_use=no
13001 fi
13002 rm -f conftest.$ac_objext conftest.$ac_ext
13003       ac_ext=c
13004 ac_cpp='$CPP $CPPFLAGS'
13005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13008
13009
13010 fi
13011
13012   fi
13013   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
13014 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
13015
13016     if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
13017
13018 for ac_func in _hypotf
13019 do
13020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13021 echo "$as_me:$LINENO: checking for $ac_func" >&5
13022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13023 if eval "test \"\${$as_ac_var+set}\" = set"; then
13024   echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13026   cat >conftest.$ac_ext <<_ACEOF
13027 #line $LINENO "configure"
13028 /* confdefs.h.  */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h.  */
13033 /* System header to define __stub macros and hopefully few prototypes,
13034     which can conflict with char $ac_func (); below.
13035     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13036     <limits.h> exists even on freestanding compilers.  */
13037 #ifdef __STDC__
13038 # include <limits.h>
13039 #else
13040 # include <assert.h>
13041 #endif
13042 /* Override any gcc2 internal prototype to avoid an error.  */
13043 #ifdef __cplusplus
13044 extern "C"
13045 {
13046 #endif
13047 /* We use char because int might match the return type of a gcc2
13048    builtin and then its argument prototype would still apply.  */
13049 char $ac_func ();
13050 /* The GNU C library defines this for functions which it implements
13051     to always fail with ENOSYS.  Some functions are actually named
13052     something starting with __ and the normal name is an alias.  */
13053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13054 choke me
13055 #else
13056 char (*f) () = $ac_func;
13057 #endif
13058 #ifdef __cplusplus
13059 }
13060 #endif
13061
13062 int
13063 main ()
13064 {
13065 return f != $ac_func;
13066   ;
13067   return 0;
13068 }
13069 _ACEOF
13070 rm -f conftest.$ac_objext conftest$ac_exeext
13071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13072   (eval $ac_link) 2>&5
13073   ac_status=$?
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); } &&
13076          { ac_try='test -s conftest$ac_exeext'
13077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078   (eval $ac_try) 2>&5
13079   ac_status=$?
13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); }; }; then
13082   eval "$as_ac_var=yes"
13083 else
13084   echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13086
13087 eval "$as_ac_var=no"
13088 fi
13089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13090 fi
13091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13093 if test `eval echo '${'$as_ac_var'}'` = yes; then
13094   cat >>confdefs.h <<_ACEOF
13095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13096 _ACEOF
13097
13098 fi
13099 done
13100
13101     fi
13102   fi
13103
13104
13105
13106   echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
13107 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
13108   if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
13109     if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
13110   echo $ECHO_N "(cached) $ECHO_C" >&6
13111 else
13112
13113
13114
13115       ac_ext=cc
13116 ac_cpp='$CXXCPP $CPPFLAGS'
13117 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13118 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13119 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13120
13121       cat >conftest.$ac_ext <<_ACEOF
13122 #line $LINENO "configure"
13123 /* confdefs.h.  */
13124 _ACEOF
13125 cat confdefs.h >>conftest.$ac_ext
13126 cat >>conftest.$ac_ext <<_ACEOF
13127 /* end confdefs.h.  */
13128 #include <math.h>
13129 int
13130 main ()
13131 {
13132  ldexpf(0, 0);
13133   ;
13134   return 0;
13135 }
13136 _ACEOF
13137 rm -f conftest.$ac_objext
13138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13139   (eval $ac_compile) 2>&5
13140   ac_status=$?
13141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142   (exit $ac_status); } &&
13143          { ac_try='test -s conftest.$ac_objext'
13144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145   (eval $ac_try) 2>&5
13146   ac_status=$?
13147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148   (exit $ac_status); }; }; then
13149   glibcxx_cv_func_ldexpf_use=yes
13150 else
13151   echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13153
13154 glibcxx_cv_func_ldexpf_use=no
13155 fi
13156 rm -f conftest.$ac_objext conftest.$ac_ext
13157       ac_ext=c
13158 ac_cpp='$CPP $CPPFLAGS'
13159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13162
13163
13164 fi
13165
13166   fi
13167   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
13168 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
13169
13170   if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
13171
13172 for ac_func in ldexpf
13173 do
13174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13175 echo "$as_me:$LINENO: checking for $ac_func" >&5
13176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13177 if eval "test \"\${$as_ac_var+set}\" = set"; then
13178   echo $ECHO_N "(cached) $ECHO_C" >&6
13179 else
13180   cat >conftest.$ac_ext <<_ACEOF
13181 #line $LINENO "configure"
13182 /* confdefs.h.  */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h.  */
13187 /* System header to define __stub macros and hopefully few prototypes,
13188     which can conflict with char $ac_func (); below.
13189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13190     <limits.h> exists even on freestanding compilers.  */
13191 #ifdef __STDC__
13192 # include <limits.h>
13193 #else
13194 # include <assert.h>
13195 #endif
13196 /* Override any gcc2 internal prototype to avoid an error.  */
13197 #ifdef __cplusplus
13198 extern "C"
13199 {
13200 #endif
13201 /* We use char because int might match the return type of a gcc2
13202    builtin and then its argument prototype would still apply.  */
13203 char $ac_func ();
13204 /* The GNU C library defines this for functions which it implements
13205     to always fail with ENOSYS.  Some functions are actually named
13206     something starting with __ and the normal name is an alias.  */
13207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13208 choke me
13209 #else
13210 char (*f) () = $ac_func;
13211 #endif
13212 #ifdef __cplusplus
13213 }
13214 #endif
13215
13216 int
13217 main ()
13218 {
13219 return f != $ac_func;
13220   ;
13221   return 0;
13222 }
13223 _ACEOF
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13226   (eval $ac_link) 2>&5
13227   ac_status=$?
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } &&
13230          { ac_try='test -s conftest$ac_exeext'
13231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232   (eval $ac_try) 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); }; }; then
13236   eval "$as_ac_var=yes"
13237 else
13238   echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13240
13241 eval "$as_ac_var=no"
13242 fi
13243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13244 fi
13245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13247 if test `eval echo '${'$as_ac_var'}'` = yes; then
13248   cat >>confdefs.h <<_ACEOF
13249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13250 _ACEOF
13251
13252 fi
13253 done
13254
13255   else
13256
13257   echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
13258 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
13259   if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
13260     if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
13261   echo $ECHO_N "(cached) $ECHO_C" >&6
13262 else
13263
13264
13265
13266       ac_ext=cc
13267 ac_cpp='$CXXCPP $CPPFLAGS'
13268 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13269 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13270 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13271
13272       cat >conftest.$ac_ext <<_ACEOF
13273 #line $LINENO "configure"
13274 /* confdefs.h.  */
13275 _ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h.  */
13279 #include <math.h>
13280 int
13281 main ()
13282 {
13283  _ldexpf(0, 0);
13284   ;
13285   return 0;
13286 }
13287 _ACEOF
13288 rm -f conftest.$ac_objext
13289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13290   (eval $ac_compile) 2>&5
13291   ac_status=$?
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } &&
13294          { ac_try='test -s conftest.$ac_objext'
13295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296   (eval $ac_try) 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); }; }; then
13300   glibcxx_cv_func__ldexpf_use=yes
13301 else
13302   echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13304
13305 glibcxx_cv_func__ldexpf_use=no
13306 fi
13307 rm -f conftest.$ac_objext conftest.$ac_ext
13308       ac_ext=c
13309 ac_cpp='$CPP $CPPFLAGS'
13310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13313
13314
13315 fi
13316
13317   fi
13318   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
13319 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
13320
13321     if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
13322
13323 for ac_func in _ldexpf
13324 do
13325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13326 echo "$as_me:$LINENO: checking for $ac_func" >&5
13327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13328 if eval "test \"\${$as_ac_var+set}\" = set"; then
13329   echo $ECHO_N "(cached) $ECHO_C" >&6
13330 else
13331   cat >conftest.$ac_ext <<_ACEOF
13332 #line $LINENO "configure"
13333 /* confdefs.h.  */
13334 _ACEOF
13335 cat confdefs.h >>conftest.$ac_ext
13336 cat >>conftest.$ac_ext <<_ACEOF
13337 /* end confdefs.h.  */
13338 /* System header to define __stub macros and hopefully few prototypes,
13339     which can conflict with char $ac_func (); below.
13340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13341     <limits.h> exists even on freestanding compilers.  */
13342 #ifdef __STDC__
13343 # include <limits.h>
13344 #else
13345 # include <assert.h>
13346 #endif
13347 /* Override any gcc2 internal prototype to avoid an error.  */
13348 #ifdef __cplusplus
13349 extern "C"
13350 {
13351 #endif
13352 /* We use char because int might match the return type of a gcc2
13353    builtin and then its argument prototype would still apply.  */
13354 char $ac_func ();
13355 /* The GNU C library defines this for functions which it implements
13356     to always fail with ENOSYS.  Some functions are actually named
13357     something starting with __ and the normal name is an alias.  */
13358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13359 choke me
13360 #else
13361 char (*f) () = $ac_func;
13362 #endif
13363 #ifdef __cplusplus
13364 }
13365 #endif
13366
13367 int
13368 main ()
13369 {
13370 return f != $ac_func;
13371   ;
13372   return 0;
13373 }
13374 _ACEOF
13375 rm -f conftest.$ac_objext conftest$ac_exeext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13377   (eval $ac_link) 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); } &&
13381          { ac_try='test -s conftest$ac_exeext'
13382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383   (eval $ac_try) 2>&5
13384   ac_status=$?
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); }; }; then
13387   eval "$as_ac_var=yes"
13388 else
13389   echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13391
13392 eval "$as_ac_var=no"
13393 fi
13394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13395 fi
13396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13398 if test `eval echo '${'$as_ac_var'}'` = yes; then
13399   cat >>confdefs.h <<_ACEOF
13400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13401 _ACEOF
13402
13403 fi
13404 done
13405
13406     fi
13407   fi
13408
13409
13410
13411   echo "$as_me:$LINENO: checking for logf declaration" >&5
13412 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
13413   if test x${glibcxx_cv_func_logf_use+set} != xset; then
13414     if test "${glibcxx_cv_func_logf_use+set}" = set; then
13415   echo $ECHO_N "(cached) $ECHO_C" >&6
13416 else
13417
13418
13419
13420       ac_ext=cc
13421 ac_cpp='$CXXCPP $CPPFLAGS'
13422 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13423 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13424 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13425
13426       cat >conftest.$ac_ext <<_ACEOF
13427 #line $LINENO "configure"
13428 /* confdefs.h.  */
13429 _ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h.  */
13433 #include <math.h>
13434                       #ifdef HAVE_IEEEFP_H
13435                       #include <ieeefp.h>
13436                       #endif
13437
13438 int
13439 main ()
13440 {
13441  logf(0);
13442   ;
13443   return 0;
13444 }
13445 _ACEOF
13446 rm -f conftest.$ac_objext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13448   (eval $ac_compile) 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); } &&
13452          { ac_try='test -s conftest.$ac_objext'
13453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454   (eval $ac_try) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); }; }; then
13458   glibcxx_cv_func_logf_use=yes
13459 else
13460   echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.$ac_ext >&5
13462
13463 glibcxx_cv_func_logf_use=no
13464 fi
13465 rm -f conftest.$ac_objext conftest.$ac_ext
13466       ac_ext=c
13467 ac_cpp='$CPP $CPPFLAGS'
13468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13471
13472
13473 fi
13474
13475   fi
13476   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
13477 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
13478
13479   if test x$glibcxx_cv_func_logf_use = x"yes"; then
13480
13481 for ac_func in logf
13482 do
13483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13484 echo "$as_me:$LINENO: checking for $ac_func" >&5
13485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13486 if eval "test \"\${$as_ac_var+set}\" = set"; then
13487   echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489   cat >conftest.$ac_ext <<_ACEOF
13490 #line $LINENO "configure"
13491 /* confdefs.h.  */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h.  */
13496 /* System header to define __stub macros and hopefully few prototypes,
13497     which can conflict with char $ac_func (); below.
13498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13499     <limits.h> exists even on freestanding compilers.  */
13500 #ifdef __STDC__
13501 # include <limits.h>
13502 #else
13503 # include <assert.h>
13504 #endif
13505 /* Override any gcc2 internal prototype to avoid an error.  */
13506 #ifdef __cplusplus
13507 extern "C"
13508 {
13509 #endif
13510 /* We use char because int might match the return type of a gcc2
13511    builtin and then its argument prototype would still apply.  */
13512 char $ac_func ();
13513 /* The GNU C library defines this for functions which it implements
13514     to always fail with ENOSYS.  Some functions are actually named
13515     something starting with __ and the normal name is an alias.  */
13516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13517 choke me
13518 #else
13519 char (*f) () = $ac_func;
13520 #endif
13521 #ifdef __cplusplus
13522 }
13523 #endif
13524
13525 int
13526 main ()
13527 {
13528 return f != $ac_func;
13529   ;
13530   return 0;
13531 }
13532 _ACEOF
13533 rm -f conftest.$ac_objext conftest$ac_exeext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13535   (eval $ac_link) 2>&5
13536   ac_status=$?
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); } &&
13539          { ac_try='test -s conftest$ac_exeext'
13540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541   (eval $ac_try) 2>&5
13542   ac_status=$?
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); }; }; then
13545   eval "$as_ac_var=yes"
13546 else
13547   echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13549
13550 eval "$as_ac_var=no"
13551 fi
13552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13553 fi
13554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13555 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13556 if test `eval echo '${'$as_ac_var'}'` = yes; then
13557   cat >>confdefs.h <<_ACEOF
13558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13559 _ACEOF
13560
13561 fi
13562 done
13563
13564   else
13565
13566   echo "$as_me:$LINENO: checking for _logf declaration" >&5
13567 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
13568   if test x${glibcxx_cv_func__logf_use+set} != xset; then
13569     if test "${glibcxx_cv_func__logf_use+set}" = set; then
13570   echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572
13573
13574
13575       ac_ext=cc
13576 ac_cpp='$CXXCPP $CPPFLAGS'
13577 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13578 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13579 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13580
13581       cat >conftest.$ac_ext <<_ACEOF
13582 #line $LINENO "configure"
13583 /* confdefs.h.  */
13584 _ACEOF
13585 cat confdefs.h >>conftest.$ac_ext
13586 cat >>conftest.$ac_ext <<_ACEOF
13587 /* end confdefs.h.  */
13588 #include <math.h>
13589                       #ifdef HAVE_IEEEFP_H
13590                       #include <ieeefp.h>
13591                       #endif
13592
13593 int
13594 main ()
13595 {
13596  _logf(0);
13597   ;
13598   return 0;
13599 }
13600 _ACEOF
13601 rm -f conftest.$ac_objext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13603   (eval $ac_compile) 2>&5
13604   ac_status=$?
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); } &&
13607          { ac_try='test -s conftest.$ac_objext'
13608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609   (eval $ac_try) 2>&5
13610   ac_status=$?
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); }; }; then
13613   glibcxx_cv_func__logf_use=yes
13614 else
13615   echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13617
13618 glibcxx_cv_func__logf_use=no
13619 fi
13620 rm -f conftest.$ac_objext conftest.$ac_ext
13621       ac_ext=c
13622 ac_cpp='$CPP $CPPFLAGS'
13623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13626
13627
13628 fi
13629
13630   fi
13631   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
13632 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
13633
13634     if test x$glibcxx_cv_func__logf_use = x"yes"; then
13635
13636 for ac_func in _logf
13637 do
13638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13639 echo "$as_me:$LINENO: checking for $ac_func" >&5
13640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13641 if eval "test \"\${$as_ac_var+set}\" = set"; then
13642   echo $ECHO_N "(cached) $ECHO_C" >&6
13643 else
13644   cat >conftest.$ac_ext <<_ACEOF
13645 #line $LINENO "configure"
13646 /* confdefs.h.  */
13647 _ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h.  */
13651 /* System header to define __stub macros and hopefully few prototypes,
13652     which can conflict with char $ac_func (); below.
13653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13654     <limits.h> exists even on freestanding compilers.  */
13655 #ifdef __STDC__
13656 # include <limits.h>
13657 #else
13658 # include <assert.h>
13659 #endif
13660 /* Override any gcc2 internal prototype to avoid an error.  */
13661 #ifdef __cplusplus
13662 extern "C"
13663 {
13664 #endif
13665 /* We use char because int might match the return type of a gcc2
13666    builtin and then its argument prototype would still apply.  */
13667 char $ac_func ();
13668 /* The GNU C library defines this for functions which it implements
13669     to always fail with ENOSYS.  Some functions are actually named
13670     something starting with __ and the normal name is an alias.  */
13671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13672 choke me
13673 #else
13674 char (*f) () = $ac_func;
13675 #endif
13676 #ifdef __cplusplus
13677 }
13678 #endif
13679
13680 int
13681 main ()
13682 {
13683 return f != $ac_func;
13684   ;
13685   return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest.$ac_objext conftest$ac_exeext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690   (eval $ac_link) 2>&5
13691   ac_status=$?
13692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693   (exit $ac_status); } &&
13694          { ac_try='test -s conftest$ac_exeext'
13695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696   (eval $ac_try) 2>&5
13697   ac_status=$?
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); }; }; then
13700   eval "$as_ac_var=yes"
13701 else
13702   echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13704
13705 eval "$as_ac_var=no"
13706 fi
13707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13708 fi
13709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13710 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13711 if test `eval echo '${'$as_ac_var'}'` = yes; then
13712   cat >>confdefs.h <<_ACEOF
13713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13714 _ACEOF
13715
13716 fi
13717 done
13718
13719     fi
13720   fi
13721
13722
13723
13724   echo "$as_me:$LINENO: checking for log10f declaration" >&5
13725 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
13726   if test x${glibcxx_cv_func_log10f_use+set} != xset; then
13727     if test "${glibcxx_cv_func_log10f_use+set}" = set; then
13728   echo $ECHO_N "(cached) $ECHO_C" >&6
13729 else
13730
13731
13732
13733       ac_ext=cc
13734 ac_cpp='$CXXCPP $CPPFLAGS'
13735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13738
13739       cat >conftest.$ac_ext <<_ACEOF
13740 #line $LINENO "configure"
13741 /* confdefs.h.  */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h.  */
13746 #include <math.h>
13747                       #ifdef HAVE_IEEEFP_H
13748                       #include <ieeefp.h>
13749                       #endif
13750
13751 int
13752 main ()
13753 {
13754  log10f(0);
13755   ;
13756   return 0;
13757 }
13758 _ACEOF
13759 rm -f conftest.$ac_objext
13760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13761   (eval $ac_compile) 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); } &&
13765          { ac_try='test -s conftest.$ac_objext'
13766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767   (eval $ac_try) 2>&5
13768   ac_status=$?
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); }; }; then
13771   glibcxx_cv_func_log10f_use=yes
13772 else
13773   echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13775
13776 glibcxx_cv_func_log10f_use=no
13777 fi
13778 rm -f conftest.$ac_objext conftest.$ac_ext
13779       ac_ext=c
13780 ac_cpp='$CPP $CPPFLAGS'
13781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13784
13785
13786 fi
13787
13788   fi
13789   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
13790 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
13791
13792   if test x$glibcxx_cv_func_log10f_use = x"yes"; then
13793
13794 for ac_func in log10f
13795 do
13796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13797 echo "$as_me:$LINENO: checking for $ac_func" >&5
13798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13799 if eval "test \"\${$as_ac_var+set}\" = set"; then
13800   echo $ECHO_N "(cached) $ECHO_C" >&6
13801 else
13802   cat >conftest.$ac_ext <<_ACEOF
13803 #line $LINENO "configure"
13804 /* confdefs.h.  */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h.  */
13809 /* System header to define __stub macros and hopefully few prototypes,
13810     which can conflict with char $ac_func (); below.
13811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13812     <limits.h> exists even on freestanding compilers.  */
13813 #ifdef __STDC__
13814 # include <limits.h>
13815 #else
13816 # include <assert.h>
13817 #endif
13818 /* Override any gcc2 internal prototype to avoid an error.  */
13819 #ifdef __cplusplus
13820 extern "C"
13821 {
13822 #endif
13823 /* We use char because int might match the return type of a gcc2
13824    builtin and then its argument prototype would still apply.  */
13825 char $ac_func ();
13826 /* The GNU C library defines this for functions which it implements
13827     to always fail with ENOSYS.  Some functions are actually named
13828     something starting with __ and the normal name is an alias.  */
13829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13830 choke me
13831 #else
13832 char (*f) () = $ac_func;
13833 #endif
13834 #ifdef __cplusplus
13835 }
13836 #endif
13837
13838 int
13839 main ()
13840 {
13841 return f != $ac_func;
13842   ;
13843   return 0;
13844 }
13845 _ACEOF
13846 rm -f conftest.$ac_objext conftest$ac_exeext
13847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13848   (eval $ac_link) 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); } &&
13852          { ac_try='test -s conftest$ac_exeext'
13853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854   (eval $ac_try) 2>&5
13855   ac_status=$?
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); }; }; then
13858   eval "$as_ac_var=yes"
13859 else
13860   echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13862
13863 eval "$as_ac_var=no"
13864 fi
13865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13866 fi
13867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13869 if test `eval echo '${'$as_ac_var'}'` = yes; then
13870   cat >>confdefs.h <<_ACEOF
13871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13872 _ACEOF
13873
13874 fi
13875 done
13876
13877   else
13878
13879   echo "$as_me:$LINENO: checking for _log10f declaration" >&5
13880 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
13881   if test x${glibcxx_cv_func__log10f_use+set} != xset; then
13882     if test "${glibcxx_cv_func__log10f_use+set}" = set; then
13883   echo $ECHO_N "(cached) $ECHO_C" >&6
13884 else
13885
13886
13887
13888       ac_ext=cc
13889 ac_cpp='$CXXCPP $CPPFLAGS'
13890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13893
13894       cat >conftest.$ac_ext <<_ACEOF
13895 #line $LINENO "configure"
13896 /* confdefs.h.  */
13897 _ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h.  */
13901 #include <math.h>
13902                       #ifdef HAVE_IEEEFP_H
13903                       #include <ieeefp.h>
13904                       #endif
13905
13906 int
13907 main ()
13908 {
13909  _log10f(0);
13910   ;
13911   return 0;
13912 }
13913 _ACEOF
13914 rm -f conftest.$ac_objext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13916   (eval $ac_compile) 2>&5
13917   ac_status=$?
13918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919   (exit $ac_status); } &&
13920          { ac_try='test -s conftest.$ac_objext'
13921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13922   (eval $ac_try) 2>&5
13923   ac_status=$?
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); }; }; then
13926   glibcxx_cv_func__log10f_use=yes
13927 else
13928   echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13930
13931 glibcxx_cv_func__log10f_use=no
13932 fi
13933 rm -f conftest.$ac_objext conftest.$ac_ext
13934       ac_ext=c
13935 ac_cpp='$CPP $CPPFLAGS'
13936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13939
13940
13941 fi
13942
13943   fi
13944   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
13945 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
13946
13947     if test x$glibcxx_cv_func__log10f_use = x"yes"; then
13948
13949 for ac_func in _log10f
13950 do
13951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13952 echo "$as_me:$LINENO: checking for $ac_func" >&5
13953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13954 if eval "test \"\${$as_ac_var+set}\" = set"; then
13955   echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957   cat >conftest.$ac_ext <<_ACEOF
13958 #line $LINENO "configure"
13959 /* confdefs.h.  */
13960 _ACEOF
13961 cat confdefs.h >>conftest.$ac_ext
13962 cat >>conftest.$ac_ext <<_ACEOF
13963 /* end confdefs.h.  */
13964 /* System header to define __stub macros and hopefully few prototypes,
13965     which can conflict with char $ac_func (); below.
13966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13967     <limits.h> exists even on freestanding compilers.  */
13968 #ifdef __STDC__
13969 # include <limits.h>
13970 #else
13971 # include <assert.h>
13972 #endif
13973 /* Override any gcc2 internal prototype to avoid an error.  */
13974 #ifdef __cplusplus
13975 extern "C"
13976 {
13977 #endif
13978 /* We use char because int might match the return type of a gcc2
13979    builtin and then its argument prototype would still apply.  */
13980 char $ac_func ();
13981 /* The GNU C library defines this for functions which it implements
13982     to always fail with ENOSYS.  Some functions are actually named
13983     something starting with __ and the normal name is an alias.  */
13984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13985 choke me
13986 #else
13987 char (*f) () = $ac_func;
13988 #endif
13989 #ifdef __cplusplus
13990 }
13991 #endif
13992
13993 int
13994 main ()
13995 {
13996 return f != $ac_func;
13997   ;
13998   return 0;
13999 }
14000 _ACEOF
14001 rm -f conftest.$ac_objext conftest$ac_exeext
14002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14003   (eval $ac_link) 2>&5
14004   ac_status=$?
14005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006   (exit $ac_status); } &&
14007          { ac_try='test -s conftest$ac_exeext'
14008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009   (eval $ac_try) 2>&5
14010   ac_status=$?
14011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012   (exit $ac_status); }; }; then
14013   eval "$as_ac_var=yes"
14014 else
14015   echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14017
14018 eval "$as_ac_var=no"
14019 fi
14020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14021 fi
14022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14023 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14024 if test `eval echo '${'$as_ac_var'}'` = yes; then
14025   cat >>confdefs.h <<_ACEOF
14026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14027 _ACEOF
14028
14029 fi
14030 done
14031
14032     fi
14033   fi
14034
14035
14036
14037   echo "$as_me:$LINENO: checking for modff declaration" >&5
14038 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
14039   if test x${glibcxx_cv_func_modff_use+set} != xset; then
14040     if test "${glibcxx_cv_func_modff_use+set}" = set; then
14041   echo $ECHO_N "(cached) $ECHO_C" >&6
14042 else
14043
14044
14045
14046       ac_ext=cc
14047 ac_cpp='$CXXCPP $CPPFLAGS'
14048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14051
14052       cat >conftest.$ac_ext <<_ACEOF
14053 #line $LINENO "configure"
14054 /* confdefs.h.  */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h.  */
14059 #include <math.h>
14060 int
14061 main ()
14062 {
14063  modff(0, 0);
14064   ;
14065   return 0;
14066 }
14067 _ACEOF
14068 rm -f conftest.$ac_objext
14069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14070   (eval $ac_compile) 2>&5
14071   ac_status=$?
14072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073   (exit $ac_status); } &&
14074          { ac_try='test -s conftest.$ac_objext'
14075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076   (eval $ac_try) 2>&5
14077   ac_status=$?
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); }; }; then
14080   glibcxx_cv_func_modff_use=yes
14081 else
14082   echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14084
14085 glibcxx_cv_func_modff_use=no
14086 fi
14087 rm -f conftest.$ac_objext conftest.$ac_ext
14088       ac_ext=c
14089 ac_cpp='$CPP $CPPFLAGS'
14090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14093
14094
14095 fi
14096
14097   fi
14098   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
14099 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
14100
14101   if test x$glibcxx_cv_func_modff_use = x"yes"; then
14102
14103 for ac_func in modff
14104 do
14105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14106 echo "$as_me:$LINENO: checking for $ac_func" >&5
14107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14108 if eval "test \"\${$as_ac_var+set}\" = set"; then
14109   echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111   cat >conftest.$ac_ext <<_ACEOF
14112 #line $LINENO "configure"
14113 /* confdefs.h.  */
14114 _ACEOF
14115 cat confdefs.h >>conftest.$ac_ext
14116 cat >>conftest.$ac_ext <<_ACEOF
14117 /* end confdefs.h.  */
14118 /* System header to define __stub macros and hopefully few prototypes,
14119     which can conflict with char $ac_func (); below.
14120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14121     <limits.h> exists even on freestanding compilers.  */
14122 #ifdef __STDC__
14123 # include <limits.h>
14124 #else
14125 # include <assert.h>
14126 #endif
14127 /* Override any gcc2 internal prototype to avoid an error.  */
14128 #ifdef __cplusplus
14129 extern "C"
14130 {
14131 #endif
14132 /* We use char because int might match the return type of a gcc2
14133    builtin and then its argument prototype would still apply.  */
14134 char $ac_func ();
14135 /* The GNU C library defines this for functions which it implements
14136     to always fail with ENOSYS.  Some functions are actually named
14137     something starting with __ and the normal name is an alias.  */
14138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14139 choke me
14140 #else
14141 char (*f) () = $ac_func;
14142 #endif
14143 #ifdef __cplusplus
14144 }
14145 #endif
14146
14147 int
14148 main ()
14149 {
14150 return f != $ac_func;
14151   ;
14152   return 0;
14153 }
14154 _ACEOF
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14157   (eval $ac_link) 2>&5
14158   ac_status=$?
14159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160   (exit $ac_status); } &&
14161          { ac_try='test -s conftest$ac_exeext'
14162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163   (eval $ac_try) 2>&5
14164   ac_status=$?
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); }; }; then
14167   eval "$as_ac_var=yes"
14168 else
14169   echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14171
14172 eval "$as_ac_var=no"
14173 fi
14174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14175 fi
14176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14178 if test `eval echo '${'$as_ac_var'}'` = yes; then
14179   cat >>confdefs.h <<_ACEOF
14180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14181 _ACEOF
14182
14183 fi
14184 done
14185
14186   else
14187
14188   echo "$as_me:$LINENO: checking for _modff declaration" >&5
14189 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
14190   if test x${glibcxx_cv_func__modff_use+set} != xset; then
14191     if test "${glibcxx_cv_func__modff_use+set}" = set; then
14192   echo $ECHO_N "(cached) $ECHO_C" >&6
14193 else
14194
14195
14196
14197       ac_ext=cc
14198 ac_cpp='$CXXCPP $CPPFLAGS'
14199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14202
14203       cat >conftest.$ac_ext <<_ACEOF
14204 #line $LINENO "configure"
14205 /* confdefs.h.  */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h.  */
14210 #include <math.h>
14211 int
14212 main ()
14213 {
14214  _modff(0, 0);
14215   ;
14216   return 0;
14217 }
14218 _ACEOF
14219 rm -f conftest.$ac_objext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14221   (eval $ac_compile) 2>&5
14222   ac_status=$?
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); } &&
14225          { ac_try='test -s conftest.$ac_objext'
14226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227   (eval $ac_try) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); }; }; then
14231   glibcxx_cv_func__modff_use=yes
14232 else
14233   echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14235
14236 glibcxx_cv_func__modff_use=no
14237 fi
14238 rm -f conftest.$ac_objext conftest.$ac_ext
14239       ac_ext=c
14240 ac_cpp='$CPP $CPPFLAGS'
14241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14244
14245
14246 fi
14247
14248   fi
14249   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
14250 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
14251
14252     if test x$glibcxx_cv_func__modff_use = x"yes"; then
14253
14254 for ac_func in _modff
14255 do
14256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14257 echo "$as_me:$LINENO: checking for $ac_func" >&5
14258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14259 if eval "test \"\${$as_ac_var+set}\" = set"; then
14260   echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262   cat >conftest.$ac_ext <<_ACEOF
14263 #line $LINENO "configure"
14264 /* confdefs.h.  */
14265 _ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h.  */
14269 /* System header to define __stub macros and hopefully few prototypes,
14270     which can conflict with char $ac_func (); below.
14271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14272     <limits.h> exists even on freestanding compilers.  */
14273 #ifdef __STDC__
14274 # include <limits.h>
14275 #else
14276 # include <assert.h>
14277 #endif
14278 /* Override any gcc2 internal prototype to avoid an error.  */
14279 #ifdef __cplusplus
14280 extern "C"
14281 {
14282 #endif
14283 /* We use char because int might match the return type of a gcc2
14284    builtin and then its argument prototype would still apply.  */
14285 char $ac_func ();
14286 /* The GNU C library defines this for functions which it implements
14287     to always fail with ENOSYS.  Some functions are actually named
14288     something starting with __ and the normal name is an alias.  */
14289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14290 choke me
14291 #else
14292 char (*f) () = $ac_func;
14293 #endif
14294 #ifdef __cplusplus
14295 }
14296 #endif
14297
14298 int
14299 main ()
14300 {
14301 return f != $ac_func;
14302   ;
14303   return 0;
14304 }
14305 _ACEOF
14306 rm -f conftest.$ac_objext conftest$ac_exeext
14307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14308   (eval $ac_link) 2>&5
14309   ac_status=$?
14310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); } &&
14312          { ac_try='test -s conftest$ac_exeext'
14313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314   (eval $ac_try) 2>&5
14315   ac_status=$?
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); }; }; then
14318   eval "$as_ac_var=yes"
14319 else
14320   echo "$as_me: failed program was:" >&5
14321 sed 's/^/| /' conftest.$ac_ext >&5
14322
14323 eval "$as_ac_var=no"
14324 fi
14325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14326 fi
14327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14329 if test `eval echo '${'$as_ac_var'}'` = yes; then
14330   cat >>confdefs.h <<_ACEOF
14331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14332 _ACEOF
14333
14334 fi
14335 done
14336
14337     fi
14338   fi
14339
14340
14341
14342   echo "$as_me:$LINENO: checking for powf declaration" >&5
14343 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
14344   if test x${glibcxx_cv_func_powf_use+set} != xset; then
14345     if test "${glibcxx_cv_func_powf_use+set}" = set; then
14346   echo $ECHO_N "(cached) $ECHO_C" >&6
14347 else
14348
14349
14350
14351       ac_ext=cc
14352 ac_cpp='$CXXCPP $CPPFLAGS'
14353 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14354 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14355 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14356
14357       cat >conftest.$ac_ext <<_ACEOF
14358 #line $LINENO "configure"
14359 /* confdefs.h.  */
14360 _ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h.  */
14364 #include <math.h>
14365 int
14366 main ()
14367 {
14368  powf(0, 0);
14369   ;
14370   return 0;
14371 }
14372 _ACEOF
14373 rm -f conftest.$ac_objext
14374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14375   (eval $ac_compile) 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); } &&
14379          { ac_try='test -s conftest.$ac_objext'
14380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381   (eval $ac_try) 2>&5
14382   ac_status=$?
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); }; }; then
14385   glibcxx_cv_func_powf_use=yes
14386 else
14387   echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14389
14390 glibcxx_cv_func_powf_use=no
14391 fi
14392 rm -f conftest.$ac_objext conftest.$ac_ext
14393       ac_ext=c
14394 ac_cpp='$CPP $CPPFLAGS'
14395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14398
14399
14400 fi
14401
14402   fi
14403   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
14404 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
14405
14406   if test x$glibcxx_cv_func_powf_use = x"yes"; then
14407
14408 for ac_func in powf
14409 do
14410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14411 echo "$as_me:$LINENO: checking for $ac_func" >&5
14412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14413 if eval "test \"\${$as_ac_var+set}\" = set"; then
14414   echo $ECHO_N "(cached) $ECHO_C" >&6
14415 else
14416   cat >conftest.$ac_ext <<_ACEOF
14417 #line $LINENO "configure"
14418 /* confdefs.h.  */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h.  */
14423 /* System header to define __stub macros and hopefully few prototypes,
14424     which can conflict with char $ac_func (); below.
14425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14426     <limits.h> exists even on freestanding compilers.  */
14427 #ifdef __STDC__
14428 # include <limits.h>
14429 #else
14430 # include <assert.h>
14431 #endif
14432 /* Override any gcc2 internal prototype to avoid an error.  */
14433 #ifdef __cplusplus
14434 extern "C"
14435 {
14436 #endif
14437 /* We use char because int might match the return type of a gcc2
14438    builtin and then its argument prototype would still apply.  */
14439 char $ac_func ();
14440 /* The GNU C library defines this for functions which it implements
14441     to always fail with ENOSYS.  Some functions are actually named
14442     something starting with __ and the normal name is an alias.  */
14443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14444 choke me
14445 #else
14446 char (*f) () = $ac_func;
14447 #endif
14448 #ifdef __cplusplus
14449 }
14450 #endif
14451
14452 int
14453 main ()
14454 {
14455 return f != $ac_func;
14456   ;
14457   return 0;
14458 }
14459 _ACEOF
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14462   (eval $ac_link) 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); } &&
14466          { ac_try='test -s conftest$ac_exeext'
14467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468   (eval $ac_try) 2>&5
14469   ac_status=$?
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); }; }; then
14472   eval "$as_ac_var=yes"
14473 else
14474   echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14476
14477 eval "$as_ac_var=no"
14478 fi
14479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14480 fi
14481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14483 if test `eval echo '${'$as_ac_var'}'` = yes; then
14484   cat >>confdefs.h <<_ACEOF
14485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14486 _ACEOF
14487
14488 fi
14489 done
14490
14491   else
14492
14493   echo "$as_me:$LINENO: checking for _powf declaration" >&5
14494 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
14495   if test x${glibcxx_cv_func__powf_use+set} != xset; then
14496     if test "${glibcxx_cv_func__powf_use+set}" = set; then
14497   echo $ECHO_N "(cached) $ECHO_C" >&6
14498 else
14499
14500
14501
14502       ac_ext=cc
14503 ac_cpp='$CXXCPP $CPPFLAGS'
14504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14507
14508       cat >conftest.$ac_ext <<_ACEOF
14509 #line $LINENO "configure"
14510 /* confdefs.h.  */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h.  */
14515 #include <math.h>
14516 int
14517 main ()
14518 {
14519  _powf(0, 0);
14520   ;
14521   return 0;
14522 }
14523 _ACEOF
14524 rm -f conftest.$ac_objext
14525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14526   (eval $ac_compile) 2>&5
14527   ac_status=$?
14528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529   (exit $ac_status); } &&
14530          { ac_try='test -s conftest.$ac_objext'
14531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532   (eval $ac_try) 2>&5
14533   ac_status=$?
14534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535   (exit $ac_status); }; }; then
14536   glibcxx_cv_func__powf_use=yes
14537 else
14538   echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.$ac_ext >&5
14540
14541 glibcxx_cv_func__powf_use=no
14542 fi
14543 rm -f conftest.$ac_objext conftest.$ac_ext
14544       ac_ext=c
14545 ac_cpp='$CPP $CPPFLAGS'
14546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14549
14550
14551 fi
14552
14553   fi
14554   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
14555 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
14556
14557     if test x$glibcxx_cv_func__powf_use = x"yes"; then
14558
14559 for ac_func in _powf
14560 do
14561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14562 echo "$as_me:$LINENO: checking for $ac_func" >&5
14563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14564 if eval "test \"\${$as_ac_var+set}\" = set"; then
14565   echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567   cat >conftest.$ac_ext <<_ACEOF
14568 #line $LINENO "configure"
14569 /* confdefs.h.  */
14570 _ACEOF
14571 cat confdefs.h >>conftest.$ac_ext
14572 cat >>conftest.$ac_ext <<_ACEOF
14573 /* end confdefs.h.  */
14574 /* System header to define __stub macros and hopefully few prototypes,
14575     which can conflict with char $ac_func (); below.
14576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14577     <limits.h> exists even on freestanding compilers.  */
14578 #ifdef __STDC__
14579 # include <limits.h>
14580 #else
14581 # include <assert.h>
14582 #endif
14583 /* Override any gcc2 internal prototype to avoid an error.  */
14584 #ifdef __cplusplus
14585 extern "C"
14586 {
14587 #endif
14588 /* We use char because int might match the return type of a gcc2
14589    builtin and then its argument prototype would still apply.  */
14590 char $ac_func ();
14591 /* The GNU C library defines this for functions which it implements
14592     to always fail with ENOSYS.  Some functions are actually named
14593     something starting with __ and the normal name is an alias.  */
14594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14595 choke me
14596 #else
14597 char (*f) () = $ac_func;
14598 #endif
14599 #ifdef __cplusplus
14600 }
14601 #endif
14602
14603 int
14604 main ()
14605 {
14606 return f != $ac_func;
14607   ;
14608   return 0;
14609 }
14610 _ACEOF
14611 rm -f conftest.$ac_objext conftest$ac_exeext
14612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14613   (eval $ac_link) 2>&5
14614   ac_status=$?
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); } &&
14617          { ac_try='test -s conftest$ac_exeext'
14618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619   (eval $ac_try) 2>&5
14620   ac_status=$?
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); }; }; then
14623   eval "$as_ac_var=yes"
14624 else
14625   echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14627
14628 eval "$as_ac_var=no"
14629 fi
14630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14631 fi
14632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14633 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14634 if test `eval echo '${'$as_ac_var'}'` = yes; then
14635   cat >>confdefs.h <<_ACEOF
14636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14637 _ACEOF
14638
14639 fi
14640 done
14641
14642     fi
14643   fi
14644
14645
14646
14647   echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
14648 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
14649   if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
14650     if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
14651   echo $ECHO_N "(cached) $ECHO_C" >&6
14652 else
14653
14654
14655
14656       ac_ext=cc
14657 ac_cpp='$CXXCPP $CPPFLAGS'
14658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14661
14662       cat >conftest.$ac_ext <<_ACEOF
14663 #line $LINENO "configure"
14664 /* confdefs.h.  */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h.  */
14669 #include <math.h>
14670                       #ifdef HAVE_IEEEFP_H
14671                       #include <ieeefp.h>
14672                       #endif
14673
14674 int
14675 main ()
14676 {
14677  sqrtf(0);
14678   ;
14679   return 0;
14680 }
14681 _ACEOF
14682 rm -f conftest.$ac_objext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684   (eval $ac_compile) 2>&5
14685   ac_status=$?
14686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); } &&
14688          { ac_try='test -s conftest.$ac_objext'
14689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690   (eval $ac_try) 2>&5
14691   ac_status=$?
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); }; }; then
14694   glibcxx_cv_func_sqrtf_use=yes
14695 else
14696   echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14698
14699 glibcxx_cv_func_sqrtf_use=no
14700 fi
14701 rm -f conftest.$ac_objext conftest.$ac_ext
14702       ac_ext=c
14703 ac_cpp='$CPP $CPPFLAGS'
14704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14707
14708
14709 fi
14710
14711   fi
14712   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
14713 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
14714
14715   if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
14716
14717 for ac_func in sqrtf
14718 do
14719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14720 echo "$as_me:$LINENO: checking for $ac_func" >&5
14721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14722 if eval "test \"\${$as_ac_var+set}\" = set"; then
14723   echo $ECHO_N "(cached) $ECHO_C" >&6
14724 else
14725   cat >conftest.$ac_ext <<_ACEOF
14726 #line $LINENO "configure"
14727 /* confdefs.h.  */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h.  */
14732 /* System header to define __stub macros and hopefully few prototypes,
14733     which can conflict with char $ac_func (); below.
14734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14735     <limits.h> exists even on freestanding compilers.  */
14736 #ifdef __STDC__
14737 # include <limits.h>
14738 #else
14739 # include <assert.h>
14740 #endif
14741 /* Override any gcc2 internal prototype to avoid an error.  */
14742 #ifdef __cplusplus
14743 extern "C"
14744 {
14745 #endif
14746 /* We use char because int might match the return type of a gcc2
14747    builtin and then its argument prototype would still apply.  */
14748 char $ac_func ();
14749 /* The GNU C library defines this for functions which it implements
14750     to always fail with ENOSYS.  Some functions are actually named
14751     something starting with __ and the normal name is an alias.  */
14752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14753 choke me
14754 #else
14755 char (*f) () = $ac_func;
14756 #endif
14757 #ifdef __cplusplus
14758 }
14759 #endif
14760
14761 int
14762 main ()
14763 {
14764 return f != $ac_func;
14765   ;
14766   return 0;
14767 }
14768 _ACEOF
14769 rm -f conftest.$ac_objext conftest$ac_exeext
14770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14771   (eval $ac_link) 2>&5
14772   ac_status=$?
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } &&
14775          { ac_try='test -s conftest$ac_exeext'
14776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777   (eval $ac_try) 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); }; }; then
14781   eval "$as_ac_var=yes"
14782 else
14783   echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14785
14786 eval "$as_ac_var=no"
14787 fi
14788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14789 fi
14790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14792 if test `eval echo '${'$as_ac_var'}'` = yes; then
14793   cat >>confdefs.h <<_ACEOF
14794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14795 _ACEOF
14796
14797 fi
14798 done
14799
14800   else
14801
14802   echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
14803 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
14804   if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
14805     if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
14806   echo $ECHO_N "(cached) $ECHO_C" >&6
14807 else
14808
14809
14810
14811       ac_ext=cc
14812 ac_cpp='$CXXCPP $CPPFLAGS'
14813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14816
14817       cat >conftest.$ac_ext <<_ACEOF
14818 #line $LINENO "configure"
14819 /* confdefs.h.  */
14820 _ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h.  */
14824 #include <math.h>
14825                       #ifdef HAVE_IEEEFP_H
14826                       #include <ieeefp.h>
14827                       #endif
14828
14829 int
14830 main ()
14831 {
14832  _sqrtf(0);
14833   ;
14834   return 0;
14835 }
14836 _ACEOF
14837 rm -f conftest.$ac_objext
14838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14839   (eval $ac_compile) 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); } &&
14843          { ac_try='test -s conftest.$ac_objext'
14844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845   (eval $ac_try) 2>&5
14846   ac_status=$?
14847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848   (exit $ac_status); }; }; then
14849   glibcxx_cv_func__sqrtf_use=yes
14850 else
14851   echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14853
14854 glibcxx_cv_func__sqrtf_use=no
14855 fi
14856 rm -f conftest.$ac_objext conftest.$ac_ext
14857       ac_ext=c
14858 ac_cpp='$CPP $CPPFLAGS'
14859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14862
14863
14864 fi
14865
14866   fi
14867   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
14868 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
14869
14870     if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
14871
14872 for ac_func in _sqrtf
14873 do
14874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14875 echo "$as_me:$LINENO: checking for $ac_func" >&5
14876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14877 if eval "test \"\${$as_ac_var+set}\" = set"; then
14878   echo $ECHO_N "(cached) $ECHO_C" >&6
14879 else
14880   cat >conftest.$ac_ext <<_ACEOF
14881 #line $LINENO "configure"
14882 /* confdefs.h.  */
14883 _ACEOF
14884 cat confdefs.h >>conftest.$ac_ext
14885 cat >>conftest.$ac_ext <<_ACEOF
14886 /* end confdefs.h.  */
14887 /* System header to define __stub macros and hopefully few prototypes,
14888     which can conflict with char $ac_func (); below.
14889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14890     <limits.h> exists even on freestanding compilers.  */
14891 #ifdef __STDC__
14892 # include <limits.h>
14893 #else
14894 # include <assert.h>
14895 #endif
14896 /* Override any gcc2 internal prototype to avoid an error.  */
14897 #ifdef __cplusplus
14898 extern "C"
14899 {
14900 #endif
14901 /* We use char because int might match the return type of a gcc2
14902    builtin and then its argument prototype would still apply.  */
14903 char $ac_func ();
14904 /* The GNU C library defines this for functions which it implements
14905     to always fail with ENOSYS.  Some functions are actually named
14906     something starting with __ and the normal name is an alias.  */
14907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14908 choke me
14909 #else
14910 char (*f) () = $ac_func;
14911 #endif
14912 #ifdef __cplusplus
14913 }
14914 #endif
14915
14916 int
14917 main ()
14918 {
14919 return f != $ac_func;
14920   ;
14921   return 0;
14922 }
14923 _ACEOF
14924 rm -f conftest.$ac_objext conftest$ac_exeext
14925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14926   (eval $ac_link) 2>&5
14927   ac_status=$?
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); } &&
14930          { ac_try='test -s conftest$ac_exeext'
14931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14932   (eval $ac_try) 2>&5
14933   ac_status=$?
14934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935   (exit $ac_status); }; }; then
14936   eval "$as_ac_var=yes"
14937 else
14938   echo "$as_me: failed program was:" >&5
14939 sed 's/^/| /' conftest.$ac_ext >&5
14940
14941 eval "$as_ac_var=no"
14942 fi
14943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14944 fi
14945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14947 if test `eval echo '${'$as_ac_var'}'` = yes; then
14948   cat >>confdefs.h <<_ACEOF
14949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14950 _ACEOF
14951
14952 fi
14953 done
14954
14955     fi
14956   fi
14957
14958
14959
14960   echo "$as_me:$LINENO: checking for sincosf declaration" >&5
14961 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
14962   if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
14963     if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
14964   echo $ECHO_N "(cached) $ECHO_C" >&6
14965 else
14966
14967
14968
14969       ac_ext=cc
14970 ac_cpp='$CXXCPP $CPPFLAGS'
14971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14974
14975       cat >conftest.$ac_ext <<_ACEOF
14976 #line $LINENO "configure"
14977 /* confdefs.h.  */
14978 _ACEOF
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h.  */
14982 #include <math.h>
14983 int
14984 main ()
14985 {
14986  sincosf(0, 0, 0);
14987   ;
14988   return 0;
14989 }
14990 _ACEOF
14991 rm -f conftest.$ac_objext
14992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14993   (eval $ac_compile) 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); } &&
14997          { ac_try='test -s conftest.$ac_objext'
14998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999   (eval $ac_try) 2>&5
15000   ac_status=$?
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); }; }; then
15003   glibcxx_cv_func_sincosf_use=yes
15004 else
15005   echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15007
15008 glibcxx_cv_func_sincosf_use=no
15009 fi
15010 rm -f conftest.$ac_objext conftest.$ac_ext
15011       ac_ext=c
15012 ac_cpp='$CPP $CPPFLAGS'
15013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15016
15017
15018 fi
15019
15020   fi
15021   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
15022 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
15023
15024   if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
15025
15026 for ac_func in sincosf
15027 do
15028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15029 echo "$as_me:$LINENO: checking for $ac_func" >&5
15030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15031 if eval "test \"\${$as_ac_var+set}\" = set"; then
15032   echo $ECHO_N "(cached) $ECHO_C" >&6
15033 else
15034   cat >conftest.$ac_ext <<_ACEOF
15035 #line $LINENO "configure"
15036 /* confdefs.h.  */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h.  */
15041 /* System header to define __stub macros and hopefully few prototypes,
15042     which can conflict with char $ac_func (); below.
15043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15044     <limits.h> exists even on freestanding compilers.  */
15045 #ifdef __STDC__
15046 # include <limits.h>
15047 #else
15048 # include <assert.h>
15049 #endif
15050 /* Override any gcc2 internal prototype to avoid an error.  */
15051 #ifdef __cplusplus
15052 extern "C"
15053 {
15054 #endif
15055 /* We use char because int might match the return type of a gcc2
15056    builtin and then its argument prototype would still apply.  */
15057 char $ac_func ();
15058 /* The GNU C library defines this for functions which it implements
15059     to always fail with ENOSYS.  Some functions are actually named
15060     something starting with __ and the normal name is an alias.  */
15061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15062 choke me
15063 #else
15064 char (*f) () = $ac_func;
15065 #endif
15066 #ifdef __cplusplus
15067 }
15068 #endif
15069
15070 int
15071 main ()
15072 {
15073 return f != $ac_func;
15074   ;
15075   return 0;
15076 }
15077 _ACEOF
15078 rm -f conftest.$ac_objext conftest$ac_exeext
15079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15080   (eval $ac_link) 2>&5
15081   ac_status=$?
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); } &&
15084          { ac_try='test -s conftest$ac_exeext'
15085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086   (eval $ac_try) 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); }; }; then
15090   eval "$as_ac_var=yes"
15091 else
15092   echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15094
15095 eval "$as_ac_var=no"
15096 fi
15097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15098 fi
15099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15101 if test `eval echo '${'$as_ac_var'}'` = yes; then
15102   cat >>confdefs.h <<_ACEOF
15103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15104 _ACEOF
15105
15106 fi
15107 done
15108
15109   else
15110
15111   echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
15112 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
15113   if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
15114     if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
15115   echo $ECHO_N "(cached) $ECHO_C" >&6
15116 else
15117
15118
15119
15120       ac_ext=cc
15121 ac_cpp='$CXXCPP $CPPFLAGS'
15122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15125
15126       cat >conftest.$ac_ext <<_ACEOF
15127 #line $LINENO "configure"
15128 /* confdefs.h.  */
15129 _ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h.  */
15133 #include <math.h>
15134 int
15135 main ()
15136 {
15137  _sincosf(0, 0, 0);
15138   ;
15139   return 0;
15140 }
15141 _ACEOF
15142 rm -f conftest.$ac_objext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144   (eval $ac_compile) 2>&5
15145   ac_status=$?
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); } &&
15148          { ac_try='test -s conftest.$ac_objext'
15149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150   (eval $ac_try) 2>&5
15151   ac_status=$?
15152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153   (exit $ac_status); }; }; then
15154   glibcxx_cv_func__sincosf_use=yes
15155 else
15156   echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15158
15159 glibcxx_cv_func__sincosf_use=no
15160 fi
15161 rm -f conftest.$ac_objext conftest.$ac_ext
15162       ac_ext=c
15163 ac_cpp='$CPP $CPPFLAGS'
15164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15167
15168
15169 fi
15170
15171   fi
15172   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
15173 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
15174
15175     if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
15176
15177 for ac_func in _sincosf
15178 do
15179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15180 echo "$as_me:$LINENO: checking for $ac_func" >&5
15181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15182 if eval "test \"\${$as_ac_var+set}\" = set"; then
15183   echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185   cat >conftest.$ac_ext <<_ACEOF
15186 #line $LINENO "configure"
15187 /* confdefs.h.  */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h.  */
15192 /* System header to define __stub macros and hopefully few prototypes,
15193     which can conflict with char $ac_func (); below.
15194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15195     <limits.h> exists even on freestanding compilers.  */
15196 #ifdef __STDC__
15197 # include <limits.h>
15198 #else
15199 # include <assert.h>
15200 #endif
15201 /* Override any gcc2 internal prototype to avoid an error.  */
15202 #ifdef __cplusplus
15203 extern "C"
15204 {
15205 #endif
15206 /* We use char because int might match the return type of a gcc2
15207    builtin and then its argument prototype would still apply.  */
15208 char $ac_func ();
15209 /* The GNU C library defines this for functions which it implements
15210     to always fail with ENOSYS.  Some functions are actually named
15211     something starting with __ and the normal name is an alias.  */
15212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15213 choke me
15214 #else
15215 char (*f) () = $ac_func;
15216 #endif
15217 #ifdef __cplusplus
15218 }
15219 #endif
15220
15221 int
15222 main ()
15223 {
15224 return f != $ac_func;
15225   ;
15226   return 0;
15227 }
15228 _ACEOF
15229 rm -f conftest.$ac_objext conftest$ac_exeext
15230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15231   (eval $ac_link) 2>&5
15232   ac_status=$?
15233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234   (exit $ac_status); } &&
15235          { ac_try='test -s conftest$ac_exeext'
15236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237   (eval $ac_try) 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); }; }; then
15241   eval "$as_ac_var=yes"
15242 else
15243   echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15245
15246 eval "$as_ac_var=no"
15247 fi
15248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15249 fi
15250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15252 if test `eval echo '${'$as_ac_var'}'` = yes; then
15253   cat >>confdefs.h <<_ACEOF
15254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15255 _ACEOF
15256
15257 fi
15258 done
15259
15260     fi
15261   fi
15262
15263
15264
15265   echo "$as_me:$LINENO: checking for finitef declaration" >&5
15266 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
15267   if test x${glibcxx_cv_func_finitef_use+set} != xset; then
15268     if test "${glibcxx_cv_func_finitef_use+set}" = set; then
15269   echo $ECHO_N "(cached) $ECHO_C" >&6
15270 else
15271
15272
15273
15274       ac_ext=cc
15275 ac_cpp='$CXXCPP $CPPFLAGS'
15276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15279
15280       cat >conftest.$ac_ext <<_ACEOF
15281 #line $LINENO "configure"
15282 /* confdefs.h.  */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h.  */
15287 #include <math.h>
15288                       #ifdef HAVE_IEEEFP_H
15289                       #include <ieeefp.h>
15290                       #endif
15291
15292 int
15293 main ()
15294 {
15295  finitef(0);
15296   ;
15297   return 0;
15298 }
15299 _ACEOF
15300 rm -f conftest.$ac_objext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15302   (eval $ac_compile) 2>&5
15303   ac_status=$?
15304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305   (exit $ac_status); } &&
15306          { ac_try='test -s conftest.$ac_objext'
15307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308   (eval $ac_try) 2>&5
15309   ac_status=$?
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); }; }; then
15312   glibcxx_cv_func_finitef_use=yes
15313 else
15314   echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15316
15317 glibcxx_cv_func_finitef_use=no
15318 fi
15319 rm -f conftest.$ac_objext conftest.$ac_ext
15320       ac_ext=c
15321 ac_cpp='$CPP $CPPFLAGS'
15322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15325
15326
15327 fi
15328
15329   fi
15330   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
15331 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
15332
15333   if test x$glibcxx_cv_func_finitef_use = x"yes"; then
15334
15335 for ac_func in finitef
15336 do
15337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15338 echo "$as_me:$LINENO: checking for $ac_func" >&5
15339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15340 if eval "test \"\${$as_ac_var+set}\" = set"; then
15341   echo $ECHO_N "(cached) $ECHO_C" >&6
15342 else
15343   cat >conftest.$ac_ext <<_ACEOF
15344 #line $LINENO "configure"
15345 /* confdefs.h.  */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h.  */
15350 /* System header to define __stub macros and hopefully few prototypes,
15351     which can conflict with char $ac_func (); below.
15352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15353     <limits.h> exists even on freestanding compilers.  */
15354 #ifdef __STDC__
15355 # include <limits.h>
15356 #else
15357 # include <assert.h>
15358 #endif
15359 /* Override any gcc2 internal prototype to avoid an error.  */
15360 #ifdef __cplusplus
15361 extern "C"
15362 {
15363 #endif
15364 /* We use char because int might match the return type of a gcc2
15365    builtin and then its argument prototype would still apply.  */
15366 char $ac_func ();
15367 /* The GNU C library defines this for functions which it implements
15368     to always fail with ENOSYS.  Some functions are actually named
15369     something starting with __ and the normal name is an alias.  */
15370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15371 choke me
15372 #else
15373 char (*f) () = $ac_func;
15374 #endif
15375 #ifdef __cplusplus
15376 }
15377 #endif
15378
15379 int
15380 main ()
15381 {
15382 return f != $ac_func;
15383   ;
15384   return 0;
15385 }
15386 _ACEOF
15387 rm -f conftest.$ac_objext conftest$ac_exeext
15388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15389   (eval $ac_link) 2>&5
15390   ac_status=$?
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); } &&
15393          { ac_try='test -s conftest$ac_exeext'
15394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15395   (eval $ac_try) 2>&5
15396   ac_status=$?
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); }; }; then
15399   eval "$as_ac_var=yes"
15400 else
15401   echo "$as_me: failed program was:" >&5
15402 sed 's/^/| /' conftest.$ac_ext >&5
15403
15404 eval "$as_ac_var=no"
15405 fi
15406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15407 fi
15408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15410 if test `eval echo '${'$as_ac_var'}'` = yes; then
15411   cat >>confdefs.h <<_ACEOF
15412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15413 _ACEOF
15414
15415 fi
15416 done
15417
15418   else
15419
15420   echo "$as_me:$LINENO: checking for _finitef declaration" >&5
15421 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
15422   if test x${glibcxx_cv_func__finitef_use+set} != xset; then
15423     if test "${glibcxx_cv_func__finitef_use+set}" = set; then
15424   echo $ECHO_N "(cached) $ECHO_C" >&6
15425 else
15426
15427
15428
15429       ac_ext=cc
15430 ac_cpp='$CXXCPP $CPPFLAGS'
15431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15434
15435       cat >conftest.$ac_ext <<_ACEOF
15436 #line $LINENO "configure"
15437 /* confdefs.h.  */
15438 _ACEOF
15439 cat confdefs.h >>conftest.$ac_ext
15440 cat >>conftest.$ac_ext <<_ACEOF
15441 /* end confdefs.h.  */
15442 #include <math.h>
15443                       #ifdef HAVE_IEEEFP_H
15444                       #include <ieeefp.h>
15445                       #endif
15446
15447 int
15448 main ()
15449 {
15450  _finitef(0);
15451   ;
15452   return 0;
15453 }
15454 _ACEOF
15455 rm -f conftest.$ac_objext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15457   (eval $ac_compile) 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); } &&
15461          { ac_try='test -s conftest.$ac_objext'
15462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463   (eval $ac_try) 2>&5
15464   ac_status=$?
15465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466   (exit $ac_status); }; }; then
15467   glibcxx_cv_func__finitef_use=yes
15468 else
15469   echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15471
15472 glibcxx_cv_func__finitef_use=no
15473 fi
15474 rm -f conftest.$ac_objext conftest.$ac_ext
15475       ac_ext=c
15476 ac_cpp='$CPP $CPPFLAGS'
15477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15480
15481
15482 fi
15483
15484   fi
15485   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
15486 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
15487
15488     if test x$glibcxx_cv_func__finitef_use = x"yes"; then
15489
15490 for ac_func in _finitef
15491 do
15492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15493 echo "$as_me:$LINENO: checking for $ac_func" >&5
15494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15495 if eval "test \"\${$as_ac_var+set}\" = set"; then
15496   echo $ECHO_N "(cached) $ECHO_C" >&6
15497 else
15498   cat >conftest.$ac_ext <<_ACEOF
15499 #line $LINENO "configure"
15500 /* confdefs.h.  */
15501 _ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h.  */
15505 /* System header to define __stub macros and hopefully few prototypes,
15506     which can conflict with char $ac_func (); below.
15507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15508     <limits.h> exists even on freestanding compilers.  */
15509 #ifdef __STDC__
15510 # include <limits.h>
15511 #else
15512 # include <assert.h>
15513 #endif
15514 /* Override any gcc2 internal prototype to avoid an error.  */
15515 #ifdef __cplusplus
15516 extern "C"
15517 {
15518 #endif
15519 /* We use char because int might match the return type of a gcc2
15520    builtin and then its argument prototype would still apply.  */
15521 char $ac_func ();
15522 /* The GNU C library defines this for functions which it implements
15523     to always fail with ENOSYS.  Some functions are actually named
15524     something starting with __ and the normal name is an alias.  */
15525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15526 choke me
15527 #else
15528 char (*f) () = $ac_func;
15529 #endif
15530 #ifdef __cplusplus
15531 }
15532 #endif
15533
15534 int
15535 main ()
15536 {
15537 return f != $ac_func;
15538   ;
15539   return 0;
15540 }
15541 _ACEOF
15542 rm -f conftest.$ac_objext conftest$ac_exeext
15543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15544   (eval $ac_link) 2>&5
15545   ac_status=$?
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); } &&
15548          { ac_try='test -s conftest$ac_exeext'
15549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550   (eval $ac_try) 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); }; }; then
15554   eval "$as_ac_var=yes"
15555 else
15556   echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15558
15559 eval "$as_ac_var=no"
15560 fi
15561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15562 fi
15563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15565 if test `eval echo '${'$as_ac_var'}'` = yes; then
15566   cat >>confdefs.h <<_ACEOF
15567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15568 _ACEOF
15569
15570 fi
15571 done
15572
15573     fi
15574   fi
15575
15576
15577
15578   echo "$as_me:$LINENO: checking for long double trig functions" >&5
15579 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
15580   if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
15581   echo $ECHO_N "(cached) $ECHO_C" >&6
15582 else
15583
15584
15585
15586     ac_ext=cc
15587 ac_cpp='$CXXCPP $CPPFLAGS'
15588 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15589 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15591
15592     cat >conftest.$ac_ext <<_ACEOF
15593 #line $LINENO "configure"
15594 /* confdefs.h.  */
15595 _ACEOF
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h.  */
15599 #include <math.h>
15600 int
15601 main ()
15602 {
15603  `for x in acosl asinl atanl \
15604                                           cosl sinl tanl \
15605                                           coshl sinhl tanhl; do echo "$x (0);"; done`
15606   ;
15607   return 0;
15608 }
15609 _ACEOF
15610 rm -f conftest.$ac_objext
15611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15612   (eval $ac_compile) 2>&5
15613   ac_status=$?
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); } &&
15616          { ac_try='test -s conftest.$ac_objext'
15617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618   (eval $ac_try) 2>&5
15619   ac_status=$?
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); }; }; then
15622   glibcxx_cv_func_long_double_trig_use=yes
15623 else
15624   echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15626
15627 glibcxx_cv_func_long_double_trig_use=no
15628 fi
15629 rm -f conftest.$ac_objext conftest.$ac_ext
15630     ac_ext=c
15631 ac_cpp='$CPP $CPPFLAGS'
15632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15635
15636 fi
15637
15638   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
15639 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
15640   if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650 for ac_func in acosl asinl atanl \
15651                                           cosl sinl tanl \
15652                                           coshl sinhl tanhl
15653 do
15654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15655 echo "$as_me:$LINENO: checking for $ac_func" >&5
15656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15657 if eval "test \"\${$as_ac_var+set}\" = set"; then
15658   echo $ECHO_N "(cached) $ECHO_C" >&6
15659 else
15660   cat >conftest.$ac_ext <<_ACEOF
15661 #line $LINENO "configure"
15662 /* confdefs.h.  */
15663 _ACEOF
15664 cat confdefs.h >>conftest.$ac_ext
15665 cat >>conftest.$ac_ext <<_ACEOF
15666 /* end confdefs.h.  */
15667 /* System header to define __stub macros and hopefully few prototypes,
15668     which can conflict with char $ac_func (); below.
15669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15670     <limits.h> exists even on freestanding compilers.  */
15671 #ifdef __STDC__
15672 # include <limits.h>
15673 #else
15674 # include <assert.h>
15675 #endif
15676 /* Override any gcc2 internal prototype to avoid an error.  */
15677 #ifdef __cplusplus
15678 extern "C"
15679 {
15680 #endif
15681 /* We use char because int might match the return type of a gcc2
15682    builtin and then its argument prototype would still apply.  */
15683 char $ac_func ();
15684 /* The GNU C library defines this for functions which it implements
15685     to always fail with ENOSYS.  Some functions are actually named
15686     something starting with __ and the normal name is an alias.  */
15687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15688 choke me
15689 #else
15690 char (*f) () = $ac_func;
15691 #endif
15692 #ifdef __cplusplus
15693 }
15694 #endif
15695
15696 int
15697 main ()
15698 {
15699 return f != $ac_func;
15700   ;
15701   return 0;
15702 }
15703 _ACEOF
15704 rm -f conftest.$ac_objext conftest$ac_exeext
15705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15706   (eval $ac_link) 2>&5
15707   ac_status=$?
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); } &&
15710          { ac_try='test -s conftest$ac_exeext'
15711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712   (eval $ac_try) 2>&5
15713   ac_status=$?
15714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715   (exit $ac_status); }; }; then
15716   eval "$as_ac_var=yes"
15717 else
15718   echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15720
15721 eval "$as_ac_var=no"
15722 fi
15723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15724 fi
15725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15727 if test `eval echo '${'$as_ac_var'}'` = yes; then
15728   cat >>confdefs.h <<_ACEOF
15729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15730 _ACEOF
15731
15732 fi
15733 done
15734
15735   fi
15736
15737
15738   echo "$as_me:$LINENO: checking for long double round functions" >&5
15739 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
15740   if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
15741   echo $ECHO_N "(cached) $ECHO_C" >&6
15742 else
15743
15744
15745
15746     ac_ext=cc
15747 ac_cpp='$CXXCPP $CPPFLAGS'
15748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15751
15752     cat >conftest.$ac_ext <<_ACEOF
15753 #line $LINENO "configure"
15754 /* confdefs.h.  */
15755 _ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h.  */
15759 #include <math.h>
15760 int
15761 main ()
15762 {
15763  `for x in ceill floorl; do echo "$x (0);"; done`
15764   ;
15765   return 0;
15766 }
15767 _ACEOF
15768 rm -f conftest.$ac_objext
15769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15770   (eval $ac_compile) 2>&5
15771   ac_status=$?
15772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773   (exit $ac_status); } &&
15774          { ac_try='test -s conftest.$ac_objext'
15775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776   (eval $ac_try) 2>&5
15777   ac_status=$?
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); }; }; then
15780   glibcxx_cv_func_long_double_round_use=yes
15781 else
15782   echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15784
15785 glibcxx_cv_func_long_double_round_use=no
15786 fi
15787 rm -f conftest.$ac_objext conftest.$ac_ext
15788     ac_ext=c
15789 ac_cpp='$CPP $CPPFLAGS'
15790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15793
15794 fi
15795
15796   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
15797 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
15798   if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
15799
15800
15801 for ac_func in ceill floorl
15802 do
15803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15804 echo "$as_me:$LINENO: checking for $ac_func" >&5
15805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15806 if eval "test \"\${$as_ac_var+set}\" = set"; then
15807   echo $ECHO_N "(cached) $ECHO_C" >&6
15808 else
15809   cat >conftest.$ac_ext <<_ACEOF
15810 #line $LINENO "configure"
15811 /* confdefs.h.  */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h.  */
15816 /* System header to define __stub macros and hopefully few prototypes,
15817     which can conflict with char $ac_func (); below.
15818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15819     <limits.h> exists even on freestanding compilers.  */
15820 #ifdef __STDC__
15821 # include <limits.h>
15822 #else
15823 # include <assert.h>
15824 #endif
15825 /* Override any gcc2 internal prototype to avoid an error.  */
15826 #ifdef __cplusplus
15827 extern "C"
15828 {
15829 #endif
15830 /* We use char because int might match the return type of a gcc2
15831    builtin and then its argument prototype would still apply.  */
15832 char $ac_func ();
15833 /* The GNU C library defines this for functions which it implements
15834     to always fail with ENOSYS.  Some functions are actually named
15835     something starting with __ and the normal name is an alias.  */
15836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15837 choke me
15838 #else
15839 char (*f) () = $ac_func;
15840 #endif
15841 #ifdef __cplusplus
15842 }
15843 #endif
15844
15845 int
15846 main ()
15847 {
15848 return f != $ac_func;
15849   ;
15850   return 0;
15851 }
15852 _ACEOF
15853 rm -f conftest.$ac_objext conftest$ac_exeext
15854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15855   (eval $ac_link) 2>&5
15856   ac_status=$?
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); } &&
15859          { ac_try='test -s conftest$ac_exeext'
15860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861   (eval $ac_try) 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; }; then
15865   eval "$as_ac_var=yes"
15866 else
15867   echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15869
15870 eval "$as_ac_var=no"
15871 fi
15872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15873 fi
15874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15876 if test `eval echo '${'$as_ac_var'}'` = yes; then
15877   cat >>confdefs.h <<_ACEOF
15878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15879 _ACEOF
15880
15881 fi
15882 done
15883
15884   fi
15885
15886
15887
15888   echo "$as_me:$LINENO: checking for isnanl declaration" >&5
15889 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
15890   if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
15891     if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
15892   echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894
15895
15896
15897       ac_ext=cc
15898 ac_cpp='$CXXCPP $CPPFLAGS'
15899 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15900 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15901 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15902
15903       cat >conftest.$ac_ext <<_ACEOF
15904 #line $LINENO "configure"
15905 /* confdefs.h.  */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h.  */
15910 #include <math.h>
15911                       #ifdef HAVE_IEEEFP_H
15912                       #include <ieeefp.h>
15913                       #endif
15914
15915 int
15916 main ()
15917 {
15918  isnanl(0);
15919   ;
15920   return 0;
15921 }
15922 _ACEOF
15923 rm -f conftest.$ac_objext
15924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15925   (eval $ac_compile) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); } &&
15929          { ac_try='test -s conftest.$ac_objext'
15930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15931   (eval $ac_try) 2>&5
15932   ac_status=$?
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); }; }; then
15935   glibcxx_cv_func_isnanl_use=yes
15936 else
15937   echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940 glibcxx_cv_func_isnanl_use=no
15941 fi
15942 rm -f conftest.$ac_objext conftest.$ac_ext
15943       ac_ext=c
15944 ac_cpp='$CPP $CPPFLAGS'
15945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15948
15949
15950 fi
15951
15952   fi
15953   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
15954 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
15955
15956   if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
15957
15958 for ac_func in isnanl
15959 do
15960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15961 echo "$as_me:$LINENO: checking for $ac_func" >&5
15962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15963 if eval "test \"\${$as_ac_var+set}\" = set"; then
15964   echo $ECHO_N "(cached) $ECHO_C" >&6
15965 else
15966   cat >conftest.$ac_ext <<_ACEOF
15967 #line $LINENO "configure"
15968 /* confdefs.h.  */
15969 _ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h.  */
15973 /* System header to define __stub macros and hopefully few prototypes,
15974     which can conflict with char $ac_func (); below.
15975     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15976     <limits.h> exists even on freestanding compilers.  */
15977 #ifdef __STDC__
15978 # include <limits.h>
15979 #else
15980 # include <assert.h>
15981 #endif
15982 /* Override any gcc2 internal prototype to avoid an error.  */
15983 #ifdef __cplusplus
15984 extern "C"
15985 {
15986 #endif
15987 /* We use char because int might match the return type of a gcc2
15988    builtin and then its argument prototype would still apply.  */
15989 char $ac_func ();
15990 /* The GNU C library defines this for functions which it implements
15991     to always fail with ENOSYS.  Some functions are actually named
15992     something starting with __ and the normal name is an alias.  */
15993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15994 choke me
15995 #else
15996 char (*f) () = $ac_func;
15997 #endif
15998 #ifdef __cplusplus
15999 }
16000 #endif
16001
16002 int
16003 main ()
16004 {
16005 return f != $ac_func;
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 rm -f conftest.$ac_objext conftest$ac_exeext
16011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16012   (eval $ac_link) 2>&5
16013   ac_status=$?
16014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015   (exit $ac_status); } &&
16016          { ac_try='test -s conftest$ac_exeext'
16017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018   (eval $ac_try) 2>&5
16019   ac_status=$?
16020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021   (exit $ac_status); }; }; then
16022   eval "$as_ac_var=yes"
16023 else
16024   echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16026
16027 eval "$as_ac_var=no"
16028 fi
16029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16030 fi
16031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16033 if test `eval echo '${'$as_ac_var'}'` = yes; then
16034   cat >>confdefs.h <<_ACEOF
16035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16036 _ACEOF
16037
16038 fi
16039 done
16040
16041   else
16042
16043   echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
16044 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
16045   if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
16046     if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
16047   echo $ECHO_N "(cached) $ECHO_C" >&6
16048 else
16049
16050
16051
16052       ac_ext=cc
16053 ac_cpp='$CXXCPP $CPPFLAGS'
16054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16057
16058       cat >conftest.$ac_ext <<_ACEOF
16059 #line $LINENO "configure"
16060 /* confdefs.h.  */
16061 _ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h.  */
16065 #include <math.h>
16066                       #ifdef HAVE_IEEEFP_H
16067                       #include <ieeefp.h>
16068                       #endif
16069
16070 int
16071 main ()
16072 {
16073  _isnanl(0);
16074   ;
16075   return 0;
16076 }
16077 _ACEOF
16078 rm -f conftest.$ac_objext
16079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16080   (eval $ac_compile) 2>&5
16081   ac_status=$?
16082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083   (exit $ac_status); } &&
16084          { ac_try='test -s conftest.$ac_objext'
16085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16086   (eval $ac_try) 2>&5
16087   ac_status=$?
16088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089   (exit $ac_status); }; }; then
16090   glibcxx_cv_func__isnanl_use=yes
16091 else
16092   echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16094
16095 glibcxx_cv_func__isnanl_use=no
16096 fi
16097 rm -f conftest.$ac_objext conftest.$ac_ext
16098       ac_ext=c
16099 ac_cpp='$CPP $CPPFLAGS'
16100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16103
16104
16105 fi
16106
16107   fi
16108   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
16109 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
16110
16111     if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
16112
16113 for ac_func in _isnanl
16114 do
16115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16116 echo "$as_me:$LINENO: checking for $ac_func" >&5
16117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16118 if eval "test \"\${$as_ac_var+set}\" = set"; then
16119   echo $ECHO_N "(cached) $ECHO_C" >&6
16120 else
16121   cat >conftest.$ac_ext <<_ACEOF
16122 #line $LINENO "configure"
16123 /* confdefs.h.  */
16124 _ACEOF
16125 cat confdefs.h >>conftest.$ac_ext
16126 cat >>conftest.$ac_ext <<_ACEOF
16127 /* end confdefs.h.  */
16128 /* System header to define __stub macros and hopefully few prototypes,
16129     which can conflict with char $ac_func (); below.
16130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16131     <limits.h> exists even on freestanding compilers.  */
16132 #ifdef __STDC__
16133 # include <limits.h>
16134 #else
16135 # include <assert.h>
16136 #endif
16137 /* Override any gcc2 internal prototype to avoid an error.  */
16138 #ifdef __cplusplus
16139 extern "C"
16140 {
16141 #endif
16142 /* We use char because int might match the return type of a gcc2
16143    builtin and then its argument prototype would still apply.  */
16144 char $ac_func ();
16145 /* The GNU C library defines this for functions which it implements
16146     to always fail with ENOSYS.  Some functions are actually named
16147     something starting with __ and the normal name is an alias.  */
16148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16149 choke me
16150 #else
16151 char (*f) () = $ac_func;
16152 #endif
16153 #ifdef __cplusplus
16154 }
16155 #endif
16156
16157 int
16158 main ()
16159 {
16160 return f != $ac_func;
16161   ;
16162   return 0;
16163 }
16164 _ACEOF
16165 rm -f conftest.$ac_objext conftest$ac_exeext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16167   (eval $ac_link) 2>&5
16168   ac_status=$?
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); } &&
16171          { ac_try='test -s conftest$ac_exeext'
16172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173   (eval $ac_try) 2>&5
16174   ac_status=$?
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); }; }; then
16177   eval "$as_ac_var=yes"
16178 else
16179   echo "$as_me: failed program was:" >&5
16180 sed 's/^/| /' conftest.$ac_ext >&5
16181
16182 eval "$as_ac_var=no"
16183 fi
16184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16185 fi
16186 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16187 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16188 if test `eval echo '${'$as_ac_var'}'` = yes; then
16189   cat >>confdefs.h <<_ACEOF
16190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16191 _ACEOF
16192
16193 fi
16194 done
16195
16196     fi
16197   fi
16198
16199
16200
16201   echo "$as_me:$LINENO: checking for isinfl declaration" >&5
16202 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
16203   if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
16204     if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
16205   echo $ECHO_N "(cached) $ECHO_C" >&6
16206 else
16207
16208
16209
16210       ac_ext=cc
16211 ac_cpp='$CXXCPP $CPPFLAGS'
16212 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16213 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16214 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16215
16216       cat >conftest.$ac_ext <<_ACEOF
16217 #line $LINENO "configure"
16218 /* confdefs.h.  */
16219 _ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h.  */
16223 #include <math.h>
16224                       #ifdef HAVE_IEEEFP_H
16225                       #include <ieeefp.h>
16226                       #endif
16227
16228 int
16229 main ()
16230 {
16231  isinfl(0);
16232   ;
16233   return 0;
16234 }
16235 _ACEOF
16236 rm -f conftest.$ac_objext
16237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16238   (eval $ac_compile) 2>&5
16239   ac_status=$?
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); } &&
16242          { ac_try='test -s conftest.$ac_objext'
16243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244   (eval $ac_try) 2>&5
16245   ac_status=$?
16246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247   (exit $ac_status); }; }; then
16248   glibcxx_cv_func_isinfl_use=yes
16249 else
16250   echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253 glibcxx_cv_func_isinfl_use=no
16254 fi
16255 rm -f conftest.$ac_objext conftest.$ac_ext
16256       ac_ext=c
16257 ac_cpp='$CPP $CPPFLAGS'
16258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16261
16262
16263 fi
16264
16265   fi
16266   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
16267 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
16268
16269   if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
16270
16271 for ac_func in isinfl
16272 do
16273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16274 echo "$as_me:$LINENO: checking for $ac_func" >&5
16275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16276 if eval "test \"\${$as_ac_var+set}\" = set"; then
16277   echo $ECHO_N "(cached) $ECHO_C" >&6
16278 else
16279   cat >conftest.$ac_ext <<_ACEOF
16280 #line $LINENO "configure"
16281 /* confdefs.h.  */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h.  */
16286 /* System header to define __stub macros and hopefully few prototypes,
16287     which can conflict with char $ac_func (); below.
16288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16289     <limits.h> exists even on freestanding compilers.  */
16290 #ifdef __STDC__
16291 # include <limits.h>
16292 #else
16293 # include <assert.h>
16294 #endif
16295 /* Override any gcc2 internal prototype to avoid an error.  */
16296 #ifdef __cplusplus
16297 extern "C"
16298 {
16299 #endif
16300 /* We use char because int might match the return type of a gcc2
16301    builtin and then its argument prototype would still apply.  */
16302 char $ac_func ();
16303 /* The GNU C library defines this for functions which it implements
16304     to always fail with ENOSYS.  Some functions are actually named
16305     something starting with __ and the normal name is an alias.  */
16306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16307 choke me
16308 #else
16309 char (*f) () = $ac_func;
16310 #endif
16311 #ifdef __cplusplus
16312 }
16313 #endif
16314
16315 int
16316 main ()
16317 {
16318 return f != $ac_func;
16319   ;
16320   return 0;
16321 }
16322 _ACEOF
16323 rm -f conftest.$ac_objext conftest$ac_exeext
16324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16325   (eval $ac_link) 2>&5
16326   ac_status=$?
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); } &&
16329          { ac_try='test -s conftest$ac_exeext'
16330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331   (eval $ac_try) 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); }; }; then
16335   eval "$as_ac_var=yes"
16336 else
16337   echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 eval "$as_ac_var=no"
16341 fi
16342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16343 fi
16344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16346 if test `eval echo '${'$as_ac_var'}'` = yes; then
16347   cat >>confdefs.h <<_ACEOF
16348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16349 _ACEOF
16350
16351 fi
16352 done
16353
16354   else
16355
16356   echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
16357 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
16358   if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
16359     if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
16360   echo $ECHO_N "(cached) $ECHO_C" >&6
16361 else
16362
16363
16364
16365       ac_ext=cc
16366 ac_cpp='$CXXCPP $CPPFLAGS'
16367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16370
16371       cat >conftest.$ac_ext <<_ACEOF
16372 #line $LINENO "configure"
16373 /* confdefs.h.  */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h.  */
16378 #include <math.h>
16379                       #ifdef HAVE_IEEEFP_H
16380                       #include <ieeefp.h>
16381                       #endif
16382
16383 int
16384 main ()
16385 {
16386  _isinfl(0);
16387   ;
16388   return 0;
16389 }
16390 _ACEOF
16391 rm -f conftest.$ac_objext
16392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16393   (eval $ac_compile) 2>&5
16394   ac_status=$?
16395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396   (exit $ac_status); } &&
16397          { ac_try='test -s conftest.$ac_objext'
16398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399   (eval $ac_try) 2>&5
16400   ac_status=$?
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); }; }; then
16403   glibcxx_cv_func__isinfl_use=yes
16404 else
16405   echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16407
16408 glibcxx_cv_func__isinfl_use=no
16409 fi
16410 rm -f conftest.$ac_objext conftest.$ac_ext
16411       ac_ext=c
16412 ac_cpp='$CPP $CPPFLAGS'
16413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16416
16417
16418 fi
16419
16420   fi
16421   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
16422 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
16423
16424     if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
16425
16426 for ac_func in _isinfl
16427 do
16428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16429 echo "$as_me:$LINENO: checking for $ac_func" >&5
16430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16431 if eval "test \"\${$as_ac_var+set}\" = set"; then
16432   echo $ECHO_N "(cached) $ECHO_C" >&6
16433 else
16434   cat >conftest.$ac_ext <<_ACEOF
16435 #line $LINENO "configure"
16436 /* confdefs.h.  */
16437 _ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h.  */
16441 /* System header to define __stub macros and hopefully few prototypes,
16442     which can conflict with char $ac_func (); below.
16443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16444     <limits.h> exists even on freestanding compilers.  */
16445 #ifdef __STDC__
16446 # include <limits.h>
16447 #else
16448 # include <assert.h>
16449 #endif
16450 /* Override any gcc2 internal prototype to avoid an error.  */
16451 #ifdef __cplusplus
16452 extern "C"
16453 {
16454 #endif
16455 /* We use char because int might match the return type of a gcc2
16456    builtin and then its argument prototype would still apply.  */
16457 char $ac_func ();
16458 /* The GNU C library defines this for functions which it implements
16459     to always fail with ENOSYS.  Some functions are actually named
16460     something starting with __ and the normal name is an alias.  */
16461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16462 choke me
16463 #else
16464 char (*f) () = $ac_func;
16465 #endif
16466 #ifdef __cplusplus
16467 }
16468 #endif
16469
16470 int
16471 main ()
16472 {
16473 return f != $ac_func;
16474   ;
16475   return 0;
16476 }
16477 _ACEOF
16478 rm -f conftest.$ac_objext conftest$ac_exeext
16479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16480   (eval $ac_link) 2>&5
16481   ac_status=$?
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   (exit $ac_status); } &&
16484          { ac_try='test -s conftest$ac_exeext'
16485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16486   (eval $ac_try) 2>&5
16487   ac_status=$?
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); }; }; then
16490   eval "$as_ac_var=yes"
16491 else
16492   echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16494
16495 eval "$as_ac_var=no"
16496 fi
16497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16498 fi
16499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16501 if test `eval echo '${'$as_ac_var'}'` = yes; then
16502   cat >>confdefs.h <<_ACEOF
16503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16504 _ACEOF
16505
16506 fi
16507 done
16508
16509     fi
16510   fi
16511
16512
16513
16514   echo "$as_me:$LINENO: checking for copysignl declaration" >&5
16515 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
16516   if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
16517     if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
16518   echo $ECHO_N "(cached) $ECHO_C" >&6
16519 else
16520
16521
16522
16523       ac_ext=cc
16524 ac_cpp='$CXXCPP $CPPFLAGS'
16525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16528
16529       cat >conftest.$ac_ext <<_ACEOF
16530 #line $LINENO "configure"
16531 /* confdefs.h.  */
16532 _ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h.  */
16536 #include <math.h>
16537 int
16538 main ()
16539 {
16540  copysignl(0, 0);
16541   ;
16542   return 0;
16543 }
16544 _ACEOF
16545 rm -f conftest.$ac_objext
16546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16547   (eval $ac_compile) 2>&5
16548   ac_status=$?
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); } &&
16551          { ac_try='test -s conftest.$ac_objext'
16552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553   (eval $ac_try) 2>&5
16554   ac_status=$?
16555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556   (exit $ac_status); }; }; then
16557   glibcxx_cv_func_copysignl_use=yes
16558 else
16559   echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16561
16562 glibcxx_cv_func_copysignl_use=no
16563 fi
16564 rm -f conftest.$ac_objext conftest.$ac_ext
16565       ac_ext=c
16566 ac_cpp='$CPP $CPPFLAGS'
16567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16570
16571
16572 fi
16573
16574   fi
16575   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
16576 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
16577
16578   if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
16579
16580 for ac_func in copysignl
16581 do
16582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16583 echo "$as_me:$LINENO: checking for $ac_func" >&5
16584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16585 if eval "test \"\${$as_ac_var+set}\" = set"; then
16586   echo $ECHO_N "(cached) $ECHO_C" >&6
16587 else
16588   cat >conftest.$ac_ext <<_ACEOF
16589 #line $LINENO "configure"
16590 /* confdefs.h.  */
16591 _ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h.  */
16595 /* System header to define __stub macros and hopefully few prototypes,
16596     which can conflict with char $ac_func (); below.
16597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16598     <limits.h> exists even on freestanding compilers.  */
16599 #ifdef __STDC__
16600 # include <limits.h>
16601 #else
16602 # include <assert.h>
16603 #endif
16604 /* Override any gcc2 internal prototype to avoid an error.  */
16605 #ifdef __cplusplus
16606 extern "C"
16607 {
16608 #endif
16609 /* We use char because int might match the return type of a gcc2
16610    builtin and then its argument prototype would still apply.  */
16611 char $ac_func ();
16612 /* The GNU C library defines this for functions which it implements
16613     to always fail with ENOSYS.  Some functions are actually named
16614     something starting with __ and the normal name is an alias.  */
16615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16616 choke me
16617 #else
16618 char (*f) () = $ac_func;
16619 #endif
16620 #ifdef __cplusplus
16621 }
16622 #endif
16623
16624 int
16625 main ()
16626 {
16627 return f != $ac_func;
16628   ;
16629   return 0;
16630 }
16631 _ACEOF
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16634   (eval $ac_link) 2>&5
16635   ac_status=$?
16636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637   (exit $ac_status); } &&
16638          { ac_try='test -s conftest$ac_exeext'
16639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640   (eval $ac_try) 2>&5
16641   ac_status=$?
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); }; }; then
16644   eval "$as_ac_var=yes"
16645 else
16646   echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16648
16649 eval "$as_ac_var=no"
16650 fi
16651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16652 fi
16653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16655 if test `eval echo '${'$as_ac_var'}'` = yes; then
16656   cat >>confdefs.h <<_ACEOF
16657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16658 _ACEOF
16659
16660 fi
16661 done
16662
16663   else
16664
16665   echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
16666 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
16667   if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
16668     if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
16669   echo $ECHO_N "(cached) $ECHO_C" >&6
16670 else
16671
16672
16673
16674       ac_ext=cc
16675 ac_cpp='$CXXCPP $CPPFLAGS'
16676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16679
16680       cat >conftest.$ac_ext <<_ACEOF
16681 #line $LINENO "configure"
16682 /* confdefs.h.  */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h.  */
16687 #include <math.h>
16688 int
16689 main ()
16690 {
16691  _copysignl(0, 0);
16692   ;
16693   return 0;
16694 }
16695 _ACEOF
16696 rm -f conftest.$ac_objext
16697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16698   (eval $ac_compile) 2>&5
16699   ac_status=$?
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); } &&
16702          { ac_try='test -s conftest.$ac_objext'
16703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704   (eval $ac_try) 2>&5
16705   ac_status=$?
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); }; }; then
16708   glibcxx_cv_func__copysignl_use=yes
16709 else
16710   echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16712
16713 glibcxx_cv_func__copysignl_use=no
16714 fi
16715 rm -f conftest.$ac_objext conftest.$ac_ext
16716       ac_ext=c
16717 ac_cpp='$CPP $CPPFLAGS'
16718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16721
16722
16723 fi
16724
16725   fi
16726   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
16727 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
16728
16729     if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
16730
16731 for ac_func in _copysignl
16732 do
16733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16734 echo "$as_me:$LINENO: checking for $ac_func" >&5
16735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16736 if eval "test \"\${$as_ac_var+set}\" = set"; then
16737   echo $ECHO_N "(cached) $ECHO_C" >&6
16738 else
16739   cat >conftest.$ac_ext <<_ACEOF
16740 #line $LINENO "configure"
16741 /* confdefs.h.  */
16742 _ACEOF
16743 cat confdefs.h >>conftest.$ac_ext
16744 cat >>conftest.$ac_ext <<_ACEOF
16745 /* end confdefs.h.  */
16746 /* System header to define __stub macros and hopefully few prototypes,
16747     which can conflict with char $ac_func (); below.
16748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16749     <limits.h> exists even on freestanding compilers.  */
16750 #ifdef __STDC__
16751 # include <limits.h>
16752 #else
16753 # include <assert.h>
16754 #endif
16755 /* Override any gcc2 internal prototype to avoid an error.  */
16756 #ifdef __cplusplus
16757 extern "C"
16758 {
16759 #endif
16760 /* We use char because int might match the return type of a gcc2
16761    builtin and then its argument prototype would still apply.  */
16762 char $ac_func ();
16763 /* The GNU C library defines this for functions which it implements
16764     to always fail with ENOSYS.  Some functions are actually named
16765     something starting with __ and the normal name is an alias.  */
16766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16767 choke me
16768 #else
16769 char (*f) () = $ac_func;
16770 #endif
16771 #ifdef __cplusplus
16772 }
16773 #endif
16774
16775 int
16776 main ()
16777 {
16778 return f != $ac_func;
16779   ;
16780   return 0;
16781 }
16782 _ACEOF
16783 rm -f conftest.$ac_objext conftest$ac_exeext
16784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16785   (eval $ac_link) 2>&5
16786   ac_status=$?
16787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788   (exit $ac_status); } &&
16789          { ac_try='test -s conftest$ac_exeext'
16790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16791   (eval $ac_try) 2>&5
16792   ac_status=$?
16793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794   (exit $ac_status); }; }; then
16795   eval "$as_ac_var=yes"
16796 else
16797   echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16799
16800 eval "$as_ac_var=no"
16801 fi
16802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16803 fi
16804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16806 if test `eval echo '${'$as_ac_var'}'` = yes; then
16807   cat >>confdefs.h <<_ACEOF
16808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16809 _ACEOF
16810
16811 fi
16812 done
16813
16814     fi
16815   fi
16816
16817
16818
16819   echo "$as_me:$LINENO: checking for atan2l declaration" >&5
16820 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
16821   if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
16822     if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
16823   echo $ECHO_N "(cached) $ECHO_C" >&6
16824 else
16825
16826
16827
16828       ac_ext=cc
16829 ac_cpp='$CXXCPP $CPPFLAGS'
16830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16833
16834       cat >conftest.$ac_ext <<_ACEOF
16835 #line $LINENO "configure"
16836 /* confdefs.h.  */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h.  */
16841 #include <math.h>
16842 int
16843 main ()
16844 {
16845  atan2l(0, 0);
16846   ;
16847   return 0;
16848 }
16849 _ACEOF
16850 rm -f conftest.$ac_objext
16851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16852   (eval $ac_compile) 2>&5
16853   ac_status=$?
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); } &&
16856          { ac_try='test -s conftest.$ac_objext'
16857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858   (eval $ac_try) 2>&5
16859   ac_status=$?
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); }; }; then
16862   glibcxx_cv_func_atan2l_use=yes
16863 else
16864   echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.$ac_ext >&5
16866
16867 glibcxx_cv_func_atan2l_use=no
16868 fi
16869 rm -f conftest.$ac_objext conftest.$ac_ext
16870       ac_ext=c
16871 ac_cpp='$CPP $CPPFLAGS'
16872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16875
16876
16877 fi
16878
16879   fi
16880   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
16881 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
16882
16883   if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
16884
16885 for ac_func in atan2l
16886 do
16887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16888 echo "$as_me:$LINENO: checking for $ac_func" >&5
16889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16890 if eval "test \"\${$as_ac_var+set}\" = set"; then
16891   echo $ECHO_N "(cached) $ECHO_C" >&6
16892 else
16893   cat >conftest.$ac_ext <<_ACEOF
16894 #line $LINENO "configure"
16895 /* confdefs.h.  */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h.  */
16900 /* System header to define __stub macros and hopefully few prototypes,
16901     which can conflict with char $ac_func (); below.
16902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16903     <limits.h> exists even on freestanding compilers.  */
16904 #ifdef __STDC__
16905 # include <limits.h>
16906 #else
16907 # include <assert.h>
16908 #endif
16909 /* Override any gcc2 internal prototype to avoid an error.  */
16910 #ifdef __cplusplus
16911 extern "C"
16912 {
16913 #endif
16914 /* We use char because int might match the return type of a gcc2
16915    builtin and then its argument prototype would still apply.  */
16916 char $ac_func ();
16917 /* The GNU C library defines this for functions which it implements
16918     to always fail with ENOSYS.  Some functions are actually named
16919     something starting with __ and the normal name is an alias.  */
16920 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16921 choke me
16922 #else
16923 char (*f) () = $ac_func;
16924 #endif
16925 #ifdef __cplusplus
16926 }
16927 #endif
16928
16929 int
16930 main ()
16931 {
16932 return f != $ac_func;
16933   ;
16934   return 0;
16935 }
16936 _ACEOF
16937 rm -f conftest.$ac_objext conftest$ac_exeext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16939   (eval $ac_link) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); } &&
16943          { ac_try='test -s conftest$ac_exeext'
16944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945   (eval $ac_try) 2>&5
16946   ac_status=$?
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); }; }; then
16949   eval "$as_ac_var=yes"
16950 else
16951   echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16953
16954 eval "$as_ac_var=no"
16955 fi
16956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16957 fi
16958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16959 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16960 if test `eval echo '${'$as_ac_var'}'` = yes; then
16961   cat >>confdefs.h <<_ACEOF
16962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16963 _ACEOF
16964
16965 fi
16966 done
16967
16968   else
16969
16970   echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
16971 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
16972   if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
16973     if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
16974   echo $ECHO_N "(cached) $ECHO_C" >&6
16975 else
16976
16977
16978
16979       ac_ext=cc
16980 ac_cpp='$CXXCPP $CPPFLAGS'
16981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16984
16985       cat >conftest.$ac_ext <<_ACEOF
16986 #line $LINENO "configure"
16987 /* confdefs.h.  */
16988 _ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h.  */
16992 #include <math.h>
16993 int
16994 main ()
16995 {
16996  _atan2l(0, 0);
16997   ;
16998   return 0;
16999 }
17000 _ACEOF
17001 rm -f conftest.$ac_objext
17002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17003   (eval $ac_compile) 2>&5
17004   ac_status=$?
17005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006   (exit $ac_status); } &&
17007          { ac_try='test -s conftest.$ac_objext'
17008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009   (eval $ac_try) 2>&5
17010   ac_status=$?
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); }; }; then
17013   glibcxx_cv_func__atan2l_use=yes
17014 else
17015   echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17017
17018 glibcxx_cv_func__atan2l_use=no
17019 fi
17020 rm -f conftest.$ac_objext conftest.$ac_ext
17021       ac_ext=c
17022 ac_cpp='$CPP $CPPFLAGS'
17023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17026
17027
17028 fi
17029
17030   fi
17031   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
17032 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
17033
17034     if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
17035
17036 for ac_func in _atan2l
17037 do
17038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17039 echo "$as_me:$LINENO: checking for $ac_func" >&5
17040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17041 if eval "test \"\${$as_ac_var+set}\" = set"; then
17042   echo $ECHO_N "(cached) $ECHO_C" >&6
17043 else
17044   cat >conftest.$ac_ext <<_ACEOF
17045 #line $LINENO "configure"
17046 /* confdefs.h.  */
17047 _ACEOF
17048 cat confdefs.h >>conftest.$ac_ext
17049 cat >>conftest.$ac_ext <<_ACEOF
17050 /* end confdefs.h.  */
17051 /* System header to define __stub macros and hopefully few prototypes,
17052     which can conflict with char $ac_func (); below.
17053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17054     <limits.h> exists even on freestanding compilers.  */
17055 #ifdef __STDC__
17056 # include <limits.h>
17057 #else
17058 # include <assert.h>
17059 #endif
17060 /* Override any gcc2 internal prototype to avoid an error.  */
17061 #ifdef __cplusplus
17062 extern "C"
17063 {
17064 #endif
17065 /* We use char because int might match the return type of a gcc2
17066    builtin and then its argument prototype would still apply.  */
17067 char $ac_func ();
17068 /* The GNU C library defines this for functions which it implements
17069     to always fail with ENOSYS.  Some functions are actually named
17070     something starting with __ and the normal name is an alias.  */
17071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17072 choke me
17073 #else
17074 char (*f) () = $ac_func;
17075 #endif
17076 #ifdef __cplusplus
17077 }
17078 #endif
17079
17080 int
17081 main ()
17082 {
17083 return f != $ac_func;
17084   ;
17085   return 0;
17086 }
17087 _ACEOF
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17090   (eval $ac_link) 2>&5
17091   ac_status=$?
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); } &&
17094          { ac_try='test -s conftest$ac_exeext'
17095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096   (eval $ac_try) 2>&5
17097   ac_status=$?
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; }; then
17100   eval "$as_ac_var=yes"
17101 else
17102   echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17104
17105 eval "$as_ac_var=no"
17106 fi
17107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17108 fi
17109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17111 if test `eval echo '${'$as_ac_var'}'` = yes; then
17112   cat >>confdefs.h <<_ACEOF
17113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17114 _ACEOF
17115
17116 fi
17117 done
17118
17119     fi
17120   fi
17121
17122
17123
17124   echo "$as_me:$LINENO: checking for expl declaration" >&5
17125 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
17126   if test x${glibcxx_cv_func_expl_use+set} != xset; then
17127     if test "${glibcxx_cv_func_expl_use+set}" = set; then
17128   echo $ECHO_N "(cached) $ECHO_C" >&6
17129 else
17130
17131
17132
17133       ac_ext=cc
17134 ac_cpp='$CXXCPP $CPPFLAGS'
17135 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17136 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17137 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17138
17139       cat >conftest.$ac_ext <<_ACEOF
17140 #line $LINENO "configure"
17141 /* confdefs.h.  */
17142 _ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h.  */
17146 #include <math.h>
17147                       #ifdef HAVE_IEEEFP_H
17148                       #include <ieeefp.h>
17149                       #endif
17150
17151 int
17152 main ()
17153 {
17154  expl(0);
17155   ;
17156   return 0;
17157 }
17158 _ACEOF
17159 rm -f conftest.$ac_objext
17160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17161   (eval $ac_compile) 2>&5
17162   ac_status=$?
17163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164   (exit $ac_status); } &&
17165          { ac_try='test -s conftest.$ac_objext'
17166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167   (eval $ac_try) 2>&5
17168   ac_status=$?
17169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); }; }; then
17171   glibcxx_cv_func_expl_use=yes
17172 else
17173   echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17175
17176 glibcxx_cv_func_expl_use=no
17177 fi
17178 rm -f conftest.$ac_objext conftest.$ac_ext
17179       ac_ext=c
17180 ac_cpp='$CPP $CPPFLAGS'
17181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17184
17185
17186 fi
17187
17188   fi
17189   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
17190 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
17191
17192   if test x$glibcxx_cv_func_expl_use = x"yes"; then
17193
17194 for ac_func in expl
17195 do
17196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17197 echo "$as_me:$LINENO: checking for $ac_func" >&5
17198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17199 if eval "test \"\${$as_ac_var+set}\" = set"; then
17200   echo $ECHO_N "(cached) $ECHO_C" >&6
17201 else
17202   cat >conftest.$ac_ext <<_ACEOF
17203 #line $LINENO "configure"
17204 /* confdefs.h.  */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h.  */
17209 /* System header to define __stub macros and hopefully few prototypes,
17210     which can conflict with char $ac_func (); below.
17211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17212     <limits.h> exists even on freestanding compilers.  */
17213 #ifdef __STDC__
17214 # include <limits.h>
17215 #else
17216 # include <assert.h>
17217 #endif
17218 /* Override any gcc2 internal prototype to avoid an error.  */
17219 #ifdef __cplusplus
17220 extern "C"
17221 {
17222 #endif
17223 /* We use char because int might match the return type of a gcc2
17224    builtin and then its argument prototype would still apply.  */
17225 char $ac_func ();
17226 /* The GNU C library defines this for functions which it implements
17227     to always fail with ENOSYS.  Some functions are actually named
17228     something starting with __ and the normal name is an alias.  */
17229 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17230 choke me
17231 #else
17232 char (*f) () = $ac_func;
17233 #endif
17234 #ifdef __cplusplus
17235 }
17236 #endif
17237
17238 int
17239 main ()
17240 {
17241 return f != $ac_func;
17242   ;
17243   return 0;
17244 }
17245 _ACEOF
17246 rm -f conftest.$ac_objext conftest$ac_exeext
17247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17248   (eval $ac_link) 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); } &&
17252          { ac_try='test -s conftest$ac_exeext'
17253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254   (eval $ac_try) 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); }; }; then
17258   eval "$as_ac_var=yes"
17259 else
17260   echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17262
17263 eval "$as_ac_var=no"
17264 fi
17265 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17266 fi
17267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17269 if test `eval echo '${'$as_ac_var'}'` = yes; then
17270   cat >>confdefs.h <<_ACEOF
17271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17272 _ACEOF
17273
17274 fi
17275 done
17276
17277   else
17278
17279   echo "$as_me:$LINENO: checking for _expl declaration" >&5
17280 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
17281   if test x${glibcxx_cv_func__expl_use+set} != xset; then
17282     if test "${glibcxx_cv_func__expl_use+set}" = set; then
17283   echo $ECHO_N "(cached) $ECHO_C" >&6
17284 else
17285
17286
17287
17288       ac_ext=cc
17289 ac_cpp='$CXXCPP $CPPFLAGS'
17290 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17291 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17292 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17293
17294       cat >conftest.$ac_ext <<_ACEOF
17295 #line $LINENO "configure"
17296 /* confdefs.h.  */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h.  */
17301 #include <math.h>
17302                       #ifdef HAVE_IEEEFP_H
17303                       #include <ieeefp.h>
17304                       #endif
17305
17306 int
17307 main ()
17308 {
17309  _expl(0);
17310   ;
17311   return 0;
17312 }
17313 _ACEOF
17314 rm -f conftest.$ac_objext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17316   (eval $ac_compile) 2>&5
17317   ac_status=$?
17318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319   (exit $ac_status); } &&
17320          { ac_try='test -s conftest.$ac_objext'
17321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322   (eval $ac_try) 2>&5
17323   ac_status=$?
17324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325   (exit $ac_status); }; }; then
17326   glibcxx_cv_func__expl_use=yes
17327 else
17328   echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17330
17331 glibcxx_cv_func__expl_use=no
17332 fi
17333 rm -f conftest.$ac_objext conftest.$ac_ext
17334       ac_ext=c
17335 ac_cpp='$CPP $CPPFLAGS'
17336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17339
17340
17341 fi
17342
17343   fi
17344   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
17345 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
17346
17347     if test x$glibcxx_cv_func__expl_use = x"yes"; then
17348
17349 for ac_func in _expl
17350 do
17351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17352 echo "$as_me:$LINENO: checking for $ac_func" >&5
17353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17354 if eval "test \"\${$as_ac_var+set}\" = set"; then
17355   echo $ECHO_N "(cached) $ECHO_C" >&6
17356 else
17357   cat >conftest.$ac_ext <<_ACEOF
17358 #line $LINENO "configure"
17359 /* confdefs.h.  */
17360 _ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h.  */
17364 /* System header to define __stub macros and hopefully few prototypes,
17365     which can conflict with char $ac_func (); below.
17366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17367     <limits.h> exists even on freestanding compilers.  */
17368 #ifdef __STDC__
17369 # include <limits.h>
17370 #else
17371 # include <assert.h>
17372 #endif
17373 /* Override any gcc2 internal prototype to avoid an error.  */
17374 #ifdef __cplusplus
17375 extern "C"
17376 {
17377 #endif
17378 /* We use char because int might match the return type of a gcc2
17379    builtin and then its argument prototype would still apply.  */
17380 char $ac_func ();
17381 /* The GNU C library defines this for functions which it implements
17382     to always fail with ENOSYS.  Some functions are actually named
17383     something starting with __ and the normal name is an alias.  */
17384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17385 choke me
17386 #else
17387 char (*f) () = $ac_func;
17388 #endif
17389 #ifdef __cplusplus
17390 }
17391 #endif
17392
17393 int
17394 main ()
17395 {
17396 return f != $ac_func;
17397   ;
17398   return 0;
17399 }
17400 _ACEOF
17401 rm -f conftest.$ac_objext conftest$ac_exeext
17402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17403   (eval $ac_link) 2>&5
17404   ac_status=$?
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); } &&
17407          { ac_try='test -s conftest$ac_exeext'
17408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409   (eval $ac_try) 2>&5
17410   ac_status=$?
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); }; }; then
17413   eval "$as_ac_var=yes"
17414 else
17415   echo "$as_me: failed program was:" >&5
17416 sed 's/^/| /' conftest.$ac_ext >&5
17417
17418 eval "$as_ac_var=no"
17419 fi
17420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17421 fi
17422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17424 if test `eval echo '${'$as_ac_var'}'` = yes; then
17425   cat >>confdefs.h <<_ACEOF
17426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17427 _ACEOF
17428
17429 fi
17430 done
17431
17432     fi
17433   fi
17434
17435
17436
17437   echo "$as_me:$LINENO: checking for fabsl declaration" >&5
17438 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
17439   if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
17440     if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443
17444
17445
17446       ac_ext=cc
17447 ac_cpp='$CXXCPP $CPPFLAGS'
17448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17451
17452       cat >conftest.$ac_ext <<_ACEOF
17453 #line $LINENO "configure"
17454 /* confdefs.h.  */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h.  */
17459 #include <math.h>
17460                       #ifdef HAVE_IEEEFP_H
17461                       #include <ieeefp.h>
17462                       #endif
17463
17464 int
17465 main ()
17466 {
17467  fabsl(0);
17468   ;
17469   return 0;
17470 }
17471 _ACEOF
17472 rm -f conftest.$ac_objext
17473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17474   (eval $ac_compile) 2>&5
17475   ac_status=$?
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); } &&
17478          { ac_try='test -s conftest.$ac_objext'
17479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17480   (eval $ac_try) 2>&5
17481   ac_status=$?
17482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483   (exit $ac_status); }; }; then
17484   glibcxx_cv_func_fabsl_use=yes
17485 else
17486   echo "$as_me: failed program was:" >&5
17487 sed 's/^/| /' conftest.$ac_ext >&5
17488
17489 glibcxx_cv_func_fabsl_use=no
17490 fi
17491 rm -f conftest.$ac_objext conftest.$ac_ext
17492       ac_ext=c
17493 ac_cpp='$CPP $CPPFLAGS'
17494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17497
17498
17499 fi
17500
17501   fi
17502   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
17503 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
17504
17505   if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
17506
17507 for ac_func in fabsl
17508 do
17509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17510 echo "$as_me:$LINENO: checking for $ac_func" >&5
17511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17512 if eval "test \"\${$as_ac_var+set}\" = set"; then
17513   echo $ECHO_N "(cached) $ECHO_C" >&6
17514 else
17515   cat >conftest.$ac_ext <<_ACEOF
17516 #line $LINENO "configure"
17517 /* confdefs.h.  */
17518 _ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h.  */
17522 /* System header to define __stub macros and hopefully few prototypes,
17523     which can conflict with char $ac_func (); below.
17524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17525     <limits.h> exists even on freestanding compilers.  */
17526 #ifdef __STDC__
17527 # include <limits.h>
17528 #else
17529 # include <assert.h>
17530 #endif
17531 /* Override any gcc2 internal prototype to avoid an error.  */
17532 #ifdef __cplusplus
17533 extern "C"
17534 {
17535 #endif
17536 /* We use char because int might match the return type of a gcc2
17537    builtin and then its argument prototype would still apply.  */
17538 char $ac_func ();
17539 /* The GNU C library defines this for functions which it implements
17540     to always fail with ENOSYS.  Some functions are actually named
17541     something starting with __ and the normal name is an alias.  */
17542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17543 choke me
17544 #else
17545 char (*f) () = $ac_func;
17546 #endif
17547 #ifdef __cplusplus
17548 }
17549 #endif
17550
17551 int
17552 main ()
17553 {
17554 return f != $ac_func;
17555   ;
17556   return 0;
17557 }
17558 _ACEOF
17559 rm -f conftest.$ac_objext conftest$ac_exeext
17560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17561   (eval $ac_link) 2>&5
17562   ac_status=$?
17563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564   (exit $ac_status); } &&
17565          { ac_try='test -s conftest$ac_exeext'
17566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567   (eval $ac_try) 2>&5
17568   ac_status=$?
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); }; }; then
17571   eval "$as_ac_var=yes"
17572 else
17573   echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576 eval "$as_ac_var=no"
17577 fi
17578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17579 fi
17580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17582 if test `eval echo '${'$as_ac_var'}'` = yes; then
17583   cat >>confdefs.h <<_ACEOF
17584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17585 _ACEOF
17586
17587 fi
17588 done
17589
17590   else
17591
17592   echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
17593 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
17594   if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
17595     if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
17596   echo $ECHO_N "(cached) $ECHO_C" >&6
17597 else
17598
17599
17600
17601       ac_ext=cc
17602 ac_cpp='$CXXCPP $CPPFLAGS'
17603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17606
17607       cat >conftest.$ac_ext <<_ACEOF
17608 #line $LINENO "configure"
17609 /* confdefs.h.  */
17610 _ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h.  */
17614 #include <math.h>
17615                       #ifdef HAVE_IEEEFP_H
17616                       #include <ieeefp.h>
17617                       #endif
17618
17619 int
17620 main ()
17621 {
17622  _fabsl(0);
17623   ;
17624   return 0;
17625 }
17626 _ACEOF
17627 rm -f conftest.$ac_objext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17629   (eval $ac_compile) 2>&5
17630   ac_status=$?
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); } &&
17633          { ac_try='test -s conftest.$ac_objext'
17634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635   (eval $ac_try) 2>&5
17636   ac_status=$?
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); }; }; then
17639   glibcxx_cv_func__fabsl_use=yes
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 glibcxx_cv_func__fabsl_use=no
17645 fi
17646 rm -f conftest.$ac_objext conftest.$ac_ext
17647       ac_ext=c
17648 ac_cpp='$CPP $CPPFLAGS'
17649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17652
17653
17654 fi
17655
17656   fi
17657   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
17658 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
17659
17660     if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
17661
17662 for ac_func in _fabsl
17663 do
17664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17665 echo "$as_me:$LINENO: checking for $ac_func" >&5
17666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17667 if eval "test \"\${$as_ac_var+set}\" = set"; then
17668   echo $ECHO_N "(cached) $ECHO_C" >&6
17669 else
17670   cat >conftest.$ac_ext <<_ACEOF
17671 #line $LINENO "configure"
17672 /* confdefs.h.  */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h.  */
17677 /* System header to define __stub macros and hopefully few prototypes,
17678     which can conflict with char $ac_func (); below.
17679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17680     <limits.h> exists even on freestanding compilers.  */
17681 #ifdef __STDC__
17682 # include <limits.h>
17683 #else
17684 # include <assert.h>
17685 #endif
17686 /* Override any gcc2 internal prototype to avoid an error.  */
17687 #ifdef __cplusplus
17688 extern "C"
17689 {
17690 #endif
17691 /* We use char because int might match the return type of a gcc2
17692    builtin and then its argument prototype would still apply.  */
17693 char $ac_func ();
17694 /* The GNU C library defines this for functions which it implements
17695     to always fail with ENOSYS.  Some functions are actually named
17696     something starting with __ and the normal name is an alias.  */
17697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17698 choke me
17699 #else
17700 char (*f) () = $ac_func;
17701 #endif
17702 #ifdef __cplusplus
17703 }
17704 #endif
17705
17706 int
17707 main ()
17708 {
17709 return f != $ac_func;
17710   ;
17711   return 0;
17712 }
17713 _ACEOF
17714 rm -f conftest.$ac_objext conftest$ac_exeext
17715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17716   (eval $ac_link) 2>&5
17717   ac_status=$?
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); } &&
17720          { ac_try='test -s conftest$ac_exeext'
17721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722   (eval $ac_try) 2>&5
17723   ac_status=$?
17724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725   (exit $ac_status); }; }; then
17726   eval "$as_ac_var=yes"
17727 else
17728   echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17730
17731 eval "$as_ac_var=no"
17732 fi
17733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17734 fi
17735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17737 if test `eval echo '${'$as_ac_var'}'` = yes; then
17738   cat >>confdefs.h <<_ACEOF
17739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17740 _ACEOF
17741
17742 fi
17743 done
17744
17745     fi
17746   fi
17747
17748
17749
17750   echo "$as_me:$LINENO: checking for fmodl declaration" >&5
17751 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
17752   if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
17753     if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
17754   echo $ECHO_N "(cached) $ECHO_C" >&6
17755 else
17756
17757
17758
17759       ac_ext=cc
17760 ac_cpp='$CXXCPP $CPPFLAGS'
17761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17764
17765       cat >conftest.$ac_ext <<_ACEOF
17766 #line $LINENO "configure"
17767 /* confdefs.h.  */
17768 _ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h.  */
17772 #include <math.h>
17773 int
17774 main ()
17775 {
17776  fmodl(0, 0);
17777   ;
17778   return 0;
17779 }
17780 _ACEOF
17781 rm -f conftest.$ac_objext
17782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17783   (eval $ac_compile) 2>&5
17784   ac_status=$?
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); } &&
17787          { ac_try='test -s conftest.$ac_objext'
17788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789   (eval $ac_try) 2>&5
17790   ac_status=$?
17791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792   (exit $ac_status); }; }; then
17793   glibcxx_cv_func_fmodl_use=yes
17794 else
17795   echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17797
17798 glibcxx_cv_func_fmodl_use=no
17799 fi
17800 rm -f conftest.$ac_objext conftest.$ac_ext
17801       ac_ext=c
17802 ac_cpp='$CPP $CPPFLAGS'
17803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17806
17807
17808 fi
17809
17810   fi
17811   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodl_use" >&5
17812 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
17813
17814   if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
17815
17816 for ac_func in fmodl
17817 do
17818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17819 echo "$as_me:$LINENO: checking for $ac_func" >&5
17820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17821 if eval "test \"\${$as_ac_var+set}\" = set"; then
17822   echo $ECHO_N "(cached) $ECHO_C" >&6
17823 else
17824   cat >conftest.$ac_ext <<_ACEOF
17825 #line $LINENO "configure"
17826 /* confdefs.h.  */
17827 _ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h.  */
17831 /* System header to define __stub macros and hopefully few prototypes,
17832     which can conflict with char $ac_func (); below.
17833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17834     <limits.h> exists even on freestanding compilers.  */
17835 #ifdef __STDC__
17836 # include <limits.h>
17837 #else
17838 # include <assert.h>
17839 #endif
17840 /* Override any gcc2 internal prototype to avoid an error.  */
17841 #ifdef __cplusplus
17842 extern "C"
17843 {
17844 #endif
17845 /* We use char because int might match the return type of a gcc2
17846    builtin and then its argument prototype would still apply.  */
17847 char $ac_func ();
17848 /* The GNU C library defines this for functions which it implements
17849     to always fail with ENOSYS.  Some functions are actually named
17850     something starting with __ and the normal name is an alias.  */
17851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17852 choke me
17853 #else
17854 char (*f) () = $ac_func;
17855 #endif
17856 #ifdef __cplusplus
17857 }
17858 #endif
17859
17860 int
17861 main ()
17862 {
17863 return f != $ac_func;
17864   ;
17865   return 0;
17866 }
17867 _ACEOF
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17870   (eval $ac_link) 2>&5
17871   ac_status=$?
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); } &&
17874          { ac_try='test -s conftest$ac_exeext'
17875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17876   (eval $ac_try) 2>&5
17877   ac_status=$?
17878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879   (exit $ac_status); }; }; then
17880   eval "$as_ac_var=yes"
17881 else
17882   echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.$ac_ext >&5
17884
17885 eval "$as_ac_var=no"
17886 fi
17887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17888 fi
17889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17891 if test `eval echo '${'$as_ac_var'}'` = yes; then
17892   cat >>confdefs.h <<_ACEOF
17893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17894 _ACEOF
17895
17896 fi
17897 done
17898
17899   else
17900
17901   echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
17902 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
17903   if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
17904     if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
17905   echo $ECHO_N "(cached) $ECHO_C" >&6
17906 else
17907
17908
17909
17910       ac_ext=cc
17911 ac_cpp='$CXXCPP $CPPFLAGS'
17912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17915
17916       cat >conftest.$ac_ext <<_ACEOF
17917 #line $LINENO "configure"
17918 /* confdefs.h.  */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h.  */
17923 #include <math.h>
17924 int
17925 main ()
17926 {
17927  _fmodl(0, 0);
17928   ;
17929   return 0;
17930 }
17931 _ACEOF
17932 rm -f conftest.$ac_objext
17933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17934   (eval $ac_compile) 2>&5
17935   ac_status=$?
17936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937   (exit $ac_status); } &&
17938          { ac_try='test -s conftest.$ac_objext'
17939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17940   (eval $ac_try) 2>&5
17941   ac_status=$?
17942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943   (exit $ac_status); }; }; then
17944   glibcxx_cv_func__fmodl_use=yes
17945 else
17946   echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17948
17949 glibcxx_cv_func__fmodl_use=no
17950 fi
17951 rm -f conftest.$ac_objext conftest.$ac_ext
17952       ac_ext=c
17953 ac_cpp='$CPP $CPPFLAGS'
17954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17957
17958
17959 fi
17960
17961   fi
17962   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
17963 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
17964
17965     if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
17966
17967 for ac_func in _fmodl
17968 do
17969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17970 echo "$as_me:$LINENO: checking for $ac_func" >&5
17971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17972 if eval "test \"\${$as_ac_var+set}\" = set"; then
17973   echo $ECHO_N "(cached) $ECHO_C" >&6
17974 else
17975   cat >conftest.$ac_ext <<_ACEOF
17976 #line $LINENO "configure"
17977 /* confdefs.h.  */
17978 _ACEOF
17979 cat confdefs.h >>conftest.$ac_ext
17980 cat >>conftest.$ac_ext <<_ACEOF
17981 /* end confdefs.h.  */
17982 /* System header to define __stub macros and hopefully few prototypes,
17983     which can conflict with char $ac_func (); below.
17984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17985     <limits.h> exists even on freestanding compilers.  */
17986 #ifdef __STDC__
17987 # include <limits.h>
17988 #else
17989 # include <assert.h>
17990 #endif
17991 /* Override any gcc2 internal prototype to avoid an error.  */
17992 #ifdef __cplusplus
17993 extern "C"
17994 {
17995 #endif
17996 /* We use char because int might match the return type of a gcc2
17997    builtin and then its argument prototype would still apply.  */
17998 char $ac_func ();
17999 /* The GNU C library defines this for functions which it implements
18000     to always fail with ENOSYS.  Some functions are actually named
18001     something starting with __ and the normal name is an alias.  */
18002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18003 choke me
18004 #else
18005 char (*f) () = $ac_func;
18006 #endif
18007 #ifdef __cplusplus
18008 }
18009 #endif
18010
18011 int
18012 main ()
18013 {
18014 return f != $ac_func;
18015   ;
18016   return 0;
18017 }
18018 _ACEOF
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021   (eval $ac_link) 2>&5
18022   ac_status=$?
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); } &&
18025          { ac_try='test -s conftest$ac_exeext'
18026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027   (eval $ac_try) 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); }; }; then
18031   eval "$as_ac_var=yes"
18032 else
18033   echo "$as_me: failed program was:" >&5
18034 sed 's/^/| /' conftest.$ac_ext >&5
18035
18036 eval "$as_ac_var=no"
18037 fi
18038 rm -f conftest.$ac_objext 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   fi
18052
18053
18054
18055   echo "$as_me:$LINENO: checking for frexpl declaration" >&5
18056 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
18057   if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
18058     if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
18059   echo $ECHO_N "(cached) $ECHO_C" >&6
18060 else
18061
18062
18063
18064       ac_ext=cc
18065 ac_cpp='$CXXCPP $CPPFLAGS'
18066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18069
18070       cat >conftest.$ac_ext <<_ACEOF
18071 #line $LINENO "configure"
18072 /* confdefs.h.  */
18073 _ACEOF
18074 cat confdefs.h >>conftest.$ac_ext
18075 cat >>conftest.$ac_ext <<_ACEOF
18076 /* end confdefs.h.  */
18077 #include <math.h>
18078 int
18079 main ()
18080 {
18081  frexpl(0, 0);
18082   ;
18083   return 0;
18084 }
18085 _ACEOF
18086 rm -f conftest.$ac_objext
18087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18088   (eval $ac_compile) 2>&5
18089   ac_status=$?
18090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091   (exit $ac_status); } &&
18092          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18098   glibcxx_cv_func_frexpl_use=yes
18099 else
18100   echo "$as_me: failed program was:" >&5
18101 sed 's/^/| /' conftest.$ac_ext >&5
18102
18103 glibcxx_cv_func_frexpl_use=no
18104 fi
18105 rm -f conftest.$ac_objext conftest.$ac_ext
18106       ac_ext=c
18107 ac_cpp='$CPP $CPPFLAGS'
18108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18111
18112
18113 fi
18114
18115   fi
18116   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
18117 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
18118
18119   if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
18120
18121 for ac_func in frexpl
18122 do
18123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18124 echo "$as_me:$LINENO: checking for $ac_func" >&5
18125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18126 if eval "test \"\${$as_ac_var+set}\" = set"; then
18127   echo $ECHO_N "(cached) $ECHO_C" >&6
18128 else
18129   cat >conftest.$ac_ext <<_ACEOF
18130 #line $LINENO "configure"
18131 /* confdefs.h.  */
18132 _ACEOF
18133 cat confdefs.h >>conftest.$ac_ext
18134 cat >>conftest.$ac_ext <<_ACEOF
18135 /* end confdefs.h.  */
18136 /* System header to define __stub macros and hopefully few prototypes,
18137     which can conflict with char $ac_func (); below.
18138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18139     <limits.h> exists even on freestanding compilers.  */
18140 #ifdef __STDC__
18141 # include <limits.h>
18142 #else
18143 # include <assert.h>
18144 #endif
18145 /* Override any gcc2 internal prototype to avoid an error.  */
18146 #ifdef __cplusplus
18147 extern "C"
18148 {
18149 #endif
18150 /* We use char because int might match the return type of a gcc2
18151    builtin and then its argument prototype would still apply.  */
18152 char $ac_func ();
18153 /* The GNU C library defines this for functions which it implements
18154     to always fail with ENOSYS.  Some functions are actually named
18155     something starting with __ and the normal name is an alias.  */
18156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18157 choke me
18158 #else
18159 char (*f) () = $ac_func;
18160 #endif
18161 #ifdef __cplusplus
18162 }
18163 #endif
18164
18165 int
18166 main ()
18167 {
18168 return f != $ac_func;
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 rm -f conftest.$ac_objext conftest$ac_exeext
18174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18175   (eval $ac_link) 2>&5
18176   ac_status=$?
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); } &&
18179          { ac_try='test -s conftest$ac_exeext'
18180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181   (eval $ac_try) 2>&5
18182   ac_status=$?
18183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184   (exit $ac_status); }; }; then
18185   eval "$as_ac_var=yes"
18186 else
18187   echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18189
18190 eval "$as_ac_var=no"
18191 fi
18192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18193 fi
18194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18196 if test `eval echo '${'$as_ac_var'}'` = yes; then
18197   cat >>confdefs.h <<_ACEOF
18198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18199 _ACEOF
18200
18201 fi
18202 done
18203
18204   else
18205
18206   echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
18207 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
18208   if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
18209     if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
18210   echo $ECHO_N "(cached) $ECHO_C" >&6
18211 else
18212
18213
18214
18215       ac_ext=cc
18216 ac_cpp='$CXXCPP $CPPFLAGS'
18217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18220
18221       cat >conftest.$ac_ext <<_ACEOF
18222 #line $LINENO "configure"
18223 /* confdefs.h.  */
18224 _ACEOF
18225 cat confdefs.h >>conftest.$ac_ext
18226 cat >>conftest.$ac_ext <<_ACEOF
18227 /* end confdefs.h.  */
18228 #include <math.h>
18229 int
18230 main ()
18231 {
18232  _frexpl(0, 0);
18233   ;
18234   return 0;
18235 }
18236 _ACEOF
18237 rm -f conftest.$ac_objext
18238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18239   (eval $ac_compile) 2>&5
18240   ac_status=$?
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); } &&
18243          { ac_try='test -s conftest.$ac_objext'
18244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245   (eval $ac_try) 2>&5
18246   ac_status=$?
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); }; }; then
18249   glibcxx_cv_func__frexpl_use=yes
18250 else
18251   echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18253
18254 glibcxx_cv_func__frexpl_use=no
18255 fi
18256 rm -f conftest.$ac_objext conftest.$ac_ext
18257       ac_ext=c
18258 ac_cpp='$CPP $CPPFLAGS'
18259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18262
18263
18264 fi
18265
18266   fi
18267   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
18268 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
18269
18270     if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
18271
18272 for ac_func in _frexpl
18273 do
18274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18275 echo "$as_me:$LINENO: checking for $ac_func" >&5
18276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18277 if eval "test \"\${$as_ac_var+set}\" = set"; then
18278   echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280   cat >conftest.$ac_ext <<_ACEOF
18281 #line $LINENO "configure"
18282 /* confdefs.h.  */
18283 _ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h.  */
18287 /* System header to define __stub macros and hopefully few prototypes,
18288     which can conflict with char $ac_func (); below.
18289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18290     <limits.h> exists even on freestanding compilers.  */
18291 #ifdef __STDC__
18292 # include <limits.h>
18293 #else
18294 # include <assert.h>
18295 #endif
18296 /* Override any gcc2 internal prototype to avoid an error.  */
18297 #ifdef __cplusplus
18298 extern "C"
18299 {
18300 #endif
18301 /* We use char because int might match the return type of a gcc2
18302    builtin and then its argument prototype would still apply.  */
18303 char $ac_func ();
18304 /* The GNU C library defines this for functions which it implements
18305     to always fail with ENOSYS.  Some functions are actually named
18306     something starting with __ and the normal name is an alias.  */
18307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18308 choke me
18309 #else
18310 char (*f) () = $ac_func;
18311 #endif
18312 #ifdef __cplusplus
18313 }
18314 #endif
18315
18316 int
18317 main ()
18318 {
18319 return f != $ac_func;
18320   ;
18321   return 0;
18322 }
18323 _ACEOF
18324 rm -f conftest.$ac_objext conftest$ac_exeext
18325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18326   (eval $ac_link) 2>&5
18327   ac_status=$?
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); } &&
18330          { ac_try='test -s conftest$ac_exeext'
18331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332   (eval $ac_try) 2>&5
18333   ac_status=$?
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); }; }; then
18336   eval "$as_ac_var=yes"
18337 else
18338   echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18340
18341 eval "$as_ac_var=no"
18342 fi
18343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18344 fi
18345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18347 if test `eval echo '${'$as_ac_var'}'` = yes; then
18348   cat >>confdefs.h <<_ACEOF
18349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18350 _ACEOF
18351
18352 fi
18353 done
18354
18355     fi
18356   fi
18357
18358
18359
18360   echo "$as_me:$LINENO: checking for hypotl declaration" >&5
18361 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
18362   if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
18363     if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
18364   echo $ECHO_N "(cached) $ECHO_C" >&6
18365 else
18366
18367
18368
18369       ac_ext=cc
18370 ac_cpp='$CXXCPP $CPPFLAGS'
18371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18374
18375       cat >conftest.$ac_ext <<_ACEOF
18376 #line $LINENO "configure"
18377 /* confdefs.h.  */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h.  */
18382 #include <math.h>
18383 int
18384 main ()
18385 {
18386  hypotl(0, 0);
18387   ;
18388   return 0;
18389 }
18390 _ACEOF
18391 rm -f conftest.$ac_objext
18392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18393   (eval $ac_compile) 2>&5
18394   ac_status=$?
18395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396   (exit $ac_status); } &&
18397          { ac_try='test -s conftest.$ac_objext'
18398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399   (eval $ac_try) 2>&5
18400   ac_status=$?
18401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); }; }; then
18403   glibcxx_cv_func_hypotl_use=yes
18404 else
18405   echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18407
18408 glibcxx_cv_func_hypotl_use=no
18409 fi
18410 rm -f conftest.$ac_objext conftest.$ac_ext
18411       ac_ext=c
18412 ac_cpp='$CPP $CPPFLAGS'
18413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18416
18417
18418 fi
18419
18420   fi
18421   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
18422 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
18423
18424   if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
18425
18426 for ac_func in hypotl
18427 do
18428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18429 echo "$as_me:$LINENO: checking for $ac_func" >&5
18430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18431 if eval "test \"\${$as_ac_var+set}\" = set"; then
18432   echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18434   cat >conftest.$ac_ext <<_ACEOF
18435 #line $LINENO "configure"
18436 /* confdefs.h.  */
18437 _ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h.  */
18441 /* System header to define __stub macros and hopefully few prototypes,
18442     which can conflict with char $ac_func (); below.
18443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18444     <limits.h> exists even on freestanding compilers.  */
18445 #ifdef __STDC__
18446 # include <limits.h>
18447 #else
18448 # include <assert.h>
18449 #endif
18450 /* Override any gcc2 internal prototype to avoid an error.  */
18451 #ifdef __cplusplus
18452 extern "C"
18453 {
18454 #endif
18455 /* We use char because int might match the return type of a gcc2
18456    builtin and then its argument prototype would still apply.  */
18457 char $ac_func ();
18458 /* The GNU C library defines this for functions which it implements
18459     to always fail with ENOSYS.  Some functions are actually named
18460     something starting with __ and the normal name is an alias.  */
18461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18462 choke me
18463 #else
18464 char (*f) () = $ac_func;
18465 #endif
18466 #ifdef __cplusplus
18467 }
18468 #endif
18469
18470 int
18471 main ()
18472 {
18473 return f != $ac_func;
18474   ;
18475   return 0;
18476 }
18477 _ACEOF
18478 rm -f conftest.$ac_objext conftest$ac_exeext
18479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18480   (eval $ac_link) 2>&5
18481   ac_status=$?
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); } &&
18484          { ac_try='test -s conftest$ac_exeext'
18485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486   (eval $ac_try) 2>&5
18487   ac_status=$?
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); }; }; then
18490   eval "$as_ac_var=yes"
18491 else
18492   echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18494
18495 eval "$as_ac_var=no"
18496 fi
18497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18498 fi
18499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18501 if test `eval echo '${'$as_ac_var'}'` = yes; then
18502   cat >>confdefs.h <<_ACEOF
18503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18504 _ACEOF
18505
18506 fi
18507 done
18508
18509   else
18510
18511   echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
18512 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
18513   if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
18514     if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
18515   echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18517
18518
18519
18520       ac_ext=cc
18521 ac_cpp='$CXXCPP $CPPFLAGS'
18522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18525
18526       cat >conftest.$ac_ext <<_ACEOF
18527 #line $LINENO "configure"
18528 /* confdefs.h.  */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h.  */
18533 #include <math.h>
18534 int
18535 main ()
18536 {
18537  _hypotl(0, 0);
18538   ;
18539   return 0;
18540 }
18541 _ACEOF
18542 rm -f conftest.$ac_objext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18544   (eval $ac_compile) 2>&5
18545   ac_status=$?
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); } &&
18548          { ac_try='test -s conftest.$ac_objext'
18549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550   (eval $ac_try) 2>&5
18551   ac_status=$?
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); }; }; then
18554   glibcxx_cv_func__hypotl_use=yes
18555 else
18556   echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18558
18559 glibcxx_cv_func__hypotl_use=no
18560 fi
18561 rm -f conftest.$ac_objext conftest.$ac_ext
18562       ac_ext=c
18563 ac_cpp='$CPP $CPPFLAGS'
18564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18567
18568
18569 fi
18570
18571   fi
18572   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
18573 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
18574
18575     if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
18576
18577 for ac_func in _hypotl
18578 do
18579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18580 echo "$as_me:$LINENO: checking for $ac_func" >&5
18581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18582 if eval "test \"\${$as_ac_var+set}\" = set"; then
18583   echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585   cat >conftest.$ac_ext <<_ACEOF
18586 #line $LINENO "configure"
18587 /* confdefs.h.  */
18588 _ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h.  */
18592 /* System header to define __stub macros and hopefully few prototypes,
18593     which can conflict with char $ac_func (); below.
18594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18595     <limits.h> exists even on freestanding compilers.  */
18596 #ifdef __STDC__
18597 # include <limits.h>
18598 #else
18599 # include <assert.h>
18600 #endif
18601 /* Override any gcc2 internal prototype to avoid an error.  */
18602 #ifdef __cplusplus
18603 extern "C"
18604 {
18605 #endif
18606 /* We use char because int might match the return type of a gcc2
18607    builtin and then its argument prototype would still apply.  */
18608 char $ac_func ();
18609 /* The GNU C library defines this for functions which it implements
18610     to always fail with ENOSYS.  Some functions are actually named
18611     something starting with __ and the normal name is an alias.  */
18612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18613 choke me
18614 #else
18615 char (*f) () = $ac_func;
18616 #endif
18617 #ifdef __cplusplus
18618 }
18619 #endif
18620
18621 int
18622 main ()
18623 {
18624 return f != $ac_func;
18625   ;
18626   return 0;
18627 }
18628 _ACEOF
18629 rm -f conftest.$ac_objext conftest$ac_exeext
18630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18631   (eval $ac_link) 2>&5
18632   ac_status=$?
18633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634   (exit $ac_status); } &&
18635          { ac_try='test -s conftest$ac_exeext'
18636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637   (eval $ac_try) 2>&5
18638   ac_status=$?
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); }; }; then
18641   eval "$as_ac_var=yes"
18642 else
18643   echo "$as_me: failed program was:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18645
18646 eval "$as_ac_var=no"
18647 fi
18648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18649 fi
18650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18652 if test `eval echo '${'$as_ac_var'}'` = yes; then
18653   cat >>confdefs.h <<_ACEOF
18654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18655 _ACEOF
18656
18657 fi
18658 done
18659
18660     fi
18661   fi
18662
18663
18664
18665   echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
18666 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
18667   if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
18668     if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
18669   echo $ECHO_N "(cached) $ECHO_C" >&6
18670 else
18671
18672
18673
18674       ac_ext=cc
18675 ac_cpp='$CXXCPP $CPPFLAGS'
18676 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18677 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18678 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18679
18680       cat >conftest.$ac_ext <<_ACEOF
18681 #line $LINENO "configure"
18682 /* confdefs.h.  */
18683 _ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h.  */
18687 #include <math.h>
18688 int
18689 main ()
18690 {
18691  ldexpl(0, 0);
18692   ;
18693   return 0;
18694 }
18695 _ACEOF
18696 rm -f conftest.$ac_objext
18697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18698   (eval $ac_compile) 2>&5
18699   ac_status=$?
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); } &&
18702          { ac_try='test -s conftest.$ac_objext'
18703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704   (eval $ac_try) 2>&5
18705   ac_status=$?
18706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707   (exit $ac_status); }; }; then
18708   glibcxx_cv_func_ldexpl_use=yes
18709 else
18710   echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18712
18713 glibcxx_cv_func_ldexpl_use=no
18714 fi
18715 rm -f conftest.$ac_objext conftest.$ac_ext
18716       ac_ext=c
18717 ac_cpp='$CPP $CPPFLAGS'
18718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18721
18722
18723 fi
18724
18725   fi
18726   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
18727 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
18728
18729   if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
18730
18731 for ac_func in ldexpl
18732 do
18733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18734 echo "$as_me:$LINENO: checking for $ac_func" >&5
18735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18736 if eval "test \"\${$as_ac_var+set}\" = set"; then
18737   echo $ECHO_N "(cached) $ECHO_C" >&6
18738 else
18739   cat >conftest.$ac_ext <<_ACEOF
18740 #line $LINENO "configure"
18741 /* confdefs.h.  */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h.  */
18746 /* System header to define __stub macros and hopefully few prototypes,
18747     which can conflict with char $ac_func (); below.
18748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18749     <limits.h> exists even on freestanding compilers.  */
18750 #ifdef __STDC__
18751 # include <limits.h>
18752 #else
18753 # include <assert.h>
18754 #endif
18755 /* Override any gcc2 internal prototype to avoid an error.  */
18756 #ifdef __cplusplus
18757 extern "C"
18758 {
18759 #endif
18760 /* We use char because int might match the return type of a gcc2
18761    builtin and then its argument prototype would still apply.  */
18762 char $ac_func ();
18763 /* The GNU C library defines this for functions which it implements
18764     to always fail with ENOSYS.  Some functions are actually named
18765     something starting with __ and the normal name is an alias.  */
18766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18767 choke me
18768 #else
18769 char (*f) () = $ac_func;
18770 #endif
18771 #ifdef __cplusplus
18772 }
18773 #endif
18774
18775 int
18776 main ()
18777 {
18778 return f != $ac_func;
18779   ;
18780   return 0;
18781 }
18782 _ACEOF
18783 rm -f conftest.$ac_objext conftest$ac_exeext
18784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18785   (eval $ac_link) 2>&5
18786   ac_status=$?
18787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788   (exit $ac_status); } &&
18789          { ac_try='test -s conftest$ac_exeext'
18790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791   (eval $ac_try) 2>&5
18792   ac_status=$?
18793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794   (exit $ac_status); }; }; then
18795   eval "$as_ac_var=yes"
18796 else
18797   echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18799
18800 eval "$as_ac_var=no"
18801 fi
18802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18803 fi
18804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18806 if test `eval echo '${'$as_ac_var'}'` = yes; then
18807   cat >>confdefs.h <<_ACEOF
18808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18809 _ACEOF
18810
18811 fi
18812 done
18813
18814   else
18815
18816   echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
18817 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
18818   if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
18819     if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822
18823
18824
18825       ac_ext=cc
18826 ac_cpp='$CXXCPP $CPPFLAGS'
18827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18830
18831       cat >conftest.$ac_ext <<_ACEOF
18832 #line $LINENO "configure"
18833 /* confdefs.h.  */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h.  */
18838 #include <math.h>
18839 int
18840 main ()
18841 {
18842  _ldexpl(0, 0);
18843   ;
18844   return 0;
18845 }
18846 _ACEOF
18847 rm -f conftest.$ac_objext
18848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18849   (eval $ac_compile) 2>&5
18850   ac_status=$?
18851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } &&
18853          { ac_try='test -s conftest.$ac_objext'
18854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855   (eval $ac_try) 2>&5
18856   ac_status=$?
18857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858   (exit $ac_status); }; }; then
18859   glibcxx_cv_func__ldexpl_use=yes
18860 else
18861   echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18863
18864 glibcxx_cv_func__ldexpl_use=no
18865 fi
18866 rm -f conftest.$ac_objext conftest.$ac_ext
18867       ac_ext=c
18868 ac_cpp='$CPP $CPPFLAGS'
18869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18872
18873
18874 fi
18875
18876   fi
18877   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
18878 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
18879
18880     if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
18881
18882 for ac_func in _ldexpl
18883 do
18884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18885 echo "$as_me:$LINENO: checking for $ac_func" >&5
18886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18887 if eval "test \"\${$as_ac_var+set}\" = set"; then
18888   echo $ECHO_N "(cached) $ECHO_C" >&6
18889 else
18890   cat >conftest.$ac_ext <<_ACEOF
18891 #line $LINENO "configure"
18892 /* confdefs.h.  */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h.  */
18897 /* System header to define __stub macros and hopefully few prototypes,
18898     which can conflict with char $ac_func (); below.
18899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18900     <limits.h> exists even on freestanding compilers.  */
18901 #ifdef __STDC__
18902 # include <limits.h>
18903 #else
18904 # include <assert.h>
18905 #endif
18906 /* Override any gcc2 internal prototype to avoid an error.  */
18907 #ifdef __cplusplus
18908 extern "C"
18909 {
18910 #endif
18911 /* We use char because int might match the return type of a gcc2
18912    builtin and then its argument prototype would still apply.  */
18913 char $ac_func ();
18914 /* The GNU C library defines this for functions which it implements
18915     to always fail with ENOSYS.  Some functions are actually named
18916     something starting with __ and the normal name is an alias.  */
18917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18918 choke me
18919 #else
18920 char (*f) () = $ac_func;
18921 #endif
18922 #ifdef __cplusplus
18923 }
18924 #endif
18925
18926 int
18927 main ()
18928 {
18929 return f != $ac_func;
18930   ;
18931   return 0;
18932 }
18933 _ACEOF
18934 rm -f conftest.$ac_objext conftest$ac_exeext
18935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18936   (eval $ac_link) 2>&5
18937   ac_status=$?
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); } &&
18940          { ac_try='test -s conftest$ac_exeext'
18941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942   (eval $ac_try) 2>&5
18943   ac_status=$?
18944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945   (exit $ac_status); }; }; then
18946   eval "$as_ac_var=yes"
18947 else
18948   echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18950
18951 eval "$as_ac_var=no"
18952 fi
18953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18954 fi
18955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18956 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18957 if test `eval echo '${'$as_ac_var'}'` = yes; then
18958   cat >>confdefs.h <<_ACEOF
18959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18960 _ACEOF
18961
18962 fi
18963 done
18964
18965     fi
18966   fi
18967
18968
18969
18970   echo "$as_me:$LINENO: checking for logl declaration" >&5
18971 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
18972   if test x${glibcxx_cv_func_logl_use+set} != xset; then
18973     if test "${glibcxx_cv_func_logl_use+set}" = set; then
18974   echo $ECHO_N "(cached) $ECHO_C" >&6
18975 else
18976
18977
18978
18979       ac_ext=cc
18980 ac_cpp='$CXXCPP $CPPFLAGS'
18981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18984
18985       cat >conftest.$ac_ext <<_ACEOF
18986 #line $LINENO "configure"
18987 /* confdefs.h.  */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h.  */
18992 #include <math.h>
18993                       #ifdef HAVE_IEEEFP_H
18994                       #include <ieeefp.h>
18995                       #endif
18996
18997 int
18998 main ()
18999 {
19000  logl(0);
19001   ;
19002   return 0;
19003 }
19004 _ACEOF
19005 rm -f conftest.$ac_objext
19006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19007   (eval $ac_compile) 2>&5
19008   ac_status=$?
19009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); } &&
19011          { ac_try='test -s conftest.$ac_objext'
19012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013   (eval $ac_try) 2>&5
19014   ac_status=$?
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); }; }; then
19017   glibcxx_cv_func_logl_use=yes
19018 else
19019   echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19021
19022 glibcxx_cv_func_logl_use=no
19023 fi
19024 rm -f conftest.$ac_objext conftest.$ac_ext
19025       ac_ext=c
19026 ac_cpp='$CPP $CPPFLAGS'
19027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19030
19031
19032 fi
19033
19034   fi
19035   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
19036 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
19037
19038   if test x$glibcxx_cv_func_logl_use = x"yes"; then
19039
19040 for ac_func in logl
19041 do
19042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19043 echo "$as_me:$LINENO: checking for $ac_func" >&5
19044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19045 if eval "test \"\${$as_ac_var+set}\" = set"; then
19046   echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048   cat >conftest.$ac_ext <<_ACEOF
19049 #line $LINENO "configure"
19050 /* confdefs.h.  */
19051 _ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h.  */
19055 /* System header to define __stub macros and hopefully few prototypes,
19056     which can conflict with char $ac_func (); below.
19057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19058     <limits.h> exists even on freestanding compilers.  */
19059 #ifdef __STDC__
19060 # include <limits.h>
19061 #else
19062 # include <assert.h>
19063 #endif
19064 /* Override any gcc2 internal prototype to avoid an error.  */
19065 #ifdef __cplusplus
19066 extern "C"
19067 {
19068 #endif
19069 /* We use char because int might match the return type of a gcc2
19070    builtin and then its argument prototype would still apply.  */
19071 char $ac_func ();
19072 /* The GNU C library defines this for functions which it implements
19073     to always fail with ENOSYS.  Some functions are actually named
19074     something starting with __ and the normal name is an alias.  */
19075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19076 choke me
19077 #else
19078 char (*f) () = $ac_func;
19079 #endif
19080 #ifdef __cplusplus
19081 }
19082 #endif
19083
19084 int
19085 main ()
19086 {
19087 return f != $ac_func;
19088   ;
19089   return 0;
19090 }
19091 _ACEOF
19092 rm -f conftest.$ac_objext conftest$ac_exeext
19093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19094   (eval $ac_link) 2>&5
19095   ac_status=$?
19096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097   (exit $ac_status); } &&
19098          { ac_try='test -s conftest$ac_exeext'
19099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100   (eval $ac_try) 2>&5
19101   ac_status=$?
19102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103   (exit $ac_status); }; }; then
19104   eval "$as_ac_var=yes"
19105 else
19106   echo "$as_me: failed program was:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19108
19109 eval "$as_ac_var=no"
19110 fi
19111 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19112 fi
19113 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19114 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19115 if test `eval echo '${'$as_ac_var'}'` = yes; then
19116   cat >>confdefs.h <<_ACEOF
19117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19118 _ACEOF
19119
19120 fi
19121 done
19122
19123   else
19124
19125   echo "$as_me:$LINENO: checking for _logl declaration" >&5
19126 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
19127   if test x${glibcxx_cv_func__logl_use+set} != xset; then
19128     if test "${glibcxx_cv_func__logl_use+set}" = set; then
19129   echo $ECHO_N "(cached) $ECHO_C" >&6
19130 else
19131
19132
19133
19134       ac_ext=cc
19135 ac_cpp='$CXXCPP $CPPFLAGS'
19136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19139
19140       cat >conftest.$ac_ext <<_ACEOF
19141 #line $LINENO "configure"
19142 /* confdefs.h.  */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h.  */
19147 #include <math.h>
19148                       #ifdef HAVE_IEEEFP_H
19149                       #include <ieeefp.h>
19150                       #endif
19151
19152 int
19153 main ()
19154 {
19155  _logl(0);
19156   ;
19157   return 0;
19158 }
19159 _ACEOF
19160 rm -f conftest.$ac_objext
19161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19162   (eval $ac_compile) 2>&5
19163   ac_status=$?
19164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); } &&
19166          { ac_try='test -s conftest.$ac_objext'
19167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168   (eval $ac_try) 2>&5
19169   ac_status=$?
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); }; }; then
19172   glibcxx_cv_func__logl_use=yes
19173 else
19174   echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19176
19177 glibcxx_cv_func__logl_use=no
19178 fi
19179 rm -f conftest.$ac_objext conftest.$ac_ext
19180       ac_ext=c
19181 ac_cpp='$CPP $CPPFLAGS'
19182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19185
19186
19187 fi
19188
19189   fi
19190   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
19191 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
19192
19193     if test x$glibcxx_cv_func__logl_use = x"yes"; then
19194
19195 for ac_func in _logl
19196 do
19197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19198 echo "$as_me:$LINENO: checking for $ac_func" >&5
19199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19200 if eval "test \"\${$as_ac_var+set}\" = set"; then
19201   echo $ECHO_N "(cached) $ECHO_C" >&6
19202 else
19203   cat >conftest.$ac_ext <<_ACEOF
19204 #line $LINENO "configure"
19205 /* confdefs.h.  */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h.  */
19210 /* System header to define __stub macros and hopefully few prototypes,
19211     which can conflict with char $ac_func (); below.
19212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19213     <limits.h> exists even on freestanding compilers.  */
19214 #ifdef __STDC__
19215 # include <limits.h>
19216 #else
19217 # include <assert.h>
19218 #endif
19219 /* Override any gcc2 internal prototype to avoid an error.  */
19220 #ifdef __cplusplus
19221 extern "C"
19222 {
19223 #endif
19224 /* We use char because int might match the return type of a gcc2
19225    builtin and then its argument prototype would still apply.  */
19226 char $ac_func ();
19227 /* The GNU C library defines this for functions which it implements
19228     to always fail with ENOSYS.  Some functions are actually named
19229     something starting with __ and the normal name is an alias.  */
19230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19231 choke me
19232 #else
19233 char (*f) () = $ac_func;
19234 #endif
19235 #ifdef __cplusplus
19236 }
19237 #endif
19238
19239 int
19240 main ()
19241 {
19242 return f != $ac_func;
19243   ;
19244   return 0;
19245 }
19246 _ACEOF
19247 rm -f conftest.$ac_objext conftest$ac_exeext
19248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19249   (eval $ac_link) 2>&5
19250   ac_status=$?
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); } &&
19253          { ac_try='test -s conftest$ac_exeext'
19254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255   (eval $ac_try) 2>&5
19256   ac_status=$?
19257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258   (exit $ac_status); }; }; then
19259   eval "$as_ac_var=yes"
19260 else
19261   echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19263
19264 eval "$as_ac_var=no"
19265 fi
19266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19267 fi
19268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19270 if test `eval echo '${'$as_ac_var'}'` = yes; then
19271   cat >>confdefs.h <<_ACEOF
19272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19273 _ACEOF
19274
19275 fi
19276 done
19277
19278     fi
19279   fi
19280
19281
19282
19283   echo "$as_me:$LINENO: checking for log10l declaration" >&5
19284 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
19285   if test x${glibcxx_cv_func_log10l_use+set} != xset; then
19286     if test "${glibcxx_cv_func_log10l_use+set}" = set; then
19287   echo $ECHO_N "(cached) $ECHO_C" >&6
19288 else
19289
19290
19291
19292       ac_ext=cc
19293 ac_cpp='$CXXCPP $CPPFLAGS'
19294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19297
19298       cat >conftest.$ac_ext <<_ACEOF
19299 #line $LINENO "configure"
19300 /* confdefs.h.  */
19301 _ACEOF
19302 cat confdefs.h >>conftest.$ac_ext
19303 cat >>conftest.$ac_ext <<_ACEOF
19304 /* end confdefs.h.  */
19305 #include <math.h>
19306                       #ifdef HAVE_IEEEFP_H
19307                       #include <ieeefp.h>
19308                       #endif
19309
19310 int
19311 main ()
19312 {
19313  log10l(0);
19314   ;
19315   return 0;
19316 }
19317 _ACEOF
19318 rm -f conftest.$ac_objext
19319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19320   (eval $ac_compile) 2>&5
19321   ac_status=$?
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); } &&
19324          { ac_try='test -s conftest.$ac_objext'
19325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326   (eval $ac_try) 2>&5
19327   ac_status=$?
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); }; }; then
19330   glibcxx_cv_func_log10l_use=yes
19331 else
19332   echo "$as_me: failed program was:" >&5
19333 sed 's/^/| /' conftest.$ac_ext >&5
19334
19335 glibcxx_cv_func_log10l_use=no
19336 fi
19337 rm -f conftest.$ac_objext conftest.$ac_ext
19338       ac_ext=c
19339 ac_cpp='$CPP $CPPFLAGS'
19340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19343
19344
19345 fi
19346
19347   fi
19348   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
19349 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
19350
19351   if test x$glibcxx_cv_func_log10l_use = x"yes"; then
19352
19353 for ac_func in log10l
19354 do
19355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19356 echo "$as_me:$LINENO: checking for $ac_func" >&5
19357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19358 if eval "test \"\${$as_ac_var+set}\" = set"; then
19359   echo $ECHO_N "(cached) $ECHO_C" >&6
19360 else
19361   cat >conftest.$ac_ext <<_ACEOF
19362 #line $LINENO "configure"
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368 /* System header to define __stub macros and hopefully few prototypes,
19369     which can conflict with char $ac_func (); below.
19370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19371     <limits.h> exists even on freestanding compilers.  */
19372 #ifdef __STDC__
19373 # include <limits.h>
19374 #else
19375 # include <assert.h>
19376 #endif
19377 /* Override any gcc2 internal prototype to avoid an error.  */
19378 #ifdef __cplusplus
19379 extern "C"
19380 {
19381 #endif
19382 /* We use char because int might match the return type of a gcc2
19383    builtin and then its argument prototype would still apply.  */
19384 char $ac_func ();
19385 /* The GNU C library defines this for functions which it implements
19386     to always fail with ENOSYS.  Some functions are actually named
19387     something starting with __ and the normal name is an alias.  */
19388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19389 choke me
19390 #else
19391 char (*f) () = $ac_func;
19392 #endif
19393 #ifdef __cplusplus
19394 }
19395 #endif
19396
19397 int
19398 main ()
19399 {
19400 return f != $ac_func;
19401   ;
19402   return 0;
19403 }
19404 _ACEOF
19405 rm -f conftest.$ac_objext conftest$ac_exeext
19406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19407   (eval $ac_link) 2>&5
19408   ac_status=$?
19409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410   (exit $ac_status); } &&
19411          { ac_try='test -s conftest$ac_exeext'
19412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413   (eval $ac_try) 2>&5
19414   ac_status=$?
19415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416   (exit $ac_status); }; }; then
19417   eval "$as_ac_var=yes"
19418 else
19419   echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.$ac_ext >&5
19421
19422 eval "$as_ac_var=no"
19423 fi
19424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19425 fi
19426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19428 if test `eval echo '${'$as_ac_var'}'` = yes; then
19429   cat >>confdefs.h <<_ACEOF
19430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19431 _ACEOF
19432
19433 fi
19434 done
19435
19436   else
19437
19438   echo "$as_me:$LINENO: checking for _log10l declaration" >&5
19439 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
19440   if test x${glibcxx_cv_func__log10l_use+set} != xset; then
19441     if test "${glibcxx_cv_func__log10l_use+set}" = set; then
19442   echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19444
19445
19446
19447       ac_ext=cc
19448 ac_cpp='$CXXCPP $CPPFLAGS'
19449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19452
19453       cat >conftest.$ac_ext <<_ACEOF
19454 #line $LINENO "configure"
19455 /* confdefs.h.  */
19456 _ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h.  */
19460 #include <math.h>
19461                       #ifdef HAVE_IEEEFP_H
19462                       #include <ieeefp.h>
19463                       #endif
19464
19465 int
19466 main ()
19467 {
19468  _log10l(0);
19469   ;
19470   return 0;
19471 }
19472 _ACEOF
19473 rm -f conftest.$ac_objext
19474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19475   (eval $ac_compile) 2>&5
19476   ac_status=$?
19477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478   (exit $ac_status); } &&
19479          { ac_try='test -s conftest.$ac_objext'
19480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481   (eval $ac_try) 2>&5
19482   ac_status=$?
19483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484   (exit $ac_status); }; }; then
19485   glibcxx_cv_func__log10l_use=yes
19486 else
19487   echo "$as_me: failed program was:" >&5
19488 sed 's/^/| /' conftest.$ac_ext >&5
19489
19490 glibcxx_cv_func__log10l_use=no
19491 fi
19492 rm -f conftest.$ac_objext conftest.$ac_ext
19493       ac_ext=c
19494 ac_cpp='$CPP $CPPFLAGS'
19495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19498
19499
19500 fi
19501
19502   fi
19503   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
19504 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
19505
19506     if test x$glibcxx_cv_func__log10l_use = x"yes"; then
19507
19508 for ac_func in _log10l
19509 do
19510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19511 echo "$as_me:$LINENO: checking for $ac_func" >&5
19512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19513 if eval "test \"\${$as_ac_var+set}\" = set"; then
19514   echo $ECHO_N "(cached) $ECHO_C" >&6
19515 else
19516   cat >conftest.$ac_ext <<_ACEOF
19517 #line $LINENO "configure"
19518 /* confdefs.h.  */
19519 _ACEOF
19520 cat confdefs.h >>conftest.$ac_ext
19521 cat >>conftest.$ac_ext <<_ACEOF
19522 /* end confdefs.h.  */
19523 /* System header to define __stub macros and hopefully few prototypes,
19524     which can conflict with char $ac_func (); below.
19525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19526     <limits.h> exists even on freestanding compilers.  */
19527 #ifdef __STDC__
19528 # include <limits.h>
19529 #else
19530 # include <assert.h>
19531 #endif
19532 /* Override any gcc2 internal prototype to avoid an error.  */
19533 #ifdef __cplusplus
19534 extern "C"
19535 {
19536 #endif
19537 /* We use char because int might match the return type of a gcc2
19538    builtin and then its argument prototype would still apply.  */
19539 char $ac_func ();
19540 /* The GNU C library defines this for functions which it implements
19541     to always fail with ENOSYS.  Some functions are actually named
19542     something starting with __ and the normal name is an alias.  */
19543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19544 choke me
19545 #else
19546 char (*f) () = $ac_func;
19547 #endif
19548 #ifdef __cplusplus
19549 }
19550 #endif
19551
19552 int
19553 main ()
19554 {
19555 return f != $ac_func;
19556   ;
19557   return 0;
19558 }
19559 _ACEOF
19560 rm -f conftest.$ac_objext conftest$ac_exeext
19561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19562   (eval $ac_link) 2>&5
19563   ac_status=$?
19564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565   (exit $ac_status); } &&
19566          { ac_try='test -s conftest$ac_exeext'
19567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568   (eval $ac_try) 2>&5
19569   ac_status=$?
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); }; }; then
19572   eval "$as_ac_var=yes"
19573 else
19574   echo "$as_me: failed program was:" >&5
19575 sed 's/^/| /' conftest.$ac_ext >&5
19576
19577 eval "$as_ac_var=no"
19578 fi
19579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19580 fi
19581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19583 if test `eval echo '${'$as_ac_var'}'` = yes; then
19584   cat >>confdefs.h <<_ACEOF
19585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19586 _ACEOF
19587
19588 fi
19589 done
19590
19591     fi
19592   fi
19593
19594
19595
19596   echo "$as_me:$LINENO: checking for modfl declaration" >&5
19597 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
19598   if test x${glibcxx_cv_func_modfl_use+set} != xset; then
19599     if test "${glibcxx_cv_func_modfl_use+set}" = set; then
19600   echo $ECHO_N "(cached) $ECHO_C" >&6
19601 else
19602
19603
19604
19605       ac_ext=cc
19606 ac_cpp='$CXXCPP $CPPFLAGS'
19607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19610
19611       cat >conftest.$ac_ext <<_ACEOF
19612 #line $LINENO "configure"
19613 /* confdefs.h.  */
19614 _ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h.  */
19618 #include <math.h>
19619 int
19620 main ()
19621 {
19622  modfl(0, 0);
19623   ;
19624   return 0;
19625 }
19626 _ACEOF
19627 rm -f conftest.$ac_objext
19628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19629   (eval $ac_compile) 2>&5
19630   ac_status=$?
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); } &&
19633          { ac_try='test -s conftest.$ac_objext'
19634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635   (eval $ac_try) 2>&5
19636   ac_status=$?
19637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638   (exit $ac_status); }; }; then
19639   glibcxx_cv_func_modfl_use=yes
19640 else
19641   echo "$as_me: failed program was:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19643
19644 glibcxx_cv_func_modfl_use=no
19645 fi
19646 rm -f conftest.$ac_objext conftest.$ac_ext
19647       ac_ext=c
19648 ac_cpp='$CPP $CPPFLAGS'
19649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19652
19653
19654 fi
19655
19656   fi
19657   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
19658 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
19659
19660   if test x$glibcxx_cv_func_modfl_use = x"yes"; then
19661
19662 for ac_func in modfl
19663 do
19664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19665 echo "$as_me:$LINENO: checking for $ac_func" >&5
19666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19667 if eval "test \"\${$as_ac_var+set}\" = set"; then
19668   echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670   cat >conftest.$ac_ext <<_ACEOF
19671 #line $LINENO "configure"
19672 /* confdefs.h.  */
19673 _ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h.  */
19677 /* System header to define __stub macros and hopefully few prototypes,
19678     which can conflict with char $ac_func (); below.
19679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19680     <limits.h> exists even on freestanding compilers.  */
19681 #ifdef __STDC__
19682 # include <limits.h>
19683 #else
19684 # include <assert.h>
19685 #endif
19686 /* Override any gcc2 internal prototype to avoid an error.  */
19687 #ifdef __cplusplus
19688 extern "C"
19689 {
19690 #endif
19691 /* We use char because int might match the return type of a gcc2
19692    builtin and then its argument prototype would still apply.  */
19693 char $ac_func ();
19694 /* The GNU C library defines this for functions which it implements
19695     to always fail with ENOSYS.  Some functions are actually named
19696     something starting with __ and the normal name is an alias.  */
19697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19698 choke me
19699 #else
19700 char (*f) () = $ac_func;
19701 #endif
19702 #ifdef __cplusplus
19703 }
19704 #endif
19705
19706 int
19707 main ()
19708 {
19709 return f != $ac_func;
19710   ;
19711   return 0;
19712 }
19713 _ACEOF
19714 rm -f conftest.$ac_objext conftest$ac_exeext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19716   (eval $ac_link) 2>&5
19717   ac_status=$?
19718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719   (exit $ac_status); } &&
19720          { ac_try='test -s conftest$ac_exeext'
19721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722   (eval $ac_try) 2>&5
19723   ac_status=$?
19724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725   (exit $ac_status); }; }; then
19726   eval "$as_ac_var=yes"
19727 else
19728   echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19730
19731 eval "$as_ac_var=no"
19732 fi
19733 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19734 fi
19735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19737 if test `eval echo '${'$as_ac_var'}'` = yes; then
19738   cat >>confdefs.h <<_ACEOF
19739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19740 _ACEOF
19741
19742 fi
19743 done
19744
19745   else
19746
19747   echo "$as_me:$LINENO: checking for _modfl declaration" >&5
19748 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
19749   if test x${glibcxx_cv_func__modfl_use+set} != xset; then
19750     if test "${glibcxx_cv_func__modfl_use+set}" = set; then
19751   echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753
19754
19755
19756       ac_ext=cc
19757 ac_cpp='$CXXCPP $CPPFLAGS'
19758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19761
19762       cat >conftest.$ac_ext <<_ACEOF
19763 #line $LINENO "configure"
19764 /* confdefs.h.  */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h.  */
19769 #include <math.h>
19770 int
19771 main ()
19772 {
19773  _modfl(0, 0);
19774   ;
19775   return 0;
19776 }
19777 _ACEOF
19778 rm -f conftest.$ac_objext
19779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19780   (eval $ac_compile) 2>&5
19781   ac_status=$?
19782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783   (exit $ac_status); } &&
19784          { ac_try='test -s conftest.$ac_objext'
19785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786   (eval $ac_try) 2>&5
19787   ac_status=$?
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); }; }; then
19790   glibcxx_cv_func__modfl_use=yes
19791 else
19792   echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19794
19795 glibcxx_cv_func__modfl_use=no
19796 fi
19797 rm -f conftest.$ac_objext conftest.$ac_ext
19798       ac_ext=c
19799 ac_cpp='$CPP $CPPFLAGS'
19800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19803
19804
19805 fi
19806
19807   fi
19808   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
19809 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
19810
19811     if test x$glibcxx_cv_func__modfl_use = x"yes"; then
19812
19813 for ac_func in _modfl
19814 do
19815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19816 echo "$as_me:$LINENO: checking for $ac_func" >&5
19817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19818 if eval "test \"\${$as_ac_var+set}\" = set"; then
19819   echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821   cat >conftest.$ac_ext <<_ACEOF
19822 #line $LINENO "configure"
19823 /* confdefs.h.  */
19824 _ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h.  */
19828 /* System header to define __stub macros and hopefully few prototypes,
19829     which can conflict with char $ac_func (); below.
19830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19831     <limits.h> exists even on freestanding compilers.  */
19832 #ifdef __STDC__
19833 # include <limits.h>
19834 #else
19835 # include <assert.h>
19836 #endif
19837 /* Override any gcc2 internal prototype to avoid an error.  */
19838 #ifdef __cplusplus
19839 extern "C"
19840 {
19841 #endif
19842 /* We use char because int might match the return type of a gcc2
19843    builtin and then its argument prototype would still apply.  */
19844 char $ac_func ();
19845 /* The GNU C library defines this for functions which it implements
19846     to always fail with ENOSYS.  Some functions are actually named
19847     something starting with __ and the normal name is an alias.  */
19848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19849 choke me
19850 #else
19851 char (*f) () = $ac_func;
19852 #endif
19853 #ifdef __cplusplus
19854 }
19855 #endif
19856
19857 int
19858 main ()
19859 {
19860 return f != $ac_func;
19861   ;
19862   return 0;
19863 }
19864 _ACEOF
19865 rm -f conftest.$ac_objext conftest$ac_exeext
19866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19867   (eval $ac_link) 2>&5
19868   ac_status=$?
19869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870   (exit $ac_status); } &&
19871          { ac_try='test -s conftest$ac_exeext'
19872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873   (eval $ac_try) 2>&5
19874   ac_status=$?
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); }; }; then
19877   eval "$as_ac_var=yes"
19878 else
19879   echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19881
19882 eval "$as_ac_var=no"
19883 fi
19884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19885 fi
19886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19888 if test `eval echo '${'$as_ac_var'}'` = yes; then
19889   cat >>confdefs.h <<_ACEOF
19890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19891 _ACEOF
19892
19893 fi
19894 done
19895
19896     fi
19897   fi
19898
19899
19900
19901   echo "$as_me:$LINENO: checking for powl declaration" >&5
19902 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
19903   if test x${glibcxx_cv_func_powl_use+set} != xset; then
19904     if test "${glibcxx_cv_func_powl_use+set}" = set; then
19905   echo $ECHO_N "(cached) $ECHO_C" >&6
19906 else
19907
19908
19909
19910       ac_ext=cc
19911 ac_cpp='$CXXCPP $CPPFLAGS'
19912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19915
19916       cat >conftest.$ac_ext <<_ACEOF
19917 #line $LINENO "configure"
19918 /* confdefs.h.  */
19919 _ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h.  */
19923 #include <math.h>
19924 int
19925 main ()
19926 {
19927  powl(0, 0);
19928   ;
19929   return 0;
19930 }
19931 _ACEOF
19932 rm -f conftest.$ac_objext
19933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19934   (eval $ac_compile) 2>&5
19935   ac_status=$?
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); } &&
19938          { ac_try='test -s conftest.$ac_objext'
19939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940   (eval $ac_try) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; }; then
19944   glibcxx_cv_func_powl_use=yes
19945 else
19946   echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19948
19949 glibcxx_cv_func_powl_use=no
19950 fi
19951 rm -f conftest.$ac_objext conftest.$ac_ext
19952       ac_ext=c
19953 ac_cpp='$CPP $CPPFLAGS'
19954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19957
19958
19959 fi
19960
19961   fi
19962   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
19963 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
19964
19965   if test x$glibcxx_cv_func_powl_use = x"yes"; then
19966
19967 for ac_func in powl
19968 do
19969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19970 echo "$as_me:$LINENO: checking for $ac_func" >&5
19971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19972 if eval "test \"\${$as_ac_var+set}\" = set"; then
19973   echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975   cat >conftest.$ac_ext <<_ACEOF
19976 #line $LINENO "configure"
19977 /* confdefs.h.  */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h.  */
19982 /* System header to define __stub macros and hopefully few prototypes,
19983     which can conflict with char $ac_func (); below.
19984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19985     <limits.h> exists even on freestanding compilers.  */
19986 #ifdef __STDC__
19987 # include <limits.h>
19988 #else
19989 # include <assert.h>
19990 #endif
19991 /* Override any gcc2 internal prototype to avoid an error.  */
19992 #ifdef __cplusplus
19993 extern "C"
19994 {
19995 #endif
19996 /* We use char because int might match the return type of a gcc2
19997    builtin and then its argument prototype would still apply.  */
19998 char $ac_func ();
19999 /* The GNU C library defines this for functions which it implements
20000     to always fail with ENOSYS.  Some functions are actually named
20001     something starting with __ and the normal name is an alias.  */
20002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20003 choke me
20004 #else
20005 char (*f) () = $ac_func;
20006 #endif
20007 #ifdef __cplusplus
20008 }
20009 #endif
20010
20011 int
20012 main ()
20013 {
20014 return f != $ac_func;
20015   ;
20016   return 0;
20017 }
20018 _ACEOF
20019 rm -f conftest.$ac_objext conftest$ac_exeext
20020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20021   (eval $ac_link) 2>&5
20022   ac_status=$?
20023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024   (exit $ac_status); } &&
20025          { ac_try='test -s conftest$ac_exeext'
20026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027   (eval $ac_try) 2>&5
20028   ac_status=$?
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); }; }; then
20031   eval "$as_ac_var=yes"
20032 else
20033   echo "$as_me: failed program was:" >&5
20034 sed 's/^/| /' conftest.$ac_ext >&5
20035
20036 eval "$as_ac_var=no"
20037 fi
20038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20039 fi
20040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20042 if test `eval echo '${'$as_ac_var'}'` = yes; then
20043   cat >>confdefs.h <<_ACEOF
20044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20045 _ACEOF
20046
20047 fi
20048 done
20049
20050   else
20051
20052   echo "$as_me:$LINENO: checking for _powl declaration" >&5
20053 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
20054   if test x${glibcxx_cv_func__powl_use+set} != xset; then
20055     if test "${glibcxx_cv_func__powl_use+set}" = set; then
20056   echo $ECHO_N "(cached) $ECHO_C" >&6
20057 else
20058
20059
20060
20061       ac_ext=cc
20062 ac_cpp='$CXXCPP $CPPFLAGS'
20063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20066
20067       cat >conftest.$ac_ext <<_ACEOF
20068 #line $LINENO "configure"
20069 /* confdefs.h.  */
20070 _ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h.  */
20074 #include <math.h>
20075 int
20076 main ()
20077 {
20078  _powl(0, 0);
20079   ;
20080   return 0;
20081 }
20082 _ACEOF
20083 rm -f conftest.$ac_objext
20084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20085   (eval $ac_compile) 2>&5
20086   ac_status=$?
20087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088   (exit $ac_status); } &&
20089          { ac_try='test -s conftest.$ac_objext'
20090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091   (eval $ac_try) 2>&5
20092   ac_status=$?
20093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094   (exit $ac_status); }; }; then
20095   glibcxx_cv_func__powl_use=yes
20096 else
20097   echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20099
20100 glibcxx_cv_func__powl_use=no
20101 fi
20102 rm -f conftest.$ac_objext conftest.$ac_ext
20103       ac_ext=c
20104 ac_cpp='$CPP $CPPFLAGS'
20105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20108
20109
20110 fi
20111
20112   fi
20113   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
20114 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
20115
20116     if test x$glibcxx_cv_func__powl_use = x"yes"; then
20117
20118 for ac_func in _powl
20119 do
20120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20121 echo "$as_me:$LINENO: checking for $ac_func" >&5
20122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20123 if eval "test \"\${$as_ac_var+set}\" = set"; then
20124   echo $ECHO_N "(cached) $ECHO_C" >&6
20125 else
20126   cat >conftest.$ac_ext <<_ACEOF
20127 #line $LINENO "configure"
20128 /* confdefs.h.  */
20129 _ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h.  */
20133 /* System header to define __stub macros and hopefully few prototypes,
20134     which can conflict with char $ac_func (); below.
20135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20136     <limits.h> exists even on freestanding compilers.  */
20137 #ifdef __STDC__
20138 # include <limits.h>
20139 #else
20140 # include <assert.h>
20141 #endif
20142 /* Override any gcc2 internal prototype to avoid an error.  */
20143 #ifdef __cplusplus
20144 extern "C"
20145 {
20146 #endif
20147 /* We use char because int might match the return type of a gcc2
20148    builtin and then its argument prototype would still apply.  */
20149 char $ac_func ();
20150 /* The GNU C library defines this for functions which it implements
20151     to always fail with ENOSYS.  Some functions are actually named
20152     something starting with __ and the normal name is an alias.  */
20153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20154 choke me
20155 #else
20156 char (*f) () = $ac_func;
20157 #endif
20158 #ifdef __cplusplus
20159 }
20160 #endif
20161
20162 int
20163 main ()
20164 {
20165 return f != $ac_func;
20166   ;
20167   return 0;
20168 }
20169 _ACEOF
20170 rm -f conftest.$ac_objext conftest$ac_exeext
20171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20172   (eval $ac_link) 2>&5
20173   ac_status=$?
20174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175   (exit $ac_status); } &&
20176          { ac_try='test -s conftest$ac_exeext'
20177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178   (eval $ac_try) 2>&5
20179   ac_status=$?
20180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181   (exit $ac_status); }; }; then
20182   eval "$as_ac_var=yes"
20183 else
20184   echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20186
20187 eval "$as_ac_var=no"
20188 fi
20189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20190 fi
20191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20192 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20193 if test `eval echo '${'$as_ac_var'}'` = yes; then
20194   cat >>confdefs.h <<_ACEOF
20195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20196 _ACEOF
20197
20198 fi
20199 done
20200
20201     fi
20202   fi
20203
20204
20205
20206   echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
20207 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
20208   if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
20209     if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
20210   echo $ECHO_N "(cached) $ECHO_C" >&6
20211 else
20212
20213
20214
20215       ac_ext=cc
20216 ac_cpp='$CXXCPP $CPPFLAGS'
20217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20220
20221       cat >conftest.$ac_ext <<_ACEOF
20222 #line $LINENO "configure"
20223 /* confdefs.h.  */
20224 _ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h.  */
20228 #include <math.h>
20229                       #ifdef HAVE_IEEEFP_H
20230                       #include <ieeefp.h>
20231                       #endif
20232
20233 int
20234 main ()
20235 {
20236  sqrtl(0);
20237   ;
20238   return 0;
20239 }
20240 _ACEOF
20241 rm -f conftest.$ac_objext
20242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20243   (eval $ac_compile) 2>&5
20244   ac_status=$?
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); } &&
20247          { ac_try='test -s conftest.$ac_objext'
20248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249   (eval $ac_try) 2>&5
20250   ac_status=$?
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); }; }; then
20253   glibcxx_cv_func_sqrtl_use=yes
20254 else
20255   echo "$as_me: failed program was:" >&5
20256 sed 's/^/| /' conftest.$ac_ext >&5
20257
20258 glibcxx_cv_func_sqrtl_use=no
20259 fi
20260 rm -f conftest.$ac_objext conftest.$ac_ext
20261       ac_ext=c
20262 ac_cpp='$CPP $CPPFLAGS'
20263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20266
20267
20268 fi
20269
20270   fi
20271   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
20272 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
20273
20274   if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
20275
20276 for ac_func in sqrtl
20277 do
20278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20279 echo "$as_me:$LINENO: checking for $ac_func" >&5
20280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20281 if eval "test \"\${$as_ac_var+set}\" = set"; then
20282   echo $ECHO_N "(cached) $ECHO_C" >&6
20283 else
20284   cat >conftest.$ac_ext <<_ACEOF
20285 #line $LINENO "configure"
20286 /* confdefs.h.  */
20287 _ACEOF
20288 cat confdefs.h >>conftest.$ac_ext
20289 cat >>conftest.$ac_ext <<_ACEOF
20290 /* end confdefs.h.  */
20291 /* System header to define __stub macros and hopefully few prototypes,
20292     which can conflict with char $ac_func (); below.
20293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20294     <limits.h> exists even on freestanding compilers.  */
20295 #ifdef __STDC__
20296 # include <limits.h>
20297 #else
20298 # include <assert.h>
20299 #endif
20300 /* Override any gcc2 internal prototype to avoid an error.  */
20301 #ifdef __cplusplus
20302 extern "C"
20303 {
20304 #endif
20305 /* We use char because int might match the return type of a gcc2
20306    builtin and then its argument prototype would still apply.  */
20307 char $ac_func ();
20308 /* The GNU C library defines this for functions which it implements
20309     to always fail with ENOSYS.  Some functions are actually named
20310     something starting with __ and the normal name is an alias.  */
20311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20312 choke me
20313 #else
20314 char (*f) () = $ac_func;
20315 #endif
20316 #ifdef __cplusplus
20317 }
20318 #endif
20319
20320 int
20321 main ()
20322 {
20323 return f != $ac_func;
20324   ;
20325   return 0;
20326 }
20327 _ACEOF
20328 rm -f conftest.$ac_objext conftest$ac_exeext
20329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20330   (eval $ac_link) 2>&5
20331   ac_status=$?
20332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); } &&
20334          { ac_try='test -s conftest$ac_exeext'
20335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20336   (eval $ac_try) 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); }; }; then
20340   eval "$as_ac_var=yes"
20341 else
20342   echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 eval "$as_ac_var=no"
20346 fi
20347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20348 fi
20349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20350 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20351 if test `eval echo '${'$as_ac_var'}'` = yes; then
20352   cat >>confdefs.h <<_ACEOF
20353 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20354 _ACEOF
20355
20356 fi
20357 done
20358
20359   else
20360
20361   echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
20362 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
20363   if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
20364     if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
20365   echo $ECHO_N "(cached) $ECHO_C" >&6
20366 else
20367
20368
20369
20370       ac_ext=cc
20371 ac_cpp='$CXXCPP $CPPFLAGS'
20372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20375
20376       cat >conftest.$ac_ext <<_ACEOF
20377 #line $LINENO "configure"
20378 /* confdefs.h.  */
20379 _ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h.  */
20383 #include <math.h>
20384                       #ifdef HAVE_IEEEFP_H
20385                       #include <ieeefp.h>
20386                       #endif
20387
20388 int
20389 main ()
20390 {
20391  _sqrtl(0);
20392   ;
20393   return 0;
20394 }
20395 _ACEOF
20396 rm -f conftest.$ac_objext
20397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20398   (eval $ac_compile) 2>&5
20399   ac_status=$?
20400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401   (exit $ac_status); } &&
20402          { ac_try='test -s conftest.$ac_objext'
20403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404   (eval $ac_try) 2>&5
20405   ac_status=$?
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); }; }; then
20408   glibcxx_cv_func__sqrtl_use=yes
20409 else
20410   echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413 glibcxx_cv_func__sqrtl_use=no
20414 fi
20415 rm -f conftest.$ac_objext conftest.$ac_ext
20416       ac_ext=c
20417 ac_cpp='$CPP $CPPFLAGS'
20418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20421
20422
20423 fi
20424
20425   fi
20426   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
20427 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
20428
20429     if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
20430
20431 for ac_func in _sqrtl
20432 do
20433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20434 echo "$as_me:$LINENO: checking for $ac_func" >&5
20435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20436 if eval "test \"\${$as_ac_var+set}\" = set"; then
20437   echo $ECHO_N "(cached) $ECHO_C" >&6
20438 else
20439   cat >conftest.$ac_ext <<_ACEOF
20440 #line $LINENO "configure"
20441 /* confdefs.h.  */
20442 _ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h.  */
20446 /* System header to define __stub macros and hopefully few prototypes,
20447     which can conflict with char $ac_func (); below.
20448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20449     <limits.h> exists even on freestanding compilers.  */
20450 #ifdef __STDC__
20451 # include <limits.h>
20452 #else
20453 # include <assert.h>
20454 #endif
20455 /* Override any gcc2 internal prototype to avoid an error.  */
20456 #ifdef __cplusplus
20457 extern "C"
20458 {
20459 #endif
20460 /* We use char because int might match the return type of a gcc2
20461    builtin and then its argument prototype would still apply.  */
20462 char $ac_func ();
20463 /* The GNU C library defines this for functions which it implements
20464     to always fail with ENOSYS.  Some functions are actually named
20465     something starting with __ and the normal name is an alias.  */
20466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20467 choke me
20468 #else
20469 char (*f) () = $ac_func;
20470 #endif
20471 #ifdef __cplusplus
20472 }
20473 #endif
20474
20475 int
20476 main ()
20477 {
20478 return f != $ac_func;
20479   ;
20480   return 0;
20481 }
20482 _ACEOF
20483 rm -f conftest.$ac_objext conftest$ac_exeext
20484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20485   (eval $ac_link) 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); } &&
20489          { ac_try='test -s conftest$ac_exeext'
20490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491   (eval $ac_try) 2>&5
20492   ac_status=$?
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); }; }; then
20495   eval "$as_ac_var=yes"
20496 else
20497   echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20499
20500 eval "$as_ac_var=no"
20501 fi
20502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20503 fi
20504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20506 if test `eval echo '${'$as_ac_var'}'` = yes; then
20507   cat >>confdefs.h <<_ACEOF
20508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20509 _ACEOF
20510
20511 fi
20512 done
20513
20514     fi
20515   fi
20516
20517
20518
20519   echo "$as_me:$LINENO: checking for sincosl declaration" >&5
20520 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
20521   if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
20522     if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
20523   echo $ECHO_N "(cached) $ECHO_C" >&6
20524 else
20525
20526
20527
20528       ac_ext=cc
20529 ac_cpp='$CXXCPP $CPPFLAGS'
20530 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20531 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20532 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20533
20534       cat >conftest.$ac_ext <<_ACEOF
20535 #line $LINENO "configure"
20536 /* confdefs.h.  */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h.  */
20541 #include <math.h>
20542 int
20543 main ()
20544 {
20545  sincosl(0, 0, 0);
20546   ;
20547   return 0;
20548 }
20549 _ACEOF
20550 rm -f conftest.$ac_objext
20551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20552   (eval $ac_compile) 2>&5
20553   ac_status=$?
20554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555   (exit $ac_status); } &&
20556          { ac_try='test -s conftest.$ac_objext'
20557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558   (eval $ac_try) 2>&5
20559   ac_status=$?
20560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561   (exit $ac_status); }; }; then
20562   glibcxx_cv_func_sincosl_use=yes
20563 else
20564   echo "$as_me: failed program was:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20566
20567 glibcxx_cv_func_sincosl_use=no
20568 fi
20569 rm -f conftest.$ac_objext conftest.$ac_ext
20570       ac_ext=c
20571 ac_cpp='$CPP $CPPFLAGS'
20572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20575
20576
20577 fi
20578
20579   fi
20580   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
20581 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
20582
20583   if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
20584
20585 for ac_func in sincosl
20586 do
20587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20588 echo "$as_me:$LINENO: checking for $ac_func" >&5
20589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20590 if eval "test \"\${$as_ac_var+set}\" = set"; then
20591   echo $ECHO_N "(cached) $ECHO_C" >&6
20592 else
20593   cat >conftest.$ac_ext <<_ACEOF
20594 #line $LINENO "configure"
20595 /* confdefs.h.  */
20596 _ACEOF
20597 cat confdefs.h >>conftest.$ac_ext
20598 cat >>conftest.$ac_ext <<_ACEOF
20599 /* end confdefs.h.  */
20600 /* System header to define __stub macros and hopefully few prototypes,
20601     which can conflict with char $ac_func (); below.
20602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20603     <limits.h> exists even on freestanding compilers.  */
20604 #ifdef __STDC__
20605 # include <limits.h>
20606 #else
20607 # include <assert.h>
20608 #endif
20609 /* Override any gcc2 internal prototype to avoid an error.  */
20610 #ifdef __cplusplus
20611 extern "C"
20612 {
20613 #endif
20614 /* We use char because int might match the return type of a gcc2
20615    builtin and then its argument prototype would still apply.  */
20616 char $ac_func ();
20617 /* The GNU C library defines this for functions which it implements
20618     to always fail with ENOSYS.  Some functions are actually named
20619     something starting with __ and the normal name is an alias.  */
20620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20621 choke me
20622 #else
20623 char (*f) () = $ac_func;
20624 #endif
20625 #ifdef __cplusplus
20626 }
20627 #endif
20628
20629 int
20630 main ()
20631 {
20632 return f != $ac_func;
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20639   (eval $ac_link) 2>&5
20640   ac_status=$?
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); } &&
20643          { ac_try='test -s conftest$ac_exeext'
20644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645   (eval $ac_try) 2>&5
20646   ac_status=$?
20647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648   (exit $ac_status); }; }; then
20649   eval "$as_ac_var=yes"
20650 else
20651   echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20653
20654 eval "$as_ac_var=no"
20655 fi
20656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20657 fi
20658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20660 if test `eval echo '${'$as_ac_var'}'` = yes; then
20661   cat >>confdefs.h <<_ACEOF
20662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20663 _ACEOF
20664
20665 fi
20666 done
20667
20668   else
20669
20670   echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
20671 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
20672   if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
20673     if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
20674   echo $ECHO_N "(cached) $ECHO_C" >&6
20675 else
20676
20677
20678
20679       ac_ext=cc
20680 ac_cpp='$CXXCPP $CPPFLAGS'
20681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20684
20685       cat >conftest.$ac_ext <<_ACEOF
20686 #line $LINENO "configure"
20687 /* confdefs.h.  */
20688 _ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h.  */
20692 #include <math.h>
20693 int
20694 main ()
20695 {
20696  _sincosl(0, 0, 0);
20697   ;
20698   return 0;
20699 }
20700 _ACEOF
20701 rm -f conftest.$ac_objext
20702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20703   (eval $ac_compile) 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); } &&
20707          { ac_try='test -s conftest.$ac_objext'
20708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709   (eval $ac_try) 2>&5
20710   ac_status=$?
20711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712   (exit $ac_status); }; }; then
20713   glibcxx_cv_func__sincosl_use=yes
20714 else
20715   echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20717
20718 glibcxx_cv_func__sincosl_use=no
20719 fi
20720 rm -f conftest.$ac_objext conftest.$ac_ext
20721       ac_ext=c
20722 ac_cpp='$CPP $CPPFLAGS'
20723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20726
20727
20728 fi
20729
20730   fi
20731   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
20732 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
20733
20734     if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
20735
20736 for ac_func in _sincosl
20737 do
20738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20739 echo "$as_me:$LINENO: checking for $ac_func" >&5
20740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20741 if eval "test \"\${$as_ac_var+set}\" = set"; then
20742   echo $ECHO_N "(cached) $ECHO_C" >&6
20743 else
20744   cat >conftest.$ac_ext <<_ACEOF
20745 #line $LINENO "configure"
20746 /* confdefs.h.  */
20747 _ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h.  */
20751 /* System header to define __stub macros and hopefully few prototypes,
20752     which can conflict with char $ac_func (); below.
20753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20754     <limits.h> exists even on freestanding compilers.  */
20755 #ifdef __STDC__
20756 # include <limits.h>
20757 #else
20758 # include <assert.h>
20759 #endif
20760 /* Override any gcc2 internal prototype to avoid an error.  */
20761 #ifdef __cplusplus
20762 extern "C"
20763 {
20764 #endif
20765 /* We use char because int might match the return type of a gcc2
20766    builtin and then its argument prototype would still apply.  */
20767 char $ac_func ();
20768 /* The GNU C library defines this for functions which it implements
20769     to always fail with ENOSYS.  Some functions are actually named
20770     something starting with __ and the normal name is an alias.  */
20771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20772 choke me
20773 #else
20774 char (*f) () = $ac_func;
20775 #endif
20776 #ifdef __cplusplus
20777 }
20778 #endif
20779
20780 int
20781 main ()
20782 {
20783 return f != $ac_func;
20784   ;
20785   return 0;
20786 }
20787 _ACEOF
20788 rm -f conftest.$ac_objext conftest$ac_exeext
20789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20790   (eval $ac_link) 2>&5
20791   ac_status=$?
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); } &&
20794          { ac_try='test -s conftest$ac_exeext'
20795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796   (eval $ac_try) 2>&5
20797   ac_status=$?
20798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799   (exit $ac_status); }; }; then
20800   eval "$as_ac_var=yes"
20801 else
20802   echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20804
20805 eval "$as_ac_var=no"
20806 fi
20807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20808 fi
20809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20811 if test `eval echo '${'$as_ac_var'}'` = yes; then
20812   cat >>confdefs.h <<_ACEOF
20813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20814 _ACEOF
20815
20816 fi
20817 done
20818
20819     fi
20820   fi
20821
20822
20823
20824   echo "$as_me:$LINENO: checking for finitel declaration" >&5
20825 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
20826   if test x${glibcxx_cv_func_finitel_use+set} != xset; then
20827     if test "${glibcxx_cv_func_finitel_use+set}" = set; then
20828   echo $ECHO_N "(cached) $ECHO_C" >&6
20829 else
20830
20831
20832
20833       ac_ext=cc
20834 ac_cpp='$CXXCPP $CPPFLAGS'
20835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20838
20839       cat >conftest.$ac_ext <<_ACEOF
20840 #line $LINENO "configure"
20841 /* confdefs.h.  */
20842 _ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h.  */
20846 #include <math.h>
20847                       #ifdef HAVE_IEEEFP_H
20848                       #include <ieeefp.h>
20849                       #endif
20850
20851 int
20852 main ()
20853 {
20854  finitel(0);
20855   ;
20856   return 0;
20857 }
20858 _ACEOF
20859 rm -f conftest.$ac_objext
20860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20861   (eval $ac_compile) 2>&5
20862   ac_status=$?
20863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864   (exit $ac_status); } &&
20865          { ac_try='test -s conftest.$ac_objext'
20866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20867   (eval $ac_try) 2>&5
20868   ac_status=$?
20869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870   (exit $ac_status); }; }; then
20871   glibcxx_cv_func_finitel_use=yes
20872 else
20873   echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20875
20876 glibcxx_cv_func_finitel_use=no
20877 fi
20878 rm -f conftest.$ac_objext conftest.$ac_ext
20879       ac_ext=c
20880 ac_cpp='$CPP $CPPFLAGS'
20881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20884
20885
20886 fi
20887
20888   fi
20889   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
20890 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
20891
20892   if test x$glibcxx_cv_func_finitel_use = x"yes"; then
20893
20894 for ac_func in finitel
20895 do
20896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20897 echo "$as_me:$LINENO: checking for $ac_func" >&5
20898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20899 if eval "test \"\${$as_ac_var+set}\" = set"; then
20900   echo $ECHO_N "(cached) $ECHO_C" >&6
20901 else
20902   cat >conftest.$ac_ext <<_ACEOF
20903 #line $LINENO "configure"
20904 /* confdefs.h.  */
20905 _ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h.  */
20909 /* System header to define __stub macros and hopefully few prototypes,
20910     which can conflict with char $ac_func (); below.
20911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20912     <limits.h> exists even on freestanding compilers.  */
20913 #ifdef __STDC__
20914 # include <limits.h>
20915 #else
20916 # include <assert.h>
20917 #endif
20918 /* Override any gcc2 internal prototype to avoid an error.  */
20919 #ifdef __cplusplus
20920 extern "C"
20921 {
20922 #endif
20923 /* We use char because int might match the return type of a gcc2
20924    builtin and then its argument prototype would still apply.  */
20925 char $ac_func ();
20926 /* The GNU C library defines this for functions which it implements
20927     to always fail with ENOSYS.  Some functions are actually named
20928     something starting with __ and the normal name is an alias.  */
20929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20930 choke me
20931 #else
20932 char (*f) () = $ac_func;
20933 #endif
20934 #ifdef __cplusplus
20935 }
20936 #endif
20937
20938 int
20939 main ()
20940 {
20941 return f != $ac_func;
20942   ;
20943   return 0;
20944 }
20945 _ACEOF
20946 rm -f conftest.$ac_objext conftest$ac_exeext
20947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20948   (eval $ac_link) 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); } &&
20952          { ac_try='test -s conftest$ac_exeext'
20953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20954   (eval $ac_try) 2>&5
20955   ac_status=$?
20956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957   (exit $ac_status); }; }; then
20958   eval "$as_ac_var=yes"
20959 else
20960   echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20962
20963 eval "$as_ac_var=no"
20964 fi
20965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20966 fi
20967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20969 if test `eval echo '${'$as_ac_var'}'` = yes; then
20970   cat >>confdefs.h <<_ACEOF
20971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20972 _ACEOF
20973
20974 fi
20975 done
20976
20977   else
20978
20979   echo "$as_me:$LINENO: checking for _finitel declaration" >&5
20980 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
20981   if test x${glibcxx_cv_func__finitel_use+set} != xset; then
20982     if test "${glibcxx_cv_func__finitel_use+set}" = set; then
20983   echo $ECHO_N "(cached) $ECHO_C" >&6
20984 else
20985
20986
20987
20988       ac_ext=cc
20989 ac_cpp='$CXXCPP $CPPFLAGS'
20990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20993
20994       cat >conftest.$ac_ext <<_ACEOF
20995 #line $LINENO "configure"
20996 /* confdefs.h.  */
20997 _ACEOF
20998 cat confdefs.h >>conftest.$ac_ext
20999 cat >>conftest.$ac_ext <<_ACEOF
21000 /* end confdefs.h.  */
21001 #include <math.h>
21002                       #ifdef HAVE_IEEEFP_H
21003                       #include <ieeefp.h>
21004                       #endif
21005
21006 int
21007 main ()
21008 {
21009  _finitel(0);
21010   ;
21011   return 0;
21012 }
21013 _ACEOF
21014 rm -f conftest.$ac_objext
21015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21016   (eval $ac_compile) 2>&5
21017   ac_status=$?
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); } &&
21020          { ac_try='test -s conftest.$ac_objext'
21021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022   (eval $ac_try) 2>&5
21023   ac_status=$?
21024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025   (exit $ac_status); }; }; then
21026   glibcxx_cv_func__finitel_use=yes
21027 else
21028   echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21030
21031 glibcxx_cv_func__finitel_use=no
21032 fi
21033 rm -f conftest.$ac_objext conftest.$ac_ext
21034       ac_ext=c
21035 ac_cpp='$CPP $CPPFLAGS'
21036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21039
21040
21041 fi
21042
21043   fi
21044   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
21045 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
21046
21047     if test x$glibcxx_cv_func__finitel_use = x"yes"; then
21048
21049 for ac_func in _finitel
21050 do
21051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21052 echo "$as_me:$LINENO: checking for $ac_func" >&5
21053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21054 if eval "test \"\${$as_ac_var+set}\" = set"; then
21055   echo $ECHO_N "(cached) $ECHO_C" >&6
21056 else
21057   cat >conftest.$ac_ext <<_ACEOF
21058 #line $LINENO "configure"
21059 /* confdefs.h.  */
21060 _ACEOF
21061 cat confdefs.h >>conftest.$ac_ext
21062 cat >>conftest.$ac_ext <<_ACEOF
21063 /* end confdefs.h.  */
21064 /* System header to define __stub macros and hopefully few prototypes,
21065     which can conflict with char $ac_func (); below.
21066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21067     <limits.h> exists even on freestanding compilers.  */
21068 #ifdef __STDC__
21069 # include <limits.h>
21070 #else
21071 # include <assert.h>
21072 #endif
21073 /* Override any gcc2 internal prototype to avoid an error.  */
21074 #ifdef __cplusplus
21075 extern "C"
21076 {
21077 #endif
21078 /* We use char because int might match the return type of a gcc2
21079    builtin and then its argument prototype would still apply.  */
21080 char $ac_func ();
21081 /* The GNU C library defines this for functions which it implements
21082     to always fail with ENOSYS.  Some functions are actually named
21083     something starting with __ and the normal name is an alias.  */
21084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21085 choke me
21086 #else
21087 char (*f) () = $ac_func;
21088 #endif
21089 #ifdef __cplusplus
21090 }
21091 #endif
21092
21093 int
21094 main ()
21095 {
21096 return f != $ac_func;
21097   ;
21098   return 0;
21099 }
21100 _ACEOF
21101 rm -f conftest.$ac_objext conftest$ac_exeext
21102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21103   (eval $ac_link) 2>&5
21104   ac_status=$?
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } &&
21107          { ac_try='test -s conftest$ac_exeext'
21108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109   (eval $ac_try) 2>&5
21110   ac_status=$?
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); }; }; then
21113   eval "$as_ac_var=yes"
21114 else
21115   echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21117
21118 eval "$as_ac_var=no"
21119 fi
21120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21121 fi
21122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21124 if test `eval echo '${'$as_ac_var'}'` = yes; then
21125   cat >>confdefs.h <<_ACEOF
21126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21127 _ACEOF
21128
21129 fi
21130 done
21131
21132     fi
21133   fi
21134
21135
21136
21137
21138   echo "$as_me:$LINENO: checking for _float trig functions" >&5
21139 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
21140   if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
21141   echo $ECHO_N "(cached) $ECHO_C" >&6
21142 else
21143
21144
21145
21146     ac_ext=cc
21147 ac_cpp='$CXXCPP $CPPFLAGS'
21148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21151
21152     cat >conftest.$ac_ext <<_ACEOF
21153 #line $LINENO "configure"
21154 /* confdefs.h.  */
21155 _ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h.  */
21159 #include <math.h>
21160 int
21161 main ()
21162 {
21163  `for x in _acosf _asinf _atanf \
21164                                           _cosf _sinf _tanf \
21165                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done`
21166   ;
21167   return 0;
21168 }
21169 _ACEOF
21170 rm -f conftest.$ac_objext
21171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21172   (eval $ac_compile) 2>&5
21173   ac_status=$?
21174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175   (exit $ac_status); } &&
21176          { ac_try='test -s conftest.$ac_objext'
21177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21178   (eval $ac_try) 2>&5
21179   ac_status=$?
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); }; }; then
21182   glibcxx_cv_func__float_trig_use=yes
21183 else
21184   echo "$as_me: failed program was:" >&5
21185 sed 's/^/| /' conftest.$ac_ext >&5
21186
21187 glibcxx_cv_func__float_trig_use=no
21188 fi
21189 rm -f conftest.$ac_objext conftest.$ac_ext
21190     ac_ext=c
21191 ac_cpp='$CPP $CPPFLAGS'
21192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21195
21196 fi
21197
21198   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
21199 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
21200   if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210 for ac_func in _acosf _asinf _atanf \
21211                                           _cosf _sinf _tanf \
21212                                           _coshf _sinhf _tanhf
21213 do
21214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21215 echo "$as_me:$LINENO: checking for $ac_func" >&5
21216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21217 if eval "test \"\${$as_ac_var+set}\" = set"; then
21218   echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220   cat >conftest.$ac_ext <<_ACEOF
21221 #line $LINENO "configure"
21222 /* confdefs.h.  */
21223 _ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h.  */
21227 /* System header to define __stub macros and hopefully few prototypes,
21228     which can conflict with char $ac_func (); below.
21229     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21230     <limits.h> exists even on freestanding compilers.  */
21231 #ifdef __STDC__
21232 # include <limits.h>
21233 #else
21234 # include <assert.h>
21235 #endif
21236 /* Override any gcc2 internal prototype to avoid an error.  */
21237 #ifdef __cplusplus
21238 extern "C"
21239 {
21240 #endif
21241 /* We use char because int might match the return type of a gcc2
21242    builtin and then its argument prototype would still apply.  */
21243 char $ac_func ();
21244 /* The GNU C library defines this for functions which it implements
21245     to always fail with ENOSYS.  Some functions are actually named
21246     something starting with __ and the normal name is an alias.  */
21247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21248 choke me
21249 #else
21250 char (*f) () = $ac_func;
21251 #endif
21252 #ifdef __cplusplus
21253 }
21254 #endif
21255
21256 int
21257 main ()
21258 {
21259 return f != $ac_func;
21260   ;
21261   return 0;
21262 }
21263 _ACEOF
21264 rm -f conftest.$ac_objext conftest$ac_exeext
21265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21266   (eval $ac_link) 2>&5
21267   ac_status=$?
21268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21269   (exit $ac_status); } &&
21270          { ac_try='test -s conftest$ac_exeext'
21271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21272   (eval $ac_try) 2>&5
21273   ac_status=$?
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); }; }; then
21276   eval "$as_ac_var=yes"
21277 else
21278   echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21280
21281 eval "$as_ac_var=no"
21282 fi
21283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21284 fi
21285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21287 if test `eval echo '${'$as_ac_var'}'` = yes; then
21288   cat >>confdefs.h <<_ACEOF
21289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21290 _ACEOF
21291
21292 fi
21293 done
21294
21295   fi
21296
21297
21298   echo "$as_me:$LINENO: checking for _float round functions" >&5
21299 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
21300   if test "${glibcxx_cv_func__float_round_use+set}" = set; then
21301   echo $ECHO_N "(cached) $ECHO_C" >&6
21302 else
21303
21304
21305
21306     ac_ext=cc
21307 ac_cpp='$CXXCPP $CPPFLAGS'
21308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21311
21312     cat >conftest.$ac_ext <<_ACEOF
21313 #line $LINENO "configure"
21314 /* confdefs.h.  */
21315 _ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h.  */
21319 #include <math.h>
21320 int
21321 main ()
21322 {
21323  `for x in _ceilf _floorf; do echo "$x (0);"; done`
21324   ;
21325   return 0;
21326 }
21327 _ACEOF
21328 rm -f conftest.$ac_objext
21329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21330   (eval $ac_compile) 2>&5
21331   ac_status=$?
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); } &&
21334          { ac_try='test -s conftest.$ac_objext'
21335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21336   (eval $ac_try) 2>&5
21337   ac_status=$?
21338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339   (exit $ac_status); }; }; then
21340   glibcxx_cv_func__float_round_use=yes
21341 else
21342   echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21344
21345 glibcxx_cv_func__float_round_use=no
21346 fi
21347 rm -f conftest.$ac_objext conftest.$ac_ext
21348     ac_ext=c
21349 ac_cpp='$CPP $CPPFLAGS'
21350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21353
21354 fi
21355
21356   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
21357 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
21358   if test x$glibcxx_cv_func__float_round_use = x"yes"; then
21359
21360
21361 for ac_func in _ceilf _floorf
21362 do
21363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21364 echo "$as_me:$LINENO: checking for $ac_func" >&5
21365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21366 if eval "test \"\${$as_ac_var+set}\" = set"; then
21367   echo $ECHO_N "(cached) $ECHO_C" >&6
21368 else
21369   cat >conftest.$ac_ext <<_ACEOF
21370 #line $LINENO "configure"
21371 /* confdefs.h.  */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h.  */
21376 /* System header to define __stub macros and hopefully few prototypes,
21377     which can conflict with char $ac_func (); below.
21378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21379     <limits.h> exists even on freestanding compilers.  */
21380 #ifdef __STDC__
21381 # include <limits.h>
21382 #else
21383 # include <assert.h>
21384 #endif
21385 /* Override any gcc2 internal prototype to avoid an error.  */
21386 #ifdef __cplusplus
21387 extern "C"
21388 {
21389 #endif
21390 /* We use char because int might match the return type of a gcc2
21391    builtin and then its argument prototype would still apply.  */
21392 char $ac_func ();
21393 /* The GNU C library defines this for functions which it implements
21394     to always fail with ENOSYS.  Some functions are actually named
21395     something starting with __ and the normal name is an alias.  */
21396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21397 choke me
21398 #else
21399 char (*f) () = $ac_func;
21400 #endif
21401 #ifdef __cplusplus
21402 }
21403 #endif
21404
21405 int
21406 main ()
21407 {
21408 return f != $ac_func;
21409   ;
21410   return 0;
21411 }
21412 _ACEOF
21413 rm -f conftest.$ac_objext conftest$ac_exeext
21414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21415   (eval $ac_link) 2>&5
21416   ac_status=$?
21417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418   (exit $ac_status); } &&
21419          { ac_try='test -s conftest$ac_exeext'
21420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421   (eval $ac_try) 2>&5
21422   ac_status=$?
21423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424   (exit $ac_status); }; }; then
21425   eval "$as_ac_var=yes"
21426 else
21427   echo "$as_me: failed program was:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21429
21430 eval "$as_ac_var=no"
21431 fi
21432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21433 fi
21434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21436 if test `eval echo '${'$as_ac_var'}'` = yes; then
21437   cat >>confdefs.h <<_ACEOF
21438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21439 _ACEOF
21440
21441 fi
21442 done
21443
21444   fi
21445
21446
21447
21448   echo "$as_me:$LINENO: checking for _long double trig functions" >&5
21449 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
21450   if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
21451   echo $ECHO_N "(cached) $ECHO_C" >&6
21452 else
21453
21454
21455
21456     ac_ext=cc
21457 ac_cpp='$CXXCPP $CPPFLAGS'
21458 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21459 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21460 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21461
21462     cat >conftest.$ac_ext <<_ACEOF
21463 #line $LINENO "configure"
21464 /* confdefs.h.  */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h.  */
21469 #include <math.h>
21470 int
21471 main ()
21472 {
21473  `for x in _acosl _asinl _atanl \
21474                                           _cosl _sinl _tanl \
21475                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done`
21476   ;
21477   return 0;
21478 }
21479 _ACEOF
21480 rm -f conftest.$ac_objext
21481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21482   (eval $ac_compile) 2>&5
21483   ac_status=$?
21484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485   (exit $ac_status); } &&
21486          { ac_try='test -s conftest.$ac_objext'
21487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21488   (eval $ac_try) 2>&5
21489   ac_status=$?
21490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491   (exit $ac_status); }; }; then
21492   glibcxx_cv_func__long_double_trig_use=yes
21493 else
21494   echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21496
21497 glibcxx_cv_func__long_double_trig_use=no
21498 fi
21499 rm -f conftest.$ac_objext conftest.$ac_ext
21500     ac_ext=c
21501 ac_cpp='$CPP $CPPFLAGS'
21502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21505
21506 fi
21507
21508   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
21509 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
21510   if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520 for ac_func in _acosl _asinl _atanl \
21521                                           _cosl _sinl _tanl \
21522                                           _coshl _sinhl _tanhl
21523 do
21524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21525 echo "$as_me:$LINENO: checking for $ac_func" >&5
21526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21527 if eval "test \"\${$as_ac_var+set}\" = set"; then
21528   echo $ECHO_N "(cached) $ECHO_C" >&6
21529 else
21530   cat >conftest.$ac_ext <<_ACEOF
21531 #line $LINENO "configure"
21532 /* confdefs.h.  */
21533 _ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h.  */
21537 /* System header to define __stub macros and hopefully few prototypes,
21538     which can conflict with char $ac_func (); below.
21539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21540     <limits.h> exists even on freestanding compilers.  */
21541 #ifdef __STDC__
21542 # include <limits.h>
21543 #else
21544 # include <assert.h>
21545 #endif
21546 /* Override any gcc2 internal prototype to avoid an error.  */
21547 #ifdef __cplusplus
21548 extern "C"
21549 {
21550 #endif
21551 /* We use char because int might match the return type of a gcc2
21552    builtin and then its argument prototype would still apply.  */
21553 char $ac_func ();
21554 /* The GNU C library defines this for functions which it implements
21555     to always fail with ENOSYS.  Some functions are actually named
21556     something starting with __ and the normal name is an alias.  */
21557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21558 choke me
21559 #else
21560 char (*f) () = $ac_func;
21561 #endif
21562 #ifdef __cplusplus
21563 }
21564 #endif
21565
21566 int
21567 main ()
21568 {
21569 return f != $ac_func;
21570   ;
21571   return 0;
21572 }
21573 _ACEOF
21574 rm -f conftest.$ac_objext conftest$ac_exeext
21575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21576   (eval $ac_link) 2>&5
21577   ac_status=$?
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); } &&
21580          { ac_try='test -s conftest$ac_exeext'
21581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582   (eval $ac_try) 2>&5
21583   ac_status=$?
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); }; }; then
21586   eval "$as_ac_var=yes"
21587 else
21588   echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21590
21591 eval "$as_ac_var=no"
21592 fi
21593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21594 fi
21595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21597 if test `eval echo '${'$as_ac_var'}'` = yes; then
21598   cat >>confdefs.h <<_ACEOF
21599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21600 _ACEOF
21601
21602 fi
21603 done
21604
21605   fi
21606
21607
21608   echo "$as_me:$LINENO: checking for _long double round functions" >&5
21609 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
21610   if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
21611   echo $ECHO_N "(cached) $ECHO_C" >&6
21612 else
21613
21614
21615
21616     ac_ext=cc
21617 ac_cpp='$CXXCPP $CPPFLAGS'
21618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21621
21622     cat >conftest.$ac_ext <<_ACEOF
21623 #line $LINENO "configure"
21624 /* confdefs.h.  */
21625 _ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h.  */
21629 #include <math.h>
21630 int
21631 main ()
21632 {
21633  `for x in _ceill _floorl; do echo "$x (0);"; done`
21634   ;
21635   return 0;
21636 }
21637 _ACEOF
21638 rm -f conftest.$ac_objext
21639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21640   (eval $ac_compile) 2>&5
21641   ac_status=$?
21642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643   (exit $ac_status); } &&
21644          { ac_try='test -s conftest.$ac_objext'
21645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646   (eval $ac_try) 2>&5
21647   ac_status=$?
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); }; }; then
21650   glibcxx_cv_func__long_double_round_use=yes
21651 else
21652   echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 glibcxx_cv_func__long_double_round_use=no
21656 fi
21657 rm -f conftest.$ac_objext conftest.$ac_ext
21658     ac_ext=c
21659 ac_cpp='$CPP $CPPFLAGS'
21660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21663
21664 fi
21665
21666   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
21667 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
21668   if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
21669
21670
21671 for ac_func in _ceill _floorl
21672 do
21673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21674 echo "$as_me:$LINENO: checking for $ac_func" >&5
21675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21676 if eval "test \"\${$as_ac_var+set}\" = set"; then
21677   echo $ECHO_N "(cached) $ECHO_C" >&6
21678 else
21679   cat >conftest.$ac_ext <<_ACEOF
21680 #line $LINENO "configure"
21681 /* confdefs.h.  */
21682 _ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h.  */
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 #ifdef __STDC__
21691 # include <limits.h>
21692 #else
21693 # include <assert.h>
21694 #endif
21695 /* Override any gcc2 internal prototype to avoid an error.  */
21696 #ifdef __cplusplus
21697 extern "C"
21698 {
21699 #endif
21700 /* We use char because int might match the return type of a gcc2
21701    builtin and then its argument prototype would still apply.  */
21702 char $ac_func ();
21703 /* The GNU C library defines this for functions which it implements
21704     to always fail with ENOSYS.  Some functions are actually named
21705     something starting with __ and the normal name is an alias.  */
21706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21707 choke me
21708 #else
21709 char (*f) () = $ac_func;
21710 #endif
21711 #ifdef __cplusplus
21712 }
21713 #endif
21714
21715 int
21716 main ()
21717 {
21718 return f != $ac_func;
21719   ;
21720   return 0;
21721 }
21722 _ACEOF
21723 rm -f conftest.$ac_objext conftest$ac_exeext
21724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21725   (eval $ac_link) 2>&5
21726   ac_status=$?
21727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728   (exit $ac_status); } &&
21729          { ac_try='test -s conftest$ac_exeext'
21730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21731   (eval $ac_try) 2>&5
21732   ac_status=$?
21733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734   (exit $ac_status); }; }; then
21735   eval "$as_ac_var=yes"
21736 else
21737   echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21739
21740 eval "$as_ac_var=no"
21741 fi
21742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21743 fi
21744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21746 if test `eval echo '${'$as_ac_var'}'` = yes; then
21747   cat >>confdefs.h <<_ACEOF
21748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21749 _ACEOF
21750
21751 fi
21752 done
21753
21754   fi
21755
21756
21757   LIBS="$ac_save_LIBS"
21758   CXXFLAGS="$ac_save_CXXFLAGS"
21759
21760
21761
21762   echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
21763 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
21764   if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
21765     if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
21766   echo $ECHO_N "(cached) $ECHO_C" >&6
21767 else
21768
21769
21770
21771       ac_ext=cc
21772 ac_cpp='$CXXCPP $CPPFLAGS'
21773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21776
21777       cat >conftest.$ac_ext <<_ACEOF
21778 #line $LINENO "configure"
21779 /* confdefs.h.  */
21780 _ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h.  */
21784 #include <math.h>
21785 int
21786 main ()
21787 {
21788  __builtin_abs(0);
21789   ;
21790   return 0;
21791 }
21792 _ACEOF
21793 rm -f conftest.$ac_objext
21794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21795   (eval $ac_compile) 2>&5
21796   ac_status=$?
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); } &&
21799          { ac_try='test -s conftest.$ac_objext'
21800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801   (eval $ac_try) 2>&5
21802   ac_status=$?
21803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804   (exit $ac_status); }; }; then
21805   glibcxx_cv_func___builtin_abs_use=yes
21806 else
21807   echo "$as_me: failed program was:" >&5
21808 sed 's/^/| /' conftest.$ac_ext >&5
21809
21810 glibcxx_cv_func___builtin_abs_use=no
21811 fi
21812 rm -f conftest.$ac_objext conftest.$ac_ext
21813       ac_ext=c
21814 ac_cpp='$CPP $CPPFLAGS'
21815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21818
21819
21820 fi
21821
21822   fi
21823   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
21824 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
21825   if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
21826     echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
21827 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
21828     if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
21829       if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
21830   echo $ECHO_N "(cached) $ECHO_C" >&6
21831 else
21832
21833         cat >conftest.$ac_ext <<_ACEOF
21834 #line $LINENO "configure"
21835 /* confdefs.h.  */
21836 _ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h.  */
21840 #include <math.h>
21841 int
21842 main ()
21843 {
21844  __builtin_abs(0);
21845   ;
21846   return 0;
21847 }
21848 _ACEOF
21849 rm -f conftest.$ac_objext conftest$ac_exeext
21850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21851   (eval $ac_link) 2>&5
21852   ac_status=$?
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); } &&
21855          { ac_try='test -s conftest$ac_exeext'
21856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21857   (eval $ac_try) 2>&5
21858   ac_status=$?
21859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860   (exit $ac_status); }; }; then
21861   glibcxx_cv_func___builtin_abs_link=yes
21862 else
21863   echo "$as_me: failed program was:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21865
21866 glibcxx_cv_func___builtin_abs_link=no
21867 fi
21868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21869
21870 fi
21871
21872     fi
21873     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
21874 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
21875     if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
21876       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21877       cat >>confdefs.h <<_ACEOF
21878 #define ${ac_tr_func} 1
21879 _ACEOF
21880
21881     fi
21882   fi
21883
21884
21885   echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
21886 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
21887   if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
21888     if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
21889   echo $ECHO_N "(cached) $ECHO_C" >&6
21890 else
21891
21892
21893
21894       ac_ext=cc
21895 ac_cpp='$CXXCPP $CPPFLAGS'
21896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21899
21900       cat >conftest.$ac_ext <<_ACEOF
21901 #line $LINENO "configure"
21902 /* confdefs.h.  */
21903 _ACEOF
21904 cat confdefs.h >>conftest.$ac_ext
21905 cat >>conftest.$ac_ext <<_ACEOF
21906 /* end confdefs.h.  */
21907 #include <math.h>
21908 int
21909 main ()
21910 {
21911  __builtin_fabsf(0);
21912   ;
21913   return 0;
21914 }
21915 _ACEOF
21916 rm -f conftest.$ac_objext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21918   (eval $ac_compile) 2>&5
21919   ac_status=$?
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } &&
21922          { ac_try='test -s conftest.$ac_objext'
21923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924   (eval $ac_try) 2>&5
21925   ac_status=$?
21926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927   (exit $ac_status); }; }; then
21928   glibcxx_cv_func___builtin_fabsf_use=yes
21929 else
21930   echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21932
21933 glibcxx_cv_func___builtin_fabsf_use=no
21934 fi
21935 rm -f conftest.$ac_objext conftest.$ac_ext
21936       ac_ext=c
21937 ac_cpp='$CPP $CPPFLAGS'
21938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21941
21942
21943 fi
21944
21945   fi
21946   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
21947 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
21948   if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
21949     echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
21950 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
21951     if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
21952       if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
21953   echo $ECHO_N "(cached) $ECHO_C" >&6
21954 else
21955
21956         cat >conftest.$ac_ext <<_ACEOF
21957 #line $LINENO "configure"
21958 /* confdefs.h.  */
21959 _ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h.  */
21963 #include <math.h>
21964 int
21965 main ()
21966 {
21967  __builtin_fabsf(0);
21968   ;
21969   return 0;
21970 }
21971 _ACEOF
21972 rm -f conftest.$ac_objext conftest$ac_exeext
21973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21974   (eval $ac_link) 2>&5
21975   ac_status=$?
21976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977   (exit $ac_status); } &&
21978          { ac_try='test -s conftest$ac_exeext'
21979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980   (eval $ac_try) 2>&5
21981   ac_status=$?
21982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983   (exit $ac_status); }; }; then
21984   glibcxx_cv_func___builtin_fabsf_link=yes
21985 else
21986   echo "$as_me: failed program was:" >&5
21987 sed 's/^/| /' conftest.$ac_ext >&5
21988
21989 glibcxx_cv_func___builtin_fabsf_link=no
21990 fi
21991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21992
21993 fi
21994
21995     fi
21996     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
21997 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
21998     if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
21999       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22000       cat >>confdefs.h <<_ACEOF
22001 #define ${ac_tr_func} 1
22002 _ACEOF
22003
22004     fi
22005   fi
22006
22007
22008   echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
22009 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
22010   if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
22011     if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
22012   echo $ECHO_N "(cached) $ECHO_C" >&6
22013 else
22014
22015
22016
22017       ac_ext=cc
22018 ac_cpp='$CXXCPP $CPPFLAGS'
22019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22022
22023       cat >conftest.$ac_ext <<_ACEOF
22024 #line $LINENO "configure"
22025 /* confdefs.h.  */
22026 _ACEOF
22027 cat confdefs.h >>conftest.$ac_ext
22028 cat >>conftest.$ac_ext <<_ACEOF
22029 /* end confdefs.h.  */
22030 #include <math.h>
22031 int
22032 main ()
22033 {
22034  __builtin_fabs(0);
22035   ;
22036   return 0;
22037 }
22038 _ACEOF
22039 rm -f conftest.$ac_objext
22040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22041   (eval $ac_compile) 2>&5
22042   ac_status=$?
22043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044   (exit $ac_status); } &&
22045          { ac_try='test -s conftest.$ac_objext'
22046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22047   (eval $ac_try) 2>&5
22048   ac_status=$?
22049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050   (exit $ac_status); }; }; then
22051   glibcxx_cv_func___builtin_fabs_use=yes
22052 else
22053   echo "$as_me: failed program was:" >&5
22054 sed 's/^/| /' conftest.$ac_ext >&5
22055
22056 glibcxx_cv_func___builtin_fabs_use=no
22057 fi
22058 rm -f conftest.$ac_objext conftest.$ac_ext
22059       ac_ext=c
22060 ac_cpp='$CPP $CPPFLAGS'
22061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22064
22065
22066 fi
22067
22068   fi
22069   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
22070 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
22071   if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
22072     echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
22073 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
22074     if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
22075       if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
22076   echo $ECHO_N "(cached) $ECHO_C" >&6
22077 else
22078
22079         cat >conftest.$ac_ext <<_ACEOF
22080 #line $LINENO "configure"
22081 /* confdefs.h.  */
22082 _ACEOF
22083 cat confdefs.h >>conftest.$ac_ext
22084 cat >>conftest.$ac_ext <<_ACEOF
22085 /* end confdefs.h.  */
22086 #include <math.h>
22087 int
22088 main ()
22089 {
22090  __builtin_fabs(0);
22091   ;
22092   return 0;
22093 }
22094 _ACEOF
22095 rm -f conftest.$ac_objext conftest$ac_exeext
22096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22097   (eval $ac_link) 2>&5
22098   ac_status=$?
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); } &&
22101          { ac_try='test -s conftest$ac_exeext'
22102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103   (eval $ac_try) 2>&5
22104   ac_status=$?
22105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106   (exit $ac_status); }; }; then
22107   glibcxx_cv_func___builtin_fabs_link=yes
22108 else
22109   echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22111
22112 glibcxx_cv_func___builtin_fabs_link=no
22113 fi
22114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22115
22116 fi
22117
22118     fi
22119     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
22120 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
22121     if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
22122       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22123       cat >>confdefs.h <<_ACEOF
22124 #define ${ac_tr_func} 1
22125 _ACEOF
22126
22127     fi
22128   fi
22129
22130
22131   echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
22132 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
22133   if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
22134     if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
22135   echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137
22138
22139
22140       ac_ext=cc
22141 ac_cpp='$CXXCPP $CPPFLAGS'
22142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22145
22146       cat >conftest.$ac_ext <<_ACEOF
22147 #line $LINENO "configure"
22148 /* confdefs.h.  */
22149 _ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h.  */
22153 #include <math.h>
22154 int
22155 main ()
22156 {
22157  __builtin_fabsl(0);
22158   ;
22159   return 0;
22160 }
22161 _ACEOF
22162 rm -f conftest.$ac_objext
22163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22164   (eval $ac_compile) 2>&5
22165   ac_status=$?
22166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167   (exit $ac_status); } &&
22168          { ac_try='test -s conftest.$ac_objext'
22169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170   (eval $ac_try) 2>&5
22171   ac_status=$?
22172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173   (exit $ac_status); }; }; then
22174   glibcxx_cv_func___builtin_fabsl_use=yes
22175 else
22176   echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22178
22179 glibcxx_cv_func___builtin_fabsl_use=no
22180 fi
22181 rm -f conftest.$ac_objext conftest.$ac_ext
22182       ac_ext=c
22183 ac_cpp='$CPP $CPPFLAGS'
22184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22187
22188
22189 fi
22190
22191   fi
22192   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
22193 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
22194   if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
22195     echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
22196 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
22197     if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
22198       if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
22199   echo $ECHO_N "(cached) $ECHO_C" >&6
22200 else
22201
22202         cat >conftest.$ac_ext <<_ACEOF
22203 #line $LINENO "configure"
22204 /* confdefs.h.  */
22205 _ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h.  */
22209 #include <math.h>
22210 int
22211 main ()
22212 {
22213  __builtin_fabsl(0);
22214   ;
22215   return 0;
22216 }
22217 _ACEOF
22218 rm -f conftest.$ac_objext conftest$ac_exeext
22219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22220   (eval $ac_link) 2>&5
22221   ac_status=$?
22222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223   (exit $ac_status); } &&
22224          { ac_try='test -s conftest$ac_exeext'
22225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226   (eval $ac_try) 2>&5
22227   ac_status=$?
22228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229   (exit $ac_status); }; }; then
22230   glibcxx_cv_func___builtin_fabsl_link=yes
22231 else
22232   echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22234
22235 glibcxx_cv_func___builtin_fabsl_link=no
22236 fi
22237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22238
22239 fi
22240
22241     fi
22242     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
22243 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
22244     if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
22245       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22246       cat >>confdefs.h <<_ACEOF
22247 #define ${ac_tr_func} 1
22248 _ACEOF
22249
22250     fi
22251   fi
22252
22253
22254   echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
22255 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
22256   if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
22257     if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
22258   echo $ECHO_N "(cached) $ECHO_C" >&6
22259 else
22260
22261
22262
22263       ac_ext=cc
22264 ac_cpp='$CXXCPP $CPPFLAGS'
22265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22268
22269       cat >conftest.$ac_ext <<_ACEOF
22270 #line $LINENO "configure"
22271 /* confdefs.h.  */
22272 _ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h.  */
22276 #include <math.h>
22277 int
22278 main ()
22279 {
22280  __builtin_labs(0);
22281   ;
22282   return 0;
22283 }
22284 _ACEOF
22285 rm -f conftest.$ac_objext
22286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22287   (eval $ac_compile) 2>&5
22288   ac_status=$?
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); } &&
22291          { ac_try='test -s conftest.$ac_objext'
22292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293   (eval $ac_try) 2>&5
22294   ac_status=$?
22295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296   (exit $ac_status); }; }; then
22297   glibcxx_cv_func___builtin_labs_use=yes
22298 else
22299   echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22301
22302 glibcxx_cv_func___builtin_labs_use=no
22303 fi
22304 rm -f conftest.$ac_objext conftest.$ac_ext
22305       ac_ext=c
22306 ac_cpp='$CPP $CPPFLAGS'
22307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22310
22311
22312 fi
22313
22314   fi
22315   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
22316 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
22317   if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
22318     echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
22319 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
22320     if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
22321       if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
22322   echo $ECHO_N "(cached) $ECHO_C" >&6
22323 else
22324
22325         cat >conftest.$ac_ext <<_ACEOF
22326 #line $LINENO "configure"
22327 /* confdefs.h.  */
22328 _ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h.  */
22332 #include <math.h>
22333 int
22334 main ()
22335 {
22336  __builtin_labs(0);
22337   ;
22338   return 0;
22339 }
22340 _ACEOF
22341 rm -f conftest.$ac_objext conftest$ac_exeext
22342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22343   (eval $ac_link) 2>&5
22344   ac_status=$?
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); } &&
22347          { ac_try='test -s conftest$ac_exeext'
22348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349   (eval $ac_try) 2>&5
22350   ac_status=$?
22351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352   (exit $ac_status); }; }; then
22353   glibcxx_cv_func___builtin_labs_link=yes
22354 else
22355   echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22357
22358 glibcxx_cv_func___builtin_labs_link=no
22359 fi
22360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22361
22362 fi
22363
22364     fi
22365     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
22366 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
22367     if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
22368       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22369       cat >>confdefs.h <<_ACEOF
22370 #define ${ac_tr_func} 1
22371 _ACEOF
22372
22373     fi
22374   fi
22375
22376
22377
22378   echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
22379 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
22380   if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
22381     if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
22382   echo $ECHO_N "(cached) $ECHO_C" >&6
22383 else
22384
22385
22386
22387       ac_ext=cc
22388 ac_cpp='$CXXCPP $CPPFLAGS'
22389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22392
22393       cat >conftest.$ac_ext <<_ACEOF
22394 #line $LINENO "configure"
22395 /* confdefs.h.  */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h.  */
22400 #include <math.h>
22401 int
22402 main ()
22403 {
22404  __builtin_sqrtf(0);
22405   ;
22406   return 0;
22407 }
22408 _ACEOF
22409 rm -f conftest.$ac_objext
22410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22411   (eval $ac_compile) 2>&5
22412   ac_status=$?
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); } &&
22415          { ac_try='test -s conftest.$ac_objext'
22416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417   (eval $ac_try) 2>&5
22418   ac_status=$?
22419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420   (exit $ac_status); }; }; then
22421   glibcxx_cv_func___builtin_sqrtf_use=yes
22422 else
22423   echo "$as_me: failed program was:" >&5
22424 sed 's/^/| /' conftest.$ac_ext >&5
22425
22426 glibcxx_cv_func___builtin_sqrtf_use=no
22427 fi
22428 rm -f conftest.$ac_objext conftest.$ac_ext
22429       ac_ext=c
22430 ac_cpp='$CPP $CPPFLAGS'
22431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22434
22435
22436 fi
22437
22438   fi
22439   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
22440 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
22441   if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
22442     echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
22443 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
22444     if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
22445       if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
22446   echo $ECHO_N "(cached) $ECHO_C" >&6
22447 else
22448
22449         cat >conftest.$ac_ext <<_ACEOF
22450 #line $LINENO "configure"
22451 /* confdefs.h.  */
22452 _ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h.  */
22456 #include <math.h>
22457 int
22458 main ()
22459 {
22460  __builtin_sqrtf(0);
22461   ;
22462   return 0;
22463 }
22464 _ACEOF
22465 rm -f conftest.$ac_objext conftest$ac_exeext
22466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22467   (eval $ac_link) 2>&5
22468   ac_status=$?
22469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470   (exit $ac_status); } &&
22471          { ac_try='test -s conftest$ac_exeext'
22472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22473   (eval $ac_try) 2>&5
22474   ac_status=$?
22475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476   (exit $ac_status); }; }; then
22477   glibcxx_cv_func___builtin_sqrtf_link=yes
22478 else
22479   echo "$as_me: failed program was:" >&5
22480 sed 's/^/| /' conftest.$ac_ext >&5
22481
22482 glibcxx_cv_func___builtin_sqrtf_link=no
22483 fi
22484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22485
22486 fi
22487
22488     fi
22489     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
22490 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
22491     if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
22492       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22493       cat >>confdefs.h <<_ACEOF
22494 #define ${ac_tr_func} 1
22495 _ACEOF
22496
22497     fi
22498   fi
22499
22500
22501   echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
22502 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
22503   if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
22504     if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
22505   echo $ECHO_N "(cached) $ECHO_C" >&6
22506 else
22507
22508
22509
22510       ac_ext=cc
22511 ac_cpp='$CXXCPP $CPPFLAGS'
22512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22515
22516       cat >conftest.$ac_ext <<_ACEOF
22517 #line $LINENO "configure"
22518 /* confdefs.h.  */
22519 _ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h.  */
22523 #include <math.h>
22524 int
22525 main ()
22526 {
22527  __builtin_sqrt(0);
22528   ;
22529   return 0;
22530 }
22531 _ACEOF
22532 rm -f conftest.$ac_objext
22533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22534   (eval $ac_compile) 2>&5
22535   ac_status=$?
22536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537   (exit $ac_status); } &&
22538          { ac_try='test -s conftest.$ac_objext'
22539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540   (eval $ac_try) 2>&5
22541   ac_status=$?
22542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543   (exit $ac_status); }; }; then
22544   glibcxx_cv_func___builtin_sqrt_use=yes
22545 else
22546   echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22548
22549 glibcxx_cv_func___builtin_sqrt_use=no
22550 fi
22551 rm -f conftest.$ac_objext conftest.$ac_ext
22552       ac_ext=c
22553 ac_cpp='$CPP $CPPFLAGS'
22554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22557
22558
22559 fi
22560
22561   fi
22562   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
22563 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
22564   if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
22565     echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
22566 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
22567     if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
22568       if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
22569   echo $ECHO_N "(cached) $ECHO_C" >&6
22570 else
22571
22572         cat >conftest.$ac_ext <<_ACEOF
22573 #line $LINENO "configure"
22574 /* confdefs.h.  */
22575 _ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h.  */
22579 #include <math.h>
22580 int
22581 main ()
22582 {
22583  __builtin_sqrt(0);
22584   ;
22585   return 0;
22586 }
22587 _ACEOF
22588 rm -f conftest.$ac_objext conftest$ac_exeext
22589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22590   (eval $ac_link) 2>&5
22591   ac_status=$?
22592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593   (exit $ac_status); } &&
22594          { ac_try='test -s conftest$ac_exeext'
22595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596   (eval $ac_try) 2>&5
22597   ac_status=$?
22598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599   (exit $ac_status); }; }; then
22600   glibcxx_cv_func___builtin_sqrt_link=yes
22601 else
22602   echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22604
22605 glibcxx_cv_func___builtin_sqrt_link=no
22606 fi
22607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22608
22609 fi
22610
22611     fi
22612     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
22613 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
22614     if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
22615       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22616       cat >>confdefs.h <<_ACEOF
22617 #define ${ac_tr_func} 1
22618 _ACEOF
22619
22620     fi
22621   fi
22622
22623
22624   echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
22625 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
22626   if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
22627     if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
22628   echo $ECHO_N "(cached) $ECHO_C" >&6
22629 else
22630
22631
22632
22633       ac_ext=cc
22634 ac_cpp='$CXXCPP $CPPFLAGS'
22635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22638
22639       cat >conftest.$ac_ext <<_ACEOF
22640 #line $LINENO "configure"
22641 /* confdefs.h.  */
22642 _ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h.  */
22646 #include <math.h>
22647 int
22648 main ()
22649 {
22650  __builtin_sqrtl(0);
22651   ;
22652   return 0;
22653 }
22654 _ACEOF
22655 rm -f conftest.$ac_objext
22656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22657   (eval $ac_compile) 2>&5
22658   ac_status=$?
22659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660   (exit $ac_status); } &&
22661          { ac_try='test -s conftest.$ac_objext'
22662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22663   (eval $ac_try) 2>&5
22664   ac_status=$?
22665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666   (exit $ac_status); }; }; then
22667   glibcxx_cv_func___builtin_sqrtl_use=yes
22668 else
22669   echo "$as_me: failed program was:" >&5
22670 sed 's/^/| /' conftest.$ac_ext >&5
22671
22672 glibcxx_cv_func___builtin_sqrtl_use=no
22673 fi
22674 rm -f conftest.$ac_objext conftest.$ac_ext
22675       ac_ext=c
22676 ac_cpp='$CPP $CPPFLAGS'
22677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22680
22681
22682 fi
22683
22684   fi
22685   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
22686 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
22687   if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
22688     echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
22689 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
22690     if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
22691       if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
22692   echo $ECHO_N "(cached) $ECHO_C" >&6
22693 else
22694
22695         cat >conftest.$ac_ext <<_ACEOF
22696 #line $LINENO "configure"
22697 /* confdefs.h.  */
22698 _ACEOF
22699 cat confdefs.h >>conftest.$ac_ext
22700 cat >>conftest.$ac_ext <<_ACEOF
22701 /* end confdefs.h.  */
22702 #include <math.h>
22703 int
22704 main ()
22705 {
22706  __builtin_sqrtl(0);
22707   ;
22708   return 0;
22709 }
22710 _ACEOF
22711 rm -f conftest.$ac_objext conftest$ac_exeext
22712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22713   (eval $ac_link) 2>&5
22714   ac_status=$?
22715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716   (exit $ac_status); } &&
22717          { ac_try='test -s conftest$ac_exeext'
22718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719   (eval $ac_try) 2>&5
22720   ac_status=$?
22721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722   (exit $ac_status); }; }; then
22723   glibcxx_cv_func___builtin_sqrtl_link=yes
22724 else
22725   echo "$as_me: failed program was:" >&5
22726 sed 's/^/| /' conftest.$ac_ext >&5
22727
22728 glibcxx_cv_func___builtin_sqrtl_link=no
22729 fi
22730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22731
22732 fi
22733
22734     fi
22735     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
22736 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
22737     if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
22738       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22739       cat >>confdefs.h <<_ACEOF
22740 #define ${ac_tr_func} 1
22741 _ACEOF
22742
22743     fi
22744   fi
22745
22746
22747
22748   echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
22749 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
22750   if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
22751     if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
22752   echo $ECHO_N "(cached) $ECHO_C" >&6
22753 else
22754
22755
22756
22757       ac_ext=cc
22758 ac_cpp='$CXXCPP $CPPFLAGS'
22759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22762
22763       cat >conftest.$ac_ext <<_ACEOF
22764 #line $LINENO "configure"
22765 /* confdefs.h.  */
22766 _ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h.  */
22770 #include <math.h>
22771 int
22772 main ()
22773 {
22774  __builtin_sinf(0);
22775   ;
22776   return 0;
22777 }
22778 _ACEOF
22779 rm -f conftest.$ac_objext
22780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22781   (eval $ac_compile) 2>&5
22782   ac_status=$?
22783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784   (exit $ac_status); } &&
22785          { ac_try='test -s conftest.$ac_objext'
22786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22787   (eval $ac_try) 2>&5
22788   ac_status=$?
22789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790   (exit $ac_status); }; }; then
22791   glibcxx_cv_func___builtin_sinf_use=yes
22792 else
22793   echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22795
22796 glibcxx_cv_func___builtin_sinf_use=no
22797 fi
22798 rm -f conftest.$ac_objext conftest.$ac_ext
22799       ac_ext=c
22800 ac_cpp='$CPP $CPPFLAGS'
22801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22804
22805
22806 fi
22807
22808   fi
22809   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
22810 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
22811   if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
22812     echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
22813 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
22814     if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
22815       if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
22816   echo $ECHO_N "(cached) $ECHO_C" >&6
22817 else
22818
22819         cat >conftest.$ac_ext <<_ACEOF
22820 #line $LINENO "configure"
22821 /* confdefs.h.  */
22822 _ACEOF
22823 cat confdefs.h >>conftest.$ac_ext
22824 cat >>conftest.$ac_ext <<_ACEOF
22825 /* end confdefs.h.  */
22826 #include <math.h>
22827 int
22828 main ()
22829 {
22830  __builtin_sinf(0);
22831   ;
22832   return 0;
22833 }
22834 _ACEOF
22835 rm -f conftest.$ac_objext conftest$ac_exeext
22836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22837   (eval $ac_link) 2>&5
22838   ac_status=$?
22839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840   (exit $ac_status); } &&
22841          { ac_try='test -s conftest$ac_exeext'
22842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843   (eval $ac_try) 2>&5
22844   ac_status=$?
22845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846   (exit $ac_status); }; }; then
22847   glibcxx_cv_func___builtin_sinf_link=yes
22848 else
22849   echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22851
22852 glibcxx_cv_func___builtin_sinf_link=no
22853 fi
22854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22855
22856 fi
22857
22858     fi
22859     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
22860 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
22861     if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
22862       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22863       cat >>confdefs.h <<_ACEOF
22864 #define ${ac_tr_func} 1
22865 _ACEOF
22866
22867     fi
22868   fi
22869
22870
22871   echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
22872 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
22873   if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
22874     if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
22875   echo $ECHO_N "(cached) $ECHO_C" >&6
22876 else
22877
22878
22879
22880       ac_ext=cc
22881 ac_cpp='$CXXCPP $CPPFLAGS'
22882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22885
22886       cat >conftest.$ac_ext <<_ACEOF
22887 #line $LINENO "configure"
22888 /* confdefs.h.  */
22889 _ACEOF
22890 cat confdefs.h >>conftest.$ac_ext
22891 cat >>conftest.$ac_ext <<_ACEOF
22892 /* end confdefs.h.  */
22893 #include <math.h>
22894 int
22895 main ()
22896 {
22897  __builtin_sin(0);
22898   ;
22899   return 0;
22900 }
22901 _ACEOF
22902 rm -f conftest.$ac_objext
22903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22904   (eval $ac_compile) 2>&5
22905   ac_status=$?
22906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907   (exit $ac_status); } &&
22908          { ac_try='test -s conftest.$ac_objext'
22909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22910   (eval $ac_try) 2>&5
22911   ac_status=$?
22912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913   (exit $ac_status); }; }; then
22914   glibcxx_cv_func___builtin_sin_use=yes
22915 else
22916   echo "$as_me: failed program was:" >&5
22917 sed 's/^/| /' conftest.$ac_ext >&5
22918
22919 glibcxx_cv_func___builtin_sin_use=no
22920 fi
22921 rm -f conftest.$ac_objext conftest.$ac_ext
22922       ac_ext=c
22923 ac_cpp='$CPP $CPPFLAGS'
22924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22927
22928
22929 fi
22930
22931   fi
22932   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
22933 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
22934   if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
22935     echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
22936 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
22937     if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
22938       if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
22939   echo $ECHO_N "(cached) $ECHO_C" >&6
22940 else
22941
22942         cat >conftest.$ac_ext <<_ACEOF
22943 #line $LINENO "configure"
22944 /* confdefs.h.  */
22945 _ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h.  */
22949 #include <math.h>
22950 int
22951 main ()
22952 {
22953  __builtin_sin(0);
22954   ;
22955   return 0;
22956 }
22957 _ACEOF
22958 rm -f conftest.$ac_objext conftest$ac_exeext
22959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22960   (eval $ac_link) 2>&5
22961   ac_status=$?
22962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963   (exit $ac_status); } &&
22964          { ac_try='test -s conftest$ac_exeext'
22965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22966   (eval $ac_try) 2>&5
22967   ac_status=$?
22968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969   (exit $ac_status); }; }; then
22970   glibcxx_cv_func___builtin_sin_link=yes
22971 else
22972   echo "$as_me: failed program was:" >&5
22973 sed 's/^/| /' conftest.$ac_ext >&5
22974
22975 glibcxx_cv_func___builtin_sin_link=no
22976 fi
22977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22978
22979 fi
22980
22981     fi
22982     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
22983 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
22984     if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
22985       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22986       cat >>confdefs.h <<_ACEOF
22987 #define ${ac_tr_func} 1
22988 _ACEOF
22989
22990     fi
22991   fi
22992
22993
22994   echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
22995 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
22996   if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
22997     if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
22998   echo $ECHO_N "(cached) $ECHO_C" >&6
22999 else
23000
23001
23002
23003       ac_ext=cc
23004 ac_cpp='$CXXCPP $CPPFLAGS'
23005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23008
23009       cat >conftest.$ac_ext <<_ACEOF
23010 #line $LINENO "configure"
23011 /* confdefs.h.  */
23012 _ACEOF
23013 cat confdefs.h >>conftest.$ac_ext
23014 cat >>conftest.$ac_ext <<_ACEOF
23015 /* end confdefs.h.  */
23016 #include <math.h>
23017 int
23018 main ()
23019 {
23020  __builtin_sinl(0);
23021   ;
23022   return 0;
23023 }
23024 _ACEOF
23025 rm -f conftest.$ac_objext
23026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23027   (eval $ac_compile) 2>&5
23028   ac_status=$?
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); } &&
23031          { ac_try='test -s conftest.$ac_objext'
23032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033   (eval $ac_try) 2>&5
23034   ac_status=$?
23035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036   (exit $ac_status); }; }; then
23037   glibcxx_cv_func___builtin_sinl_use=yes
23038 else
23039   echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23041
23042 glibcxx_cv_func___builtin_sinl_use=no
23043 fi
23044 rm -f conftest.$ac_objext conftest.$ac_ext
23045       ac_ext=c
23046 ac_cpp='$CPP $CPPFLAGS'
23047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23050
23051
23052 fi
23053
23054   fi
23055   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
23056 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
23057   if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
23058     echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
23059 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
23060     if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
23061       if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
23062   echo $ECHO_N "(cached) $ECHO_C" >&6
23063 else
23064
23065         cat >conftest.$ac_ext <<_ACEOF
23066 #line $LINENO "configure"
23067 /* confdefs.h.  */
23068 _ACEOF
23069 cat confdefs.h >>conftest.$ac_ext
23070 cat >>conftest.$ac_ext <<_ACEOF
23071 /* end confdefs.h.  */
23072 #include <math.h>
23073 int
23074 main ()
23075 {
23076  __builtin_sinl(0);
23077   ;
23078   return 0;
23079 }
23080 _ACEOF
23081 rm -f conftest.$ac_objext conftest$ac_exeext
23082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23083   (eval $ac_link) 2>&5
23084   ac_status=$?
23085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086   (exit $ac_status); } &&
23087          { ac_try='test -s conftest$ac_exeext'
23088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089   (eval $ac_try) 2>&5
23090   ac_status=$?
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); }; }; then
23093   glibcxx_cv_func___builtin_sinl_link=yes
23094 else
23095   echo "$as_me: failed program was:" >&5
23096 sed 's/^/| /' conftest.$ac_ext >&5
23097
23098 glibcxx_cv_func___builtin_sinl_link=no
23099 fi
23100 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23101
23102 fi
23103
23104     fi
23105     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
23106 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
23107     if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
23108       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23109       cat >>confdefs.h <<_ACEOF
23110 #define ${ac_tr_func} 1
23111 _ACEOF
23112
23113     fi
23114   fi
23115
23116
23117
23118   echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
23119 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
23120   if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
23121     if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
23122   echo $ECHO_N "(cached) $ECHO_C" >&6
23123 else
23124
23125
23126
23127       ac_ext=cc
23128 ac_cpp='$CXXCPP $CPPFLAGS'
23129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23132
23133       cat >conftest.$ac_ext <<_ACEOF
23134 #line $LINENO "configure"
23135 /* confdefs.h.  */
23136 _ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h.  */
23140 #include <math.h>
23141 int
23142 main ()
23143 {
23144  __builtin_cosf(0);
23145   ;
23146   return 0;
23147 }
23148 _ACEOF
23149 rm -f conftest.$ac_objext
23150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23151   (eval $ac_compile) 2>&5
23152   ac_status=$?
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); } &&
23155          { ac_try='test -s conftest.$ac_objext'
23156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157   (eval $ac_try) 2>&5
23158   ac_status=$?
23159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160   (exit $ac_status); }; }; then
23161   glibcxx_cv_func___builtin_cosf_use=yes
23162 else
23163   echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23165
23166 glibcxx_cv_func___builtin_cosf_use=no
23167 fi
23168 rm -f conftest.$ac_objext conftest.$ac_ext
23169       ac_ext=c
23170 ac_cpp='$CPP $CPPFLAGS'
23171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23174
23175
23176 fi
23177
23178   fi
23179   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
23180 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
23181   if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
23182     echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
23183 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
23184     if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
23185       if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
23186   echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188
23189         cat >conftest.$ac_ext <<_ACEOF
23190 #line $LINENO "configure"
23191 /* confdefs.h.  */
23192 _ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h.  */
23196 #include <math.h>
23197 int
23198 main ()
23199 {
23200  __builtin_cosf(0);
23201   ;
23202   return 0;
23203 }
23204 _ACEOF
23205 rm -f conftest.$ac_objext conftest$ac_exeext
23206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23207   (eval $ac_link) 2>&5
23208   ac_status=$?
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); } &&
23211          { ac_try='test -s conftest$ac_exeext'
23212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213   (eval $ac_try) 2>&5
23214   ac_status=$?
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); }; }; then
23217   glibcxx_cv_func___builtin_cosf_link=yes
23218 else
23219   echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23221
23222 glibcxx_cv_func___builtin_cosf_link=no
23223 fi
23224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23225
23226 fi
23227
23228     fi
23229     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
23230 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
23231     if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
23232       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23233       cat >>confdefs.h <<_ACEOF
23234 #define ${ac_tr_func} 1
23235 _ACEOF
23236
23237     fi
23238   fi
23239
23240
23241   echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
23242 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
23243   if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
23244     if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
23245   echo $ECHO_N "(cached) $ECHO_C" >&6
23246 else
23247
23248
23249
23250       ac_ext=cc
23251 ac_cpp='$CXXCPP $CPPFLAGS'
23252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23255
23256       cat >conftest.$ac_ext <<_ACEOF
23257 #line $LINENO "configure"
23258 /* confdefs.h.  */
23259 _ACEOF
23260 cat confdefs.h >>conftest.$ac_ext
23261 cat >>conftest.$ac_ext <<_ACEOF
23262 /* end confdefs.h.  */
23263 #include <math.h>
23264 int
23265 main ()
23266 {
23267  __builtin_cos(0);
23268   ;
23269   return 0;
23270 }
23271 _ACEOF
23272 rm -f conftest.$ac_objext
23273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23274   (eval $ac_compile) 2>&5
23275   ac_status=$?
23276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277   (exit $ac_status); } &&
23278          { ac_try='test -s conftest.$ac_objext'
23279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23280   (eval $ac_try) 2>&5
23281   ac_status=$?
23282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283   (exit $ac_status); }; }; then
23284   glibcxx_cv_func___builtin_cos_use=yes
23285 else
23286   echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23288
23289 glibcxx_cv_func___builtin_cos_use=no
23290 fi
23291 rm -f conftest.$ac_objext conftest.$ac_ext
23292       ac_ext=c
23293 ac_cpp='$CPP $CPPFLAGS'
23294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23297
23298
23299 fi
23300
23301   fi
23302   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
23303 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
23304   if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
23305     echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
23306 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
23307     if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
23308       if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
23309   echo $ECHO_N "(cached) $ECHO_C" >&6
23310 else
23311
23312         cat >conftest.$ac_ext <<_ACEOF
23313 #line $LINENO "configure"
23314 /* confdefs.h.  */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h.  */
23319 #include <math.h>
23320 int
23321 main ()
23322 {
23323  __builtin_cos(0);
23324   ;
23325   return 0;
23326 }
23327 _ACEOF
23328 rm -f conftest.$ac_objext conftest$ac_exeext
23329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23330   (eval $ac_link) 2>&5
23331   ac_status=$?
23332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); } &&
23334          { ac_try='test -s conftest$ac_exeext'
23335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336   (eval $ac_try) 2>&5
23337   ac_status=$?
23338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339   (exit $ac_status); }; }; then
23340   glibcxx_cv_func___builtin_cos_link=yes
23341 else
23342   echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23344
23345 glibcxx_cv_func___builtin_cos_link=no
23346 fi
23347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23348
23349 fi
23350
23351     fi
23352     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
23353 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
23354     if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
23355       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23356       cat >>confdefs.h <<_ACEOF
23357 #define ${ac_tr_func} 1
23358 _ACEOF
23359
23360     fi
23361   fi
23362
23363
23364   echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
23365 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
23366   if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
23367     if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
23368   echo $ECHO_N "(cached) $ECHO_C" >&6
23369 else
23370
23371
23372
23373       ac_ext=cc
23374 ac_cpp='$CXXCPP $CPPFLAGS'
23375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23378
23379       cat >conftest.$ac_ext <<_ACEOF
23380 #line $LINENO "configure"
23381 /* confdefs.h.  */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h.  */
23386 #include <math.h>
23387 int
23388 main ()
23389 {
23390  __builtin_cosl(0);
23391   ;
23392   return 0;
23393 }
23394 _ACEOF
23395 rm -f conftest.$ac_objext
23396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23397   (eval $ac_compile) 2>&5
23398   ac_status=$?
23399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400   (exit $ac_status); } &&
23401          { ac_try='test -s conftest.$ac_objext'
23402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403   (eval $ac_try) 2>&5
23404   ac_status=$?
23405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406   (exit $ac_status); }; }; then
23407   glibcxx_cv_func___builtin_cosl_use=yes
23408 else
23409   echo "$as_me: failed program was:" >&5
23410 sed 's/^/| /' conftest.$ac_ext >&5
23411
23412 glibcxx_cv_func___builtin_cosl_use=no
23413 fi
23414 rm -f conftest.$ac_objext conftest.$ac_ext
23415       ac_ext=c
23416 ac_cpp='$CPP $CPPFLAGS'
23417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23420
23421
23422 fi
23423
23424   fi
23425   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
23426 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
23427   if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
23428     echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
23429 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
23430     if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
23431       if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
23432   echo $ECHO_N "(cached) $ECHO_C" >&6
23433 else
23434
23435         cat >conftest.$ac_ext <<_ACEOF
23436 #line $LINENO "configure"
23437 /* confdefs.h.  */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h.  */
23442 #include <math.h>
23443 int
23444 main ()
23445 {
23446  __builtin_cosl(0);
23447   ;
23448   return 0;
23449 }
23450 _ACEOF
23451 rm -f conftest.$ac_objext conftest$ac_exeext
23452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23453   (eval $ac_link) 2>&5
23454   ac_status=$?
23455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456   (exit $ac_status); } &&
23457          { ac_try='test -s conftest$ac_exeext'
23458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459   (eval $ac_try) 2>&5
23460   ac_status=$?
23461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462   (exit $ac_status); }; }; then
23463   glibcxx_cv_func___builtin_cosl_link=yes
23464 else
23465   echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23467
23468 glibcxx_cv_func___builtin_cosl_link=no
23469 fi
23470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23471
23472 fi
23473
23474     fi
23475     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
23476 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
23477     if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
23478       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23479       cat >>confdefs.h <<_ACEOF
23480 #define ${ac_tr_func} 1
23481 _ACEOF
23482
23483     fi
23484   fi
23485
23486
23487               dummyvar=no
23488   if test x$dummyvar = x"yes"; then
23489     cat >>confdefs.h <<\_ACEOF
23490 #define HAVE___BUILTIN_ABS 1
23491 _ACEOF
23492
23493     cat >>confdefs.h <<\_ACEOF
23494 #define HAVE___BUILTIN_LABS 1
23495 _ACEOF
23496
23497     cat >>confdefs.h <<\_ACEOF
23498 #define HAVE___BUILTIN_COS 1
23499 _ACEOF
23500
23501     cat >>confdefs.h <<\_ACEOF
23502 #define HAVE___BUILTIN_COSF 1
23503 _ACEOF
23504
23505     cat >>confdefs.h <<\_ACEOF
23506 #define HAVE___BUILTIN_COSL 1
23507 _ACEOF
23508
23509     cat >>confdefs.h <<\_ACEOF
23510 #define HAVE___BUILTIN_FABS 1
23511 _ACEOF
23512
23513     cat >>confdefs.h <<\_ACEOF
23514 #define HAVE___BUILTIN_FABSF 1
23515 _ACEOF
23516
23517     cat >>confdefs.h <<\_ACEOF
23518 #define HAVE___BUILTIN_FABSL 1
23519 _ACEOF
23520
23521     cat >>confdefs.h <<\_ACEOF
23522 #define HAVE___BUILTIN_SIN 1
23523 _ACEOF
23524
23525     cat >>confdefs.h <<\_ACEOF
23526 #define HAVE___BUILTIN_SINF 1
23527 _ACEOF
23528
23529     cat >>confdefs.h <<\_ACEOF
23530 #define HAVE___BUILTIN_SINL 1
23531 _ACEOF
23532
23533     cat >>confdefs.h <<\_ACEOF
23534 #define HAVE___BUILTIN_SQRT 1
23535 _ACEOF
23536
23537     cat >>confdefs.h <<\_ACEOF
23538 #define HAVE___BUILTIN_SQRTF 1
23539 _ACEOF
23540
23541     cat >>confdefs.h <<\_ACEOF
23542 #define HAVE___BUILTIN_SQRTL 1
23543 _ACEOF
23544
23545   fi
23546
23547
23548
23549 echo "$as_me:$LINENO: checking for main in -lm" >&5
23550 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
23551 if test "${ac_cv_lib_m_main+set}" = set; then
23552   echo $ECHO_N "(cached) $ECHO_C" >&6
23553 else
23554   ac_check_lib_save_LIBS=$LIBS
23555 LIBS="-lm  $LIBS"
23556 cat >conftest.$ac_ext <<_ACEOF
23557 #line $LINENO "configure"
23558 /* confdefs.h.  */
23559 _ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h.  */
23563
23564
23565 int
23566 main ()
23567 {
23568 main ();
23569   ;
23570   return 0;
23571 }
23572 _ACEOF
23573 rm -f conftest.$ac_objext conftest$ac_exeext
23574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23575   (eval $ac_link) 2>&5
23576   ac_status=$?
23577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578   (exit $ac_status); } &&
23579          { ac_try='test -s conftest$ac_exeext'
23580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23581   (eval $ac_try) 2>&5
23582   ac_status=$?
23583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584   (exit $ac_status); }; }; then
23585   ac_cv_lib_m_main=yes
23586 else
23587   echo "$as_me: failed program was:" >&5
23588 sed 's/^/| /' conftest.$ac_ext >&5
23589
23590 ac_cv_lib_m_main=no
23591 fi
23592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23593 LIBS=$ac_check_lib_save_LIBS
23594 fi
23595 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
23596 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
23597 if test $ac_cv_lib_m_main = yes; then
23598   cat >>confdefs.h <<_ACEOF
23599 #define HAVE_LIBM 1
23600 _ACEOF
23601
23602   LIBS="-lm $LIBS"
23603
23604 fi
23605
23606
23607
23608 for ac_func in nan copysignf
23609 do
23610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23611 echo "$as_me:$LINENO: checking for $ac_func" >&5
23612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23613 if eval "test \"\${$as_ac_var+set}\" = set"; then
23614   echo $ECHO_N "(cached) $ECHO_C" >&6
23615 else
23616   cat >conftest.$ac_ext <<_ACEOF
23617 #line $LINENO "configure"
23618 /* confdefs.h.  */
23619 _ACEOF
23620 cat confdefs.h >>conftest.$ac_ext
23621 cat >>conftest.$ac_ext <<_ACEOF
23622 /* end confdefs.h.  */
23623 /* System header to define __stub macros and hopefully few prototypes,
23624     which can conflict with char $ac_func (); below.
23625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23626     <limits.h> exists even on freestanding compilers.  */
23627 #ifdef __STDC__
23628 # include <limits.h>
23629 #else
23630 # include <assert.h>
23631 #endif
23632 /* Override any gcc2 internal prototype to avoid an error.  */
23633 #ifdef __cplusplus
23634 extern "C"
23635 {
23636 #endif
23637 /* We use char because int might match the return type of a gcc2
23638    builtin and then its argument prototype would still apply.  */
23639 char $ac_func ();
23640 /* The GNU C library defines this for functions which it implements
23641     to always fail with ENOSYS.  Some functions are actually named
23642     something starting with __ and the normal name is an alias.  */
23643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23644 choke me
23645 #else
23646 char (*f) () = $ac_func;
23647 #endif
23648 #ifdef __cplusplus
23649 }
23650 #endif
23651
23652 int
23653 main ()
23654 {
23655 return f != $ac_func;
23656   ;
23657   return 0;
23658 }
23659 _ACEOF
23660 rm -f conftest.$ac_objext conftest$ac_exeext
23661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23662   (eval $ac_link) 2>&5
23663   ac_status=$?
23664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665   (exit $ac_status); } &&
23666          { ac_try='test -s conftest$ac_exeext'
23667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23668   (eval $ac_try) 2>&5
23669   ac_status=$?
23670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671   (exit $ac_status); }; }; then
23672   eval "$as_ac_var=yes"
23673 else
23674   echo "$as_me: failed program was:" >&5
23675 sed 's/^/| /' conftest.$ac_ext >&5
23676
23677 eval "$as_ac_var=no"
23678 fi
23679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23680 fi
23681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23683 if test `eval echo '${'$as_ac_var'}'` = yes; then
23684   cat >>confdefs.h <<_ACEOF
23685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23686 _ACEOF
23687
23688 else
23689   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
23690 fi
23691 done
23692
23693
23694
23695 for ac_func in __signbit
23696 do
23697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23698 echo "$as_me:$LINENO: checking for $ac_func" >&5
23699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23700 if eval "test \"\${$as_ac_var+set}\" = set"; then
23701   echo $ECHO_N "(cached) $ECHO_C" >&6
23702 else
23703   cat >conftest.$ac_ext <<_ACEOF
23704 #line $LINENO "configure"
23705 /* confdefs.h.  */
23706 _ACEOF
23707 cat confdefs.h >>conftest.$ac_ext
23708 cat >>conftest.$ac_ext <<_ACEOF
23709 /* end confdefs.h.  */
23710 /* System header to define __stub macros and hopefully few prototypes,
23711     which can conflict with char $ac_func (); below.
23712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23713     <limits.h> exists even on freestanding compilers.  */
23714 #ifdef __STDC__
23715 # include <limits.h>
23716 #else
23717 # include <assert.h>
23718 #endif
23719 /* Override any gcc2 internal prototype to avoid an error.  */
23720 #ifdef __cplusplus
23721 extern "C"
23722 {
23723 #endif
23724 /* We use char because int might match the return type of a gcc2
23725    builtin and then its argument prototype would still apply.  */
23726 char $ac_func ();
23727 /* The GNU C library defines this for functions which it implements
23728     to always fail with ENOSYS.  Some functions are actually named
23729     something starting with __ and the normal name is an alias.  */
23730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23731 choke me
23732 #else
23733 char (*f) () = $ac_func;
23734 #endif
23735 #ifdef __cplusplus
23736 }
23737 #endif
23738
23739 int
23740 main ()
23741 {
23742 return f != $ac_func;
23743   ;
23744   return 0;
23745 }
23746 _ACEOF
23747 rm -f conftest.$ac_objext conftest$ac_exeext
23748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23749   (eval $ac_link) 2>&5
23750   ac_status=$?
23751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752   (exit $ac_status); } &&
23753          { ac_try='test -s conftest$ac_exeext'
23754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23755   (eval $ac_try) 2>&5
23756   ac_status=$?
23757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758   (exit $ac_status); }; }; then
23759   eval "$as_ac_var=yes"
23760 else
23761   echo "$as_me: failed program was:" >&5
23762 sed 's/^/| /' conftest.$ac_ext >&5
23763
23764 eval "$as_ac_var=no"
23765 fi
23766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23767 fi
23768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23770 if test `eval echo '${'$as_ac_var'}'` = yes; then
23771   cat >>confdefs.h <<_ACEOF
23772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23773 _ACEOF
23774
23775 else
23776   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
23777 fi
23778 done
23779
23780
23781 for ac_func in __signbitf
23782 do
23783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23784 echo "$as_me:$LINENO: checking for $ac_func" >&5
23785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23786 if eval "test \"\${$as_ac_var+set}\" = set"; then
23787   echo $ECHO_N "(cached) $ECHO_C" >&6
23788 else
23789   cat >conftest.$ac_ext <<_ACEOF
23790 #line $LINENO "configure"
23791 /* confdefs.h.  */
23792 _ACEOF
23793 cat confdefs.h >>conftest.$ac_ext
23794 cat >>conftest.$ac_ext <<_ACEOF
23795 /* end confdefs.h.  */
23796 /* System header to define __stub macros and hopefully few prototypes,
23797     which can conflict with char $ac_func (); below.
23798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23799     <limits.h> exists even on freestanding compilers.  */
23800 #ifdef __STDC__
23801 # include <limits.h>
23802 #else
23803 # include <assert.h>
23804 #endif
23805 /* Override any gcc2 internal prototype to avoid an error.  */
23806 #ifdef __cplusplus
23807 extern "C"
23808 {
23809 #endif
23810 /* We use char because int might match the return type of a gcc2
23811    builtin and then its argument prototype would still apply.  */
23812 char $ac_func ();
23813 /* The GNU C library defines this for functions which it implements
23814     to always fail with ENOSYS.  Some functions are actually named
23815     something starting with __ and the normal name is an alias.  */
23816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23817 choke me
23818 #else
23819 char (*f) () = $ac_func;
23820 #endif
23821 #ifdef __cplusplus
23822 }
23823 #endif
23824
23825 int
23826 main ()
23827 {
23828 return f != $ac_func;
23829   ;
23830   return 0;
23831 }
23832 _ACEOF
23833 rm -f conftest.$ac_objext conftest$ac_exeext
23834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23835   (eval $ac_link) 2>&5
23836   ac_status=$?
23837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838   (exit $ac_status); } &&
23839          { ac_try='test -s conftest$ac_exeext'
23840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23841   (eval $ac_try) 2>&5
23842   ac_status=$?
23843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844   (exit $ac_status); }; }; then
23845   eval "$as_ac_var=yes"
23846 else
23847   echo "$as_me: failed program was:" >&5
23848 sed 's/^/| /' conftest.$ac_ext >&5
23849
23850 eval "$as_ac_var=no"
23851 fi
23852 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23853 fi
23854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23856 if test `eval echo '${'$as_ac_var'}'` = yes; then
23857   cat >>confdefs.h <<_ACEOF
23858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23859 _ACEOF
23860
23861 else
23862   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
23863 fi
23864 done
23865
23866
23867           if test x$ac_cv_func_copysignl = x"yes"; then
23868
23869 for ac_func in __signbitl
23870 do
23871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23872 echo "$as_me:$LINENO: checking for $ac_func" >&5
23873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23874 if eval "test \"\${$as_ac_var+set}\" = set"; then
23875   echo $ECHO_N "(cached) $ECHO_C" >&6
23876 else
23877   cat >conftest.$ac_ext <<_ACEOF
23878 #line $LINENO "configure"
23879 /* confdefs.h.  */
23880 _ACEOF
23881 cat confdefs.h >>conftest.$ac_ext
23882 cat >>conftest.$ac_ext <<_ACEOF
23883 /* end confdefs.h.  */
23884 /* System header to define __stub macros and hopefully few prototypes,
23885     which can conflict with char $ac_func (); below.
23886     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23887     <limits.h> exists even on freestanding compilers.  */
23888 #ifdef __STDC__
23889 # include <limits.h>
23890 #else
23891 # include <assert.h>
23892 #endif
23893 /* Override any gcc2 internal prototype to avoid an error.  */
23894 #ifdef __cplusplus
23895 extern "C"
23896 {
23897 #endif
23898 /* We use char because int might match the return type of a gcc2
23899    builtin and then its argument prototype would still apply.  */
23900 char $ac_func ();
23901 /* The GNU C library defines this for functions which it implements
23902     to always fail with ENOSYS.  Some functions are actually named
23903     something starting with __ and the normal name is an alias.  */
23904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23905 choke me
23906 #else
23907 char (*f) () = $ac_func;
23908 #endif
23909 #ifdef __cplusplus
23910 }
23911 #endif
23912
23913 int
23914 main ()
23915 {
23916 return f != $ac_func;
23917   ;
23918   return 0;
23919 }
23920 _ACEOF
23921 rm -f conftest.$ac_objext conftest$ac_exeext
23922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23923   (eval $ac_link) 2>&5
23924   ac_status=$?
23925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926   (exit $ac_status); } &&
23927          { ac_try='test -s conftest$ac_exeext'
23928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23929   (eval $ac_try) 2>&5
23930   ac_status=$?
23931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932   (exit $ac_status); }; }; then
23933   eval "$as_ac_var=yes"
23934 else
23935   echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23937
23938 eval "$as_ac_var=no"
23939 fi
23940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23941 fi
23942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23944 if test `eval echo '${'$as_ac_var'}'` = yes; then
23945   cat >>confdefs.h <<_ACEOF
23946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23947 _ACEOF
23948
23949 else
23950   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
23951 fi
23952 done
23953
23954   fi
23955
23956   # XXX Review this.  Nothing uses it.
23957   if test -n "$LIBMATHOBJS"; then
23958     need_libmath=yes
23959   fi
23960
23961
23962
23963   # Test wchar.h for mbstate_t, which is needed for char_traits and
23964   # others even if wchar_t support is not on.
23965   echo "$as_me:$LINENO: checking for mbstate_t" >&5
23966 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
23967   cat >conftest.$ac_ext <<_ACEOF
23968 #line $LINENO "configure"
23969 /* confdefs.h.  */
23970 _ACEOF
23971 cat confdefs.h >>conftest.$ac_ext
23972 cat >>conftest.$ac_ext <<_ACEOF
23973 /* end confdefs.h.  */
23974 #include <wchar.h>
23975 int
23976 main ()
23977 {
23978 mbstate_t teststate;
23979   ;
23980   return 0;
23981 }
23982 _ACEOF
23983 rm -f conftest.$ac_objext
23984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23985   (eval $ac_compile) 2>&5
23986   ac_status=$?
23987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23988   (exit $ac_status); } &&
23989          { ac_try='test -s conftest.$ac_objext'
23990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23991   (eval $ac_try) 2>&5
23992   ac_status=$?
23993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994   (exit $ac_status); }; }; then
23995   have_mbstate_t=yes
23996 else
23997   echo "$as_me: failed program was:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
23999
24000 have_mbstate_t=no
24001 fi
24002 rm -f conftest.$ac_objext conftest.$ac_ext
24003   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
24004 echo "${ECHO_T}$have_mbstate_t" >&6
24005   if test x"$have_mbstate_t" = xyes; then
24006     cat >>confdefs.h <<\_ACEOF
24007 #define HAVE_MBSTATE_T 1
24008 _ACEOF
24009
24010   fi
24011
24012   # Sanity check for existence of ISO C99 headers for extended encoding.
24013
24014 for ac_header in wchar.h
24015 do
24016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24018   echo "$as_me:$LINENO: checking for $ac_header" >&5
24019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24021   echo $ECHO_N "(cached) $ECHO_C" >&6
24022 fi
24023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24025 else
24026   # Is the header compilable?
24027 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24029 cat >conftest.$ac_ext <<_ACEOF
24030 #line $LINENO "configure"
24031 /* confdefs.h.  */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h.  */
24036 $ac_includes_default
24037 #include <$ac_header>
24038 _ACEOF
24039 rm -f conftest.$ac_objext
24040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24041   (eval $ac_compile) 2>&5
24042   ac_status=$?
24043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044   (exit $ac_status); } &&
24045          { ac_try='test -s conftest.$ac_objext'
24046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24047   (eval $ac_try) 2>&5
24048   ac_status=$?
24049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050   (exit $ac_status); }; }; then
24051   ac_header_compiler=yes
24052 else
24053   echo "$as_me: failed program was:" >&5
24054 sed 's/^/| /' conftest.$ac_ext >&5
24055
24056 ac_header_compiler=no
24057 fi
24058 rm -f conftest.$ac_objext conftest.$ac_ext
24059 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24060 echo "${ECHO_T}$ac_header_compiler" >&6
24061
24062 # Is the header present?
24063 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24065 cat >conftest.$ac_ext <<_ACEOF
24066 #line $LINENO "configure"
24067 /* confdefs.h.  */
24068 _ACEOF
24069 cat confdefs.h >>conftest.$ac_ext
24070 cat >>conftest.$ac_ext <<_ACEOF
24071 /* end confdefs.h.  */
24072 #include <$ac_header>
24073 _ACEOF
24074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24075   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24076   ac_status=$?
24077   grep -v '^ *+' conftest.er1 >conftest.err
24078   rm -f conftest.er1
24079   cat conftest.err >&5
24080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081   (exit $ac_status); } >/dev/null; then
24082   if test -s conftest.err; then
24083     ac_cpp_err=$ac_c_preproc_warn_flag
24084   else
24085     ac_cpp_err=
24086   fi
24087 else
24088   ac_cpp_err=yes
24089 fi
24090 if test -z "$ac_cpp_err"; then
24091   ac_header_preproc=yes
24092 else
24093   echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24095
24096   ac_header_preproc=no
24097 fi
24098 rm -f conftest.err conftest.$ac_ext
24099 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24100 echo "${ECHO_T}$ac_header_preproc" >&6
24101
24102 # So?  What about this header?
24103 case $ac_header_compiler:$ac_header_preproc in
24104   yes:no )
24105     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24109     (
24110       cat <<\_ASBOX
24111 ## ------------------------------------ ##
24112 ## Report this to bug-autoconf@gnu.org. ##
24113 ## ------------------------------------ ##
24114 _ASBOX
24115     ) |
24116       sed "s/^/$as_me: WARNING:     /" >&2
24117     ;;
24118   no:yes )
24119     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24121     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24122 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24125     (
24126       cat <<\_ASBOX
24127 ## ------------------------------------ ##
24128 ## Report this to bug-autoconf@gnu.org. ##
24129 ## ------------------------------------ ##
24130 _ASBOX
24131     ) |
24132       sed "s/^/$as_me: WARNING:     /" >&2
24133     ;;
24134 esac
24135 echo "$as_me:$LINENO: checking for $ac_header" >&5
24136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24138   echo $ECHO_N "(cached) $ECHO_C" >&6
24139 else
24140   eval "$as_ac_Header=$ac_header_preproc"
24141 fi
24142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24144
24145 fi
24146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24147   cat >>confdefs.h <<_ACEOF
24148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24149 _ACEOF
24150  ac_has_wchar_h=yes
24151 else
24152   ac_has_wchar_h=no
24153 fi
24154
24155 done
24156
24157
24158 for ac_header in wctype.h
24159 do
24160 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24161 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24162   echo "$as_me:$LINENO: checking for $ac_header" >&5
24163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24165   echo $ECHO_N "(cached) $ECHO_C" >&6
24166 fi
24167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24169 else
24170   # Is the header compilable?
24171 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24173 cat >conftest.$ac_ext <<_ACEOF
24174 #line $LINENO "configure"
24175 /* confdefs.h.  */
24176 _ACEOF
24177 cat confdefs.h >>conftest.$ac_ext
24178 cat >>conftest.$ac_ext <<_ACEOF
24179 /* end confdefs.h.  */
24180 $ac_includes_default
24181 #include <$ac_header>
24182 _ACEOF
24183 rm -f conftest.$ac_objext
24184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24185   (eval $ac_compile) 2>&5
24186   ac_status=$?
24187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188   (exit $ac_status); } &&
24189          { ac_try='test -s conftest.$ac_objext'
24190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24191   (eval $ac_try) 2>&5
24192   ac_status=$?
24193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194   (exit $ac_status); }; }; then
24195   ac_header_compiler=yes
24196 else
24197   echo "$as_me: failed program was:" >&5
24198 sed 's/^/| /' conftest.$ac_ext >&5
24199
24200 ac_header_compiler=no
24201 fi
24202 rm -f conftest.$ac_objext conftest.$ac_ext
24203 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24204 echo "${ECHO_T}$ac_header_compiler" >&6
24205
24206 # Is the header present?
24207 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24209 cat >conftest.$ac_ext <<_ACEOF
24210 #line $LINENO "configure"
24211 /* confdefs.h.  */
24212 _ACEOF
24213 cat confdefs.h >>conftest.$ac_ext
24214 cat >>conftest.$ac_ext <<_ACEOF
24215 /* end confdefs.h.  */
24216 #include <$ac_header>
24217 _ACEOF
24218 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24219   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24220   ac_status=$?
24221   grep -v '^ *+' conftest.er1 >conftest.err
24222   rm -f conftest.er1
24223   cat conftest.err >&5
24224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225   (exit $ac_status); } >/dev/null; then
24226   if test -s conftest.err; then
24227     ac_cpp_err=$ac_c_preproc_warn_flag
24228   else
24229     ac_cpp_err=
24230   fi
24231 else
24232   ac_cpp_err=yes
24233 fi
24234 if test -z "$ac_cpp_err"; then
24235   ac_header_preproc=yes
24236 else
24237   echo "$as_me: failed program was:" >&5
24238 sed 's/^/| /' conftest.$ac_ext >&5
24239
24240   ac_header_preproc=no
24241 fi
24242 rm -f conftest.err conftest.$ac_ext
24243 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24244 echo "${ECHO_T}$ac_header_preproc" >&6
24245
24246 # So?  What about this header?
24247 case $ac_header_compiler:$ac_header_preproc in
24248   yes:no )
24249     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24253     (
24254       cat <<\_ASBOX
24255 ## ------------------------------------ ##
24256 ## Report this to bug-autoconf@gnu.org. ##
24257 ## ------------------------------------ ##
24258 _ASBOX
24259     ) |
24260       sed "s/^/$as_me: WARNING:     /" >&2
24261     ;;
24262   no:yes )
24263     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24265     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24267     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24269     (
24270       cat <<\_ASBOX
24271 ## ------------------------------------ ##
24272 ## Report this to bug-autoconf@gnu.org. ##
24273 ## ------------------------------------ ##
24274 _ASBOX
24275     ) |
24276       sed "s/^/$as_me: WARNING:     /" >&2
24277     ;;
24278 esac
24279 echo "$as_me:$LINENO: checking for $ac_header" >&5
24280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24282   echo $ECHO_N "(cached) $ECHO_C" >&6
24283 else
24284   eval "$as_ac_Header=$ac_header_preproc"
24285 fi
24286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24288
24289 fi
24290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24291   cat >>confdefs.h <<_ACEOF
24292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24293 _ACEOF
24294  ac_has_wctype_h=yes
24295 else
24296   ac_has_wctype_h=no
24297 fi
24298
24299 done
24300
24301
24302   # Only continue checking if the ISO C99 headers exist and support is on.
24303   if test x"$ac_has_wchar_h" = xyes &&
24304      test x"$ac_has_wctype_h" = xyes &&
24305      test x"$enable_c_mbchar" != xno; then
24306
24307     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
24308     # numeric_limits can instantiate type_traits<wchar_t>
24309     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
24310 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
24311     cat >conftest.$ac_ext <<_ACEOF
24312 #line $LINENO "configure"
24313 /* confdefs.h.  */
24314 _ACEOF
24315 cat confdefs.h >>conftest.$ac_ext
24316 cat >>conftest.$ac_ext <<_ACEOF
24317 /* end confdefs.h.  */
24318 #include <wchar.h>
24319 int
24320 main ()
24321 {
24322 int i = WCHAR_MIN; int j = WCHAR_MAX;
24323   ;
24324   return 0;
24325 }
24326 _ACEOF
24327 rm -f conftest.$ac_objext
24328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24329   (eval $ac_compile) 2>&5
24330   ac_status=$?
24331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332   (exit $ac_status); } &&
24333          { ac_try='test -s conftest.$ac_objext'
24334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24335   (eval $ac_try) 2>&5
24336   ac_status=$?
24337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338   (exit $ac_status); }; }; then
24339   has_wchar_minmax=yes
24340 else
24341   echo "$as_me: failed program was:" >&5
24342 sed 's/^/| /' conftest.$ac_ext >&5
24343
24344 has_wchar_minmax=no
24345 fi
24346 rm -f conftest.$ac_objext conftest.$ac_ext
24347     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
24348 echo "${ECHO_T}$has_wchar_minmax" >&6
24349
24350     # Test wchar.h for WEOF, which is what we use to determine whether
24351     # to specialize for char_traits<wchar_t> or not.
24352     echo "$as_me:$LINENO: checking for WEOF" >&5
24353 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
24354     cat >conftest.$ac_ext <<_ACEOF
24355 #line $LINENO "configure"
24356 /* confdefs.h.  */
24357 _ACEOF
24358 cat confdefs.h >>conftest.$ac_ext
24359 cat >>conftest.$ac_ext <<_ACEOF
24360 /* end confdefs.h.  */
24361
24362       #include <wchar.h>
24363       #include <stddef.h>
24364 int
24365 main ()
24366 {
24367 wint_t i = WEOF;
24368   ;
24369   return 0;
24370 }
24371 _ACEOF
24372 rm -f conftest.$ac_objext
24373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24374   (eval $ac_compile) 2>&5
24375   ac_status=$?
24376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377   (exit $ac_status); } &&
24378          { ac_try='test -s conftest.$ac_objext'
24379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24380   (eval $ac_try) 2>&5
24381   ac_status=$?
24382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383   (exit $ac_status); }; }; then
24384   has_weof=yes
24385 else
24386   echo "$as_me: failed program was:" >&5
24387 sed 's/^/| /' conftest.$ac_ext >&5
24388
24389 has_weof=no
24390 fi
24391 rm -f conftest.$ac_objext conftest.$ac_ext
24392     echo "$as_me:$LINENO: result: $has_weof" >&5
24393 echo "${ECHO_T}$has_weof" >&6
24394
24395     # Tests for wide character functions used in char_traits<wchar_t>.
24396     ac_wfuncs=yes
24397
24398
24399
24400
24401
24402
24403 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
24404 do
24405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24406 echo "$as_me:$LINENO: checking for $ac_func" >&5
24407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24408 if eval "test \"\${$as_ac_var+set}\" = set"; then
24409   echo $ECHO_N "(cached) $ECHO_C" >&6
24410 else
24411   cat >conftest.$ac_ext <<_ACEOF
24412 #line $LINENO "configure"
24413 /* confdefs.h.  */
24414 _ACEOF
24415 cat confdefs.h >>conftest.$ac_ext
24416 cat >>conftest.$ac_ext <<_ACEOF
24417 /* end confdefs.h.  */
24418 /* System header to define __stub macros and hopefully few prototypes,
24419     which can conflict with char $ac_func (); below.
24420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24421     <limits.h> exists even on freestanding compilers.  */
24422 #ifdef __STDC__
24423 # include <limits.h>
24424 #else
24425 # include <assert.h>
24426 #endif
24427 /* Override any gcc2 internal prototype to avoid an error.  */
24428 #ifdef __cplusplus
24429 extern "C"
24430 {
24431 #endif
24432 /* We use char because int might match the return type of a gcc2
24433    builtin and then its argument prototype would still apply.  */
24434 char $ac_func ();
24435 /* The GNU C library defines this for functions which it implements
24436     to always fail with ENOSYS.  Some functions are actually named
24437     something starting with __ and the normal name is an alias.  */
24438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24439 choke me
24440 #else
24441 char (*f) () = $ac_func;
24442 #endif
24443 #ifdef __cplusplus
24444 }
24445 #endif
24446
24447 int
24448 main ()
24449 {
24450 return f != $ac_func;
24451   ;
24452   return 0;
24453 }
24454 _ACEOF
24455 rm -f conftest.$ac_objext conftest$ac_exeext
24456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24457   (eval $ac_link) 2>&5
24458   ac_status=$?
24459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460   (exit $ac_status); } &&
24461          { ac_try='test -s conftest$ac_exeext'
24462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463   (eval $ac_try) 2>&5
24464   ac_status=$?
24465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466   (exit $ac_status); }; }; then
24467   eval "$as_ac_var=yes"
24468 else
24469   echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.$ac_ext >&5
24471
24472 eval "$as_ac_var=no"
24473 fi
24474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24475 fi
24476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24478 if test `eval echo '${'$as_ac_var'}'` = yes; then
24479   cat >>confdefs.h <<_ACEOF
24480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24481 _ACEOF
24482
24483 else
24484   ac_wfuncs=no
24485 fi
24486 done
24487
24488
24489     # Checks for names injected into std:: by the c_std headers.
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
24541     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
24542     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
24543     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
24544     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
24545     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
24546 do
24547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24548 echo "$as_me:$LINENO: checking for $ac_func" >&5
24549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24550 if eval "test \"\${$as_ac_var+set}\" = set"; then
24551   echo $ECHO_N "(cached) $ECHO_C" >&6
24552 else
24553   cat >conftest.$ac_ext <<_ACEOF
24554 #line $LINENO "configure"
24555 /* confdefs.h.  */
24556 _ACEOF
24557 cat confdefs.h >>conftest.$ac_ext
24558 cat >>conftest.$ac_ext <<_ACEOF
24559 /* end confdefs.h.  */
24560 /* System header to define __stub macros and hopefully few prototypes,
24561     which can conflict with char $ac_func (); below.
24562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24563     <limits.h> exists even on freestanding compilers.  */
24564 #ifdef __STDC__
24565 # include <limits.h>
24566 #else
24567 # include <assert.h>
24568 #endif
24569 /* Override any gcc2 internal prototype to avoid an error.  */
24570 #ifdef __cplusplus
24571 extern "C"
24572 {
24573 #endif
24574 /* We use char because int might match the return type of a gcc2
24575    builtin and then its argument prototype would still apply.  */
24576 char $ac_func ();
24577 /* The GNU C library defines this for functions which it implements
24578     to always fail with ENOSYS.  Some functions are actually named
24579     something starting with __ and the normal name is an alias.  */
24580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24581 choke me
24582 #else
24583 char (*f) () = $ac_func;
24584 #endif
24585 #ifdef __cplusplus
24586 }
24587 #endif
24588
24589 int
24590 main ()
24591 {
24592 return f != $ac_func;
24593   ;
24594   return 0;
24595 }
24596 _ACEOF
24597 rm -f conftest.$ac_objext conftest$ac_exeext
24598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24599   (eval $ac_link) 2>&5
24600   ac_status=$?
24601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602   (exit $ac_status); } &&
24603          { ac_try='test -s conftest$ac_exeext'
24604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24605   (eval $ac_try) 2>&5
24606   ac_status=$?
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); }; }; then
24609   eval "$as_ac_var=yes"
24610 else
24611   echo "$as_me: failed program was:" >&5
24612 sed 's/^/| /' conftest.$ac_ext >&5
24613
24614 eval "$as_ac_var=no"
24615 fi
24616 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24617 fi
24618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24620 if test `eval echo '${'$as_ac_var'}'` = yes; then
24621   cat >>confdefs.h <<_ACEOF
24622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24623 _ACEOF
24624
24625 else
24626   ac_wfuncs=no
24627 fi
24628 done
24629
24630
24631     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
24632 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
24633     if test x"$has_weof" = xyes &&
24634        test x"$has_wchar_minmax" = xyes &&
24635        test x"$ac_wfuncs" = xyes;
24636     then
24637       ac_isoC99_wchar_t=yes
24638     else
24639       ac_isoC99_wchar_t=no
24640     fi
24641     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
24642 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
24643
24644     # Use iconv for wchar_t to char conversions. As such, check for
24645     # X/Open Portability Guide, version 2 features (XPG2).
24646     if test "${ac_cv_header_iconv_h+set}" = set; then
24647   echo "$as_me:$LINENO: checking for iconv.h" >&5
24648 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
24649 if test "${ac_cv_header_iconv_h+set}" = set; then
24650   echo $ECHO_N "(cached) $ECHO_C" >&6
24651 fi
24652 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
24653 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
24654 else
24655   # Is the header compilable?
24656 echo "$as_me:$LINENO: checking iconv.h usability" >&5
24657 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
24658 cat >conftest.$ac_ext <<_ACEOF
24659 #line $LINENO "configure"
24660 /* confdefs.h.  */
24661 _ACEOF
24662 cat confdefs.h >>conftest.$ac_ext
24663 cat >>conftest.$ac_ext <<_ACEOF
24664 /* end confdefs.h.  */
24665 $ac_includes_default
24666 #include <iconv.h>
24667 _ACEOF
24668 rm -f conftest.$ac_objext
24669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24670   (eval $ac_compile) 2>&5
24671   ac_status=$?
24672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673   (exit $ac_status); } &&
24674          { ac_try='test -s conftest.$ac_objext'
24675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24676   (eval $ac_try) 2>&5
24677   ac_status=$?
24678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679   (exit $ac_status); }; }; then
24680   ac_header_compiler=yes
24681 else
24682   echo "$as_me: failed program was:" >&5
24683 sed 's/^/| /' conftest.$ac_ext >&5
24684
24685 ac_header_compiler=no
24686 fi
24687 rm -f conftest.$ac_objext conftest.$ac_ext
24688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24689 echo "${ECHO_T}$ac_header_compiler" >&6
24690
24691 # Is the header present?
24692 echo "$as_me:$LINENO: checking iconv.h presence" >&5
24693 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
24694 cat >conftest.$ac_ext <<_ACEOF
24695 #line $LINENO "configure"
24696 /* confdefs.h.  */
24697 _ACEOF
24698 cat confdefs.h >>conftest.$ac_ext
24699 cat >>conftest.$ac_ext <<_ACEOF
24700 /* end confdefs.h.  */
24701 #include <iconv.h>
24702 _ACEOF
24703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24704   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24705   ac_status=$?
24706   grep -v '^ *+' conftest.er1 >conftest.err
24707   rm -f conftest.er1
24708   cat conftest.err >&5
24709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710   (exit $ac_status); } >/dev/null; then
24711   if test -s conftest.err; then
24712     ac_cpp_err=$ac_c_preproc_warn_flag
24713   else
24714     ac_cpp_err=
24715   fi
24716 else
24717   ac_cpp_err=yes
24718 fi
24719 if test -z "$ac_cpp_err"; then
24720   ac_header_preproc=yes
24721 else
24722   echo "$as_me: failed program was:" >&5
24723 sed 's/^/| /' conftest.$ac_ext >&5
24724
24725   ac_header_preproc=no
24726 fi
24727 rm -f conftest.err conftest.$ac_ext
24728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24729 echo "${ECHO_T}$ac_header_preproc" >&6
24730
24731 # So?  What about this header?
24732 case $ac_header_compiler:$ac_header_preproc in
24733   yes:no )
24734     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
24735 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24736     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
24737 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
24738     (
24739       cat <<\_ASBOX
24740 ## ------------------------------------ ##
24741 ## Report this to bug-autoconf@gnu.org. ##
24742 ## ------------------------------------ ##
24743 _ASBOX
24744     ) |
24745       sed "s/^/$as_me: WARNING:     /" >&2
24746     ;;
24747   no:yes )
24748     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
24749 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
24750     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
24751 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
24752     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
24753 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
24754     (
24755       cat <<\_ASBOX
24756 ## ------------------------------------ ##
24757 ## Report this to bug-autoconf@gnu.org. ##
24758 ## ------------------------------------ ##
24759 _ASBOX
24760     ) |
24761       sed "s/^/$as_me: WARNING:     /" >&2
24762     ;;
24763 esac
24764 echo "$as_me:$LINENO: checking for iconv.h" >&5
24765 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
24766 if test "${ac_cv_header_iconv_h+set}" = set; then
24767   echo $ECHO_N "(cached) $ECHO_C" >&6
24768 else
24769   ac_cv_header_iconv_h=$ac_header_preproc
24770 fi
24771 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
24772 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
24773
24774 fi
24775 if test $ac_cv_header_iconv_h = yes; then
24776   ac_has_iconv_h=yes
24777 else
24778   ac_has_iconv_h=no
24779 fi
24780
24781
24782     if test "${ac_cv_header_langinfo_h+set}" = set; then
24783   echo "$as_me:$LINENO: checking for langinfo.h" >&5
24784 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
24785 if test "${ac_cv_header_langinfo_h+set}" = set; then
24786   echo $ECHO_N "(cached) $ECHO_C" >&6
24787 fi
24788 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
24789 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
24790 else
24791   # Is the header compilable?
24792 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
24793 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
24794 cat >conftest.$ac_ext <<_ACEOF
24795 #line $LINENO "configure"
24796 /* confdefs.h.  */
24797 _ACEOF
24798 cat confdefs.h >>conftest.$ac_ext
24799 cat >>conftest.$ac_ext <<_ACEOF
24800 /* end confdefs.h.  */
24801 $ac_includes_default
24802 #include <langinfo.h>
24803 _ACEOF
24804 rm -f conftest.$ac_objext
24805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24806   (eval $ac_compile) 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   ac_header_compiler=yes
24817 else
24818   echo "$as_me: failed program was:" >&5
24819 sed 's/^/| /' conftest.$ac_ext >&5
24820
24821 ac_header_compiler=no
24822 fi
24823 rm -f conftest.$ac_objext conftest.$ac_ext
24824 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24825 echo "${ECHO_T}$ac_header_compiler" >&6
24826
24827 # Is the header present?
24828 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
24829 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
24830 cat >conftest.$ac_ext <<_ACEOF
24831 #line $LINENO "configure"
24832 /* confdefs.h.  */
24833 _ACEOF
24834 cat confdefs.h >>conftest.$ac_ext
24835 cat >>conftest.$ac_ext <<_ACEOF
24836 /* end confdefs.h.  */
24837 #include <langinfo.h>
24838 _ACEOF
24839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24840   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24841   ac_status=$?
24842   grep -v '^ *+' conftest.er1 >conftest.err
24843   rm -f conftest.er1
24844   cat conftest.err >&5
24845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846   (exit $ac_status); } >/dev/null; then
24847   if test -s conftest.err; then
24848     ac_cpp_err=$ac_c_preproc_warn_flag
24849   else
24850     ac_cpp_err=
24851   fi
24852 else
24853   ac_cpp_err=yes
24854 fi
24855 if test -z "$ac_cpp_err"; then
24856   ac_header_preproc=yes
24857 else
24858   echo "$as_me: failed program was:" >&5
24859 sed 's/^/| /' conftest.$ac_ext >&5
24860
24861   ac_header_preproc=no
24862 fi
24863 rm -f conftest.err conftest.$ac_ext
24864 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24865 echo "${ECHO_T}$ac_header_preproc" >&6
24866
24867 # So?  What about this header?
24868 case $ac_header_compiler:$ac_header_preproc in
24869   yes:no )
24870     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
24871 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24872     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
24873 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
24874     (
24875       cat <<\_ASBOX
24876 ## ------------------------------------ ##
24877 ## Report this to bug-autoconf@gnu.org. ##
24878 ## ------------------------------------ ##
24879 _ASBOX
24880     ) |
24881       sed "s/^/$as_me: WARNING:     /" >&2
24882     ;;
24883   no:yes )
24884     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
24885 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
24886     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
24887 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
24888     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
24889 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
24890     (
24891       cat <<\_ASBOX
24892 ## ------------------------------------ ##
24893 ## Report this to bug-autoconf@gnu.org. ##
24894 ## ------------------------------------ ##
24895 _ASBOX
24896     ) |
24897       sed "s/^/$as_me: WARNING:     /" >&2
24898     ;;
24899 esac
24900 echo "$as_me:$LINENO: checking for langinfo.h" >&5
24901 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
24902 if test "${ac_cv_header_langinfo_h+set}" = set; then
24903   echo $ECHO_N "(cached) $ECHO_C" >&6
24904 else
24905   ac_cv_header_langinfo_h=$ac_header_preproc
24906 fi
24907 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
24908 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
24909
24910 fi
24911 if test $ac_cv_header_langinfo_h = yes; then
24912   ac_has_langinfo_h=yes
24913 else
24914   ac_has_langinfo_h=no
24915 fi
24916
24917
24918
24919     # Check for existence of libiconv.a providing XPG2 wchar_t support.
24920     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
24921 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
24922 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
24923   echo $ECHO_N "(cached) $ECHO_C" >&6
24924 else
24925   ac_check_lib_save_LIBS=$LIBS
24926 LIBS="-liconv  $LIBS"
24927 cat >conftest.$ac_ext <<_ACEOF
24928 #line $LINENO "configure"
24929 /* confdefs.h.  */
24930 _ACEOF
24931 cat confdefs.h >>conftest.$ac_ext
24932 cat >>conftest.$ac_ext <<_ACEOF
24933 /* end confdefs.h.  */
24934
24935 /* Override any gcc2 internal prototype to avoid an error.  */
24936 #ifdef __cplusplus
24937 extern "C"
24938 #endif
24939 /* We use char because int might match the return type of a gcc2
24940    builtin and then its argument prototype would still apply.  */
24941 char iconv ();
24942 int
24943 main ()
24944 {
24945 iconv ();
24946   ;
24947   return 0;
24948 }
24949 _ACEOF
24950 rm -f conftest.$ac_objext conftest$ac_exeext
24951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24952   (eval $ac_link) 2>&5
24953   ac_status=$?
24954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955   (exit $ac_status); } &&
24956          { ac_try='test -s conftest$ac_exeext'
24957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24958   (eval $ac_try) 2>&5
24959   ac_status=$?
24960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961   (exit $ac_status); }; }; then
24962   ac_cv_lib_iconv_iconv=yes
24963 else
24964   echo "$as_me: failed program was:" >&5
24965 sed 's/^/| /' conftest.$ac_ext >&5
24966
24967 ac_cv_lib_iconv_iconv=no
24968 fi
24969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24970 LIBS=$ac_check_lib_save_LIBS
24971 fi
24972 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
24973 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
24974 if test $ac_cv_lib_iconv_iconv = yes; then
24975   libiconv="-liconv"
24976 fi
24977
24978     ac_save_LIBS="$LIBS"
24979     LIBS="$LIBS $libiconv"
24980
24981
24982
24983
24984
24985 for ac_func in iconv_open iconv_close iconv nl_langinfo
24986 do
24987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24988 echo "$as_me:$LINENO: checking for $ac_func" >&5
24989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24990 if eval "test \"\${$as_ac_var+set}\" = set"; then
24991   echo $ECHO_N "(cached) $ECHO_C" >&6
24992 else
24993   cat >conftest.$ac_ext <<_ACEOF
24994 #line $LINENO "configure"
24995 /* confdefs.h.  */
24996 _ACEOF
24997 cat confdefs.h >>conftest.$ac_ext
24998 cat >>conftest.$ac_ext <<_ACEOF
24999 /* end confdefs.h.  */
25000 /* System header to define __stub macros and hopefully few prototypes,
25001     which can conflict with char $ac_func (); below.
25002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25003     <limits.h> exists even on freestanding compilers.  */
25004 #ifdef __STDC__
25005 # include <limits.h>
25006 #else
25007 # include <assert.h>
25008 #endif
25009 /* Override any gcc2 internal prototype to avoid an error.  */
25010 #ifdef __cplusplus
25011 extern "C"
25012 {
25013 #endif
25014 /* We use char because int might match the return type of a gcc2
25015    builtin and then its argument prototype would still apply.  */
25016 char $ac_func ();
25017 /* The GNU C library defines this for functions which it implements
25018     to always fail with ENOSYS.  Some functions are actually named
25019     something starting with __ and the normal name is an alias.  */
25020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25021 choke me
25022 #else
25023 char (*f) () = $ac_func;
25024 #endif
25025 #ifdef __cplusplus
25026 }
25027 #endif
25028
25029 int
25030 main ()
25031 {
25032 return f != $ac_func;
25033   ;
25034   return 0;
25035 }
25036 _ACEOF
25037 rm -f conftest.$ac_objext conftest$ac_exeext
25038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25039   (eval $ac_link) 2>&5
25040   ac_status=$?
25041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042   (exit $ac_status); } &&
25043          { ac_try='test -s conftest$ac_exeext'
25044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045   (eval $ac_try) 2>&5
25046   ac_status=$?
25047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048   (exit $ac_status); }; }; then
25049   eval "$as_ac_var=yes"
25050 else
25051   echo "$as_me: failed program was:" >&5
25052 sed 's/^/| /' conftest.$ac_ext >&5
25053
25054 eval "$as_ac_var=no"
25055 fi
25056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25057 fi
25058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25060 if test `eval echo '${'$as_ac_var'}'` = yes; then
25061   cat >>confdefs.h <<_ACEOF
25062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25063 _ACEOF
25064  ac_XPG2funcs=yes
25065 else
25066   ac_XPG2funcs=no
25067 fi
25068 done
25069
25070
25071     LIBS="$ac_save_LIBS"
25072
25073     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
25074 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
25075     if test x"$ac_has_iconv_h" = xyes &&
25076        test x"$ac_has_langinfo_h" = xyes &&
25077        test x"$ac_XPG2funcs" = xyes;
25078     then
25079       ac_XPG2_wchar_t=yes
25080     else
25081       ac_XPG2_wchar_t=no
25082     fi
25083     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
25084 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
25085
25086     # At the moment, only enable wchar_t specializations if all the
25087     # above support is present.
25088     if test x"$ac_isoC99_wchar_t" = xyes &&
25089        test x"$ac_XPG2_wchar_t" = xyes;
25090     then
25091       cat >>confdefs.h <<\_ACEOF
25092 #define _GLIBCXX_USE_WCHAR_T 1
25093 _ACEOF
25094
25095       enable_wchar_t=yes
25096     fi
25097   fi
25098   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
25099 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
25100   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
25101 echo "${ECHO_T}$enable_wchar_t" >&6
25102
25103
25104   ac_test_CXXFLAGS="${CXXFLAGS+set}"
25105   ac_save_CXXFLAGS="$CXXFLAGS"
25106   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
25107
25108
25109   echo "$as_me:$LINENO: checking for strtold declaration" >&5
25110 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
25111   if test x${glibcxx_cv_func_strtold_use+set} != xset; then
25112     if test "${glibcxx_cv_func_strtold_use+set}" = set; then
25113   echo $ECHO_N "(cached) $ECHO_C" >&6
25114 else
25115
25116
25117
25118       ac_ext=cc
25119 ac_cpp='$CXXCPP $CPPFLAGS'
25120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25123
25124       cat >conftest.$ac_ext <<_ACEOF
25125 #line $LINENO "configure"
25126 /* confdefs.h.  */
25127 _ACEOF
25128 cat confdefs.h >>conftest.$ac_ext
25129 cat >>conftest.$ac_ext <<_ACEOF
25130 /* end confdefs.h.  */
25131 #include <stdlib.h>
25132 int
25133 main ()
25134 {
25135  strtold(0, 0);
25136   ;
25137   return 0;
25138 }
25139 _ACEOF
25140 rm -f conftest.$ac_objext
25141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25142   (eval $ac_compile) 2>&5
25143   ac_status=$?
25144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145   (exit $ac_status); } &&
25146          { ac_try='test -s conftest.$ac_objext'
25147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148   (eval $ac_try) 2>&5
25149   ac_status=$?
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); }; }; then
25152   glibcxx_cv_func_strtold_use=yes
25153 else
25154   echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25156
25157 glibcxx_cv_func_strtold_use=no
25158 fi
25159 rm -f conftest.$ac_objext conftest.$ac_ext
25160       ac_ext=c
25161 ac_cpp='$CPP $CPPFLAGS'
25162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25165
25166
25167 fi
25168
25169   fi
25170   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
25171 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
25172   if test x$glibcxx_cv_func_strtold_use = x"yes"; then
25173
25174 for ac_func in strtold
25175 do
25176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25177 echo "$as_me:$LINENO: checking for $ac_func" >&5
25178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25179 if eval "test \"\${$as_ac_var+set}\" = set"; then
25180   echo $ECHO_N "(cached) $ECHO_C" >&6
25181 else
25182   cat >conftest.$ac_ext <<_ACEOF
25183 #line $LINENO "configure"
25184 /* confdefs.h.  */
25185 _ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h.  */
25189 /* System header to define __stub macros and hopefully few prototypes,
25190     which can conflict with char $ac_func (); below.
25191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25192     <limits.h> exists even on freestanding compilers.  */
25193 #ifdef __STDC__
25194 # include <limits.h>
25195 #else
25196 # include <assert.h>
25197 #endif
25198 /* Override any gcc2 internal prototype to avoid an error.  */
25199 #ifdef __cplusplus
25200 extern "C"
25201 {
25202 #endif
25203 /* We use char because int might match the return type of a gcc2
25204    builtin and then its argument prototype would still apply.  */
25205 char $ac_func ();
25206 /* The GNU C library defines this for functions which it implements
25207     to always fail with ENOSYS.  Some functions are actually named
25208     something starting with __ and the normal name is an alias.  */
25209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25210 choke me
25211 #else
25212 char (*f) () = $ac_func;
25213 #endif
25214 #ifdef __cplusplus
25215 }
25216 #endif
25217
25218 int
25219 main ()
25220 {
25221 return f != $ac_func;
25222   ;
25223   return 0;
25224 }
25225 _ACEOF
25226 rm -f conftest.$ac_objext conftest$ac_exeext
25227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25228   (eval $ac_link) 2>&5
25229   ac_status=$?
25230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231   (exit $ac_status); } &&
25232          { ac_try='test -s conftest$ac_exeext'
25233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25234   (eval $ac_try) 2>&5
25235   ac_status=$?
25236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237   (exit $ac_status); }; }; then
25238   eval "$as_ac_var=yes"
25239 else
25240   echo "$as_me: failed program was:" >&5
25241 sed 's/^/| /' conftest.$ac_ext >&5
25242
25243 eval "$as_ac_var=no"
25244 fi
25245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25246 fi
25247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25249 if test `eval echo '${'$as_ac_var'}'` = yes; then
25250   cat >>confdefs.h <<_ACEOF
25251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25252 _ACEOF
25253
25254 fi
25255 done
25256
25257   fi
25258
25259
25260   echo "$as_me:$LINENO: checking for strtof declaration" >&5
25261 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
25262   if test x${glibcxx_cv_func_strtof_use+set} != xset; then
25263     if test "${glibcxx_cv_func_strtof_use+set}" = set; then
25264   echo $ECHO_N "(cached) $ECHO_C" >&6
25265 else
25266
25267
25268
25269       ac_ext=cc
25270 ac_cpp='$CXXCPP $CPPFLAGS'
25271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25274
25275       cat >conftest.$ac_ext <<_ACEOF
25276 #line $LINENO "configure"
25277 /* confdefs.h.  */
25278 _ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h.  */
25282 #include <stdlib.h>
25283 int
25284 main ()
25285 {
25286  strtof(0, 0);
25287   ;
25288   return 0;
25289 }
25290 _ACEOF
25291 rm -f conftest.$ac_objext
25292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25293   (eval $ac_compile) 2>&5
25294   ac_status=$?
25295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296   (exit $ac_status); } &&
25297          { ac_try='test -s conftest.$ac_objext'
25298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25299   (eval $ac_try) 2>&5
25300   ac_status=$?
25301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302   (exit $ac_status); }; }; then
25303   glibcxx_cv_func_strtof_use=yes
25304 else
25305   echo "$as_me: failed program was:" >&5
25306 sed 's/^/| /' conftest.$ac_ext >&5
25307
25308 glibcxx_cv_func_strtof_use=no
25309 fi
25310 rm -f conftest.$ac_objext conftest.$ac_ext
25311       ac_ext=c
25312 ac_cpp='$CPP $CPPFLAGS'
25313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25316
25317
25318 fi
25319
25320   fi
25321   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
25322 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
25323   if test x$glibcxx_cv_func_strtof_use = x"yes"; then
25324
25325 for ac_func in strtof
25326 do
25327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25328 echo "$as_me:$LINENO: checking for $ac_func" >&5
25329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25330 if eval "test \"\${$as_ac_var+set}\" = set"; then
25331   echo $ECHO_N "(cached) $ECHO_C" >&6
25332 else
25333   cat >conftest.$ac_ext <<_ACEOF
25334 #line $LINENO "configure"
25335 /* confdefs.h.  */
25336 _ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h.  */
25340 /* System header to define __stub macros and hopefully few prototypes,
25341     which can conflict with char $ac_func (); below.
25342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25343     <limits.h> exists even on freestanding compilers.  */
25344 #ifdef __STDC__
25345 # include <limits.h>
25346 #else
25347 # include <assert.h>
25348 #endif
25349 /* Override any gcc2 internal prototype to avoid an error.  */
25350 #ifdef __cplusplus
25351 extern "C"
25352 {
25353 #endif
25354 /* We use char because int might match the return type of a gcc2
25355    builtin and then its argument prototype would still apply.  */
25356 char $ac_func ();
25357 /* The GNU C library defines this for functions which it implements
25358     to always fail with ENOSYS.  Some functions are actually named
25359     something starting with __ and the normal name is an alias.  */
25360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25361 choke me
25362 #else
25363 char (*f) () = $ac_func;
25364 #endif
25365 #ifdef __cplusplus
25366 }
25367 #endif
25368
25369 int
25370 main ()
25371 {
25372 return f != $ac_func;
25373   ;
25374   return 0;
25375 }
25376 _ACEOF
25377 rm -f conftest.$ac_objext conftest$ac_exeext
25378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25379   (eval $ac_link) 2>&5
25380   ac_status=$?
25381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382   (exit $ac_status); } &&
25383          { ac_try='test -s conftest$ac_exeext'
25384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25385   (eval $ac_try) 2>&5
25386   ac_status=$?
25387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388   (exit $ac_status); }; }; then
25389   eval "$as_ac_var=yes"
25390 else
25391   echo "$as_me: failed program was:" >&5
25392 sed 's/^/| /' conftest.$ac_ext >&5
25393
25394 eval "$as_ac_var=no"
25395 fi
25396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25397 fi
25398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25400 if test `eval echo '${'$as_ac_var'}'` = yes; then
25401   cat >>confdefs.h <<_ACEOF
25402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25403 _ACEOF
25404
25405 fi
25406 done
25407
25408   fi
25409
25410
25411 for ac_func in drand48
25412 do
25413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25414 echo "$as_me:$LINENO: checking for $ac_func" >&5
25415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25416 if eval "test \"\${$as_ac_var+set}\" = set"; then
25417   echo $ECHO_N "(cached) $ECHO_C" >&6
25418 else
25419   cat >conftest.$ac_ext <<_ACEOF
25420 #line $LINENO "configure"
25421 /* confdefs.h.  */
25422 _ACEOF
25423 cat confdefs.h >>conftest.$ac_ext
25424 cat >>conftest.$ac_ext <<_ACEOF
25425 /* end confdefs.h.  */
25426 /* System header to define __stub macros and hopefully few prototypes,
25427     which can conflict with char $ac_func (); below.
25428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25429     <limits.h> exists even on freestanding compilers.  */
25430 #ifdef __STDC__
25431 # include <limits.h>
25432 #else
25433 # include <assert.h>
25434 #endif
25435 /* Override any gcc2 internal prototype to avoid an error.  */
25436 #ifdef __cplusplus
25437 extern "C"
25438 {
25439 #endif
25440 /* We use char because int might match the return type of a gcc2
25441    builtin and then its argument prototype would still apply.  */
25442 char $ac_func ();
25443 /* The GNU C library defines this for functions which it implements
25444     to always fail with ENOSYS.  Some functions are actually named
25445     something starting with __ and the normal name is an alias.  */
25446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25447 choke me
25448 #else
25449 char (*f) () = $ac_func;
25450 #endif
25451 #ifdef __cplusplus
25452 }
25453 #endif
25454
25455 int
25456 main ()
25457 {
25458 return f != $ac_func;
25459   ;
25460   return 0;
25461 }
25462 _ACEOF
25463 rm -f conftest.$ac_objext conftest$ac_exeext
25464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25465   (eval $ac_link) 2>&5
25466   ac_status=$?
25467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468   (exit $ac_status); } &&
25469          { ac_try='test -s conftest$ac_exeext'
25470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25471   (eval $ac_try) 2>&5
25472   ac_status=$?
25473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474   (exit $ac_status); }; }; then
25475   eval "$as_ac_var=yes"
25476 else
25477   echo "$as_me: failed program was:" >&5
25478 sed 's/^/| /' conftest.$ac_ext >&5
25479
25480 eval "$as_ac_var=no"
25481 fi
25482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25483 fi
25484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25485 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25486 if test `eval echo '${'$as_ac_var'}'` = yes; then
25487   cat >>confdefs.h <<_ACEOF
25488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25489 _ACEOF
25490
25491 fi
25492 done
25493
25494
25495   CXXFLAGS="$ac_save_CXXFLAGS"
25496
25497
25498   # For showmanyc_helper().
25499
25500
25501 for ac_header in sys/ioctl.h sys/filio.h
25502 do
25503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25505   echo "$as_me:$LINENO: checking for $ac_header" >&5
25506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25508   echo $ECHO_N "(cached) $ECHO_C" >&6
25509 fi
25510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25511 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25512 else
25513   # Is the header compilable?
25514 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25516 cat >conftest.$ac_ext <<_ACEOF
25517 #line $LINENO "configure"
25518 /* confdefs.h.  */
25519 _ACEOF
25520 cat confdefs.h >>conftest.$ac_ext
25521 cat >>conftest.$ac_ext <<_ACEOF
25522 /* end confdefs.h.  */
25523 $ac_includes_default
25524 #include <$ac_header>
25525 _ACEOF
25526 rm -f conftest.$ac_objext
25527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25528   (eval $ac_compile) 2>&5
25529   ac_status=$?
25530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531   (exit $ac_status); } &&
25532          { ac_try='test -s conftest.$ac_objext'
25533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25534   (eval $ac_try) 2>&5
25535   ac_status=$?
25536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25537   (exit $ac_status); }; }; then
25538   ac_header_compiler=yes
25539 else
25540   echo "$as_me: failed program was:" >&5
25541 sed 's/^/| /' conftest.$ac_ext >&5
25542
25543 ac_header_compiler=no
25544 fi
25545 rm -f conftest.$ac_objext conftest.$ac_ext
25546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25547 echo "${ECHO_T}$ac_header_compiler" >&6
25548
25549 # Is the header present?
25550 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25552 cat >conftest.$ac_ext <<_ACEOF
25553 #line $LINENO "configure"
25554 /* confdefs.h.  */
25555 _ACEOF
25556 cat confdefs.h >>conftest.$ac_ext
25557 cat >>conftest.$ac_ext <<_ACEOF
25558 /* end confdefs.h.  */
25559 #include <$ac_header>
25560 _ACEOF
25561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25562   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25563   ac_status=$?
25564   grep -v '^ *+' conftest.er1 >conftest.err
25565   rm -f conftest.er1
25566   cat conftest.err >&5
25567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568   (exit $ac_status); } >/dev/null; then
25569   if test -s conftest.err; then
25570     ac_cpp_err=$ac_c_preproc_warn_flag
25571   else
25572     ac_cpp_err=
25573   fi
25574 else
25575   ac_cpp_err=yes
25576 fi
25577 if test -z "$ac_cpp_err"; then
25578   ac_header_preproc=yes
25579 else
25580   echo "$as_me: failed program was:" >&5
25581 sed 's/^/| /' conftest.$ac_ext >&5
25582
25583   ac_header_preproc=no
25584 fi
25585 rm -f conftest.err conftest.$ac_ext
25586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25587 echo "${ECHO_T}$ac_header_preproc" >&6
25588
25589 # So?  What about this header?
25590 case $ac_header_compiler:$ac_header_preproc in
25591   yes:no )
25592     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25594     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25596     (
25597       cat <<\_ASBOX
25598 ## ------------------------------------ ##
25599 ## Report this to bug-autoconf@gnu.org. ##
25600 ## ------------------------------------ ##
25601 _ASBOX
25602     ) |
25603       sed "s/^/$as_me: WARNING:     /" >&2
25604     ;;
25605   no:yes )
25606     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25608     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25612     (
25613       cat <<\_ASBOX
25614 ## ------------------------------------ ##
25615 ## Report this to bug-autoconf@gnu.org. ##
25616 ## ------------------------------------ ##
25617 _ASBOX
25618     ) |
25619       sed "s/^/$as_me: WARNING:     /" >&2
25620     ;;
25621 esac
25622 echo "$as_me:$LINENO: checking for $ac_header" >&5
25623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25625   echo $ECHO_N "(cached) $ECHO_C" >&6
25626 else
25627   eval "$as_ac_Header=$ac_header_preproc"
25628 fi
25629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25631
25632 fi
25633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25634   cat >>confdefs.h <<_ACEOF
25635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25636 _ACEOF
25637
25638 fi
25639
25640 done
25641
25642
25643   if test "${glibcxx_cv_POLL+set}" = set; then
25644   echo $ECHO_N "(cached) $ECHO_C" >&6
25645 else
25646
25647     cat >conftest.$ac_ext <<_ACEOF
25648 #line $LINENO "configure"
25649 /* confdefs.h.  */
25650 _ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h.  */
25654 #include <poll.h>
25655 int
25656 main ()
25657 {
25658 struct pollfd pfd[1];
25659        pfd[0].events = POLLIN;
25660        poll(pfd, 1, 0);
25661   ;
25662   return 0;
25663 }
25664 _ACEOF
25665 rm -f conftest.$ac_objext
25666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25667   (eval $ac_compile) 2>&5
25668   ac_status=$?
25669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670   (exit $ac_status); } &&
25671          { ac_try='test -s conftest.$ac_objext'
25672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25673   (eval $ac_try) 2>&5
25674   ac_status=$?
25675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676   (exit $ac_status); }; }; then
25677   glibcxx_cv_POLL=yes
25678 else
25679   echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.$ac_ext >&5
25681
25682 glibcxx_cv_POLL=no
25683 fi
25684 rm -f conftest.$ac_objext conftest.$ac_ext
25685
25686 fi
25687
25688   if test $glibcxx_cv_POLL = yes; then
25689     cat >>confdefs.h <<\_ACEOF
25690 #define HAVE_POLL 1
25691 _ACEOF
25692
25693   fi
25694
25695
25696   if test "${glibcxx_cv_S_ISREG+set}" = set; then
25697   echo $ECHO_N "(cached) $ECHO_C" >&6
25698 else
25699
25700     cat >conftest.$ac_ext <<_ACEOF
25701 #line $LINENO "configure"
25702 /* confdefs.h.  */
25703 _ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h.  */
25707 #include <sys/stat.h>
25708 int
25709 main ()
25710 {
25711 struct stat buffer;
25712        fstat(0, &buffer);
25713        S_ISREG(buffer.st_mode);
25714   ;
25715   return 0;
25716 }
25717 _ACEOF
25718 rm -f conftest.$ac_objext conftest$ac_exeext
25719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25720   (eval $ac_link) 2>&5
25721   ac_status=$?
25722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723   (exit $ac_status); } &&
25724          { ac_try='test -s conftest$ac_exeext'
25725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25726   (eval $ac_try) 2>&5
25727   ac_status=$?
25728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729   (exit $ac_status); }; }; then
25730   glibcxx_cv_S_ISREG=yes
25731 else
25732   echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25734
25735 glibcxx_cv_S_ISREG=no
25736 fi
25737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25738
25739 fi
25740
25741   if test "${glibcxx_cv_S_IFREG+set}" = set; then
25742   echo $ECHO_N "(cached) $ECHO_C" >&6
25743 else
25744
25745     cat >conftest.$ac_ext <<_ACEOF
25746 #line $LINENO "configure"
25747 /* confdefs.h.  */
25748 _ACEOF
25749 cat confdefs.h >>conftest.$ac_ext
25750 cat >>conftest.$ac_ext <<_ACEOF
25751 /* end confdefs.h.  */
25752 #include <sys/stat.h>
25753 int
25754 main ()
25755 {
25756 struct stat buffer;
25757        fstat(0, &buffer);
25758        S_IFREG & buffer.st_mode;
25759   ;
25760   return 0;
25761 }
25762 _ACEOF
25763 rm -f conftest.$ac_objext conftest$ac_exeext
25764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25765   (eval $ac_link) 2>&5
25766   ac_status=$?
25767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768   (exit $ac_status); } &&
25769          { ac_try='test -s conftest$ac_exeext'
25770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25771   (eval $ac_try) 2>&5
25772   ac_status=$?
25773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774   (exit $ac_status); }; }; then
25775   glibcxx_cv_S_IFREG=yes
25776 else
25777   echo "$as_me: failed program was:" >&5
25778 sed 's/^/| /' conftest.$ac_ext >&5
25779
25780 glibcxx_cv_S_IFREG=no
25781 fi
25782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25783
25784 fi
25785
25786   if test $glibcxx_cv_S_ISREG = yes; then
25787     cat >>confdefs.h <<\_ACEOF
25788 #define HAVE_S_ISREG 1
25789 _ACEOF
25790
25791   elif test $glibcxx_cv_S_IFREG = yes; then
25792     cat >>confdefs.h <<\_ACEOF
25793 #define HAVE_S_IFREG 1
25794 _ACEOF
25795
25796   fi
25797
25798
25799   # For xsputn_2().
25800
25801 for ac_header in sys/uio.h
25802 do
25803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25805   echo "$as_me:$LINENO: checking for $ac_header" >&5
25806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25808   echo $ECHO_N "(cached) $ECHO_C" >&6
25809 fi
25810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25812 else
25813   # Is the header compilable?
25814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25816 cat >conftest.$ac_ext <<_ACEOF
25817 #line $LINENO "configure"
25818 /* confdefs.h.  */
25819 _ACEOF
25820 cat confdefs.h >>conftest.$ac_ext
25821 cat >>conftest.$ac_ext <<_ACEOF
25822 /* end confdefs.h.  */
25823 $ac_includes_default
25824 #include <$ac_header>
25825 _ACEOF
25826 rm -f conftest.$ac_objext
25827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25828   (eval $ac_compile) 2>&5
25829   ac_status=$?
25830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831   (exit $ac_status); } &&
25832          { ac_try='test -s conftest.$ac_objext'
25833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834   (eval $ac_try) 2>&5
25835   ac_status=$?
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); }; }; then
25838   ac_header_compiler=yes
25839 else
25840   echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25842
25843 ac_header_compiler=no
25844 fi
25845 rm -f conftest.$ac_objext conftest.$ac_ext
25846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25847 echo "${ECHO_T}$ac_header_compiler" >&6
25848
25849 # Is the header present?
25850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25852 cat >conftest.$ac_ext <<_ACEOF
25853 #line $LINENO "configure"
25854 /* confdefs.h.  */
25855 _ACEOF
25856 cat confdefs.h >>conftest.$ac_ext
25857 cat >>conftest.$ac_ext <<_ACEOF
25858 /* end confdefs.h.  */
25859 #include <$ac_header>
25860 _ACEOF
25861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25862   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25863   ac_status=$?
25864   grep -v '^ *+' conftest.er1 >conftest.err
25865   rm -f conftest.er1
25866   cat conftest.err >&5
25867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868   (exit $ac_status); } >/dev/null; then
25869   if test -s conftest.err; then
25870     ac_cpp_err=$ac_c_preproc_warn_flag
25871   else
25872     ac_cpp_err=
25873   fi
25874 else
25875   ac_cpp_err=yes
25876 fi
25877 if test -z "$ac_cpp_err"; then
25878   ac_header_preproc=yes
25879 else
25880   echo "$as_me: failed program was:" >&5
25881 sed 's/^/| /' conftest.$ac_ext >&5
25882
25883   ac_header_preproc=no
25884 fi
25885 rm -f conftest.err conftest.$ac_ext
25886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25887 echo "${ECHO_T}$ac_header_preproc" >&6
25888
25889 # So?  What about this header?
25890 case $ac_header_compiler:$ac_header_preproc in
25891   yes:no )
25892     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25896     (
25897       cat <<\_ASBOX
25898 ## ------------------------------------ ##
25899 ## Report this to bug-autoconf@gnu.org. ##
25900 ## ------------------------------------ ##
25901 _ASBOX
25902     ) |
25903       sed "s/^/$as_me: WARNING:     /" >&2
25904     ;;
25905   no:yes )
25906     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25908     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25910     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25912     (
25913       cat <<\_ASBOX
25914 ## ------------------------------------ ##
25915 ## Report this to bug-autoconf@gnu.org. ##
25916 ## ------------------------------------ ##
25917 _ASBOX
25918     ) |
25919       sed "s/^/$as_me: WARNING:     /" >&2
25920     ;;
25921 esac
25922 echo "$as_me:$LINENO: checking for $ac_header" >&5
25923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25925   echo $ECHO_N "(cached) $ECHO_C" >&6
25926 else
25927   eval "$as_ac_Header=$ac_header_preproc"
25928 fi
25929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25931
25932 fi
25933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25934   cat >>confdefs.h <<_ACEOF
25935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25936 _ACEOF
25937
25938 fi
25939
25940 done
25941
25942
25943   if test "${glibcxx_cv_WRITEV+set}" = set; then
25944   echo $ECHO_N "(cached) $ECHO_C" >&6
25945 else
25946
25947     cat >conftest.$ac_ext <<_ACEOF
25948 #line $LINENO "configure"
25949 /* confdefs.h.  */
25950 _ACEOF
25951 cat confdefs.h >>conftest.$ac_ext
25952 cat >>conftest.$ac_ext <<_ACEOF
25953 /* end confdefs.h.  */
25954 #include <sys/uio.h>
25955 int
25956 main ()
25957 {
25958 struct iovec iov[2];
25959        writev(0, iov, 0);
25960   ;
25961   return 0;
25962 }
25963 _ACEOF
25964 rm -f conftest.$ac_objext
25965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25966   (eval $ac_compile) 2>&5
25967   ac_status=$?
25968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969   (exit $ac_status); } &&
25970          { ac_try='test -s conftest.$ac_objext'
25971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972   (eval $ac_try) 2>&5
25973   ac_status=$?
25974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975   (exit $ac_status); }; }; then
25976   glibcxx_cv_WRITEV=yes
25977 else
25978   echo "$as_me: failed program was:" >&5
25979 sed 's/^/| /' conftest.$ac_ext >&5
25980
25981 glibcxx_cv_WRITEV=no
25982 fi
25983 rm -f conftest.$ac_objext conftest.$ac_ext
25984
25985 fi
25986
25987   if test $glibcxx_cv_WRITEV = yes; then
25988     cat >>confdefs.h <<\_ACEOF
25989 #define HAVE_WRITEV 1
25990 _ACEOF
25991
25992   fi
25993
25994
25995
25996   if test "${ac_cv_header_locale_h+set}" = set; then
25997   echo "$as_me:$LINENO: checking for locale.h" >&5
25998 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
25999 if test "${ac_cv_header_locale_h+set}" = set; then
26000   echo $ECHO_N "(cached) $ECHO_C" >&6
26001 fi
26002 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
26003 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
26004 else
26005   # Is the header compilable?
26006 echo "$as_me:$LINENO: checking locale.h usability" >&5
26007 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
26008 cat >conftest.$ac_ext <<_ACEOF
26009 #line $LINENO "configure"
26010 /* confdefs.h.  */
26011 _ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h.  */
26015 $ac_includes_default
26016 #include <locale.h>
26017 _ACEOF
26018 rm -f conftest.$ac_objext
26019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26020   (eval $ac_compile) 2>&5
26021   ac_status=$?
26022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023   (exit $ac_status); } &&
26024          { ac_try='test -s conftest.$ac_objext'
26025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26026   (eval $ac_try) 2>&5
26027   ac_status=$?
26028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029   (exit $ac_status); }; }; then
26030   ac_header_compiler=yes
26031 else
26032   echo "$as_me: failed program was:" >&5
26033 sed 's/^/| /' conftest.$ac_ext >&5
26034
26035 ac_header_compiler=no
26036 fi
26037 rm -f conftest.$ac_objext conftest.$ac_ext
26038 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26039 echo "${ECHO_T}$ac_header_compiler" >&6
26040
26041 # Is the header present?
26042 echo "$as_me:$LINENO: checking locale.h presence" >&5
26043 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
26044 cat >conftest.$ac_ext <<_ACEOF
26045 #line $LINENO "configure"
26046 /* confdefs.h.  */
26047 _ACEOF
26048 cat confdefs.h >>conftest.$ac_ext
26049 cat >>conftest.$ac_ext <<_ACEOF
26050 /* end confdefs.h.  */
26051 #include <locale.h>
26052 _ACEOF
26053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26055   ac_status=$?
26056   grep -v '^ *+' conftest.er1 >conftest.err
26057   rm -f conftest.er1
26058   cat conftest.err >&5
26059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060   (exit $ac_status); } >/dev/null; then
26061   if test -s conftest.err; then
26062     ac_cpp_err=$ac_c_preproc_warn_flag
26063   else
26064     ac_cpp_err=
26065   fi
26066 else
26067   ac_cpp_err=yes
26068 fi
26069 if test -z "$ac_cpp_err"; then
26070   ac_header_preproc=yes
26071 else
26072   echo "$as_me: failed program was:" >&5
26073 sed 's/^/| /' conftest.$ac_ext >&5
26074
26075   ac_header_preproc=no
26076 fi
26077 rm -f conftest.err conftest.$ac_ext
26078 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26079 echo "${ECHO_T}$ac_header_preproc" >&6
26080
26081 # So?  What about this header?
26082 case $ac_header_compiler:$ac_header_preproc in
26083   yes:no )
26084     { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
26085 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26086     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
26087 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
26088     (
26089       cat <<\_ASBOX
26090 ## ------------------------------------ ##
26091 ## Report this to bug-autoconf@gnu.org. ##
26092 ## ------------------------------------ ##
26093 _ASBOX
26094     ) |
26095       sed "s/^/$as_me: WARNING:     /" >&2
26096     ;;
26097   no:yes )
26098     { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
26099 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
26100     { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
26101 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
26102     { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
26103 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
26104     (
26105       cat <<\_ASBOX
26106 ## ------------------------------------ ##
26107 ## Report this to bug-autoconf@gnu.org. ##
26108 ## ------------------------------------ ##
26109 _ASBOX
26110     ) |
26111       sed "s/^/$as_me: WARNING:     /" >&2
26112     ;;
26113 esac
26114 echo "$as_me:$LINENO: checking for locale.h" >&5
26115 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
26116 if test "${ac_cv_header_locale_h+set}" = set; then
26117   echo $ECHO_N "(cached) $ECHO_C" >&6
26118 else
26119   ac_cv_header_locale_h=$ac_header_preproc
26120 fi
26121 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
26122 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
26123
26124 fi
26125 if test $ac_cv_header_locale_h = yes; then
26126
26127     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
26128 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
26129 if test "${ac_cv_val_LC_MESSAGES+set}" = set; then
26130   echo $ECHO_N "(cached) $ECHO_C" >&6
26131 else
26132   cat >conftest.$ac_ext <<_ACEOF
26133 #line $LINENO "configure"
26134 /* confdefs.h.  */
26135 _ACEOF
26136 cat confdefs.h >>conftest.$ac_ext
26137 cat >>conftest.$ac_ext <<_ACEOF
26138 /* end confdefs.h.  */
26139 #include <locale.h>
26140 int
26141 main ()
26142 {
26143 return LC_MESSAGES
26144   ;
26145   return 0;
26146 }
26147 _ACEOF
26148 rm -f conftest.$ac_objext conftest$ac_exeext
26149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26150   (eval $ac_link) 2>&5
26151   ac_status=$?
26152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153   (exit $ac_status); } &&
26154          { ac_try='test -s conftest$ac_exeext'
26155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26156   (eval $ac_try) 2>&5
26157   ac_status=$?
26158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159   (exit $ac_status); }; }; then
26160   ac_cv_val_LC_MESSAGES=yes
26161 else
26162   echo "$as_me: failed program was:" >&5
26163 sed 's/^/| /' conftest.$ac_ext >&5
26164
26165 ac_cv_val_LC_MESSAGES=no
26166 fi
26167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26168 fi
26169 echo "$as_me:$LINENO: result: $ac_cv_val_LC_MESSAGES" >&5
26170 echo "${ECHO_T}$ac_cv_val_LC_MESSAGES" >&6
26171     if test $ac_cv_val_LC_MESSAGES = yes; then
26172       cat >>confdefs.h <<\_ACEOF
26173 #define HAVE_LC_MESSAGES 1
26174 _ACEOF
26175
26176     fi
26177
26178 fi
26179
26180
26181
26182
26183   cat >conftest.$ac_ext <<_ACEOF
26184 #line $LINENO "configure"
26185 /* confdefs.h.  */
26186 _ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h.  */
26190 #include <setjmp.h>
26191 int
26192 main ()
26193 {
26194 sigjmp_buf env;
26195      while (! sigsetjmp (env, 1))
26196        siglongjmp (env, 1);
26197
26198   ;
26199   return 0;
26200 }
26201 _ACEOF
26202 rm -f conftest.$ac_objext
26203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26204   (eval $ac_compile) 2>&5
26205   ac_status=$?
26206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207   (exit $ac_status); } &&
26208          { ac_try='test -s conftest.$ac_objext'
26209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26210   (eval $ac_try) 2>&5
26211   ac_status=$?
26212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213   (exit $ac_status); }; }; then
26214
26215 cat >>confdefs.h <<\_ACEOF
26216 #define HAVE_SIGSETJMP 1
26217 _ACEOF
26218
26219 else
26220   echo "$as_me: failed program was:" >&5
26221 sed 's/^/| /' conftest.$ac_ext >&5
26222
26223 fi
26224 rm -f conftest.$ac_objext conftest.$ac_ext
26225
26226
26227
26228 for ac_header in stdlib.h unistd.h
26229 do
26230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26232   echo "$as_me:$LINENO: checking for $ac_header" >&5
26233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26235   echo $ECHO_N "(cached) $ECHO_C" >&6
26236 fi
26237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26239 else
26240   # Is the header compilable?
26241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26243 cat >conftest.$ac_ext <<_ACEOF
26244 #line $LINENO "configure"
26245 /* confdefs.h.  */
26246 _ACEOF
26247 cat confdefs.h >>conftest.$ac_ext
26248 cat >>conftest.$ac_ext <<_ACEOF
26249 /* end confdefs.h.  */
26250 $ac_includes_default
26251 #include <$ac_header>
26252 _ACEOF
26253 rm -f conftest.$ac_objext
26254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26255   (eval $ac_compile) 2>&5
26256   ac_status=$?
26257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258   (exit $ac_status); } &&
26259          { ac_try='test -s conftest.$ac_objext'
26260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261   (eval $ac_try) 2>&5
26262   ac_status=$?
26263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264   (exit $ac_status); }; }; then
26265   ac_header_compiler=yes
26266 else
26267   echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26269
26270 ac_header_compiler=no
26271 fi
26272 rm -f conftest.$ac_objext conftest.$ac_ext
26273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26274 echo "${ECHO_T}$ac_header_compiler" >&6
26275
26276 # Is the header present?
26277 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26279 cat >conftest.$ac_ext <<_ACEOF
26280 #line $LINENO "configure"
26281 /* confdefs.h.  */
26282 _ACEOF
26283 cat confdefs.h >>conftest.$ac_ext
26284 cat >>conftest.$ac_ext <<_ACEOF
26285 /* end confdefs.h.  */
26286 #include <$ac_header>
26287 _ACEOF
26288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26289   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26290   ac_status=$?
26291   grep -v '^ *+' conftest.er1 >conftest.err
26292   rm -f conftest.er1
26293   cat conftest.err >&5
26294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295   (exit $ac_status); } >/dev/null; then
26296   if test -s conftest.err; then
26297     ac_cpp_err=$ac_c_preproc_warn_flag
26298   else
26299     ac_cpp_err=
26300   fi
26301 else
26302   ac_cpp_err=yes
26303 fi
26304 if test -z "$ac_cpp_err"; then
26305   ac_header_preproc=yes
26306 else
26307   echo "$as_me: failed program was:" >&5
26308 sed 's/^/| /' conftest.$ac_ext >&5
26309
26310   ac_header_preproc=no
26311 fi
26312 rm -f conftest.err conftest.$ac_ext
26313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26314 echo "${ECHO_T}$ac_header_preproc" >&6
26315
26316 # So?  What about this header?
26317 case $ac_header_compiler:$ac_header_preproc in
26318   yes:no )
26319     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26320 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26323     (
26324       cat <<\_ASBOX
26325 ## ------------------------------------ ##
26326 ## Report this to bug-autoconf@gnu.org. ##
26327 ## ------------------------------------ ##
26328 _ASBOX
26329     ) |
26330       sed "s/^/$as_me: WARNING:     /" >&2
26331     ;;
26332   no:yes )
26333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26335     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26336 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26339     (
26340       cat <<\_ASBOX
26341 ## ------------------------------------ ##
26342 ## Report this to bug-autoconf@gnu.org. ##
26343 ## ------------------------------------ ##
26344 _ASBOX
26345     ) |
26346       sed "s/^/$as_me: WARNING:     /" >&2
26347     ;;
26348 esac
26349 echo "$as_me:$LINENO: checking for $ac_header" >&5
26350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26352   echo $ECHO_N "(cached) $ECHO_C" >&6
26353 else
26354   eval "$as_ac_Header=$ac_header_preproc"
26355 fi
26356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26358
26359 fi
26360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26361   cat >>confdefs.h <<_ACEOF
26362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26363 _ACEOF
26364
26365 fi
26366
26367 done
26368
26369
26370 for ac_func in getpagesize
26371 do
26372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26373 echo "$as_me:$LINENO: checking for $ac_func" >&5
26374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26375 if eval "test \"\${$as_ac_var+set}\" = set"; then
26376   echo $ECHO_N "(cached) $ECHO_C" >&6
26377 else
26378   cat >conftest.$ac_ext <<_ACEOF
26379 #line $LINENO "configure"
26380 /* confdefs.h.  */
26381 _ACEOF
26382 cat confdefs.h >>conftest.$ac_ext
26383 cat >>conftest.$ac_ext <<_ACEOF
26384 /* end confdefs.h.  */
26385 /* System header to define __stub macros and hopefully few prototypes,
26386     which can conflict with char $ac_func (); below.
26387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26388     <limits.h> exists even on freestanding compilers.  */
26389 #ifdef __STDC__
26390 # include <limits.h>
26391 #else
26392 # include <assert.h>
26393 #endif
26394 /* Override any gcc2 internal prototype to avoid an error.  */
26395 #ifdef __cplusplus
26396 extern "C"
26397 {
26398 #endif
26399 /* We use char because int might match the return type of a gcc2
26400    builtin and then its argument prototype would still apply.  */
26401 char $ac_func ();
26402 /* The GNU C library defines this for functions which it implements
26403     to always fail with ENOSYS.  Some functions are actually named
26404     something starting with __ and the normal name is an alias.  */
26405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26406 choke me
26407 #else
26408 char (*f) () = $ac_func;
26409 #endif
26410 #ifdef __cplusplus
26411 }
26412 #endif
26413
26414 int
26415 main ()
26416 {
26417 return f != $ac_func;
26418   ;
26419   return 0;
26420 }
26421 _ACEOF
26422 rm -f conftest.$ac_objext conftest$ac_exeext
26423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26424   (eval $ac_link) 2>&5
26425   ac_status=$?
26426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427   (exit $ac_status); } &&
26428          { ac_try='test -s conftest$ac_exeext'
26429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26430   (eval $ac_try) 2>&5
26431   ac_status=$?
26432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433   (exit $ac_status); }; }; then
26434   eval "$as_ac_var=yes"
26435 else
26436   echo "$as_me: failed program was:" >&5
26437 sed 's/^/| /' conftest.$ac_ext >&5
26438
26439 eval "$as_ac_var=no"
26440 fi
26441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26442 fi
26443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26445 if test `eval echo '${'$as_ac_var'}'` = yes; then
26446   cat >>confdefs.h <<_ACEOF
26447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26448 _ACEOF
26449
26450 fi
26451 done
26452
26453 echo "$as_me:$LINENO: checking for working mmap" >&5
26454 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
26455 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
26456   echo $ECHO_N "(cached) $ECHO_C" >&6
26457 else
26458   if test "$cross_compiling" = yes; then
26459   ac_cv_func_mmap_fixed_mapped=no
26460 else
26461   cat >conftest.$ac_ext <<_ACEOF
26462 #line $LINENO "configure"
26463 /* confdefs.h.  */
26464 _ACEOF
26465 cat confdefs.h >>conftest.$ac_ext
26466 cat >>conftest.$ac_ext <<_ACEOF
26467 /* end confdefs.h.  */
26468 $ac_includes_default
26469 /* malloc might have been renamed as rpl_malloc. */
26470 #undef malloc
26471
26472 /* Thanks to Mike Haertel and Jim Avera for this test.
26473    Here is a matrix of mmap possibilities:
26474         mmap private not fixed
26475         mmap private fixed at somewhere currently unmapped
26476         mmap private fixed at somewhere already mapped
26477         mmap shared not fixed
26478         mmap shared fixed at somewhere currently unmapped
26479         mmap shared fixed at somewhere already mapped
26480    For private mappings, we should verify that changes cannot be read()
26481    back from the file, nor mmap's back from the file at a different
26482    address.  (There have been systems where private was not correctly
26483    implemented like the infamous i386 svr4.0, and systems where the
26484    VM page cache was not coherent with the file system buffer cache
26485    like early versions of FreeBSD and possibly contemporary NetBSD.)
26486    For shared mappings, we should conversely verify that changes get
26487    propagated back to all the places they're supposed to be.
26488
26489    Grep wants private fixed already mapped.
26490    The main things grep needs to know about mmap are:
26491    * does it exist and is it safe to write into the mmap'd area
26492    * how to use it (BSD variants)  */
26493
26494 #include <fcntl.h>
26495 #include <sys/mman.h>
26496
26497 #if !STDC_HEADERS && !HAVE_STDLIB_H
26498 char *malloc ();
26499 #endif
26500
26501 /* This mess was copied from the GNU getpagesize.h.  */
26502 #if !HAVE_GETPAGESIZE
26503 /* Assume that all systems that can run configure have sys/param.h.  */
26504 # if !HAVE_SYS_PARAM_H
26505 #  define HAVE_SYS_PARAM_H 1
26506 # endif
26507
26508 # ifdef _SC_PAGESIZE
26509 #  define getpagesize() sysconf(_SC_PAGESIZE)
26510 # else /* no _SC_PAGESIZE */
26511 #  if HAVE_SYS_PARAM_H
26512 #   include <sys/param.h>
26513 #   ifdef EXEC_PAGESIZE
26514 #    define getpagesize() EXEC_PAGESIZE
26515 #   else /* no EXEC_PAGESIZE */
26516 #    ifdef NBPG
26517 #     define getpagesize() NBPG * CLSIZE
26518 #     ifndef CLSIZE
26519 #      define CLSIZE 1
26520 #     endif /* no CLSIZE */
26521 #    else /* no NBPG */
26522 #     ifdef NBPC
26523 #      define getpagesize() NBPC
26524 #     else /* no NBPC */
26525 #      ifdef PAGESIZE
26526 #       define getpagesize() PAGESIZE
26527 #      endif /* PAGESIZE */
26528 #     endif /* no NBPC */
26529 #    endif /* no NBPG */
26530 #   endif /* no EXEC_PAGESIZE */
26531 #  else /* no HAVE_SYS_PARAM_H */
26532 #   define getpagesize() 8192   /* punt totally */
26533 #  endif /* no HAVE_SYS_PARAM_H */
26534 # endif /* no _SC_PAGESIZE */
26535
26536 #endif /* no HAVE_GETPAGESIZE */
26537
26538 int
26539 main ()
26540 {
26541   char *data, *data2, *data3;
26542   int i, pagesize;
26543   int fd;
26544
26545   pagesize = getpagesize ();
26546
26547   /* First, make a file with some known garbage in it. */
26548   data = (char *) malloc (pagesize);
26549   if (!data)
26550     exit (1);
26551   for (i = 0; i < pagesize; ++i)
26552     *(data + i) = rand ();
26553   umask (0);
26554   fd = creat ("conftest.mmap", 0600);
26555   if (fd < 0)
26556     exit (1);
26557   if (write (fd, data, pagesize) != pagesize)
26558     exit (1);
26559   close (fd);
26560
26561   /* Next, try to mmap the file at a fixed address which already has
26562      something else allocated at it.  If we can, also make sure that
26563      we see the same garbage.  */
26564   fd = open ("conftest.mmap", O_RDWR);
26565   if (fd < 0)
26566     exit (1);
26567   data2 = (char *) malloc (2 * pagesize);
26568   if (!data2)
26569     exit (1);
26570   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
26571   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
26572                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
26573     exit (1);
26574   for (i = 0; i < pagesize; ++i)
26575     if (*(data + i) != *(data2 + i))
26576       exit (1);
26577
26578   /* Finally, make sure that changes to the mapped area do not
26579      percolate back to the file as seen by read().  (This is a bug on
26580      some variants of i386 svr4.0.)  */
26581   for (i = 0; i < pagesize; ++i)
26582     *(data2 + i) = *(data2 + i) + 1;
26583   data3 = (char *) malloc (pagesize);
26584   if (!data3)
26585     exit (1);
26586   if (read (fd, data3, pagesize) != pagesize)
26587     exit (1);
26588   for (i = 0; i < pagesize; ++i)
26589     if (*(data + i) != *(data3 + i))
26590       exit (1);
26591   close (fd);
26592   exit (0);
26593 }
26594 _ACEOF
26595 rm -f conftest$ac_exeext
26596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26597   (eval $ac_link) 2>&5
26598   ac_status=$?
26599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26602   (eval $ac_try) 2>&5
26603   ac_status=$?
26604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605   (exit $ac_status); }; }; then
26606   ac_cv_func_mmap_fixed_mapped=yes
26607 else
26608   echo "$as_me: program exited with status $ac_status" >&5
26609 echo "$as_me: failed program was:" >&5
26610 sed 's/^/| /' conftest.$ac_ext >&5
26611
26612 ( exit $ac_status )
26613 ac_cv_func_mmap_fixed_mapped=no
26614 fi
26615 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26616 fi
26617 fi
26618 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
26619 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
26620 if test $ac_cv_func_mmap_fixed_mapped = yes; then
26621
26622 cat >>confdefs.h <<\_ACEOF
26623 #define HAVE_MMAP 1
26624 _ACEOF
26625
26626 fi
26627 rm -f conftest.mmap
26628
26629
26630 else
26631
26632   # This lets us hard-code the functionality we know we'll have in the cross
26633   # target environment.  "Let" is a sugar-coated word placed on an especially
26634   # dull and tedious hack, actually.
26635   #
26636   # Here's why GLIBCXX_CHECK_MATH_SUPPORT, and other autoconf macros
26637   # that involve linking, can't be used:
26638   #    "cannot open sim-crt0.o"
26639   #    "cannot open crt0.o"
26640   # etc.  All this is because there currently exists no unified, consistent
26641   # way for top level CC information to be passed down to target directories:
26642   # newlib includes, newlib linking info, libgloss versus newlib crt0.o, etc.
26643   # When all of that is done, all of this hokey, excessive AC_DEFINE junk for
26644   # crosses can be removed.
26645
26646   # If Canadian cross, then don't pick up tools from the build directory.
26647   # Used only in GLIBCXX_EXPORT_INCLUDES.
26648   if test -n "$with_cross_host" &&
26649      test x"$build" != x"$with_cross_host" &&
26650      test x"$build" != x"$target";
26651   then
26652     CANADIAN=yes
26653   else
26654     CANADIAN=no
26655   fi
26656
26657   # Construct crosses by hand, eliminating bits that need ld...
26658   # GLIBCXX_CHECK_COMPILER_FEATURES
26659   # GLIBCXX_CHECK_BUILTIN_MATH_SUPPORT
26660   # GLIBCXX_CHECK_MATH_SUPPORT
26661
26662   # First, test for "known" system libraries.  We may be using newlib even
26663   # on a hosted environment.
26664   if test "x${with_newlib}" = "xyes"; then
26665     os_include_dir="os/newlib"
26666     cat >>confdefs.h <<\_ACEOF
26667 #define HAVE_HYPOT 1
26668 _ACEOF
26669
26670
26671     # GLIBCXX_CHECK_STDLIB_SUPPORT
26672     cat >>confdefs.h <<\_ACEOF
26673 #define HAVE_STRTOF 1
26674 _ACEOF
26675
26676     cat >>confdefs.h <<\_ACEOF
26677 #define HAVE_STRTOLD 1
26678 _ACEOF
26679
26680     # AC_FUNC_MMAP
26681     cat >>confdefs.h <<\_ACEOF
26682 #define HAVE_MMAP 1
26683 _ACEOF
26684
26685
26686     cat >>confdefs.h <<\_ACEOF
26687 #define HAVE_ACOSF 1
26688 _ACEOF
26689
26690     cat >>confdefs.h <<\_ACEOF
26691 #define HAVE_ASINF 1
26692 _ACEOF
26693
26694     cat >>confdefs.h <<\_ACEOF
26695 #define HAVE_ATAN2F 1
26696 _ACEOF
26697
26698     cat >>confdefs.h <<\_ACEOF
26699 #define HAVE_ATANF 1
26700 _ACEOF
26701
26702     cat >>confdefs.h <<\_ACEOF
26703 #define HAVE_CEILF 1
26704 _ACEOF
26705
26706     cat >>confdefs.h <<\_ACEOF
26707 #define HAVE_COPYSIGN 1
26708 _ACEOF
26709
26710     cat >>confdefs.h <<\_ACEOF
26711 #define HAVE_COPYSIGNF 1
26712 _ACEOF
26713
26714     cat >>confdefs.h <<\_ACEOF
26715 #define HAVE_COSF 1
26716 _ACEOF
26717
26718     cat >>confdefs.h <<\_ACEOF
26719 #define HAVE_COSHF 1
26720 _ACEOF
26721
26722     cat >>confdefs.h <<\_ACEOF
26723 #define HAVE_EXPF 1
26724 _ACEOF
26725
26726     cat >>confdefs.h <<\_ACEOF
26727 #define HAVE_FABSF 1
26728 _ACEOF
26729
26730     cat >>confdefs.h <<\_ACEOF
26731 #define HAVE_FLOORF 1
26732 _ACEOF
26733
26734     cat >>confdefs.h <<\_ACEOF
26735 #define HAVE_FMODF 1
26736 _ACEOF
26737
26738     cat >>confdefs.h <<\_ACEOF
26739 #define HAVE_FREXPF 1
26740 _ACEOF
26741
26742     cat >>confdefs.h <<\_ACEOF
26743 #define HAVE_LDEXPF 1
26744 _ACEOF
26745
26746     cat >>confdefs.h <<\_ACEOF
26747 #define HAVE_LOG10F 1
26748 _ACEOF
26749
26750     cat >>confdefs.h <<\_ACEOF
26751 #define HAVE_LOGF 1
26752 _ACEOF
26753
26754     cat >>confdefs.h <<\_ACEOF
26755 #define HAVE_MODFF 1
26756 _ACEOF
26757
26758     cat >>confdefs.h <<\_ACEOF
26759 #define HAVE_POWF 1
26760 _ACEOF
26761
26762     cat >>confdefs.h <<\_ACEOF
26763 #define HAVE_SINF 1
26764 _ACEOF
26765
26766     cat >>confdefs.h <<\_ACEOF
26767 #define HAVE_SINHF 1
26768 _ACEOF
26769
26770     cat >>confdefs.h <<\_ACEOF
26771 #define HAVE_SQRTF 1
26772 _ACEOF
26773
26774     cat >>confdefs.h <<\_ACEOF
26775 #define HAVE_TANF 1
26776 _ACEOF
26777
26778     cat >>confdefs.h <<\_ACEOF
26779 #define HAVE_TANHF 1
26780 _ACEOF
26781
26782   else
26783
26784 # Base decisions on target environment.
26785 case "${host}" in
26786   *-darwin*)
26787     # Darwin versions vary, but the linker should work in a cross environment,
26788     # so we just check for all the features here.
26789     # Check for available headers.
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
26804     machine/param.h sys/machine.h fp.h locale.h float.h inttypes.h gconv.h \
26805     sys/types.h
26806 do
26807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26809   echo "$as_me:$LINENO: checking for $ac_header" >&5
26810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26812   echo $ECHO_N "(cached) $ECHO_C" >&6
26813 fi
26814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26816 else
26817   # Is the header compilable?
26818 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26819 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26820 cat >conftest.$ac_ext <<_ACEOF
26821 #line $LINENO "configure"
26822 /* confdefs.h.  */
26823 _ACEOF
26824 cat confdefs.h >>conftest.$ac_ext
26825 cat >>conftest.$ac_ext <<_ACEOF
26826 /* end confdefs.h.  */
26827 $ac_includes_default
26828 #include <$ac_header>
26829 _ACEOF
26830 rm -f conftest.$ac_objext
26831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26832   (eval $ac_compile) 2>&5
26833   ac_status=$?
26834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835   (exit $ac_status); } &&
26836          { ac_try='test -s conftest.$ac_objext'
26837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26838   (eval $ac_try) 2>&5
26839   ac_status=$?
26840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841   (exit $ac_status); }; }; then
26842   ac_header_compiler=yes
26843 else
26844   echo "$as_me: failed program was:" >&5
26845 sed 's/^/| /' conftest.$ac_ext >&5
26846
26847 ac_header_compiler=no
26848 fi
26849 rm -f conftest.$ac_objext conftest.$ac_ext
26850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26851 echo "${ECHO_T}$ac_header_compiler" >&6
26852
26853 # Is the header present?
26854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26856 cat >conftest.$ac_ext <<_ACEOF
26857 #line $LINENO "configure"
26858 /* confdefs.h.  */
26859 _ACEOF
26860 cat confdefs.h >>conftest.$ac_ext
26861 cat >>conftest.$ac_ext <<_ACEOF
26862 /* end confdefs.h.  */
26863 #include <$ac_header>
26864 _ACEOF
26865 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26866   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26867   ac_status=$?
26868   grep -v '^ *+' conftest.er1 >conftest.err
26869   rm -f conftest.er1
26870   cat conftest.err >&5
26871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26872   (exit $ac_status); } >/dev/null; then
26873   if test -s conftest.err; then
26874     ac_cpp_err=$ac_c_preproc_warn_flag
26875   else
26876     ac_cpp_err=
26877   fi
26878 else
26879   ac_cpp_err=yes
26880 fi
26881 if test -z "$ac_cpp_err"; then
26882   ac_header_preproc=yes
26883 else
26884   echo "$as_me: failed program was:" >&5
26885 sed 's/^/| /' conftest.$ac_ext >&5
26886
26887   ac_header_preproc=no
26888 fi
26889 rm -f conftest.err conftest.$ac_ext
26890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26891 echo "${ECHO_T}$ac_header_preproc" >&6
26892
26893 # So?  What about this header?
26894 case $ac_header_compiler:$ac_header_preproc in
26895   yes:no )
26896     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26900     (
26901       cat <<\_ASBOX
26902 ## ------------------------------------ ##
26903 ## Report this to bug-autoconf@gnu.org. ##
26904 ## ------------------------------------ ##
26905 _ASBOX
26906     ) |
26907       sed "s/^/$as_me: WARNING:     /" >&2
26908     ;;
26909   no:yes )
26910     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26912     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26916     (
26917       cat <<\_ASBOX
26918 ## ------------------------------------ ##
26919 ## Report this to bug-autoconf@gnu.org. ##
26920 ## ------------------------------------ ##
26921 _ASBOX
26922     ) |
26923       sed "s/^/$as_me: WARNING:     /" >&2
26924     ;;
26925 esac
26926 echo "$as_me:$LINENO: checking for $ac_header" >&5
26927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26929   echo $ECHO_N "(cached) $ECHO_C" >&6
26930 else
26931   eval "$as_ac_Header=$ac_header_preproc"
26932 fi
26933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26935
26936 fi
26937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26938   cat >>confdefs.h <<_ACEOF
26939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26940 _ACEOF
26941
26942 fi
26943
26944 done
26945
26946
26947
26948   # All these tests are for C++; save the language and the compiler flags.
26949   # The CXXFLAGS thing is suspicious, but based on similar bits previously
26950   # found in GLIBCXX_CONFIGURE.
26951
26952
26953   ac_ext=cc
26954 ac_cpp='$CXXCPP $CPPFLAGS'
26955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26958
26959   ac_test_CXXFLAGS="${CXXFLAGS+set}"
26960   ac_save_CXXFLAGS="$CXXFLAGS"
26961
26962   # Check for maintainer-mode bits.
26963   if test x"$USE_MAINTAINER_MODE" = xno; then
26964     WERROR=''
26965   else
26966     WERROR='-Werror'
26967   fi
26968
26969   # Check for -ffunction-sections -fdata-sections
26970   echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
26971 echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
26972   CXXFLAGS='-Werror -ffunction-sections -fdata-sections'
26973   cat >conftest.$ac_ext <<_ACEOF
26974 #line $LINENO "configure"
26975 /* confdefs.h.  */
26976 _ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h.  */
26980
26981 int
26982 main ()
26983 {
26984 int foo;
26985   ;
26986   return 0;
26987 }
26988 _ACEOF
26989 rm -f conftest.$ac_objext
26990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26991   (eval $ac_compile) 2>&5
26992   ac_status=$?
26993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994   (exit $ac_status); } &&
26995          { ac_try='test -s conftest.$ac_objext'
26996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26997   (eval $ac_try) 2>&5
26998   ac_status=$?
26999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000   (exit $ac_status); }; }; then
27001   ac_fdsections=yes
27002 else
27003   echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27005
27006 ac_fdsections=no
27007 fi
27008 rm -f conftest.$ac_objext conftest.$ac_ext
27009   if test "$ac_test_CXXFLAGS" = set; then
27010     CXXFLAGS="$ac_save_CXXFLAGS"
27011   else
27012     # this is the suspicious part
27013     CXXFLAGS=''
27014   fi
27015   if test x"$ac_fdsections" = x"yes"; then
27016     SECTION_FLAGS='-ffunction-sections -fdata-sections'
27017   fi
27018   echo "$as_me:$LINENO: result: $ac_fdsections" >&5
27019 echo "${ECHO_T}$ac_fdsections" >&6
27020
27021   ac_ext=c
27022 ac_cpp='$CPP $CPPFLAGS'
27023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27026
27027
27028
27029
27030     # Don't call GLIBCXX_CHECK_LINKER_FEATURES, Darwin doesn't have a GNU ld
27031
27032   ac_test_CXXFLAGS="${CXXFLAGS+set}"
27033   ac_save_CXXFLAGS="$CXXFLAGS"
27034   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
27035
27036     echo "$as_me:$LINENO: checking for sin in -lm" >&5
27037 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
27038 if test "${ac_cv_lib_m_sin+set}" = set; then
27039   echo $ECHO_N "(cached) $ECHO_C" >&6
27040 else
27041   ac_check_lib_save_LIBS=$LIBS
27042 LIBS="-lm  $LIBS"
27043 cat >conftest.$ac_ext <<_ACEOF
27044 #line $LINENO "configure"
27045 /* confdefs.h.  */
27046 _ACEOF
27047 cat confdefs.h >>conftest.$ac_ext
27048 cat >>conftest.$ac_ext <<_ACEOF
27049 /* end confdefs.h.  */
27050
27051 /* Override any gcc2 internal prototype to avoid an error.  */
27052 #ifdef __cplusplus
27053 extern "C"
27054 #endif
27055 /* We use char because int might match the return type of a gcc2
27056    builtin and then its argument prototype would still apply.  */
27057 char sin ();
27058 int
27059 main ()
27060 {
27061 sin ();
27062   ;
27063   return 0;
27064 }
27065 _ACEOF
27066 rm -f conftest.$ac_objext conftest$ac_exeext
27067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27068   (eval $ac_link) 2>&5
27069   ac_status=$?
27070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071   (exit $ac_status); } &&
27072          { ac_try='test -s conftest$ac_exeext'
27073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27074   (eval $ac_try) 2>&5
27075   ac_status=$?
27076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077   (exit $ac_status); }; }; then
27078   ac_cv_lib_m_sin=yes
27079 else
27080   echo "$as_me: failed program was:" >&5
27081 sed 's/^/| /' conftest.$ac_ext >&5
27082
27083 ac_cv_lib_m_sin=no
27084 fi
27085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27086 LIBS=$ac_check_lib_save_LIBS
27087 fi
27088 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27089 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
27090 if test $ac_cv_lib_m_sin = yes; then
27091   libm="-lm"
27092 fi
27093
27094   ac_save_LIBS="$LIBS"
27095   LIBS="$LIBS $libm"
27096
27097
27098
27099   echo "$as_me:$LINENO: checking for isinf declaration" >&5
27100 echo $ECHO_N "checking for isinf declaration... $ECHO_C" >&6
27101   if test x${glibcxx_cv_func_isinf_use+set} != xset; then
27102     if test "${glibcxx_cv_func_isinf_use+set}" = set; then
27103   echo $ECHO_N "(cached) $ECHO_C" >&6
27104 else
27105
27106
27107
27108       ac_ext=cc
27109 ac_cpp='$CXXCPP $CPPFLAGS'
27110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27113
27114       cat >conftest.$ac_ext <<_ACEOF
27115 #line $LINENO "configure"
27116 /* confdefs.h.  */
27117 _ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h.  */
27121 #include <math.h>
27122                       #ifdef HAVE_IEEEFP_H
27123                       #include <ieeefp.h>
27124                       #endif
27125
27126 int
27127 main ()
27128 {
27129  isinf(0);
27130   ;
27131   return 0;
27132 }
27133 _ACEOF
27134 rm -f conftest.$ac_objext
27135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27136   (eval $ac_compile) 2>&5
27137   ac_status=$?
27138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139   (exit $ac_status); } &&
27140          { ac_try='test -s conftest.$ac_objext'
27141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27142   (eval $ac_try) 2>&5
27143   ac_status=$?
27144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145   (exit $ac_status); }; }; then
27146   glibcxx_cv_func_isinf_use=yes
27147 else
27148   echo "$as_me: failed program was:" >&5
27149 sed 's/^/| /' conftest.$ac_ext >&5
27150
27151 glibcxx_cv_func_isinf_use=no
27152 fi
27153 rm -f conftest.$ac_objext conftest.$ac_ext
27154       ac_ext=c
27155 ac_cpp='$CPP $CPPFLAGS'
27156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27159
27160
27161 fi
27162
27163   fi
27164   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinf_use" >&5
27165 echo "${ECHO_T}$glibcxx_cv_func_isinf_use" >&6
27166
27167   if test x$glibcxx_cv_func_isinf_use = x"yes"; then
27168
27169 for ac_func in isinf
27170 do
27171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27172 echo "$as_me:$LINENO: checking for $ac_func" >&5
27173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27174 if eval "test \"\${$as_ac_var+set}\" = set"; then
27175   echo $ECHO_N "(cached) $ECHO_C" >&6
27176 else
27177   cat >conftest.$ac_ext <<_ACEOF
27178 #line $LINENO "configure"
27179 /* confdefs.h.  */
27180 _ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h.  */
27184 /* System header to define __stub macros and hopefully few prototypes,
27185     which can conflict with char $ac_func (); below.
27186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27187     <limits.h> exists even on freestanding compilers.  */
27188 #ifdef __STDC__
27189 # include <limits.h>
27190 #else
27191 # include <assert.h>
27192 #endif
27193 /* Override any gcc2 internal prototype to avoid an error.  */
27194 #ifdef __cplusplus
27195 extern "C"
27196 {
27197 #endif
27198 /* We use char because int might match the return type of a gcc2
27199    builtin and then its argument prototype would still apply.  */
27200 char $ac_func ();
27201 /* The GNU C library defines this for functions which it implements
27202     to always fail with ENOSYS.  Some functions are actually named
27203     something starting with __ and the normal name is an alias.  */
27204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27205 choke me
27206 #else
27207 char (*f) () = $ac_func;
27208 #endif
27209 #ifdef __cplusplus
27210 }
27211 #endif
27212
27213 int
27214 main ()
27215 {
27216 return f != $ac_func;
27217   ;
27218   return 0;
27219 }
27220 _ACEOF
27221 rm -f conftest.$ac_objext conftest$ac_exeext
27222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27223   (eval $ac_link) 2>&5
27224   ac_status=$?
27225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226   (exit $ac_status); } &&
27227          { ac_try='test -s conftest$ac_exeext'
27228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27229   (eval $ac_try) 2>&5
27230   ac_status=$?
27231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232   (exit $ac_status); }; }; then
27233   eval "$as_ac_var=yes"
27234 else
27235   echo "$as_me: failed program was:" >&5
27236 sed 's/^/| /' conftest.$ac_ext >&5
27237
27238 eval "$as_ac_var=no"
27239 fi
27240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27241 fi
27242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27244 if test `eval echo '${'$as_ac_var'}'` = yes; then
27245   cat >>confdefs.h <<_ACEOF
27246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27247 _ACEOF
27248
27249 fi
27250 done
27251
27252   else
27253
27254   echo "$as_me:$LINENO: checking for _isinf declaration" >&5
27255 echo $ECHO_N "checking for _isinf declaration... $ECHO_C" >&6
27256   if test x${glibcxx_cv_func__isinf_use+set} != xset; then
27257     if test "${glibcxx_cv_func__isinf_use+set}" = set; then
27258   echo $ECHO_N "(cached) $ECHO_C" >&6
27259 else
27260
27261
27262
27263       ac_ext=cc
27264 ac_cpp='$CXXCPP $CPPFLAGS'
27265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27268
27269       cat >conftest.$ac_ext <<_ACEOF
27270 #line $LINENO "configure"
27271 /* confdefs.h.  */
27272 _ACEOF
27273 cat confdefs.h >>conftest.$ac_ext
27274 cat >>conftest.$ac_ext <<_ACEOF
27275 /* end confdefs.h.  */
27276 #include <math.h>
27277                       #ifdef HAVE_IEEEFP_H
27278                       #include <ieeefp.h>
27279                       #endif
27280
27281 int
27282 main ()
27283 {
27284  _isinf(0);
27285   ;
27286   return 0;
27287 }
27288 _ACEOF
27289 rm -f conftest.$ac_objext
27290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27291   (eval $ac_compile) 2>&5
27292   ac_status=$?
27293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294   (exit $ac_status); } &&
27295          { ac_try='test -s conftest.$ac_objext'
27296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27297   (eval $ac_try) 2>&5
27298   ac_status=$?
27299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300   (exit $ac_status); }; }; then
27301   glibcxx_cv_func__isinf_use=yes
27302 else
27303   echo "$as_me: failed program was:" >&5
27304 sed 's/^/| /' conftest.$ac_ext >&5
27305
27306 glibcxx_cv_func__isinf_use=no
27307 fi
27308 rm -f conftest.$ac_objext conftest.$ac_ext
27309       ac_ext=c
27310 ac_cpp='$CPP $CPPFLAGS'
27311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27314
27315
27316 fi
27317
27318   fi
27319   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinf_use" >&5
27320 echo "${ECHO_T}$glibcxx_cv_func__isinf_use" >&6
27321
27322     if test x$glibcxx_cv_func__isinf_use = x"yes"; then
27323
27324 for ac_func in _isinf
27325 do
27326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27327 echo "$as_me:$LINENO: checking for $ac_func" >&5
27328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27329 if eval "test \"\${$as_ac_var+set}\" = set"; then
27330   echo $ECHO_N "(cached) $ECHO_C" >&6
27331 else
27332   cat >conftest.$ac_ext <<_ACEOF
27333 #line $LINENO "configure"
27334 /* confdefs.h.  */
27335 _ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h.  */
27339 /* System header to define __stub macros and hopefully few prototypes,
27340     which can conflict with char $ac_func (); below.
27341     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27342     <limits.h> exists even on freestanding compilers.  */
27343 #ifdef __STDC__
27344 # include <limits.h>
27345 #else
27346 # include <assert.h>
27347 #endif
27348 /* Override any gcc2 internal prototype to avoid an error.  */
27349 #ifdef __cplusplus
27350 extern "C"
27351 {
27352 #endif
27353 /* We use char because int might match the return type of a gcc2
27354    builtin and then its argument prototype would still apply.  */
27355 char $ac_func ();
27356 /* The GNU C library defines this for functions which it implements
27357     to always fail with ENOSYS.  Some functions are actually named
27358     something starting with __ and the normal name is an alias.  */
27359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27360 choke me
27361 #else
27362 char (*f) () = $ac_func;
27363 #endif
27364 #ifdef __cplusplus
27365 }
27366 #endif
27367
27368 int
27369 main ()
27370 {
27371 return f != $ac_func;
27372   ;
27373   return 0;
27374 }
27375 _ACEOF
27376 rm -f conftest.$ac_objext conftest$ac_exeext
27377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27378   (eval $ac_link) 2>&5
27379   ac_status=$?
27380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381   (exit $ac_status); } &&
27382          { ac_try='test -s conftest$ac_exeext'
27383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27384   (eval $ac_try) 2>&5
27385   ac_status=$?
27386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387   (exit $ac_status); }; }; then
27388   eval "$as_ac_var=yes"
27389 else
27390   echo "$as_me: failed program was:" >&5
27391 sed 's/^/| /' conftest.$ac_ext >&5
27392
27393 eval "$as_ac_var=no"
27394 fi
27395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27396 fi
27397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27399 if test `eval echo '${'$as_ac_var'}'` = yes; then
27400   cat >>confdefs.h <<_ACEOF
27401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27402 _ACEOF
27403
27404 fi
27405 done
27406
27407     fi
27408   fi
27409
27410
27411
27412   echo "$as_me:$LINENO: checking for isnan declaration" >&5
27413 echo $ECHO_N "checking for isnan declaration... $ECHO_C" >&6
27414   if test x${glibcxx_cv_func_isnan_use+set} != xset; then
27415     if test "${glibcxx_cv_func_isnan_use+set}" = set; then
27416   echo $ECHO_N "(cached) $ECHO_C" >&6
27417 else
27418
27419
27420
27421       ac_ext=cc
27422 ac_cpp='$CXXCPP $CPPFLAGS'
27423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27426
27427       cat >conftest.$ac_ext <<_ACEOF
27428 #line $LINENO "configure"
27429 /* confdefs.h.  */
27430 _ACEOF
27431 cat confdefs.h >>conftest.$ac_ext
27432 cat >>conftest.$ac_ext <<_ACEOF
27433 /* end confdefs.h.  */
27434 #include <math.h>
27435                       #ifdef HAVE_IEEEFP_H
27436                       #include <ieeefp.h>
27437                       #endif
27438
27439 int
27440 main ()
27441 {
27442  isnan(0);
27443   ;
27444   return 0;
27445 }
27446 _ACEOF
27447 rm -f conftest.$ac_objext
27448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27449   (eval $ac_compile) 2>&5
27450   ac_status=$?
27451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452   (exit $ac_status); } &&
27453          { ac_try='test -s conftest.$ac_objext'
27454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27455   (eval $ac_try) 2>&5
27456   ac_status=$?
27457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458   (exit $ac_status); }; }; then
27459   glibcxx_cv_func_isnan_use=yes
27460 else
27461   echo "$as_me: failed program was:" >&5
27462 sed 's/^/| /' conftest.$ac_ext >&5
27463
27464 glibcxx_cv_func_isnan_use=no
27465 fi
27466 rm -f conftest.$ac_objext conftest.$ac_ext
27467       ac_ext=c
27468 ac_cpp='$CPP $CPPFLAGS'
27469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27472
27473
27474 fi
27475
27476   fi
27477   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnan_use" >&5
27478 echo "${ECHO_T}$glibcxx_cv_func_isnan_use" >&6
27479
27480   if test x$glibcxx_cv_func_isnan_use = x"yes"; then
27481
27482 for ac_func in isnan
27483 do
27484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27485 echo "$as_me:$LINENO: checking for $ac_func" >&5
27486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27487 if eval "test \"\${$as_ac_var+set}\" = set"; then
27488   echo $ECHO_N "(cached) $ECHO_C" >&6
27489 else
27490   cat >conftest.$ac_ext <<_ACEOF
27491 #line $LINENO "configure"
27492 /* confdefs.h.  */
27493 _ACEOF
27494 cat confdefs.h >>conftest.$ac_ext
27495 cat >>conftest.$ac_ext <<_ACEOF
27496 /* end confdefs.h.  */
27497 /* System header to define __stub macros and hopefully few prototypes,
27498     which can conflict with char $ac_func (); below.
27499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27500     <limits.h> exists even on freestanding compilers.  */
27501 #ifdef __STDC__
27502 # include <limits.h>
27503 #else
27504 # include <assert.h>
27505 #endif
27506 /* Override any gcc2 internal prototype to avoid an error.  */
27507 #ifdef __cplusplus
27508 extern "C"
27509 {
27510 #endif
27511 /* We use char because int might match the return type of a gcc2
27512    builtin and then its argument prototype would still apply.  */
27513 char $ac_func ();
27514 /* The GNU C library defines this for functions which it implements
27515     to always fail with ENOSYS.  Some functions are actually named
27516     something starting with __ and the normal name is an alias.  */
27517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27518 choke me
27519 #else
27520 char (*f) () = $ac_func;
27521 #endif
27522 #ifdef __cplusplus
27523 }
27524 #endif
27525
27526 int
27527 main ()
27528 {
27529 return f != $ac_func;
27530   ;
27531   return 0;
27532 }
27533 _ACEOF
27534 rm -f conftest.$ac_objext conftest$ac_exeext
27535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27536   (eval $ac_link) 2>&5
27537   ac_status=$?
27538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539   (exit $ac_status); } &&
27540          { ac_try='test -s conftest$ac_exeext'
27541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27542   (eval $ac_try) 2>&5
27543   ac_status=$?
27544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545   (exit $ac_status); }; }; then
27546   eval "$as_ac_var=yes"
27547 else
27548   echo "$as_me: failed program was:" >&5
27549 sed 's/^/| /' conftest.$ac_ext >&5
27550
27551 eval "$as_ac_var=no"
27552 fi
27553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27554 fi
27555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27557 if test `eval echo '${'$as_ac_var'}'` = yes; then
27558   cat >>confdefs.h <<_ACEOF
27559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27560 _ACEOF
27561
27562 fi
27563 done
27564
27565   else
27566
27567   echo "$as_me:$LINENO: checking for _isnan declaration" >&5
27568 echo $ECHO_N "checking for _isnan declaration... $ECHO_C" >&6
27569   if test x${glibcxx_cv_func__isnan_use+set} != xset; then
27570     if test "${glibcxx_cv_func__isnan_use+set}" = set; then
27571   echo $ECHO_N "(cached) $ECHO_C" >&6
27572 else
27573
27574
27575
27576       ac_ext=cc
27577 ac_cpp='$CXXCPP $CPPFLAGS'
27578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27581
27582       cat >conftest.$ac_ext <<_ACEOF
27583 #line $LINENO "configure"
27584 /* confdefs.h.  */
27585 _ACEOF
27586 cat confdefs.h >>conftest.$ac_ext
27587 cat >>conftest.$ac_ext <<_ACEOF
27588 /* end confdefs.h.  */
27589 #include <math.h>
27590                       #ifdef HAVE_IEEEFP_H
27591                       #include <ieeefp.h>
27592                       #endif
27593
27594 int
27595 main ()
27596 {
27597  _isnan(0);
27598   ;
27599   return 0;
27600 }
27601 _ACEOF
27602 rm -f conftest.$ac_objext
27603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27604   (eval $ac_compile) 2>&5
27605   ac_status=$?
27606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607   (exit $ac_status); } &&
27608          { ac_try='test -s conftest.$ac_objext'
27609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27610   (eval $ac_try) 2>&5
27611   ac_status=$?
27612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613   (exit $ac_status); }; }; then
27614   glibcxx_cv_func__isnan_use=yes
27615 else
27616   echo "$as_me: failed program was:" >&5
27617 sed 's/^/| /' conftest.$ac_ext >&5
27618
27619 glibcxx_cv_func__isnan_use=no
27620 fi
27621 rm -f conftest.$ac_objext conftest.$ac_ext
27622       ac_ext=c
27623 ac_cpp='$CPP $CPPFLAGS'
27624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27627
27628
27629 fi
27630
27631   fi
27632   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnan_use" >&5
27633 echo "${ECHO_T}$glibcxx_cv_func__isnan_use" >&6
27634
27635     if test x$glibcxx_cv_func__isnan_use = x"yes"; then
27636
27637 for ac_func in _isnan
27638 do
27639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27640 echo "$as_me:$LINENO: checking for $ac_func" >&5
27641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27642 if eval "test \"\${$as_ac_var+set}\" = set"; then
27643   echo $ECHO_N "(cached) $ECHO_C" >&6
27644 else
27645   cat >conftest.$ac_ext <<_ACEOF
27646 #line $LINENO "configure"
27647 /* confdefs.h.  */
27648 _ACEOF
27649 cat confdefs.h >>conftest.$ac_ext
27650 cat >>conftest.$ac_ext <<_ACEOF
27651 /* end confdefs.h.  */
27652 /* System header to define __stub macros and hopefully few prototypes,
27653     which can conflict with char $ac_func (); below.
27654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27655     <limits.h> exists even on freestanding compilers.  */
27656 #ifdef __STDC__
27657 # include <limits.h>
27658 #else
27659 # include <assert.h>
27660 #endif
27661 /* Override any gcc2 internal prototype to avoid an error.  */
27662 #ifdef __cplusplus
27663 extern "C"
27664 {
27665 #endif
27666 /* We use char because int might match the return type of a gcc2
27667    builtin and then its argument prototype would still apply.  */
27668 char $ac_func ();
27669 /* The GNU C library defines this for functions which it implements
27670     to always fail with ENOSYS.  Some functions are actually named
27671     something starting with __ and the normal name is an alias.  */
27672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27673 choke me
27674 #else
27675 char (*f) () = $ac_func;
27676 #endif
27677 #ifdef __cplusplus
27678 }
27679 #endif
27680
27681 int
27682 main ()
27683 {
27684 return f != $ac_func;
27685   ;
27686   return 0;
27687 }
27688 _ACEOF
27689 rm -f conftest.$ac_objext conftest$ac_exeext
27690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27691   (eval $ac_link) 2>&5
27692   ac_status=$?
27693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694   (exit $ac_status); } &&
27695          { ac_try='test -s conftest$ac_exeext'
27696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27697   (eval $ac_try) 2>&5
27698   ac_status=$?
27699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700   (exit $ac_status); }; }; then
27701   eval "$as_ac_var=yes"
27702 else
27703   echo "$as_me: failed program was:" >&5
27704 sed 's/^/| /' conftest.$ac_ext >&5
27705
27706 eval "$as_ac_var=no"
27707 fi
27708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27709 fi
27710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27712 if test `eval echo '${'$as_ac_var'}'` = yes; then
27713   cat >>confdefs.h <<_ACEOF
27714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27715 _ACEOF
27716
27717 fi
27718 done
27719
27720     fi
27721   fi
27722
27723
27724
27725   echo "$as_me:$LINENO: checking for finite declaration" >&5
27726 echo $ECHO_N "checking for finite declaration... $ECHO_C" >&6
27727   if test x${glibcxx_cv_func_finite_use+set} != xset; then
27728     if test "${glibcxx_cv_func_finite_use+set}" = set; then
27729   echo $ECHO_N "(cached) $ECHO_C" >&6
27730 else
27731
27732
27733
27734       ac_ext=cc
27735 ac_cpp='$CXXCPP $CPPFLAGS'
27736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27739
27740       cat >conftest.$ac_ext <<_ACEOF
27741 #line $LINENO "configure"
27742 /* confdefs.h.  */
27743 _ACEOF
27744 cat confdefs.h >>conftest.$ac_ext
27745 cat >>conftest.$ac_ext <<_ACEOF
27746 /* end confdefs.h.  */
27747 #include <math.h>
27748                       #ifdef HAVE_IEEEFP_H
27749                       #include <ieeefp.h>
27750                       #endif
27751
27752 int
27753 main ()
27754 {
27755  finite(0);
27756   ;
27757   return 0;
27758 }
27759 _ACEOF
27760 rm -f conftest.$ac_objext
27761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27762   (eval $ac_compile) 2>&5
27763   ac_status=$?
27764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765   (exit $ac_status); } &&
27766          { ac_try='test -s conftest.$ac_objext'
27767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27768   (eval $ac_try) 2>&5
27769   ac_status=$?
27770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771   (exit $ac_status); }; }; then
27772   glibcxx_cv_func_finite_use=yes
27773 else
27774   echo "$as_me: failed program was:" >&5
27775 sed 's/^/| /' conftest.$ac_ext >&5
27776
27777 glibcxx_cv_func_finite_use=no
27778 fi
27779 rm -f conftest.$ac_objext conftest.$ac_ext
27780       ac_ext=c
27781 ac_cpp='$CPP $CPPFLAGS'
27782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27785
27786
27787 fi
27788
27789   fi
27790   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finite_use" >&5
27791 echo "${ECHO_T}$glibcxx_cv_func_finite_use" >&6
27792
27793   if test x$glibcxx_cv_func_finite_use = x"yes"; then
27794
27795 for ac_func in finite
27796 do
27797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27798 echo "$as_me:$LINENO: checking for $ac_func" >&5
27799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27800 if eval "test \"\${$as_ac_var+set}\" = set"; then
27801   echo $ECHO_N "(cached) $ECHO_C" >&6
27802 else
27803   cat >conftest.$ac_ext <<_ACEOF
27804 #line $LINENO "configure"
27805 /* confdefs.h.  */
27806 _ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h.  */
27810 /* System header to define __stub macros and hopefully few prototypes,
27811     which can conflict with char $ac_func (); below.
27812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27813     <limits.h> exists even on freestanding compilers.  */
27814 #ifdef __STDC__
27815 # include <limits.h>
27816 #else
27817 # include <assert.h>
27818 #endif
27819 /* Override any gcc2 internal prototype to avoid an error.  */
27820 #ifdef __cplusplus
27821 extern "C"
27822 {
27823 #endif
27824 /* We use char because int might match the return type of a gcc2
27825    builtin and then its argument prototype would still apply.  */
27826 char $ac_func ();
27827 /* The GNU C library defines this for functions which it implements
27828     to always fail with ENOSYS.  Some functions are actually named
27829     something starting with __ and the normal name is an alias.  */
27830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27831 choke me
27832 #else
27833 char (*f) () = $ac_func;
27834 #endif
27835 #ifdef __cplusplus
27836 }
27837 #endif
27838
27839 int
27840 main ()
27841 {
27842 return f != $ac_func;
27843   ;
27844   return 0;
27845 }
27846 _ACEOF
27847 rm -f conftest.$ac_objext conftest$ac_exeext
27848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27849   (eval $ac_link) 2>&5
27850   ac_status=$?
27851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852   (exit $ac_status); } &&
27853          { ac_try='test -s conftest$ac_exeext'
27854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27855   (eval $ac_try) 2>&5
27856   ac_status=$?
27857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27858   (exit $ac_status); }; }; then
27859   eval "$as_ac_var=yes"
27860 else
27861   echo "$as_me: failed program was:" >&5
27862 sed 's/^/| /' conftest.$ac_ext >&5
27863
27864 eval "$as_ac_var=no"
27865 fi
27866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27867 fi
27868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27870 if test `eval echo '${'$as_ac_var'}'` = yes; then
27871   cat >>confdefs.h <<_ACEOF
27872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27873 _ACEOF
27874
27875 fi
27876 done
27877
27878   else
27879
27880   echo "$as_me:$LINENO: checking for _finite declaration" >&5
27881 echo $ECHO_N "checking for _finite declaration... $ECHO_C" >&6
27882   if test x${glibcxx_cv_func__finite_use+set} != xset; then
27883     if test "${glibcxx_cv_func__finite_use+set}" = set; then
27884   echo $ECHO_N "(cached) $ECHO_C" >&6
27885 else
27886
27887
27888
27889       ac_ext=cc
27890 ac_cpp='$CXXCPP $CPPFLAGS'
27891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27894
27895       cat >conftest.$ac_ext <<_ACEOF
27896 #line $LINENO "configure"
27897 /* confdefs.h.  */
27898 _ACEOF
27899 cat confdefs.h >>conftest.$ac_ext
27900 cat >>conftest.$ac_ext <<_ACEOF
27901 /* end confdefs.h.  */
27902 #include <math.h>
27903                       #ifdef HAVE_IEEEFP_H
27904                       #include <ieeefp.h>
27905                       #endif
27906
27907 int
27908 main ()
27909 {
27910  _finite(0);
27911   ;
27912   return 0;
27913 }
27914 _ACEOF
27915 rm -f conftest.$ac_objext
27916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27917   (eval $ac_compile) 2>&5
27918   ac_status=$?
27919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920   (exit $ac_status); } &&
27921          { ac_try='test -s conftest.$ac_objext'
27922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27923   (eval $ac_try) 2>&5
27924   ac_status=$?
27925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27926   (exit $ac_status); }; }; then
27927   glibcxx_cv_func__finite_use=yes
27928 else
27929   echo "$as_me: failed program was:" >&5
27930 sed 's/^/| /' conftest.$ac_ext >&5
27931
27932 glibcxx_cv_func__finite_use=no
27933 fi
27934 rm -f conftest.$ac_objext conftest.$ac_ext
27935       ac_ext=c
27936 ac_cpp='$CPP $CPPFLAGS'
27937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27940
27941
27942 fi
27943
27944   fi
27945   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finite_use" >&5
27946 echo "${ECHO_T}$glibcxx_cv_func__finite_use" >&6
27947
27948     if test x$glibcxx_cv_func__finite_use = x"yes"; then
27949
27950 for ac_func in _finite
27951 do
27952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27953 echo "$as_me:$LINENO: checking for $ac_func" >&5
27954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27955 if eval "test \"\${$as_ac_var+set}\" = set"; then
27956   echo $ECHO_N "(cached) $ECHO_C" >&6
27957 else
27958   cat >conftest.$ac_ext <<_ACEOF
27959 #line $LINENO "configure"
27960 /* confdefs.h.  */
27961 _ACEOF
27962 cat confdefs.h >>conftest.$ac_ext
27963 cat >>conftest.$ac_ext <<_ACEOF
27964 /* end confdefs.h.  */
27965 /* System header to define __stub macros and hopefully few prototypes,
27966     which can conflict with char $ac_func (); below.
27967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27968     <limits.h> exists even on freestanding compilers.  */
27969 #ifdef __STDC__
27970 # include <limits.h>
27971 #else
27972 # include <assert.h>
27973 #endif
27974 /* Override any gcc2 internal prototype to avoid an error.  */
27975 #ifdef __cplusplus
27976 extern "C"
27977 {
27978 #endif
27979 /* We use char because int might match the return type of a gcc2
27980    builtin and then its argument prototype would still apply.  */
27981 char $ac_func ();
27982 /* The GNU C library defines this for functions which it implements
27983     to always fail with ENOSYS.  Some functions are actually named
27984     something starting with __ and the normal name is an alias.  */
27985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27986 choke me
27987 #else
27988 char (*f) () = $ac_func;
27989 #endif
27990 #ifdef __cplusplus
27991 }
27992 #endif
27993
27994 int
27995 main ()
27996 {
27997 return f != $ac_func;
27998   ;
27999   return 0;
28000 }
28001 _ACEOF
28002 rm -f conftest.$ac_objext conftest$ac_exeext
28003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28004   (eval $ac_link) 2>&5
28005   ac_status=$?
28006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007   (exit $ac_status); } &&
28008          { ac_try='test -s conftest$ac_exeext'
28009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28010   (eval $ac_try) 2>&5
28011   ac_status=$?
28012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28013   (exit $ac_status); }; }; then
28014   eval "$as_ac_var=yes"
28015 else
28016   echo "$as_me: failed program was:" >&5
28017 sed 's/^/| /' conftest.$ac_ext >&5
28018
28019 eval "$as_ac_var=no"
28020 fi
28021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28022 fi
28023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28025 if test `eval echo '${'$as_ac_var'}'` = yes; then
28026   cat >>confdefs.h <<_ACEOF
28027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28028 _ACEOF
28029
28030 fi
28031 done
28032
28033     fi
28034   fi
28035
28036
28037
28038   echo "$as_me:$LINENO: checking for copysign declaration" >&5
28039 echo $ECHO_N "checking for copysign declaration... $ECHO_C" >&6
28040   if test x${glibcxx_cv_func_copysign_use+set} != xset; then
28041     if test "${glibcxx_cv_func_copysign_use+set}" = set; then
28042   echo $ECHO_N "(cached) $ECHO_C" >&6
28043 else
28044
28045
28046
28047       ac_ext=cc
28048 ac_cpp='$CXXCPP $CPPFLAGS'
28049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28052
28053       cat >conftest.$ac_ext <<_ACEOF
28054 #line $LINENO "configure"
28055 /* confdefs.h.  */
28056 _ACEOF
28057 cat confdefs.h >>conftest.$ac_ext
28058 cat >>conftest.$ac_ext <<_ACEOF
28059 /* end confdefs.h.  */
28060 #include <math.h>
28061 int
28062 main ()
28063 {
28064  copysign(0, 0);
28065   ;
28066   return 0;
28067 }
28068 _ACEOF
28069 rm -f conftest.$ac_objext
28070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28071   (eval $ac_compile) 2>&5
28072   ac_status=$?
28073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074   (exit $ac_status); } &&
28075          { ac_try='test -s conftest.$ac_objext'
28076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28077   (eval $ac_try) 2>&5
28078   ac_status=$?
28079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080   (exit $ac_status); }; }; then
28081   glibcxx_cv_func_copysign_use=yes
28082 else
28083   echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28085
28086 glibcxx_cv_func_copysign_use=no
28087 fi
28088 rm -f conftest.$ac_objext conftest.$ac_ext
28089       ac_ext=c
28090 ac_cpp='$CPP $CPPFLAGS'
28091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28094
28095
28096 fi
28097
28098   fi
28099   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysign_use" >&5
28100 echo "${ECHO_T}$glibcxx_cv_func_copysign_use" >&6
28101
28102   if test x$glibcxx_cv_func_copysign_use = x"yes"; then
28103
28104 for ac_func in copysign
28105 do
28106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28107 echo "$as_me:$LINENO: checking for $ac_func" >&5
28108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28109 if eval "test \"\${$as_ac_var+set}\" = set"; then
28110   echo $ECHO_N "(cached) $ECHO_C" >&6
28111 else
28112   cat >conftest.$ac_ext <<_ACEOF
28113 #line $LINENO "configure"
28114 /* confdefs.h.  */
28115 _ACEOF
28116 cat confdefs.h >>conftest.$ac_ext
28117 cat >>conftest.$ac_ext <<_ACEOF
28118 /* end confdefs.h.  */
28119 /* System header to define __stub macros and hopefully few prototypes,
28120     which can conflict with char $ac_func (); below.
28121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28122     <limits.h> exists even on freestanding compilers.  */
28123 #ifdef __STDC__
28124 # include <limits.h>
28125 #else
28126 # include <assert.h>
28127 #endif
28128 /* Override any gcc2 internal prototype to avoid an error.  */
28129 #ifdef __cplusplus
28130 extern "C"
28131 {
28132 #endif
28133 /* We use char because int might match the return type of a gcc2
28134    builtin and then its argument prototype would still apply.  */
28135 char $ac_func ();
28136 /* The GNU C library defines this for functions which it implements
28137     to always fail with ENOSYS.  Some functions are actually named
28138     something starting with __ and the normal name is an alias.  */
28139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28140 choke me
28141 #else
28142 char (*f) () = $ac_func;
28143 #endif
28144 #ifdef __cplusplus
28145 }
28146 #endif
28147
28148 int
28149 main ()
28150 {
28151 return f != $ac_func;
28152   ;
28153   return 0;
28154 }
28155 _ACEOF
28156 rm -f conftest.$ac_objext conftest$ac_exeext
28157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28158   (eval $ac_link) 2>&5
28159   ac_status=$?
28160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161   (exit $ac_status); } &&
28162          { ac_try='test -s conftest$ac_exeext'
28163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164   (eval $ac_try) 2>&5
28165   ac_status=$?
28166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167   (exit $ac_status); }; }; then
28168   eval "$as_ac_var=yes"
28169 else
28170   echo "$as_me: failed program was:" >&5
28171 sed 's/^/| /' conftest.$ac_ext >&5
28172
28173 eval "$as_ac_var=no"
28174 fi
28175 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28176 fi
28177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28179 if test `eval echo '${'$as_ac_var'}'` = yes; then
28180   cat >>confdefs.h <<_ACEOF
28181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28182 _ACEOF
28183
28184 fi
28185 done
28186
28187   else
28188
28189   echo "$as_me:$LINENO: checking for _copysign declaration" >&5
28190 echo $ECHO_N "checking for _copysign declaration... $ECHO_C" >&6
28191   if test x${glibcxx_cv_func__copysign_use+set} != xset; then
28192     if test "${glibcxx_cv_func__copysign_use+set}" = set; then
28193   echo $ECHO_N "(cached) $ECHO_C" >&6
28194 else
28195
28196
28197
28198       ac_ext=cc
28199 ac_cpp='$CXXCPP $CPPFLAGS'
28200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28203
28204       cat >conftest.$ac_ext <<_ACEOF
28205 #line $LINENO "configure"
28206 /* confdefs.h.  */
28207 _ACEOF
28208 cat confdefs.h >>conftest.$ac_ext
28209 cat >>conftest.$ac_ext <<_ACEOF
28210 /* end confdefs.h.  */
28211 #include <math.h>
28212 int
28213 main ()
28214 {
28215  _copysign(0, 0);
28216   ;
28217   return 0;
28218 }
28219 _ACEOF
28220 rm -f conftest.$ac_objext
28221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28222   (eval $ac_compile) 2>&5
28223   ac_status=$?
28224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225   (exit $ac_status); } &&
28226          { ac_try='test -s conftest.$ac_objext'
28227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228   (eval $ac_try) 2>&5
28229   ac_status=$?
28230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231   (exit $ac_status); }; }; then
28232   glibcxx_cv_func__copysign_use=yes
28233 else
28234   echo "$as_me: failed program was:" >&5
28235 sed 's/^/| /' conftest.$ac_ext >&5
28236
28237 glibcxx_cv_func__copysign_use=no
28238 fi
28239 rm -f conftest.$ac_objext conftest.$ac_ext
28240       ac_ext=c
28241 ac_cpp='$CPP $CPPFLAGS'
28242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28245
28246
28247 fi
28248
28249   fi
28250   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysign_use" >&5
28251 echo "${ECHO_T}$glibcxx_cv_func__copysign_use" >&6
28252
28253     if test x$glibcxx_cv_func__copysign_use = x"yes"; then
28254
28255 for ac_func in _copysign
28256 do
28257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28258 echo "$as_me:$LINENO: checking for $ac_func" >&5
28259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28260 if eval "test \"\${$as_ac_var+set}\" = set"; then
28261   echo $ECHO_N "(cached) $ECHO_C" >&6
28262 else
28263   cat >conftest.$ac_ext <<_ACEOF
28264 #line $LINENO "configure"
28265 /* confdefs.h.  */
28266 _ACEOF
28267 cat confdefs.h >>conftest.$ac_ext
28268 cat >>conftest.$ac_ext <<_ACEOF
28269 /* end confdefs.h.  */
28270 /* System header to define __stub macros and hopefully few prototypes,
28271     which can conflict with char $ac_func (); below.
28272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28273     <limits.h> exists even on freestanding compilers.  */
28274 #ifdef __STDC__
28275 # include <limits.h>
28276 #else
28277 # include <assert.h>
28278 #endif
28279 /* Override any gcc2 internal prototype to avoid an error.  */
28280 #ifdef __cplusplus
28281 extern "C"
28282 {
28283 #endif
28284 /* We use char because int might match the return type of a gcc2
28285    builtin and then its argument prototype would still apply.  */
28286 char $ac_func ();
28287 /* The GNU C library defines this for functions which it implements
28288     to always fail with ENOSYS.  Some functions are actually named
28289     something starting with __ and the normal name is an alias.  */
28290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28291 choke me
28292 #else
28293 char (*f) () = $ac_func;
28294 #endif
28295 #ifdef __cplusplus
28296 }
28297 #endif
28298
28299 int
28300 main ()
28301 {
28302 return f != $ac_func;
28303   ;
28304   return 0;
28305 }
28306 _ACEOF
28307 rm -f conftest.$ac_objext conftest$ac_exeext
28308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28309   (eval $ac_link) 2>&5
28310   ac_status=$?
28311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312   (exit $ac_status); } &&
28313          { ac_try='test -s conftest$ac_exeext'
28314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28315   (eval $ac_try) 2>&5
28316   ac_status=$?
28317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318   (exit $ac_status); }; }; then
28319   eval "$as_ac_var=yes"
28320 else
28321   echo "$as_me: failed program was:" >&5
28322 sed 's/^/| /' conftest.$ac_ext >&5
28323
28324 eval "$as_ac_var=no"
28325 fi
28326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28327 fi
28328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28330 if test `eval echo '${'$as_ac_var'}'` = yes; then
28331   cat >>confdefs.h <<_ACEOF
28332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28333 _ACEOF
28334
28335 fi
28336 done
28337
28338     fi
28339   fi
28340
28341
28342
28343   echo "$as_me:$LINENO: checking for sincos declaration" >&5
28344 echo $ECHO_N "checking for sincos declaration... $ECHO_C" >&6
28345   if test x${glibcxx_cv_func_sincos_use+set} != xset; then
28346     if test "${glibcxx_cv_func_sincos_use+set}" = set; then
28347   echo $ECHO_N "(cached) $ECHO_C" >&6
28348 else
28349
28350
28351
28352       ac_ext=cc
28353 ac_cpp='$CXXCPP $CPPFLAGS'
28354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28355 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28357
28358       cat >conftest.$ac_ext <<_ACEOF
28359 #line $LINENO "configure"
28360 /* confdefs.h.  */
28361 _ACEOF
28362 cat confdefs.h >>conftest.$ac_ext
28363 cat >>conftest.$ac_ext <<_ACEOF
28364 /* end confdefs.h.  */
28365 #include <math.h>
28366 int
28367 main ()
28368 {
28369  sincos(0, 0, 0);
28370   ;
28371   return 0;
28372 }
28373 _ACEOF
28374 rm -f conftest.$ac_objext
28375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28376   (eval $ac_compile) 2>&5
28377   ac_status=$?
28378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28379   (exit $ac_status); } &&
28380          { ac_try='test -s conftest.$ac_objext'
28381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28382   (eval $ac_try) 2>&5
28383   ac_status=$?
28384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385   (exit $ac_status); }; }; then
28386   glibcxx_cv_func_sincos_use=yes
28387 else
28388   echo "$as_me: failed program was:" >&5
28389 sed 's/^/| /' conftest.$ac_ext >&5
28390
28391 glibcxx_cv_func_sincos_use=no
28392 fi
28393 rm -f conftest.$ac_objext conftest.$ac_ext
28394       ac_ext=c
28395 ac_cpp='$CPP $CPPFLAGS'
28396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28399
28400
28401 fi
28402
28403   fi
28404   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincos_use" >&5
28405 echo "${ECHO_T}$glibcxx_cv_func_sincos_use" >&6
28406
28407   if test x$glibcxx_cv_func_sincos_use = x"yes"; then
28408
28409 for ac_func in sincos
28410 do
28411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28412 echo "$as_me:$LINENO: checking for $ac_func" >&5
28413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28414 if eval "test \"\${$as_ac_var+set}\" = set"; then
28415   echo $ECHO_N "(cached) $ECHO_C" >&6
28416 else
28417   cat >conftest.$ac_ext <<_ACEOF
28418 #line $LINENO "configure"
28419 /* confdefs.h.  */
28420 _ACEOF
28421 cat confdefs.h >>conftest.$ac_ext
28422 cat >>conftest.$ac_ext <<_ACEOF
28423 /* end confdefs.h.  */
28424 /* System header to define __stub macros and hopefully few prototypes,
28425     which can conflict with char $ac_func (); below.
28426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28427     <limits.h> exists even on freestanding compilers.  */
28428 #ifdef __STDC__
28429 # include <limits.h>
28430 #else
28431 # include <assert.h>
28432 #endif
28433 /* Override any gcc2 internal prototype to avoid an error.  */
28434 #ifdef __cplusplus
28435 extern "C"
28436 {
28437 #endif
28438 /* We use char because int might match the return type of a gcc2
28439    builtin and then its argument prototype would still apply.  */
28440 char $ac_func ();
28441 /* The GNU C library defines this for functions which it implements
28442     to always fail with ENOSYS.  Some functions are actually named
28443     something starting with __ and the normal name is an alias.  */
28444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28445 choke me
28446 #else
28447 char (*f) () = $ac_func;
28448 #endif
28449 #ifdef __cplusplus
28450 }
28451 #endif
28452
28453 int
28454 main ()
28455 {
28456 return f != $ac_func;
28457   ;
28458   return 0;
28459 }
28460 _ACEOF
28461 rm -f conftest.$ac_objext conftest$ac_exeext
28462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28463   (eval $ac_link) 2>&5
28464   ac_status=$?
28465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466   (exit $ac_status); } &&
28467          { ac_try='test -s conftest$ac_exeext'
28468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28469   (eval $ac_try) 2>&5
28470   ac_status=$?
28471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472   (exit $ac_status); }; }; then
28473   eval "$as_ac_var=yes"
28474 else
28475   echo "$as_me: failed program was:" >&5
28476 sed 's/^/| /' conftest.$ac_ext >&5
28477
28478 eval "$as_ac_var=no"
28479 fi
28480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28481 fi
28482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28484 if test `eval echo '${'$as_ac_var'}'` = yes; then
28485   cat >>confdefs.h <<_ACEOF
28486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28487 _ACEOF
28488
28489 fi
28490 done
28491
28492   else
28493
28494   echo "$as_me:$LINENO: checking for _sincos declaration" >&5
28495 echo $ECHO_N "checking for _sincos declaration... $ECHO_C" >&6
28496   if test x${glibcxx_cv_func__sincos_use+set} != xset; then
28497     if test "${glibcxx_cv_func__sincos_use+set}" = set; then
28498   echo $ECHO_N "(cached) $ECHO_C" >&6
28499 else
28500
28501
28502
28503       ac_ext=cc
28504 ac_cpp='$CXXCPP $CPPFLAGS'
28505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28508
28509       cat >conftest.$ac_ext <<_ACEOF
28510 #line $LINENO "configure"
28511 /* confdefs.h.  */
28512 _ACEOF
28513 cat confdefs.h >>conftest.$ac_ext
28514 cat >>conftest.$ac_ext <<_ACEOF
28515 /* end confdefs.h.  */
28516 #include <math.h>
28517 int
28518 main ()
28519 {
28520  _sincos(0, 0, 0);
28521   ;
28522   return 0;
28523 }
28524 _ACEOF
28525 rm -f conftest.$ac_objext
28526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28527   (eval $ac_compile) 2>&5
28528   ac_status=$?
28529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530   (exit $ac_status); } &&
28531          { ac_try='test -s conftest.$ac_objext'
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   glibcxx_cv_func__sincos_use=yes
28538 else
28539   echo "$as_me: failed program was:" >&5
28540 sed 's/^/| /' conftest.$ac_ext >&5
28541
28542 glibcxx_cv_func__sincos_use=no
28543 fi
28544 rm -f conftest.$ac_objext conftest.$ac_ext
28545       ac_ext=c
28546 ac_cpp='$CPP $CPPFLAGS'
28547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28550
28551
28552 fi
28553
28554   fi
28555   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincos_use" >&5
28556 echo "${ECHO_T}$glibcxx_cv_func__sincos_use" >&6
28557
28558     if test x$glibcxx_cv_func__sincos_use = x"yes"; then
28559
28560 for ac_func in _sincos
28561 do
28562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28563 echo "$as_me:$LINENO: checking for $ac_func" >&5
28564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28565 if eval "test \"\${$as_ac_var+set}\" = set"; then
28566   echo $ECHO_N "(cached) $ECHO_C" >&6
28567 else
28568   cat >conftest.$ac_ext <<_ACEOF
28569 #line $LINENO "configure"
28570 /* confdefs.h.  */
28571 _ACEOF
28572 cat confdefs.h >>conftest.$ac_ext
28573 cat >>conftest.$ac_ext <<_ACEOF
28574 /* end confdefs.h.  */
28575 /* System header to define __stub macros and hopefully few prototypes,
28576     which can conflict with char $ac_func (); below.
28577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28578     <limits.h> exists even on freestanding compilers.  */
28579 #ifdef __STDC__
28580 # include <limits.h>
28581 #else
28582 # include <assert.h>
28583 #endif
28584 /* Override any gcc2 internal prototype to avoid an error.  */
28585 #ifdef __cplusplus
28586 extern "C"
28587 {
28588 #endif
28589 /* We use char because int might match the return type of a gcc2
28590    builtin and then its argument prototype would still apply.  */
28591 char $ac_func ();
28592 /* The GNU C library defines this for functions which it implements
28593     to always fail with ENOSYS.  Some functions are actually named
28594     something starting with __ and the normal name is an alias.  */
28595 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28596 choke me
28597 #else
28598 char (*f) () = $ac_func;
28599 #endif
28600 #ifdef __cplusplus
28601 }
28602 #endif
28603
28604 int
28605 main ()
28606 {
28607 return f != $ac_func;
28608   ;
28609   return 0;
28610 }
28611 _ACEOF
28612 rm -f conftest.$ac_objext conftest$ac_exeext
28613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28614   (eval $ac_link) 2>&5
28615   ac_status=$?
28616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617   (exit $ac_status); } &&
28618          { ac_try='test -s conftest$ac_exeext'
28619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620   (eval $ac_try) 2>&5
28621   ac_status=$?
28622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623   (exit $ac_status); }; }; then
28624   eval "$as_ac_var=yes"
28625 else
28626   echo "$as_me: failed program was:" >&5
28627 sed 's/^/| /' conftest.$ac_ext >&5
28628
28629 eval "$as_ac_var=no"
28630 fi
28631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28632 fi
28633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28635 if test `eval echo '${'$as_ac_var'}'` = yes; then
28636   cat >>confdefs.h <<_ACEOF
28637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28638 _ACEOF
28639
28640 fi
28641 done
28642
28643     fi
28644   fi
28645
28646
28647
28648   echo "$as_me:$LINENO: checking for fpclass declaration" >&5
28649 echo $ECHO_N "checking for fpclass declaration... $ECHO_C" >&6
28650   if test x${glibcxx_cv_func_fpclass_use+set} != xset; then
28651     if test "${glibcxx_cv_func_fpclass_use+set}" = set; then
28652   echo $ECHO_N "(cached) $ECHO_C" >&6
28653 else
28654
28655
28656
28657       ac_ext=cc
28658 ac_cpp='$CXXCPP $CPPFLAGS'
28659 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28660 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28661 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28662
28663       cat >conftest.$ac_ext <<_ACEOF
28664 #line $LINENO "configure"
28665 /* confdefs.h.  */
28666 _ACEOF
28667 cat confdefs.h >>conftest.$ac_ext
28668 cat >>conftest.$ac_ext <<_ACEOF
28669 /* end confdefs.h.  */
28670 #include <math.h>
28671                       #ifdef HAVE_IEEEFP_H
28672                       #include <ieeefp.h>
28673                       #endif
28674
28675 int
28676 main ()
28677 {
28678  fpclass(0);
28679   ;
28680   return 0;
28681 }
28682 _ACEOF
28683 rm -f conftest.$ac_objext
28684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28685   (eval $ac_compile) 2>&5
28686   ac_status=$?
28687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688   (exit $ac_status); } &&
28689          { ac_try='test -s conftest.$ac_objext'
28690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28691   (eval $ac_try) 2>&5
28692   ac_status=$?
28693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694   (exit $ac_status); }; }; then
28695   glibcxx_cv_func_fpclass_use=yes
28696 else
28697   echo "$as_me: failed program was:" >&5
28698 sed 's/^/| /' conftest.$ac_ext >&5
28699
28700 glibcxx_cv_func_fpclass_use=no
28701 fi
28702 rm -f conftest.$ac_objext conftest.$ac_ext
28703       ac_ext=c
28704 ac_cpp='$CPP $CPPFLAGS'
28705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28708
28709
28710 fi
28711
28712   fi
28713   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fpclass_use" >&5
28714 echo "${ECHO_T}$glibcxx_cv_func_fpclass_use" >&6
28715
28716   if test x$glibcxx_cv_func_fpclass_use = x"yes"; then
28717
28718 for ac_func in fpclass
28719 do
28720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28721 echo "$as_me:$LINENO: checking for $ac_func" >&5
28722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28723 if eval "test \"\${$as_ac_var+set}\" = set"; then
28724   echo $ECHO_N "(cached) $ECHO_C" >&6
28725 else
28726   cat >conftest.$ac_ext <<_ACEOF
28727 #line $LINENO "configure"
28728 /* confdefs.h.  */
28729 _ACEOF
28730 cat confdefs.h >>conftest.$ac_ext
28731 cat >>conftest.$ac_ext <<_ACEOF
28732 /* end confdefs.h.  */
28733 /* System header to define __stub macros and hopefully few prototypes,
28734     which can conflict with char $ac_func (); below.
28735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28736     <limits.h> exists even on freestanding compilers.  */
28737 #ifdef __STDC__
28738 # include <limits.h>
28739 #else
28740 # include <assert.h>
28741 #endif
28742 /* Override any gcc2 internal prototype to avoid an error.  */
28743 #ifdef __cplusplus
28744 extern "C"
28745 {
28746 #endif
28747 /* We use char because int might match the return type of a gcc2
28748    builtin and then its argument prototype would still apply.  */
28749 char $ac_func ();
28750 /* The GNU C library defines this for functions which it implements
28751     to always fail with ENOSYS.  Some functions are actually named
28752     something starting with __ and the normal name is an alias.  */
28753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28754 choke me
28755 #else
28756 char (*f) () = $ac_func;
28757 #endif
28758 #ifdef __cplusplus
28759 }
28760 #endif
28761
28762 int
28763 main ()
28764 {
28765 return f != $ac_func;
28766   ;
28767   return 0;
28768 }
28769 _ACEOF
28770 rm -f conftest.$ac_objext conftest$ac_exeext
28771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28772   (eval $ac_link) 2>&5
28773   ac_status=$?
28774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775   (exit $ac_status); } &&
28776          { ac_try='test -s conftest$ac_exeext'
28777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778   (eval $ac_try) 2>&5
28779   ac_status=$?
28780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781   (exit $ac_status); }; }; then
28782   eval "$as_ac_var=yes"
28783 else
28784   echo "$as_me: failed program was:" >&5
28785 sed 's/^/| /' conftest.$ac_ext >&5
28786
28787 eval "$as_ac_var=no"
28788 fi
28789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28790 fi
28791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28793 if test `eval echo '${'$as_ac_var'}'` = yes; then
28794   cat >>confdefs.h <<_ACEOF
28795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28796 _ACEOF
28797
28798 fi
28799 done
28800
28801   else
28802
28803   echo "$as_me:$LINENO: checking for _fpclass declaration" >&5
28804 echo $ECHO_N "checking for _fpclass declaration... $ECHO_C" >&6
28805   if test x${glibcxx_cv_func__fpclass_use+set} != xset; then
28806     if test "${glibcxx_cv_func__fpclass_use+set}" = set; then
28807   echo $ECHO_N "(cached) $ECHO_C" >&6
28808 else
28809
28810
28811
28812       ac_ext=cc
28813 ac_cpp='$CXXCPP $CPPFLAGS'
28814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28817
28818       cat >conftest.$ac_ext <<_ACEOF
28819 #line $LINENO "configure"
28820 /* confdefs.h.  */
28821 _ACEOF
28822 cat confdefs.h >>conftest.$ac_ext
28823 cat >>conftest.$ac_ext <<_ACEOF
28824 /* end confdefs.h.  */
28825 #include <math.h>
28826                       #ifdef HAVE_IEEEFP_H
28827                       #include <ieeefp.h>
28828                       #endif
28829
28830 int
28831 main ()
28832 {
28833  _fpclass(0);
28834   ;
28835   return 0;
28836 }
28837 _ACEOF
28838 rm -f conftest.$ac_objext
28839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28840   (eval $ac_compile) 2>&5
28841   ac_status=$?
28842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843   (exit $ac_status); } &&
28844          { ac_try='test -s conftest.$ac_objext'
28845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28846   (eval $ac_try) 2>&5
28847   ac_status=$?
28848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849   (exit $ac_status); }; }; then
28850   glibcxx_cv_func__fpclass_use=yes
28851 else
28852   echo "$as_me: failed program was:" >&5
28853 sed 's/^/| /' conftest.$ac_ext >&5
28854
28855 glibcxx_cv_func__fpclass_use=no
28856 fi
28857 rm -f conftest.$ac_objext conftest.$ac_ext
28858       ac_ext=c
28859 ac_cpp='$CPP $CPPFLAGS'
28860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28863
28864
28865 fi
28866
28867   fi
28868   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fpclass_use" >&5
28869 echo "${ECHO_T}$glibcxx_cv_func__fpclass_use" >&6
28870
28871     if test x$glibcxx_cv_func__fpclass_use = x"yes"; then
28872
28873 for ac_func in _fpclass
28874 do
28875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28876 echo "$as_me:$LINENO: checking for $ac_func" >&5
28877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28878 if eval "test \"\${$as_ac_var+set}\" = set"; then
28879   echo $ECHO_N "(cached) $ECHO_C" >&6
28880 else
28881   cat >conftest.$ac_ext <<_ACEOF
28882 #line $LINENO "configure"
28883 /* confdefs.h.  */
28884 _ACEOF
28885 cat confdefs.h >>conftest.$ac_ext
28886 cat >>conftest.$ac_ext <<_ACEOF
28887 /* end confdefs.h.  */
28888 /* System header to define __stub macros and hopefully few prototypes,
28889     which can conflict with char $ac_func (); below.
28890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28891     <limits.h> exists even on freestanding compilers.  */
28892 #ifdef __STDC__
28893 # include <limits.h>
28894 #else
28895 # include <assert.h>
28896 #endif
28897 /* Override any gcc2 internal prototype to avoid an error.  */
28898 #ifdef __cplusplus
28899 extern "C"
28900 {
28901 #endif
28902 /* We use char because int might match the return type of a gcc2
28903    builtin and then its argument prototype would still apply.  */
28904 char $ac_func ();
28905 /* The GNU C library defines this for functions which it implements
28906     to always fail with ENOSYS.  Some functions are actually named
28907     something starting with __ and the normal name is an alias.  */
28908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28909 choke me
28910 #else
28911 char (*f) () = $ac_func;
28912 #endif
28913 #ifdef __cplusplus
28914 }
28915 #endif
28916
28917 int
28918 main ()
28919 {
28920 return f != $ac_func;
28921   ;
28922   return 0;
28923 }
28924 _ACEOF
28925 rm -f conftest.$ac_objext conftest$ac_exeext
28926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28927   (eval $ac_link) 2>&5
28928   ac_status=$?
28929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930   (exit $ac_status); } &&
28931          { ac_try='test -s conftest$ac_exeext'
28932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28933   (eval $ac_try) 2>&5
28934   ac_status=$?
28935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936   (exit $ac_status); }; }; then
28937   eval "$as_ac_var=yes"
28938 else
28939   echo "$as_me: failed program was:" >&5
28940 sed 's/^/| /' conftest.$ac_ext >&5
28941
28942 eval "$as_ac_var=no"
28943 fi
28944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28945 fi
28946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28948 if test `eval echo '${'$as_ac_var'}'` = yes; then
28949   cat >>confdefs.h <<_ACEOF
28950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28951 _ACEOF
28952
28953 fi
28954 done
28955
28956     fi
28957   fi
28958
28959
28960
28961   echo "$as_me:$LINENO: checking for qfpclass declaration" >&5
28962 echo $ECHO_N "checking for qfpclass declaration... $ECHO_C" >&6
28963   if test x${glibcxx_cv_func_qfpclass_use+set} != xset; then
28964     if test "${glibcxx_cv_func_qfpclass_use+set}" = set; then
28965   echo $ECHO_N "(cached) $ECHO_C" >&6
28966 else
28967
28968
28969
28970       ac_ext=cc
28971 ac_cpp='$CXXCPP $CPPFLAGS'
28972 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28973 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28974 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28975
28976       cat >conftest.$ac_ext <<_ACEOF
28977 #line $LINENO "configure"
28978 /* confdefs.h.  */
28979 _ACEOF
28980 cat confdefs.h >>conftest.$ac_ext
28981 cat >>conftest.$ac_ext <<_ACEOF
28982 /* end confdefs.h.  */
28983 #include <math.h>
28984                       #ifdef HAVE_IEEEFP_H
28985                       #include <ieeefp.h>
28986                       #endif
28987
28988 int
28989 main ()
28990 {
28991  qfpclass(0);
28992   ;
28993   return 0;
28994 }
28995 _ACEOF
28996 rm -f conftest.$ac_objext
28997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28998   (eval $ac_compile) 2>&5
28999   ac_status=$?
29000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001   (exit $ac_status); } &&
29002          { ac_try='test -s conftest.$ac_objext'
29003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29004   (eval $ac_try) 2>&5
29005   ac_status=$?
29006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007   (exit $ac_status); }; }; then
29008   glibcxx_cv_func_qfpclass_use=yes
29009 else
29010   echo "$as_me: failed program was:" >&5
29011 sed 's/^/| /' conftest.$ac_ext >&5
29012
29013 glibcxx_cv_func_qfpclass_use=no
29014 fi
29015 rm -f conftest.$ac_objext conftest.$ac_ext
29016       ac_ext=c
29017 ac_cpp='$CPP $CPPFLAGS'
29018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29021
29022
29023 fi
29024
29025   fi
29026   echo "$as_me:$LINENO: result: $glibcxx_cv_func_qfpclass_use" >&5
29027 echo "${ECHO_T}$glibcxx_cv_func_qfpclass_use" >&6
29028
29029   if test x$glibcxx_cv_func_qfpclass_use = x"yes"; then
29030
29031 for ac_func in qfpclass
29032 do
29033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29034 echo "$as_me:$LINENO: checking for $ac_func" >&5
29035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29036 if eval "test \"\${$as_ac_var+set}\" = set"; then
29037   echo $ECHO_N "(cached) $ECHO_C" >&6
29038 else
29039   cat >conftest.$ac_ext <<_ACEOF
29040 #line $LINENO "configure"
29041 /* confdefs.h.  */
29042 _ACEOF
29043 cat confdefs.h >>conftest.$ac_ext
29044 cat >>conftest.$ac_ext <<_ACEOF
29045 /* end confdefs.h.  */
29046 /* System header to define __stub macros and hopefully few prototypes,
29047     which can conflict with char $ac_func (); below.
29048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29049     <limits.h> exists even on freestanding compilers.  */
29050 #ifdef __STDC__
29051 # include <limits.h>
29052 #else
29053 # include <assert.h>
29054 #endif
29055 /* Override any gcc2 internal prototype to avoid an error.  */
29056 #ifdef __cplusplus
29057 extern "C"
29058 {
29059 #endif
29060 /* We use char because int might match the return type of a gcc2
29061    builtin and then its argument prototype would still apply.  */
29062 char $ac_func ();
29063 /* The GNU C library defines this for functions which it implements
29064     to always fail with ENOSYS.  Some functions are actually named
29065     something starting with __ and the normal name is an alias.  */
29066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29067 choke me
29068 #else
29069 char (*f) () = $ac_func;
29070 #endif
29071 #ifdef __cplusplus
29072 }
29073 #endif
29074
29075 int
29076 main ()
29077 {
29078 return f != $ac_func;
29079   ;
29080   return 0;
29081 }
29082 _ACEOF
29083 rm -f conftest.$ac_objext conftest$ac_exeext
29084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29085   (eval $ac_link) 2>&5
29086   ac_status=$?
29087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29088   (exit $ac_status); } &&
29089          { ac_try='test -s conftest$ac_exeext'
29090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29091   (eval $ac_try) 2>&5
29092   ac_status=$?
29093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29094   (exit $ac_status); }; }; then
29095   eval "$as_ac_var=yes"
29096 else
29097   echo "$as_me: failed program was:" >&5
29098 sed 's/^/| /' conftest.$ac_ext >&5
29099
29100 eval "$as_ac_var=no"
29101 fi
29102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29103 fi
29104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29106 if test `eval echo '${'$as_ac_var'}'` = yes; then
29107   cat >>confdefs.h <<_ACEOF
29108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29109 _ACEOF
29110
29111 fi
29112 done
29113
29114   else
29115
29116   echo "$as_me:$LINENO: checking for _qfpclass declaration" >&5
29117 echo $ECHO_N "checking for _qfpclass declaration... $ECHO_C" >&6
29118   if test x${glibcxx_cv_func__qfpclass_use+set} != xset; then
29119     if test "${glibcxx_cv_func__qfpclass_use+set}" = set; then
29120   echo $ECHO_N "(cached) $ECHO_C" >&6
29121 else
29122
29123
29124
29125       ac_ext=cc
29126 ac_cpp='$CXXCPP $CPPFLAGS'
29127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29130
29131       cat >conftest.$ac_ext <<_ACEOF
29132 #line $LINENO "configure"
29133 /* confdefs.h.  */
29134 _ACEOF
29135 cat confdefs.h >>conftest.$ac_ext
29136 cat >>conftest.$ac_ext <<_ACEOF
29137 /* end confdefs.h.  */
29138 #include <math.h>
29139                       #ifdef HAVE_IEEEFP_H
29140                       #include <ieeefp.h>
29141                       #endif
29142
29143 int
29144 main ()
29145 {
29146  _qfpclass(0);
29147   ;
29148   return 0;
29149 }
29150 _ACEOF
29151 rm -f conftest.$ac_objext
29152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29153   (eval $ac_compile) 2>&5
29154   ac_status=$?
29155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156   (exit $ac_status); } &&
29157          { ac_try='test -s conftest.$ac_objext'
29158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29159   (eval $ac_try) 2>&5
29160   ac_status=$?
29161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162   (exit $ac_status); }; }; then
29163   glibcxx_cv_func__qfpclass_use=yes
29164 else
29165   echo "$as_me: failed program was:" >&5
29166 sed 's/^/| /' conftest.$ac_ext >&5
29167
29168 glibcxx_cv_func__qfpclass_use=no
29169 fi
29170 rm -f conftest.$ac_objext conftest.$ac_ext
29171       ac_ext=c
29172 ac_cpp='$CPP $CPPFLAGS'
29173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29176
29177
29178 fi
29179
29180   fi
29181   echo "$as_me:$LINENO: result: $glibcxx_cv_func__qfpclass_use" >&5
29182 echo "${ECHO_T}$glibcxx_cv_func__qfpclass_use" >&6
29183
29184     if test x$glibcxx_cv_func__qfpclass_use = x"yes"; then
29185
29186 for ac_func in _qfpclass
29187 do
29188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29189 echo "$as_me:$LINENO: checking for $ac_func" >&5
29190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29191 if eval "test \"\${$as_ac_var+set}\" = set"; then
29192   echo $ECHO_N "(cached) $ECHO_C" >&6
29193 else
29194   cat >conftest.$ac_ext <<_ACEOF
29195 #line $LINENO "configure"
29196 /* confdefs.h.  */
29197 _ACEOF
29198 cat confdefs.h >>conftest.$ac_ext
29199 cat >>conftest.$ac_ext <<_ACEOF
29200 /* end confdefs.h.  */
29201 /* System header to define __stub macros and hopefully few prototypes,
29202     which can conflict with char $ac_func (); below.
29203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29204     <limits.h> exists even on freestanding compilers.  */
29205 #ifdef __STDC__
29206 # include <limits.h>
29207 #else
29208 # include <assert.h>
29209 #endif
29210 /* Override any gcc2 internal prototype to avoid an error.  */
29211 #ifdef __cplusplus
29212 extern "C"
29213 {
29214 #endif
29215 /* We use char because int might match the return type of a gcc2
29216    builtin and then its argument prototype would still apply.  */
29217 char $ac_func ();
29218 /* The GNU C library defines this for functions which it implements
29219     to always fail with ENOSYS.  Some functions are actually named
29220     something starting with __ and the normal name is an alias.  */
29221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29222 choke me
29223 #else
29224 char (*f) () = $ac_func;
29225 #endif
29226 #ifdef __cplusplus
29227 }
29228 #endif
29229
29230 int
29231 main ()
29232 {
29233 return f != $ac_func;
29234   ;
29235   return 0;
29236 }
29237 _ACEOF
29238 rm -f conftest.$ac_objext conftest$ac_exeext
29239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29240   (eval $ac_link) 2>&5
29241   ac_status=$?
29242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243   (exit $ac_status); } &&
29244          { ac_try='test -s conftest$ac_exeext'
29245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29246   (eval $ac_try) 2>&5
29247   ac_status=$?
29248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249   (exit $ac_status); }; }; then
29250   eval "$as_ac_var=yes"
29251 else
29252   echo "$as_me: failed program was:" >&5
29253 sed 's/^/| /' conftest.$ac_ext >&5
29254
29255 eval "$as_ac_var=no"
29256 fi
29257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29258 fi
29259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29261 if test `eval echo '${'$as_ac_var'}'` = yes; then
29262   cat >>confdefs.h <<_ACEOF
29263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29264 _ACEOF
29265
29266 fi
29267 done
29268
29269     fi
29270   fi
29271
29272
29273
29274   echo "$as_me:$LINENO: checking for hypot declaration" >&5
29275 echo $ECHO_N "checking for hypot declaration... $ECHO_C" >&6
29276   if test x${glibcxx_cv_func_hypot_use+set} != xset; then
29277     if test "${glibcxx_cv_func_hypot_use+set}" = set; then
29278   echo $ECHO_N "(cached) $ECHO_C" >&6
29279 else
29280
29281
29282
29283       ac_ext=cc
29284 ac_cpp='$CXXCPP $CPPFLAGS'
29285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29288
29289       cat >conftest.$ac_ext <<_ACEOF
29290 #line $LINENO "configure"
29291 /* confdefs.h.  */
29292 _ACEOF
29293 cat confdefs.h >>conftest.$ac_ext
29294 cat >>conftest.$ac_ext <<_ACEOF
29295 /* end confdefs.h.  */
29296 #include <math.h>
29297 int
29298 main ()
29299 {
29300  hypot(0, 0);
29301   ;
29302   return 0;
29303 }
29304 _ACEOF
29305 rm -f conftest.$ac_objext
29306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29307   (eval $ac_compile) 2>&5
29308   ac_status=$?
29309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310   (exit $ac_status); } &&
29311          { ac_try='test -s conftest.$ac_objext'
29312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29313   (eval $ac_try) 2>&5
29314   ac_status=$?
29315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316   (exit $ac_status); }; }; then
29317   glibcxx_cv_func_hypot_use=yes
29318 else
29319   echo "$as_me: failed program was:" >&5
29320 sed 's/^/| /' conftest.$ac_ext >&5
29321
29322 glibcxx_cv_func_hypot_use=no
29323 fi
29324 rm -f conftest.$ac_objext conftest.$ac_ext
29325       ac_ext=c
29326 ac_cpp='$CPP $CPPFLAGS'
29327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29330
29331
29332 fi
29333
29334   fi
29335   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypot_use" >&5
29336 echo "${ECHO_T}$glibcxx_cv_func_hypot_use" >&6
29337
29338   if test x$glibcxx_cv_func_hypot_use = x"yes"; then
29339
29340 for ac_func in hypot
29341 do
29342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29343 echo "$as_me:$LINENO: checking for $ac_func" >&5
29344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29345 if eval "test \"\${$as_ac_var+set}\" = set"; then
29346   echo $ECHO_N "(cached) $ECHO_C" >&6
29347 else
29348   cat >conftest.$ac_ext <<_ACEOF
29349 #line $LINENO "configure"
29350 /* confdefs.h.  */
29351 _ACEOF
29352 cat confdefs.h >>conftest.$ac_ext
29353 cat >>conftest.$ac_ext <<_ACEOF
29354 /* end confdefs.h.  */
29355 /* System header to define __stub macros and hopefully few prototypes,
29356     which can conflict with char $ac_func (); below.
29357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29358     <limits.h> exists even on freestanding compilers.  */
29359 #ifdef __STDC__
29360 # include <limits.h>
29361 #else
29362 # include <assert.h>
29363 #endif
29364 /* Override any gcc2 internal prototype to avoid an error.  */
29365 #ifdef __cplusplus
29366 extern "C"
29367 {
29368 #endif
29369 /* We use char because int might match the return type of a gcc2
29370    builtin and then its argument prototype would still apply.  */
29371 char $ac_func ();
29372 /* The GNU C library defines this for functions which it implements
29373     to always fail with ENOSYS.  Some functions are actually named
29374     something starting with __ and the normal name is an alias.  */
29375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29376 choke me
29377 #else
29378 char (*f) () = $ac_func;
29379 #endif
29380 #ifdef __cplusplus
29381 }
29382 #endif
29383
29384 int
29385 main ()
29386 {
29387 return f != $ac_func;
29388   ;
29389   return 0;
29390 }
29391 _ACEOF
29392 rm -f conftest.$ac_objext conftest$ac_exeext
29393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29394   (eval $ac_link) 2>&5
29395   ac_status=$?
29396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397   (exit $ac_status); } &&
29398          { ac_try='test -s conftest$ac_exeext'
29399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400   (eval $ac_try) 2>&5
29401   ac_status=$?
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); }; }; then
29404   eval "$as_ac_var=yes"
29405 else
29406   echo "$as_me: failed program was:" >&5
29407 sed 's/^/| /' conftest.$ac_ext >&5
29408
29409 eval "$as_ac_var=no"
29410 fi
29411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29412 fi
29413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29415 if test `eval echo '${'$as_ac_var'}'` = yes; then
29416   cat >>confdefs.h <<_ACEOF
29417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29418 _ACEOF
29419
29420 fi
29421 done
29422
29423   else
29424
29425   echo "$as_me:$LINENO: checking for _hypot declaration" >&5
29426 echo $ECHO_N "checking for _hypot declaration... $ECHO_C" >&6
29427   if test x${glibcxx_cv_func__hypot_use+set} != xset; then
29428     if test "${glibcxx_cv_func__hypot_use+set}" = set; then
29429   echo $ECHO_N "(cached) $ECHO_C" >&6
29430 else
29431
29432
29433
29434       ac_ext=cc
29435 ac_cpp='$CXXCPP $CPPFLAGS'
29436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29439
29440       cat >conftest.$ac_ext <<_ACEOF
29441 #line $LINENO "configure"
29442 /* confdefs.h.  */
29443 _ACEOF
29444 cat confdefs.h >>conftest.$ac_ext
29445 cat >>conftest.$ac_ext <<_ACEOF
29446 /* end confdefs.h.  */
29447 #include <math.h>
29448 int
29449 main ()
29450 {
29451  _hypot(0, 0);
29452   ;
29453   return 0;
29454 }
29455 _ACEOF
29456 rm -f conftest.$ac_objext
29457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29458   (eval $ac_compile) 2>&5
29459   ac_status=$?
29460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461   (exit $ac_status); } &&
29462          { ac_try='test -s conftest.$ac_objext'
29463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464   (eval $ac_try) 2>&5
29465   ac_status=$?
29466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467   (exit $ac_status); }; }; then
29468   glibcxx_cv_func__hypot_use=yes
29469 else
29470   echo "$as_me: failed program was:" >&5
29471 sed 's/^/| /' conftest.$ac_ext >&5
29472
29473 glibcxx_cv_func__hypot_use=no
29474 fi
29475 rm -f conftest.$ac_objext conftest.$ac_ext
29476       ac_ext=c
29477 ac_cpp='$CPP $CPPFLAGS'
29478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29481
29482
29483 fi
29484
29485   fi
29486   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypot_use" >&5
29487 echo "${ECHO_T}$glibcxx_cv_func__hypot_use" >&6
29488
29489     if test x$glibcxx_cv_func__hypot_use = x"yes"; then
29490
29491 for ac_func in _hypot
29492 do
29493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29494 echo "$as_me:$LINENO: checking for $ac_func" >&5
29495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29496 if eval "test \"\${$as_ac_var+set}\" = set"; then
29497   echo $ECHO_N "(cached) $ECHO_C" >&6
29498 else
29499   cat >conftest.$ac_ext <<_ACEOF
29500 #line $LINENO "configure"
29501 /* confdefs.h.  */
29502 _ACEOF
29503 cat confdefs.h >>conftest.$ac_ext
29504 cat >>conftest.$ac_ext <<_ACEOF
29505 /* end confdefs.h.  */
29506 /* System header to define __stub macros and hopefully few prototypes,
29507     which can conflict with char $ac_func (); below.
29508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29509     <limits.h> exists even on freestanding compilers.  */
29510 #ifdef __STDC__
29511 # include <limits.h>
29512 #else
29513 # include <assert.h>
29514 #endif
29515 /* Override any gcc2 internal prototype to avoid an error.  */
29516 #ifdef __cplusplus
29517 extern "C"
29518 {
29519 #endif
29520 /* We use char because int might match the return type of a gcc2
29521    builtin and then its argument prototype would still apply.  */
29522 char $ac_func ();
29523 /* The GNU C library defines this for functions which it implements
29524     to always fail with ENOSYS.  Some functions are actually named
29525     something starting with __ and the normal name is an alias.  */
29526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29527 choke me
29528 #else
29529 char (*f) () = $ac_func;
29530 #endif
29531 #ifdef __cplusplus
29532 }
29533 #endif
29534
29535 int
29536 main ()
29537 {
29538 return f != $ac_func;
29539   ;
29540   return 0;
29541 }
29542 _ACEOF
29543 rm -f conftest.$ac_objext conftest$ac_exeext
29544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29545   (eval $ac_link) 2>&5
29546   ac_status=$?
29547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548   (exit $ac_status); } &&
29549          { ac_try='test -s conftest$ac_exeext'
29550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29551   (eval $ac_try) 2>&5
29552   ac_status=$?
29553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554   (exit $ac_status); }; }; then
29555   eval "$as_ac_var=yes"
29556 else
29557   echo "$as_me: failed program was:" >&5
29558 sed 's/^/| /' conftest.$ac_ext >&5
29559
29560 eval "$as_ac_var=no"
29561 fi
29562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29563 fi
29564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29566 if test `eval echo '${'$as_ac_var'}'` = yes; then
29567   cat >>confdefs.h <<_ACEOF
29568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29569 _ACEOF
29570
29571 fi
29572 done
29573
29574     fi
29575   fi
29576
29577
29578
29579   echo "$as_me:$LINENO: checking for float trig functions" >&5
29580 echo $ECHO_N "checking for float trig functions... $ECHO_C" >&6
29581   if test "${glibcxx_cv_func_float_trig_use+set}" = set; then
29582   echo $ECHO_N "(cached) $ECHO_C" >&6
29583 else
29584
29585
29586
29587     ac_ext=cc
29588 ac_cpp='$CXXCPP $CPPFLAGS'
29589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29592
29593     cat >conftest.$ac_ext <<_ACEOF
29594 #line $LINENO "configure"
29595 /* confdefs.h.  */
29596 _ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h.  */
29600 #include <math.h>
29601 int
29602 main ()
29603 {
29604  `for x in acosf asinf atanf \
29605                                           cosf sinf tanf \
29606                                           coshf sinhf tanhf; do echo "$x (0);"; done`
29607   ;
29608   return 0;
29609 }
29610 _ACEOF
29611 rm -f conftest.$ac_objext
29612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29613   (eval $ac_compile) 2>&5
29614   ac_status=$?
29615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616   (exit $ac_status); } &&
29617          { ac_try='test -s conftest.$ac_objext'
29618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29619   (eval $ac_try) 2>&5
29620   ac_status=$?
29621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622   (exit $ac_status); }; }; then
29623   glibcxx_cv_func_float_trig_use=yes
29624 else
29625   echo "$as_me: failed program was:" >&5
29626 sed 's/^/| /' conftest.$ac_ext >&5
29627
29628 glibcxx_cv_func_float_trig_use=no
29629 fi
29630 rm -f conftest.$ac_objext conftest.$ac_ext
29631     ac_ext=c
29632 ac_cpp='$CPP $CPPFLAGS'
29633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29636
29637 fi
29638
29639   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_trig_use" >&5
29640 echo "${ECHO_T}$glibcxx_cv_func_float_trig_use" >&6
29641   if test x$glibcxx_cv_func_float_trig_use = x"yes"; then
29642
29643
29644
29645
29646
29647
29648
29649
29650
29651 for ac_func in acosf asinf atanf \
29652                                           cosf sinf tanf \
29653                                           coshf sinhf tanhf
29654 do
29655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29656 echo "$as_me:$LINENO: checking for $ac_func" >&5
29657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29658 if eval "test \"\${$as_ac_var+set}\" = set"; then
29659   echo $ECHO_N "(cached) $ECHO_C" >&6
29660 else
29661   cat >conftest.$ac_ext <<_ACEOF
29662 #line $LINENO "configure"
29663 /* confdefs.h.  */
29664 _ACEOF
29665 cat confdefs.h >>conftest.$ac_ext
29666 cat >>conftest.$ac_ext <<_ACEOF
29667 /* end confdefs.h.  */
29668 /* System header to define __stub macros and hopefully few prototypes,
29669     which can conflict with char $ac_func (); below.
29670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29671     <limits.h> exists even on freestanding compilers.  */
29672 #ifdef __STDC__
29673 # include <limits.h>
29674 #else
29675 # include <assert.h>
29676 #endif
29677 /* Override any gcc2 internal prototype to avoid an error.  */
29678 #ifdef __cplusplus
29679 extern "C"
29680 {
29681 #endif
29682 /* We use char because int might match the return type of a gcc2
29683    builtin and then its argument prototype would still apply.  */
29684 char $ac_func ();
29685 /* The GNU C library defines this for functions which it implements
29686     to always fail with ENOSYS.  Some functions are actually named
29687     something starting with __ and the normal name is an alias.  */
29688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29689 choke me
29690 #else
29691 char (*f) () = $ac_func;
29692 #endif
29693 #ifdef __cplusplus
29694 }
29695 #endif
29696
29697 int
29698 main ()
29699 {
29700 return f != $ac_func;
29701   ;
29702   return 0;
29703 }
29704 _ACEOF
29705 rm -f conftest.$ac_objext conftest$ac_exeext
29706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29707   (eval $ac_link) 2>&5
29708   ac_status=$?
29709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710   (exit $ac_status); } &&
29711          { ac_try='test -s conftest$ac_exeext'
29712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713   (eval $ac_try) 2>&5
29714   ac_status=$?
29715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716   (exit $ac_status); }; }; then
29717   eval "$as_ac_var=yes"
29718 else
29719   echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29721
29722 eval "$as_ac_var=no"
29723 fi
29724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29725 fi
29726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29727 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29728 if test `eval echo '${'$as_ac_var'}'` = yes; then
29729   cat >>confdefs.h <<_ACEOF
29730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29731 _ACEOF
29732
29733 fi
29734 done
29735
29736   fi
29737
29738
29739   echo "$as_me:$LINENO: checking for float round functions" >&5
29740 echo $ECHO_N "checking for float round functions... $ECHO_C" >&6
29741   if test "${glibcxx_cv_func_float_round_use+set}" = set; then
29742   echo $ECHO_N "(cached) $ECHO_C" >&6
29743 else
29744
29745
29746
29747     ac_ext=cc
29748 ac_cpp='$CXXCPP $CPPFLAGS'
29749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29752
29753     cat >conftest.$ac_ext <<_ACEOF
29754 #line $LINENO "configure"
29755 /* confdefs.h.  */
29756 _ACEOF
29757 cat confdefs.h >>conftest.$ac_ext
29758 cat >>conftest.$ac_ext <<_ACEOF
29759 /* end confdefs.h.  */
29760 #include <math.h>
29761 int
29762 main ()
29763 {
29764  `for x in ceilf floorf; do echo "$x (0);"; done`
29765   ;
29766   return 0;
29767 }
29768 _ACEOF
29769 rm -f conftest.$ac_objext
29770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29771   (eval $ac_compile) 2>&5
29772   ac_status=$?
29773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29774   (exit $ac_status); } &&
29775          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
29781   glibcxx_cv_func_float_round_use=yes
29782 else
29783   echo "$as_me: failed program was:" >&5
29784 sed 's/^/| /' conftest.$ac_ext >&5
29785
29786 glibcxx_cv_func_float_round_use=no
29787 fi
29788 rm -f conftest.$ac_objext conftest.$ac_ext
29789     ac_ext=c
29790 ac_cpp='$CPP $CPPFLAGS'
29791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29794
29795 fi
29796
29797   echo "$as_me:$LINENO: result: $glibcxx_cv_func_float_round_use" >&5
29798 echo "${ECHO_T}$glibcxx_cv_func_float_round_use" >&6
29799   if test x$glibcxx_cv_func_float_round_use = x"yes"; then
29800
29801
29802 for ac_func in ceilf floorf
29803 do
29804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29805 echo "$as_me:$LINENO: checking for $ac_func" >&5
29806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29807 if eval "test \"\${$as_ac_var+set}\" = set"; then
29808   echo $ECHO_N "(cached) $ECHO_C" >&6
29809 else
29810   cat >conftest.$ac_ext <<_ACEOF
29811 #line $LINENO "configure"
29812 /* confdefs.h.  */
29813 _ACEOF
29814 cat confdefs.h >>conftest.$ac_ext
29815 cat >>conftest.$ac_ext <<_ACEOF
29816 /* end confdefs.h.  */
29817 /* System header to define __stub macros and hopefully few prototypes,
29818     which can conflict with char $ac_func (); below.
29819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29820     <limits.h> exists even on freestanding compilers.  */
29821 #ifdef __STDC__
29822 # include <limits.h>
29823 #else
29824 # include <assert.h>
29825 #endif
29826 /* Override any gcc2 internal prototype to avoid an error.  */
29827 #ifdef __cplusplus
29828 extern "C"
29829 {
29830 #endif
29831 /* We use char because int might match the return type of a gcc2
29832    builtin and then its argument prototype would still apply.  */
29833 char $ac_func ();
29834 /* The GNU C library defines this for functions which it implements
29835     to always fail with ENOSYS.  Some functions are actually named
29836     something starting with __ and the normal name is an alias.  */
29837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29838 choke me
29839 #else
29840 char (*f) () = $ac_func;
29841 #endif
29842 #ifdef __cplusplus
29843 }
29844 #endif
29845
29846 int
29847 main ()
29848 {
29849 return f != $ac_func;
29850   ;
29851   return 0;
29852 }
29853 _ACEOF
29854 rm -f conftest.$ac_objext conftest$ac_exeext
29855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29856   (eval $ac_link) 2>&5
29857   ac_status=$?
29858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859   (exit $ac_status); } &&
29860          { ac_try='test -s conftest$ac_exeext'
29861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29862   (eval $ac_try) 2>&5
29863   ac_status=$?
29864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865   (exit $ac_status); }; }; then
29866   eval "$as_ac_var=yes"
29867 else
29868   echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29870
29871 eval "$as_ac_var=no"
29872 fi
29873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29874 fi
29875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29876 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29877 if test `eval echo '${'$as_ac_var'}'` = yes; then
29878   cat >>confdefs.h <<_ACEOF
29879 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29880 _ACEOF
29881
29882 fi
29883 done
29884
29885   fi
29886
29887
29888
29889   echo "$as_me:$LINENO: checking for expf declaration" >&5
29890 echo $ECHO_N "checking for expf declaration... $ECHO_C" >&6
29891   if test x${glibcxx_cv_func_expf_use+set} != xset; then
29892     if test "${glibcxx_cv_func_expf_use+set}" = set; then
29893   echo $ECHO_N "(cached) $ECHO_C" >&6
29894 else
29895
29896
29897
29898       ac_ext=cc
29899 ac_cpp='$CXXCPP $CPPFLAGS'
29900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29903
29904       cat >conftest.$ac_ext <<_ACEOF
29905 #line $LINENO "configure"
29906 /* confdefs.h.  */
29907 _ACEOF
29908 cat confdefs.h >>conftest.$ac_ext
29909 cat >>conftest.$ac_ext <<_ACEOF
29910 /* end confdefs.h.  */
29911 #include <math.h>
29912                       #ifdef HAVE_IEEEFP_H
29913                       #include <ieeefp.h>
29914                       #endif
29915
29916 int
29917 main ()
29918 {
29919  expf(0);
29920   ;
29921   return 0;
29922 }
29923 _ACEOF
29924 rm -f conftest.$ac_objext
29925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29926   (eval $ac_compile) 2>&5
29927   ac_status=$?
29928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929   (exit $ac_status); } &&
29930          { ac_try='test -s conftest.$ac_objext'
29931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29932   (eval $ac_try) 2>&5
29933   ac_status=$?
29934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935   (exit $ac_status); }; }; then
29936   glibcxx_cv_func_expf_use=yes
29937 else
29938   echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.$ac_ext >&5
29940
29941 glibcxx_cv_func_expf_use=no
29942 fi
29943 rm -f conftest.$ac_objext conftest.$ac_ext
29944       ac_ext=c
29945 ac_cpp='$CPP $CPPFLAGS'
29946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29949
29950
29951 fi
29952
29953   fi
29954   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expf_use" >&5
29955 echo "${ECHO_T}$glibcxx_cv_func_expf_use" >&6
29956
29957   if test x$glibcxx_cv_func_expf_use = x"yes"; then
29958
29959 for ac_func in expf
29960 do
29961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29962 echo "$as_me:$LINENO: checking for $ac_func" >&5
29963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29964 if eval "test \"\${$as_ac_var+set}\" = set"; then
29965   echo $ECHO_N "(cached) $ECHO_C" >&6
29966 else
29967   cat >conftest.$ac_ext <<_ACEOF
29968 #line $LINENO "configure"
29969 /* confdefs.h.  */
29970 _ACEOF
29971 cat confdefs.h >>conftest.$ac_ext
29972 cat >>conftest.$ac_ext <<_ACEOF
29973 /* end confdefs.h.  */
29974 /* System header to define __stub macros and hopefully few prototypes,
29975     which can conflict with char $ac_func (); below.
29976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29977     <limits.h> exists even on freestanding compilers.  */
29978 #ifdef __STDC__
29979 # include <limits.h>
29980 #else
29981 # include <assert.h>
29982 #endif
29983 /* Override any gcc2 internal prototype to avoid an error.  */
29984 #ifdef __cplusplus
29985 extern "C"
29986 {
29987 #endif
29988 /* We use char because int might match the return type of a gcc2
29989    builtin and then its argument prototype would still apply.  */
29990 char $ac_func ();
29991 /* The GNU C library defines this for functions which it implements
29992     to always fail with ENOSYS.  Some functions are actually named
29993     something starting with __ and the normal name is an alias.  */
29994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29995 choke me
29996 #else
29997 char (*f) () = $ac_func;
29998 #endif
29999 #ifdef __cplusplus
30000 }
30001 #endif
30002
30003 int
30004 main ()
30005 {
30006 return f != $ac_func;
30007   ;
30008   return 0;
30009 }
30010 _ACEOF
30011 rm -f conftest.$ac_objext conftest$ac_exeext
30012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30013   (eval $ac_link) 2>&5
30014   ac_status=$?
30015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016   (exit $ac_status); } &&
30017          { ac_try='test -s conftest$ac_exeext'
30018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30019   (eval $ac_try) 2>&5
30020   ac_status=$?
30021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022   (exit $ac_status); }; }; then
30023   eval "$as_ac_var=yes"
30024 else
30025   echo "$as_me: failed program was:" >&5
30026 sed 's/^/| /' conftest.$ac_ext >&5
30027
30028 eval "$as_ac_var=no"
30029 fi
30030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30031 fi
30032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30034 if test `eval echo '${'$as_ac_var'}'` = yes; then
30035   cat >>confdefs.h <<_ACEOF
30036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30037 _ACEOF
30038
30039 fi
30040 done
30041
30042   else
30043
30044   echo "$as_me:$LINENO: checking for _expf declaration" >&5
30045 echo $ECHO_N "checking for _expf declaration... $ECHO_C" >&6
30046   if test x${glibcxx_cv_func__expf_use+set} != xset; then
30047     if test "${glibcxx_cv_func__expf_use+set}" = set; then
30048   echo $ECHO_N "(cached) $ECHO_C" >&6
30049 else
30050
30051
30052
30053       ac_ext=cc
30054 ac_cpp='$CXXCPP $CPPFLAGS'
30055 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30056 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30057 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30058
30059       cat >conftest.$ac_ext <<_ACEOF
30060 #line $LINENO "configure"
30061 /* confdefs.h.  */
30062 _ACEOF
30063 cat confdefs.h >>conftest.$ac_ext
30064 cat >>conftest.$ac_ext <<_ACEOF
30065 /* end confdefs.h.  */
30066 #include <math.h>
30067                       #ifdef HAVE_IEEEFP_H
30068                       #include <ieeefp.h>
30069                       #endif
30070
30071 int
30072 main ()
30073 {
30074  _expf(0);
30075   ;
30076   return 0;
30077 }
30078 _ACEOF
30079 rm -f conftest.$ac_objext
30080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30081   (eval $ac_compile) 2>&5
30082   ac_status=$?
30083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30084   (exit $ac_status); } &&
30085          { ac_try='test -s conftest.$ac_objext'
30086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30087   (eval $ac_try) 2>&5
30088   ac_status=$?
30089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090   (exit $ac_status); }; }; then
30091   glibcxx_cv_func__expf_use=yes
30092 else
30093   echo "$as_me: failed program was:" >&5
30094 sed 's/^/| /' conftest.$ac_ext >&5
30095
30096 glibcxx_cv_func__expf_use=no
30097 fi
30098 rm -f conftest.$ac_objext conftest.$ac_ext
30099       ac_ext=c
30100 ac_cpp='$CPP $CPPFLAGS'
30101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30104
30105
30106 fi
30107
30108   fi
30109   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expf_use" >&5
30110 echo "${ECHO_T}$glibcxx_cv_func__expf_use" >&6
30111
30112     if test x$glibcxx_cv_func__expf_use = x"yes"; then
30113
30114 for ac_func in _expf
30115 do
30116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30117 echo "$as_me:$LINENO: checking for $ac_func" >&5
30118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30119 if eval "test \"\${$as_ac_var+set}\" = set"; then
30120   echo $ECHO_N "(cached) $ECHO_C" >&6
30121 else
30122   cat >conftest.$ac_ext <<_ACEOF
30123 #line $LINENO "configure"
30124 /* confdefs.h.  */
30125 _ACEOF
30126 cat confdefs.h >>conftest.$ac_ext
30127 cat >>conftest.$ac_ext <<_ACEOF
30128 /* end confdefs.h.  */
30129 /* System header to define __stub macros and hopefully few prototypes,
30130     which can conflict with char $ac_func (); below.
30131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30132     <limits.h> exists even on freestanding compilers.  */
30133 #ifdef __STDC__
30134 # include <limits.h>
30135 #else
30136 # include <assert.h>
30137 #endif
30138 /* Override any gcc2 internal prototype to avoid an error.  */
30139 #ifdef __cplusplus
30140 extern "C"
30141 {
30142 #endif
30143 /* We use char because int might match the return type of a gcc2
30144    builtin and then its argument prototype would still apply.  */
30145 char $ac_func ();
30146 /* The GNU C library defines this for functions which it implements
30147     to always fail with ENOSYS.  Some functions are actually named
30148     something starting with __ and the normal name is an alias.  */
30149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30150 choke me
30151 #else
30152 char (*f) () = $ac_func;
30153 #endif
30154 #ifdef __cplusplus
30155 }
30156 #endif
30157
30158 int
30159 main ()
30160 {
30161 return f != $ac_func;
30162   ;
30163   return 0;
30164 }
30165 _ACEOF
30166 rm -f conftest.$ac_objext conftest$ac_exeext
30167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30168   (eval $ac_link) 2>&5
30169   ac_status=$?
30170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30171   (exit $ac_status); } &&
30172          { ac_try='test -s conftest$ac_exeext'
30173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30174   (eval $ac_try) 2>&5
30175   ac_status=$?
30176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177   (exit $ac_status); }; }; then
30178   eval "$as_ac_var=yes"
30179 else
30180   echo "$as_me: failed program was:" >&5
30181 sed 's/^/| /' conftest.$ac_ext >&5
30182
30183 eval "$as_ac_var=no"
30184 fi
30185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30186 fi
30187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30189 if test `eval echo '${'$as_ac_var'}'` = yes; then
30190   cat >>confdefs.h <<_ACEOF
30191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30192 _ACEOF
30193
30194 fi
30195 done
30196
30197     fi
30198   fi
30199
30200
30201
30202   echo "$as_me:$LINENO: checking for isnanf declaration" >&5
30203 echo $ECHO_N "checking for isnanf declaration... $ECHO_C" >&6
30204   if test x${glibcxx_cv_func_isnanf_use+set} != xset; then
30205     if test "${glibcxx_cv_func_isnanf_use+set}" = set; then
30206   echo $ECHO_N "(cached) $ECHO_C" >&6
30207 else
30208
30209
30210
30211       ac_ext=cc
30212 ac_cpp='$CXXCPP $CPPFLAGS'
30213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30216
30217       cat >conftest.$ac_ext <<_ACEOF
30218 #line $LINENO "configure"
30219 /* confdefs.h.  */
30220 _ACEOF
30221 cat confdefs.h >>conftest.$ac_ext
30222 cat >>conftest.$ac_ext <<_ACEOF
30223 /* end confdefs.h.  */
30224 #include <math.h>
30225                       #ifdef HAVE_IEEEFP_H
30226                       #include <ieeefp.h>
30227                       #endif
30228
30229 int
30230 main ()
30231 {
30232  isnanf(0);
30233   ;
30234   return 0;
30235 }
30236 _ACEOF
30237 rm -f conftest.$ac_objext
30238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30239   (eval $ac_compile) 2>&5
30240   ac_status=$?
30241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30242   (exit $ac_status); } &&
30243          { ac_try='test -s conftest.$ac_objext'
30244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30245   (eval $ac_try) 2>&5
30246   ac_status=$?
30247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30248   (exit $ac_status); }; }; then
30249   glibcxx_cv_func_isnanf_use=yes
30250 else
30251   echo "$as_me: failed program was:" >&5
30252 sed 's/^/| /' conftest.$ac_ext >&5
30253
30254 glibcxx_cv_func_isnanf_use=no
30255 fi
30256 rm -f conftest.$ac_objext conftest.$ac_ext
30257       ac_ext=c
30258 ac_cpp='$CPP $CPPFLAGS'
30259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30262
30263
30264 fi
30265
30266   fi
30267   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanf_use" >&5
30268 echo "${ECHO_T}$glibcxx_cv_func_isnanf_use" >&6
30269
30270   if test x$glibcxx_cv_func_isnanf_use = x"yes"; then
30271
30272 for ac_func in isnanf
30273 do
30274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30275 echo "$as_me:$LINENO: checking for $ac_func" >&5
30276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30277 if eval "test \"\${$as_ac_var+set}\" = set"; then
30278   echo $ECHO_N "(cached) $ECHO_C" >&6
30279 else
30280   cat >conftest.$ac_ext <<_ACEOF
30281 #line $LINENO "configure"
30282 /* confdefs.h.  */
30283 _ACEOF
30284 cat confdefs.h >>conftest.$ac_ext
30285 cat >>conftest.$ac_ext <<_ACEOF
30286 /* end confdefs.h.  */
30287 /* System header to define __stub macros and hopefully few prototypes,
30288     which can conflict with char $ac_func (); below.
30289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30290     <limits.h> exists even on freestanding compilers.  */
30291 #ifdef __STDC__
30292 # include <limits.h>
30293 #else
30294 # include <assert.h>
30295 #endif
30296 /* Override any gcc2 internal prototype to avoid an error.  */
30297 #ifdef __cplusplus
30298 extern "C"
30299 {
30300 #endif
30301 /* We use char because int might match the return type of a gcc2
30302    builtin and then its argument prototype would still apply.  */
30303 char $ac_func ();
30304 /* The GNU C library defines this for functions which it implements
30305     to always fail with ENOSYS.  Some functions are actually named
30306     something starting with __ and the normal name is an alias.  */
30307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30308 choke me
30309 #else
30310 char (*f) () = $ac_func;
30311 #endif
30312 #ifdef __cplusplus
30313 }
30314 #endif
30315
30316 int
30317 main ()
30318 {
30319 return f != $ac_func;
30320   ;
30321   return 0;
30322 }
30323 _ACEOF
30324 rm -f conftest.$ac_objext conftest$ac_exeext
30325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30326   (eval $ac_link) 2>&5
30327   ac_status=$?
30328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329   (exit $ac_status); } &&
30330          { ac_try='test -s conftest$ac_exeext'
30331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30332   (eval $ac_try) 2>&5
30333   ac_status=$?
30334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335   (exit $ac_status); }; }; then
30336   eval "$as_ac_var=yes"
30337 else
30338   echo "$as_me: failed program was:" >&5
30339 sed 's/^/| /' conftest.$ac_ext >&5
30340
30341 eval "$as_ac_var=no"
30342 fi
30343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30344 fi
30345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30347 if test `eval echo '${'$as_ac_var'}'` = yes; then
30348   cat >>confdefs.h <<_ACEOF
30349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30350 _ACEOF
30351
30352 fi
30353 done
30354
30355   else
30356
30357   echo "$as_me:$LINENO: checking for _isnanf declaration" >&5
30358 echo $ECHO_N "checking for _isnanf declaration... $ECHO_C" >&6
30359   if test x${glibcxx_cv_func__isnanf_use+set} != xset; then
30360     if test "${glibcxx_cv_func__isnanf_use+set}" = set; then
30361   echo $ECHO_N "(cached) $ECHO_C" >&6
30362 else
30363
30364
30365
30366       ac_ext=cc
30367 ac_cpp='$CXXCPP $CPPFLAGS'
30368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30371
30372       cat >conftest.$ac_ext <<_ACEOF
30373 #line $LINENO "configure"
30374 /* confdefs.h.  */
30375 _ACEOF
30376 cat confdefs.h >>conftest.$ac_ext
30377 cat >>conftest.$ac_ext <<_ACEOF
30378 /* end confdefs.h.  */
30379 #include <math.h>
30380                       #ifdef HAVE_IEEEFP_H
30381                       #include <ieeefp.h>
30382                       #endif
30383
30384 int
30385 main ()
30386 {
30387  _isnanf(0);
30388   ;
30389   return 0;
30390 }
30391 _ACEOF
30392 rm -f conftest.$ac_objext
30393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30394   (eval $ac_compile) 2>&5
30395   ac_status=$?
30396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397   (exit $ac_status); } &&
30398          { ac_try='test -s conftest.$ac_objext'
30399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30400   (eval $ac_try) 2>&5
30401   ac_status=$?
30402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403   (exit $ac_status); }; }; then
30404   glibcxx_cv_func__isnanf_use=yes
30405 else
30406   echo "$as_me: failed program was:" >&5
30407 sed 's/^/| /' conftest.$ac_ext >&5
30408
30409 glibcxx_cv_func__isnanf_use=no
30410 fi
30411 rm -f conftest.$ac_objext conftest.$ac_ext
30412       ac_ext=c
30413 ac_cpp='$CPP $CPPFLAGS'
30414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30417
30418
30419 fi
30420
30421   fi
30422   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanf_use" >&5
30423 echo "${ECHO_T}$glibcxx_cv_func__isnanf_use" >&6
30424
30425     if test x$glibcxx_cv_func__isnanf_use = x"yes"; then
30426
30427 for ac_func in _isnanf
30428 do
30429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30430 echo "$as_me:$LINENO: checking for $ac_func" >&5
30431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30432 if eval "test \"\${$as_ac_var+set}\" = set"; then
30433   echo $ECHO_N "(cached) $ECHO_C" >&6
30434 else
30435   cat >conftest.$ac_ext <<_ACEOF
30436 #line $LINENO "configure"
30437 /* confdefs.h.  */
30438 _ACEOF
30439 cat confdefs.h >>conftest.$ac_ext
30440 cat >>conftest.$ac_ext <<_ACEOF
30441 /* end confdefs.h.  */
30442 /* System header to define __stub macros and hopefully few prototypes,
30443     which can conflict with char $ac_func (); below.
30444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30445     <limits.h> exists even on freestanding compilers.  */
30446 #ifdef __STDC__
30447 # include <limits.h>
30448 #else
30449 # include <assert.h>
30450 #endif
30451 /* Override any gcc2 internal prototype to avoid an error.  */
30452 #ifdef __cplusplus
30453 extern "C"
30454 {
30455 #endif
30456 /* We use char because int might match the return type of a gcc2
30457    builtin and then its argument prototype would still apply.  */
30458 char $ac_func ();
30459 /* The GNU C library defines this for functions which it implements
30460     to always fail with ENOSYS.  Some functions are actually named
30461     something starting with __ and the normal name is an alias.  */
30462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30463 choke me
30464 #else
30465 char (*f) () = $ac_func;
30466 #endif
30467 #ifdef __cplusplus
30468 }
30469 #endif
30470
30471 int
30472 main ()
30473 {
30474 return f != $ac_func;
30475   ;
30476   return 0;
30477 }
30478 _ACEOF
30479 rm -f conftest.$ac_objext conftest$ac_exeext
30480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30481   (eval $ac_link) 2>&5
30482   ac_status=$?
30483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30484   (exit $ac_status); } &&
30485          { ac_try='test -s conftest$ac_exeext'
30486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30487   (eval $ac_try) 2>&5
30488   ac_status=$?
30489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30490   (exit $ac_status); }; }; then
30491   eval "$as_ac_var=yes"
30492 else
30493   echo "$as_me: failed program was:" >&5
30494 sed 's/^/| /' conftest.$ac_ext >&5
30495
30496 eval "$as_ac_var=no"
30497 fi
30498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30499 fi
30500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30502 if test `eval echo '${'$as_ac_var'}'` = yes; then
30503   cat >>confdefs.h <<_ACEOF
30504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30505 _ACEOF
30506
30507 fi
30508 done
30509
30510     fi
30511   fi
30512
30513
30514
30515   echo "$as_me:$LINENO: checking for isinff declaration" >&5
30516 echo $ECHO_N "checking for isinff declaration... $ECHO_C" >&6
30517   if test x${glibcxx_cv_func_isinff_use+set} != xset; then
30518     if test "${glibcxx_cv_func_isinff_use+set}" = set; then
30519   echo $ECHO_N "(cached) $ECHO_C" >&6
30520 else
30521
30522
30523
30524       ac_ext=cc
30525 ac_cpp='$CXXCPP $CPPFLAGS'
30526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30529
30530       cat >conftest.$ac_ext <<_ACEOF
30531 #line $LINENO "configure"
30532 /* confdefs.h.  */
30533 _ACEOF
30534 cat confdefs.h >>conftest.$ac_ext
30535 cat >>conftest.$ac_ext <<_ACEOF
30536 /* end confdefs.h.  */
30537 #include <math.h>
30538                       #ifdef HAVE_IEEEFP_H
30539                       #include <ieeefp.h>
30540                       #endif
30541
30542 int
30543 main ()
30544 {
30545  isinff(0);
30546   ;
30547   return 0;
30548 }
30549 _ACEOF
30550 rm -f conftest.$ac_objext
30551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30552   (eval $ac_compile) 2>&5
30553   ac_status=$?
30554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555   (exit $ac_status); } &&
30556          { ac_try='test -s conftest.$ac_objext'
30557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30558   (eval $ac_try) 2>&5
30559   ac_status=$?
30560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561   (exit $ac_status); }; }; then
30562   glibcxx_cv_func_isinff_use=yes
30563 else
30564   echo "$as_me: failed program was:" >&5
30565 sed 's/^/| /' conftest.$ac_ext >&5
30566
30567 glibcxx_cv_func_isinff_use=no
30568 fi
30569 rm -f conftest.$ac_objext conftest.$ac_ext
30570       ac_ext=c
30571 ac_cpp='$CPP $CPPFLAGS'
30572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30575
30576
30577 fi
30578
30579   fi
30580   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinff_use" >&5
30581 echo "${ECHO_T}$glibcxx_cv_func_isinff_use" >&6
30582
30583   if test x$glibcxx_cv_func_isinff_use = x"yes"; then
30584
30585 for ac_func in isinff
30586 do
30587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30588 echo "$as_me:$LINENO: checking for $ac_func" >&5
30589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30590 if eval "test \"\${$as_ac_var+set}\" = set"; then
30591   echo $ECHO_N "(cached) $ECHO_C" >&6
30592 else
30593   cat >conftest.$ac_ext <<_ACEOF
30594 #line $LINENO "configure"
30595 /* confdefs.h.  */
30596 _ACEOF
30597 cat confdefs.h >>conftest.$ac_ext
30598 cat >>conftest.$ac_ext <<_ACEOF
30599 /* end confdefs.h.  */
30600 /* System header to define __stub macros and hopefully few prototypes,
30601     which can conflict with char $ac_func (); below.
30602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30603     <limits.h> exists even on freestanding compilers.  */
30604 #ifdef __STDC__
30605 # include <limits.h>
30606 #else
30607 # include <assert.h>
30608 #endif
30609 /* Override any gcc2 internal prototype to avoid an error.  */
30610 #ifdef __cplusplus
30611 extern "C"
30612 {
30613 #endif
30614 /* We use char because int might match the return type of a gcc2
30615    builtin and then its argument prototype would still apply.  */
30616 char $ac_func ();
30617 /* The GNU C library defines this for functions which it implements
30618     to always fail with ENOSYS.  Some functions are actually named
30619     something starting with __ and the normal name is an alias.  */
30620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30621 choke me
30622 #else
30623 char (*f) () = $ac_func;
30624 #endif
30625 #ifdef __cplusplus
30626 }
30627 #endif
30628
30629 int
30630 main ()
30631 {
30632 return f != $ac_func;
30633   ;
30634   return 0;
30635 }
30636 _ACEOF
30637 rm -f conftest.$ac_objext conftest$ac_exeext
30638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30639   (eval $ac_link) 2>&5
30640   ac_status=$?
30641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30642   (exit $ac_status); } &&
30643          { ac_try='test -s conftest$ac_exeext'
30644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30645   (eval $ac_try) 2>&5
30646   ac_status=$?
30647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648   (exit $ac_status); }; }; then
30649   eval "$as_ac_var=yes"
30650 else
30651   echo "$as_me: failed program was:" >&5
30652 sed 's/^/| /' conftest.$ac_ext >&5
30653
30654 eval "$as_ac_var=no"
30655 fi
30656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30657 fi
30658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30660 if test `eval echo '${'$as_ac_var'}'` = yes; then
30661   cat >>confdefs.h <<_ACEOF
30662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30663 _ACEOF
30664
30665 fi
30666 done
30667
30668   else
30669
30670   echo "$as_me:$LINENO: checking for _isinff declaration" >&5
30671 echo $ECHO_N "checking for _isinff declaration... $ECHO_C" >&6
30672   if test x${glibcxx_cv_func__isinff_use+set} != xset; then
30673     if test "${glibcxx_cv_func__isinff_use+set}" = set; then
30674   echo $ECHO_N "(cached) $ECHO_C" >&6
30675 else
30676
30677
30678
30679       ac_ext=cc
30680 ac_cpp='$CXXCPP $CPPFLAGS'
30681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30684
30685       cat >conftest.$ac_ext <<_ACEOF
30686 #line $LINENO "configure"
30687 /* confdefs.h.  */
30688 _ACEOF
30689 cat confdefs.h >>conftest.$ac_ext
30690 cat >>conftest.$ac_ext <<_ACEOF
30691 /* end confdefs.h.  */
30692 #include <math.h>
30693                       #ifdef HAVE_IEEEFP_H
30694                       #include <ieeefp.h>
30695                       #endif
30696
30697 int
30698 main ()
30699 {
30700  _isinff(0);
30701   ;
30702   return 0;
30703 }
30704 _ACEOF
30705 rm -f conftest.$ac_objext
30706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30707   (eval $ac_compile) 2>&5
30708   ac_status=$?
30709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30710   (exit $ac_status); } &&
30711          { ac_try='test -s conftest.$ac_objext'
30712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30713   (eval $ac_try) 2>&5
30714   ac_status=$?
30715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30716   (exit $ac_status); }; }; then
30717   glibcxx_cv_func__isinff_use=yes
30718 else
30719   echo "$as_me: failed program was:" >&5
30720 sed 's/^/| /' conftest.$ac_ext >&5
30721
30722 glibcxx_cv_func__isinff_use=no
30723 fi
30724 rm -f conftest.$ac_objext conftest.$ac_ext
30725       ac_ext=c
30726 ac_cpp='$CPP $CPPFLAGS'
30727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30730
30731
30732 fi
30733
30734   fi
30735   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinff_use" >&5
30736 echo "${ECHO_T}$glibcxx_cv_func__isinff_use" >&6
30737
30738     if test x$glibcxx_cv_func__isinff_use = x"yes"; then
30739
30740 for ac_func in _isinff
30741 do
30742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30743 echo "$as_me:$LINENO: checking for $ac_func" >&5
30744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30745 if eval "test \"\${$as_ac_var+set}\" = set"; then
30746   echo $ECHO_N "(cached) $ECHO_C" >&6
30747 else
30748   cat >conftest.$ac_ext <<_ACEOF
30749 #line $LINENO "configure"
30750 /* confdefs.h.  */
30751 _ACEOF
30752 cat confdefs.h >>conftest.$ac_ext
30753 cat >>conftest.$ac_ext <<_ACEOF
30754 /* end confdefs.h.  */
30755 /* System header to define __stub macros and hopefully few prototypes,
30756     which can conflict with char $ac_func (); below.
30757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30758     <limits.h> exists even on freestanding compilers.  */
30759 #ifdef __STDC__
30760 # include <limits.h>
30761 #else
30762 # include <assert.h>
30763 #endif
30764 /* Override any gcc2 internal prototype to avoid an error.  */
30765 #ifdef __cplusplus
30766 extern "C"
30767 {
30768 #endif
30769 /* We use char because int might match the return type of a gcc2
30770    builtin and then its argument prototype would still apply.  */
30771 char $ac_func ();
30772 /* The GNU C library defines this for functions which it implements
30773     to always fail with ENOSYS.  Some functions are actually named
30774     something starting with __ and the normal name is an alias.  */
30775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30776 choke me
30777 #else
30778 char (*f) () = $ac_func;
30779 #endif
30780 #ifdef __cplusplus
30781 }
30782 #endif
30783
30784 int
30785 main ()
30786 {
30787 return f != $ac_func;
30788   ;
30789   return 0;
30790 }
30791 _ACEOF
30792 rm -f conftest.$ac_objext conftest$ac_exeext
30793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30794   (eval $ac_link) 2>&5
30795   ac_status=$?
30796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797   (exit $ac_status); } &&
30798          { ac_try='test -s conftest$ac_exeext'
30799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30800   (eval $ac_try) 2>&5
30801   ac_status=$?
30802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803   (exit $ac_status); }; }; then
30804   eval "$as_ac_var=yes"
30805 else
30806   echo "$as_me: failed program was:" >&5
30807 sed 's/^/| /' conftest.$ac_ext >&5
30808
30809 eval "$as_ac_var=no"
30810 fi
30811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30812 fi
30813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30815 if test `eval echo '${'$as_ac_var'}'` = yes; then
30816   cat >>confdefs.h <<_ACEOF
30817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30818 _ACEOF
30819
30820 fi
30821 done
30822
30823     fi
30824   fi
30825
30826
30827
30828   echo "$as_me:$LINENO: checking for atan2f declaration" >&5
30829 echo $ECHO_N "checking for atan2f declaration... $ECHO_C" >&6
30830   if test x${glibcxx_cv_func_atan2f_use+set} != xset; then
30831     if test "${glibcxx_cv_func_atan2f_use+set}" = set; then
30832   echo $ECHO_N "(cached) $ECHO_C" >&6
30833 else
30834
30835
30836
30837       ac_ext=cc
30838 ac_cpp='$CXXCPP $CPPFLAGS'
30839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30842
30843       cat >conftest.$ac_ext <<_ACEOF
30844 #line $LINENO "configure"
30845 /* confdefs.h.  */
30846 _ACEOF
30847 cat confdefs.h >>conftest.$ac_ext
30848 cat >>conftest.$ac_ext <<_ACEOF
30849 /* end confdefs.h.  */
30850 #include <math.h>
30851 int
30852 main ()
30853 {
30854  atan2f(0, 0);
30855   ;
30856   return 0;
30857 }
30858 _ACEOF
30859 rm -f conftest.$ac_objext
30860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30861   (eval $ac_compile) 2>&5
30862   ac_status=$?
30863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864   (exit $ac_status); } &&
30865          { ac_try='test -s conftest.$ac_objext'
30866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30867   (eval $ac_try) 2>&5
30868   ac_status=$?
30869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870   (exit $ac_status); }; }; then
30871   glibcxx_cv_func_atan2f_use=yes
30872 else
30873   echo "$as_me: failed program was:" >&5
30874 sed 's/^/| /' conftest.$ac_ext >&5
30875
30876 glibcxx_cv_func_atan2f_use=no
30877 fi
30878 rm -f conftest.$ac_objext conftest.$ac_ext
30879       ac_ext=c
30880 ac_cpp='$CPP $CPPFLAGS'
30881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30884
30885
30886 fi
30887
30888   fi
30889   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2f_use" >&5
30890 echo "${ECHO_T}$glibcxx_cv_func_atan2f_use" >&6
30891
30892   if test x$glibcxx_cv_func_atan2f_use = x"yes"; then
30893
30894 for ac_func in atan2f
30895 do
30896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30897 echo "$as_me:$LINENO: checking for $ac_func" >&5
30898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30899 if eval "test \"\${$as_ac_var+set}\" = set"; then
30900   echo $ECHO_N "(cached) $ECHO_C" >&6
30901 else
30902   cat >conftest.$ac_ext <<_ACEOF
30903 #line $LINENO "configure"
30904 /* confdefs.h.  */
30905 _ACEOF
30906 cat confdefs.h >>conftest.$ac_ext
30907 cat >>conftest.$ac_ext <<_ACEOF
30908 /* end confdefs.h.  */
30909 /* System header to define __stub macros and hopefully few prototypes,
30910     which can conflict with char $ac_func (); below.
30911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30912     <limits.h> exists even on freestanding compilers.  */
30913 #ifdef __STDC__
30914 # include <limits.h>
30915 #else
30916 # include <assert.h>
30917 #endif
30918 /* Override any gcc2 internal prototype to avoid an error.  */
30919 #ifdef __cplusplus
30920 extern "C"
30921 {
30922 #endif
30923 /* We use char because int might match the return type of a gcc2
30924    builtin and then its argument prototype would still apply.  */
30925 char $ac_func ();
30926 /* The GNU C library defines this for functions which it implements
30927     to always fail with ENOSYS.  Some functions are actually named
30928     something starting with __ and the normal name is an alias.  */
30929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30930 choke me
30931 #else
30932 char (*f) () = $ac_func;
30933 #endif
30934 #ifdef __cplusplus
30935 }
30936 #endif
30937
30938 int
30939 main ()
30940 {
30941 return f != $ac_func;
30942   ;
30943   return 0;
30944 }
30945 _ACEOF
30946 rm -f conftest.$ac_objext conftest$ac_exeext
30947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30948   (eval $ac_link) 2>&5
30949   ac_status=$?
30950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951   (exit $ac_status); } &&
30952          { ac_try='test -s conftest$ac_exeext'
30953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30954   (eval $ac_try) 2>&5
30955   ac_status=$?
30956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957   (exit $ac_status); }; }; then
30958   eval "$as_ac_var=yes"
30959 else
30960   echo "$as_me: failed program was:" >&5
30961 sed 's/^/| /' conftest.$ac_ext >&5
30962
30963 eval "$as_ac_var=no"
30964 fi
30965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30966 fi
30967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30969 if test `eval echo '${'$as_ac_var'}'` = yes; then
30970   cat >>confdefs.h <<_ACEOF
30971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30972 _ACEOF
30973
30974 fi
30975 done
30976
30977   else
30978
30979   echo "$as_me:$LINENO: checking for _atan2f declaration" >&5
30980 echo $ECHO_N "checking for _atan2f declaration... $ECHO_C" >&6
30981   if test x${glibcxx_cv_func__atan2f_use+set} != xset; then
30982     if test "${glibcxx_cv_func__atan2f_use+set}" = set; then
30983   echo $ECHO_N "(cached) $ECHO_C" >&6
30984 else
30985
30986
30987
30988       ac_ext=cc
30989 ac_cpp='$CXXCPP $CPPFLAGS'
30990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30993
30994       cat >conftest.$ac_ext <<_ACEOF
30995 #line $LINENO "configure"
30996 /* confdefs.h.  */
30997 _ACEOF
30998 cat confdefs.h >>conftest.$ac_ext
30999 cat >>conftest.$ac_ext <<_ACEOF
31000 /* end confdefs.h.  */
31001 #include <math.h>
31002 int
31003 main ()
31004 {
31005  _atan2f(0, 0);
31006   ;
31007   return 0;
31008 }
31009 _ACEOF
31010 rm -f conftest.$ac_objext
31011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31012   (eval $ac_compile) 2>&5
31013   ac_status=$?
31014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015   (exit $ac_status); } &&
31016          { ac_try='test -s conftest.$ac_objext'
31017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31018   (eval $ac_try) 2>&5
31019   ac_status=$?
31020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31021   (exit $ac_status); }; }; then
31022   glibcxx_cv_func__atan2f_use=yes
31023 else
31024   echo "$as_me: failed program was:" >&5
31025 sed 's/^/| /' conftest.$ac_ext >&5
31026
31027 glibcxx_cv_func__atan2f_use=no
31028 fi
31029 rm -f conftest.$ac_objext conftest.$ac_ext
31030       ac_ext=c
31031 ac_cpp='$CPP $CPPFLAGS'
31032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31035
31036
31037 fi
31038
31039   fi
31040   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2f_use" >&5
31041 echo "${ECHO_T}$glibcxx_cv_func__atan2f_use" >&6
31042
31043     if test x$glibcxx_cv_func__atan2f_use = x"yes"; then
31044
31045 for ac_func in _atan2f
31046 do
31047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31048 echo "$as_me:$LINENO: checking for $ac_func" >&5
31049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31050 if eval "test \"\${$as_ac_var+set}\" = set"; then
31051   echo $ECHO_N "(cached) $ECHO_C" >&6
31052 else
31053   cat >conftest.$ac_ext <<_ACEOF
31054 #line $LINENO "configure"
31055 /* confdefs.h.  */
31056 _ACEOF
31057 cat confdefs.h >>conftest.$ac_ext
31058 cat >>conftest.$ac_ext <<_ACEOF
31059 /* end confdefs.h.  */
31060 /* System header to define __stub macros and hopefully few prototypes,
31061     which can conflict with char $ac_func (); below.
31062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31063     <limits.h> exists even on freestanding compilers.  */
31064 #ifdef __STDC__
31065 # include <limits.h>
31066 #else
31067 # include <assert.h>
31068 #endif
31069 /* Override any gcc2 internal prototype to avoid an error.  */
31070 #ifdef __cplusplus
31071 extern "C"
31072 {
31073 #endif
31074 /* We use char because int might match the return type of a gcc2
31075    builtin and then its argument prototype would still apply.  */
31076 char $ac_func ();
31077 /* The GNU C library defines this for functions which it implements
31078     to always fail with ENOSYS.  Some functions are actually named
31079     something starting with __ and the normal name is an alias.  */
31080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31081 choke me
31082 #else
31083 char (*f) () = $ac_func;
31084 #endif
31085 #ifdef __cplusplus
31086 }
31087 #endif
31088
31089 int
31090 main ()
31091 {
31092 return f != $ac_func;
31093   ;
31094   return 0;
31095 }
31096 _ACEOF
31097 rm -f conftest.$ac_objext conftest$ac_exeext
31098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31099   (eval $ac_link) 2>&5
31100   ac_status=$?
31101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31102   (exit $ac_status); } &&
31103          { ac_try='test -s conftest$ac_exeext'
31104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31105   (eval $ac_try) 2>&5
31106   ac_status=$?
31107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31108   (exit $ac_status); }; }; then
31109   eval "$as_ac_var=yes"
31110 else
31111   echo "$as_me: failed program was:" >&5
31112 sed 's/^/| /' conftest.$ac_ext >&5
31113
31114 eval "$as_ac_var=no"
31115 fi
31116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31117 fi
31118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31120 if test `eval echo '${'$as_ac_var'}'` = yes; then
31121   cat >>confdefs.h <<_ACEOF
31122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31123 _ACEOF
31124
31125 fi
31126 done
31127
31128     fi
31129   fi
31130
31131
31132
31133   echo "$as_me:$LINENO: checking for fabsf declaration" >&5
31134 echo $ECHO_N "checking for fabsf declaration... $ECHO_C" >&6
31135   if test x${glibcxx_cv_func_fabsf_use+set} != xset; then
31136     if test "${glibcxx_cv_func_fabsf_use+set}" = set; then
31137   echo $ECHO_N "(cached) $ECHO_C" >&6
31138 else
31139
31140
31141
31142       ac_ext=cc
31143 ac_cpp='$CXXCPP $CPPFLAGS'
31144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31147
31148       cat >conftest.$ac_ext <<_ACEOF
31149 #line $LINENO "configure"
31150 /* confdefs.h.  */
31151 _ACEOF
31152 cat confdefs.h >>conftest.$ac_ext
31153 cat >>conftest.$ac_ext <<_ACEOF
31154 /* end confdefs.h.  */
31155 #include <math.h>
31156                       #ifdef HAVE_IEEEFP_H
31157                       #include <ieeefp.h>
31158                       #endif
31159
31160 int
31161 main ()
31162 {
31163  fabsf(0);
31164   ;
31165   return 0;
31166 }
31167 _ACEOF
31168 rm -f conftest.$ac_objext
31169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31170   (eval $ac_compile) 2>&5
31171   ac_status=$?
31172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173   (exit $ac_status); } &&
31174          { ac_try='test -s conftest.$ac_objext'
31175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31176   (eval $ac_try) 2>&5
31177   ac_status=$?
31178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31179   (exit $ac_status); }; }; then
31180   glibcxx_cv_func_fabsf_use=yes
31181 else
31182   echo "$as_me: failed program was:" >&5
31183 sed 's/^/| /' conftest.$ac_ext >&5
31184
31185 glibcxx_cv_func_fabsf_use=no
31186 fi
31187 rm -f conftest.$ac_objext conftest.$ac_ext
31188       ac_ext=c
31189 ac_cpp='$CPP $CPPFLAGS'
31190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31193
31194
31195 fi
31196
31197   fi
31198   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsf_use" >&5
31199 echo "${ECHO_T}$glibcxx_cv_func_fabsf_use" >&6
31200
31201   if test x$glibcxx_cv_func_fabsf_use = x"yes"; then
31202
31203 for ac_func in fabsf
31204 do
31205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31206 echo "$as_me:$LINENO: checking for $ac_func" >&5
31207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31208 if eval "test \"\${$as_ac_var+set}\" = set"; then
31209   echo $ECHO_N "(cached) $ECHO_C" >&6
31210 else
31211   cat >conftest.$ac_ext <<_ACEOF
31212 #line $LINENO "configure"
31213 /* confdefs.h.  */
31214 _ACEOF
31215 cat confdefs.h >>conftest.$ac_ext
31216 cat >>conftest.$ac_ext <<_ACEOF
31217 /* end confdefs.h.  */
31218 /* System header to define __stub macros and hopefully few prototypes,
31219     which can conflict with char $ac_func (); below.
31220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31221     <limits.h> exists even on freestanding compilers.  */
31222 #ifdef __STDC__
31223 # include <limits.h>
31224 #else
31225 # include <assert.h>
31226 #endif
31227 /* Override any gcc2 internal prototype to avoid an error.  */
31228 #ifdef __cplusplus
31229 extern "C"
31230 {
31231 #endif
31232 /* We use char because int might match the return type of a gcc2
31233    builtin and then its argument prototype would still apply.  */
31234 char $ac_func ();
31235 /* The GNU C library defines this for functions which it implements
31236     to always fail with ENOSYS.  Some functions are actually named
31237     something starting with __ and the normal name is an alias.  */
31238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31239 choke me
31240 #else
31241 char (*f) () = $ac_func;
31242 #endif
31243 #ifdef __cplusplus
31244 }
31245 #endif
31246
31247 int
31248 main ()
31249 {
31250 return f != $ac_func;
31251   ;
31252   return 0;
31253 }
31254 _ACEOF
31255 rm -f conftest.$ac_objext conftest$ac_exeext
31256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31257   (eval $ac_link) 2>&5
31258   ac_status=$?
31259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260   (exit $ac_status); } &&
31261          { ac_try='test -s conftest$ac_exeext'
31262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31263   (eval $ac_try) 2>&5
31264   ac_status=$?
31265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31266   (exit $ac_status); }; }; then
31267   eval "$as_ac_var=yes"
31268 else
31269   echo "$as_me: failed program was:" >&5
31270 sed 's/^/| /' conftest.$ac_ext >&5
31271
31272 eval "$as_ac_var=no"
31273 fi
31274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31275 fi
31276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31278 if test `eval echo '${'$as_ac_var'}'` = yes; then
31279   cat >>confdefs.h <<_ACEOF
31280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31281 _ACEOF
31282
31283 fi
31284 done
31285
31286   else
31287
31288   echo "$as_me:$LINENO: checking for _fabsf declaration" >&5
31289 echo $ECHO_N "checking for _fabsf declaration... $ECHO_C" >&6
31290   if test x${glibcxx_cv_func__fabsf_use+set} != xset; then
31291     if test "${glibcxx_cv_func__fabsf_use+set}" = set; then
31292   echo $ECHO_N "(cached) $ECHO_C" >&6
31293 else
31294
31295
31296
31297       ac_ext=cc
31298 ac_cpp='$CXXCPP $CPPFLAGS'
31299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31302
31303       cat >conftest.$ac_ext <<_ACEOF
31304 #line $LINENO "configure"
31305 /* confdefs.h.  */
31306 _ACEOF
31307 cat confdefs.h >>conftest.$ac_ext
31308 cat >>conftest.$ac_ext <<_ACEOF
31309 /* end confdefs.h.  */
31310 #include <math.h>
31311                       #ifdef HAVE_IEEEFP_H
31312                       #include <ieeefp.h>
31313                       #endif
31314
31315 int
31316 main ()
31317 {
31318  _fabsf(0);
31319   ;
31320   return 0;
31321 }
31322 _ACEOF
31323 rm -f conftest.$ac_objext
31324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31325   (eval $ac_compile) 2>&5
31326   ac_status=$?
31327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31328   (exit $ac_status); } &&
31329          { ac_try='test -s conftest.$ac_objext'
31330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31331   (eval $ac_try) 2>&5
31332   ac_status=$?
31333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334   (exit $ac_status); }; }; then
31335   glibcxx_cv_func__fabsf_use=yes
31336 else
31337   echo "$as_me: failed program was:" >&5
31338 sed 's/^/| /' conftest.$ac_ext >&5
31339
31340 glibcxx_cv_func__fabsf_use=no
31341 fi
31342 rm -f conftest.$ac_objext conftest.$ac_ext
31343       ac_ext=c
31344 ac_cpp='$CPP $CPPFLAGS'
31345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31348
31349
31350 fi
31351
31352   fi
31353   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsf_use" >&5
31354 echo "${ECHO_T}$glibcxx_cv_func__fabsf_use" >&6
31355
31356     if test x$glibcxx_cv_func__fabsf_use = x"yes"; then
31357
31358 for ac_func in _fabsf
31359 do
31360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31361 echo "$as_me:$LINENO: checking for $ac_func" >&5
31362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31363 if eval "test \"\${$as_ac_var+set}\" = set"; then
31364   echo $ECHO_N "(cached) $ECHO_C" >&6
31365 else
31366   cat >conftest.$ac_ext <<_ACEOF
31367 #line $LINENO "configure"
31368 /* confdefs.h.  */
31369 _ACEOF
31370 cat confdefs.h >>conftest.$ac_ext
31371 cat >>conftest.$ac_ext <<_ACEOF
31372 /* end confdefs.h.  */
31373 /* System header to define __stub macros and hopefully few prototypes,
31374     which can conflict with char $ac_func (); below.
31375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31376     <limits.h> exists even on freestanding compilers.  */
31377 #ifdef __STDC__
31378 # include <limits.h>
31379 #else
31380 # include <assert.h>
31381 #endif
31382 /* Override any gcc2 internal prototype to avoid an error.  */
31383 #ifdef __cplusplus
31384 extern "C"
31385 {
31386 #endif
31387 /* We use char because int might match the return type of a gcc2
31388    builtin and then its argument prototype would still apply.  */
31389 char $ac_func ();
31390 /* The GNU C library defines this for functions which it implements
31391     to always fail with ENOSYS.  Some functions are actually named
31392     something starting with __ and the normal name is an alias.  */
31393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31394 choke me
31395 #else
31396 char (*f) () = $ac_func;
31397 #endif
31398 #ifdef __cplusplus
31399 }
31400 #endif
31401
31402 int
31403 main ()
31404 {
31405 return f != $ac_func;
31406   ;
31407   return 0;
31408 }
31409 _ACEOF
31410 rm -f conftest.$ac_objext conftest$ac_exeext
31411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31412   (eval $ac_link) 2>&5
31413   ac_status=$?
31414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415   (exit $ac_status); } &&
31416          { ac_try='test -s conftest$ac_exeext'
31417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31418   (eval $ac_try) 2>&5
31419   ac_status=$?
31420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421   (exit $ac_status); }; }; then
31422   eval "$as_ac_var=yes"
31423 else
31424   echo "$as_me: failed program was:" >&5
31425 sed 's/^/| /' conftest.$ac_ext >&5
31426
31427 eval "$as_ac_var=no"
31428 fi
31429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31430 fi
31431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31433 if test `eval echo '${'$as_ac_var'}'` = yes; then
31434   cat >>confdefs.h <<_ACEOF
31435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31436 _ACEOF
31437
31438 fi
31439 done
31440
31441     fi
31442   fi
31443
31444
31445
31446   echo "$as_me:$LINENO: checking for fmodf declaration" >&5
31447 echo $ECHO_N "checking for fmodf declaration... $ECHO_C" >&6
31448   if test x${glibcxx_cv_func_fmodf_use+set} != xset; then
31449     if test "${glibcxx_cv_func_fmodf_use+set}" = set; then
31450   echo $ECHO_N "(cached) $ECHO_C" >&6
31451 else
31452
31453
31454
31455       ac_ext=cc
31456 ac_cpp='$CXXCPP $CPPFLAGS'
31457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31460
31461       cat >conftest.$ac_ext <<_ACEOF
31462 #line $LINENO "configure"
31463 /* confdefs.h.  */
31464 _ACEOF
31465 cat confdefs.h >>conftest.$ac_ext
31466 cat >>conftest.$ac_ext <<_ACEOF
31467 /* end confdefs.h.  */
31468 #include <math.h>
31469 int
31470 main ()
31471 {
31472  fmodf(0, 0);
31473   ;
31474   return 0;
31475 }
31476 _ACEOF
31477 rm -f conftest.$ac_objext
31478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31479   (eval $ac_compile) 2>&5
31480   ac_status=$?
31481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482   (exit $ac_status); } &&
31483          { ac_try='test -s conftest.$ac_objext'
31484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31485   (eval $ac_try) 2>&5
31486   ac_status=$?
31487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488   (exit $ac_status); }; }; then
31489   glibcxx_cv_func_fmodf_use=yes
31490 else
31491   echo "$as_me: failed program was:" >&5
31492 sed 's/^/| /' conftest.$ac_ext >&5
31493
31494 glibcxx_cv_func_fmodf_use=no
31495 fi
31496 rm -f conftest.$ac_objext conftest.$ac_ext
31497       ac_ext=c
31498 ac_cpp='$CPP $CPPFLAGS'
31499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31502
31503
31504 fi
31505
31506   fi
31507   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fmodf_use" >&5
31508 echo "${ECHO_T}$glibcxx_cv_func_fmodf_use" >&6
31509
31510   if test x$glibcxx_cv_func_fmodf_use = x"yes"; then
31511
31512 for ac_func in fmodf
31513 do
31514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31515 echo "$as_me:$LINENO: checking for $ac_func" >&5
31516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31517 if eval "test \"\${$as_ac_var+set}\" = set"; then
31518   echo $ECHO_N "(cached) $ECHO_C" >&6
31519 else
31520   cat >conftest.$ac_ext <<_ACEOF
31521 #line $LINENO "configure"
31522 /* confdefs.h.  */
31523 _ACEOF
31524 cat confdefs.h >>conftest.$ac_ext
31525 cat >>conftest.$ac_ext <<_ACEOF
31526 /* end confdefs.h.  */
31527 /* System header to define __stub macros and hopefully few prototypes,
31528     which can conflict with char $ac_func (); below.
31529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31530     <limits.h> exists even on freestanding compilers.  */
31531 #ifdef __STDC__
31532 # include <limits.h>
31533 #else
31534 # include <assert.h>
31535 #endif
31536 /* Override any gcc2 internal prototype to avoid an error.  */
31537 #ifdef __cplusplus
31538 extern "C"
31539 {
31540 #endif
31541 /* We use char because int might match the return type of a gcc2
31542    builtin and then its argument prototype would still apply.  */
31543 char $ac_func ();
31544 /* The GNU C library defines this for functions which it implements
31545     to always fail with ENOSYS.  Some functions are actually named
31546     something starting with __ and the normal name is an alias.  */
31547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31548 choke me
31549 #else
31550 char (*f) () = $ac_func;
31551 #endif
31552 #ifdef __cplusplus
31553 }
31554 #endif
31555
31556 int
31557 main ()
31558 {
31559 return f != $ac_func;
31560   ;
31561   return 0;
31562 }
31563 _ACEOF
31564 rm -f conftest.$ac_objext conftest$ac_exeext
31565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31566   (eval $ac_link) 2>&5
31567   ac_status=$?
31568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569   (exit $ac_status); } &&
31570          { ac_try='test -s conftest$ac_exeext'
31571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31572   (eval $ac_try) 2>&5
31573   ac_status=$?
31574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575   (exit $ac_status); }; }; then
31576   eval "$as_ac_var=yes"
31577 else
31578   echo "$as_me: failed program was:" >&5
31579 sed 's/^/| /' conftest.$ac_ext >&5
31580
31581 eval "$as_ac_var=no"
31582 fi
31583 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31584 fi
31585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31586 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31587 if test `eval echo '${'$as_ac_var'}'` = yes; then
31588   cat >>confdefs.h <<_ACEOF
31589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31590 _ACEOF
31591
31592 fi
31593 done
31594
31595   else
31596
31597   echo "$as_me:$LINENO: checking for _fmodf declaration" >&5
31598 echo $ECHO_N "checking for _fmodf declaration... $ECHO_C" >&6
31599   if test x${glibcxx_cv_func__fmodf_use+set} != xset; then
31600     if test "${glibcxx_cv_func__fmodf_use+set}" = set; then
31601   echo $ECHO_N "(cached) $ECHO_C" >&6
31602 else
31603
31604
31605
31606       ac_ext=cc
31607 ac_cpp='$CXXCPP $CPPFLAGS'
31608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31611
31612       cat >conftest.$ac_ext <<_ACEOF
31613 #line $LINENO "configure"
31614 /* confdefs.h.  */
31615 _ACEOF
31616 cat confdefs.h >>conftest.$ac_ext
31617 cat >>conftest.$ac_ext <<_ACEOF
31618 /* end confdefs.h.  */
31619 #include <math.h>
31620 int
31621 main ()
31622 {
31623  _fmodf(0, 0);
31624   ;
31625   return 0;
31626 }
31627 _ACEOF
31628 rm -f conftest.$ac_objext
31629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31630   (eval $ac_compile) 2>&5
31631   ac_status=$?
31632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633   (exit $ac_status); } &&
31634          { ac_try='test -s conftest.$ac_objext'
31635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31636   (eval $ac_try) 2>&5
31637   ac_status=$?
31638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31639   (exit $ac_status); }; }; then
31640   glibcxx_cv_func__fmodf_use=yes
31641 else
31642   echo "$as_me: failed program was:" >&5
31643 sed 's/^/| /' conftest.$ac_ext >&5
31644
31645 glibcxx_cv_func__fmodf_use=no
31646 fi
31647 rm -f conftest.$ac_objext conftest.$ac_ext
31648       ac_ext=c
31649 ac_cpp='$CPP $CPPFLAGS'
31650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31653
31654
31655 fi
31656
31657   fi
31658   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodf_use" >&5
31659 echo "${ECHO_T}$glibcxx_cv_func__fmodf_use" >&6
31660
31661     if test x$glibcxx_cv_func__fmodf_use = x"yes"; then
31662
31663 for ac_func in _fmodf
31664 do
31665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31666 echo "$as_me:$LINENO: checking for $ac_func" >&5
31667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31668 if eval "test \"\${$as_ac_var+set}\" = set"; then
31669   echo $ECHO_N "(cached) $ECHO_C" >&6
31670 else
31671   cat >conftest.$ac_ext <<_ACEOF
31672 #line $LINENO "configure"
31673 /* confdefs.h.  */
31674 _ACEOF
31675 cat confdefs.h >>conftest.$ac_ext
31676 cat >>conftest.$ac_ext <<_ACEOF
31677 /* end confdefs.h.  */
31678 /* System header to define __stub macros and hopefully few prototypes,
31679     which can conflict with char $ac_func (); below.
31680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31681     <limits.h> exists even on freestanding compilers.  */
31682 #ifdef __STDC__
31683 # include <limits.h>
31684 #else
31685 # include <assert.h>
31686 #endif
31687 /* Override any gcc2 internal prototype to avoid an error.  */
31688 #ifdef __cplusplus
31689 extern "C"
31690 {
31691 #endif
31692 /* We use char because int might match the return type of a gcc2
31693    builtin and then its argument prototype would still apply.  */
31694 char $ac_func ();
31695 /* The GNU C library defines this for functions which it implements
31696     to always fail with ENOSYS.  Some functions are actually named
31697     something starting with __ and the normal name is an alias.  */
31698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31699 choke me
31700 #else
31701 char (*f) () = $ac_func;
31702 #endif
31703 #ifdef __cplusplus
31704 }
31705 #endif
31706
31707 int
31708 main ()
31709 {
31710 return f != $ac_func;
31711   ;
31712   return 0;
31713 }
31714 _ACEOF
31715 rm -f conftest.$ac_objext conftest$ac_exeext
31716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31717   (eval $ac_link) 2>&5
31718   ac_status=$?
31719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720   (exit $ac_status); } &&
31721          { ac_try='test -s conftest$ac_exeext'
31722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31723   (eval $ac_try) 2>&5
31724   ac_status=$?
31725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31726   (exit $ac_status); }; }; then
31727   eval "$as_ac_var=yes"
31728 else
31729   echo "$as_me: failed program was:" >&5
31730 sed 's/^/| /' conftest.$ac_ext >&5
31731
31732 eval "$as_ac_var=no"
31733 fi
31734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31735 fi
31736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31738 if test `eval echo '${'$as_ac_var'}'` = yes; then
31739   cat >>confdefs.h <<_ACEOF
31740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31741 _ACEOF
31742
31743 fi
31744 done
31745
31746     fi
31747   fi
31748
31749
31750
31751   echo "$as_me:$LINENO: checking for frexpf declaration" >&5
31752 echo $ECHO_N "checking for frexpf declaration... $ECHO_C" >&6
31753   if test x${glibcxx_cv_func_frexpf_use+set} != xset; then
31754     if test "${glibcxx_cv_func_frexpf_use+set}" = set; then
31755   echo $ECHO_N "(cached) $ECHO_C" >&6
31756 else
31757
31758
31759
31760       ac_ext=cc
31761 ac_cpp='$CXXCPP $CPPFLAGS'
31762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31765
31766       cat >conftest.$ac_ext <<_ACEOF
31767 #line $LINENO "configure"
31768 /* confdefs.h.  */
31769 _ACEOF
31770 cat confdefs.h >>conftest.$ac_ext
31771 cat >>conftest.$ac_ext <<_ACEOF
31772 /* end confdefs.h.  */
31773 #include <math.h>
31774 int
31775 main ()
31776 {
31777  frexpf(0, 0);
31778   ;
31779   return 0;
31780 }
31781 _ACEOF
31782 rm -f conftest.$ac_objext
31783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31784   (eval $ac_compile) 2>&5
31785   ac_status=$?
31786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787   (exit $ac_status); } &&
31788          { ac_try='test -s conftest.$ac_objext'
31789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31790   (eval $ac_try) 2>&5
31791   ac_status=$?
31792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793   (exit $ac_status); }; }; then
31794   glibcxx_cv_func_frexpf_use=yes
31795 else
31796   echo "$as_me: failed program was:" >&5
31797 sed 's/^/| /' conftest.$ac_ext >&5
31798
31799 glibcxx_cv_func_frexpf_use=no
31800 fi
31801 rm -f conftest.$ac_objext conftest.$ac_ext
31802       ac_ext=c
31803 ac_cpp='$CPP $CPPFLAGS'
31804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31807
31808
31809 fi
31810
31811   fi
31812   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpf_use" >&5
31813 echo "${ECHO_T}$glibcxx_cv_func_frexpf_use" >&6
31814
31815   if test x$glibcxx_cv_func_frexpf_use = x"yes"; then
31816
31817 for ac_func in frexpf
31818 do
31819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31820 echo "$as_me:$LINENO: checking for $ac_func" >&5
31821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31822 if eval "test \"\${$as_ac_var+set}\" = set"; then
31823   echo $ECHO_N "(cached) $ECHO_C" >&6
31824 else
31825   cat >conftest.$ac_ext <<_ACEOF
31826 #line $LINENO "configure"
31827 /* confdefs.h.  */
31828 _ACEOF
31829 cat confdefs.h >>conftest.$ac_ext
31830 cat >>conftest.$ac_ext <<_ACEOF
31831 /* end confdefs.h.  */
31832 /* System header to define __stub macros and hopefully few prototypes,
31833     which can conflict with char $ac_func (); below.
31834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31835     <limits.h> exists even on freestanding compilers.  */
31836 #ifdef __STDC__
31837 # include <limits.h>
31838 #else
31839 # include <assert.h>
31840 #endif
31841 /* Override any gcc2 internal prototype to avoid an error.  */
31842 #ifdef __cplusplus
31843 extern "C"
31844 {
31845 #endif
31846 /* We use char because int might match the return type of a gcc2
31847    builtin and then its argument prototype would still apply.  */
31848 char $ac_func ();
31849 /* The GNU C library defines this for functions which it implements
31850     to always fail with ENOSYS.  Some functions are actually named
31851     something starting with __ and the normal name is an alias.  */
31852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31853 choke me
31854 #else
31855 char (*f) () = $ac_func;
31856 #endif
31857 #ifdef __cplusplus
31858 }
31859 #endif
31860
31861 int
31862 main ()
31863 {
31864 return f != $ac_func;
31865   ;
31866   return 0;
31867 }
31868 _ACEOF
31869 rm -f conftest.$ac_objext conftest$ac_exeext
31870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31871   (eval $ac_link) 2>&5
31872   ac_status=$?
31873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31874   (exit $ac_status); } &&
31875          { ac_try='test -s conftest$ac_exeext'
31876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31877   (eval $ac_try) 2>&5
31878   ac_status=$?
31879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31880   (exit $ac_status); }; }; then
31881   eval "$as_ac_var=yes"
31882 else
31883   echo "$as_me: failed program was:" >&5
31884 sed 's/^/| /' conftest.$ac_ext >&5
31885
31886 eval "$as_ac_var=no"
31887 fi
31888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31889 fi
31890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31891 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31892 if test `eval echo '${'$as_ac_var'}'` = yes; then
31893   cat >>confdefs.h <<_ACEOF
31894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31895 _ACEOF
31896
31897 fi
31898 done
31899
31900   else
31901
31902   echo "$as_me:$LINENO: checking for _frexpf declaration" >&5
31903 echo $ECHO_N "checking for _frexpf declaration... $ECHO_C" >&6
31904   if test x${glibcxx_cv_func__frexpf_use+set} != xset; then
31905     if test "${glibcxx_cv_func__frexpf_use+set}" = set; then
31906   echo $ECHO_N "(cached) $ECHO_C" >&6
31907 else
31908
31909
31910
31911       ac_ext=cc
31912 ac_cpp='$CXXCPP $CPPFLAGS'
31913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31916
31917       cat >conftest.$ac_ext <<_ACEOF
31918 #line $LINENO "configure"
31919 /* confdefs.h.  */
31920 _ACEOF
31921 cat confdefs.h >>conftest.$ac_ext
31922 cat >>conftest.$ac_ext <<_ACEOF
31923 /* end confdefs.h.  */
31924 #include <math.h>
31925 int
31926 main ()
31927 {
31928  _frexpf(0, 0);
31929   ;
31930   return 0;
31931 }
31932 _ACEOF
31933 rm -f conftest.$ac_objext
31934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31935   (eval $ac_compile) 2>&5
31936   ac_status=$?
31937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938   (exit $ac_status); } &&
31939          { ac_try='test -s conftest.$ac_objext'
31940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31941   (eval $ac_try) 2>&5
31942   ac_status=$?
31943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944   (exit $ac_status); }; }; then
31945   glibcxx_cv_func__frexpf_use=yes
31946 else
31947   echo "$as_me: failed program was:" >&5
31948 sed 's/^/| /' conftest.$ac_ext >&5
31949
31950 glibcxx_cv_func__frexpf_use=no
31951 fi
31952 rm -f conftest.$ac_objext conftest.$ac_ext
31953       ac_ext=c
31954 ac_cpp='$CPP $CPPFLAGS'
31955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31958
31959
31960 fi
31961
31962   fi
31963   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpf_use" >&5
31964 echo "${ECHO_T}$glibcxx_cv_func__frexpf_use" >&6
31965
31966     if test x$glibcxx_cv_func__frexpf_use = x"yes"; then
31967
31968 for ac_func in _frexpf
31969 do
31970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31971 echo "$as_me:$LINENO: checking for $ac_func" >&5
31972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31973 if eval "test \"\${$as_ac_var+set}\" = set"; then
31974   echo $ECHO_N "(cached) $ECHO_C" >&6
31975 else
31976   cat >conftest.$ac_ext <<_ACEOF
31977 #line $LINENO "configure"
31978 /* confdefs.h.  */
31979 _ACEOF
31980 cat confdefs.h >>conftest.$ac_ext
31981 cat >>conftest.$ac_ext <<_ACEOF
31982 /* end confdefs.h.  */
31983 /* System header to define __stub macros and hopefully few prototypes,
31984     which can conflict with char $ac_func (); below.
31985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31986     <limits.h> exists even on freestanding compilers.  */
31987 #ifdef __STDC__
31988 # include <limits.h>
31989 #else
31990 # include <assert.h>
31991 #endif
31992 /* Override any gcc2 internal prototype to avoid an error.  */
31993 #ifdef __cplusplus
31994 extern "C"
31995 {
31996 #endif
31997 /* We use char because int might match the return type of a gcc2
31998    builtin and then its argument prototype would still apply.  */
31999 char $ac_func ();
32000 /* The GNU C library defines this for functions which it implements
32001     to always fail with ENOSYS.  Some functions are actually named
32002     something starting with __ and the normal name is an alias.  */
32003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32004 choke me
32005 #else
32006 char (*f) () = $ac_func;
32007 #endif
32008 #ifdef __cplusplus
32009 }
32010 #endif
32011
32012 int
32013 main ()
32014 {
32015 return f != $ac_func;
32016   ;
32017   return 0;
32018 }
32019 _ACEOF
32020 rm -f conftest.$ac_objext conftest$ac_exeext
32021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32022   (eval $ac_link) 2>&5
32023   ac_status=$?
32024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025   (exit $ac_status); } &&
32026          { ac_try='test -s conftest$ac_exeext'
32027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32028   (eval $ac_try) 2>&5
32029   ac_status=$?
32030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32031   (exit $ac_status); }; }; then
32032   eval "$as_ac_var=yes"
32033 else
32034   echo "$as_me: failed program was:" >&5
32035 sed 's/^/| /' conftest.$ac_ext >&5
32036
32037 eval "$as_ac_var=no"
32038 fi
32039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32040 fi
32041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32043 if test `eval echo '${'$as_ac_var'}'` = yes; then
32044   cat >>confdefs.h <<_ACEOF
32045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32046 _ACEOF
32047
32048 fi
32049 done
32050
32051     fi
32052   fi
32053
32054
32055
32056   echo "$as_me:$LINENO: checking for hypotf declaration" >&5
32057 echo $ECHO_N "checking for hypotf declaration... $ECHO_C" >&6
32058   if test x${glibcxx_cv_func_hypotf_use+set} != xset; then
32059     if test "${glibcxx_cv_func_hypotf_use+set}" = set; then
32060   echo $ECHO_N "(cached) $ECHO_C" >&6
32061 else
32062
32063
32064
32065       ac_ext=cc
32066 ac_cpp='$CXXCPP $CPPFLAGS'
32067 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32068 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32069 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32070
32071       cat >conftest.$ac_ext <<_ACEOF
32072 #line $LINENO "configure"
32073 /* confdefs.h.  */
32074 _ACEOF
32075 cat confdefs.h >>conftest.$ac_ext
32076 cat >>conftest.$ac_ext <<_ACEOF
32077 /* end confdefs.h.  */
32078 #include <math.h>
32079 int
32080 main ()
32081 {
32082  hypotf(0, 0);
32083   ;
32084   return 0;
32085 }
32086 _ACEOF
32087 rm -f conftest.$ac_objext
32088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32089   (eval $ac_compile) 2>&5
32090   ac_status=$?
32091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32092   (exit $ac_status); } &&
32093          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
32099   glibcxx_cv_func_hypotf_use=yes
32100 else
32101   echo "$as_me: failed program was:" >&5
32102 sed 's/^/| /' conftest.$ac_ext >&5
32103
32104 glibcxx_cv_func_hypotf_use=no
32105 fi
32106 rm -f conftest.$ac_objext conftest.$ac_ext
32107       ac_ext=c
32108 ac_cpp='$CPP $CPPFLAGS'
32109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32112
32113
32114 fi
32115
32116   fi
32117   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotf_use" >&5
32118 echo "${ECHO_T}$glibcxx_cv_func_hypotf_use" >&6
32119
32120   if test x$glibcxx_cv_func_hypotf_use = x"yes"; then
32121
32122 for ac_func in hypotf
32123 do
32124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32125 echo "$as_me:$LINENO: checking for $ac_func" >&5
32126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32127 if eval "test \"\${$as_ac_var+set}\" = set"; then
32128   echo $ECHO_N "(cached) $ECHO_C" >&6
32129 else
32130   cat >conftest.$ac_ext <<_ACEOF
32131 #line $LINENO "configure"
32132 /* confdefs.h.  */
32133 _ACEOF
32134 cat confdefs.h >>conftest.$ac_ext
32135 cat >>conftest.$ac_ext <<_ACEOF
32136 /* end confdefs.h.  */
32137 /* System header to define __stub macros and hopefully few prototypes,
32138     which can conflict with char $ac_func (); below.
32139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32140     <limits.h> exists even on freestanding compilers.  */
32141 #ifdef __STDC__
32142 # include <limits.h>
32143 #else
32144 # include <assert.h>
32145 #endif
32146 /* Override any gcc2 internal prototype to avoid an error.  */
32147 #ifdef __cplusplus
32148 extern "C"
32149 {
32150 #endif
32151 /* We use char because int might match the return type of a gcc2
32152    builtin and then its argument prototype would still apply.  */
32153 char $ac_func ();
32154 /* The GNU C library defines this for functions which it implements
32155     to always fail with ENOSYS.  Some functions are actually named
32156     something starting with __ and the normal name is an alias.  */
32157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32158 choke me
32159 #else
32160 char (*f) () = $ac_func;
32161 #endif
32162 #ifdef __cplusplus
32163 }
32164 #endif
32165
32166 int
32167 main ()
32168 {
32169 return f != $ac_func;
32170   ;
32171   return 0;
32172 }
32173 _ACEOF
32174 rm -f conftest.$ac_objext conftest$ac_exeext
32175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32176   (eval $ac_link) 2>&5
32177   ac_status=$?
32178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32179   (exit $ac_status); } &&
32180          { ac_try='test -s conftest$ac_exeext'
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   eval "$as_ac_var=yes"
32187 else
32188   echo "$as_me: failed program was:" >&5
32189 sed 's/^/| /' conftest.$ac_ext >&5
32190
32191 eval "$as_ac_var=no"
32192 fi
32193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32194 fi
32195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32197 if test `eval echo '${'$as_ac_var'}'` = yes; then
32198   cat >>confdefs.h <<_ACEOF
32199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32200 _ACEOF
32201
32202 fi
32203 done
32204
32205   else
32206
32207   echo "$as_me:$LINENO: checking for _hypotf declaration" >&5
32208 echo $ECHO_N "checking for _hypotf declaration... $ECHO_C" >&6
32209   if test x${glibcxx_cv_func__hypotf_use+set} != xset; then
32210     if test "${glibcxx_cv_func__hypotf_use+set}" = set; then
32211   echo $ECHO_N "(cached) $ECHO_C" >&6
32212 else
32213
32214
32215
32216       ac_ext=cc
32217 ac_cpp='$CXXCPP $CPPFLAGS'
32218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32221
32222       cat >conftest.$ac_ext <<_ACEOF
32223 #line $LINENO "configure"
32224 /* confdefs.h.  */
32225 _ACEOF
32226 cat confdefs.h >>conftest.$ac_ext
32227 cat >>conftest.$ac_ext <<_ACEOF
32228 /* end confdefs.h.  */
32229 #include <math.h>
32230 int
32231 main ()
32232 {
32233  _hypotf(0, 0);
32234   ;
32235   return 0;
32236 }
32237 _ACEOF
32238 rm -f conftest.$ac_objext
32239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32240   (eval $ac_compile) 2>&5
32241   ac_status=$?
32242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32243   (exit $ac_status); } &&
32244          { ac_try='test -s conftest.$ac_objext'
32245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32246   (eval $ac_try) 2>&5
32247   ac_status=$?
32248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249   (exit $ac_status); }; }; then
32250   glibcxx_cv_func__hypotf_use=yes
32251 else
32252   echo "$as_me: failed program was:" >&5
32253 sed 's/^/| /' conftest.$ac_ext >&5
32254
32255 glibcxx_cv_func__hypotf_use=no
32256 fi
32257 rm -f conftest.$ac_objext conftest.$ac_ext
32258       ac_ext=c
32259 ac_cpp='$CPP $CPPFLAGS'
32260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32263
32264
32265 fi
32266
32267   fi
32268   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotf_use" >&5
32269 echo "${ECHO_T}$glibcxx_cv_func__hypotf_use" >&6
32270
32271     if test x$glibcxx_cv_func__hypotf_use = x"yes"; then
32272
32273 for ac_func in _hypotf
32274 do
32275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32276 echo "$as_me:$LINENO: checking for $ac_func" >&5
32277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32278 if eval "test \"\${$as_ac_var+set}\" = set"; then
32279   echo $ECHO_N "(cached) $ECHO_C" >&6
32280 else
32281   cat >conftest.$ac_ext <<_ACEOF
32282 #line $LINENO "configure"
32283 /* confdefs.h.  */
32284 _ACEOF
32285 cat confdefs.h >>conftest.$ac_ext
32286 cat >>conftest.$ac_ext <<_ACEOF
32287 /* end confdefs.h.  */
32288 /* System header to define __stub macros and hopefully few prototypes,
32289     which can conflict with char $ac_func (); below.
32290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32291     <limits.h> exists even on freestanding compilers.  */
32292 #ifdef __STDC__
32293 # include <limits.h>
32294 #else
32295 # include <assert.h>
32296 #endif
32297 /* Override any gcc2 internal prototype to avoid an error.  */
32298 #ifdef __cplusplus
32299 extern "C"
32300 {
32301 #endif
32302 /* We use char because int might match the return type of a gcc2
32303    builtin and then its argument prototype would still apply.  */
32304 char $ac_func ();
32305 /* The GNU C library defines this for functions which it implements
32306     to always fail with ENOSYS.  Some functions are actually named
32307     something starting with __ and the normal name is an alias.  */
32308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32309 choke me
32310 #else
32311 char (*f) () = $ac_func;
32312 #endif
32313 #ifdef __cplusplus
32314 }
32315 #endif
32316
32317 int
32318 main ()
32319 {
32320 return f != $ac_func;
32321   ;
32322   return 0;
32323 }
32324 _ACEOF
32325 rm -f conftest.$ac_objext conftest$ac_exeext
32326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32327   (eval $ac_link) 2>&5
32328   ac_status=$?
32329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32330   (exit $ac_status); } &&
32331          { ac_try='test -s conftest$ac_exeext'
32332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32333   (eval $ac_try) 2>&5
32334   ac_status=$?
32335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336   (exit $ac_status); }; }; then
32337   eval "$as_ac_var=yes"
32338 else
32339   echo "$as_me: failed program was:" >&5
32340 sed 's/^/| /' conftest.$ac_ext >&5
32341
32342 eval "$as_ac_var=no"
32343 fi
32344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32345 fi
32346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32348 if test `eval echo '${'$as_ac_var'}'` = yes; then
32349   cat >>confdefs.h <<_ACEOF
32350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32351 _ACEOF
32352
32353 fi
32354 done
32355
32356     fi
32357   fi
32358
32359
32360
32361   echo "$as_me:$LINENO: checking for ldexpf declaration" >&5
32362 echo $ECHO_N "checking for ldexpf declaration... $ECHO_C" >&6
32363   if test x${glibcxx_cv_func_ldexpf_use+set} != xset; then
32364     if test "${glibcxx_cv_func_ldexpf_use+set}" = set; then
32365   echo $ECHO_N "(cached) $ECHO_C" >&6
32366 else
32367
32368
32369
32370       ac_ext=cc
32371 ac_cpp='$CXXCPP $CPPFLAGS'
32372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32375
32376       cat >conftest.$ac_ext <<_ACEOF
32377 #line $LINENO "configure"
32378 /* confdefs.h.  */
32379 _ACEOF
32380 cat confdefs.h >>conftest.$ac_ext
32381 cat >>conftest.$ac_ext <<_ACEOF
32382 /* end confdefs.h.  */
32383 #include <math.h>
32384 int
32385 main ()
32386 {
32387  ldexpf(0, 0);
32388   ;
32389   return 0;
32390 }
32391 _ACEOF
32392 rm -f conftest.$ac_objext
32393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32394   (eval $ac_compile) 2>&5
32395   ac_status=$?
32396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397   (exit $ac_status); } &&
32398          { ac_try='test -s conftest.$ac_objext'
32399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32400   (eval $ac_try) 2>&5
32401   ac_status=$?
32402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403   (exit $ac_status); }; }; then
32404   glibcxx_cv_func_ldexpf_use=yes
32405 else
32406   echo "$as_me: failed program was:" >&5
32407 sed 's/^/| /' conftest.$ac_ext >&5
32408
32409 glibcxx_cv_func_ldexpf_use=no
32410 fi
32411 rm -f conftest.$ac_objext conftest.$ac_ext
32412       ac_ext=c
32413 ac_cpp='$CPP $CPPFLAGS'
32414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32417
32418
32419 fi
32420
32421   fi
32422   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpf_use" >&5
32423 echo "${ECHO_T}$glibcxx_cv_func_ldexpf_use" >&6
32424
32425   if test x$glibcxx_cv_func_ldexpf_use = x"yes"; then
32426
32427 for ac_func in ldexpf
32428 do
32429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32430 echo "$as_me:$LINENO: checking for $ac_func" >&5
32431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32432 if eval "test \"\${$as_ac_var+set}\" = set"; then
32433   echo $ECHO_N "(cached) $ECHO_C" >&6
32434 else
32435   cat >conftest.$ac_ext <<_ACEOF
32436 #line $LINENO "configure"
32437 /* confdefs.h.  */
32438 _ACEOF
32439 cat confdefs.h >>conftest.$ac_ext
32440 cat >>conftest.$ac_ext <<_ACEOF
32441 /* end confdefs.h.  */
32442 /* System header to define __stub macros and hopefully few prototypes,
32443     which can conflict with char $ac_func (); below.
32444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32445     <limits.h> exists even on freestanding compilers.  */
32446 #ifdef __STDC__
32447 # include <limits.h>
32448 #else
32449 # include <assert.h>
32450 #endif
32451 /* Override any gcc2 internal prototype to avoid an error.  */
32452 #ifdef __cplusplus
32453 extern "C"
32454 {
32455 #endif
32456 /* We use char because int might match the return type of a gcc2
32457    builtin and then its argument prototype would still apply.  */
32458 char $ac_func ();
32459 /* The GNU C library defines this for functions which it implements
32460     to always fail with ENOSYS.  Some functions are actually named
32461     something starting with __ and the normal name is an alias.  */
32462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32463 choke me
32464 #else
32465 char (*f) () = $ac_func;
32466 #endif
32467 #ifdef __cplusplus
32468 }
32469 #endif
32470
32471 int
32472 main ()
32473 {
32474 return f != $ac_func;
32475   ;
32476   return 0;
32477 }
32478 _ACEOF
32479 rm -f conftest.$ac_objext conftest$ac_exeext
32480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32481   (eval $ac_link) 2>&5
32482   ac_status=$?
32483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484   (exit $ac_status); } &&
32485          { ac_try='test -s conftest$ac_exeext'
32486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32487   (eval $ac_try) 2>&5
32488   ac_status=$?
32489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490   (exit $ac_status); }; }; then
32491   eval "$as_ac_var=yes"
32492 else
32493   echo "$as_me: failed program was:" >&5
32494 sed 's/^/| /' conftest.$ac_ext >&5
32495
32496 eval "$as_ac_var=no"
32497 fi
32498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32499 fi
32500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32502 if test `eval echo '${'$as_ac_var'}'` = yes; then
32503   cat >>confdefs.h <<_ACEOF
32504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32505 _ACEOF
32506
32507 fi
32508 done
32509
32510   else
32511
32512   echo "$as_me:$LINENO: checking for _ldexpf declaration" >&5
32513 echo $ECHO_N "checking for _ldexpf declaration... $ECHO_C" >&6
32514   if test x${glibcxx_cv_func__ldexpf_use+set} != xset; then
32515     if test "${glibcxx_cv_func__ldexpf_use+set}" = set; then
32516   echo $ECHO_N "(cached) $ECHO_C" >&6
32517 else
32518
32519
32520
32521       ac_ext=cc
32522 ac_cpp='$CXXCPP $CPPFLAGS'
32523 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32524 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32525 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32526
32527       cat >conftest.$ac_ext <<_ACEOF
32528 #line $LINENO "configure"
32529 /* confdefs.h.  */
32530 _ACEOF
32531 cat confdefs.h >>conftest.$ac_ext
32532 cat >>conftest.$ac_ext <<_ACEOF
32533 /* end confdefs.h.  */
32534 #include <math.h>
32535 int
32536 main ()
32537 {
32538  _ldexpf(0, 0);
32539   ;
32540   return 0;
32541 }
32542 _ACEOF
32543 rm -f conftest.$ac_objext
32544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32545   (eval $ac_compile) 2>&5
32546   ac_status=$?
32547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548   (exit $ac_status); } &&
32549          { ac_try='test -s conftest.$ac_objext'
32550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32551   (eval $ac_try) 2>&5
32552   ac_status=$?
32553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554   (exit $ac_status); }; }; then
32555   glibcxx_cv_func__ldexpf_use=yes
32556 else
32557   echo "$as_me: failed program was:" >&5
32558 sed 's/^/| /' conftest.$ac_ext >&5
32559
32560 glibcxx_cv_func__ldexpf_use=no
32561 fi
32562 rm -f conftest.$ac_objext conftest.$ac_ext
32563       ac_ext=c
32564 ac_cpp='$CPP $CPPFLAGS'
32565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32568
32569
32570 fi
32571
32572   fi
32573   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpf_use" >&5
32574 echo "${ECHO_T}$glibcxx_cv_func__ldexpf_use" >&6
32575
32576     if test x$glibcxx_cv_func__ldexpf_use = x"yes"; then
32577
32578 for ac_func in _ldexpf
32579 do
32580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32581 echo "$as_me:$LINENO: checking for $ac_func" >&5
32582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32583 if eval "test \"\${$as_ac_var+set}\" = set"; then
32584   echo $ECHO_N "(cached) $ECHO_C" >&6
32585 else
32586   cat >conftest.$ac_ext <<_ACEOF
32587 #line $LINENO "configure"
32588 /* confdefs.h.  */
32589 _ACEOF
32590 cat confdefs.h >>conftest.$ac_ext
32591 cat >>conftest.$ac_ext <<_ACEOF
32592 /* end confdefs.h.  */
32593 /* System header to define __stub macros and hopefully few prototypes,
32594     which can conflict with char $ac_func (); below.
32595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32596     <limits.h> exists even on freestanding compilers.  */
32597 #ifdef __STDC__
32598 # include <limits.h>
32599 #else
32600 # include <assert.h>
32601 #endif
32602 /* Override any gcc2 internal prototype to avoid an error.  */
32603 #ifdef __cplusplus
32604 extern "C"
32605 {
32606 #endif
32607 /* We use char because int might match the return type of a gcc2
32608    builtin and then its argument prototype would still apply.  */
32609 char $ac_func ();
32610 /* The GNU C library defines this for functions which it implements
32611     to always fail with ENOSYS.  Some functions are actually named
32612     something starting with __ and the normal name is an alias.  */
32613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32614 choke me
32615 #else
32616 char (*f) () = $ac_func;
32617 #endif
32618 #ifdef __cplusplus
32619 }
32620 #endif
32621
32622 int
32623 main ()
32624 {
32625 return f != $ac_func;
32626   ;
32627   return 0;
32628 }
32629 _ACEOF
32630 rm -f conftest.$ac_objext conftest$ac_exeext
32631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32632   (eval $ac_link) 2>&5
32633   ac_status=$?
32634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635   (exit $ac_status); } &&
32636          { ac_try='test -s conftest$ac_exeext'
32637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32638   (eval $ac_try) 2>&5
32639   ac_status=$?
32640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32641   (exit $ac_status); }; }; then
32642   eval "$as_ac_var=yes"
32643 else
32644   echo "$as_me: failed program was:" >&5
32645 sed 's/^/| /' conftest.$ac_ext >&5
32646
32647 eval "$as_ac_var=no"
32648 fi
32649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32650 fi
32651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32653 if test `eval echo '${'$as_ac_var'}'` = yes; then
32654   cat >>confdefs.h <<_ACEOF
32655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32656 _ACEOF
32657
32658 fi
32659 done
32660
32661     fi
32662   fi
32663
32664
32665
32666   echo "$as_me:$LINENO: checking for logf declaration" >&5
32667 echo $ECHO_N "checking for logf declaration... $ECHO_C" >&6
32668   if test x${glibcxx_cv_func_logf_use+set} != xset; then
32669     if test "${glibcxx_cv_func_logf_use+set}" = set; then
32670   echo $ECHO_N "(cached) $ECHO_C" >&6
32671 else
32672
32673
32674
32675       ac_ext=cc
32676 ac_cpp='$CXXCPP $CPPFLAGS'
32677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32680
32681       cat >conftest.$ac_ext <<_ACEOF
32682 #line $LINENO "configure"
32683 /* confdefs.h.  */
32684 _ACEOF
32685 cat confdefs.h >>conftest.$ac_ext
32686 cat >>conftest.$ac_ext <<_ACEOF
32687 /* end confdefs.h.  */
32688 #include <math.h>
32689                       #ifdef HAVE_IEEEFP_H
32690                       #include <ieeefp.h>
32691                       #endif
32692
32693 int
32694 main ()
32695 {
32696  logf(0);
32697   ;
32698   return 0;
32699 }
32700 _ACEOF
32701 rm -f conftest.$ac_objext
32702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32703   (eval $ac_compile) 2>&5
32704   ac_status=$?
32705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706   (exit $ac_status); } &&
32707          { ac_try='test -s conftest.$ac_objext'
32708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32709   (eval $ac_try) 2>&5
32710   ac_status=$?
32711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712   (exit $ac_status); }; }; then
32713   glibcxx_cv_func_logf_use=yes
32714 else
32715   echo "$as_me: failed program was:" >&5
32716 sed 's/^/| /' conftest.$ac_ext >&5
32717
32718 glibcxx_cv_func_logf_use=no
32719 fi
32720 rm -f conftest.$ac_objext conftest.$ac_ext
32721       ac_ext=c
32722 ac_cpp='$CPP $CPPFLAGS'
32723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32726
32727
32728 fi
32729
32730   fi
32731   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logf_use" >&5
32732 echo "${ECHO_T}$glibcxx_cv_func_logf_use" >&6
32733
32734   if test x$glibcxx_cv_func_logf_use = x"yes"; then
32735
32736 for ac_func in logf
32737 do
32738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32739 echo "$as_me:$LINENO: checking for $ac_func" >&5
32740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32741 if eval "test \"\${$as_ac_var+set}\" = set"; then
32742   echo $ECHO_N "(cached) $ECHO_C" >&6
32743 else
32744   cat >conftest.$ac_ext <<_ACEOF
32745 #line $LINENO "configure"
32746 /* confdefs.h.  */
32747 _ACEOF
32748 cat confdefs.h >>conftest.$ac_ext
32749 cat >>conftest.$ac_ext <<_ACEOF
32750 /* end confdefs.h.  */
32751 /* System header to define __stub macros and hopefully few prototypes,
32752     which can conflict with char $ac_func (); below.
32753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32754     <limits.h> exists even on freestanding compilers.  */
32755 #ifdef __STDC__
32756 # include <limits.h>
32757 #else
32758 # include <assert.h>
32759 #endif
32760 /* Override any gcc2 internal prototype to avoid an error.  */
32761 #ifdef __cplusplus
32762 extern "C"
32763 {
32764 #endif
32765 /* We use char because int might match the return type of a gcc2
32766    builtin and then its argument prototype would still apply.  */
32767 char $ac_func ();
32768 /* The GNU C library defines this for functions which it implements
32769     to always fail with ENOSYS.  Some functions are actually named
32770     something starting with __ and the normal name is an alias.  */
32771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32772 choke me
32773 #else
32774 char (*f) () = $ac_func;
32775 #endif
32776 #ifdef __cplusplus
32777 }
32778 #endif
32779
32780 int
32781 main ()
32782 {
32783 return f != $ac_func;
32784   ;
32785   return 0;
32786 }
32787 _ACEOF
32788 rm -f conftest.$ac_objext conftest$ac_exeext
32789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32790   (eval $ac_link) 2>&5
32791   ac_status=$?
32792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32793   (exit $ac_status); } &&
32794          { ac_try='test -s conftest$ac_exeext'
32795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32796   (eval $ac_try) 2>&5
32797   ac_status=$?
32798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799   (exit $ac_status); }; }; then
32800   eval "$as_ac_var=yes"
32801 else
32802   echo "$as_me: failed program was:" >&5
32803 sed 's/^/| /' conftest.$ac_ext >&5
32804
32805 eval "$as_ac_var=no"
32806 fi
32807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32808 fi
32809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32811 if test `eval echo '${'$as_ac_var'}'` = yes; then
32812   cat >>confdefs.h <<_ACEOF
32813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32814 _ACEOF
32815
32816 fi
32817 done
32818
32819   else
32820
32821   echo "$as_me:$LINENO: checking for _logf declaration" >&5
32822 echo $ECHO_N "checking for _logf declaration... $ECHO_C" >&6
32823   if test x${glibcxx_cv_func__logf_use+set} != xset; then
32824     if test "${glibcxx_cv_func__logf_use+set}" = set; then
32825   echo $ECHO_N "(cached) $ECHO_C" >&6
32826 else
32827
32828
32829
32830       ac_ext=cc
32831 ac_cpp='$CXXCPP $CPPFLAGS'
32832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32835
32836       cat >conftest.$ac_ext <<_ACEOF
32837 #line $LINENO "configure"
32838 /* confdefs.h.  */
32839 _ACEOF
32840 cat confdefs.h >>conftest.$ac_ext
32841 cat >>conftest.$ac_ext <<_ACEOF
32842 /* end confdefs.h.  */
32843 #include <math.h>
32844                       #ifdef HAVE_IEEEFP_H
32845                       #include <ieeefp.h>
32846                       #endif
32847
32848 int
32849 main ()
32850 {
32851  _logf(0);
32852   ;
32853   return 0;
32854 }
32855 _ACEOF
32856 rm -f conftest.$ac_objext
32857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32858   (eval $ac_compile) 2>&5
32859   ac_status=$?
32860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861   (exit $ac_status); } &&
32862          { ac_try='test -s conftest.$ac_objext'
32863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32864   (eval $ac_try) 2>&5
32865   ac_status=$?
32866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867   (exit $ac_status); }; }; then
32868   glibcxx_cv_func__logf_use=yes
32869 else
32870   echo "$as_me: failed program was:" >&5
32871 sed 's/^/| /' conftest.$ac_ext >&5
32872
32873 glibcxx_cv_func__logf_use=no
32874 fi
32875 rm -f conftest.$ac_objext conftest.$ac_ext
32876       ac_ext=c
32877 ac_cpp='$CPP $CPPFLAGS'
32878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32881
32882
32883 fi
32884
32885   fi
32886   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logf_use" >&5
32887 echo "${ECHO_T}$glibcxx_cv_func__logf_use" >&6
32888
32889     if test x$glibcxx_cv_func__logf_use = x"yes"; then
32890
32891 for ac_func in _logf
32892 do
32893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32894 echo "$as_me:$LINENO: checking for $ac_func" >&5
32895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32896 if eval "test \"\${$as_ac_var+set}\" = set"; then
32897   echo $ECHO_N "(cached) $ECHO_C" >&6
32898 else
32899   cat >conftest.$ac_ext <<_ACEOF
32900 #line $LINENO "configure"
32901 /* confdefs.h.  */
32902 _ACEOF
32903 cat confdefs.h >>conftest.$ac_ext
32904 cat >>conftest.$ac_ext <<_ACEOF
32905 /* end confdefs.h.  */
32906 /* System header to define __stub macros and hopefully few prototypes,
32907     which can conflict with char $ac_func (); below.
32908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32909     <limits.h> exists even on freestanding compilers.  */
32910 #ifdef __STDC__
32911 # include <limits.h>
32912 #else
32913 # include <assert.h>
32914 #endif
32915 /* Override any gcc2 internal prototype to avoid an error.  */
32916 #ifdef __cplusplus
32917 extern "C"
32918 {
32919 #endif
32920 /* We use char because int might match the return type of a gcc2
32921    builtin and then its argument prototype would still apply.  */
32922 char $ac_func ();
32923 /* The GNU C library defines this for functions which it implements
32924     to always fail with ENOSYS.  Some functions are actually named
32925     something starting with __ and the normal name is an alias.  */
32926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32927 choke me
32928 #else
32929 char (*f) () = $ac_func;
32930 #endif
32931 #ifdef __cplusplus
32932 }
32933 #endif
32934
32935 int
32936 main ()
32937 {
32938 return f != $ac_func;
32939   ;
32940   return 0;
32941 }
32942 _ACEOF
32943 rm -f conftest.$ac_objext conftest$ac_exeext
32944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32945   (eval $ac_link) 2>&5
32946   ac_status=$?
32947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948   (exit $ac_status); } &&
32949          { ac_try='test -s conftest$ac_exeext'
32950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32951   (eval $ac_try) 2>&5
32952   ac_status=$?
32953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954   (exit $ac_status); }; }; then
32955   eval "$as_ac_var=yes"
32956 else
32957   echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32959
32960 eval "$as_ac_var=no"
32961 fi
32962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32963 fi
32964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32965 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32966 if test `eval echo '${'$as_ac_var'}'` = yes; then
32967   cat >>confdefs.h <<_ACEOF
32968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32969 _ACEOF
32970
32971 fi
32972 done
32973
32974     fi
32975   fi
32976
32977
32978
32979   echo "$as_me:$LINENO: checking for log10f declaration" >&5
32980 echo $ECHO_N "checking for log10f declaration... $ECHO_C" >&6
32981   if test x${glibcxx_cv_func_log10f_use+set} != xset; then
32982     if test "${glibcxx_cv_func_log10f_use+set}" = set; then
32983   echo $ECHO_N "(cached) $ECHO_C" >&6
32984 else
32985
32986
32987
32988       ac_ext=cc
32989 ac_cpp='$CXXCPP $CPPFLAGS'
32990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32993
32994       cat >conftest.$ac_ext <<_ACEOF
32995 #line $LINENO "configure"
32996 /* confdefs.h.  */
32997 _ACEOF
32998 cat confdefs.h >>conftest.$ac_ext
32999 cat >>conftest.$ac_ext <<_ACEOF
33000 /* end confdefs.h.  */
33001 #include <math.h>
33002                       #ifdef HAVE_IEEEFP_H
33003                       #include <ieeefp.h>
33004                       #endif
33005
33006 int
33007 main ()
33008 {
33009  log10f(0);
33010   ;
33011   return 0;
33012 }
33013 _ACEOF
33014 rm -f conftest.$ac_objext
33015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33016   (eval $ac_compile) 2>&5
33017   ac_status=$?
33018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019   (exit $ac_status); } &&
33020          { ac_try='test -s conftest.$ac_objext'
33021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33022   (eval $ac_try) 2>&5
33023   ac_status=$?
33024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025   (exit $ac_status); }; }; then
33026   glibcxx_cv_func_log10f_use=yes
33027 else
33028   echo "$as_me: failed program was:" >&5
33029 sed 's/^/| /' conftest.$ac_ext >&5
33030
33031 glibcxx_cv_func_log10f_use=no
33032 fi
33033 rm -f conftest.$ac_objext conftest.$ac_ext
33034       ac_ext=c
33035 ac_cpp='$CPP $CPPFLAGS'
33036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33039
33040
33041 fi
33042
33043   fi
33044   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10f_use" >&5
33045 echo "${ECHO_T}$glibcxx_cv_func_log10f_use" >&6
33046
33047   if test x$glibcxx_cv_func_log10f_use = x"yes"; then
33048
33049 for ac_func in log10f
33050 do
33051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33052 echo "$as_me:$LINENO: checking for $ac_func" >&5
33053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33054 if eval "test \"\${$as_ac_var+set}\" = set"; then
33055   echo $ECHO_N "(cached) $ECHO_C" >&6
33056 else
33057   cat >conftest.$ac_ext <<_ACEOF
33058 #line $LINENO "configure"
33059 /* confdefs.h.  */
33060 _ACEOF
33061 cat confdefs.h >>conftest.$ac_ext
33062 cat >>conftest.$ac_ext <<_ACEOF
33063 /* end confdefs.h.  */
33064 /* System header to define __stub macros and hopefully few prototypes,
33065     which can conflict with char $ac_func (); below.
33066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33067     <limits.h> exists even on freestanding compilers.  */
33068 #ifdef __STDC__
33069 # include <limits.h>
33070 #else
33071 # include <assert.h>
33072 #endif
33073 /* Override any gcc2 internal prototype to avoid an error.  */
33074 #ifdef __cplusplus
33075 extern "C"
33076 {
33077 #endif
33078 /* We use char because int might match the return type of a gcc2
33079    builtin and then its argument prototype would still apply.  */
33080 char $ac_func ();
33081 /* The GNU C library defines this for functions which it implements
33082     to always fail with ENOSYS.  Some functions are actually named
33083     something starting with __ and the normal name is an alias.  */
33084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33085 choke me
33086 #else
33087 char (*f) () = $ac_func;
33088 #endif
33089 #ifdef __cplusplus
33090 }
33091 #endif
33092
33093 int
33094 main ()
33095 {
33096 return f != $ac_func;
33097   ;
33098   return 0;
33099 }
33100 _ACEOF
33101 rm -f conftest.$ac_objext conftest$ac_exeext
33102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33103   (eval $ac_link) 2>&5
33104   ac_status=$?
33105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106   (exit $ac_status); } &&
33107          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
33113   eval "$as_ac_var=yes"
33114 else
33115   echo "$as_me: failed program was:" >&5
33116 sed 's/^/| /' conftest.$ac_ext >&5
33117
33118 eval "$as_ac_var=no"
33119 fi
33120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33121 fi
33122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33124 if test `eval echo '${'$as_ac_var'}'` = yes; then
33125   cat >>confdefs.h <<_ACEOF
33126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33127 _ACEOF
33128
33129 fi
33130 done
33131
33132   else
33133
33134   echo "$as_me:$LINENO: checking for _log10f declaration" >&5
33135 echo $ECHO_N "checking for _log10f declaration... $ECHO_C" >&6
33136   if test x${glibcxx_cv_func__log10f_use+set} != xset; then
33137     if test "${glibcxx_cv_func__log10f_use+set}" = set; then
33138   echo $ECHO_N "(cached) $ECHO_C" >&6
33139 else
33140
33141
33142
33143       ac_ext=cc
33144 ac_cpp='$CXXCPP $CPPFLAGS'
33145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33148
33149       cat >conftest.$ac_ext <<_ACEOF
33150 #line $LINENO "configure"
33151 /* confdefs.h.  */
33152 _ACEOF
33153 cat confdefs.h >>conftest.$ac_ext
33154 cat >>conftest.$ac_ext <<_ACEOF
33155 /* end confdefs.h.  */
33156 #include <math.h>
33157                       #ifdef HAVE_IEEEFP_H
33158                       #include <ieeefp.h>
33159                       #endif
33160
33161 int
33162 main ()
33163 {
33164  _log10f(0);
33165   ;
33166   return 0;
33167 }
33168 _ACEOF
33169 rm -f conftest.$ac_objext
33170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33171   (eval $ac_compile) 2>&5
33172   ac_status=$?
33173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174   (exit $ac_status); } &&
33175          { ac_try='test -s conftest.$ac_objext'
33176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33177   (eval $ac_try) 2>&5
33178   ac_status=$?
33179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180   (exit $ac_status); }; }; then
33181   glibcxx_cv_func__log10f_use=yes
33182 else
33183   echo "$as_me: failed program was:" >&5
33184 sed 's/^/| /' conftest.$ac_ext >&5
33185
33186 glibcxx_cv_func__log10f_use=no
33187 fi
33188 rm -f conftest.$ac_objext conftest.$ac_ext
33189       ac_ext=c
33190 ac_cpp='$CPP $CPPFLAGS'
33191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33194
33195
33196 fi
33197
33198   fi
33199   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10f_use" >&5
33200 echo "${ECHO_T}$glibcxx_cv_func__log10f_use" >&6
33201
33202     if test x$glibcxx_cv_func__log10f_use = x"yes"; then
33203
33204 for ac_func in _log10f
33205 do
33206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33207 echo "$as_me:$LINENO: checking for $ac_func" >&5
33208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33209 if eval "test \"\${$as_ac_var+set}\" = set"; then
33210   echo $ECHO_N "(cached) $ECHO_C" >&6
33211 else
33212   cat >conftest.$ac_ext <<_ACEOF
33213 #line $LINENO "configure"
33214 /* confdefs.h.  */
33215 _ACEOF
33216 cat confdefs.h >>conftest.$ac_ext
33217 cat >>conftest.$ac_ext <<_ACEOF
33218 /* end confdefs.h.  */
33219 /* System header to define __stub macros and hopefully few prototypes,
33220     which can conflict with char $ac_func (); below.
33221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33222     <limits.h> exists even on freestanding compilers.  */
33223 #ifdef __STDC__
33224 # include <limits.h>
33225 #else
33226 # include <assert.h>
33227 #endif
33228 /* Override any gcc2 internal prototype to avoid an error.  */
33229 #ifdef __cplusplus
33230 extern "C"
33231 {
33232 #endif
33233 /* We use char because int might match the return type of a gcc2
33234    builtin and then its argument prototype would still apply.  */
33235 char $ac_func ();
33236 /* The GNU C library defines this for functions which it implements
33237     to always fail with ENOSYS.  Some functions are actually named
33238     something starting with __ and the normal name is an alias.  */
33239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33240 choke me
33241 #else
33242 char (*f) () = $ac_func;
33243 #endif
33244 #ifdef __cplusplus
33245 }
33246 #endif
33247
33248 int
33249 main ()
33250 {
33251 return f != $ac_func;
33252   ;
33253   return 0;
33254 }
33255 _ACEOF
33256 rm -f conftest.$ac_objext conftest$ac_exeext
33257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33258   (eval $ac_link) 2>&5
33259   ac_status=$?
33260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261   (exit $ac_status); } &&
33262          { ac_try='test -s conftest$ac_exeext'
33263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33264   (eval $ac_try) 2>&5
33265   ac_status=$?
33266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267   (exit $ac_status); }; }; then
33268   eval "$as_ac_var=yes"
33269 else
33270   echo "$as_me: failed program was:" >&5
33271 sed 's/^/| /' conftest.$ac_ext >&5
33272
33273 eval "$as_ac_var=no"
33274 fi
33275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33276 fi
33277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33279 if test `eval echo '${'$as_ac_var'}'` = yes; then
33280   cat >>confdefs.h <<_ACEOF
33281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33282 _ACEOF
33283
33284 fi
33285 done
33286
33287     fi
33288   fi
33289
33290
33291
33292   echo "$as_me:$LINENO: checking for modff declaration" >&5
33293 echo $ECHO_N "checking for modff declaration... $ECHO_C" >&6
33294   if test x${glibcxx_cv_func_modff_use+set} != xset; then
33295     if test "${glibcxx_cv_func_modff_use+set}" = set; then
33296   echo $ECHO_N "(cached) $ECHO_C" >&6
33297 else
33298
33299
33300
33301       ac_ext=cc
33302 ac_cpp='$CXXCPP $CPPFLAGS'
33303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33306
33307       cat >conftest.$ac_ext <<_ACEOF
33308 #line $LINENO "configure"
33309 /* confdefs.h.  */
33310 _ACEOF
33311 cat confdefs.h >>conftest.$ac_ext
33312 cat >>conftest.$ac_ext <<_ACEOF
33313 /* end confdefs.h.  */
33314 #include <math.h>
33315 int
33316 main ()
33317 {
33318  modff(0, 0);
33319   ;
33320   return 0;
33321 }
33322 _ACEOF
33323 rm -f conftest.$ac_objext
33324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33325   (eval $ac_compile) 2>&5
33326   ac_status=$?
33327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33328   (exit $ac_status); } &&
33329          { ac_try='test -s conftest.$ac_objext'
33330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33331   (eval $ac_try) 2>&5
33332   ac_status=$?
33333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334   (exit $ac_status); }; }; then
33335   glibcxx_cv_func_modff_use=yes
33336 else
33337   echo "$as_me: failed program was:" >&5
33338 sed 's/^/| /' conftest.$ac_ext >&5
33339
33340 glibcxx_cv_func_modff_use=no
33341 fi
33342 rm -f conftest.$ac_objext conftest.$ac_ext
33343       ac_ext=c
33344 ac_cpp='$CPP $CPPFLAGS'
33345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33348
33349
33350 fi
33351
33352   fi
33353   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modff_use" >&5
33354 echo "${ECHO_T}$glibcxx_cv_func_modff_use" >&6
33355
33356   if test x$glibcxx_cv_func_modff_use = x"yes"; then
33357
33358 for ac_func in modff
33359 do
33360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33361 echo "$as_me:$LINENO: checking for $ac_func" >&5
33362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33363 if eval "test \"\${$as_ac_var+set}\" = set"; then
33364   echo $ECHO_N "(cached) $ECHO_C" >&6
33365 else
33366   cat >conftest.$ac_ext <<_ACEOF
33367 #line $LINENO "configure"
33368 /* confdefs.h.  */
33369 _ACEOF
33370 cat confdefs.h >>conftest.$ac_ext
33371 cat >>conftest.$ac_ext <<_ACEOF
33372 /* end confdefs.h.  */
33373 /* System header to define __stub macros and hopefully few prototypes,
33374     which can conflict with char $ac_func (); below.
33375     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33376     <limits.h> exists even on freestanding compilers.  */
33377 #ifdef __STDC__
33378 # include <limits.h>
33379 #else
33380 # include <assert.h>
33381 #endif
33382 /* Override any gcc2 internal prototype to avoid an error.  */
33383 #ifdef __cplusplus
33384 extern "C"
33385 {
33386 #endif
33387 /* We use char because int might match the return type of a gcc2
33388    builtin and then its argument prototype would still apply.  */
33389 char $ac_func ();
33390 /* The GNU C library defines this for functions which it implements
33391     to always fail with ENOSYS.  Some functions are actually named
33392     something starting with __ and the normal name is an alias.  */
33393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33394 choke me
33395 #else
33396 char (*f) () = $ac_func;
33397 #endif
33398 #ifdef __cplusplus
33399 }
33400 #endif
33401
33402 int
33403 main ()
33404 {
33405 return f != $ac_func;
33406   ;
33407   return 0;
33408 }
33409 _ACEOF
33410 rm -f conftest.$ac_objext conftest$ac_exeext
33411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33412   (eval $ac_link) 2>&5
33413   ac_status=$?
33414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415   (exit $ac_status); } &&
33416          { ac_try='test -s conftest$ac_exeext'
33417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33418   (eval $ac_try) 2>&5
33419   ac_status=$?
33420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33421   (exit $ac_status); }; }; then
33422   eval "$as_ac_var=yes"
33423 else
33424   echo "$as_me: failed program was:" >&5
33425 sed 's/^/| /' conftest.$ac_ext >&5
33426
33427 eval "$as_ac_var=no"
33428 fi
33429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33430 fi
33431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33433 if test `eval echo '${'$as_ac_var'}'` = yes; then
33434   cat >>confdefs.h <<_ACEOF
33435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33436 _ACEOF
33437
33438 fi
33439 done
33440
33441   else
33442
33443   echo "$as_me:$LINENO: checking for _modff declaration" >&5
33444 echo $ECHO_N "checking for _modff declaration... $ECHO_C" >&6
33445   if test x${glibcxx_cv_func__modff_use+set} != xset; then
33446     if test "${glibcxx_cv_func__modff_use+set}" = set; then
33447   echo $ECHO_N "(cached) $ECHO_C" >&6
33448 else
33449
33450
33451
33452       ac_ext=cc
33453 ac_cpp='$CXXCPP $CPPFLAGS'
33454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33457
33458       cat >conftest.$ac_ext <<_ACEOF
33459 #line $LINENO "configure"
33460 /* confdefs.h.  */
33461 _ACEOF
33462 cat confdefs.h >>conftest.$ac_ext
33463 cat >>conftest.$ac_ext <<_ACEOF
33464 /* end confdefs.h.  */
33465 #include <math.h>
33466 int
33467 main ()
33468 {
33469  _modff(0, 0);
33470   ;
33471   return 0;
33472 }
33473 _ACEOF
33474 rm -f conftest.$ac_objext
33475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33476   (eval $ac_compile) 2>&5
33477   ac_status=$?
33478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479   (exit $ac_status); } &&
33480          { ac_try='test -s conftest.$ac_objext'
33481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33482   (eval $ac_try) 2>&5
33483   ac_status=$?
33484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33485   (exit $ac_status); }; }; then
33486   glibcxx_cv_func__modff_use=yes
33487 else
33488   echo "$as_me: failed program was:" >&5
33489 sed 's/^/| /' conftest.$ac_ext >&5
33490
33491 glibcxx_cv_func__modff_use=no
33492 fi
33493 rm -f conftest.$ac_objext conftest.$ac_ext
33494       ac_ext=c
33495 ac_cpp='$CPP $CPPFLAGS'
33496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33499
33500
33501 fi
33502
33503   fi
33504   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modff_use" >&5
33505 echo "${ECHO_T}$glibcxx_cv_func__modff_use" >&6
33506
33507     if test x$glibcxx_cv_func__modff_use = x"yes"; then
33508
33509 for ac_func in _modff
33510 do
33511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33512 echo "$as_me:$LINENO: checking for $ac_func" >&5
33513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33514 if eval "test \"\${$as_ac_var+set}\" = set"; then
33515   echo $ECHO_N "(cached) $ECHO_C" >&6
33516 else
33517   cat >conftest.$ac_ext <<_ACEOF
33518 #line $LINENO "configure"
33519 /* confdefs.h.  */
33520 _ACEOF
33521 cat confdefs.h >>conftest.$ac_ext
33522 cat >>conftest.$ac_ext <<_ACEOF
33523 /* end confdefs.h.  */
33524 /* System header to define __stub macros and hopefully few prototypes,
33525     which can conflict with char $ac_func (); below.
33526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33527     <limits.h> exists even on freestanding compilers.  */
33528 #ifdef __STDC__
33529 # include <limits.h>
33530 #else
33531 # include <assert.h>
33532 #endif
33533 /* Override any gcc2 internal prototype to avoid an error.  */
33534 #ifdef __cplusplus
33535 extern "C"
33536 {
33537 #endif
33538 /* We use char because int might match the return type of a gcc2
33539    builtin and then its argument prototype would still apply.  */
33540 char $ac_func ();
33541 /* The GNU C library defines this for functions which it implements
33542     to always fail with ENOSYS.  Some functions are actually named
33543     something starting with __ and the normal name is an alias.  */
33544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33545 choke me
33546 #else
33547 char (*f) () = $ac_func;
33548 #endif
33549 #ifdef __cplusplus
33550 }
33551 #endif
33552
33553 int
33554 main ()
33555 {
33556 return f != $ac_func;
33557   ;
33558   return 0;
33559 }
33560 _ACEOF
33561 rm -f conftest.$ac_objext conftest$ac_exeext
33562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33563   (eval $ac_link) 2>&5
33564   ac_status=$?
33565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566   (exit $ac_status); } &&
33567          { ac_try='test -s conftest$ac_exeext'
33568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33569   (eval $ac_try) 2>&5
33570   ac_status=$?
33571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572   (exit $ac_status); }; }; then
33573   eval "$as_ac_var=yes"
33574 else
33575   echo "$as_me: failed program was:" >&5
33576 sed 's/^/| /' conftest.$ac_ext >&5
33577
33578 eval "$as_ac_var=no"
33579 fi
33580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33581 fi
33582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33584 if test `eval echo '${'$as_ac_var'}'` = yes; then
33585   cat >>confdefs.h <<_ACEOF
33586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33587 _ACEOF
33588
33589 fi
33590 done
33591
33592     fi
33593   fi
33594
33595
33596
33597   echo "$as_me:$LINENO: checking for powf declaration" >&5
33598 echo $ECHO_N "checking for powf declaration... $ECHO_C" >&6
33599   if test x${glibcxx_cv_func_powf_use+set} != xset; then
33600     if test "${glibcxx_cv_func_powf_use+set}" = set; then
33601   echo $ECHO_N "(cached) $ECHO_C" >&6
33602 else
33603
33604
33605
33606       ac_ext=cc
33607 ac_cpp='$CXXCPP $CPPFLAGS'
33608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33611
33612       cat >conftest.$ac_ext <<_ACEOF
33613 #line $LINENO "configure"
33614 /* confdefs.h.  */
33615 _ACEOF
33616 cat confdefs.h >>conftest.$ac_ext
33617 cat >>conftest.$ac_ext <<_ACEOF
33618 /* end confdefs.h.  */
33619 #include <math.h>
33620 int
33621 main ()
33622 {
33623  powf(0, 0);
33624   ;
33625   return 0;
33626 }
33627 _ACEOF
33628 rm -f conftest.$ac_objext
33629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33630   (eval $ac_compile) 2>&5
33631   ac_status=$?
33632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633   (exit $ac_status); } &&
33634          { ac_try='test -s conftest.$ac_objext'
33635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33636   (eval $ac_try) 2>&5
33637   ac_status=$?
33638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639   (exit $ac_status); }; }; then
33640   glibcxx_cv_func_powf_use=yes
33641 else
33642   echo "$as_me: failed program was:" >&5
33643 sed 's/^/| /' conftest.$ac_ext >&5
33644
33645 glibcxx_cv_func_powf_use=no
33646 fi
33647 rm -f conftest.$ac_objext conftest.$ac_ext
33648       ac_ext=c
33649 ac_cpp='$CPP $CPPFLAGS'
33650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33653
33654
33655 fi
33656
33657   fi
33658   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powf_use" >&5
33659 echo "${ECHO_T}$glibcxx_cv_func_powf_use" >&6
33660
33661   if test x$glibcxx_cv_func_powf_use = x"yes"; then
33662
33663 for ac_func in powf
33664 do
33665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33666 echo "$as_me:$LINENO: checking for $ac_func" >&5
33667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33668 if eval "test \"\${$as_ac_var+set}\" = set"; then
33669   echo $ECHO_N "(cached) $ECHO_C" >&6
33670 else
33671   cat >conftest.$ac_ext <<_ACEOF
33672 #line $LINENO "configure"
33673 /* confdefs.h.  */
33674 _ACEOF
33675 cat confdefs.h >>conftest.$ac_ext
33676 cat >>conftest.$ac_ext <<_ACEOF
33677 /* end confdefs.h.  */
33678 /* System header to define __stub macros and hopefully few prototypes,
33679     which can conflict with char $ac_func (); below.
33680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33681     <limits.h> exists even on freestanding compilers.  */
33682 #ifdef __STDC__
33683 # include <limits.h>
33684 #else
33685 # include <assert.h>
33686 #endif
33687 /* Override any gcc2 internal prototype to avoid an error.  */
33688 #ifdef __cplusplus
33689 extern "C"
33690 {
33691 #endif
33692 /* We use char because int might match the return type of a gcc2
33693    builtin and then its argument prototype would still apply.  */
33694 char $ac_func ();
33695 /* The GNU C library defines this for functions which it implements
33696     to always fail with ENOSYS.  Some functions are actually named
33697     something starting with __ and the normal name is an alias.  */
33698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33699 choke me
33700 #else
33701 char (*f) () = $ac_func;
33702 #endif
33703 #ifdef __cplusplus
33704 }
33705 #endif
33706
33707 int
33708 main ()
33709 {
33710 return f != $ac_func;
33711   ;
33712   return 0;
33713 }
33714 _ACEOF
33715 rm -f conftest.$ac_objext conftest$ac_exeext
33716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33717   (eval $ac_link) 2>&5
33718   ac_status=$?
33719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720   (exit $ac_status); } &&
33721          { ac_try='test -s conftest$ac_exeext'
33722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33723   (eval $ac_try) 2>&5
33724   ac_status=$?
33725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726   (exit $ac_status); }; }; then
33727   eval "$as_ac_var=yes"
33728 else
33729   echo "$as_me: failed program was:" >&5
33730 sed 's/^/| /' conftest.$ac_ext >&5
33731
33732 eval "$as_ac_var=no"
33733 fi
33734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33735 fi
33736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33738 if test `eval echo '${'$as_ac_var'}'` = yes; then
33739   cat >>confdefs.h <<_ACEOF
33740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33741 _ACEOF
33742
33743 fi
33744 done
33745
33746   else
33747
33748   echo "$as_me:$LINENO: checking for _powf declaration" >&5
33749 echo $ECHO_N "checking for _powf declaration... $ECHO_C" >&6
33750   if test x${glibcxx_cv_func__powf_use+set} != xset; then
33751     if test "${glibcxx_cv_func__powf_use+set}" = set; then
33752   echo $ECHO_N "(cached) $ECHO_C" >&6
33753 else
33754
33755
33756
33757       ac_ext=cc
33758 ac_cpp='$CXXCPP $CPPFLAGS'
33759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33762
33763       cat >conftest.$ac_ext <<_ACEOF
33764 #line $LINENO "configure"
33765 /* confdefs.h.  */
33766 _ACEOF
33767 cat confdefs.h >>conftest.$ac_ext
33768 cat >>conftest.$ac_ext <<_ACEOF
33769 /* end confdefs.h.  */
33770 #include <math.h>
33771 int
33772 main ()
33773 {
33774  _powf(0, 0);
33775   ;
33776   return 0;
33777 }
33778 _ACEOF
33779 rm -f conftest.$ac_objext
33780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33781   (eval $ac_compile) 2>&5
33782   ac_status=$?
33783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784   (exit $ac_status); } &&
33785          { ac_try='test -s conftest.$ac_objext'
33786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33787   (eval $ac_try) 2>&5
33788   ac_status=$?
33789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790   (exit $ac_status); }; }; then
33791   glibcxx_cv_func__powf_use=yes
33792 else
33793   echo "$as_me: failed program was:" >&5
33794 sed 's/^/| /' conftest.$ac_ext >&5
33795
33796 glibcxx_cv_func__powf_use=no
33797 fi
33798 rm -f conftest.$ac_objext conftest.$ac_ext
33799       ac_ext=c
33800 ac_cpp='$CPP $CPPFLAGS'
33801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33804
33805
33806 fi
33807
33808   fi
33809   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powf_use" >&5
33810 echo "${ECHO_T}$glibcxx_cv_func__powf_use" >&6
33811
33812     if test x$glibcxx_cv_func__powf_use = x"yes"; then
33813
33814 for ac_func in _powf
33815 do
33816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33817 echo "$as_me:$LINENO: checking for $ac_func" >&5
33818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33819 if eval "test \"\${$as_ac_var+set}\" = set"; then
33820   echo $ECHO_N "(cached) $ECHO_C" >&6
33821 else
33822   cat >conftest.$ac_ext <<_ACEOF
33823 #line $LINENO "configure"
33824 /* confdefs.h.  */
33825 _ACEOF
33826 cat confdefs.h >>conftest.$ac_ext
33827 cat >>conftest.$ac_ext <<_ACEOF
33828 /* end confdefs.h.  */
33829 /* System header to define __stub macros and hopefully few prototypes,
33830     which can conflict with char $ac_func (); below.
33831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33832     <limits.h> exists even on freestanding compilers.  */
33833 #ifdef __STDC__
33834 # include <limits.h>
33835 #else
33836 # include <assert.h>
33837 #endif
33838 /* Override any gcc2 internal prototype to avoid an error.  */
33839 #ifdef __cplusplus
33840 extern "C"
33841 {
33842 #endif
33843 /* We use char because int might match the return type of a gcc2
33844    builtin and then its argument prototype would still apply.  */
33845 char $ac_func ();
33846 /* The GNU C library defines this for functions which it implements
33847     to always fail with ENOSYS.  Some functions are actually named
33848     something starting with __ and the normal name is an alias.  */
33849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33850 choke me
33851 #else
33852 char (*f) () = $ac_func;
33853 #endif
33854 #ifdef __cplusplus
33855 }
33856 #endif
33857
33858 int
33859 main ()
33860 {
33861 return f != $ac_func;
33862   ;
33863   return 0;
33864 }
33865 _ACEOF
33866 rm -f conftest.$ac_objext conftest$ac_exeext
33867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33868   (eval $ac_link) 2>&5
33869   ac_status=$?
33870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33871   (exit $ac_status); } &&
33872          { ac_try='test -s conftest$ac_exeext'
33873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33874   (eval $ac_try) 2>&5
33875   ac_status=$?
33876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33877   (exit $ac_status); }; }; then
33878   eval "$as_ac_var=yes"
33879 else
33880   echo "$as_me: failed program was:" >&5
33881 sed 's/^/| /' conftest.$ac_ext >&5
33882
33883 eval "$as_ac_var=no"
33884 fi
33885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33886 fi
33887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33888 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33889 if test `eval echo '${'$as_ac_var'}'` = yes; then
33890   cat >>confdefs.h <<_ACEOF
33891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33892 _ACEOF
33893
33894 fi
33895 done
33896
33897     fi
33898   fi
33899
33900
33901
33902   echo "$as_me:$LINENO: checking for sqrtf declaration" >&5
33903 echo $ECHO_N "checking for sqrtf declaration... $ECHO_C" >&6
33904   if test x${glibcxx_cv_func_sqrtf_use+set} != xset; then
33905     if test "${glibcxx_cv_func_sqrtf_use+set}" = set; then
33906   echo $ECHO_N "(cached) $ECHO_C" >&6
33907 else
33908
33909
33910
33911       ac_ext=cc
33912 ac_cpp='$CXXCPP $CPPFLAGS'
33913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33916
33917       cat >conftest.$ac_ext <<_ACEOF
33918 #line $LINENO "configure"
33919 /* confdefs.h.  */
33920 _ACEOF
33921 cat confdefs.h >>conftest.$ac_ext
33922 cat >>conftest.$ac_ext <<_ACEOF
33923 /* end confdefs.h.  */
33924 #include <math.h>
33925                       #ifdef HAVE_IEEEFP_H
33926                       #include <ieeefp.h>
33927                       #endif
33928
33929 int
33930 main ()
33931 {
33932  sqrtf(0);
33933   ;
33934   return 0;
33935 }
33936 _ACEOF
33937 rm -f conftest.$ac_objext
33938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33939   (eval $ac_compile) 2>&5
33940   ac_status=$?
33941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33942   (exit $ac_status); } &&
33943          { ac_try='test -s conftest.$ac_objext'
33944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33945   (eval $ac_try) 2>&5
33946   ac_status=$?
33947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948   (exit $ac_status); }; }; then
33949   glibcxx_cv_func_sqrtf_use=yes
33950 else
33951   echo "$as_me: failed program was:" >&5
33952 sed 's/^/| /' conftest.$ac_ext >&5
33953
33954 glibcxx_cv_func_sqrtf_use=no
33955 fi
33956 rm -f conftest.$ac_objext conftest.$ac_ext
33957       ac_ext=c
33958 ac_cpp='$CPP $CPPFLAGS'
33959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33962
33963
33964 fi
33965
33966   fi
33967   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtf_use" >&5
33968 echo "${ECHO_T}$glibcxx_cv_func_sqrtf_use" >&6
33969
33970   if test x$glibcxx_cv_func_sqrtf_use = x"yes"; then
33971
33972 for ac_func in sqrtf
33973 do
33974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33975 echo "$as_me:$LINENO: checking for $ac_func" >&5
33976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33977 if eval "test \"\${$as_ac_var+set}\" = set"; then
33978   echo $ECHO_N "(cached) $ECHO_C" >&6
33979 else
33980   cat >conftest.$ac_ext <<_ACEOF
33981 #line $LINENO "configure"
33982 /* confdefs.h.  */
33983 _ACEOF
33984 cat confdefs.h >>conftest.$ac_ext
33985 cat >>conftest.$ac_ext <<_ACEOF
33986 /* end confdefs.h.  */
33987 /* System header to define __stub macros and hopefully few prototypes,
33988     which can conflict with char $ac_func (); below.
33989     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33990     <limits.h> exists even on freestanding compilers.  */
33991 #ifdef __STDC__
33992 # include <limits.h>
33993 #else
33994 # include <assert.h>
33995 #endif
33996 /* Override any gcc2 internal prototype to avoid an error.  */
33997 #ifdef __cplusplus
33998 extern "C"
33999 {
34000 #endif
34001 /* We use char because int might match the return type of a gcc2
34002    builtin and then its argument prototype would still apply.  */
34003 char $ac_func ();
34004 /* The GNU C library defines this for functions which it implements
34005     to always fail with ENOSYS.  Some functions are actually named
34006     something starting with __ and the normal name is an alias.  */
34007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34008 choke me
34009 #else
34010 char (*f) () = $ac_func;
34011 #endif
34012 #ifdef __cplusplus
34013 }
34014 #endif
34015
34016 int
34017 main ()
34018 {
34019 return f != $ac_func;
34020   ;
34021   return 0;
34022 }
34023 _ACEOF
34024 rm -f conftest.$ac_objext conftest$ac_exeext
34025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34026   (eval $ac_link) 2>&5
34027   ac_status=$?
34028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029   (exit $ac_status); } &&
34030          { ac_try='test -s conftest$ac_exeext'
34031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34032   (eval $ac_try) 2>&5
34033   ac_status=$?
34034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035   (exit $ac_status); }; }; then
34036   eval "$as_ac_var=yes"
34037 else
34038   echo "$as_me: failed program was:" >&5
34039 sed 's/^/| /' conftest.$ac_ext >&5
34040
34041 eval "$as_ac_var=no"
34042 fi
34043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34044 fi
34045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34046 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34047 if test `eval echo '${'$as_ac_var'}'` = yes; then
34048   cat >>confdefs.h <<_ACEOF
34049 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34050 _ACEOF
34051
34052 fi
34053 done
34054
34055   else
34056
34057   echo "$as_me:$LINENO: checking for _sqrtf declaration" >&5
34058 echo $ECHO_N "checking for _sqrtf declaration... $ECHO_C" >&6
34059   if test x${glibcxx_cv_func__sqrtf_use+set} != xset; then
34060     if test "${glibcxx_cv_func__sqrtf_use+set}" = set; then
34061   echo $ECHO_N "(cached) $ECHO_C" >&6
34062 else
34063
34064
34065
34066       ac_ext=cc
34067 ac_cpp='$CXXCPP $CPPFLAGS'
34068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34071
34072       cat >conftest.$ac_ext <<_ACEOF
34073 #line $LINENO "configure"
34074 /* confdefs.h.  */
34075 _ACEOF
34076 cat confdefs.h >>conftest.$ac_ext
34077 cat >>conftest.$ac_ext <<_ACEOF
34078 /* end confdefs.h.  */
34079 #include <math.h>
34080                       #ifdef HAVE_IEEEFP_H
34081                       #include <ieeefp.h>
34082                       #endif
34083
34084 int
34085 main ()
34086 {
34087  _sqrtf(0);
34088   ;
34089   return 0;
34090 }
34091 _ACEOF
34092 rm -f conftest.$ac_objext
34093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34094   (eval $ac_compile) 2>&5
34095   ac_status=$?
34096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097   (exit $ac_status); } &&
34098          { ac_try='test -s conftest.$ac_objext'
34099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34100   (eval $ac_try) 2>&5
34101   ac_status=$?
34102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103   (exit $ac_status); }; }; then
34104   glibcxx_cv_func__sqrtf_use=yes
34105 else
34106   echo "$as_me: failed program was:" >&5
34107 sed 's/^/| /' conftest.$ac_ext >&5
34108
34109 glibcxx_cv_func__sqrtf_use=no
34110 fi
34111 rm -f conftest.$ac_objext conftest.$ac_ext
34112       ac_ext=c
34113 ac_cpp='$CPP $CPPFLAGS'
34114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34117
34118
34119 fi
34120
34121   fi
34122   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtf_use" >&5
34123 echo "${ECHO_T}$glibcxx_cv_func__sqrtf_use" >&6
34124
34125     if test x$glibcxx_cv_func__sqrtf_use = x"yes"; then
34126
34127 for ac_func in _sqrtf
34128 do
34129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34130 echo "$as_me:$LINENO: checking for $ac_func" >&5
34131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34132 if eval "test \"\${$as_ac_var+set}\" = set"; then
34133   echo $ECHO_N "(cached) $ECHO_C" >&6
34134 else
34135   cat >conftest.$ac_ext <<_ACEOF
34136 #line $LINENO "configure"
34137 /* confdefs.h.  */
34138 _ACEOF
34139 cat confdefs.h >>conftest.$ac_ext
34140 cat >>conftest.$ac_ext <<_ACEOF
34141 /* end confdefs.h.  */
34142 /* System header to define __stub macros and hopefully few prototypes,
34143     which can conflict with char $ac_func (); below.
34144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34145     <limits.h> exists even on freestanding compilers.  */
34146 #ifdef __STDC__
34147 # include <limits.h>
34148 #else
34149 # include <assert.h>
34150 #endif
34151 /* Override any gcc2 internal prototype to avoid an error.  */
34152 #ifdef __cplusplus
34153 extern "C"
34154 {
34155 #endif
34156 /* We use char because int might match the return type of a gcc2
34157    builtin and then its argument prototype would still apply.  */
34158 char $ac_func ();
34159 /* The GNU C library defines this for functions which it implements
34160     to always fail with ENOSYS.  Some functions are actually named
34161     something starting with __ and the normal name is an alias.  */
34162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34163 choke me
34164 #else
34165 char (*f) () = $ac_func;
34166 #endif
34167 #ifdef __cplusplus
34168 }
34169 #endif
34170
34171 int
34172 main ()
34173 {
34174 return f != $ac_func;
34175   ;
34176   return 0;
34177 }
34178 _ACEOF
34179 rm -f conftest.$ac_objext conftest$ac_exeext
34180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34181   (eval $ac_link) 2>&5
34182   ac_status=$?
34183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184   (exit $ac_status); } &&
34185          { ac_try='test -s conftest$ac_exeext'
34186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34187   (eval $ac_try) 2>&5
34188   ac_status=$?
34189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190   (exit $ac_status); }; }; then
34191   eval "$as_ac_var=yes"
34192 else
34193   echo "$as_me: failed program was:" >&5
34194 sed 's/^/| /' conftest.$ac_ext >&5
34195
34196 eval "$as_ac_var=no"
34197 fi
34198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34199 fi
34200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34202 if test `eval echo '${'$as_ac_var'}'` = yes; then
34203   cat >>confdefs.h <<_ACEOF
34204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34205 _ACEOF
34206
34207 fi
34208 done
34209
34210     fi
34211   fi
34212
34213
34214
34215   echo "$as_me:$LINENO: checking for sincosf declaration" >&5
34216 echo $ECHO_N "checking for sincosf declaration... $ECHO_C" >&6
34217   if test x${glibcxx_cv_func_sincosf_use+set} != xset; then
34218     if test "${glibcxx_cv_func_sincosf_use+set}" = set; then
34219   echo $ECHO_N "(cached) $ECHO_C" >&6
34220 else
34221
34222
34223
34224       ac_ext=cc
34225 ac_cpp='$CXXCPP $CPPFLAGS'
34226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34229
34230       cat >conftest.$ac_ext <<_ACEOF
34231 #line $LINENO "configure"
34232 /* confdefs.h.  */
34233 _ACEOF
34234 cat confdefs.h >>conftest.$ac_ext
34235 cat >>conftest.$ac_ext <<_ACEOF
34236 /* end confdefs.h.  */
34237 #include <math.h>
34238 int
34239 main ()
34240 {
34241  sincosf(0, 0, 0);
34242   ;
34243   return 0;
34244 }
34245 _ACEOF
34246 rm -f conftest.$ac_objext
34247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34248   (eval $ac_compile) 2>&5
34249   ac_status=$?
34250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34251   (exit $ac_status); } &&
34252          { ac_try='test -s conftest.$ac_objext'
34253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34254   (eval $ac_try) 2>&5
34255   ac_status=$?
34256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257   (exit $ac_status); }; }; then
34258   glibcxx_cv_func_sincosf_use=yes
34259 else
34260   echo "$as_me: failed program was:" >&5
34261 sed 's/^/| /' conftest.$ac_ext >&5
34262
34263 glibcxx_cv_func_sincosf_use=no
34264 fi
34265 rm -f conftest.$ac_objext conftest.$ac_ext
34266       ac_ext=c
34267 ac_cpp='$CPP $CPPFLAGS'
34268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34271
34272
34273 fi
34274
34275   fi
34276   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosf_use" >&5
34277 echo "${ECHO_T}$glibcxx_cv_func_sincosf_use" >&6
34278
34279   if test x$glibcxx_cv_func_sincosf_use = x"yes"; then
34280
34281 for ac_func in sincosf
34282 do
34283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34284 echo "$as_me:$LINENO: checking for $ac_func" >&5
34285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34286 if eval "test \"\${$as_ac_var+set}\" = set"; then
34287   echo $ECHO_N "(cached) $ECHO_C" >&6
34288 else
34289   cat >conftest.$ac_ext <<_ACEOF
34290 #line $LINENO "configure"
34291 /* confdefs.h.  */
34292 _ACEOF
34293 cat confdefs.h >>conftest.$ac_ext
34294 cat >>conftest.$ac_ext <<_ACEOF
34295 /* end confdefs.h.  */
34296 /* System header to define __stub macros and hopefully few prototypes,
34297     which can conflict with char $ac_func (); below.
34298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34299     <limits.h> exists even on freestanding compilers.  */
34300 #ifdef __STDC__
34301 # include <limits.h>
34302 #else
34303 # include <assert.h>
34304 #endif
34305 /* Override any gcc2 internal prototype to avoid an error.  */
34306 #ifdef __cplusplus
34307 extern "C"
34308 {
34309 #endif
34310 /* We use char because int might match the return type of a gcc2
34311    builtin and then its argument prototype would still apply.  */
34312 char $ac_func ();
34313 /* The GNU C library defines this for functions which it implements
34314     to always fail with ENOSYS.  Some functions are actually named
34315     something starting with __ and the normal name is an alias.  */
34316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34317 choke me
34318 #else
34319 char (*f) () = $ac_func;
34320 #endif
34321 #ifdef __cplusplus
34322 }
34323 #endif
34324
34325 int
34326 main ()
34327 {
34328 return f != $ac_func;
34329   ;
34330   return 0;
34331 }
34332 _ACEOF
34333 rm -f conftest.$ac_objext conftest$ac_exeext
34334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34335   (eval $ac_link) 2>&5
34336   ac_status=$?
34337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34338   (exit $ac_status); } &&
34339          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
34345   eval "$as_ac_var=yes"
34346 else
34347   echo "$as_me: failed program was:" >&5
34348 sed 's/^/| /' conftest.$ac_ext >&5
34349
34350 eval "$as_ac_var=no"
34351 fi
34352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34353 fi
34354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34355 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34356 if test `eval echo '${'$as_ac_var'}'` = yes; then
34357   cat >>confdefs.h <<_ACEOF
34358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34359 _ACEOF
34360
34361 fi
34362 done
34363
34364   else
34365
34366   echo "$as_me:$LINENO: checking for _sincosf declaration" >&5
34367 echo $ECHO_N "checking for _sincosf declaration... $ECHO_C" >&6
34368   if test x${glibcxx_cv_func__sincosf_use+set} != xset; then
34369     if test "${glibcxx_cv_func__sincosf_use+set}" = set; then
34370   echo $ECHO_N "(cached) $ECHO_C" >&6
34371 else
34372
34373
34374
34375       ac_ext=cc
34376 ac_cpp='$CXXCPP $CPPFLAGS'
34377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34380
34381       cat >conftest.$ac_ext <<_ACEOF
34382 #line $LINENO "configure"
34383 /* confdefs.h.  */
34384 _ACEOF
34385 cat confdefs.h >>conftest.$ac_ext
34386 cat >>conftest.$ac_ext <<_ACEOF
34387 /* end confdefs.h.  */
34388 #include <math.h>
34389 int
34390 main ()
34391 {
34392  _sincosf(0, 0, 0);
34393   ;
34394   return 0;
34395 }
34396 _ACEOF
34397 rm -f conftest.$ac_objext
34398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34399   (eval $ac_compile) 2>&5
34400   ac_status=$?
34401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34402   (exit $ac_status); } &&
34403          { ac_try='test -s conftest.$ac_objext'
34404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34405   (eval $ac_try) 2>&5
34406   ac_status=$?
34407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34408   (exit $ac_status); }; }; then
34409   glibcxx_cv_func__sincosf_use=yes
34410 else
34411   echo "$as_me: failed program was:" >&5
34412 sed 's/^/| /' conftest.$ac_ext >&5
34413
34414 glibcxx_cv_func__sincosf_use=no
34415 fi
34416 rm -f conftest.$ac_objext conftest.$ac_ext
34417       ac_ext=c
34418 ac_cpp='$CPP $CPPFLAGS'
34419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34422
34423
34424 fi
34425
34426   fi
34427   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosf_use" >&5
34428 echo "${ECHO_T}$glibcxx_cv_func__sincosf_use" >&6
34429
34430     if test x$glibcxx_cv_func__sincosf_use = x"yes"; then
34431
34432 for ac_func in _sincosf
34433 do
34434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34435 echo "$as_me:$LINENO: checking for $ac_func" >&5
34436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34437 if eval "test \"\${$as_ac_var+set}\" = set"; then
34438   echo $ECHO_N "(cached) $ECHO_C" >&6
34439 else
34440   cat >conftest.$ac_ext <<_ACEOF
34441 #line $LINENO "configure"
34442 /* confdefs.h.  */
34443 _ACEOF
34444 cat confdefs.h >>conftest.$ac_ext
34445 cat >>conftest.$ac_ext <<_ACEOF
34446 /* end confdefs.h.  */
34447 /* System header to define __stub macros and hopefully few prototypes,
34448     which can conflict with char $ac_func (); below.
34449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34450     <limits.h> exists even on freestanding compilers.  */
34451 #ifdef __STDC__
34452 # include <limits.h>
34453 #else
34454 # include <assert.h>
34455 #endif
34456 /* Override any gcc2 internal prototype to avoid an error.  */
34457 #ifdef __cplusplus
34458 extern "C"
34459 {
34460 #endif
34461 /* We use char because int might match the return type of a gcc2
34462    builtin and then its argument prototype would still apply.  */
34463 char $ac_func ();
34464 /* The GNU C library defines this for functions which it implements
34465     to always fail with ENOSYS.  Some functions are actually named
34466     something starting with __ and the normal name is an alias.  */
34467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34468 choke me
34469 #else
34470 char (*f) () = $ac_func;
34471 #endif
34472 #ifdef __cplusplus
34473 }
34474 #endif
34475
34476 int
34477 main ()
34478 {
34479 return f != $ac_func;
34480   ;
34481   return 0;
34482 }
34483 _ACEOF
34484 rm -f conftest.$ac_objext conftest$ac_exeext
34485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34486   (eval $ac_link) 2>&5
34487   ac_status=$?
34488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34489   (exit $ac_status); } &&
34490          { ac_try='test -s conftest$ac_exeext'
34491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34492   (eval $ac_try) 2>&5
34493   ac_status=$?
34494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34495   (exit $ac_status); }; }; then
34496   eval "$as_ac_var=yes"
34497 else
34498   echo "$as_me: failed program was:" >&5
34499 sed 's/^/| /' conftest.$ac_ext >&5
34500
34501 eval "$as_ac_var=no"
34502 fi
34503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34504 fi
34505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34507 if test `eval echo '${'$as_ac_var'}'` = yes; then
34508   cat >>confdefs.h <<_ACEOF
34509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34510 _ACEOF
34511
34512 fi
34513 done
34514
34515     fi
34516   fi
34517
34518
34519
34520   echo "$as_me:$LINENO: checking for finitef declaration" >&5
34521 echo $ECHO_N "checking for finitef declaration... $ECHO_C" >&6
34522   if test x${glibcxx_cv_func_finitef_use+set} != xset; then
34523     if test "${glibcxx_cv_func_finitef_use+set}" = set; then
34524   echo $ECHO_N "(cached) $ECHO_C" >&6
34525 else
34526
34527
34528
34529       ac_ext=cc
34530 ac_cpp='$CXXCPP $CPPFLAGS'
34531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34534
34535       cat >conftest.$ac_ext <<_ACEOF
34536 #line $LINENO "configure"
34537 /* confdefs.h.  */
34538 _ACEOF
34539 cat confdefs.h >>conftest.$ac_ext
34540 cat >>conftest.$ac_ext <<_ACEOF
34541 /* end confdefs.h.  */
34542 #include <math.h>
34543                       #ifdef HAVE_IEEEFP_H
34544                       #include <ieeefp.h>
34545                       #endif
34546
34547 int
34548 main ()
34549 {
34550  finitef(0);
34551   ;
34552   return 0;
34553 }
34554 _ACEOF
34555 rm -f conftest.$ac_objext
34556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34557   (eval $ac_compile) 2>&5
34558   ac_status=$?
34559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560   (exit $ac_status); } &&
34561          { ac_try='test -s conftest.$ac_objext'
34562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34563   (eval $ac_try) 2>&5
34564   ac_status=$?
34565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566   (exit $ac_status); }; }; then
34567   glibcxx_cv_func_finitef_use=yes
34568 else
34569   echo "$as_me: failed program was:" >&5
34570 sed 's/^/| /' conftest.$ac_ext >&5
34571
34572 glibcxx_cv_func_finitef_use=no
34573 fi
34574 rm -f conftest.$ac_objext conftest.$ac_ext
34575       ac_ext=c
34576 ac_cpp='$CPP $CPPFLAGS'
34577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34580
34581
34582 fi
34583
34584   fi
34585   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitef_use" >&5
34586 echo "${ECHO_T}$glibcxx_cv_func_finitef_use" >&6
34587
34588   if test x$glibcxx_cv_func_finitef_use = x"yes"; then
34589
34590 for ac_func in finitef
34591 do
34592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34593 echo "$as_me:$LINENO: checking for $ac_func" >&5
34594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34595 if eval "test \"\${$as_ac_var+set}\" = set"; then
34596   echo $ECHO_N "(cached) $ECHO_C" >&6
34597 else
34598   cat >conftest.$ac_ext <<_ACEOF
34599 #line $LINENO "configure"
34600 /* confdefs.h.  */
34601 _ACEOF
34602 cat confdefs.h >>conftest.$ac_ext
34603 cat >>conftest.$ac_ext <<_ACEOF
34604 /* end confdefs.h.  */
34605 /* System header to define __stub macros and hopefully few prototypes,
34606     which can conflict with char $ac_func (); below.
34607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34608     <limits.h> exists even on freestanding compilers.  */
34609 #ifdef __STDC__
34610 # include <limits.h>
34611 #else
34612 # include <assert.h>
34613 #endif
34614 /* Override any gcc2 internal prototype to avoid an error.  */
34615 #ifdef __cplusplus
34616 extern "C"
34617 {
34618 #endif
34619 /* We use char because int might match the return type of a gcc2
34620    builtin and then its argument prototype would still apply.  */
34621 char $ac_func ();
34622 /* The GNU C library defines this for functions which it implements
34623     to always fail with ENOSYS.  Some functions are actually named
34624     something starting with __ and the normal name is an alias.  */
34625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34626 choke me
34627 #else
34628 char (*f) () = $ac_func;
34629 #endif
34630 #ifdef __cplusplus
34631 }
34632 #endif
34633
34634 int
34635 main ()
34636 {
34637 return f != $ac_func;
34638   ;
34639   return 0;
34640 }
34641 _ACEOF
34642 rm -f conftest.$ac_objext conftest$ac_exeext
34643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34644   (eval $ac_link) 2>&5
34645   ac_status=$?
34646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647   (exit $ac_status); } &&
34648          { ac_try='test -s conftest$ac_exeext'
34649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34650   (eval $ac_try) 2>&5
34651   ac_status=$?
34652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34653   (exit $ac_status); }; }; then
34654   eval "$as_ac_var=yes"
34655 else
34656   echo "$as_me: failed program was:" >&5
34657 sed 's/^/| /' conftest.$ac_ext >&5
34658
34659 eval "$as_ac_var=no"
34660 fi
34661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34662 fi
34663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34665 if test `eval echo '${'$as_ac_var'}'` = yes; then
34666   cat >>confdefs.h <<_ACEOF
34667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34668 _ACEOF
34669
34670 fi
34671 done
34672
34673   else
34674
34675   echo "$as_me:$LINENO: checking for _finitef declaration" >&5
34676 echo $ECHO_N "checking for _finitef declaration... $ECHO_C" >&6
34677   if test x${glibcxx_cv_func__finitef_use+set} != xset; then
34678     if test "${glibcxx_cv_func__finitef_use+set}" = set; then
34679   echo $ECHO_N "(cached) $ECHO_C" >&6
34680 else
34681
34682
34683
34684       ac_ext=cc
34685 ac_cpp='$CXXCPP $CPPFLAGS'
34686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34689
34690       cat >conftest.$ac_ext <<_ACEOF
34691 #line $LINENO "configure"
34692 /* confdefs.h.  */
34693 _ACEOF
34694 cat confdefs.h >>conftest.$ac_ext
34695 cat >>conftest.$ac_ext <<_ACEOF
34696 /* end confdefs.h.  */
34697 #include <math.h>
34698                       #ifdef HAVE_IEEEFP_H
34699                       #include <ieeefp.h>
34700                       #endif
34701
34702 int
34703 main ()
34704 {
34705  _finitef(0);
34706   ;
34707   return 0;
34708 }
34709 _ACEOF
34710 rm -f conftest.$ac_objext
34711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34712   (eval $ac_compile) 2>&5
34713   ac_status=$?
34714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715   (exit $ac_status); } &&
34716          { ac_try='test -s conftest.$ac_objext'
34717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34718   (eval $ac_try) 2>&5
34719   ac_status=$?
34720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34721   (exit $ac_status); }; }; then
34722   glibcxx_cv_func__finitef_use=yes
34723 else
34724   echo "$as_me: failed program was:" >&5
34725 sed 's/^/| /' conftest.$ac_ext >&5
34726
34727 glibcxx_cv_func__finitef_use=no
34728 fi
34729 rm -f conftest.$ac_objext conftest.$ac_ext
34730       ac_ext=c
34731 ac_cpp='$CPP $CPPFLAGS'
34732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34735
34736
34737 fi
34738
34739   fi
34740   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitef_use" >&5
34741 echo "${ECHO_T}$glibcxx_cv_func__finitef_use" >&6
34742
34743     if test x$glibcxx_cv_func__finitef_use = x"yes"; then
34744
34745 for ac_func in _finitef
34746 do
34747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34748 echo "$as_me:$LINENO: checking for $ac_func" >&5
34749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34750 if eval "test \"\${$as_ac_var+set}\" = set"; then
34751   echo $ECHO_N "(cached) $ECHO_C" >&6
34752 else
34753   cat >conftest.$ac_ext <<_ACEOF
34754 #line $LINENO "configure"
34755 /* confdefs.h.  */
34756 _ACEOF
34757 cat confdefs.h >>conftest.$ac_ext
34758 cat >>conftest.$ac_ext <<_ACEOF
34759 /* end confdefs.h.  */
34760 /* System header to define __stub macros and hopefully few prototypes,
34761     which can conflict with char $ac_func (); below.
34762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34763     <limits.h> exists even on freestanding compilers.  */
34764 #ifdef __STDC__
34765 # include <limits.h>
34766 #else
34767 # include <assert.h>
34768 #endif
34769 /* Override any gcc2 internal prototype to avoid an error.  */
34770 #ifdef __cplusplus
34771 extern "C"
34772 {
34773 #endif
34774 /* We use char because int might match the return type of a gcc2
34775    builtin and then its argument prototype would still apply.  */
34776 char $ac_func ();
34777 /* The GNU C library defines this for functions which it implements
34778     to always fail with ENOSYS.  Some functions are actually named
34779     something starting with __ and the normal name is an alias.  */
34780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34781 choke me
34782 #else
34783 char (*f) () = $ac_func;
34784 #endif
34785 #ifdef __cplusplus
34786 }
34787 #endif
34788
34789 int
34790 main ()
34791 {
34792 return f != $ac_func;
34793   ;
34794   return 0;
34795 }
34796 _ACEOF
34797 rm -f conftest.$ac_objext conftest$ac_exeext
34798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34799   (eval $ac_link) 2>&5
34800   ac_status=$?
34801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802   (exit $ac_status); } &&
34803          { ac_try='test -s conftest$ac_exeext'
34804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34805   (eval $ac_try) 2>&5
34806   ac_status=$?
34807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808   (exit $ac_status); }; }; then
34809   eval "$as_ac_var=yes"
34810 else
34811   echo "$as_me: failed program was:" >&5
34812 sed 's/^/| /' conftest.$ac_ext >&5
34813
34814 eval "$as_ac_var=no"
34815 fi
34816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34817 fi
34818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34819 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34820 if test `eval echo '${'$as_ac_var'}'` = yes; then
34821   cat >>confdefs.h <<_ACEOF
34822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34823 _ACEOF
34824
34825 fi
34826 done
34827
34828     fi
34829   fi
34830
34831
34832
34833   echo "$as_me:$LINENO: checking for long double trig functions" >&5
34834 echo $ECHO_N "checking for long double trig functions... $ECHO_C" >&6
34835   if test "${glibcxx_cv_func_long_double_trig_use+set}" = set; then
34836   echo $ECHO_N "(cached) $ECHO_C" >&6
34837 else
34838
34839
34840
34841     ac_ext=cc
34842 ac_cpp='$CXXCPP $CPPFLAGS'
34843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34846
34847     cat >conftest.$ac_ext <<_ACEOF
34848 #line $LINENO "configure"
34849 /* confdefs.h.  */
34850 _ACEOF
34851 cat confdefs.h >>conftest.$ac_ext
34852 cat >>conftest.$ac_ext <<_ACEOF
34853 /* end confdefs.h.  */
34854 #include <math.h>
34855 int
34856 main ()
34857 {
34858  `for x in acosl asinl atanl \
34859                                           cosl sinl tanl \
34860                                           coshl sinhl tanhl; do echo "$x (0);"; done`
34861   ;
34862   return 0;
34863 }
34864 _ACEOF
34865 rm -f conftest.$ac_objext
34866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34867   (eval $ac_compile) 2>&5
34868   ac_status=$?
34869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870   (exit $ac_status); } &&
34871          { ac_try='test -s conftest.$ac_objext'
34872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34873   (eval $ac_try) 2>&5
34874   ac_status=$?
34875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34876   (exit $ac_status); }; }; then
34877   glibcxx_cv_func_long_double_trig_use=yes
34878 else
34879   echo "$as_me: failed program was:" >&5
34880 sed 's/^/| /' conftest.$ac_ext >&5
34881
34882 glibcxx_cv_func_long_double_trig_use=no
34883 fi
34884 rm -f conftest.$ac_objext conftest.$ac_ext
34885     ac_ext=c
34886 ac_cpp='$CPP $CPPFLAGS'
34887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34890
34891 fi
34892
34893   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_trig_use" >&5
34894 echo "${ECHO_T}$glibcxx_cv_func_long_double_trig_use" >&6
34895   if test x$glibcxx_cv_func_long_double_trig_use = x"yes"; then
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905 for ac_func in acosl asinl atanl \
34906                                           cosl sinl tanl \
34907                                           coshl sinhl tanhl
34908 do
34909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34910 echo "$as_me:$LINENO: checking for $ac_func" >&5
34911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34912 if eval "test \"\${$as_ac_var+set}\" = set"; then
34913   echo $ECHO_N "(cached) $ECHO_C" >&6
34914 else
34915   cat >conftest.$ac_ext <<_ACEOF
34916 #line $LINENO "configure"
34917 /* confdefs.h.  */
34918 _ACEOF
34919 cat confdefs.h >>conftest.$ac_ext
34920 cat >>conftest.$ac_ext <<_ACEOF
34921 /* end confdefs.h.  */
34922 /* System header to define __stub macros and hopefully few prototypes,
34923     which can conflict with char $ac_func (); below.
34924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34925     <limits.h> exists even on freestanding compilers.  */
34926 #ifdef __STDC__
34927 # include <limits.h>
34928 #else
34929 # include <assert.h>
34930 #endif
34931 /* Override any gcc2 internal prototype to avoid an error.  */
34932 #ifdef __cplusplus
34933 extern "C"
34934 {
34935 #endif
34936 /* We use char because int might match the return type of a gcc2
34937    builtin and then its argument prototype would still apply.  */
34938 char $ac_func ();
34939 /* The GNU C library defines this for functions which it implements
34940     to always fail with ENOSYS.  Some functions are actually named
34941     something starting with __ and the normal name is an alias.  */
34942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34943 choke me
34944 #else
34945 char (*f) () = $ac_func;
34946 #endif
34947 #ifdef __cplusplus
34948 }
34949 #endif
34950
34951 int
34952 main ()
34953 {
34954 return f != $ac_func;
34955   ;
34956   return 0;
34957 }
34958 _ACEOF
34959 rm -f conftest.$ac_objext conftest$ac_exeext
34960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34961   (eval $ac_link) 2>&5
34962   ac_status=$?
34963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34964   (exit $ac_status); } &&
34965          { ac_try='test -s conftest$ac_exeext'
34966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34967   (eval $ac_try) 2>&5
34968   ac_status=$?
34969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34970   (exit $ac_status); }; }; then
34971   eval "$as_ac_var=yes"
34972 else
34973   echo "$as_me: failed program was:" >&5
34974 sed 's/^/| /' conftest.$ac_ext >&5
34975
34976 eval "$as_ac_var=no"
34977 fi
34978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
34979 fi
34980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34982 if test `eval echo '${'$as_ac_var'}'` = yes; then
34983   cat >>confdefs.h <<_ACEOF
34984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34985 _ACEOF
34986
34987 fi
34988 done
34989
34990   fi
34991
34992
34993   echo "$as_me:$LINENO: checking for long double round functions" >&5
34994 echo $ECHO_N "checking for long double round functions... $ECHO_C" >&6
34995   if test "${glibcxx_cv_func_long_double_round_use+set}" = set; then
34996   echo $ECHO_N "(cached) $ECHO_C" >&6
34997 else
34998
34999
35000
35001     ac_ext=cc
35002 ac_cpp='$CXXCPP $CPPFLAGS'
35003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35006
35007     cat >conftest.$ac_ext <<_ACEOF
35008 #line $LINENO "configure"
35009 /* confdefs.h.  */
35010 _ACEOF
35011 cat confdefs.h >>conftest.$ac_ext
35012 cat >>conftest.$ac_ext <<_ACEOF
35013 /* end confdefs.h.  */
35014 #include <math.h>
35015 int
35016 main ()
35017 {
35018  `for x in ceill floorl; do echo "$x (0);"; done`
35019   ;
35020   return 0;
35021 }
35022 _ACEOF
35023 rm -f conftest.$ac_objext
35024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35025   (eval $ac_compile) 2>&5
35026   ac_status=$?
35027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35028   (exit $ac_status); } &&
35029          { ac_try='test -s conftest.$ac_objext'
35030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35031   (eval $ac_try) 2>&5
35032   ac_status=$?
35033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35034   (exit $ac_status); }; }; then
35035   glibcxx_cv_func_long_double_round_use=yes
35036 else
35037   echo "$as_me: failed program was:" >&5
35038 sed 's/^/| /' conftest.$ac_ext >&5
35039
35040 glibcxx_cv_func_long_double_round_use=no
35041 fi
35042 rm -f conftest.$ac_objext conftest.$ac_ext
35043     ac_ext=c
35044 ac_cpp='$CPP $CPPFLAGS'
35045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35048
35049 fi
35050
35051   echo "$as_me:$LINENO: result: $glibcxx_cv_func_long_double_round_use" >&5
35052 echo "${ECHO_T}$glibcxx_cv_func_long_double_round_use" >&6
35053   if test x$glibcxx_cv_func_long_double_round_use = x"yes"; then
35054
35055
35056 for ac_func in ceill floorl
35057 do
35058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35059 echo "$as_me:$LINENO: checking for $ac_func" >&5
35060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35061 if eval "test \"\${$as_ac_var+set}\" = set"; then
35062   echo $ECHO_N "(cached) $ECHO_C" >&6
35063 else
35064   cat >conftest.$ac_ext <<_ACEOF
35065 #line $LINENO "configure"
35066 /* confdefs.h.  */
35067 _ACEOF
35068 cat confdefs.h >>conftest.$ac_ext
35069 cat >>conftest.$ac_ext <<_ACEOF
35070 /* end confdefs.h.  */
35071 /* System header to define __stub macros and hopefully few prototypes,
35072     which can conflict with char $ac_func (); below.
35073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35074     <limits.h> exists even on freestanding compilers.  */
35075 #ifdef __STDC__
35076 # include <limits.h>
35077 #else
35078 # include <assert.h>
35079 #endif
35080 /* Override any gcc2 internal prototype to avoid an error.  */
35081 #ifdef __cplusplus
35082 extern "C"
35083 {
35084 #endif
35085 /* We use char because int might match the return type of a gcc2
35086    builtin and then its argument prototype would still apply.  */
35087 char $ac_func ();
35088 /* The GNU C library defines this for functions which it implements
35089     to always fail with ENOSYS.  Some functions are actually named
35090     something starting with __ and the normal name is an alias.  */
35091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35092 choke me
35093 #else
35094 char (*f) () = $ac_func;
35095 #endif
35096 #ifdef __cplusplus
35097 }
35098 #endif
35099
35100 int
35101 main ()
35102 {
35103 return f != $ac_func;
35104   ;
35105   return 0;
35106 }
35107 _ACEOF
35108 rm -f conftest.$ac_objext conftest$ac_exeext
35109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35110   (eval $ac_link) 2>&5
35111   ac_status=$?
35112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35113   (exit $ac_status); } &&
35114          { ac_try='test -s conftest$ac_exeext'
35115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35116   (eval $ac_try) 2>&5
35117   ac_status=$?
35118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35119   (exit $ac_status); }; }; then
35120   eval "$as_ac_var=yes"
35121 else
35122   echo "$as_me: failed program was:" >&5
35123 sed 's/^/| /' conftest.$ac_ext >&5
35124
35125 eval "$as_ac_var=no"
35126 fi
35127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35128 fi
35129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35131 if test `eval echo '${'$as_ac_var'}'` = yes; then
35132   cat >>confdefs.h <<_ACEOF
35133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35134 _ACEOF
35135
35136 fi
35137 done
35138
35139   fi
35140
35141
35142
35143   echo "$as_me:$LINENO: checking for isnanl declaration" >&5
35144 echo $ECHO_N "checking for isnanl declaration... $ECHO_C" >&6
35145   if test x${glibcxx_cv_func_isnanl_use+set} != xset; then
35146     if test "${glibcxx_cv_func_isnanl_use+set}" = set; then
35147   echo $ECHO_N "(cached) $ECHO_C" >&6
35148 else
35149
35150
35151
35152       ac_ext=cc
35153 ac_cpp='$CXXCPP $CPPFLAGS'
35154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35157
35158       cat >conftest.$ac_ext <<_ACEOF
35159 #line $LINENO "configure"
35160 /* confdefs.h.  */
35161 _ACEOF
35162 cat confdefs.h >>conftest.$ac_ext
35163 cat >>conftest.$ac_ext <<_ACEOF
35164 /* end confdefs.h.  */
35165 #include <math.h>
35166                       #ifdef HAVE_IEEEFP_H
35167                       #include <ieeefp.h>
35168                       #endif
35169
35170 int
35171 main ()
35172 {
35173  isnanl(0);
35174   ;
35175   return 0;
35176 }
35177 _ACEOF
35178 rm -f conftest.$ac_objext
35179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35180   (eval $ac_compile) 2>&5
35181   ac_status=$?
35182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35183   (exit $ac_status); } &&
35184          { ac_try='test -s conftest.$ac_objext'
35185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35186   (eval $ac_try) 2>&5
35187   ac_status=$?
35188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35189   (exit $ac_status); }; }; then
35190   glibcxx_cv_func_isnanl_use=yes
35191 else
35192   echo "$as_me: failed program was:" >&5
35193 sed 's/^/| /' conftest.$ac_ext >&5
35194
35195 glibcxx_cv_func_isnanl_use=no
35196 fi
35197 rm -f conftest.$ac_objext conftest.$ac_ext
35198       ac_ext=c
35199 ac_cpp='$CPP $CPPFLAGS'
35200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35203
35204
35205 fi
35206
35207   fi
35208   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isnanl_use" >&5
35209 echo "${ECHO_T}$glibcxx_cv_func_isnanl_use" >&6
35210
35211   if test x$glibcxx_cv_func_isnanl_use = x"yes"; then
35212
35213 for ac_func in isnanl
35214 do
35215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35216 echo "$as_me:$LINENO: checking for $ac_func" >&5
35217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35218 if eval "test \"\${$as_ac_var+set}\" = set"; then
35219   echo $ECHO_N "(cached) $ECHO_C" >&6
35220 else
35221   cat >conftest.$ac_ext <<_ACEOF
35222 #line $LINENO "configure"
35223 /* confdefs.h.  */
35224 _ACEOF
35225 cat confdefs.h >>conftest.$ac_ext
35226 cat >>conftest.$ac_ext <<_ACEOF
35227 /* end confdefs.h.  */
35228 /* System header to define __stub macros and hopefully few prototypes,
35229     which can conflict with char $ac_func (); below.
35230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35231     <limits.h> exists even on freestanding compilers.  */
35232 #ifdef __STDC__
35233 # include <limits.h>
35234 #else
35235 # include <assert.h>
35236 #endif
35237 /* Override any gcc2 internal prototype to avoid an error.  */
35238 #ifdef __cplusplus
35239 extern "C"
35240 {
35241 #endif
35242 /* We use char because int might match the return type of a gcc2
35243    builtin and then its argument prototype would still apply.  */
35244 char $ac_func ();
35245 /* The GNU C library defines this for functions which it implements
35246     to always fail with ENOSYS.  Some functions are actually named
35247     something starting with __ and the normal name is an alias.  */
35248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35249 choke me
35250 #else
35251 char (*f) () = $ac_func;
35252 #endif
35253 #ifdef __cplusplus
35254 }
35255 #endif
35256
35257 int
35258 main ()
35259 {
35260 return f != $ac_func;
35261   ;
35262   return 0;
35263 }
35264 _ACEOF
35265 rm -f conftest.$ac_objext conftest$ac_exeext
35266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35267   (eval $ac_link) 2>&5
35268   ac_status=$?
35269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35270   (exit $ac_status); } &&
35271          { ac_try='test -s conftest$ac_exeext'
35272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35273   (eval $ac_try) 2>&5
35274   ac_status=$?
35275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276   (exit $ac_status); }; }; then
35277   eval "$as_ac_var=yes"
35278 else
35279   echo "$as_me: failed program was:" >&5
35280 sed 's/^/| /' conftest.$ac_ext >&5
35281
35282 eval "$as_ac_var=no"
35283 fi
35284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35285 fi
35286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35288 if test `eval echo '${'$as_ac_var'}'` = yes; then
35289   cat >>confdefs.h <<_ACEOF
35290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35291 _ACEOF
35292
35293 fi
35294 done
35295
35296   else
35297
35298   echo "$as_me:$LINENO: checking for _isnanl declaration" >&5
35299 echo $ECHO_N "checking for _isnanl declaration... $ECHO_C" >&6
35300   if test x${glibcxx_cv_func__isnanl_use+set} != xset; then
35301     if test "${glibcxx_cv_func__isnanl_use+set}" = set; then
35302   echo $ECHO_N "(cached) $ECHO_C" >&6
35303 else
35304
35305
35306
35307       ac_ext=cc
35308 ac_cpp='$CXXCPP $CPPFLAGS'
35309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35312
35313       cat >conftest.$ac_ext <<_ACEOF
35314 #line $LINENO "configure"
35315 /* confdefs.h.  */
35316 _ACEOF
35317 cat confdefs.h >>conftest.$ac_ext
35318 cat >>conftest.$ac_ext <<_ACEOF
35319 /* end confdefs.h.  */
35320 #include <math.h>
35321                       #ifdef HAVE_IEEEFP_H
35322                       #include <ieeefp.h>
35323                       #endif
35324
35325 int
35326 main ()
35327 {
35328  _isnanl(0);
35329   ;
35330   return 0;
35331 }
35332 _ACEOF
35333 rm -f conftest.$ac_objext
35334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35335   (eval $ac_compile) 2>&5
35336   ac_status=$?
35337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35338   (exit $ac_status); } &&
35339          { ac_try='test -s conftest.$ac_objext'
35340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35341   (eval $ac_try) 2>&5
35342   ac_status=$?
35343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344   (exit $ac_status); }; }; then
35345   glibcxx_cv_func__isnanl_use=yes
35346 else
35347   echo "$as_me: failed program was:" >&5
35348 sed 's/^/| /' conftest.$ac_ext >&5
35349
35350 glibcxx_cv_func__isnanl_use=no
35351 fi
35352 rm -f conftest.$ac_objext conftest.$ac_ext
35353       ac_ext=c
35354 ac_cpp='$CPP $CPPFLAGS'
35355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35358
35359
35360 fi
35361
35362   fi
35363   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isnanl_use" >&5
35364 echo "${ECHO_T}$glibcxx_cv_func__isnanl_use" >&6
35365
35366     if test x$glibcxx_cv_func__isnanl_use = x"yes"; then
35367
35368 for ac_func in _isnanl
35369 do
35370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35371 echo "$as_me:$LINENO: checking for $ac_func" >&5
35372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35373 if eval "test \"\${$as_ac_var+set}\" = set"; then
35374   echo $ECHO_N "(cached) $ECHO_C" >&6
35375 else
35376   cat >conftest.$ac_ext <<_ACEOF
35377 #line $LINENO "configure"
35378 /* confdefs.h.  */
35379 _ACEOF
35380 cat confdefs.h >>conftest.$ac_ext
35381 cat >>conftest.$ac_ext <<_ACEOF
35382 /* end confdefs.h.  */
35383 /* System header to define __stub macros and hopefully few prototypes,
35384     which can conflict with char $ac_func (); below.
35385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35386     <limits.h> exists even on freestanding compilers.  */
35387 #ifdef __STDC__
35388 # include <limits.h>
35389 #else
35390 # include <assert.h>
35391 #endif
35392 /* Override any gcc2 internal prototype to avoid an error.  */
35393 #ifdef __cplusplus
35394 extern "C"
35395 {
35396 #endif
35397 /* We use char because int might match the return type of a gcc2
35398    builtin and then its argument prototype would still apply.  */
35399 char $ac_func ();
35400 /* The GNU C library defines this for functions which it implements
35401     to always fail with ENOSYS.  Some functions are actually named
35402     something starting with __ and the normal name is an alias.  */
35403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35404 choke me
35405 #else
35406 char (*f) () = $ac_func;
35407 #endif
35408 #ifdef __cplusplus
35409 }
35410 #endif
35411
35412 int
35413 main ()
35414 {
35415 return f != $ac_func;
35416   ;
35417   return 0;
35418 }
35419 _ACEOF
35420 rm -f conftest.$ac_objext conftest$ac_exeext
35421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35422   (eval $ac_link) 2>&5
35423   ac_status=$?
35424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425   (exit $ac_status); } &&
35426          { ac_try='test -s conftest$ac_exeext'
35427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35428   (eval $ac_try) 2>&5
35429   ac_status=$?
35430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431   (exit $ac_status); }; }; then
35432   eval "$as_ac_var=yes"
35433 else
35434   echo "$as_me: failed program was:" >&5
35435 sed 's/^/| /' conftest.$ac_ext >&5
35436
35437 eval "$as_ac_var=no"
35438 fi
35439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35440 fi
35441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35443 if test `eval echo '${'$as_ac_var'}'` = yes; then
35444   cat >>confdefs.h <<_ACEOF
35445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35446 _ACEOF
35447
35448 fi
35449 done
35450
35451     fi
35452   fi
35453
35454
35455
35456   echo "$as_me:$LINENO: checking for isinfl declaration" >&5
35457 echo $ECHO_N "checking for isinfl declaration... $ECHO_C" >&6
35458   if test x${glibcxx_cv_func_isinfl_use+set} != xset; then
35459     if test "${glibcxx_cv_func_isinfl_use+set}" = set; then
35460   echo $ECHO_N "(cached) $ECHO_C" >&6
35461 else
35462
35463
35464
35465       ac_ext=cc
35466 ac_cpp='$CXXCPP $CPPFLAGS'
35467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35470
35471       cat >conftest.$ac_ext <<_ACEOF
35472 #line $LINENO "configure"
35473 /* confdefs.h.  */
35474 _ACEOF
35475 cat confdefs.h >>conftest.$ac_ext
35476 cat >>conftest.$ac_ext <<_ACEOF
35477 /* end confdefs.h.  */
35478 #include <math.h>
35479                       #ifdef HAVE_IEEEFP_H
35480                       #include <ieeefp.h>
35481                       #endif
35482
35483 int
35484 main ()
35485 {
35486  isinfl(0);
35487   ;
35488   return 0;
35489 }
35490 _ACEOF
35491 rm -f conftest.$ac_objext
35492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35493   (eval $ac_compile) 2>&5
35494   ac_status=$?
35495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496   (exit $ac_status); } &&
35497          { ac_try='test -s conftest.$ac_objext'
35498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35499   (eval $ac_try) 2>&5
35500   ac_status=$?
35501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35502   (exit $ac_status); }; }; then
35503   glibcxx_cv_func_isinfl_use=yes
35504 else
35505   echo "$as_me: failed program was:" >&5
35506 sed 's/^/| /' conftest.$ac_ext >&5
35507
35508 glibcxx_cv_func_isinfl_use=no
35509 fi
35510 rm -f conftest.$ac_objext conftest.$ac_ext
35511       ac_ext=c
35512 ac_cpp='$CPP $CPPFLAGS'
35513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35516
35517
35518 fi
35519
35520   fi
35521   echo "$as_me:$LINENO: result: $glibcxx_cv_func_isinfl_use" >&5
35522 echo "${ECHO_T}$glibcxx_cv_func_isinfl_use" >&6
35523
35524   if test x$glibcxx_cv_func_isinfl_use = x"yes"; then
35525
35526 for ac_func in isinfl
35527 do
35528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35529 echo "$as_me:$LINENO: checking for $ac_func" >&5
35530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35531 if eval "test \"\${$as_ac_var+set}\" = set"; then
35532   echo $ECHO_N "(cached) $ECHO_C" >&6
35533 else
35534   cat >conftest.$ac_ext <<_ACEOF
35535 #line $LINENO "configure"
35536 /* confdefs.h.  */
35537 _ACEOF
35538 cat confdefs.h >>conftest.$ac_ext
35539 cat >>conftest.$ac_ext <<_ACEOF
35540 /* end confdefs.h.  */
35541 /* System header to define __stub macros and hopefully few prototypes,
35542     which can conflict with char $ac_func (); below.
35543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35544     <limits.h> exists even on freestanding compilers.  */
35545 #ifdef __STDC__
35546 # include <limits.h>
35547 #else
35548 # include <assert.h>
35549 #endif
35550 /* Override any gcc2 internal prototype to avoid an error.  */
35551 #ifdef __cplusplus
35552 extern "C"
35553 {
35554 #endif
35555 /* We use char because int might match the return type of a gcc2
35556    builtin and then its argument prototype would still apply.  */
35557 char $ac_func ();
35558 /* The GNU C library defines this for functions which it implements
35559     to always fail with ENOSYS.  Some functions are actually named
35560     something starting with __ and the normal name is an alias.  */
35561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35562 choke me
35563 #else
35564 char (*f) () = $ac_func;
35565 #endif
35566 #ifdef __cplusplus
35567 }
35568 #endif
35569
35570 int
35571 main ()
35572 {
35573 return f != $ac_func;
35574   ;
35575   return 0;
35576 }
35577 _ACEOF
35578 rm -f conftest.$ac_objext conftest$ac_exeext
35579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35580   (eval $ac_link) 2>&5
35581   ac_status=$?
35582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35583   (exit $ac_status); } &&
35584          { ac_try='test -s conftest$ac_exeext'
35585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35586   (eval $ac_try) 2>&5
35587   ac_status=$?
35588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589   (exit $ac_status); }; }; then
35590   eval "$as_ac_var=yes"
35591 else
35592   echo "$as_me: failed program was:" >&5
35593 sed 's/^/| /' conftest.$ac_ext >&5
35594
35595 eval "$as_ac_var=no"
35596 fi
35597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35598 fi
35599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35601 if test `eval echo '${'$as_ac_var'}'` = yes; then
35602   cat >>confdefs.h <<_ACEOF
35603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35604 _ACEOF
35605
35606 fi
35607 done
35608
35609   else
35610
35611   echo "$as_me:$LINENO: checking for _isinfl declaration" >&5
35612 echo $ECHO_N "checking for _isinfl declaration... $ECHO_C" >&6
35613   if test x${glibcxx_cv_func__isinfl_use+set} != xset; then
35614     if test "${glibcxx_cv_func__isinfl_use+set}" = set; then
35615   echo $ECHO_N "(cached) $ECHO_C" >&6
35616 else
35617
35618
35619
35620       ac_ext=cc
35621 ac_cpp='$CXXCPP $CPPFLAGS'
35622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35625
35626       cat >conftest.$ac_ext <<_ACEOF
35627 #line $LINENO "configure"
35628 /* confdefs.h.  */
35629 _ACEOF
35630 cat confdefs.h >>conftest.$ac_ext
35631 cat >>conftest.$ac_ext <<_ACEOF
35632 /* end confdefs.h.  */
35633 #include <math.h>
35634                       #ifdef HAVE_IEEEFP_H
35635                       #include <ieeefp.h>
35636                       #endif
35637
35638 int
35639 main ()
35640 {
35641  _isinfl(0);
35642   ;
35643   return 0;
35644 }
35645 _ACEOF
35646 rm -f conftest.$ac_objext
35647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35648   (eval $ac_compile) 2>&5
35649   ac_status=$?
35650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651   (exit $ac_status); } &&
35652          { ac_try='test -s conftest.$ac_objext'
35653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35654   (eval $ac_try) 2>&5
35655   ac_status=$?
35656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657   (exit $ac_status); }; }; then
35658   glibcxx_cv_func__isinfl_use=yes
35659 else
35660   echo "$as_me: failed program was:" >&5
35661 sed 's/^/| /' conftest.$ac_ext >&5
35662
35663 glibcxx_cv_func__isinfl_use=no
35664 fi
35665 rm -f conftest.$ac_objext conftest.$ac_ext
35666       ac_ext=c
35667 ac_cpp='$CPP $CPPFLAGS'
35668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35671
35672
35673 fi
35674
35675   fi
35676   echo "$as_me:$LINENO: result: $glibcxx_cv_func__isinfl_use" >&5
35677 echo "${ECHO_T}$glibcxx_cv_func__isinfl_use" >&6
35678
35679     if test x$glibcxx_cv_func__isinfl_use = x"yes"; then
35680
35681 for ac_func in _isinfl
35682 do
35683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35684 echo "$as_me:$LINENO: checking for $ac_func" >&5
35685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35686 if eval "test \"\${$as_ac_var+set}\" = set"; then
35687   echo $ECHO_N "(cached) $ECHO_C" >&6
35688 else
35689   cat >conftest.$ac_ext <<_ACEOF
35690 #line $LINENO "configure"
35691 /* confdefs.h.  */
35692 _ACEOF
35693 cat confdefs.h >>conftest.$ac_ext
35694 cat >>conftest.$ac_ext <<_ACEOF
35695 /* end confdefs.h.  */
35696 /* System header to define __stub macros and hopefully few prototypes,
35697     which can conflict with char $ac_func (); below.
35698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35699     <limits.h> exists even on freestanding compilers.  */
35700 #ifdef __STDC__
35701 # include <limits.h>
35702 #else
35703 # include <assert.h>
35704 #endif
35705 /* Override any gcc2 internal prototype to avoid an error.  */
35706 #ifdef __cplusplus
35707 extern "C"
35708 {
35709 #endif
35710 /* We use char because int might match the return type of a gcc2
35711    builtin and then its argument prototype would still apply.  */
35712 char $ac_func ();
35713 /* The GNU C library defines this for functions which it implements
35714     to always fail with ENOSYS.  Some functions are actually named
35715     something starting with __ and the normal name is an alias.  */
35716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35717 choke me
35718 #else
35719 char (*f) () = $ac_func;
35720 #endif
35721 #ifdef __cplusplus
35722 }
35723 #endif
35724
35725 int
35726 main ()
35727 {
35728 return f != $ac_func;
35729   ;
35730   return 0;
35731 }
35732 _ACEOF
35733 rm -f conftest.$ac_objext conftest$ac_exeext
35734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35735   (eval $ac_link) 2>&5
35736   ac_status=$?
35737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738   (exit $ac_status); } &&
35739          { ac_try='test -s conftest$ac_exeext'
35740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35741   (eval $ac_try) 2>&5
35742   ac_status=$?
35743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744   (exit $ac_status); }; }; then
35745   eval "$as_ac_var=yes"
35746 else
35747   echo "$as_me: failed program was:" >&5
35748 sed 's/^/| /' conftest.$ac_ext >&5
35749
35750 eval "$as_ac_var=no"
35751 fi
35752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35753 fi
35754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35756 if test `eval echo '${'$as_ac_var'}'` = yes; then
35757   cat >>confdefs.h <<_ACEOF
35758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35759 _ACEOF
35760
35761 fi
35762 done
35763
35764     fi
35765   fi
35766
35767
35768
35769   echo "$as_me:$LINENO: checking for copysignl declaration" >&5
35770 echo $ECHO_N "checking for copysignl declaration... $ECHO_C" >&6
35771   if test x${glibcxx_cv_func_copysignl_use+set} != xset; then
35772     if test "${glibcxx_cv_func_copysignl_use+set}" = set; then
35773   echo $ECHO_N "(cached) $ECHO_C" >&6
35774 else
35775
35776
35777
35778       ac_ext=cc
35779 ac_cpp='$CXXCPP $CPPFLAGS'
35780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35783
35784       cat >conftest.$ac_ext <<_ACEOF
35785 #line $LINENO "configure"
35786 /* confdefs.h.  */
35787 _ACEOF
35788 cat confdefs.h >>conftest.$ac_ext
35789 cat >>conftest.$ac_ext <<_ACEOF
35790 /* end confdefs.h.  */
35791 #include <math.h>
35792 int
35793 main ()
35794 {
35795  copysignl(0, 0);
35796   ;
35797   return 0;
35798 }
35799 _ACEOF
35800 rm -f conftest.$ac_objext
35801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35802   (eval $ac_compile) 2>&5
35803   ac_status=$?
35804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35805   (exit $ac_status); } &&
35806          { ac_try='test -s conftest.$ac_objext'
35807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35808   (eval $ac_try) 2>&5
35809   ac_status=$?
35810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35811   (exit $ac_status); }; }; then
35812   glibcxx_cv_func_copysignl_use=yes
35813 else
35814   echo "$as_me: failed program was:" >&5
35815 sed 's/^/| /' conftest.$ac_ext >&5
35816
35817 glibcxx_cv_func_copysignl_use=no
35818 fi
35819 rm -f conftest.$ac_objext conftest.$ac_ext
35820       ac_ext=c
35821 ac_cpp='$CPP $CPPFLAGS'
35822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35825
35826
35827 fi
35828
35829   fi
35830   echo "$as_me:$LINENO: result: $glibcxx_cv_func_copysignl_use" >&5
35831 echo "${ECHO_T}$glibcxx_cv_func_copysignl_use" >&6
35832
35833   if test x$glibcxx_cv_func_copysignl_use = x"yes"; then
35834
35835 for ac_func in copysignl
35836 do
35837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35838 echo "$as_me:$LINENO: checking for $ac_func" >&5
35839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35840 if eval "test \"\${$as_ac_var+set}\" = set"; then
35841   echo $ECHO_N "(cached) $ECHO_C" >&6
35842 else
35843   cat >conftest.$ac_ext <<_ACEOF
35844 #line $LINENO "configure"
35845 /* confdefs.h.  */
35846 _ACEOF
35847 cat confdefs.h >>conftest.$ac_ext
35848 cat >>conftest.$ac_ext <<_ACEOF
35849 /* end confdefs.h.  */
35850 /* System header to define __stub macros and hopefully few prototypes,
35851     which can conflict with char $ac_func (); below.
35852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35853     <limits.h> exists even on freestanding compilers.  */
35854 #ifdef __STDC__
35855 # include <limits.h>
35856 #else
35857 # include <assert.h>
35858 #endif
35859 /* Override any gcc2 internal prototype to avoid an error.  */
35860 #ifdef __cplusplus
35861 extern "C"
35862 {
35863 #endif
35864 /* We use char because int might match the return type of a gcc2
35865    builtin and then its argument prototype would still apply.  */
35866 char $ac_func ();
35867 /* The GNU C library defines this for functions which it implements
35868     to always fail with ENOSYS.  Some functions are actually named
35869     something starting with __ and the normal name is an alias.  */
35870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35871 choke me
35872 #else
35873 char (*f) () = $ac_func;
35874 #endif
35875 #ifdef __cplusplus
35876 }
35877 #endif
35878
35879 int
35880 main ()
35881 {
35882 return f != $ac_func;
35883   ;
35884   return 0;
35885 }
35886 _ACEOF
35887 rm -f conftest.$ac_objext conftest$ac_exeext
35888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35889   (eval $ac_link) 2>&5
35890   ac_status=$?
35891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892   (exit $ac_status); } &&
35893          { ac_try='test -s conftest$ac_exeext'
35894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35895   (eval $ac_try) 2>&5
35896   ac_status=$?
35897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898   (exit $ac_status); }; }; then
35899   eval "$as_ac_var=yes"
35900 else
35901   echo "$as_me: failed program was:" >&5
35902 sed 's/^/| /' conftest.$ac_ext >&5
35903
35904 eval "$as_ac_var=no"
35905 fi
35906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
35907 fi
35908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35910 if test `eval echo '${'$as_ac_var'}'` = yes; then
35911   cat >>confdefs.h <<_ACEOF
35912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35913 _ACEOF
35914
35915 fi
35916 done
35917
35918   else
35919
35920   echo "$as_me:$LINENO: checking for _copysignl declaration" >&5
35921 echo $ECHO_N "checking for _copysignl declaration... $ECHO_C" >&6
35922   if test x${glibcxx_cv_func__copysignl_use+set} != xset; then
35923     if test "${glibcxx_cv_func__copysignl_use+set}" = set; then
35924   echo $ECHO_N "(cached) $ECHO_C" >&6
35925 else
35926
35927
35928
35929       ac_ext=cc
35930 ac_cpp='$CXXCPP $CPPFLAGS'
35931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35934
35935       cat >conftest.$ac_ext <<_ACEOF
35936 #line $LINENO "configure"
35937 /* confdefs.h.  */
35938 _ACEOF
35939 cat confdefs.h >>conftest.$ac_ext
35940 cat >>conftest.$ac_ext <<_ACEOF
35941 /* end confdefs.h.  */
35942 #include <math.h>
35943 int
35944 main ()
35945 {
35946  _copysignl(0, 0);
35947   ;
35948   return 0;
35949 }
35950 _ACEOF
35951 rm -f conftest.$ac_objext
35952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35953   (eval $ac_compile) 2>&5
35954   ac_status=$?
35955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35956   (exit $ac_status); } &&
35957          { ac_try='test -s conftest.$ac_objext'
35958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35959   (eval $ac_try) 2>&5
35960   ac_status=$?
35961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962   (exit $ac_status); }; }; then
35963   glibcxx_cv_func__copysignl_use=yes
35964 else
35965   echo "$as_me: failed program was:" >&5
35966 sed 's/^/| /' conftest.$ac_ext >&5
35967
35968 glibcxx_cv_func__copysignl_use=no
35969 fi
35970 rm -f conftest.$ac_objext conftest.$ac_ext
35971       ac_ext=c
35972 ac_cpp='$CPP $CPPFLAGS'
35973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35976
35977
35978 fi
35979
35980   fi
35981   echo "$as_me:$LINENO: result: $glibcxx_cv_func__copysignl_use" >&5
35982 echo "${ECHO_T}$glibcxx_cv_func__copysignl_use" >&6
35983
35984     if test x$glibcxx_cv_func__copysignl_use = x"yes"; then
35985
35986 for ac_func in _copysignl
35987 do
35988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35989 echo "$as_me:$LINENO: checking for $ac_func" >&5
35990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35991 if eval "test \"\${$as_ac_var+set}\" = set"; then
35992   echo $ECHO_N "(cached) $ECHO_C" >&6
35993 else
35994   cat >conftest.$ac_ext <<_ACEOF
35995 #line $LINENO "configure"
35996 /* confdefs.h.  */
35997 _ACEOF
35998 cat confdefs.h >>conftest.$ac_ext
35999 cat >>conftest.$ac_ext <<_ACEOF
36000 /* end confdefs.h.  */
36001 /* System header to define __stub macros and hopefully few prototypes,
36002     which can conflict with char $ac_func (); below.
36003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36004     <limits.h> exists even on freestanding compilers.  */
36005 #ifdef __STDC__
36006 # include <limits.h>
36007 #else
36008 # include <assert.h>
36009 #endif
36010 /* Override any gcc2 internal prototype to avoid an error.  */
36011 #ifdef __cplusplus
36012 extern "C"
36013 {
36014 #endif
36015 /* We use char because int might match the return type of a gcc2
36016    builtin and then its argument prototype would still apply.  */
36017 char $ac_func ();
36018 /* The GNU C library defines this for functions which it implements
36019     to always fail with ENOSYS.  Some functions are actually named
36020     something starting with __ and the normal name is an alias.  */
36021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36022 choke me
36023 #else
36024 char (*f) () = $ac_func;
36025 #endif
36026 #ifdef __cplusplus
36027 }
36028 #endif
36029
36030 int
36031 main ()
36032 {
36033 return f != $ac_func;
36034   ;
36035   return 0;
36036 }
36037 _ACEOF
36038 rm -f conftest.$ac_objext conftest$ac_exeext
36039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36040   (eval $ac_link) 2>&5
36041   ac_status=$?
36042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36043   (exit $ac_status); } &&
36044          { ac_try='test -s conftest$ac_exeext'
36045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36046   (eval $ac_try) 2>&5
36047   ac_status=$?
36048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36049   (exit $ac_status); }; }; then
36050   eval "$as_ac_var=yes"
36051 else
36052   echo "$as_me: failed program was:" >&5
36053 sed 's/^/| /' conftest.$ac_ext >&5
36054
36055 eval "$as_ac_var=no"
36056 fi
36057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36058 fi
36059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36061 if test `eval echo '${'$as_ac_var'}'` = yes; then
36062   cat >>confdefs.h <<_ACEOF
36063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36064 _ACEOF
36065
36066 fi
36067 done
36068
36069     fi
36070   fi
36071
36072
36073
36074   echo "$as_me:$LINENO: checking for atan2l declaration" >&5
36075 echo $ECHO_N "checking for atan2l declaration... $ECHO_C" >&6
36076   if test x${glibcxx_cv_func_atan2l_use+set} != xset; then
36077     if test "${glibcxx_cv_func_atan2l_use+set}" = set; then
36078   echo $ECHO_N "(cached) $ECHO_C" >&6
36079 else
36080
36081
36082
36083       ac_ext=cc
36084 ac_cpp='$CXXCPP $CPPFLAGS'
36085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36088
36089       cat >conftest.$ac_ext <<_ACEOF
36090 #line $LINENO "configure"
36091 /* confdefs.h.  */
36092 _ACEOF
36093 cat confdefs.h >>conftest.$ac_ext
36094 cat >>conftest.$ac_ext <<_ACEOF
36095 /* end confdefs.h.  */
36096 #include <math.h>
36097 int
36098 main ()
36099 {
36100  atan2l(0, 0);
36101   ;
36102   return 0;
36103 }
36104 _ACEOF
36105 rm -f conftest.$ac_objext
36106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36107   (eval $ac_compile) 2>&5
36108   ac_status=$?
36109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36110   (exit $ac_status); } &&
36111          { ac_try='test -s conftest.$ac_objext'
36112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36113   (eval $ac_try) 2>&5
36114   ac_status=$?
36115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36116   (exit $ac_status); }; }; then
36117   glibcxx_cv_func_atan2l_use=yes
36118 else
36119   echo "$as_me: failed program was:" >&5
36120 sed 's/^/| /' conftest.$ac_ext >&5
36121
36122 glibcxx_cv_func_atan2l_use=no
36123 fi
36124 rm -f conftest.$ac_objext conftest.$ac_ext
36125       ac_ext=c
36126 ac_cpp='$CPP $CPPFLAGS'
36127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36130
36131
36132 fi
36133
36134   fi
36135   echo "$as_me:$LINENO: result: $glibcxx_cv_func_atan2l_use" >&5
36136 echo "${ECHO_T}$glibcxx_cv_func_atan2l_use" >&6
36137
36138   if test x$glibcxx_cv_func_atan2l_use = x"yes"; then
36139
36140 for ac_func in atan2l
36141 do
36142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36143 echo "$as_me:$LINENO: checking for $ac_func" >&5
36144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36145 if eval "test \"\${$as_ac_var+set}\" = set"; then
36146   echo $ECHO_N "(cached) $ECHO_C" >&6
36147 else
36148   cat >conftest.$ac_ext <<_ACEOF
36149 #line $LINENO "configure"
36150 /* confdefs.h.  */
36151 _ACEOF
36152 cat confdefs.h >>conftest.$ac_ext
36153 cat >>conftest.$ac_ext <<_ACEOF
36154 /* end confdefs.h.  */
36155 /* System header to define __stub macros and hopefully few prototypes,
36156     which can conflict with char $ac_func (); below.
36157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36158     <limits.h> exists even on freestanding compilers.  */
36159 #ifdef __STDC__
36160 # include <limits.h>
36161 #else
36162 # include <assert.h>
36163 #endif
36164 /* Override any gcc2 internal prototype to avoid an error.  */
36165 #ifdef __cplusplus
36166 extern "C"
36167 {
36168 #endif
36169 /* We use char because int might match the return type of a gcc2
36170    builtin and then its argument prototype would still apply.  */
36171 char $ac_func ();
36172 /* The GNU C library defines this for functions which it implements
36173     to always fail with ENOSYS.  Some functions are actually named
36174     something starting with __ and the normal name is an alias.  */
36175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36176 choke me
36177 #else
36178 char (*f) () = $ac_func;
36179 #endif
36180 #ifdef __cplusplus
36181 }
36182 #endif
36183
36184 int
36185 main ()
36186 {
36187 return f != $ac_func;
36188   ;
36189   return 0;
36190 }
36191 _ACEOF
36192 rm -f conftest.$ac_objext conftest$ac_exeext
36193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36194   (eval $ac_link) 2>&5
36195   ac_status=$?
36196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36197   (exit $ac_status); } &&
36198          { ac_try='test -s conftest$ac_exeext'
36199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36200   (eval $ac_try) 2>&5
36201   ac_status=$?
36202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36203   (exit $ac_status); }; }; then
36204   eval "$as_ac_var=yes"
36205 else
36206   echo "$as_me: failed program was:" >&5
36207 sed 's/^/| /' conftest.$ac_ext >&5
36208
36209 eval "$as_ac_var=no"
36210 fi
36211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36212 fi
36213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36215 if test `eval echo '${'$as_ac_var'}'` = yes; then
36216   cat >>confdefs.h <<_ACEOF
36217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36218 _ACEOF
36219
36220 fi
36221 done
36222
36223   else
36224
36225   echo "$as_me:$LINENO: checking for _atan2l declaration" >&5
36226 echo $ECHO_N "checking for _atan2l declaration... $ECHO_C" >&6
36227   if test x${glibcxx_cv_func__atan2l_use+set} != xset; then
36228     if test "${glibcxx_cv_func__atan2l_use+set}" = set; then
36229   echo $ECHO_N "(cached) $ECHO_C" >&6
36230 else
36231
36232
36233
36234       ac_ext=cc
36235 ac_cpp='$CXXCPP $CPPFLAGS'
36236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36239
36240       cat >conftest.$ac_ext <<_ACEOF
36241 #line $LINENO "configure"
36242 /* confdefs.h.  */
36243 _ACEOF
36244 cat confdefs.h >>conftest.$ac_ext
36245 cat >>conftest.$ac_ext <<_ACEOF
36246 /* end confdefs.h.  */
36247 #include <math.h>
36248 int
36249 main ()
36250 {
36251  _atan2l(0, 0);
36252   ;
36253   return 0;
36254 }
36255 _ACEOF
36256 rm -f conftest.$ac_objext
36257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36258   (eval $ac_compile) 2>&5
36259   ac_status=$?
36260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36261   (exit $ac_status); } &&
36262          { ac_try='test -s conftest.$ac_objext'
36263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36264   (eval $ac_try) 2>&5
36265   ac_status=$?
36266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36267   (exit $ac_status); }; }; then
36268   glibcxx_cv_func__atan2l_use=yes
36269 else
36270   echo "$as_me: failed program was:" >&5
36271 sed 's/^/| /' conftest.$ac_ext >&5
36272
36273 glibcxx_cv_func__atan2l_use=no
36274 fi
36275 rm -f conftest.$ac_objext conftest.$ac_ext
36276       ac_ext=c
36277 ac_cpp='$CPP $CPPFLAGS'
36278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36281
36282
36283 fi
36284
36285   fi
36286   echo "$as_me:$LINENO: result: $glibcxx_cv_func__atan2l_use" >&5
36287 echo "${ECHO_T}$glibcxx_cv_func__atan2l_use" >&6
36288
36289     if test x$glibcxx_cv_func__atan2l_use = x"yes"; then
36290
36291 for ac_func in _atan2l
36292 do
36293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36294 echo "$as_me:$LINENO: checking for $ac_func" >&5
36295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36296 if eval "test \"\${$as_ac_var+set}\" = set"; then
36297   echo $ECHO_N "(cached) $ECHO_C" >&6
36298 else
36299   cat >conftest.$ac_ext <<_ACEOF
36300 #line $LINENO "configure"
36301 /* confdefs.h.  */
36302 _ACEOF
36303 cat confdefs.h >>conftest.$ac_ext
36304 cat >>conftest.$ac_ext <<_ACEOF
36305 /* end confdefs.h.  */
36306 /* System header to define __stub macros and hopefully few prototypes,
36307     which can conflict with char $ac_func (); below.
36308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36309     <limits.h> exists even on freestanding compilers.  */
36310 #ifdef __STDC__
36311 # include <limits.h>
36312 #else
36313 # include <assert.h>
36314 #endif
36315 /* Override any gcc2 internal prototype to avoid an error.  */
36316 #ifdef __cplusplus
36317 extern "C"
36318 {
36319 #endif
36320 /* We use char because int might match the return type of a gcc2
36321    builtin and then its argument prototype would still apply.  */
36322 char $ac_func ();
36323 /* The GNU C library defines this for functions which it implements
36324     to always fail with ENOSYS.  Some functions are actually named
36325     something starting with __ and the normal name is an alias.  */
36326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36327 choke me
36328 #else
36329 char (*f) () = $ac_func;
36330 #endif
36331 #ifdef __cplusplus
36332 }
36333 #endif
36334
36335 int
36336 main ()
36337 {
36338 return f != $ac_func;
36339   ;
36340   return 0;
36341 }
36342 _ACEOF
36343 rm -f conftest.$ac_objext conftest$ac_exeext
36344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36345   (eval $ac_link) 2>&5
36346   ac_status=$?
36347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36348   (exit $ac_status); } &&
36349          { ac_try='test -s conftest$ac_exeext'
36350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36351   (eval $ac_try) 2>&5
36352   ac_status=$?
36353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354   (exit $ac_status); }; }; then
36355   eval "$as_ac_var=yes"
36356 else
36357   echo "$as_me: failed program was:" >&5
36358 sed 's/^/| /' conftest.$ac_ext >&5
36359
36360 eval "$as_ac_var=no"
36361 fi
36362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36363 fi
36364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36366 if test `eval echo '${'$as_ac_var'}'` = yes; then
36367   cat >>confdefs.h <<_ACEOF
36368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36369 _ACEOF
36370
36371 fi
36372 done
36373
36374     fi
36375   fi
36376
36377
36378
36379   echo "$as_me:$LINENO: checking for expl declaration" >&5
36380 echo $ECHO_N "checking for expl declaration... $ECHO_C" >&6
36381   if test x${glibcxx_cv_func_expl_use+set} != xset; then
36382     if test "${glibcxx_cv_func_expl_use+set}" = set; then
36383   echo $ECHO_N "(cached) $ECHO_C" >&6
36384 else
36385
36386
36387
36388       ac_ext=cc
36389 ac_cpp='$CXXCPP $CPPFLAGS'
36390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36393
36394       cat >conftest.$ac_ext <<_ACEOF
36395 #line $LINENO "configure"
36396 /* confdefs.h.  */
36397 _ACEOF
36398 cat confdefs.h >>conftest.$ac_ext
36399 cat >>conftest.$ac_ext <<_ACEOF
36400 /* end confdefs.h.  */
36401 #include <math.h>
36402                       #ifdef HAVE_IEEEFP_H
36403                       #include <ieeefp.h>
36404                       #endif
36405
36406 int
36407 main ()
36408 {
36409  expl(0);
36410   ;
36411   return 0;
36412 }
36413 _ACEOF
36414 rm -f conftest.$ac_objext
36415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36416   (eval $ac_compile) 2>&5
36417   ac_status=$?
36418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419   (exit $ac_status); } &&
36420          { ac_try='test -s conftest.$ac_objext'
36421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36422   (eval $ac_try) 2>&5
36423   ac_status=$?
36424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425   (exit $ac_status); }; }; then
36426   glibcxx_cv_func_expl_use=yes
36427 else
36428   echo "$as_me: failed program was:" >&5
36429 sed 's/^/| /' conftest.$ac_ext >&5
36430
36431 glibcxx_cv_func_expl_use=no
36432 fi
36433 rm -f conftest.$ac_objext conftest.$ac_ext
36434       ac_ext=c
36435 ac_cpp='$CPP $CPPFLAGS'
36436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36439
36440
36441 fi
36442
36443   fi
36444   echo "$as_me:$LINENO: result: $glibcxx_cv_func_expl_use" >&5
36445 echo "${ECHO_T}$glibcxx_cv_func_expl_use" >&6
36446
36447   if test x$glibcxx_cv_func_expl_use = x"yes"; then
36448
36449 for ac_func in expl
36450 do
36451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36452 echo "$as_me:$LINENO: checking for $ac_func" >&5
36453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36454 if eval "test \"\${$as_ac_var+set}\" = set"; then
36455   echo $ECHO_N "(cached) $ECHO_C" >&6
36456 else
36457   cat >conftest.$ac_ext <<_ACEOF
36458 #line $LINENO "configure"
36459 /* confdefs.h.  */
36460 _ACEOF
36461 cat confdefs.h >>conftest.$ac_ext
36462 cat >>conftest.$ac_ext <<_ACEOF
36463 /* end confdefs.h.  */
36464 /* System header to define __stub macros and hopefully few prototypes,
36465     which can conflict with char $ac_func (); below.
36466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36467     <limits.h> exists even on freestanding compilers.  */
36468 #ifdef __STDC__
36469 # include <limits.h>
36470 #else
36471 # include <assert.h>
36472 #endif
36473 /* Override any gcc2 internal prototype to avoid an error.  */
36474 #ifdef __cplusplus
36475 extern "C"
36476 {
36477 #endif
36478 /* We use char because int might match the return type of a gcc2
36479    builtin and then its argument prototype would still apply.  */
36480 char $ac_func ();
36481 /* The GNU C library defines this for functions which it implements
36482     to always fail with ENOSYS.  Some functions are actually named
36483     something starting with __ and the normal name is an alias.  */
36484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36485 choke me
36486 #else
36487 char (*f) () = $ac_func;
36488 #endif
36489 #ifdef __cplusplus
36490 }
36491 #endif
36492
36493 int
36494 main ()
36495 {
36496 return f != $ac_func;
36497   ;
36498   return 0;
36499 }
36500 _ACEOF
36501 rm -f conftest.$ac_objext conftest$ac_exeext
36502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36503   (eval $ac_link) 2>&5
36504   ac_status=$?
36505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36506   (exit $ac_status); } &&
36507          { ac_try='test -s conftest$ac_exeext'
36508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36509   (eval $ac_try) 2>&5
36510   ac_status=$?
36511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36512   (exit $ac_status); }; }; then
36513   eval "$as_ac_var=yes"
36514 else
36515   echo "$as_me: failed program was:" >&5
36516 sed 's/^/| /' conftest.$ac_ext >&5
36517
36518 eval "$as_ac_var=no"
36519 fi
36520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36521 fi
36522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36523 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36524 if test `eval echo '${'$as_ac_var'}'` = yes; then
36525   cat >>confdefs.h <<_ACEOF
36526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36527 _ACEOF
36528
36529 fi
36530 done
36531
36532   else
36533
36534   echo "$as_me:$LINENO: checking for _expl declaration" >&5
36535 echo $ECHO_N "checking for _expl declaration... $ECHO_C" >&6
36536   if test x${glibcxx_cv_func__expl_use+set} != xset; then
36537     if test "${glibcxx_cv_func__expl_use+set}" = set; then
36538   echo $ECHO_N "(cached) $ECHO_C" >&6
36539 else
36540
36541
36542
36543       ac_ext=cc
36544 ac_cpp='$CXXCPP $CPPFLAGS'
36545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36548
36549       cat >conftest.$ac_ext <<_ACEOF
36550 #line $LINENO "configure"
36551 /* confdefs.h.  */
36552 _ACEOF
36553 cat confdefs.h >>conftest.$ac_ext
36554 cat >>conftest.$ac_ext <<_ACEOF
36555 /* end confdefs.h.  */
36556 #include <math.h>
36557                       #ifdef HAVE_IEEEFP_H
36558                       #include <ieeefp.h>
36559                       #endif
36560
36561 int
36562 main ()
36563 {
36564  _expl(0);
36565   ;
36566   return 0;
36567 }
36568 _ACEOF
36569 rm -f conftest.$ac_objext
36570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36571   (eval $ac_compile) 2>&5
36572   ac_status=$?
36573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36574   (exit $ac_status); } &&
36575          { ac_try='test -s conftest.$ac_objext'
36576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36577   (eval $ac_try) 2>&5
36578   ac_status=$?
36579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36580   (exit $ac_status); }; }; then
36581   glibcxx_cv_func__expl_use=yes
36582 else
36583   echo "$as_me: failed program was:" >&5
36584 sed 's/^/| /' conftest.$ac_ext >&5
36585
36586 glibcxx_cv_func__expl_use=no
36587 fi
36588 rm -f conftest.$ac_objext conftest.$ac_ext
36589       ac_ext=c
36590 ac_cpp='$CPP $CPPFLAGS'
36591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36594
36595
36596 fi
36597
36598   fi
36599   echo "$as_me:$LINENO: result: $glibcxx_cv_func__expl_use" >&5
36600 echo "${ECHO_T}$glibcxx_cv_func__expl_use" >&6
36601
36602     if test x$glibcxx_cv_func__expl_use = x"yes"; then
36603
36604 for ac_func in _expl
36605 do
36606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36607 echo "$as_me:$LINENO: checking for $ac_func" >&5
36608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36609 if eval "test \"\${$as_ac_var+set}\" = set"; then
36610   echo $ECHO_N "(cached) $ECHO_C" >&6
36611 else
36612   cat >conftest.$ac_ext <<_ACEOF
36613 #line $LINENO "configure"
36614 /* confdefs.h.  */
36615 _ACEOF
36616 cat confdefs.h >>conftest.$ac_ext
36617 cat >>conftest.$ac_ext <<_ACEOF
36618 /* end confdefs.h.  */
36619 /* System header to define __stub macros and hopefully few prototypes,
36620     which can conflict with char $ac_func (); below.
36621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36622     <limits.h> exists even on freestanding compilers.  */
36623 #ifdef __STDC__
36624 # include <limits.h>
36625 #else
36626 # include <assert.h>
36627 #endif
36628 /* Override any gcc2 internal prototype to avoid an error.  */
36629 #ifdef __cplusplus
36630 extern "C"
36631 {
36632 #endif
36633 /* We use char because int might match the return type of a gcc2
36634    builtin and then its argument prototype would still apply.  */
36635 char $ac_func ();
36636 /* The GNU C library defines this for functions which it implements
36637     to always fail with ENOSYS.  Some functions are actually named
36638     something starting with __ and the normal name is an alias.  */
36639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36640 choke me
36641 #else
36642 char (*f) () = $ac_func;
36643 #endif
36644 #ifdef __cplusplus
36645 }
36646 #endif
36647
36648 int
36649 main ()
36650 {
36651 return f != $ac_func;
36652   ;
36653   return 0;
36654 }
36655 _ACEOF
36656 rm -f conftest.$ac_objext conftest$ac_exeext
36657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36658   (eval $ac_link) 2>&5
36659   ac_status=$?
36660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661   (exit $ac_status); } &&
36662          { ac_try='test -s conftest$ac_exeext'
36663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36664   (eval $ac_try) 2>&5
36665   ac_status=$?
36666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36667   (exit $ac_status); }; }; then
36668   eval "$as_ac_var=yes"
36669 else
36670   echo "$as_me: failed program was:" >&5
36671 sed 's/^/| /' conftest.$ac_ext >&5
36672
36673 eval "$as_ac_var=no"
36674 fi
36675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36676 fi
36677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36678 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36679 if test `eval echo '${'$as_ac_var'}'` = yes; then
36680   cat >>confdefs.h <<_ACEOF
36681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36682 _ACEOF
36683
36684 fi
36685 done
36686
36687     fi
36688   fi
36689
36690
36691
36692   echo "$as_me:$LINENO: checking for fabsl declaration" >&5
36693 echo $ECHO_N "checking for fabsl declaration... $ECHO_C" >&6
36694   if test x${glibcxx_cv_func_fabsl_use+set} != xset; then
36695     if test "${glibcxx_cv_func_fabsl_use+set}" = set; then
36696   echo $ECHO_N "(cached) $ECHO_C" >&6
36697 else
36698
36699
36700
36701       ac_ext=cc
36702 ac_cpp='$CXXCPP $CPPFLAGS'
36703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36706
36707       cat >conftest.$ac_ext <<_ACEOF
36708 #line $LINENO "configure"
36709 /* confdefs.h.  */
36710 _ACEOF
36711 cat confdefs.h >>conftest.$ac_ext
36712 cat >>conftest.$ac_ext <<_ACEOF
36713 /* end confdefs.h.  */
36714 #include <math.h>
36715                       #ifdef HAVE_IEEEFP_H
36716                       #include <ieeefp.h>
36717                       #endif
36718
36719 int
36720 main ()
36721 {
36722  fabsl(0);
36723   ;
36724   return 0;
36725 }
36726 _ACEOF
36727 rm -f conftest.$ac_objext
36728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36729   (eval $ac_compile) 2>&5
36730   ac_status=$?
36731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36732   (exit $ac_status); } &&
36733          { ac_try='test -s conftest.$ac_objext'
36734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36735   (eval $ac_try) 2>&5
36736   ac_status=$?
36737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36738   (exit $ac_status); }; }; then
36739   glibcxx_cv_func_fabsl_use=yes
36740 else
36741   echo "$as_me: failed program was:" >&5
36742 sed 's/^/| /' conftest.$ac_ext >&5
36743
36744 glibcxx_cv_func_fabsl_use=no
36745 fi
36746 rm -f conftest.$ac_objext conftest.$ac_ext
36747       ac_ext=c
36748 ac_cpp='$CPP $CPPFLAGS'
36749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36752
36753
36754 fi
36755
36756   fi
36757   echo "$as_me:$LINENO: result: $glibcxx_cv_func_fabsl_use" >&5
36758 echo "${ECHO_T}$glibcxx_cv_func_fabsl_use" >&6
36759
36760   if test x$glibcxx_cv_func_fabsl_use = x"yes"; then
36761
36762 for ac_func in fabsl
36763 do
36764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36765 echo "$as_me:$LINENO: checking for $ac_func" >&5
36766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36767 if eval "test \"\${$as_ac_var+set}\" = set"; then
36768   echo $ECHO_N "(cached) $ECHO_C" >&6
36769 else
36770   cat >conftest.$ac_ext <<_ACEOF
36771 #line $LINENO "configure"
36772 /* confdefs.h.  */
36773 _ACEOF
36774 cat confdefs.h >>conftest.$ac_ext
36775 cat >>conftest.$ac_ext <<_ACEOF
36776 /* end confdefs.h.  */
36777 /* System header to define __stub macros and hopefully few prototypes,
36778     which can conflict with char $ac_func (); below.
36779     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36780     <limits.h> exists even on freestanding compilers.  */
36781 #ifdef __STDC__
36782 # include <limits.h>
36783 #else
36784 # include <assert.h>
36785 #endif
36786 /* Override any gcc2 internal prototype to avoid an error.  */
36787 #ifdef __cplusplus
36788 extern "C"
36789 {
36790 #endif
36791 /* We use char because int might match the return type of a gcc2
36792    builtin and then its argument prototype would still apply.  */
36793 char $ac_func ();
36794 /* The GNU C library defines this for functions which it implements
36795     to always fail with ENOSYS.  Some functions are actually named
36796     something starting with __ and the normal name is an alias.  */
36797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36798 choke me
36799 #else
36800 char (*f) () = $ac_func;
36801 #endif
36802 #ifdef __cplusplus
36803 }
36804 #endif
36805
36806 int
36807 main ()
36808 {
36809 return f != $ac_func;
36810   ;
36811   return 0;
36812 }
36813 _ACEOF
36814 rm -f conftest.$ac_objext conftest$ac_exeext
36815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36816   (eval $ac_link) 2>&5
36817   ac_status=$?
36818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819   (exit $ac_status); } &&
36820          { ac_try='test -s conftest$ac_exeext'
36821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36822   (eval $ac_try) 2>&5
36823   ac_status=$?
36824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825   (exit $ac_status); }; }; then
36826   eval "$as_ac_var=yes"
36827 else
36828   echo "$as_me: failed program was:" >&5
36829 sed 's/^/| /' conftest.$ac_ext >&5
36830
36831 eval "$as_ac_var=no"
36832 fi
36833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36834 fi
36835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36837 if test `eval echo '${'$as_ac_var'}'` = yes; then
36838   cat >>confdefs.h <<_ACEOF
36839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36840 _ACEOF
36841
36842 fi
36843 done
36844
36845   else
36846
36847   echo "$as_me:$LINENO: checking for _fabsl declaration" >&5
36848 echo $ECHO_N "checking for _fabsl declaration... $ECHO_C" >&6
36849   if test x${glibcxx_cv_func__fabsl_use+set} != xset; then
36850     if test "${glibcxx_cv_func__fabsl_use+set}" = set; then
36851   echo $ECHO_N "(cached) $ECHO_C" >&6
36852 else
36853
36854
36855
36856       ac_ext=cc
36857 ac_cpp='$CXXCPP $CPPFLAGS'
36858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36861
36862       cat >conftest.$ac_ext <<_ACEOF
36863 #line $LINENO "configure"
36864 /* confdefs.h.  */
36865 _ACEOF
36866 cat confdefs.h >>conftest.$ac_ext
36867 cat >>conftest.$ac_ext <<_ACEOF
36868 /* end confdefs.h.  */
36869 #include <math.h>
36870                       #ifdef HAVE_IEEEFP_H
36871                       #include <ieeefp.h>
36872                       #endif
36873
36874 int
36875 main ()
36876 {
36877  _fabsl(0);
36878   ;
36879   return 0;
36880 }
36881 _ACEOF
36882 rm -f conftest.$ac_objext
36883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36884   (eval $ac_compile) 2>&5
36885   ac_status=$?
36886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36887   (exit $ac_status); } &&
36888          { ac_try='test -s conftest.$ac_objext'
36889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36890   (eval $ac_try) 2>&5
36891   ac_status=$?
36892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893   (exit $ac_status); }; }; then
36894   glibcxx_cv_func__fabsl_use=yes
36895 else
36896   echo "$as_me: failed program was:" >&5
36897 sed 's/^/| /' conftest.$ac_ext >&5
36898
36899 glibcxx_cv_func__fabsl_use=no
36900 fi
36901 rm -f conftest.$ac_objext conftest.$ac_ext
36902       ac_ext=c
36903 ac_cpp='$CPP $CPPFLAGS'
36904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36907
36908
36909 fi
36910
36911   fi
36912   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fabsl_use" >&5
36913 echo "${ECHO_T}$glibcxx_cv_func__fabsl_use" >&6
36914
36915     if test x$glibcxx_cv_func__fabsl_use = x"yes"; then
36916
36917 for ac_func in _fabsl
36918 do
36919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36920 echo "$as_me:$LINENO: checking for $ac_func" >&5
36921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36922 if eval "test \"\${$as_ac_var+set}\" = set"; then
36923   echo $ECHO_N "(cached) $ECHO_C" >&6
36924 else
36925   cat >conftest.$ac_ext <<_ACEOF
36926 #line $LINENO "configure"
36927 /* confdefs.h.  */
36928 _ACEOF
36929 cat confdefs.h >>conftest.$ac_ext
36930 cat >>conftest.$ac_ext <<_ACEOF
36931 /* end confdefs.h.  */
36932 /* System header to define __stub macros and hopefully few prototypes,
36933     which can conflict with char $ac_func (); below.
36934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36935     <limits.h> exists even on freestanding compilers.  */
36936 #ifdef __STDC__
36937 # include <limits.h>
36938 #else
36939 # include <assert.h>
36940 #endif
36941 /* Override any gcc2 internal prototype to avoid an error.  */
36942 #ifdef __cplusplus
36943 extern "C"
36944 {
36945 #endif
36946 /* We use char because int might match the return type of a gcc2
36947    builtin and then its argument prototype would still apply.  */
36948 char $ac_func ();
36949 /* The GNU C library defines this for functions which it implements
36950     to always fail with ENOSYS.  Some functions are actually named
36951     something starting with __ and the normal name is an alias.  */
36952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36953 choke me
36954 #else
36955 char (*f) () = $ac_func;
36956 #endif
36957 #ifdef __cplusplus
36958 }
36959 #endif
36960
36961 int
36962 main ()
36963 {
36964 return f != $ac_func;
36965   ;
36966   return 0;
36967 }
36968 _ACEOF
36969 rm -f conftest.$ac_objext conftest$ac_exeext
36970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36971   (eval $ac_link) 2>&5
36972   ac_status=$?
36973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36974   (exit $ac_status); } &&
36975          { ac_try='test -s conftest$ac_exeext'
36976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36977   (eval $ac_try) 2>&5
36978   ac_status=$?
36979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36980   (exit $ac_status); }; }; then
36981   eval "$as_ac_var=yes"
36982 else
36983   echo "$as_me: failed program was:" >&5
36984 sed 's/^/| /' conftest.$ac_ext >&5
36985
36986 eval "$as_ac_var=no"
36987 fi
36988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
36989 fi
36990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36991 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36992 if test `eval echo '${'$as_ac_var'}'` = yes; then
36993   cat >>confdefs.h <<_ACEOF
36994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36995 _ACEOF
36996
36997 fi
36998 done
36999
37000     fi
37001   fi
37002
37003
37004
37005   echo "$as_me:$LINENO: checking for fmodl declaration" >&5
37006 echo $ECHO_N "checking for fmodl declaration... $ECHO_C" >&6
37007   if test x${glibcxx_cv_func_fmodl_use+set} != xset; then
37008     if test "${glibcxx_cv_func_fmodl_use+set}" = set; then
37009   echo $ECHO_N "(cached) $ECHO_C" >&6
37010 else
37011
37012
37013
37014       ac_ext=cc
37015 ac_cpp='$CXXCPP $CPPFLAGS'
37016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37019
37020       cat >conftest.$ac_ext <<_ACEOF
37021 #line $LINENO "configure"
37022 /* confdefs.h.  */
37023 _ACEOF
37024 cat confdefs.h >>conftest.$ac_ext
37025 cat >>conftest.$ac_ext <<_ACEOF
37026 /* end confdefs.h.  */
37027 #include <math.h>
37028 int
37029 main ()
37030 {
37031  fmodl(0, 0);
37032   ;
37033   return 0;
37034 }
37035 _ACEOF
37036 rm -f conftest.$ac_objext
37037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37038   (eval $ac_compile) 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_fmodl_use=yes
37049 else
37050   echo "$as_me: failed program was:" >&5
37051 sed 's/^/| /' conftest.$ac_ext >&5
37052
37053 glibcxx_cv_func_fmodl_use=no
37054 fi
37055 rm -f 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_fmodl_use" >&5
37067 echo "${ECHO_T}$glibcxx_cv_func_fmodl_use" >&6
37068
37069   if test x$glibcxx_cv_func_fmodl_use = x"yes"; then
37070
37071 for ac_func in fmodl
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   cat >conftest.$ac_ext <<_ACEOF
37080 #line $LINENO "configure"
37081 /* confdefs.h.  */
37082 _ACEOF
37083 cat confdefs.h >>conftest.$ac_ext
37084 cat >>conftest.$ac_ext <<_ACEOF
37085 /* end confdefs.h.  */
37086 /* System header to define __stub macros and hopefully few prototypes,
37087     which can conflict with char $ac_func (); below.
37088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37089     <limits.h> exists even on freestanding compilers.  */
37090 #ifdef __STDC__
37091 # include <limits.h>
37092 #else
37093 # include <assert.h>
37094 #endif
37095 /* Override any gcc2 internal prototype to avoid an error.  */
37096 #ifdef __cplusplus
37097 extern "C"
37098 {
37099 #endif
37100 /* We use char because int might match the return type of a gcc2
37101    builtin and then its argument prototype would still apply.  */
37102 char $ac_func ();
37103 /* The GNU C library defines this for functions which it implements
37104     to always fail with ENOSYS.  Some functions are actually named
37105     something starting with __ and the normal name is an alias.  */
37106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37107 choke me
37108 #else
37109 char (*f) () = $ac_func;
37110 #endif
37111 #ifdef __cplusplus
37112 }
37113 #endif
37114
37115 int
37116 main ()
37117 {
37118 return f != $ac_func;
37119   ;
37120   return 0;
37121 }
37122 _ACEOF
37123 rm -f conftest.$ac_objext conftest$ac_exeext
37124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37125   (eval $ac_link) 2>&5
37126   ac_status=$?
37127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128   (exit $ac_status); } &&
37129          { ac_try='test -s conftest$ac_exeext'
37130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37131   (eval $ac_try) 2>&5
37132   ac_status=$?
37133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134   (exit $ac_status); }; }; then
37135   eval "$as_ac_var=yes"
37136 else
37137   echo "$as_me: failed program was:" >&5
37138 sed 's/^/| /' conftest.$ac_ext >&5
37139
37140 eval "$as_ac_var=no"
37141 fi
37142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37143 fi
37144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37146 if test `eval echo '${'$as_ac_var'}'` = yes; then
37147   cat >>confdefs.h <<_ACEOF
37148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37149 _ACEOF
37150
37151 fi
37152 done
37153
37154   else
37155
37156   echo "$as_me:$LINENO: checking for _fmodl declaration" >&5
37157 echo $ECHO_N "checking for _fmodl declaration... $ECHO_C" >&6
37158   if test x${glibcxx_cv_func__fmodl_use+set} != xset; then
37159     if test "${glibcxx_cv_func__fmodl_use+set}" = set; then
37160   echo $ECHO_N "(cached) $ECHO_C" >&6
37161 else
37162
37163
37164
37165       ac_ext=cc
37166 ac_cpp='$CXXCPP $CPPFLAGS'
37167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37170
37171       cat >conftest.$ac_ext <<_ACEOF
37172 #line $LINENO "configure"
37173 /* confdefs.h.  */
37174 _ACEOF
37175 cat confdefs.h >>conftest.$ac_ext
37176 cat >>conftest.$ac_ext <<_ACEOF
37177 /* end confdefs.h.  */
37178 #include <math.h>
37179 int
37180 main ()
37181 {
37182  _fmodl(0, 0);
37183   ;
37184   return 0;
37185 }
37186 _ACEOF
37187 rm -f conftest.$ac_objext
37188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37189   (eval $ac_compile) 2>&5
37190   ac_status=$?
37191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37192   (exit $ac_status); } &&
37193          { ac_try='test -s conftest.$ac_objext'
37194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37195   (eval $ac_try) 2>&5
37196   ac_status=$?
37197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37198   (exit $ac_status); }; }; then
37199   glibcxx_cv_func__fmodl_use=yes
37200 else
37201   echo "$as_me: failed program was:" >&5
37202 sed 's/^/| /' conftest.$ac_ext >&5
37203
37204 glibcxx_cv_func__fmodl_use=no
37205 fi
37206 rm -f conftest.$ac_objext conftest.$ac_ext
37207       ac_ext=c
37208 ac_cpp='$CPP $CPPFLAGS'
37209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37212
37213
37214 fi
37215
37216   fi
37217   echo "$as_me:$LINENO: result: $glibcxx_cv_func__fmodl_use" >&5
37218 echo "${ECHO_T}$glibcxx_cv_func__fmodl_use" >&6
37219
37220     if test x$glibcxx_cv_func__fmodl_use = x"yes"; then
37221
37222 for ac_func in _fmodl
37223 do
37224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37225 echo "$as_me:$LINENO: checking for $ac_func" >&5
37226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37227 if eval "test \"\${$as_ac_var+set}\" = set"; then
37228   echo $ECHO_N "(cached) $ECHO_C" >&6
37229 else
37230   cat >conftest.$ac_ext <<_ACEOF
37231 #line $LINENO "configure"
37232 /* confdefs.h.  */
37233 _ACEOF
37234 cat confdefs.h >>conftest.$ac_ext
37235 cat >>conftest.$ac_ext <<_ACEOF
37236 /* end confdefs.h.  */
37237 /* System header to define __stub macros and hopefully few prototypes,
37238     which can conflict with char $ac_func (); below.
37239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37240     <limits.h> exists even on freestanding compilers.  */
37241 #ifdef __STDC__
37242 # include <limits.h>
37243 #else
37244 # include <assert.h>
37245 #endif
37246 /* Override any gcc2 internal prototype to avoid an error.  */
37247 #ifdef __cplusplus
37248 extern "C"
37249 {
37250 #endif
37251 /* We use char because int might match the return type of a gcc2
37252    builtin and then its argument prototype would still apply.  */
37253 char $ac_func ();
37254 /* The GNU C library defines this for functions which it implements
37255     to always fail with ENOSYS.  Some functions are actually named
37256     something starting with __ and the normal name is an alias.  */
37257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37258 choke me
37259 #else
37260 char (*f) () = $ac_func;
37261 #endif
37262 #ifdef __cplusplus
37263 }
37264 #endif
37265
37266 int
37267 main ()
37268 {
37269 return f != $ac_func;
37270   ;
37271   return 0;
37272 }
37273 _ACEOF
37274 rm -f conftest.$ac_objext conftest$ac_exeext
37275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37276   (eval $ac_link) 2>&5
37277   ac_status=$?
37278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37279   (exit $ac_status); } &&
37280          { ac_try='test -s conftest$ac_exeext'
37281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37282   (eval $ac_try) 2>&5
37283   ac_status=$?
37284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37285   (exit $ac_status); }; }; then
37286   eval "$as_ac_var=yes"
37287 else
37288   echo "$as_me: failed program was:" >&5
37289 sed 's/^/| /' conftest.$ac_ext >&5
37290
37291 eval "$as_ac_var=no"
37292 fi
37293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37294 fi
37295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37297 if test `eval echo '${'$as_ac_var'}'` = yes; then
37298   cat >>confdefs.h <<_ACEOF
37299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37300 _ACEOF
37301
37302 fi
37303 done
37304
37305     fi
37306   fi
37307
37308
37309
37310   echo "$as_me:$LINENO: checking for frexpl declaration" >&5
37311 echo $ECHO_N "checking for frexpl declaration... $ECHO_C" >&6
37312   if test x${glibcxx_cv_func_frexpl_use+set} != xset; then
37313     if test "${glibcxx_cv_func_frexpl_use+set}" = set; then
37314   echo $ECHO_N "(cached) $ECHO_C" >&6
37315 else
37316
37317
37318
37319       ac_ext=cc
37320 ac_cpp='$CXXCPP $CPPFLAGS'
37321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37324
37325       cat >conftest.$ac_ext <<_ACEOF
37326 #line $LINENO "configure"
37327 /* confdefs.h.  */
37328 _ACEOF
37329 cat confdefs.h >>conftest.$ac_ext
37330 cat >>conftest.$ac_ext <<_ACEOF
37331 /* end confdefs.h.  */
37332 #include <math.h>
37333 int
37334 main ()
37335 {
37336  frexpl(0, 0);
37337   ;
37338   return 0;
37339 }
37340 _ACEOF
37341 rm -f conftest.$ac_objext
37342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37343   (eval $ac_compile) 2>&5
37344   ac_status=$?
37345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37346   (exit $ac_status); } &&
37347          { ac_try='test -s conftest.$ac_objext'
37348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37349   (eval $ac_try) 2>&5
37350   ac_status=$?
37351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37352   (exit $ac_status); }; }; then
37353   glibcxx_cv_func_frexpl_use=yes
37354 else
37355   echo "$as_me: failed program was:" >&5
37356 sed 's/^/| /' conftest.$ac_ext >&5
37357
37358 glibcxx_cv_func_frexpl_use=no
37359 fi
37360 rm -f conftest.$ac_objext conftest.$ac_ext
37361       ac_ext=c
37362 ac_cpp='$CPP $CPPFLAGS'
37363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37366
37367
37368 fi
37369
37370   fi
37371   echo "$as_me:$LINENO: result: $glibcxx_cv_func_frexpl_use" >&5
37372 echo "${ECHO_T}$glibcxx_cv_func_frexpl_use" >&6
37373
37374   if test x$glibcxx_cv_func_frexpl_use = x"yes"; then
37375
37376 for ac_func in frexpl
37377 do
37378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37379 echo "$as_me:$LINENO: checking for $ac_func" >&5
37380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37381 if eval "test \"\${$as_ac_var+set}\" = set"; then
37382   echo $ECHO_N "(cached) $ECHO_C" >&6
37383 else
37384   cat >conftest.$ac_ext <<_ACEOF
37385 #line $LINENO "configure"
37386 /* confdefs.h.  */
37387 _ACEOF
37388 cat confdefs.h >>conftest.$ac_ext
37389 cat >>conftest.$ac_ext <<_ACEOF
37390 /* end confdefs.h.  */
37391 /* System header to define __stub macros and hopefully few prototypes,
37392     which can conflict with char $ac_func (); below.
37393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37394     <limits.h> exists even on freestanding compilers.  */
37395 #ifdef __STDC__
37396 # include <limits.h>
37397 #else
37398 # include <assert.h>
37399 #endif
37400 /* Override any gcc2 internal prototype to avoid an error.  */
37401 #ifdef __cplusplus
37402 extern "C"
37403 {
37404 #endif
37405 /* We use char because int might match the return type of a gcc2
37406    builtin and then its argument prototype would still apply.  */
37407 char $ac_func ();
37408 /* The GNU C library defines this for functions which it implements
37409     to always fail with ENOSYS.  Some functions are actually named
37410     something starting with __ and the normal name is an alias.  */
37411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37412 choke me
37413 #else
37414 char (*f) () = $ac_func;
37415 #endif
37416 #ifdef __cplusplus
37417 }
37418 #endif
37419
37420 int
37421 main ()
37422 {
37423 return f != $ac_func;
37424   ;
37425   return 0;
37426 }
37427 _ACEOF
37428 rm -f conftest.$ac_objext conftest$ac_exeext
37429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37430   (eval $ac_link) 2>&5
37431   ac_status=$?
37432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37433   (exit $ac_status); } &&
37434          { ac_try='test -s conftest$ac_exeext'
37435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37436   (eval $ac_try) 2>&5
37437   ac_status=$?
37438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37439   (exit $ac_status); }; }; then
37440   eval "$as_ac_var=yes"
37441 else
37442   echo "$as_me: failed program was:" >&5
37443 sed 's/^/| /' conftest.$ac_ext >&5
37444
37445 eval "$as_ac_var=no"
37446 fi
37447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37448 fi
37449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37451 if test `eval echo '${'$as_ac_var'}'` = yes; then
37452   cat >>confdefs.h <<_ACEOF
37453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37454 _ACEOF
37455
37456 fi
37457 done
37458
37459   else
37460
37461   echo "$as_me:$LINENO: checking for _frexpl declaration" >&5
37462 echo $ECHO_N "checking for _frexpl declaration... $ECHO_C" >&6
37463   if test x${glibcxx_cv_func__frexpl_use+set} != xset; then
37464     if test "${glibcxx_cv_func__frexpl_use+set}" = set; then
37465   echo $ECHO_N "(cached) $ECHO_C" >&6
37466 else
37467
37468
37469
37470       ac_ext=cc
37471 ac_cpp='$CXXCPP $CPPFLAGS'
37472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37475
37476       cat >conftest.$ac_ext <<_ACEOF
37477 #line $LINENO "configure"
37478 /* confdefs.h.  */
37479 _ACEOF
37480 cat confdefs.h >>conftest.$ac_ext
37481 cat >>conftest.$ac_ext <<_ACEOF
37482 /* end confdefs.h.  */
37483 #include <math.h>
37484 int
37485 main ()
37486 {
37487  _frexpl(0, 0);
37488   ;
37489   return 0;
37490 }
37491 _ACEOF
37492 rm -f conftest.$ac_objext
37493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37494   (eval $ac_compile) 2>&5
37495   ac_status=$?
37496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37497   (exit $ac_status); } &&
37498          { ac_try='test -s conftest.$ac_objext'
37499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37500   (eval $ac_try) 2>&5
37501   ac_status=$?
37502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37503   (exit $ac_status); }; }; then
37504   glibcxx_cv_func__frexpl_use=yes
37505 else
37506   echo "$as_me: failed program was:" >&5
37507 sed 's/^/| /' conftest.$ac_ext >&5
37508
37509 glibcxx_cv_func__frexpl_use=no
37510 fi
37511 rm -f conftest.$ac_objext conftest.$ac_ext
37512       ac_ext=c
37513 ac_cpp='$CPP $CPPFLAGS'
37514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37517
37518
37519 fi
37520
37521   fi
37522   echo "$as_me:$LINENO: result: $glibcxx_cv_func__frexpl_use" >&5
37523 echo "${ECHO_T}$glibcxx_cv_func__frexpl_use" >&6
37524
37525     if test x$glibcxx_cv_func__frexpl_use = x"yes"; then
37526
37527 for ac_func in _frexpl
37528 do
37529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37530 echo "$as_me:$LINENO: checking for $ac_func" >&5
37531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37532 if eval "test \"\${$as_ac_var+set}\" = set"; then
37533   echo $ECHO_N "(cached) $ECHO_C" >&6
37534 else
37535   cat >conftest.$ac_ext <<_ACEOF
37536 #line $LINENO "configure"
37537 /* confdefs.h.  */
37538 _ACEOF
37539 cat confdefs.h >>conftest.$ac_ext
37540 cat >>conftest.$ac_ext <<_ACEOF
37541 /* end confdefs.h.  */
37542 /* System header to define __stub macros and hopefully few prototypes,
37543     which can conflict with char $ac_func (); below.
37544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37545     <limits.h> exists even on freestanding compilers.  */
37546 #ifdef __STDC__
37547 # include <limits.h>
37548 #else
37549 # include <assert.h>
37550 #endif
37551 /* Override any gcc2 internal prototype to avoid an error.  */
37552 #ifdef __cplusplus
37553 extern "C"
37554 {
37555 #endif
37556 /* We use char because int might match the return type of a gcc2
37557    builtin and then its argument prototype would still apply.  */
37558 char $ac_func ();
37559 /* The GNU C library defines this for functions which it implements
37560     to always fail with ENOSYS.  Some functions are actually named
37561     something starting with __ and the normal name is an alias.  */
37562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37563 choke me
37564 #else
37565 char (*f) () = $ac_func;
37566 #endif
37567 #ifdef __cplusplus
37568 }
37569 #endif
37570
37571 int
37572 main ()
37573 {
37574 return f != $ac_func;
37575   ;
37576   return 0;
37577 }
37578 _ACEOF
37579 rm -f conftest.$ac_objext conftest$ac_exeext
37580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37581   (eval $ac_link) 2>&5
37582   ac_status=$?
37583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37584   (exit $ac_status); } &&
37585          { ac_try='test -s conftest$ac_exeext'
37586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37587   (eval $ac_try) 2>&5
37588   ac_status=$?
37589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590   (exit $ac_status); }; }; then
37591   eval "$as_ac_var=yes"
37592 else
37593   echo "$as_me: failed program was:" >&5
37594 sed 's/^/| /' conftest.$ac_ext >&5
37595
37596 eval "$as_ac_var=no"
37597 fi
37598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37599 fi
37600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37602 if test `eval echo '${'$as_ac_var'}'` = yes; then
37603   cat >>confdefs.h <<_ACEOF
37604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37605 _ACEOF
37606
37607 fi
37608 done
37609
37610     fi
37611   fi
37612
37613
37614
37615   echo "$as_me:$LINENO: checking for hypotl declaration" >&5
37616 echo $ECHO_N "checking for hypotl declaration... $ECHO_C" >&6
37617   if test x${glibcxx_cv_func_hypotl_use+set} != xset; then
37618     if test "${glibcxx_cv_func_hypotl_use+set}" = set; then
37619   echo $ECHO_N "(cached) $ECHO_C" >&6
37620 else
37621
37622
37623
37624       ac_ext=cc
37625 ac_cpp='$CXXCPP $CPPFLAGS'
37626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37629
37630       cat >conftest.$ac_ext <<_ACEOF
37631 #line $LINENO "configure"
37632 /* confdefs.h.  */
37633 _ACEOF
37634 cat confdefs.h >>conftest.$ac_ext
37635 cat >>conftest.$ac_ext <<_ACEOF
37636 /* end confdefs.h.  */
37637 #include <math.h>
37638 int
37639 main ()
37640 {
37641  hypotl(0, 0);
37642   ;
37643   return 0;
37644 }
37645 _ACEOF
37646 rm -f conftest.$ac_objext
37647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37648   (eval $ac_compile) 2>&5
37649   ac_status=$?
37650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37651   (exit $ac_status); } &&
37652          { ac_try='test -s conftest.$ac_objext'
37653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37654   (eval $ac_try) 2>&5
37655   ac_status=$?
37656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37657   (exit $ac_status); }; }; then
37658   glibcxx_cv_func_hypotl_use=yes
37659 else
37660   echo "$as_me: failed program was:" >&5
37661 sed 's/^/| /' conftest.$ac_ext >&5
37662
37663 glibcxx_cv_func_hypotl_use=no
37664 fi
37665 rm -f conftest.$ac_objext conftest.$ac_ext
37666       ac_ext=c
37667 ac_cpp='$CPP $CPPFLAGS'
37668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37671
37672
37673 fi
37674
37675   fi
37676   echo "$as_me:$LINENO: result: $glibcxx_cv_func_hypotl_use" >&5
37677 echo "${ECHO_T}$glibcxx_cv_func_hypotl_use" >&6
37678
37679   if test x$glibcxx_cv_func_hypotl_use = x"yes"; then
37680
37681 for ac_func in hypotl
37682 do
37683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37684 echo "$as_me:$LINENO: checking for $ac_func" >&5
37685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37686 if eval "test \"\${$as_ac_var+set}\" = set"; then
37687   echo $ECHO_N "(cached) $ECHO_C" >&6
37688 else
37689   cat >conftest.$ac_ext <<_ACEOF
37690 #line $LINENO "configure"
37691 /* confdefs.h.  */
37692 _ACEOF
37693 cat confdefs.h >>conftest.$ac_ext
37694 cat >>conftest.$ac_ext <<_ACEOF
37695 /* end confdefs.h.  */
37696 /* System header to define __stub macros and hopefully few prototypes,
37697     which can conflict with char $ac_func (); below.
37698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37699     <limits.h> exists even on freestanding compilers.  */
37700 #ifdef __STDC__
37701 # include <limits.h>
37702 #else
37703 # include <assert.h>
37704 #endif
37705 /* Override any gcc2 internal prototype to avoid an error.  */
37706 #ifdef __cplusplus
37707 extern "C"
37708 {
37709 #endif
37710 /* We use char because int might match the return type of a gcc2
37711    builtin and then its argument prototype would still apply.  */
37712 char $ac_func ();
37713 /* The GNU C library defines this for functions which it implements
37714     to always fail with ENOSYS.  Some functions are actually named
37715     something starting with __ and the normal name is an alias.  */
37716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37717 choke me
37718 #else
37719 char (*f) () = $ac_func;
37720 #endif
37721 #ifdef __cplusplus
37722 }
37723 #endif
37724
37725 int
37726 main ()
37727 {
37728 return f != $ac_func;
37729   ;
37730   return 0;
37731 }
37732 _ACEOF
37733 rm -f conftest.$ac_objext conftest$ac_exeext
37734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37735   (eval $ac_link) 2>&5
37736   ac_status=$?
37737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738   (exit $ac_status); } &&
37739          { ac_try='test -s conftest$ac_exeext'
37740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37741   (eval $ac_try) 2>&5
37742   ac_status=$?
37743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744   (exit $ac_status); }; }; then
37745   eval "$as_ac_var=yes"
37746 else
37747   echo "$as_me: failed program was:" >&5
37748 sed 's/^/| /' conftest.$ac_ext >&5
37749
37750 eval "$as_ac_var=no"
37751 fi
37752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
37753 fi
37754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37756 if test `eval echo '${'$as_ac_var'}'` = yes; then
37757   cat >>confdefs.h <<_ACEOF
37758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37759 _ACEOF
37760
37761 fi
37762 done
37763
37764   else
37765
37766   echo "$as_me:$LINENO: checking for _hypotl declaration" >&5
37767 echo $ECHO_N "checking for _hypotl declaration... $ECHO_C" >&6
37768   if test x${glibcxx_cv_func__hypotl_use+set} != xset; then
37769     if test "${glibcxx_cv_func__hypotl_use+set}" = set; then
37770   echo $ECHO_N "(cached) $ECHO_C" >&6
37771 else
37772
37773
37774
37775       ac_ext=cc
37776 ac_cpp='$CXXCPP $CPPFLAGS'
37777 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37778 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37779 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37780
37781       cat >conftest.$ac_ext <<_ACEOF
37782 #line $LINENO "configure"
37783 /* confdefs.h.  */
37784 _ACEOF
37785 cat confdefs.h >>conftest.$ac_ext
37786 cat >>conftest.$ac_ext <<_ACEOF
37787 /* end confdefs.h.  */
37788 #include <math.h>
37789 int
37790 main ()
37791 {
37792  _hypotl(0, 0);
37793   ;
37794   return 0;
37795 }
37796 _ACEOF
37797 rm -f conftest.$ac_objext
37798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37799   (eval $ac_compile) 2>&5
37800   ac_status=$?
37801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802   (exit $ac_status); } &&
37803          { ac_try='test -s conftest.$ac_objext'
37804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37805   (eval $ac_try) 2>&5
37806   ac_status=$?
37807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37808   (exit $ac_status); }; }; then
37809   glibcxx_cv_func__hypotl_use=yes
37810 else
37811   echo "$as_me: failed program was:" >&5
37812 sed 's/^/| /' conftest.$ac_ext >&5
37813
37814 glibcxx_cv_func__hypotl_use=no
37815 fi
37816 rm -f conftest.$ac_objext conftest.$ac_ext
37817       ac_ext=c
37818 ac_cpp='$CPP $CPPFLAGS'
37819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37822
37823
37824 fi
37825
37826   fi
37827   echo "$as_me:$LINENO: result: $glibcxx_cv_func__hypotl_use" >&5
37828 echo "${ECHO_T}$glibcxx_cv_func__hypotl_use" >&6
37829
37830     if test x$glibcxx_cv_func__hypotl_use = x"yes"; then
37831
37832 for ac_func in _hypotl
37833 do
37834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37835 echo "$as_me:$LINENO: checking for $ac_func" >&5
37836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37837 if eval "test \"\${$as_ac_var+set}\" = set"; then
37838   echo $ECHO_N "(cached) $ECHO_C" >&6
37839 else
37840   cat >conftest.$ac_ext <<_ACEOF
37841 #line $LINENO "configure"
37842 /* confdefs.h.  */
37843 _ACEOF
37844 cat confdefs.h >>conftest.$ac_ext
37845 cat >>conftest.$ac_ext <<_ACEOF
37846 /* end confdefs.h.  */
37847 /* System header to define __stub macros and hopefully few prototypes,
37848     which can conflict with char $ac_func (); below.
37849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37850     <limits.h> exists even on freestanding compilers.  */
37851 #ifdef __STDC__
37852 # include <limits.h>
37853 #else
37854 # include <assert.h>
37855 #endif
37856 /* Override any gcc2 internal prototype to avoid an error.  */
37857 #ifdef __cplusplus
37858 extern "C"
37859 {
37860 #endif
37861 /* We use char because int might match the return type of a gcc2
37862    builtin and then its argument prototype would still apply.  */
37863 char $ac_func ();
37864 /* The GNU C library defines this for functions which it implements
37865     to always fail with ENOSYS.  Some functions are actually named
37866     something starting with __ and the normal name is an alias.  */
37867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37868 choke me
37869 #else
37870 char (*f) () = $ac_func;
37871 #endif
37872 #ifdef __cplusplus
37873 }
37874 #endif
37875
37876 int
37877 main ()
37878 {
37879 return f != $ac_func;
37880   ;
37881   return 0;
37882 }
37883 _ACEOF
37884 rm -f conftest.$ac_objext conftest$ac_exeext
37885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37886   (eval $ac_link) 2>&5
37887   ac_status=$?
37888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889   (exit $ac_status); } &&
37890          { ac_try='test -s conftest$ac_exeext'
37891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37892   (eval $ac_try) 2>&5
37893   ac_status=$?
37894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895   (exit $ac_status); }; }; then
37896   eval "$as_ac_var=yes"
37897 else
37898   echo "$as_me: failed program was:" >&5
37899 sed 's/^/| /' conftest.$ac_ext >&5
37900
37901 eval "$as_ac_var=no"
37902 fi
37903 rm -f conftest.$ac_objext 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     fi
37916   fi
37917
37918
37919
37920   echo "$as_me:$LINENO: checking for ldexpl declaration" >&5
37921 echo $ECHO_N "checking for ldexpl declaration... $ECHO_C" >&6
37922   if test x${glibcxx_cv_func_ldexpl_use+set} != xset; then
37923     if test "${glibcxx_cv_func_ldexpl_use+set}" = set; then
37924   echo $ECHO_N "(cached) $ECHO_C" >&6
37925 else
37926
37927
37928
37929       ac_ext=cc
37930 ac_cpp='$CXXCPP $CPPFLAGS'
37931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37932 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37934
37935       cat >conftest.$ac_ext <<_ACEOF
37936 #line $LINENO "configure"
37937 /* confdefs.h.  */
37938 _ACEOF
37939 cat confdefs.h >>conftest.$ac_ext
37940 cat >>conftest.$ac_ext <<_ACEOF
37941 /* end confdefs.h.  */
37942 #include <math.h>
37943 int
37944 main ()
37945 {
37946  ldexpl(0, 0);
37947   ;
37948   return 0;
37949 }
37950 _ACEOF
37951 rm -f conftest.$ac_objext
37952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37953   (eval $ac_compile) 2>&5
37954   ac_status=$?
37955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956   (exit $ac_status); } &&
37957          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
37963   glibcxx_cv_func_ldexpl_use=yes
37964 else
37965   echo "$as_me: failed program was:" >&5
37966 sed 's/^/| /' conftest.$ac_ext >&5
37967
37968 glibcxx_cv_func_ldexpl_use=no
37969 fi
37970 rm -f conftest.$ac_objext conftest.$ac_ext
37971       ac_ext=c
37972 ac_cpp='$CPP $CPPFLAGS'
37973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37976
37977
37978 fi
37979
37980   fi
37981   echo "$as_me:$LINENO: result: $glibcxx_cv_func_ldexpl_use" >&5
37982 echo "${ECHO_T}$glibcxx_cv_func_ldexpl_use" >&6
37983
37984   if test x$glibcxx_cv_func_ldexpl_use = x"yes"; then
37985
37986 for ac_func in ldexpl
37987 do
37988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37989 echo "$as_me:$LINENO: checking for $ac_func" >&5
37990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37991 if eval "test \"\${$as_ac_var+set}\" = set"; then
37992   echo $ECHO_N "(cached) $ECHO_C" >&6
37993 else
37994   cat >conftest.$ac_ext <<_ACEOF
37995 #line $LINENO "configure"
37996 /* confdefs.h.  */
37997 _ACEOF
37998 cat confdefs.h >>conftest.$ac_ext
37999 cat >>conftest.$ac_ext <<_ACEOF
38000 /* end confdefs.h.  */
38001 /* System header to define __stub macros and hopefully few prototypes,
38002     which can conflict with char $ac_func (); below.
38003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38004     <limits.h> exists even on freestanding compilers.  */
38005 #ifdef __STDC__
38006 # include <limits.h>
38007 #else
38008 # include <assert.h>
38009 #endif
38010 /* Override any gcc2 internal prototype to avoid an error.  */
38011 #ifdef __cplusplus
38012 extern "C"
38013 {
38014 #endif
38015 /* We use char because int might match the return type of a gcc2
38016    builtin and then its argument prototype would still apply.  */
38017 char $ac_func ();
38018 /* The GNU C library defines this for functions which it implements
38019     to always fail with ENOSYS.  Some functions are actually named
38020     something starting with __ and the normal name is an alias.  */
38021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38022 choke me
38023 #else
38024 char (*f) () = $ac_func;
38025 #endif
38026 #ifdef __cplusplus
38027 }
38028 #endif
38029
38030 int
38031 main ()
38032 {
38033 return f != $ac_func;
38034   ;
38035   return 0;
38036 }
38037 _ACEOF
38038 rm -f conftest.$ac_objext conftest$ac_exeext
38039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38040   (eval $ac_link) 2>&5
38041   ac_status=$?
38042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043   (exit $ac_status); } &&
38044          { ac_try='test -s conftest$ac_exeext'
38045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38046   (eval $ac_try) 2>&5
38047   ac_status=$?
38048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38049   (exit $ac_status); }; }; then
38050   eval "$as_ac_var=yes"
38051 else
38052   echo "$as_me: failed program was:" >&5
38053 sed 's/^/| /' conftest.$ac_ext >&5
38054
38055 eval "$as_ac_var=no"
38056 fi
38057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38058 fi
38059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38061 if test `eval echo '${'$as_ac_var'}'` = yes; then
38062   cat >>confdefs.h <<_ACEOF
38063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38064 _ACEOF
38065
38066 fi
38067 done
38068
38069   else
38070
38071   echo "$as_me:$LINENO: checking for _ldexpl declaration" >&5
38072 echo $ECHO_N "checking for _ldexpl declaration... $ECHO_C" >&6
38073   if test x${glibcxx_cv_func__ldexpl_use+set} != xset; then
38074     if test "${glibcxx_cv_func__ldexpl_use+set}" = set; then
38075   echo $ECHO_N "(cached) $ECHO_C" >&6
38076 else
38077
38078
38079
38080       ac_ext=cc
38081 ac_cpp='$CXXCPP $CPPFLAGS'
38082 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38083 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38084 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38085
38086       cat >conftest.$ac_ext <<_ACEOF
38087 #line $LINENO "configure"
38088 /* confdefs.h.  */
38089 _ACEOF
38090 cat confdefs.h >>conftest.$ac_ext
38091 cat >>conftest.$ac_ext <<_ACEOF
38092 /* end confdefs.h.  */
38093 #include <math.h>
38094 int
38095 main ()
38096 {
38097  _ldexpl(0, 0);
38098   ;
38099   return 0;
38100 }
38101 _ACEOF
38102 rm -f conftest.$ac_objext
38103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38104   (eval $ac_compile) 2>&5
38105   ac_status=$?
38106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38107   (exit $ac_status); } &&
38108          { ac_try='test -s conftest.$ac_objext'
38109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38110   (eval $ac_try) 2>&5
38111   ac_status=$?
38112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38113   (exit $ac_status); }; }; then
38114   glibcxx_cv_func__ldexpl_use=yes
38115 else
38116   echo "$as_me: failed program was:" >&5
38117 sed 's/^/| /' conftest.$ac_ext >&5
38118
38119 glibcxx_cv_func__ldexpl_use=no
38120 fi
38121 rm -f conftest.$ac_objext conftest.$ac_ext
38122       ac_ext=c
38123 ac_cpp='$CPP $CPPFLAGS'
38124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38127
38128
38129 fi
38130
38131   fi
38132   echo "$as_me:$LINENO: result: $glibcxx_cv_func__ldexpl_use" >&5
38133 echo "${ECHO_T}$glibcxx_cv_func__ldexpl_use" >&6
38134
38135     if test x$glibcxx_cv_func__ldexpl_use = x"yes"; then
38136
38137 for ac_func in _ldexpl
38138 do
38139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38140 echo "$as_me:$LINENO: checking for $ac_func" >&5
38141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38142 if eval "test \"\${$as_ac_var+set}\" = set"; then
38143   echo $ECHO_N "(cached) $ECHO_C" >&6
38144 else
38145   cat >conftest.$ac_ext <<_ACEOF
38146 #line $LINENO "configure"
38147 /* confdefs.h.  */
38148 _ACEOF
38149 cat confdefs.h >>conftest.$ac_ext
38150 cat >>conftest.$ac_ext <<_ACEOF
38151 /* end confdefs.h.  */
38152 /* System header to define __stub macros and hopefully few prototypes,
38153     which can conflict with char $ac_func (); below.
38154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38155     <limits.h> exists even on freestanding compilers.  */
38156 #ifdef __STDC__
38157 # include <limits.h>
38158 #else
38159 # include <assert.h>
38160 #endif
38161 /* Override any gcc2 internal prototype to avoid an error.  */
38162 #ifdef __cplusplus
38163 extern "C"
38164 {
38165 #endif
38166 /* We use char because int might match the return type of a gcc2
38167    builtin and then its argument prototype would still apply.  */
38168 char $ac_func ();
38169 /* The GNU C library defines this for functions which it implements
38170     to always fail with ENOSYS.  Some functions are actually named
38171     something starting with __ and the normal name is an alias.  */
38172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38173 choke me
38174 #else
38175 char (*f) () = $ac_func;
38176 #endif
38177 #ifdef __cplusplus
38178 }
38179 #endif
38180
38181 int
38182 main ()
38183 {
38184 return f != $ac_func;
38185   ;
38186   return 0;
38187 }
38188 _ACEOF
38189 rm -f conftest.$ac_objext conftest$ac_exeext
38190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38191   (eval $ac_link) 2>&5
38192   ac_status=$?
38193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194   (exit $ac_status); } &&
38195          { ac_try='test -s conftest$ac_exeext'
38196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38197   (eval $ac_try) 2>&5
38198   ac_status=$?
38199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200   (exit $ac_status); }; }; then
38201   eval "$as_ac_var=yes"
38202 else
38203   echo "$as_me: failed program was:" >&5
38204 sed 's/^/| /' conftest.$ac_ext >&5
38205
38206 eval "$as_ac_var=no"
38207 fi
38208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38209 fi
38210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38212 if test `eval echo '${'$as_ac_var'}'` = yes; then
38213   cat >>confdefs.h <<_ACEOF
38214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38215 _ACEOF
38216
38217 fi
38218 done
38219
38220     fi
38221   fi
38222
38223
38224
38225   echo "$as_me:$LINENO: checking for logl declaration" >&5
38226 echo $ECHO_N "checking for logl declaration... $ECHO_C" >&6
38227   if test x${glibcxx_cv_func_logl_use+set} != xset; then
38228     if test "${glibcxx_cv_func_logl_use+set}" = set; then
38229   echo $ECHO_N "(cached) $ECHO_C" >&6
38230 else
38231
38232
38233
38234       ac_ext=cc
38235 ac_cpp='$CXXCPP $CPPFLAGS'
38236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38239
38240       cat >conftest.$ac_ext <<_ACEOF
38241 #line $LINENO "configure"
38242 /* confdefs.h.  */
38243 _ACEOF
38244 cat confdefs.h >>conftest.$ac_ext
38245 cat >>conftest.$ac_ext <<_ACEOF
38246 /* end confdefs.h.  */
38247 #include <math.h>
38248                       #ifdef HAVE_IEEEFP_H
38249                       #include <ieeefp.h>
38250                       #endif
38251
38252 int
38253 main ()
38254 {
38255  logl(0);
38256   ;
38257   return 0;
38258 }
38259 _ACEOF
38260 rm -f conftest.$ac_objext
38261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38262   (eval $ac_compile) 2>&5
38263   ac_status=$?
38264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38265   (exit $ac_status); } &&
38266          { ac_try='test -s conftest.$ac_objext'
38267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38268   (eval $ac_try) 2>&5
38269   ac_status=$?
38270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38271   (exit $ac_status); }; }; then
38272   glibcxx_cv_func_logl_use=yes
38273 else
38274   echo "$as_me: failed program was:" >&5
38275 sed 's/^/| /' conftest.$ac_ext >&5
38276
38277 glibcxx_cv_func_logl_use=no
38278 fi
38279 rm -f conftest.$ac_objext conftest.$ac_ext
38280       ac_ext=c
38281 ac_cpp='$CPP $CPPFLAGS'
38282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38285
38286
38287 fi
38288
38289   fi
38290   echo "$as_me:$LINENO: result: $glibcxx_cv_func_logl_use" >&5
38291 echo "${ECHO_T}$glibcxx_cv_func_logl_use" >&6
38292
38293   if test x$glibcxx_cv_func_logl_use = x"yes"; then
38294
38295 for ac_func in logl
38296 do
38297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38298 echo "$as_me:$LINENO: checking for $ac_func" >&5
38299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38300 if eval "test \"\${$as_ac_var+set}\" = set"; then
38301   echo $ECHO_N "(cached) $ECHO_C" >&6
38302 else
38303   cat >conftest.$ac_ext <<_ACEOF
38304 #line $LINENO "configure"
38305 /* confdefs.h.  */
38306 _ACEOF
38307 cat confdefs.h >>conftest.$ac_ext
38308 cat >>conftest.$ac_ext <<_ACEOF
38309 /* end confdefs.h.  */
38310 /* System header to define __stub macros and hopefully few prototypes,
38311     which can conflict with char $ac_func (); below.
38312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38313     <limits.h> exists even on freestanding compilers.  */
38314 #ifdef __STDC__
38315 # include <limits.h>
38316 #else
38317 # include <assert.h>
38318 #endif
38319 /* Override any gcc2 internal prototype to avoid an error.  */
38320 #ifdef __cplusplus
38321 extern "C"
38322 {
38323 #endif
38324 /* We use char because int might match the return type of a gcc2
38325    builtin and then its argument prototype would still apply.  */
38326 char $ac_func ();
38327 /* The GNU C library defines this for functions which it implements
38328     to always fail with ENOSYS.  Some functions are actually named
38329     something starting with __ and the normal name is an alias.  */
38330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38331 choke me
38332 #else
38333 char (*f) () = $ac_func;
38334 #endif
38335 #ifdef __cplusplus
38336 }
38337 #endif
38338
38339 int
38340 main ()
38341 {
38342 return f != $ac_func;
38343   ;
38344   return 0;
38345 }
38346 _ACEOF
38347 rm -f conftest.$ac_objext conftest$ac_exeext
38348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38349   (eval $ac_link) 2>&5
38350   ac_status=$?
38351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38352   (exit $ac_status); } &&
38353          { ac_try='test -s conftest$ac_exeext'
38354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38355   (eval $ac_try) 2>&5
38356   ac_status=$?
38357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38358   (exit $ac_status); }; }; then
38359   eval "$as_ac_var=yes"
38360 else
38361   echo "$as_me: failed program was:" >&5
38362 sed 's/^/| /' conftest.$ac_ext >&5
38363
38364 eval "$as_ac_var=no"
38365 fi
38366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38367 fi
38368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38370 if test `eval echo '${'$as_ac_var'}'` = yes; then
38371   cat >>confdefs.h <<_ACEOF
38372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38373 _ACEOF
38374
38375 fi
38376 done
38377
38378   else
38379
38380   echo "$as_me:$LINENO: checking for _logl declaration" >&5
38381 echo $ECHO_N "checking for _logl declaration... $ECHO_C" >&6
38382   if test x${glibcxx_cv_func__logl_use+set} != xset; then
38383     if test "${glibcxx_cv_func__logl_use+set}" = set; then
38384   echo $ECHO_N "(cached) $ECHO_C" >&6
38385 else
38386
38387
38388
38389       ac_ext=cc
38390 ac_cpp='$CXXCPP $CPPFLAGS'
38391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38394
38395       cat >conftest.$ac_ext <<_ACEOF
38396 #line $LINENO "configure"
38397 /* confdefs.h.  */
38398 _ACEOF
38399 cat confdefs.h >>conftest.$ac_ext
38400 cat >>conftest.$ac_ext <<_ACEOF
38401 /* end confdefs.h.  */
38402 #include <math.h>
38403                       #ifdef HAVE_IEEEFP_H
38404                       #include <ieeefp.h>
38405                       #endif
38406
38407 int
38408 main ()
38409 {
38410  _logl(0);
38411   ;
38412   return 0;
38413 }
38414 _ACEOF
38415 rm -f conftest.$ac_objext
38416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38417   (eval $ac_compile) 2>&5
38418   ac_status=$?
38419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38420   (exit $ac_status); } &&
38421          { ac_try='test -s conftest.$ac_objext'
38422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38423   (eval $ac_try) 2>&5
38424   ac_status=$?
38425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38426   (exit $ac_status); }; }; then
38427   glibcxx_cv_func__logl_use=yes
38428 else
38429   echo "$as_me: failed program was:" >&5
38430 sed 's/^/| /' conftest.$ac_ext >&5
38431
38432 glibcxx_cv_func__logl_use=no
38433 fi
38434 rm -f conftest.$ac_objext conftest.$ac_ext
38435       ac_ext=c
38436 ac_cpp='$CPP $CPPFLAGS'
38437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38440
38441
38442 fi
38443
38444   fi
38445   echo "$as_me:$LINENO: result: $glibcxx_cv_func__logl_use" >&5
38446 echo "${ECHO_T}$glibcxx_cv_func__logl_use" >&6
38447
38448     if test x$glibcxx_cv_func__logl_use = x"yes"; then
38449
38450 for ac_func in _logl
38451 do
38452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38453 echo "$as_me:$LINENO: checking for $ac_func" >&5
38454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38455 if eval "test \"\${$as_ac_var+set}\" = set"; then
38456   echo $ECHO_N "(cached) $ECHO_C" >&6
38457 else
38458   cat >conftest.$ac_ext <<_ACEOF
38459 #line $LINENO "configure"
38460 /* confdefs.h.  */
38461 _ACEOF
38462 cat confdefs.h >>conftest.$ac_ext
38463 cat >>conftest.$ac_ext <<_ACEOF
38464 /* end confdefs.h.  */
38465 /* System header to define __stub macros and hopefully few prototypes,
38466     which can conflict with char $ac_func (); below.
38467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38468     <limits.h> exists even on freestanding compilers.  */
38469 #ifdef __STDC__
38470 # include <limits.h>
38471 #else
38472 # include <assert.h>
38473 #endif
38474 /* Override any gcc2 internal prototype to avoid an error.  */
38475 #ifdef __cplusplus
38476 extern "C"
38477 {
38478 #endif
38479 /* We use char because int might match the return type of a gcc2
38480    builtin and then its argument prototype would still apply.  */
38481 char $ac_func ();
38482 /* The GNU C library defines this for functions which it implements
38483     to always fail with ENOSYS.  Some functions are actually named
38484     something starting with __ and the normal name is an alias.  */
38485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38486 choke me
38487 #else
38488 char (*f) () = $ac_func;
38489 #endif
38490 #ifdef __cplusplus
38491 }
38492 #endif
38493
38494 int
38495 main ()
38496 {
38497 return f != $ac_func;
38498   ;
38499   return 0;
38500 }
38501 _ACEOF
38502 rm -f conftest.$ac_objext conftest$ac_exeext
38503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38504   (eval $ac_link) 2>&5
38505   ac_status=$?
38506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38507   (exit $ac_status); } &&
38508          { ac_try='test -s conftest$ac_exeext'
38509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38510   (eval $ac_try) 2>&5
38511   ac_status=$?
38512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38513   (exit $ac_status); }; }; then
38514   eval "$as_ac_var=yes"
38515 else
38516   echo "$as_me: failed program was:" >&5
38517 sed 's/^/| /' conftest.$ac_ext >&5
38518
38519 eval "$as_ac_var=no"
38520 fi
38521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38522 fi
38523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38524 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38525 if test `eval echo '${'$as_ac_var'}'` = yes; then
38526   cat >>confdefs.h <<_ACEOF
38527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38528 _ACEOF
38529
38530 fi
38531 done
38532
38533     fi
38534   fi
38535
38536
38537
38538   echo "$as_me:$LINENO: checking for log10l declaration" >&5
38539 echo $ECHO_N "checking for log10l declaration... $ECHO_C" >&6
38540   if test x${glibcxx_cv_func_log10l_use+set} != xset; then
38541     if test "${glibcxx_cv_func_log10l_use+set}" = set; then
38542   echo $ECHO_N "(cached) $ECHO_C" >&6
38543 else
38544
38545
38546
38547       ac_ext=cc
38548 ac_cpp='$CXXCPP $CPPFLAGS'
38549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38552
38553       cat >conftest.$ac_ext <<_ACEOF
38554 #line $LINENO "configure"
38555 /* confdefs.h.  */
38556 _ACEOF
38557 cat confdefs.h >>conftest.$ac_ext
38558 cat >>conftest.$ac_ext <<_ACEOF
38559 /* end confdefs.h.  */
38560 #include <math.h>
38561                       #ifdef HAVE_IEEEFP_H
38562                       #include <ieeefp.h>
38563                       #endif
38564
38565 int
38566 main ()
38567 {
38568  log10l(0);
38569   ;
38570   return 0;
38571 }
38572 _ACEOF
38573 rm -f conftest.$ac_objext
38574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38575   (eval $ac_compile) 2>&5
38576   ac_status=$?
38577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38578   (exit $ac_status); } &&
38579          { ac_try='test -s conftest.$ac_objext'
38580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38581   (eval $ac_try) 2>&5
38582   ac_status=$?
38583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584   (exit $ac_status); }; }; then
38585   glibcxx_cv_func_log10l_use=yes
38586 else
38587   echo "$as_me: failed program was:" >&5
38588 sed 's/^/| /' conftest.$ac_ext >&5
38589
38590 glibcxx_cv_func_log10l_use=no
38591 fi
38592 rm -f conftest.$ac_objext conftest.$ac_ext
38593       ac_ext=c
38594 ac_cpp='$CPP $CPPFLAGS'
38595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38598
38599
38600 fi
38601
38602   fi
38603   echo "$as_me:$LINENO: result: $glibcxx_cv_func_log10l_use" >&5
38604 echo "${ECHO_T}$glibcxx_cv_func_log10l_use" >&6
38605
38606   if test x$glibcxx_cv_func_log10l_use = x"yes"; then
38607
38608 for ac_func in log10l
38609 do
38610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38611 echo "$as_me:$LINENO: checking for $ac_func" >&5
38612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38613 if eval "test \"\${$as_ac_var+set}\" = set"; then
38614   echo $ECHO_N "(cached) $ECHO_C" >&6
38615 else
38616   cat >conftest.$ac_ext <<_ACEOF
38617 #line $LINENO "configure"
38618 /* confdefs.h.  */
38619 _ACEOF
38620 cat confdefs.h >>conftest.$ac_ext
38621 cat >>conftest.$ac_ext <<_ACEOF
38622 /* end confdefs.h.  */
38623 /* System header to define __stub macros and hopefully few prototypes,
38624     which can conflict with char $ac_func (); below.
38625     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38626     <limits.h> exists even on freestanding compilers.  */
38627 #ifdef __STDC__
38628 # include <limits.h>
38629 #else
38630 # include <assert.h>
38631 #endif
38632 /* Override any gcc2 internal prototype to avoid an error.  */
38633 #ifdef __cplusplus
38634 extern "C"
38635 {
38636 #endif
38637 /* We use char because int might match the return type of a gcc2
38638    builtin and then its argument prototype would still apply.  */
38639 char $ac_func ();
38640 /* The GNU C library defines this for functions which it implements
38641     to always fail with ENOSYS.  Some functions are actually named
38642     something starting with __ and the normal name is an alias.  */
38643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38644 choke me
38645 #else
38646 char (*f) () = $ac_func;
38647 #endif
38648 #ifdef __cplusplus
38649 }
38650 #endif
38651
38652 int
38653 main ()
38654 {
38655 return f != $ac_func;
38656   ;
38657   return 0;
38658 }
38659 _ACEOF
38660 rm -f conftest.$ac_objext conftest$ac_exeext
38661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38662   (eval $ac_link) 2>&5
38663   ac_status=$?
38664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38665   (exit $ac_status); } &&
38666          { ac_try='test -s conftest$ac_exeext'
38667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38668   (eval $ac_try) 2>&5
38669   ac_status=$?
38670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671   (exit $ac_status); }; }; then
38672   eval "$as_ac_var=yes"
38673 else
38674   echo "$as_me: failed program was:" >&5
38675 sed 's/^/| /' conftest.$ac_ext >&5
38676
38677 eval "$as_ac_var=no"
38678 fi
38679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38680 fi
38681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38683 if test `eval echo '${'$as_ac_var'}'` = yes; then
38684   cat >>confdefs.h <<_ACEOF
38685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38686 _ACEOF
38687
38688 fi
38689 done
38690
38691   else
38692
38693   echo "$as_me:$LINENO: checking for _log10l declaration" >&5
38694 echo $ECHO_N "checking for _log10l declaration... $ECHO_C" >&6
38695   if test x${glibcxx_cv_func__log10l_use+set} != xset; then
38696     if test "${glibcxx_cv_func__log10l_use+set}" = set; then
38697   echo $ECHO_N "(cached) $ECHO_C" >&6
38698 else
38699
38700
38701
38702       ac_ext=cc
38703 ac_cpp='$CXXCPP $CPPFLAGS'
38704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38707
38708       cat >conftest.$ac_ext <<_ACEOF
38709 #line $LINENO "configure"
38710 /* confdefs.h.  */
38711 _ACEOF
38712 cat confdefs.h >>conftest.$ac_ext
38713 cat >>conftest.$ac_ext <<_ACEOF
38714 /* end confdefs.h.  */
38715 #include <math.h>
38716                       #ifdef HAVE_IEEEFP_H
38717                       #include <ieeefp.h>
38718                       #endif
38719
38720 int
38721 main ()
38722 {
38723  _log10l(0);
38724   ;
38725   return 0;
38726 }
38727 _ACEOF
38728 rm -f conftest.$ac_objext
38729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38730   (eval $ac_compile) 2>&5
38731   ac_status=$?
38732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38733   (exit $ac_status); } &&
38734          { ac_try='test -s conftest.$ac_objext'
38735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38736   (eval $ac_try) 2>&5
38737   ac_status=$?
38738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38739   (exit $ac_status); }; }; then
38740   glibcxx_cv_func__log10l_use=yes
38741 else
38742   echo "$as_me: failed program was:" >&5
38743 sed 's/^/| /' conftest.$ac_ext >&5
38744
38745 glibcxx_cv_func__log10l_use=no
38746 fi
38747 rm -f conftest.$ac_objext conftest.$ac_ext
38748       ac_ext=c
38749 ac_cpp='$CPP $CPPFLAGS'
38750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38753
38754
38755 fi
38756
38757   fi
38758   echo "$as_me:$LINENO: result: $glibcxx_cv_func__log10l_use" >&5
38759 echo "${ECHO_T}$glibcxx_cv_func__log10l_use" >&6
38760
38761     if test x$glibcxx_cv_func__log10l_use = x"yes"; then
38762
38763 for ac_func in _log10l
38764 do
38765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38766 echo "$as_me:$LINENO: checking for $ac_func" >&5
38767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38768 if eval "test \"\${$as_ac_var+set}\" = set"; then
38769   echo $ECHO_N "(cached) $ECHO_C" >&6
38770 else
38771   cat >conftest.$ac_ext <<_ACEOF
38772 #line $LINENO "configure"
38773 /* confdefs.h.  */
38774 _ACEOF
38775 cat confdefs.h >>conftest.$ac_ext
38776 cat >>conftest.$ac_ext <<_ACEOF
38777 /* end confdefs.h.  */
38778 /* System header to define __stub macros and hopefully few prototypes,
38779     which can conflict with char $ac_func (); below.
38780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38781     <limits.h> exists even on freestanding compilers.  */
38782 #ifdef __STDC__
38783 # include <limits.h>
38784 #else
38785 # include <assert.h>
38786 #endif
38787 /* Override any gcc2 internal prototype to avoid an error.  */
38788 #ifdef __cplusplus
38789 extern "C"
38790 {
38791 #endif
38792 /* We use char because int might match the return type of a gcc2
38793    builtin and then its argument prototype would still apply.  */
38794 char $ac_func ();
38795 /* The GNU C library defines this for functions which it implements
38796     to always fail with ENOSYS.  Some functions are actually named
38797     something starting with __ and the normal name is an alias.  */
38798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38799 choke me
38800 #else
38801 char (*f) () = $ac_func;
38802 #endif
38803 #ifdef __cplusplus
38804 }
38805 #endif
38806
38807 int
38808 main ()
38809 {
38810 return f != $ac_func;
38811   ;
38812   return 0;
38813 }
38814 _ACEOF
38815 rm -f conftest.$ac_objext conftest$ac_exeext
38816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38817   (eval $ac_link) 2>&5
38818   ac_status=$?
38819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38820   (exit $ac_status); } &&
38821          { ac_try='test -s conftest$ac_exeext'
38822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38823   (eval $ac_try) 2>&5
38824   ac_status=$?
38825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38826   (exit $ac_status); }; }; then
38827   eval "$as_ac_var=yes"
38828 else
38829   echo "$as_me: failed program was:" >&5
38830 sed 's/^/| /' conftest.$ac_ext >&5
38831
38832 eval "$as_ac_var=no"
38833 fi
38834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38835 fi
38836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38838 if test `eval echo '${'$as_ac_var'}'` = yes; then
38839   cat >>confdefs.h <<_ACEOF
38840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38841 _ACEOF
38842
38843 fi
38844 done
38845
38846     fi
38847   fi
38848
38849
38850
38851   echo "$as_me:$LINENO: checking for modfl declaration" >&5
38852 echo $ECHO_N "checking for modfl declaration... $ECHO_C" >&6
38853   if test x${glibcxx_cv_func_modfl_use+set} != xset; then
38854     if test "${glibcxx_cv_func_modfl_use+set}" = set; then
38855   echo $ECHO_N "(cached) $ECHO_C" >&6
38856 else
38857
38858
38859
38860       ac_ext=cc
38861 ac_cpp='$CXXCPP $CPPFLAGS'
38862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38865
38866       cat >conftest.$ac_ext <<_ACEOF
38867 #line $LINENO "configure"
38868 /* confdefs.h.  */
38869 _ACEOF
38870 cat confdefs.h >>conftest.$ac_ext
38871 cat >>conftest.$ac_ext <<_ACEOF
38872 /* end confdefs.h.  */
38873 #include <math.h>
38874 int
38875 main ()
38876 {
38877  modfl(0, 0);
38878   ;
38879   return 0;
38880 }
38881 _ACEOF
38882 rm -f conftest.$ac_objext
38883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38884   (eval $ac_compile) 2>&5
38885   ac_status=$?
38886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38887   (exit $ac_status); } &&
38888          { ac_try='test -s conftest.$ac_objext'
38889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38890   (eval $ac_try) 2>&5
38891   ac_status=$?
38892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38893   (exit $ac_status); }; }; then
38894   glibcxx_cv_func_modfl_use=yes
38895 else
38896   echo "$as_me: failed program was:" >&5
38897 sed 's/^/| /' conftest.$ac_ext >&5
38898
38899 glibcxx_cv_func_modfl_use=no
38900 fi
38901 rm -f conftest.$ac_objext conftest.$ac_ext
38902       ac_ext=c
38903 ac_cpp='$CPP $CPPFLAGS'
38904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38907
38908
38909 fi
38910
38911   fi
38912   echo "$as_me:$LINENO: result: $glibcxx_cv_func_modfl_use" >&5
38913 echo "${ECHO_T}$glibcxx_cv_func_modfl_use" >&6
38914
38915   if test x$glibcxx_cv_func_modfl_use = x"yes"; then
38916
38917 for ac_func in modfl
38918 do
38919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38920 echo "$as_me:$LINENO: checking for $ac_func" >&5
38921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38922 if eval "test \"\${$as_ac_var+set}\" = set"; then
38923   echo $ECHO_N "(cached) $ECHO_C" >&6
38924 else
38925   cat >conftest.$ac_ext <<_ACEOF
38926 #line $LINENO "configure"
38927 /* confdefs.h.  */
38928 _ACEOF
38929 cat confdefs.h >>conftest.$ac_ext
38930 cat >>conftest.$ac_ext <<_ACEOF
38931 /* end confdefs.h.  */
38932 /* System header to define __stub macros and hopefully few prototypes,
38933     which can conflict with char $ac_func (); below.
38934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38935     <limits.h> exists even on freestanding compilers.  */
38936 #ifdef __STDC__
38937 # include <limits.h>
38938 #else
38939 # include <assert.h>
38940 #endif
38941 /* Override any gcc2 internal prototype to avoid an error.  */
38942 #ifdef __cplusplus
38943 extern "C"
38944 {
38945 #endif
38946 /* We use char because int might match the return type of a gcc2
38947    builtin and then its argument prototype would still apply.  */
38948 char $ac_func ();
38949 /* The GNU C library defines this for functions which it implements
38950     to always fail with ENOSYS.  Some functions are actually named
38951     something starting with __ and the normal name is an alias.  */
38952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38953 choke me
38954 #else
38955 char (*f) () = $ac_func;
38956 #endif
38957 #ifdef __cplusplus
38958 }
38959 #endif
38960
38961 int
38962 main ()
38963 {
38964 return f != $ac_func;
38965   ;
38966   return 0;
38967 }
38968 _ACEOF
38969 rm -f conftest.$ac_objext conftest$ac_exeext
38970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38971   (eval $ac_link) 2>&5
38972   ac_status=$?
38973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38974   (exit $ac_status); } &&
38975          { ac_try='test -s conftest$ac_exeext'
38976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38977   (eval $ac_try) 2>&5
38978   ac_status=$?
38979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38980   (exit $ac_status); }; }; then
38981   eval "$as_ac_var=yes"
38982 else
38983   echo "$as_me: failed program was:" >&5
38984 sed 's/^/| /' conftest.$ac_ext >&5
38985
38986 eval "$as_ac_var=no"
38987 fi
38988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
38989 fi
38990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38991 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38992 if test `eval echo '${'$as_ac_var'}'` = yes; then
38993   cat >>confdefs.h <<_ACEOF
38994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38995 _ACEOF
38996
38997 fi
38998 done
38999
39000   else
39001
39002   echo "$as_me:$LINENO: checking for _modfl declaration" >&5
39003 echo $ECHO_N "checking for _modfl declaration... $ECHO_C" >&6
39004   if test x${glibcxx_cv_func__modfl_use+set} != xset; then
39005     if test "${glibcxx_cv_func__modfl_use+set}" = set; then
39006   echo $ECHO_N "(cached) $ECHO_C" >&6
39007 else
39008
39009
39010
39011       ac_ext=cc
39012 ac_cpp='$CXXCPP $CPPFLAGS'
39013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39016
39017       cat >conftest.$ac_ext <<_ACEOF
39018 #line $LINENO "configure"
39019 /* confdefs.h.  */
39020 _ACEOF
39021 cat confdefs.h >>conftest.$ac_ext
39022 cat >>conftest.$ac_ext <<_ACEOF
39023 /* end confdefs.h.  */
39024 #include <math.h>
39025 int
39026 main ()
39027 {
39028  _modfl(0, 0);
39029   ;
39030   return 0;
39031 }
39032 _ACEOF
39033 rm -f conftest.$ac_objext
39034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39035   (eval $ac_compile) 2>&5
39036   ac_status=$?
39037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39038   (exit $ac_status); } &&
39039          { ac_try='test -s conftest.$ac_objext'
39040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39041   (eval $ac_try) 2>&5
39042   ac_status=$?
39043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39044   (exit $ac_status); }; }; then
39045   glibcxx_cv_func__modfl_use=yes
39046 else
39047   echo "$as_me: failed program was:" >&5
39048 sed 's/^/| /' conftest.$ac_ext >&5
39049
39050 glibcxx_cv_func__modfl_use=no
39051 fi
39052 rm -f conftest.$ac_objext conftest.$ac_ext
39053       ac_ext=c
39054 ac_cpp='$CPP $CPPFLAGS'
39055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39058
39059
39060 fi
39061
39062   fi
39063   echo "$as_me:$LINENO: result: $glibcxx_cv_func__modfl_use" >&5
39064 echo "${ECHO_T}$glibcxx_cv_func__modfl_use" >&6
39065
39066     if test x$glibcxx_cv_func__modfl_use = x"yes"; then
39067
39068 for ac_func in _modfl
39069 do
39070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39071 echo "$as_me:$LINENO: checking for $ac_func" >&5
39072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39073 if eval "test \"\${$as_ac_var+set}\" = set"; then
39074   echo $ECHO_N "(cached) $ECHO_C" >&6
39075 else
39076   cat >conftest.$ac_ext <<_ACEOF
39077 #line $LINENO "configure"
39078 /* confdefs.h.  */
39079 _ACEOF
39080 cat confdefs.h >>conftest.$ac_ext
39081 cat >>conftest.$ac_ext <<_ACEOF
39082 /* end confdefs.h.  */
39083 /* System header to define __stub macros and hopefully few prototypes,
39084     which can conflict with char $ac_func (); below.
39085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39086     <limits.h> exists even on freestanding compilers.  */
39087 #ifdef __STDC__
39088 # include <limits.h>
39089 #else
39090 # include <assert.h>
39091 #endif
39092 /* Override any gcc2 internal prototype to avoid an error.  */
39093 #ifdef __cplusplus
39094 extern "C"
39095 {
39096 #endif
39097 /* We use char because int might match the return type of a gcc2
39098    builtin and then its argument prototype would still apply.  */
39099 char $ac_func ();
39100 /* The GNU C library defines this for functions which it implements
39101     to always fail with ENOSYS.  Some functions are actually named
39102     something starting with __ and the normal name is an alias.  */
39103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39104 choke me
39105 #else
39106 char (*f) () = $ac_func;
39107 #endif
39108 #ifdef __cplusplus
39109 }
39110 #endif
39111
39112 int
39113 main ()
39114 {
39115 return f != $ac_func;
39116   ;
39117   return 0;
39118 }
39119 _ACEOF
39120 rm -f conftest.$ac_objext conftest$ac_exeext
39121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39122   (eval $ac_link) 2>&5
39123   ac_status=$?
39124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125   (exit $ac_status); } &&
39126          { ac_try='test -s conftest$ac_exeext'
39127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39128   (eval $ac_try) 2>&5
39129   ac_status=$?
39130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39131   (exit $ac_status); }; }; then
39132   eval "$as_ac_var=yes"
39133 else
39134   echo "$as_me: failed program was:" >&5
39135 sed 's/^/| /' conftest.$ac_ext >&5
39136
39137 eval "$as_ac_var=no"
39138 fi
39139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39140 fi
39141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39143 if test `eval echo '${'$as_ac_var'}'` = yes; then
39144   cat >>confdefs.h <<_ACEOF
39145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39146 _ACEOF
39147
39148 fi
39149 done
39150
39151     fi
39152   fi
39153
39154
39155
39156   echo "$as_me:$LINENO: checking for powl declaration" >&5
39157 echo $ECHO_N "checking for powl declaration... $ECHO_C" >&6
39158   if test x${glibcxx_cv_func_powl_use+set} != xset; then
39159     if test "${glibcxx_cv_func_powl_use+set}" = set; then
39160   echo $ECHO_N "(cached) $ECHO_C" >&6
39161 else
39162
39163
39164
39165       ac_ext=cc
39166 ac_cpp='$CXXCPP $CPPFLAGS'
39167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39170
39171       cat >conftest.$ac_ext <<_ACEOF
39172 #line $LINENO "configure"
39173 /* confdefs.h.  */
39174 _ACEOF
39175 cat confdefs.h >>conftest.$ac_ext
39176 cat >>conftest.$ac_ext <<_ACEOF
39177 /* end confdefs.h.  */
39178 #include <math.h>
39179 int
39180 main ()
39181 {
39182  powl(0, 0);
39183   ;
39184   return 0;
39185 }
39186 _ACEOF
39187 rm -f conftest.$ac_objext
39188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39189   (eval $ac_compile) 2>&5
39190   ac_status=$?
39191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39192   (exit $ac_status); } &&
39193          { ac_try='test -s conftest.$ac_objext'
39194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39195   (eval $ac_try) 2>&5
39196   ac_status=$?
39197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39198   (exit $ac_status); }; }; then
39199   glibcxx_cv_func_powl_use=yes
39200 else
39201   echo "$as_me: failed program was:" >&5
39202 sed 's/^/| /' conftest.$ac_ext >&5
39203
39204 glibcxx_cv_func_powl_use=no
39205 fi
39206 rm -f conftest.$ac_objext conftest.$ac_ext
39207       ac_ext=c
39208 ac_cpp='$CPP $CPPFLAGS'
39209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39212
39213
39214 fi
39215
39216   fi
39217   echo "$as_me:$LINENO: result: $glibcxx_cv_func_powl_use" >&5
39218 echo "${ECHO_T}$glibcxx_cv_func_powl_use" >&6
39219
39220   if test x$glibcxx_cv_func_powl_use = x"yes"; then
39221
39222 for ac_func in powl
39223 do
39224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39225 echo "$as_me:$LINENO: checking for $ac_func" >&5
39226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39227 if eval "test \"\${$as_ac_var+set}\" = set"; then
39228   echo $ECHO_N "(cached) $ECHO_C" >&6
39229 else
39230   cat >conftest.$ac_ext <<_ACEOF
39231 #line $LINENO "configure"
39232 /* confdefs.h.  */
39233 _ACEOF
39234 cat confdefs.h >>conftest.$ac_ext
39235 cat >>conftest.$ac_ext <<_ACEOF
39236 /* end confdefs.h.  */
39237 /* System header to define __stub macros and hopefully few prototypes,
39238     which can conflict with char $ac_func (); below.
39239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39240     <limits.h> exists even on freestanding compilers.  */
39241 #ifdef __STDC__
39242 # include <limits.h>
39243 #else
39244 # include <assert.h>
39245 #endif
39246 /* Override any gcc2 internal prototype to avoid an error.  */
39247 #ifdef __cplusplus
39248 extern "C"
39249 {
39250 #endif
39251 /* We use char because int might match the return type of a gcc2
39252    builtin and then its argument prototype would still apply.  */
39253 char $ac_func ();
39254 /* The GNU C library defines this for functions which it implements
39255     to always fail with ENOSYS.  Some functions are actually named
39256     something starting with __ and the normal name is an alias.  */
39257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39258 choke me
39259 #else
39260 char (*f) () = $ac_func;
39261 #endif
39262 #ifdef __cplusplus
39263 }
39264 #endif
39265
39266 int
39267 main ()
39268 {
39269 return f != $ac_func;
39270   ;
39271   return 0;
39272 }
39273 _ACEOF
39274 rm -f conftest.$ac_objext conftest$ac_exeext
39275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39276   (eval $ac_link) 2>&5
39277   ac_status=$?
39278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39279   (exit $ac_status); } &&
39280          { ac_try='test -s conftest$ac_exeext'
39281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39282   (eval $ac_try) 2>&5
39283   ac_status=$?
39284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285   (exit $ac_status); }; }; then
39286   eval "$as_ac_var=yes"
39287 else
39288   echo "$as_me: failed program was:" >&5
39289 sed 's/^/| /' conftest.$ac_ext >&5
39290
39291 eval "$as_ac_var=no"
39292 fi
39293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39294 fi
39295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39297 if test `eval echo '${'$as_ac_var'}'` = yes; then
39298   cat >>confdefs.h <<_ACEOF
39299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39300 _ACEOF
39301
39302 fi
39303 done
39304
39305   else
39306
39307   echo "$as_me:$LINENO: checking for _powl declaration" >&5
39308 echo $ECHO_N "checking for _powl declaration... $ECHO_C" >&6
39309   if test x${glibcxx_cv_func__powl_use+set} != xset; then
39310     if test "${glibcxx_cv_func__powl_use+set}" = set; then
39311   echo $ECHO_N "(cached) $ECHO_C" >&6
39312 else
39313
39314
39315
39316       ac_ext=cc
39317 ac_cpp='$CXXCPP $CPPFLAGS'
39318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39321
39322       cat >conftest.$ac_ext <<_ACEOF
39323 #line $LINENO "configure"
39324 /* confdefs.h.  */
39325 _ACEOF
39326 cat confdefs.h >>conftest.$ac_ext
39327 cat >>conftest.$ac_ext <<_ACEOF
39328 /* end confdefs.h.  */
39329 #include <math.h>
39330 int
39331 main ()
39332 {
39333  _powl(0, 0);
39334   ;
39335   return 0;
39336 }
39337 _ACEOF
39338 rm -f conftest.$ac_objext
39339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39340   (eval $ac_compile) 2>&5
39341   ac_status=$?
39342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343   (exit $ac_status); } &&
39344          { ac_try='test -s conftest.$ac_objext'
39345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39346   (eval $ac_try) 2>&5
39347   ac_status=$?
39348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39349   (exit $ac_status); }; }; then
39350   glibcxx_cv_func__powl_use=yes
39351 else
39352   echo "$as_me: failed program was:" >&5
39353 sed 's/^/| /' conftest.$ac_ext >&5
39354
39355 glibcxx_cv_func__powl_use=no
39356 fi
39357 rm -f conftest.$ac_objext conftest.$ac_ext
39358       ac_ext=c
39359 ac_cpp='$CPP $CPPFLAGS'
39360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39363
39364
39365 fi
39366
39367   fi
39368   echo "$as_me:$LINENO: result: $glibcxx_cv_func__powl_use" >&5
39369 echo "${ECHO_T}$glibcxx_cv_func__powl_use" >&6
39370
39371     if test x$glibcxx_cv_func__powl_use = x"yes"; then
39372
39373 for ac_func in _powl
39374 do
39375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39376 echo "$as_me:$LINENO: checking for $ac_func" >&5
39377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39378 if eval "test \"\${$as_ac_var+set}\" = set"; then
39379   echo $ECHO_N "(cached) $ECHO_C" >&6
39380 else
39381   cat >conftest.$ac_ext <<_ACEOF
39382 #line $LINENO "configure"
39383 /* confdefs.h.  */
39384 _ACEOF
39385 cat confdefs.h >>conftest.$ac_ext
39386 cat >>conftest.$ac_ext <<_ACEOF
39387 /* end confdefs.h.  */
39388 /* System header to define __stub macros and hopefully few prototypes,
39389     which can conflict with char $ac_func (); below.
39390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39391     <limits.h> exists even on freestanding compilers.  */
39392 #ifdef __STDC__
39393 # include <limits.h>
39394 #else
39395 # include <assert.h>
39396 #endif
39397 /* Override any gcc2 internal prototype to avoid an error.  */
39398 #ifdef __cplusplus
39399 extern "C"
39400 {
39401 #endif
39402 /* We use char because int might match the return type of a gcc2
39403    builtin and then its argument prototype would still apply.  */
39404 char $ac_func ();
39405 /* The GNU C library defines this for functions which it implements
39406     to always fail with ENOSYS.  Some functions are actually named
39407     something starting with __ and the normal name is an alias.  */
39408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39409 choke me
39410 #else
39411 char (*f) () = $ac_func;
39412 #endif
39413 #ifdef __cplusplus
39414 }
39415 #endif
39416
39417 int
39418 main ()
39419 {
39420 return f != $ac_func;
39421   ;
39422   return 0;
39423 }
39424 _ACEOF
39425 rm -f conftest.$ac_objext conftest$ac_exeext
39426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39427   (eval $ac_link) 2>&5
39428   ac_status=$?
39429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39430   (exit $ac_status); } &&
39431          { ac_try='test -s conftest$ac_exeext'
39432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39433   (eval $ac_try) 2>&5
39434   ac_status=$?
39435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39436   (exit $ac_status); }; }; then
39437   eval "$as_ac_var=yes"
39438 else
39439   echo "$as_me: failed program was:" >&5
39440 sed 's/^/| /' conftest.$ac_ext >&5
39441
39442 eval "$as_ac_var=no"
39443 fi
39444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39445 fi
39446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39448 if test `eval echo '${'$as_ac_var'}'` = yes; then
39449   cat >>confdefs.h <<_ACEOF
39450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39451 _ACEOF
39452
39453 fi
39454 done
39455
39456     fi
39457   fi
39458
39459
39460
39461   echo "$as_me:$LINENO: checking for sqrtl declaration" >&5
39462 echo $ECHO_N "checking for sqrtl declaration... $ECHO_C" >&6
39463   if test x${glibcxx_cv_func_sqrtl_use+set} != xset; then
39464     if test "${glibcxx_cv_func_sqrtl_use+set}" = set; then
39465   echo $ECHO_N "(cached) $ECHO_C" >&6
39466 else
39467
39468
39469
39470       ac_ext=cc
39471 ac_cpp='$CXXCPP $CPPFLAGS'
39472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39475
39476       cat >conftest.$ac_ext <<_ACEOF
39477 #line $LINENO "configure"
39478 /* confdefs.h.  */
39479 _ACEOF
39480 cat confdefs.h >>conftest.$ac_ext
39481 cat >>conftest.$ac_ext <<_ACEOF
39482 /* end confdefs.h.  */
39483 #include <math.h>
39484                       #ifdef HAVE_IEEEFP_H
39485                       #include <ieeefp.h>
39486                       #endif
39487
39488 int
39489 main ()
39490 {
39491  sqrtl(0);
39492   ;
39493   return 0;
39494 }
39495 _ACEOF
39496 rm -f conftest.$ac_objext
39497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39498   (eval $ac_compile) 2>&5
39499   ac_status=$?
39500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39501   (exit $ac_status); } &&
39502          { ac_try='test -s conftest.$ac_objext'
39503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39504   (eval $ac_try) 2>&5
39505   ac_status=$?
39506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39507   (exit $ac_status); }; }; then
39508   glibcxx_cv_func_sqrtl_use=yes
39509 else
39510   echo "$as_me: failed program was:" >&5
39511 sed 's/^/| /' conftest.$ac_ext >&5
39512
39513 glibcxx_cv_func_sqrtl_use=no
39514 fi
39515 rm -f conftest.$ac_objext conftest.$ac_ext
39516       ac_ext=c
39517 ac_cpp='$CPP $CPPFLAGS'
39518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39521
39522
39523 fi
39524
39525   fi
39526   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sqrtl_use" >&5
39527 echo "${ECHO_T}$glibcxx_cv_func_sqrtl_use" >&6
39528
39529   if test x$glibcxx_cv_func_sqrtl_use = x"yes"; then
39530
39531 for ac_func in sqrtl
39532 do
39533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39534 echo "$as_me:$LINENO: checking for $ac_func" >&5
39535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39536 if eval "test \"\${$as_ac_var+set}\" = set"; then
39537   echo $ECHO_N "(cached) $ECHO_C" >&6
39538 else
39539   cat >conftest.$ac_ext <<_ACEOF
39540 #line $LINENO "configure"
39541 /* confdefs.h.  */
39542 _ACEOF
39543 cat confdefs.h >>conftest.$ac_ext
39544 cat >>conftest.$ac_ext <<_ACEOF
39545 /* end confdefs.h.  */
39546 /* System header to define __stub macros and hopefully few prototypes,
39547     which can conflict with char $ac_func (); below.
39548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39549     <limits.h> exists even on freestanding compilers.  */
39550 #ifdef __STDC__
39551 # include <limits.h>
39552 #else
39553 # include <assert.h>
39554 #endif
39555 /* Override any gcc2 internal prototype to avoid an error.  */
39556 #ifdef __cplusplus
39557 extern "C"
39558 {
39559 #endif
39560 /* We use char because int might match the return type of a gcc2
39561    builtin and then its argument prototype would still apply.  */
39562 char $ac_func ();
39563 /* The GNU C library defines this for functions which it implements
39564     to always fail with ENOSYS.  Some functions are actually named
39565     something starting with __ and the normal name is an alias.  */
39566 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39567 choke me
39568 #else
39569 char (*f) () = $ac_func;
39570 #endif
39571 #ifdef __cplusplus
39572 }
39573 #endif
39574
39575 int
39576 main ()
39577 {
39578 return f != $ac_func;
39579   ;
39580   return 0;
39581 }
39582 _ACEOF
39583 rm -f conftest.$ac_objext conftest$ac_exeext
39584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39585   (eval $ac_link) 2>&5
39586   ac_status=$?
39587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39588   (exit $ac_status); } &&
39589          { ac_try='test -s conftest$ac_exeext'
39590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39591   (eval $ac_try) 2>&5
39592   ac_status=$?
39593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39594   (exit $ac_status); }; }; then
39595   eval "$as_ac_var=yes"
39596 else
39597   echo "$as_me: failed program was:" >&5
39598 sed 's/^/| /' conftest.$ac_ext >&5
39599
39600 eval "$as_ac_var=no"
39601 fi
39602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39603 fi
39604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39606 if test `eval echo '${'$as_ac_var'}'` = yes; then
39607   cat >>confdefs.h <<_ACEOF
39608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39609 _ACEOF
39610
39611 fi
39612 done
39613
39614   else
39615
39616   echo "$as_me:$LINENO: checking for _sqrtl declaration" >&5
39617 echo $ECHO_N "checking for _sqrtl declaration... $ECHO_C" >&6
39618   if test x${glibcxx_cv_func__sqrtl_use+set} != xset; then
39619     if test "${glibcxx_cv_func__sqrtl_use+set}" = set; then
39620   echo $ECHO_N "(cached) $ECHO_C" >&6
39621 else
39622
39623
39624
39625       ac_ext=cc
39626 ac_cpp='$CXXCPP $CPPFLAGS'
39627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39630
39631       cat >conftest.$ac_ext <<_ACEOF
39632 #line $LINENO "configure"
39633 /* confdefs.h.  */
39634 _ACEOF
39635 cat confdefs.h >>conftest.$ac_ext
39636 cat >>conftest.$ac_ext <<_ACEOF
39637 /* end confdefs.h.  */
39638 #include <math.h>
39639                       #ifdef HAVE_IEEEFP_H
39640                       #include <ieeefp.h>
39641                       #endif
39642
39643 int
39644 main ()
39645 {
39646  _sqrtl(0);
39647   ;
39648   return 0;
39649 }
39650 _ACEOF
39651 rm -f conftest.$ac_objext
39652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39653   (eval $ac_compile) 2>&5
39654   ac_status=$?
39655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39656   (exit $ac_status); } &&
39657          { ac_try='test -s conftest.$ac_objext'
39658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39659   (eval $ac_try) 2>&5
39660   ac_status=$?
39661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39662   (exit $ac_status); }; }; then
39663   glibcxx_cv_func__sqrtl_use=yes
39664 else
39665   echo "$as_me: failed program was:" >&5
39666 sed 's/^/| /' conftest.$ac_ext >&5
39667
39668 glibcxx_cv_func__sqrtl_use=no
39669 fi
39670 rm -f conftest.$ac_objext conftest.$ac_ext
39671       ac_ext=c
39672 ac_cpp='$CPP $CPPFLAGS'
39673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39676
39677
39678 fi
39679
39680   fi
39681   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sqrtl_use" >&5
39682 echo "${ECHO_T}$glibcxx_cv_func__sqrtl_use" >&6
39683
39684     if test x$glibcxx_cv_func__sqrtl_use = x"yes"; then
39685
39686 for ac_func in _sqrtl
39687 do
39688 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39689 echo "$as_me:$LINENO: checking for $ac_func" >&5
39690 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39691 if eval "test \"\${$as_ac_var+set}\" = set"; then
39692   echo $ECHO_N "(cached) $ECHO_C" >&6
39693 else
39694   cat >conftest.$ac_ext <<_ACEOF
39695 #line $LINENO "configure"
39696 /* confdefs.h.  */
39697 _ACEOF
39698 cat confdefs.h >>conftest.$ac_ext
39699 cat >>conftest.$ac_ext <<_ACEOF
39700 /* end confdefs.h.  */
39701 /* System header to define __stub macros and hopefully few prototypes,
39702     which can conflict with char $ac_func (); below.
39703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39704     <limits.h> exists even on freestanding compilers.  */
39705 #ifdef __STDC__
39706 # include <limits.h>
39707 #else
39708 # include <assert.h>
39709 #endif
39710 /* Override any gcc2 internal prototype to avoid an error.  */
39711 #ifdef __cplusplus
39712 extern "C"
39713 {
39714 #endif
39715 /* We use char because int might match the return type of a gcc2
39716    builtin and then its argument prototype would still apply.  */
39717 char $ac_func ();
39718 /* The GNU C library defines this for functions which it implements
39719     to always fail with ENOSYS.  Some functions are actually named
39720     something starting with __ and the normal name is an alias.  */
39721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39722 choke me
39723 #else
39724 char (*f) () = $ac_func;
39725 #endif
39726 #ifdef __cplusplus
39727 }
39728 #endif
39729
39730 int
39731 main ()
39732 {
39733 return f != $ac_func;
39734   ;
39735   return 0;
39736 }
39737 _ACEOF
39738 rm -f conftest.$ac_objext conftest$ac_exeext
39739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39740   (eval $ac_link) 2>&5
39741   ac_status=$?
39742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39743   (exit $ac_status); } &&
39744          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
39750   eval "$as_ac_var=yes"
39751 else
39752   echo "$as_me: failed program was:" >&5
39753 sed 's/^/| /' conftest.$ac_ext >&5
39754
39755 eval "$as_ac_var=no"
39756 fi
39757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39758 fi
39759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39761 if test `eval echo '${'$as_ac_var'}'` = yes; then
39762   cat >>confdefs.h <<_ACEOF
39763 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39764 _ACEOF
39765
39766 fi
39767 done
39768
39769     fi
39770   fi
39771
39772
39773
39774   echo "$as_me:$LINENO: checking for sincosl declaration" >&5
39775 echo $ECHO_N "checking for sincosl declaration... $ECHO_C" >&6
39776   if test x${glibcxx_cv_func_sincosl_use+set} != xset; then
39777     if test "${glibcxx_cv_func_sincosl_use+set}" = set; then
39778   echo $ECHO_N "(cached) $ECHO_C" >&6
39779 else
39780
39781
39782
39783       ac_ext=cc
39784 ac_cpp='$CXXCPP $CPPFLAGS'
39785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39788
39789       cat >conftest.$ac_ext <<_ACEOF
39790 #line $LINENO "configure"
39791 /* confdefs.h.  */
39792 _ACEOF
39793 cat confdefs.h >>conftest.$ac_ext
39794 cat >>conftest.$ac_ext <<_ACEOF
39795 /* end confdefs.h.  */
39796 #include <math.h>
39797 int
39798 main ()
39799 {
39800  sincosl(0, 0, 0);
39801   ;
39802   return 0;
39803 }
39804 _ACEOF
39805 rm -f conftest.$ac_objext
39806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39807   (eval $ac_compile) 2>&5
39808   ac_status=$?
39809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39810   (exit $ac_status); } &&
39811          { ac_try='test -s conftest.$ac_objext'
39812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39813   (eval $ac_try) 2>&5
39814   ac_status=$?
39815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39816   (exit $ac_status); }; }; then
39817   glibcxx_cv_func_sincosl_use=yes
39818 else
39819   echo "$as_me: failed program was:" >&5
39820 sed 's/^/| /' conftest.$ac_ext >&5
39821
39822 glibcxx_cv_func_sincosl_use=no
39823 fi
39824 rm -f conftest.$ac_objext conftest.$ac_ext
39825       ac_ext=c
39826 ac_cpp='$CPP $CPPFLAGS'
39827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39830
39831
39832 fi
39833
39834   fi
39835   echo "$as_me:$LINENO: result: $glibcxx_cv_func_sincosl_use" >&5
39836 echo "${ECHO_T}$glibcxx_cv_func_sincosl_use" >&6
39837
39838   if test x$glibcxx_cv_func_sincosl_use = x"yes"; then
39839
39840 for ac_func in sincosl
39841 do
39842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39843 echo "$as_me:$LINENO: checking for $ac_func" >&5
39844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39845 if eval "test \"\${$as_ac_var+set}\" = set"; then
39846   echo $ECHO_N "(cached) $ECHO_C" >&6
39847 else
39848   cat >conftest.$ac_ext <<_ACEOF
39849 #line $LINENO "configure"
39850 /* confdefs.h.  */
39851 _ACEOF
39852 cat confdefs.h >>conftest.$ac_ext
39853 cat >>conftest.$ac_ext <<_ACEOF
39854 /* end confdefs.h.  */
39855 /* System header to define __stub macros and hopefully few prototypes,
39856     which can conflict with char $ac_func (); below.
39857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39858     <limits.h> exists even on freestanding compilers.  */
39859 #ifdef __STDC__
39860 # include <limits.h>
39861 #else
39862 # include <assert.h>
39863 #endif
39864 /* Override any gcc2 internal prototype to avoid an error.  */
39865 #ifdef __cplusplus
39866 extern "C"
39867 {
39868 #endif
39869 /* We use char because int might match the return type of a gcc2
39870    builtin and then its argument prototype would still apply.  */
39871 char $ac_func ();
39872 /* The GNU C library defines this for functions which it implements
39873     to always fail with ENOSYS.  Some functions are actually named
39874     something starting with __ and the normal name is an alias.  */
39875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39876 choke me
39877 #else
39878 char (*f) () = $ac_func;
39879 #endif
39880 #ifdef __cplusplus
39881 }
39882 #endif
39883
39884 int
39885 main ()
39886 {
39887 return f != $ac_func;
39888   ;
39889   return 0;
39890 }
39891 _ACEOF
39892 rm -f conftest.$ac_objext conftest$ac_exeext
39893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39894   (eval $ac_link) 2>&5
39895   ac_status=$?
39896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39897   (exit $ac_status); } &&
39898          { ac_try='test -s conftest$ac_exeext'
39899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39900   (eval $ac_try) 2>&5
39901   ac_status=$?
39902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39903   (exit $ac_status); }; }; then
39904   eval "$as_ac_var=yes"
39905 else
39906   echo "$as_me: failed program was:" >&5
39907 sed 's/^/| /' conftest.$ac_ext >&5
39908
39909 eval "$as_ac_var=no"
39910 fi
39911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
39912 fi
39913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39915 if test `eval echo '${'$as_ac_var'}'` = yes; then
39916   cat >>confdefs.h <<_ACEOF
39917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39918 _ACEOF
39919
39920 fi
39921 done
39922
39923   else
39924
39925   echo "$as_me:$LINENO: checking for _sincosl declaration" >&5
39926 echo $ECHO_N "checking for _sincosl declaration... $ECHO_C" >&6
39927   if test x${glibcxx_cv_func__sincosl_use+set} != xset; then
39928     if test "${glibcxx_cv_func__sincosl_use+set}" = set; then
39929   echo $ECHO_N "(cached) $ECHO_C" >&6
39930 else
39931
39932
39933
39934       ac_ext=cc
39935 ac_cpp='$CXXCPP $CPPFLAGS'
39936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39939
39940       cat >conftest.$ac_ext <<_ACEOF
39941 #line $LINENO "configure"
39942 /* confdefs.h.  */
39943 _ACEOF
39944 cat confdefs.h >>conftest.$ac_ext
39945 cat >>conftest.$ac_ext <<_ACEOF
39946 /* end confdefs.h.  */
39947 #include <math.h>
39948 int
39949 main ()
39950 {
39951  _sincosl(0, 0, 0);
39952   ;
39953   return 0;
39954 }
39955 _ACEOF
39956 rm -f conftest.$ac_objext
39957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39958   (eval $ac_compile) 2>&5
39959   ac_status=$?
39960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961   (exit $ac_status); } &&
39962          { ac_try='test -s conftest.$ac_objext'
39963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964   (eval $ac_try) 2>&5
39965   ac_status=$?
39966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967   (exit $ac_status); }; }; then
39968   glibcxx_cv_func__sincosl_use=yes
39969 else
39970   echo "$as_me: failed program was:" >&5
39971 sed 's/^/| /' conftest.$ac_ext >&5
39972
39973 glibcxx_cv_func__sincosl_use=no
39974 fi
39975 rm -f conftest.$ac_objext conftest.$ac_ext
39976       ac_ext=c
39977 ac_cpp='$CPP $CPPFLAGS'
39978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39981
39982
39983 fi
39984
39985   fi
39986   echo "$as_me:$LINENO: result: $glibcxx_cv_func__sincosl_use" >&5
39987 echo "${ECHO_T}$glibcxx_cv_func__sincosl_use" >&6
39988
39989     if test x$glibcxx_cv_func__sincosl_use = x"yes"; then
39990
39991 for ac_func in _sincosl
39992 do
39993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39994 echo "$as_me:$LINENO: checking for $ac_func" >&5
39995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39996 if eval "test \"\${$as_ac_var+set}\" = set"; then
39997   echo $ECHO_N "(cached) $ECHO_C" >&6
39998 else
39999   cat >conftest.$ac_ext <<_ACEOF
40000 #line $LINENO "configure"
40001 /* confdefs.h.  */
40002 _ACEOF
40003 cat confdefs.h >>conftest.$ac_ext
40004 cat >>conftest.$ac_ext <<_ACEOF
40005 /* end confdefs.h.  */
40006 /* System header to define __stub macros and hopefully few prototypes,
40007     which can conflict with char $ac_func (); below.
40008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40009     <limits.h> exists even on freestanding compilers.  */
40010 #ifdef __STDC__
40011 # include <limits.h>
40012 #else
40013 # include <assert.h>
40014 #endif
40015 /* Override any gcc2 internal prototype to avoid an error.  */
40016 #ifdef __cplusplus
40017 extern "C"
40018 {
40019 #endif
40020 /* We use char because int might match the return type of a gcc2
40021    builtin and then its argument prototype would still apply.  */
40022 char $ac_func ();
40023 /* The GNU C library defines this for functions which it implements
40024     to always fail with ENOSYS.  Some functions are actually named
40025     something starting with __ and the normal name is an alias.  */
40026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40027 choke me
40028 #else
40029 char (*f) () = $ac_func;
40030 #endif
40031 #ifdef __cplusplus
40032 }
40033 #endif
40034
40035 int
40036 main ()
40037 {
40038 return f != $ac_func;
40039   ;
40040   return 0;
40041 }
40042 _ACEOF
40043 rm -f conftest.$ac_objext conftest$ac_exeext
40044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40045   (eval $ac_link) 2>&5
40046   ac_status=$?
40047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40048   (exit $ac_status); } &&
40049          { ac_try='test -s conftest$ac_exeext'
40050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40051   (eval $ac_try) 2>&5
40052   ac_status=$?
40053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054   (exit $ac_status); }; }; then
40055   eval "$as_ac_var=yes"
40056 else
40057   echo "$as_me: failed program was:" >&5
40058 sed 's/^/| /' conftest.$ac_ext >&5
40059
40060 eval "$as_ac_var=no"
40061 fi
40062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40063 fi
40064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40066 if test `eval echo '${'$as_ac_var'}'` = yes; then
40067   cat >>confdefs.h <<_ACEOF
40068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40069 _ACEOF
40070
40071 fi
40072 done
40073
40074     fi
40075   fi
40076
40077
40078
40079   echo "$as_me:$LINENO: checking for finitel declaration" >&5
40080 echo $ECHO_N "checking for finitel declaration... $ECHO_C" >&6
40081   if test x${glibcxx_cv_func_finitel_use+set} != xset; then
40082     if test "${glibcxx_cv_func_finitel_use+set}" = set; then
40083   echo $ECHO_N "(cached) $ECHO_C" >&6
40084 else
40085
40086
40087
40088       ac_ext=cc
40089 ac_cpp='$CXXCPP $CPPFLAGS'
40090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40093
40094       cat >conftest.$ac_ext <<_ACEOF
40095 #line $LINENO "configure"
40096 /* confdefs.h.  */
40097 _ACEOF
40098 cat confdefs.h >>conftest.$ac_ext
40099 cat >>conftest.$ac_ext <<_ACEOF
40100 /* end confdefs.h.  */
40101 #include <math.h>
40102                       #ifdef HAVE_IEEEFP_H
40103                       #include <ieeefp.h>
40104                       #endif
40105
40106 int
40107 main ()
40108 {
40109  finitel(0);
40110   ;
40111   return 0;
40112 }
40113 _ACEOF
40114 rm -f conftest.$ac_objext
40115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40116   (eval $ac_compile) 2>&5
40117   ac_status=$?
40118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40119   (exit $ac_status); } &&
40120          { ac_try='test -s conftest.$ac_objext'
40121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40122   (eval $ac_try) 2>&5
40123   ac_status=$?
40124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40125   (exit $ac_status); }; }; then
40126   glibcxx_cv_func_finitel_use=yes
40127 else
40128   echo "$as_me: failed program was:" >&5
40129 sed 's/^/| /' conftest.$ac_ext >&5
40130
40131 glibcxx_cv_func_finitel_use=no
40132 fi
40133 rm -f conftest.$ac_objext conftest.$ac_ext
40134       ac_ext=c
40135 ac_cpp='$CPP $CPPFLAGS'
40136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40139
40140
40141 fi
40142
40143   fi
40144   echo "$as_me:$LINENO: result: $glibcxx_cv_func_finitel_use" >&5
40145 echo "${ECHO_T}$glibcxx_cv_func_finitel_use" >&6
40146
40147   if test x$glibcxx_cv_func_finitel_use = x"yes"; then
40148
40149 for ac_func in finitel
40150 do
40151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40152 echo "$as_me:$LINENO: checking for $ac_func" >&5
40153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40154 if eval "test \"\${$as_ac_var+set}\" = set"; then
40155   echo $ECHO_N "(cached) $ECHO_C" >&6
40156 else
40157   cat >conftest.$ac_ext <<_ACEOF
40158 #line $LINENO "configure"
40159 /* confdefs.h.  */
40160 _ACEOF
40161 cat confdefs.h >>conftest.$ac_ext
40162 cat >>conftest.$ac_ext <<_ACEOF
40163 /* end confdefs.h.  */
40164 /* System header to define __stub macros and hopefully few prototypes,
40165     which can conflict with char $ac_func (); below.
40166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40167     <limits.h> exists even on freestanding compilers.  */
40168 #ifdef __STDC__
40169 # include <limits.h>
40170 #else
40171 # include <assert.h>
40172 #endif
40173 /* Override any gcc2 internal prototype to avoid an error.  */
40174 #ifdef __cplusplus
40175 extern "C"
40176 {
40177 #endif
40178 /* We use char because int might match the return type of a gcc2
40179    builtin and then its argument prototype would still apply.  */
40180 char $ac_func ();
40181 /* The GNU C library defines this for functions which it implements
40182     to always fail with ENOSYS.  Some functions are actually named
40183     something starting with __ and the normal name is an alias.  */
40184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40185 choke me
40186 #else
40187 char (*f) () = $ac_func;
40188 #endif
40189 #ifdef __cplusplus
40190 }
40191 #endif
40192
40193 int
40194 main ()
40195 {
40196 return f != $ac_func;
40197   ;
40198   return 0;
40199 }
40200 _ACEOF
40201 rm -f conftest.$ac_objext conftest$ac_exeext
40202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40203   (eval $ac_link) 2>&5
40204   ac_status=$?
40205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40206   (exit $ac_status); } &&
40207          { ac_try='test -s conftest$ac_exeext'
40208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40209   (eval $ac_try) 2>&5
40210   ac_status=$?
40211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40212   (exit $ac_status); }; }; then
40213   eval "$as_ac_var=yes"
40214 else
40215   echo "$as_me: failed program was:" >&5
40216 sed 's/^/| /' conftest.$ac_ext >&5
40217
40218 eval "$as_ac_var=no"
40219 fi
40220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40221 fi
40222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40224 if test `eval echo '${'$as_ac_var'}'` = yes; then
40225   cat >>confdefs.h <<_ACEOF
40226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40227 _ACEOF
40228
40229 fi
40230 done
40231
40232   else
40233
40234   echo "$as_me:$LINENO: checking for _finitel declaration" >&5
40235 echo $ECHO_N "checking for _finitel declaration... $ECHO_C" >&6
40236   if test x${glibcxx_cv_func__finitel_use+set} != xset; then
40237     if test "${glibcxx_cv_func__finitel_use+set}" = set; then
40238   echo $ECHO_N "(cached) $ECHO_C" >&6
40239 else
40240
40241
40242
40243       ac_ext=cc
40244 ac_cpp='$CXXCPP $CPPFLAGS'
40245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40248
40249       cat >conftest.$ac_ext <<_ACEOF
40250 #line $LINENO "configure"
40251 /* confdefs.h.  */
40252 _ACEOF
40253 cat confdefs.h >>conftest.$ac_ext
40254 cat >>conftest.$ac_ext <<_ACEOF
40255 /* end confdefs.h.  */
40256 #include <math.h>
40257                       #ifdef HAVE_IEEEFP_H
40258                       #include <ieeefp.h>
40259                       #endif
40260
40261 int
40262 main ()
40263 {
40264  _finitel(0);
40265   ;
40266   return 0;
40267 }
40268 _ACEOF
40269 rm -f conftest.$ac_objext
40270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40271   (eval $ac_compile) 2>&5
40272   ac_status=$?
40273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40274   (exit $ac_status); } &&
40275          { ac_try='test -s conftest.$ac_objext'
40276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40277   (eval $ac_try) 2>&5
40278   ac_status=$?
40279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40280   (exit $ac_status); }; }; then
40281   glibcxx_cv_func__finitel_use=yes
40282 else
40283   echo "$as_me: failed program was:" >&5
40284 sed 's/^/| /' conftest.$ac_ext >&5
40285
40286 glibcxx_cv_func__finitel_use=no
40287 fi
40288 rm -f conftest.$ac_objext conftest.$ac_ext
40289       ac_ext=c
40290 ac_cpp='$CPP $CPPFLAGS'
40291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40294
40295
40296 fi
40297
40298   fi
40299   echo "$as_me:$LINENO: result: $glibcxx_cv_func__finitel_use" >&5
40300 echo "${ECHO_T}$glibcxx_cv_func__finitel_use" >&6
40301
40302     if test x$glibcxx_cv_func__finitel_use = x"yes"; then
40303
40304 for ac_func in _finitel
40305 do
40306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40307 echo "$as_me:$LINENO: checking for $ac_func" >&5
40308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40309 if eval "test \"\${$as_ac_var+set}\" = set"; then
40310   echo $ECHO_N "(cached) $ECHO_C" >&6
40311 else
40312   cat >conftest.$ac_ext <<_ACEOF
40313 #line $LINENO "configure"
40314 /* confdefs.h.  */
40315 _ACEOF
40316 cat confdefs.h >>conftest.$ac_ext
40317 cat >>conftest.$ac_ext <<_ACEOF
40318 /* end confdefs.h.  */
40319 /* System header to define __stub macros and hopefully few prototypes,
40320     which can conflict with char $ac_func (); below.
40321     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40322     <limits.h> exists even on freestanding compilers.  */
40323 #ifdef __STDC__
40324 # include <limits.h>
40325 #else
40326 # include <assert.h>
40327 #endif
40328 /* Override any gcc2 internal prototype to avoid an error.  */
40329 #ifdef __cplusplus
40330 extern "C"
40331 {
40332 #endif
40333 /* We use char because int might match the return type of a gcc2
40334    builtin and then its argument prototype would still apply.  */
40335 char $ac_func ();
40336 /* The GNU C library defines this for functions which it implements
40337     to always fail with ENOSYS.  Some functions are actually named
40338     something starting with __ and the normal name is an alias.  */
40339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40340 choke me
40341 #else
40342 char (*f) () = $ac_func;
40343 #endif
40344 #ifdef __cplusplus
40345 }
40346 #endif
40347
40348 int
40349 main ()
40350 {
40351 return f != $ac_func;
40352   ;
40353   return 0;
40354 }
40355 _ACEOF
40356 rm -f conftest.$ac_objext conftest$ac_exeext
40357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40358   (eval $ac_link) 2>&5
40359   ac_status=$?
40360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40361   (exit $ac_status); } &&
40362          { ac_try='test -s conftest$ac_exeext'
40363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40364   (eval $ac_try) 2>&5
40365   ac_status=$?
40366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40367   (exit $ac_status); }; }; then
40368   eval "$as_ac_var=yes"
40369 else
40370   echo "$as_me: failed program was:" >&5
40371 sed 's/^/| /' conftest.$ac_ext >&5
40372
40373 eval "$as_ac_var=no"
40374 fi
40375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40376 fi
40377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40379 if test `eval echo '${'$as_ac_var'}'` = yes; then
40380   cat >>confdefs.h <<_ACEOF
40381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40382 _ACEOF
40383
40384 fi
40385 done
40386
40387     fi
40388   fi
40389
40390
40391
40392
40393   echo "$as_me:$LINENO: checking for _float trig functions" >&5
40394 echo $ECHO_N "checking for _float trig functions... $ECHO_C" >&6
40395   if test "${glibcxx_cv_func__float_trig_use+set}" = set; then
40396   echo $ECHO_N "(cached) $ECHO_C" >&6
40397 else
40398
40399
40400
40401     ac_ext=cc
40402 ac_cpp='$CXXCPP $CPPFLAGS'
40403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40406
40407     cat >conftest.$ac_ext <<_ACEOF
40408 #line $LINENO "configure"
40409 /* confdefs.h.  */
40410 _ACEOF
40411 cat confdefs.h >>conftest.$ac_ext
40412 cat >>conftest.$ac_ext <<_ACEOF
40413 /* end confdefs.h.  */
40414 #include <math.h>
40415 int
40416 main ()
40417 {
40418  `for x in _acosf _asinf _atanf \
40419                                           _cosf _sinf _tanf \
40420                                           _coshf _sinhf _tanhf; do echo "$x (0);"; done`
40421   ;
40422   return 0;
40423 }
40424 _ACEOF
40425 rm -f conftest.$ac_objext
40426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40427   (eval $ac_compile) 2>&5
40428   ac_status=$?
40429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40430   (exit $ac_status); } &&
40431          { ac_try='test -s conftest.$ac_objext'
40432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40433   (eval $ac_try) 2>&5
40434   ac_status=$?
40435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40436   (exit $ac_status); }; }; then
40437   glibcxx_cv_func__float_trig_use=yes
40438 else
40439   echo "$as_me: failed program was:" >&5
40440 sed 's/^/| /' conftest.$ac_ext >&5
40441
40442 glibcxx_cv_func__float_trig_use=no
40443 fi
40444 rm -f conftest.$ac_objext conftest.$ac_ext
40445     ac_ext=c
40446 ac_cpp='$CPP $CPPFLAGS'
40447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40450
40451 fi
40452
40453   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_trig_use" >&5
40454 echo "${ECHO_T}$glibcxx_cv_func__float_trig_use" >&6
40455   if test x$glibcxx_cv_func__float_trig_use = x"yes"; then
40456
40457
40458
40459
40460
40461
40462
40463
40464
40465 for ac_func in _acosf _asinf _atanf \
40466                                           _cosf _sinf _tanf \
40467                                           _coshf _sinhf _tanhf
40468 do
40469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40470 echo "$as_me:$LINENO: checking for $ac_func" >&5
40471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40472 if eval "test \"\${$as_ac_var+set}\" = set"; then
40473   echo $ECHO_N "(cached) $ECHO_C" >&6
40474 else
40475   cat >conftest.$ac_ext <<_ACEOF
40476 #line $LINENO "configure"
40477 /* confdefs.h.  */
40478 _ACEOF
40479 cat confdefs.h >>conftest.$ac_ext
40480 cat >>conftest.$ac_ext <<_ACEOF
40481 /* end confdefs.h.  */
40482 /* System header to define __stub macros and hopefully few prototypes,
40483     which can conflict with char $ac_func (); below.
40484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40485     <limits.h> exists even on freestanding compilers.  */
40486 #ifdef __STDC__
40487 # include <limits.h>
40488 #else
40489 # include <assert.h>
40490 #endif
40491 /* Override any gcc2 internal prototype to avoid an error.  */
40492 #ifdef __cplusplus
40493 extern "C"
40494 {
40495 #endif
40496 /* We use char because int might match the return type of a gcc2
40497    builtin and then its argument prototype would still apply.  */
40498 char $ac_func ();
40499 /* The GNU C library defines this for functions which it implements
40500     to always fail with ENOSYS.  Some functions are actually named
40501     something starting with __ and the normal name is an alias.  */
40502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40503 choke me
40504 #else
40505 char (*f) () = $ac_func;
40506 #endif
40507 #ifdef __cplusplus
40508 }
40509 #endif
40510
40511 int
40512 main ()
40513 {
40514 return f != $ac_func;
40515   ;
40516   return 0;
40517 }
40518 _ACEOF
40519 rm -f conftest.$ac_objext conftest$ac_exeext
40520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40521   (eval $ac_link) 2>&5
40522   ac_status=$?
40523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40524   (exit $ac_status); } &&
40525          { ac_try='test -s conftest$ac_exeext'
40526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40527   (eval $ac_try) 2>&5
40528   ac_status=$?
40529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40530   (exit $ac_status); }; }; then
40531   eval "$as_ac_var=yes"
40532 else
40533   echo "$as_me: failed program was:" >&5
40534 sed 's/^/| /' conftest.$ac_ext >&5
40535
40536 eval "$as_ac_var=no"
40537 fi
40538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40539 fi
40540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40541 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40542 if test `eval echo '${'$as_ac_var'}'` = yes; then
40543   cat >>confdefs.h <<_ACEOF
40544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40545 _ACEOF
40546
40547 fi
40548 done
40549
40550   fi
40551
40552
40553   echo "$as_me:$LINENO: checking for _float round functions" >&5
40554 echo $ECHO_N "checking for _float round functions... $ECHO_C" >&6
40555   if test "${glibcxx_cv_func__float_round_use+set}" = set; then
40556   echo $ECHO_N "(cached) $ECHO_C" >&6
40557 else
40558
40559
40560
40561     ac_ext=cc
40562 ac_cpp='$CXXCPP $CPPFLAGS'
40563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40566
40567     cat >conftest.$ac_ext <<_ACEOF
40568 #line $LINENO "configure"
40569 /* confdefs.h.  */
40570 _ACEOF
40571 cat confdefs.h >>conftest.$ac_ext
40572 cat >>conftest.$ac_ext <<_ACEOF
40573 /* end confdefs.h.  */
40574 #include <math.h>
40575 int
40576 main ()
40577 {
40578  `for x in _ceilf _floorf; do echo "$x (0);"; done`
40579   ;
40580   return 0;
40581 }
40582 _ACEOF
40583 rm -f conftest.$ac_objext
40584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40585   (eval $ac_compile) 2>&5
40586   ac_status=$?
40587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40588   (exit $ac_status); } &&
40589          { ac_try='test -s conftest.$ac_objext'
40590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40591   (eval $ac_try) 2>&5
40592   ac_status=$?
40593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594   (exit $ac_status); }; }; then
40595   glibcxx_cv_func__float_round_use=yes
40596 else
40597   echo "$as_me: failed program was:" >&5
40598 sed 's/^/| /' conftest.$ac_ext >&5
40599
40600 glibcxx_cv_func__float_round_use=no
40601 fi
40602 rm -f conftest.$ac_objext conftest.$ac_ext
40603     ac_ext=c
40604 ac_cpp='$CPP $CPPFLAGS'
40605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40608
40609 fi
40610
40611   echo "$as_me:$LINENO: result: $glibcxx_cv_func__float_round_use" >&5
40612 echo "${ECHO_T}$glibcxx_cv_func__float_round_use" >&6
40613   if test x$glibcxx_cv_func__float_round_use = x"yes"; then
40614
40615
40616 for ac_func in _ceilf _floorf
40617 do
40618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40619 echo "$as_me:$LINENO: checking for $ac_func" >&5
40620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40621 if eval "test \"\${$as_ac_var+set}\" = set"; then
40622   echo $ECHO_N "(cached) $ECHO_C" >&6
40623 else
40624   cat >conftest.$ac_ext <<_ACEOF
40625 #line $LINENO "configure"
40626 /* confdefs.h.  */
40627 _ACEOF
40628 cat confdefs.h >>conftest.$ac_ext
40629 cat >>conftest.$ac_ext <<_ACEOF
40630 /* end confdefs.h.  */
40631 /* System header to define __stub macros and hopefully few prototypes,
40632     which can conflict with char $ac_func (); below.
40633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40634     <limits.h> exists even on freestanding compilers.  */
40635 #ifdef __STDC__
40636 # include <limits.h>
40637 #else
40638 # include <assert.h>
40639 #endif
40640 /* Override any gcc2 internal prototype to avoid an error.  */
40641 #ifdef __cplusplus
40642 extern "C"
40643 {
40644 #endif
40645 /* We use char because int might match the return type of a gcc2
40646    builtin and then its argument prototype would still apply.  */
40647 char $ac_func ();
40648 /* The GNU C library defines this for functions which it implements
40649     to always fail with ENOSYS.  Some functions are actually named
40650     something starting with __ and the normal name is an alias.  */
40651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40652 choke me
40653 #else
40654 char (*f) () = $ac_func;
40655 #endif
40656 #ifdef __cplusplus
40657 }
40658 #endif
40659
40660 int
40661 main ()
40662 {
40663 return f != $ac_func;
40664   ;
40665   return 0;
40666 }
40667 _ACEOF
40668 rm -f conftest.$ac_objext conftest$ac_exeext
40669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40670   (eval $ac_link) 2>&5
40671   ac_status=$?
40672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40673   (exit $ac_status); } &&
40674          { ac_try='test -s conftest$ac_exeext'
40675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40676   (eval $ac_try) 2>&5
40677   ac_status=$?
40678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40679   (exit $ac_status); }; }; then
40680   eval "$as_ac_var=yes"
40681 else
40682   echo "$as_me: failed program was:" >&5
40683 sed 's/^/| /' conftest.$ac_ext >&5
40684
40685 eval "$as_ac_var=no"
40686 fi
40687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40688 fi
40689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40691 if test `eval echo '${'$as_ac_var'}'` = yes; then
40692   cat >>confdefs.h <<_ACEOF
40693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40694 _ACEOF
40695
40696 fi
40697 done
40698
40699   fi
40700
40701
40702
40703   echo "$as_me:$LINENO: checking for _long double trig functions" >&5
40704 echo $ECHO_N "checking for _long double trig functions... $ECHO_C" >&6
40705   if test "${glibcxx_cv_func__long_double_trig_use+set}" = set; then
40706   echo $ECHO_N "(cached) $ECHO_C" >&6
40707 else
40708
40709
40710
40711     ac_ext=cc
40712 ac_cpp='$CXXCPP $CPPFLAGS'
40713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40716
40717     cat >conftest.$ac_ext <<_ACEOF
40718 #line $LINENO "configure"
40719 /* confdefs.h.  */
40720 _ACEOF
40721 cat confdefs.h >>conftest.$ac_ext
40722 cat >>conftest.$ac_ext <<_ACEOF
40723 /* end confdefs.h.  */
40724 #include <math.h>
40725 int
40726 main ()
40727 {
40728  `for x in _acosl _asinl _atanl \
40729                                           _cosl _sinl _tanl \
40730                                           _coshl _sinhl _tanhl; do echo "$x (0);"; done`
40731   ;
40732   return 0;
40733 }
40734 _ACEOF
40735 rm -f conftest.$ac_objext
40736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40737   (eval $ac_compile) 2>&5
40738   ac_status=$?
40739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40740   (exit $ac_status); } &&
40741          { ac_try='test -s conftest.$ac_objext'
40742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40743   (eval $ac_try) 2>&5
40744   ac_status=$?
40745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40746   (exit $ac_status); }; }; then
40747   glibcxx_cv_func__long_double_trig_use=yes
40748 else
40749   echo "$as_me: failed program was:" >&5
40750 sed 's/^/| /' conftest.$ac_ext >&5
40751
40752 glibcxx_cv_func__long_double_trig_use=no
40753 fi
40754 rm -f conftest.$ac_objext conftest.$ac_ext
40755     ac_ext=c
40756 ac_cpp='$CPP $CPPFLAGS'
40757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40760
40761 fi
40762
40763   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_trig_use" >&5
40764 echo "${ECHO_T}$glibcxx_cv_func__long_double_trig_use" >&6
40765   if test x$glibcxx_cv_func__long_double_trig_use = x"yes"; then
40766
40767
40768
40769
40770
40771
40772
40773
40774
40775 for ac_func in _acosl _asinl _atanl \
40776                                           _cosl _sinl _tanl \
40777                                           _coshl _sinhl _tanhl
40778 do
40779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40780 echo "$as_me:$LINENO: checking for $ac_func" >&5
40781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40782 if eval "test \"\${$as_ac_var+set}\" = set"; then
40783   echo $ECHO_N "(cached) $ECHO_C" >&6
40784 else
40785   cat >conftest.$ac_ext <<_ACEOF
40786 #line $LINENO "configure"
40787 /* confdefs.h.  */
40788 _ACEOF
40789 cat confdefs.h >>conftest.$ac_ext
40790 cat >>conftest.$ac_ext <<_ACEOF
40791 /* end confdefs.h.  */
40792 /* System header to define __stub macros and hopefully few prototypes,
40793     which can conflict with char $ac_func (); below.
40794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40795     <limits.h> exists even on freestanding compilers.  */
40796 #ifdef __STDC__
40797 # include <limits.h>
40798 #else
40799 # include <assert.h>
40800 #endif
40801 /* Override any gcc2 internal prototype to avoid an error.  */
40802 #ifdef __cplusplus
40803 extern "C"
40804 {
40805 #endif
40806 /* We use char because int might match the return type of a gcc2
40807    builtin and then its argument prototype would still apply.  */
40808 char $ac_func ();
40809 /* The GNU C library defines this for functions which it implements
40810     to always fail with ENOSYS.  Some functions are actually named
40811     something starting with __ and the normal name is an alias.  */
40812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40813 choke me
40814 #else
40815 char (*f) () = $ac_func;
40816 #endif
40817 #ifdef __cplusplus
40818 }
40819 #endif
40820
40821 int
40822 main ()
40823 {
40824 return f != $ac_func;
40825   ;
40826   return 0;
40827 }
40828 _ACEOF
40829 rm -f conftest.$ac_objext conftest$ac_exeext
40830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40831   (eval $ac_link) 2>&5
40832   ac_status=$?
40833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40834   (exit $ac_status); } &&
40835          { ac_try='test -s conftest$ac_exeext'
40836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40837   (eval $ac_try) 2>&5
40838   ac_status=$?
40839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40840   (exit $ac_status); }; }; then
40841   eval "$as_ac_var=yes"
40842 else
40843   echo "$as_me: failed program was:" >&5
40844 sed 's/^/| /' conftest.$ac_ext >&5
40845
40846 eval "$as_ac_var=no"
40847 fi
40848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40849 fi
40850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40851 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40852 if test `eval echo '${'$as_ac_var'}'` = yes; then
40853   cat >>confdefs.h <<_ACEOF
40854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40855 _ACEOF
40856
40857 fi
40858 done
40859
40860   fi
40861
40862
40863   echo "$as_me:$LINENO: checking for _long double round functions" >&5
40864 echo $ECHO_N "checking for _long double round functions... $ECHO_C" >&6
40865   if test "${glibcxx_cv_func__long_double_round_use+set}" = set; then
40866   echo $ECHO_N "(cached) $ECHO_C" >&6
40867 else
40868
40869
40870
40871     ac_ext=cc
40872 ac_cpp='$CXXCPP $CPPFLAGS'
40873 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40874 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40875 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40876
40877     cat >conftest.$ac_ext <<_ACEOF
40878 #line $LINENO "configure"
40879 /* confdefs.h.  */
40880 _ACEOF
40881 cat confdefs.h >>conftest.$ac_ext
40882 cat >>conftest.$ac_ext <<_ACEOF
40883 /* end confdefs.h.  */
40884 #include <math.h>
40885 int
40886 main ()
40887 {
40888  `for x in _ceill _floorl; do echo "$x (0);"; done`
40889   ;
40890   return 0;
40891 }
40892 _ACEOF
40893 rm -f conftest.$ac_objext
40894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40895   (eval $ac_compile) 2>&5
40896   ac_status=$?
40897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40898   (exit $ac_status); } &&
40899          { ac_try='test -s conftest.$ac_objext'
40900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40901   (eval $ac_try) 2>&5
40902   ac_status=$?
40903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40904   (exit $ac_status); }; }; then
40905   glibcxx_cv_func__long_double_round_use=yes
40906 else
40907   echo "$as_me: failed program was:" >&5
40908 sed 's/^/| /' conftest.$ac_ext >&5
40909
40910 glibcxx_cv_func__long_double_round_use=no
40911 fi
40912 rm -f conftest.$ac_objext conftest.$ac_ext
40913     ac_ext=c
40914 ac_cpp='$CPP $CPPFLAGS'
40915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40918
40919 fi
40920
40921   echo "$as_me:$LINENO: result: $glibcxx_cv_func__long_double_round_use" >&5
40922 echo "${ECHO_T}$glibcxx_cv_func__long_double_round_use" >&6
40923   if test x$glibcxx_cv_func__long_double_round_use = x"yes"; then
40924
40925
40926 for ac_func in _ceill _floorl
40927 do
40928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40929 echo "$as_me:$LINENO: checking for $ac_func" >&5
40930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40931 if eval "test \"\${$as_ac_var+set}\" = set"; then
40932   echo $ECHO_N "(cached) $ECHO_C" >&6
40933 else
40934   cat >conftest.$ac_ext <<_ACEOF
40935 #line $LINENO "configure"
40936 /* confdefs.h.  */
40937 _ACEOF
40938 cat confdefs.h >>conftest.$ac_ext
40939 cat >>conftest.$ac_ext <<_ACEOF
40940 /* end confdefs.h.  */
40941 /* System header to define __stub macros and hopefully few prototypes,
40942     which can conflict with char $ac_func (); below.
40943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40944     <limits.h> exists even on freestanding compilers.  */
40945 #ifdef __STDC__
40946 # include <limits.h>
40947 #else
40948 # include <assert.h>
40949 #endif
40950 /* Override any gcc2 internal prototype to avoid an error.  */
40951 #ifdef __cplusplus
40952 extern "C"
40953 {
40954 #endif
40955 /* We use char because int might match the return type of a gcc2
40956    builtin and then its argument prototype would still apply.  */
40957 char $ac_func ();
40958 /* The GNU C library defines this for functions which it implements
40959     to always fail with ENOSYS.  Some functions are actually named
40960     something starting with __ and the normal name is an alias.  */
40961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40962 choke me
40963 #else
40964 char (*f) () = $ac_func;
40965 #endif
40966 #ifdef __cplusplus
40967 }
40968 #endif
40969
40970 int
40971 main ()
40972 {
40973 return f != $ac_func;
40974   ;
40975   return 0;
40976 }
40977 _ACEOF
40978 rm -f conftest.$ac_objext conftest$ac_exeext
40979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40980   (eval $ac_link) 2>&5
40981   ac_status=$?
40982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40983   (exit $ac_status); } &&
40984          { ac_try='test -s conftest$ac_exeext'
40985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40986   (eval $ac_try) 2>&5
40987   ac_status=$?
40988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40989   (exit $ac_status); }; }; then
40990   eval "$as_ac_var=yes"
40991 else
40992   echo "$as_me: failed program was:" >&5
40993 sed 's/^/| /' conftest.$ac_ext >&5
40994
40995 eval "$as_ac_var=no"
40996 fi
40997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
40998 fi
40999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41001 if test `eval echo '${'$as_ac_var'}'` = yes; then
41002   cat >>confdefs.h <<_ACEOF
41003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41004 _ACEOF
41005
41006 fi
41007 done
41008
41009   fi
41010
41011
41012   LIBS="$ac_save_LIBS"
41013   CXXFLAGS="$ac_save_CXXFLAGS"
41014
41015
41016
41017   echo "$as_me:$LINENO: checking for __builtin_abs declaration" >&5
41018 echo $ECHO_N "checking for __builtin_abs declaration... $ECHO_C" >&6
41019   if test x${glibcxx_cv_func___builtin_abs_use+set} != xset; then
41020     if test "${glibcxx_cv_func___builtin_abs_use+set}" = set; then
41021   echo $ECHO_N "(cached) $ECHO_C" >&6
41022 else
41023
41024
41025
41026       ac_ext=cc
41027 ac_cpp='$CXXCPP $CPPFLAGS'
41028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41031
41032       cat >conftest.$ac_ext <<_ACEOF
41033 #line $LINENO "configure"
41034 /* confdefs.h.  */
41035 _ACEOF
41036 cat confdefs.h >>conftest.$ac_ext
41037 cat >>conftest.$ac_ext <<_ACEOF
41038 /* end confdefs.h.  */
41039 #include <math.h>
41040 int
41041 main ()
41042 {
41043  __builtin_abs(0);
41044   ;
41045   return 0;
41046 }
41047 _ACEOF
41048 rm -f conftest.$ac_objext
41049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41050   (eval $ac_compile) 2>&5
41051   ac_status=$?
41052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41053   (exit $ac_status); } &&
41054          { ac_try='test -s conftest.$ac_objext'
41055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41056   (eval $ac_try) 2>&5
41057   ac_status=$?
41058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41059   (exit $ac_status); }; }; then
41060   glibcxx_cv_func___builtin_abs_use=yes
41061 else
41062   echo "$as_me: failed program was:" >&5
41063 sed 's/^/| /' conftest.$ac_ext >&5
41064
41065 glibcxx_cv_func___builtin_abs_use=no
41066 fi
41067 rm -f conftest.$ac_objext conftest.$ac_ext
41068       ac_ext=c
41069 ac_cpp='$CPP $CPPFLAGS'
41070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41073
41074
41075 fi
41076
41077   fi
41078   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_use" >&5
41079 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_use" >&6
41080   if test x$glibcxx_cv_func___builtin_abs_use = x"yes"; then
41081     echo "$as_me:$LINENO: checking for __builtin_abs linkage" >&5
41082 echo $ECHO_N "checking for __builtin_abs linkage... $ECHO_C" >&6
41083     if test x${glibcxx_cv_func___builtin_abs_link+set} != xset; then
41084       if test "${glibcxx_cv_func___builtin_abs_link+set}" = set; then
41085   echo $ECHO_N "(cached) $ECHO_C" >&6
41086 else
41087
41088         cat >conftest.$ac_ext <<_ACEOF
41089 #line $LINENO "configure"
41090 /* confdefs.h.  */
41091 _ACEOF
41092 cat confdefs.h >>conftest.$ac_ext
41093 cat >>conftest.$ac_ext <<_ACEOF
41094 /* end confdefs.h.  */
41095 #include <math.h>
41096 int
41097 main ()
41098 {
41099  __builtin_abs(0);
41100   ;
41101   return 0;
41102 }
41103 _ACEOF
41104 rm -f conftest.$ac_objext conftest$ac_exeext
41105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41106   (eval $ac_link) 2>&5
41107   ac_status=$?
41108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41109   (exit $ac_status); } &&
41110          { ac_try='test -s conftest$ac_exeext'
41111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41112   (eval $ac_try) 2>&5
41113   ac_status=$?
41114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41115   (exit $ac_status); }; }; then
41116   glibcxx_cv_func___builtin_abs_link=yes
41117 else
41118   echo "$as_me: failed program was:" >&5
41119 sed 's/^/| /' conftest.$ac_ext >&5
41120
41121 glibcxx_cv_func___builtin_abs_link=no
41122 fi
41123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41124
41125 fi
41126
41127     fi
41128     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_abs_link" >&5
41129 echo "${ECHO_T}$glibcxx_cv_func___builtin_abs_link" >&6
41130     if test x$glibcxx_cv_func___builtin_abs_link = x"yes"; then
41131       ac_tr_func=HAVE_`echo __builtin_abs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
41132       cat >>confdefs.h <<_ACEOF
41133 #define ${ac_tr_func} 1
41134 _ACEOF
41135
41136     fi
41137   fi
41138
41139
41140   echo "$as_me:$LINENO: checking for __builtin_fabsf declaration" >&5
41141 echo $ECHO_N "checking for __builtin_fabsf declaration... $ECHO_C" >&6
41142   if test x${glibcxx_cv_func___builtin_fabsf_use+set} != xset; then
41143     if test "${glibcxx_cv_func___builtin_fabsf_use+set}" = set; then
41144   echo $ECHO_N "(cached) $ECHO_C" >&6
41145 else
41146
41147
41148
41149       ac_ext=cc
41150 ac_cpp='$CXXCPP $CPPFLAGS'
41151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41154
41155       cat >conftest.$ac_ext <<_ACEOF
41156 #line $LINENO "configure"
41157 /* confdefs.h.  */
41158 _ACEOF
41159 cat confdefs.h >>conftest.$ac_ext
41160 cat >>conftest.$ac_ext <<_ACEOF
41161 /* end confdefs.h.  */
41162 #include <math.h>
41163 int
41164 main ()
41165 {
41166  __builtin_fabsf(0);
41167   ;
41168   return 0;
41169 }
41170 _ACEOF
41171 rm -f conftest.$ac_objext
41172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41173   (eval $ac_compile) 2>&5
41174   ac_status=$?
41175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41176   (exit $ac_status); } &&
41177          { ac_try='test -s conftest.$ac_objext'
41178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41179   (eval $ac_try) 2>&5
41180   ac_status=$?
41181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41182   (exit $ac_status); }; }; then
41183   glibcxx_cv_func___builtin_fabsf_use=yes
41184 else
41185   echo "$as_me: failed program was:" >&5
41186 sed 's/^/| /' conftest.$ac_ext >&5
41187
41188 glibcxx_cv_func___builtin_fabsf_use=no
41189 fi
41190 rm -f conftest.$ac_objext conftest.$ac_ext
41191       ac_ext=c
41192 ac_cpp='$CPP $CPPFLAGS'
41193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41196
41197
41198 fi
41199
41200   fi
41201   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_use" >&5
41202 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_use" >&6
41203   if test x$glibcxx_cv_func___builtin_fabsf_use = x"yes"; then
41204     echo "$as_me:$LINENO: checking for __builtin_fabsf linkage" >&5
41205 echo $ECHO_N "checking for __builtin_fabsf linkage... $ECHO_C" >&6
41206     if test x${glibcxx_cv_func___builtin_fabsf_link+set} != xset; then
41207       if test "${glibcxx_cv_func___builtin_fabsf_link+set}" = set; then
41208   echo $ECHO_N "(cached) $ECHO_C" >&6
41209 else
41210
41211         cat >conftest.$ac_ext <<_ACEOF
41212 #line $LINENO "configure"
41213 /* confdefs.h.  */
41214 _ACEOF
41215 cat confdefs.h >>conftest.$ac_ext
41216 cat >>conftest.$ac_ext <<_ACEOF
41217 /* end confdefs.h.  */
41218 #include <math.h>
41219 int
41220 main ()
41221 {
41222  __builtin_fabsf(0);
41223   ;
41224   return 0;
41225 }
41226 _ACEOF
41227 rm -f conftest.$ac_objext conftest$ac_exeext
41228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41229   (eval $ac_link) 2>&5
41230   ac_status=$?
41231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41232   (exit $ac_status); } &&
41233          { ac_try='test -s conftest$ac_exeext'
41234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41235   (eval $ac_try) 2>&5
41236   ac_status=$?
41237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41238   (exit $ac_status); }; }; then
41239   glibcxx_cv_func___builtin_fabsf_link=yes
41240 else
41241   echo "$as_me: failed program was:" >&5
41242 sed 's/^/| /' conftest.$ac_ext >&5
41243
41244 glibcxx_cv_func___builtin_fabsf_link=no
41245 fi
41246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41247
41248 fi
41249
41250     fi
41251     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsf_link" >&5
41252 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsf_link" >&6
41253     if test x$glibcxx_cv_func___builtin_fabsf_link = x"yes"; then
41254       ac_tr_func=HAVE_`echo __builtin_fabsf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
41255       cat >>confdefs.h <<_ACEOF
41256 #define ${ac_tr_func} 1
41257 _ACEOF
41258
41259     fi
41260   fi
41261
41262
41263   echo "$as_me:$LINENO: checking for __builtin_fabs declaration" >&5
41264 echo $ECHO_N "checking for __builtin_fabs declaration... $ECHO_C" >&6
41265   if test x${glibcxx_cv_func___builtin_fabs_use+set} != xset; then
41266     if test "${glibcxx_cv_func___builtin_fabs_use+set}" = set; then
41267   echo $ECHO_N "(cached) $ECHO_C" >&6
41268 else
41269
41270
41271
41272       ac_ext=cc
41273 ac_cpp='$CXXCPP $CPPFLAGS'
41274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41277
41278       cat >conftest.$ac_ext <<_ACEOF
41279 #line $LINENO "configure"
41280 /* confdefs.h.  */
41281 _ACEOF
41282 cat confdefs.h >>conftest.$ac_ext
41283 cat >>conftest.$ac_ext <<_ACEOF
41284 /* end confdefs.h.  */
41285 #include <math.h>
41286 int
41287 main ()
41288 {
41289  __builtin_fabs(0);
41290   ;
41291   return 0;
41292 }
41293 _ACEOF
41294 rm -f conftest.$ac_objext
41295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41296   (eval $ac_compile) 2>&5
41297   ac_status=$?
41298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41299   (exit $ac_status); } &&
41300          { ac_try='test -s conftest.$ac_objext'
41301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41302   (eval $ac_try) 2>&5
41303   ac_status=$?
41304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41305   (exit $ac_status); }; }; then
41306   glibcxx_cv_func___builtin_fabs_use=yes
41307 else
41308   echo "$as_me: failed program was:" >&5
41309 sed 's/^/| /' conftest.$ac_ext >&5
41310
41311 glibcxx_cv_func___builtin_fabs_use=no
41312 fi
41313 rm -f conftest.$ac_objext conftest.$ac_ext
41314       ac_ext=c
41315 ac_cpp='$CPP $CPPFLAGS'
41316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41319
41320
41321 fi
41322
41323   fi
41324   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_use" >&5
41325 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_use" >&6
41326   if test x$glibcxx_cv_func___builtin_fabs_use = x"yes"; then
41327     echo "$as_me:$LINENO: checking for __builtin_fabs linkage" >&5
41328 echo $ECHO_N "checking for __builtin_fabs linkage... $ECHO_C" >&6
41329     if test x${glibcxx_cv_func___builtin_fabs_link+set} != xset; then
41330       if test "${glibcxx_cv_func___builtin_fabs_link+set}" = set; then
41331   echo $ECHO_N "(cached) $ECHO_C" >&6
41332 else
41333
41334         cat >conftest.$ac_ext <<_ACEOF
41335 #line $LINENO "configure"
41336 /* confdefs.h.  */
41337 _ACEOF
41338 cat confdefs.h >>conftest.$ac_ext
41339 cat >>conftest.$ac_ext <<_ACEOF
41340 /* end confdefs.h.  */
41341 #include <math.h>
41342 int
41343 main ()
41344 {
41345  __builtin_fabs(0);
41346   ;
41347   return 0;
41348 }
41349 _ACEOF
41350 rm -f conftest.$ac_objext conftest$ac_exeext
41351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41352   (eval $ac_link) 2>&5
41353   ac_status=$?
41354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41355   (exit $ac_status); } &&
41356          { ac_try='test -s conftest$ac_exeext'
41357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41358   (eval $ac_try) 2>&5
41359   ac_status=$?
41360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41361   (exit $ac_status); }; }; then
41362   glibcxx_cv_func___builtin_fabs_link=yes
41363 else
41364   echo "$as_me: failed program was:" >&5
41365 sed 's/^/| /' conftest.$ac_ext >&5
41366
41367 glibcxx_cv_func___builtin_fabs_link=no
41368 fi
41369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41370
41371 fi
41372
41373     fi
41374     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabs_link" >&5
41375 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabs_link" >&6
41376     if test x$glibcxx_cv_func___builtin_fabs_link = x"yes"; then
41377       ac_tr_func=HAVE_`echo __builtin_fabs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
41378       cat >>confdefs.h <<_ACEOF
41379 #define ${ac_tr_func} 1
41380 _ACEOF
41381
41382     fi
41383   fi
41384
41385
41386   echo "$as_me:$LINENO: checking for __builtin_fabsl declaration" >&5
41387 echo $ECHO_N "checking for __builtin_fabsl declaration... $ECHO_C" >&6
41388   if test x${glibcxx_cv_func___builtin_fabsl_use+set} != xset; then
41389     if test "${glibcxx_cv_func___builtin_fabsl_use+set}" = set; then
41390   echo $ECHO_N "(cached) $ECHO_C" >&6
41391 else
41392
41393
41394
41395       ac_ext=cc
41396 ac_cpp='$CXXCPP $CPPFLAGS'
41397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41400
41401       cat >conftest.$ac_ext <<_ACEOF
41402 #line $LINENO "configure"
41403 /* confdefs.h.  */
41404 _ACEOF
41405 cat confdefs.h >>conftest.$ac_ext
41406 cat >>conftest.$ac_ext <<_ACEOF
41407 /* end confdefs.h.  */
41408 #include <math.h>
41409 int
41410 main ()
41411 {
41412  __builtin_fabsl(0);
41413   ;
41414   return 0;
41415 }
41416 _ACEOF
41417 rm -f conftest.$ac_objext
41418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41419   (eval $ac_compile) 2>&5
41420   ac_status=$?
41421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41422   (exit $ac_status); } &&
41423          { ac_try='test -s conftest.$ac_objext'
41424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41425   (eval $ac_try) 2>&5
41426   ac_status=$?
41427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41428   (exit $ac_status); }; }; then
41429   glibcxx_cv_func___builtin_fabsl_use=yes
41430 else
41431   echo "$as_me: failed program was:" >&5
41432 sed 's/^/| /' conftest.$ac_ext >&5
41433
41434 glibcxx_cv_func___builtin_fabsl_use=no
41435 fi
41436 rm -f conftest.$ac_objext conftest.$ac_ext
41437       ac_ext=c
41438 ac_cpp='$CPP $CPPFLAGS'
41439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41442
41443
41444 fi
41445
41446   fi
41447   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_use" >&5
41448 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_use" >&6
41449   if test x$glibcxx_cv_func___builtin_fabsl_use = x"yes"; then
41450     echo "$as_me:$LINENO: checking for __builtin_fabsl linkage" >&5
41451 echo $ECHO_N "checking for __builtin_fabsl linkage... $ECHO_C" >&6
41452     if test x${glibcxx_cv_func___builtin_fabsl_link+set} != xset; then
41453       if test "${glibcxx_cv_func___builtin_fabsl_link+set}" = set; then
41454   echo $ECHO_N "(cached) $ECHO_C" >&6
41455 else
41456
41457         cat >conftest.$ac_ext <<_ACEOF
41458 #line $LINENO "configure"
41459 /* confdefs.h.  */
41460 _ACEOF
41461 cat confdefs.h >>conftest.$ac_ext
41462 cat >>conftest.$ac_ext <<_ACEOF
41463 /* end confdefs.h.  */
41464 #include <math.h>
41465 int
41466 main ()
41467 {
41468  __builtin_fabsl(0);
41469   ;
41470   return 0;
41471 }
41472 _ACEOF
41473 rm -f conftest.$ac_objext conftest$ac_exeext
41474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41475   (eval $ac_link) 2>&5
41476   ac_status=$?
41477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41478   (exit $ac_status); } &&
41479          { ac_try='test -s conftest$ac_exeext'
41480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41481   (eval $ac_try) 2>&5
41482   ac_status=$?
41483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41484   (exit $ac_status); }; }; then
41485   glibcxx_cv_func___builtin_fabsl_link=yes
41486 else
41487   echo "$as_me: failed program was:" >&5
41488 sed 's/^/| /' conftest.$ac_ext >&5
41489
41490 glibcxx_cv_func___builtin_fabsl_link=no
41491 fi
41492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41493
41494 fi
41495
41496     fi
41497     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_fabsl_link" >&5
41498 echo "${ECHO_T}$glibcxx_cv_func___builtin_fabsl_link" >&6
41499     if test x$glibcxx_cv_func___builtin_fabsl_link = x"yes"; then
41500       ac_tr_func=HAVE_`echo __builtin_fabsl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
41501       cat >>confdefs.h <<_ACEOF
41502 #define ${ac_tr_func} 1
41503 _ACEOF
41504
41505     fi
41506   fi
41507
41508
41509   echo "$as_me:$LINENO: checking for __builtin_labs declaration" >&5
41510 echo $ECHO_N "checking for __builtin_labs declaration... $ECHO_C" >&6
41511   if test x${glibcxx_cv_func___builtin_labs_use+set} != xset; then
41512     if test "${glibcxx_cv_func___builtin_labs_use+set}" = set; then
41513   echo $ECHO_N "(cached) $ECHO_C" >&6
41514 else
41515
41516
41517
41518       ac_ext=cc
41519 ac_cpp='$CXXCPP $CPPFLAGS'
41520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41521 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41523
41524       cat >conftest.$ac_ext <<_ACEOF
41525 #line $LINENO "configure"
41526 /* confdefs.h.  */
41527 _ACEOF
41528 cat confdefs.h >>conftest.$ac_ext
41529 cat >>conftest.$ac_ext <<_ACEOF
41530 /* end confdefs.h.  */
41531 #include <math.h>
41532 int
41533 main ()
41534 {
41535  __builtin_labs(0);
41536   ;
41537   return 0;
41538 }
41539 _ACEOF
41540 rm -f conftest.$ac_objext
41541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41542   (eval $ac_compile) 2>&5
41543   ac_status=$?
41544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41545   (exit $ac_status); } &&
41546          { ac_try='test -s conftest.$ac_objext'
41547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41548   (eval $ac_try) 2>&5
41549   ac_status=$?
41550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41551   (exit $ac_status); }; }; then
41552   glibcxx_cv_func___builtin_labs_use=yes
41553 else
41554   echo "$as_me: failed program was:" >&5
41555 sed 's/^/| /' conftest.$ac_ext >&5
41556
41557 glibcxx_cv_func___builtin_labs_use=no
41558 fi
41559 rm -f conftest.$ac_objext conftest.$ac_ext
41560       ac_ext=c
41561 ac_cpp='$CPP $CPPFLAGS'
41562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41565
41566
41567 fi
41568
41569   fi
41570   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_use" >&5
41571 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_use" >&6
41572   if test x$glibcxx_cv_func___builtin_labs_use = x"yes"; then
41573     echo "$as_me:$LINENO: checking for __builtin_labs linkage" >&5
41574 echo $ECHO_N "checking for __builtin_labs linkage... $ECHO_C" >&6
41575     if test x${glibcxx_cv_func___builtin_labs_link+set} != xset; then
41576       if test "${glibcxx_cv_func___builtin_labs_link+set}" = set; then
41577   echo $ECHO_N "(cached) $ECHO_C" >&6
41578 else
41579
41580         cat >conftest.$ac_ext <<_ACEOF
41581 #line $LINENO "configure"
41582 /* confdefs.h.  */
41583 _ACEOF
41584 cat confdefs.h >>conftest.$ac_ext
41585 cat >>conftest.$ac_ext <<_ACEOF
41586 /* end confdefs.h.  */
41587 #include <math.h>
41588 int
41589 main ()
41590 {
41591  __builtin_labs(0);
41592   ;
41593   return 0;
41594 }
41595 _ACEOF
41596 rm -f conftest.$ac_objext conftest$ac_exeext
41597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41598   (eval $ac_link) 2>&5
41599   ac_status=$?
41600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41601   (exit $ac_status); } &&
41602          { ac_try='test -s conftest$ac_exeext'
41603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41604   (eval $ac_try) 2>&5
41605   ac_status=$?
41606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41607   (exit $ac_status); }; }; then
41608   glibcxx_cv_func___builtin_labs_link=yes
41609 else
41610   echo "$as_me: failed program was:" >&5
41611 sed 's/^/| /' conftest.$ac_ext >&5
41612
41613 glibcxx_cv_func___builtin_labs_link=no
41614 fi
41615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41616
41617 fi
41618
41619     fi
41620     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_labs_link" >&5
41621 echo "${ECHO_T}$glibcxx_cv_func___builtin_labs_link" >&6
41622     if test x$glibcxx_cv_func___builtin_labs_link = x"yes"; then
41623       ac_tr_func=HAVE_`echo __builtin_labs | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
41624       cat >>confdefs.h <<_ACEOF
41625 #define ${ac_tr_func} 1
41626 _ACEOF
41627
41628     fi
41629   fi
41630
41631
41632
41633   echo "$as_me:$LINENO: checking for __builtin_sqrtf declaration" >&5
41634 echo $ECHO_N "checking for __builtin_sqrtf declaration... $ECHO_C" >&6
41635   if test x${glibcxx_cv_func___builtin_sqrtf_use+set} != xset; then
41636     if test "${glibcxx_cv_func___builtin_sqrtf_use+set}" = set; then
41637   echo $ECHO_N "(cached) $ECHO_C" >&6
41638 else
41639
41640
41641
41642       ac_ext=cc
41643 ac_cpp='$CXXCPP $CPPFLAGS'
41644 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41645 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41646 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41647
41648       cat >conftest.$ac_ext <<_ACEOF
41649 #line $LINENO "configure"
41650 /* confdefs.h.  */
41651 _ACEOF
41652 cat confdefs.h >>conftest.$ac_ext
41653 cat >>conftest.$ac_ext <<_ACEOF
41654 /* end confdefs.h.  */
41655 #include <math.h>
41656 int
41657 main ()
41658 {
41659  __builtin_sqrtf(0);
41660   ;
41661   return 0;
41662 }
41663 _ACEOF
41664 rm -f conftest.$ac_objext
41665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41666   (eval $ac_compile) 2>&5
41667   ac_status=$?
41668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41669   (exit $ac_status); } &&
41670          { ac_try='test -s conftest.$ac_objext'
41671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41672   (eval $ac_try) 2>&5
41673   ac_status=$?
41674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41675   (exit $ac_status); }; }; then
41676   glibcxx_cv_func___builtin_sqrtf_use=yes
41677 else
41678   echo "$as_me: failed program was:" >&5
41679 sed 's/^/| /' conftest.$ac_ext >&5
41680
41681 glibcxx_cv_func___builtin_sqrtf_use=no
41682 fi
41683 rm -f conftest.$ac_objext conftest.$ac_ext
41684       ac_ext=c
41685 ac_cpp='$CPP $CPPFLAGS'
41686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41689
41690
41691 fi
41692
41693   fi
41694   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_use" >&5
41695 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_use" >&6
41696   if test x$glibcxx_cv_func___builtin_sqrtf_use = x"yes"; then
41697     echo "$as_me:$LINENO: checking for __builtin_sqrtf linkage" >&5
41698 echo $ECHO_N "checking for __builtin_sqrtf linkage... $ECHO_C" >&6
41699     if test x${glibcxx_cv_func___builtin_sqrtf_link+set} != xset; then
41700       if test "${glibcxx_cv_func___builtin_sqrtf_link+set}" = set; then
41701   echo $ECHO_N "(cached) $ECHO_C" >&6
41702 else
41703
41704         cat >conftest.$ac_ext <<_ACEOF
41705 #line $LINENO "configure"
41706 /* confdefs.h.  */
41707 _ACEOF
41708 cat confdefs.h >>conftest.$ac_ext
41709 cat >>conftest.$ac_ext <<_ACEOF
41710 /* end confdefs.h.  */
41711 #include <math.h>
41712 int
41713 main ()
41714 {
41715  __builtin_sqrtf(0);
41716   ;
41717   return 0;
41718 }
41719 _ACEOF
41720 rm -f conftest.$ac_objext conftest$ac_exeext
41721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41722   (eval $ac_link) 2>&5
41723   ac_status=$?
41724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41725   (exit $ac_status); } &&
41726          { ac_try='test -s conftest$ac_exeext'
41727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41728   (eval $ac_try) 2>&5
41729   ac_status=$?
41730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41731   (exit $ac_status); }; }; then
41732   glibcxx_cv_func___builtin_sqrtf_link=yes
41733 else
41734   echo "$as_me: failed program was:" >&5
41735 sed 's/^/| /' conftest.$ac_ext >&5
41736
41737 glibcxx_cv_func___builtin_sqrtf_link=no
41738 fi
41739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41740
41741 fi
41742
41743     fi
41744     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtf_link" >&5
41745 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtf_link" >&6
41746     if test x$glibcxx_cv_func___builtin_sqrtf_link = x"yes"; then
41747       ac_tr_func=HAVE_`echo __builtin_sqrtf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
41748       cat >>confdefs.h <<_ACEOF
41749 #define ${ac_tr_func} 1
41750 _ACEOF
41751
41752     fi
41753   fi
41754
41755
41756   echo "$as_me:$LINENO: checking for __builtin_sqrt declaration" >&5
41757 echo $ECHO_N "checking for __builtin_sqrt declaration... $ECHO_C" >&6
41758   if test x${glibcxx_cv_func___builtin_sqrt_use+set} != xset; then
41759     if test "${glibcxx_cv_func___builtin_sqrt_use+set}" = set; then
41760   echo $ECHO_N "(cached) $ECHO_C" >&6
41761 else
41762
41763
41764
41765       ac_ext=cc
41766 ac_cpp='$CXXCPP $CPPFLAGS'
41767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41770
41771       cat >conftest.$ac_ext <<_ACEOF
41772 #line $LINENO "configure"
41773 /* confdefs.h.  */
41774 _ACEOF
41775 cat confdefs.h >>conftest.$ac_ext
41776 cat >>conftest.$ac_ext <<_ACEOF
41777 /* end confdefs.h.  */
41778 #include <math.h>
41779 int
41780 main ()
41781 {
41782  __builtin_sqrt(0);
41783   ;
41784   return 0;
41785 }
41786 _ACEOF
41787 rm -f conftest.$ac_objext
41788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41789   (eval $ac_compile) 2>&5
41790   ac_status=$?
41791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41792   (exit $ac_status); } &&
41793          { ac_try='test -s conftest.$ac_objext'
41794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41795   (eval $ac_try) 2>&5
41796   ac_status=$?
41797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41798   (exit $ac_status); }; }; then
41799   glibcxx_cv_func___builtin_sqrt_use=yes
41800 else
41801   echo "$as_me: failed program was:" >&5
41802 sed 's/^/| /' conftest.$ac_ext >&5
41803
41804 glibcxx_cv_func___builtin_sqrt_use=no
41805 fi
41806 rm -f conftest.$ac_objext conftest.$ac_ext
41807       ac_ext=c
41808 ac_cpp='$CPP $CPPFLAGS'
41809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41812
41813
41814 fi
41815
41816   fi
41817   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_use" >&5
41818 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_use" >&6
41819   if test x$glibcxx_cv_func___builtin_sqrt_use = x"yes"; then
41820     echo "$as_me:$LINENO: checking for __builtin_sqrt linkage" >&5
41821 echo $ECHO_N "checking for __builtin_sqrt linkage... $ECHO_C" >&6
41822     if test x${glibcxx_cv_func___builtin_sqrt_link+set} != xset; then
41823       if test "${glibcxx_cv_func___builtin_sqrt_link+set}" = set; then
41824   echo $ECHO_N "(cached) $ECHO_C" >&6
41825 else
41826
41827         cat >conftest.$ac_ext <<_ACEOF
41828 #line $LINENO "configure"
41829 /* confdefs.h.  */
41830 _ACEOF
41831 cat confdefs.h >>conftest.$ac_ext
41832 cat >>conftest.$ac_ext <<_ACEOF
41833 /* end confdefs.h.  */
41834 #include <math.h>
41835 int
41836 main ()
41837 {
41838  __builtin_sqrt(0);
41839   ;
41840   return 0;
41841 }
41842 _ACEOF
41843 rm -f conftest.$ac_objext conftest$ac_exeext
41844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41845   (eval $ac_link) 2>&5
41846   ac_status=$?
41847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41848   (exit $ac_status); } &&
41849          { ac_try='test -s conftest$ac_exeext'
41850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41851   (eval $ac_try) 2>&5
41852   ac_status=$?
41853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41854   (exit $ac_status); }; }; then
41855   glibcxx_cv_func___builtin_sqrt_link=yes
41856 else
41857   echo "$as_me: failed program was:" >&5
41858 sed 's/^/| /' conftest.$ac_ext >&5
41859
41860 glibcxx_cv_func___builtin_sqrt_link=no
41861 fi
41862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41863
41864 fi
41865
41866     fi
41867     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrt_link" >&5
41868 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrt_link" >&6
41869     if test x$glibcxx_cv_func___builtin_sqrt_link = x"yes"; then
41870       ac_tr_func=HAVE_`echo __builtin_sqrt | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
41871       cat >>confdefs.h <<_ACEOF
41872 #define ${ac_tr_func} 1
41873 _ACEOF
41874
41875     fi
41876   fi
41877
41878
41879   echo "$as_me:$LINENO: checking for __builtin_sqrtl declaration" >&5
41880 echo $ECHO_N "checking for __builtin_sqrtl declaration... $ECHO_C" >&6
41881   if test x${glibcxx_cv_func___builtin_sqrtl_use+set} != xset; then
41882     if test "${glibcxx_cv_func___builtin_sqrtl_use+set}" = set; then
41883   echo $ECHO_N "(cached) $ECHO_C" >&6
41884 else
41885
41886
41887
41888       ac_ext=cc
41889 ac_cpp='$CXXCPP $CPPFLAGS'
41890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41893
41894       cat >conftest.$ac_ext <<_ACEOF
41895 #line $LINENO "configure"
41896 /* confdefs.h.  */
41897 _ACEOF
41898 cat confdefs.h >>conftest.$ac_ext
41899 cat >>conftest.$ac_ext <<_ACEOF
41900 /* end confdefs.h.  */
41901 #include <math.h>
41902 int
41903 main ()
41904 {
41905  __builtin_sqrtl(0);
41906   ;
41907   return 0;
41908 }
41909 _ACEOF
41910 rm -f conftest.$ac_objext
41911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41912   (eval $ac_compile) 2>&5
41913   ac_status=$?
41914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41915   (exit $ac_status); } &&
41916          { ac_try='test -s conftest.$ac_objext'
41917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41918   (eval $ac_try) 2>&5
41919   ac_status=$?
41920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41921   (exit $ac_status); }; }; then
41922   glibcxx_cv_func___builtin_sqrtl_use=yes
41923 else
41924   echo "$as_me: failed program was:" >&5
41925 sed 's/^/| /' conftest.$ac_ext >&5
41926
41927 glibcxx_cv_func___builtin_sqrtl_use=no
41928 fi
41929 rm -f conftest.$ac_objext conftest.$ac_ext
41930       ac_ext=c
41931 ac_cpp='$CPP $CPPFLAGS'
41932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41935
41936
41937 fi
41938
41939   fi
41940   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_use" >&5
41941 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_use" >&6
41942   if test x$glibcxx_cv_func___builtin_sqrtl_use = x"yes"; then
41943     echo "$as_me:$LINENO: checking for __builtin_sqrtl linkage" >&5
41944 echo $ECHO_N "checking for __builtin_sqrtl linkage... $ECHO_C" >&6
41945     if test x${glibcxx_cv_func___builtin_sqrtl_link+set} != xset; then
41946       if test "${glibcxx_cv_func___builtin_sqrtl_link+set}" = set; then
41947   echo $ECHO_N "(cached) $ECHO_C" >&6
41948 else
41949
41950         cat >conftest.$ac_ext <<_ACEOF
41951 #line $LINENO "configure"
41952 /* confdefs.h.  */
41953 _ACEOF
41954 cat confdefs.h >>conftest.$ac_ext
41955 cat >>conftest.$ac_ext <<_ACEOF
41956 /* end confdefs.h.  */
41957 #include <math.h>
41958 int
41959 main ()
41960 {
41961  __builtin_sqrtl(0);
41962   ;
41963   return 0;
41964 }
41965 _ACEOF
41966 rm -f conftest.$ac_objext conftest$ac_exeext
41967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41968   (eval $ac_link) 2>&5
41969   ac_status=$?
41970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41971   (exit $ac_status); } &&
41972          { ac_try='test -s conftest$ac_exeext'
41973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41974   (eval $ac_try) 2>&5
41975   ac_status=$?
41976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41977   (exit $ac_status); }; }; then
41978   glibcxx_cv_func___builtin_sqrtl_link=yes
41979 else
41980   echo "$as_me: failed program was:" >&5
41981 sed 's/^/| /' conftest.$ac_ext >&5
41982
41983 glibcxx_cv_func___builtin_sqrtl_link=no
41984 fi
41985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
41986
41987 fi
41988
41989     fi
41990     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sqrtl_link" >&5
41991 echo "${ECHO_T}$glibcxx_cv_func___builtin_sqrtl_link" >&6
41992     if test x$glibcxx_cv_func___builtin_sqrtl_link = x"yes"; then
41993       ac_tr_func=HAVE_`echo __builtin_sqrtl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
41994       cat >>confdefs.h <<_ACEOF
41995 #define ${ac_tr_func} 1
41996 _ACEOF
41997
41998     fi
41999   fi
42000
42001
42002
42003   echo "$as_me:$LINENO: checking for __builtin_sinf declaration" >&5
42004 echo $ECHO_N "checking for __builtin_sinf declaration... $ECHO_C" >&6
42005   if test x${glibcxx_cv_func___builtin_sinf_use+set} != xset; then
42006     if test "${glibcxx_cv_func___builtin_sinf_use+set}" = set; then
42007   echo $ECHO_N "(cached) $ECHO_C" >&6
42008 else
42009
42010
42011
42012       ac_ext=cc
42013 ac_cpp='$CXXCPP $CPPFLAGS'
42014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42017
42018       cat >conftest.$ac_ext <<_ACEOF
42019 #line $LINENO "configure"
42020 /* confdefs.h.  */
42021 _ACEOF
42022 cat confdefs.h >>conftest.$ac_ext
42023 cat >>conftest.$ac_ext <<_ACEOF
42024 /* end confdefs.h.  */
42025 #include <math.h>
42026 int
42027 main ()
42028 {
42029  __builtin_sinf(0);
42030   ;
42031   return 0;
42032 }
42033 _ACEOF
42034 rm -f conftest.$ac_objext
42035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42036   (eval $ac_compile) 2>&5
42037   ac_status=$?
42038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42039   (exit $ac_status); } &&
42040          { ac_try='test -s conftest.$ac_objext'
42041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42042   (eval $ac_try) 2>&5
42043   ac_status=$?
42044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42045   (exit $ac_status); }; }; then
42046   glibcxx_cv_func___builtin_sinf_use=yes
42047 else
42048   echo "$as_me: failed program was:" >&5
42049 sed 's/^/| /' conftest.$ac_ext >&5
42050
42051 glibcxx_cv_func___builtin_sinf_use=no
42052 fi
42053 rm -f conftest.$ac_objext conftest.$ac_ext
42054       ac_ext=c
42055 ac_cpp='$CPP $CPPFLAGS'
42056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42059
42060
42061 fi
42062
42063   fi
42064   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_use" >&5
42065 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_use" >&6
42066   if test x$glibcxx_cv_func___builtin_sinf_use = x"yes"; then
42067     echo "$as_me:$LINENO: checking for __builtin_sinf linkage" >&5
42068 echo $ECHO_N "checking for __builtin_sinf linkage... $ECHO_C" >&6
42069     if test x${glibcxx_cv_func___builtin_sinf_link+set} != xset; then
42070       if test "${glibcxx_cv_func___builtin_sinf_link+set}" = set; then
42071   echo $ECHO_N "(cached) $ECHO_C" >&6
42072 else
42073
42074         cat >conftest.$ac_ext <<_ACEOF
42075 #line $LINENO "configure"
42076 /* confdefs.h.  */
42077 _ACEOF
42078 cat confdefs.h >>conftest.$ac_ext
42079 cat >>conftest.$ac_ext <<_ACEOF
42080 /* end confdefs.h.  */
42081 #include <math.h>
42082 int
42083 main ()
42084 {
42085  __builtin_sinf(0);
42086   ;
42087   return 0;
42088 }
42089 _ACEOF
42090 rm -f conftest.$ac_objext conftest$ac_exeext
42091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42092   (eval $ac_link) 2>&5
42093   ac_status=$?
42094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42095   (exit $ac_status); } &&
42096          { ac_try='test -s conftest$ac_exeext'
42097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42098   (eval $ac_try) 2>&5
42099   ac_status=$?
42100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42101   (exit $ac_status); }; }; then
42102   glibcxx_cv_func___builtin_sinf_link=yes
42103 else
42104   echo "$as_me: failed program was:" >&5
42105 sed 's/^/| /' conftest.$ac_ext >&5
42106
42107 glibcxx_cv_func___builtin_sinf_link=no
42108 fi
42109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42110
42111 fi
42112
42113     fi
42114     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinf_link" >&5
42115 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinf_link" >&6
42116     if test x$glibcxx_cv_func___builtin_sinf_link = x"yes"; then
42117       ac_tr_func=HAVE_`echo __builtin_sinf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42118       cat >>confdefs.h <<_ACEOF
42119 #define ${ac_tr_func} 1
42120 _ACEOF
42121
42122     fi
42123   fi
42124
42125
42126   echo "$as_me:$LINENO: checking for __builtin_sin declaration" >&5
42127 echo $ECHO_N "checking for __builtin_sin declaration... $ECHO_C" >&6
42128   if test x${glibcxx_cv_func___builtin_sin_use+set} != xset; then
42129     if test "${glibcxx_cv_func___builtin_sin_use+set}" = set; then
42130   echo $ECHO_N "(cached) $ECHO_C" >&6
42131 else
42132
42133
42134
42135       ac_ext=cc
42136 ac_cpp='$CXXCPP $CPPFLAGS'
42137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42140
42141       cat >conftest.$ac_ext <<_ACEOF
42142 #line $LINENO "configure"
42143 /* confdefs.h.  */
42144 _ACEOF
42145 cat confdefs.h >>conftest.$ac_ext
42146 cat >>conftest.$ac_ext <<_ACEOF
42147 /* end confdefs.h.  */
42148 #include <math.h>
42149 int
42150 main ()
42151 {
42152  __builtin_sin(0);
42153   ;
42154   return 0;
42155 }
42156 _ACEOF
42157 rm -f conftest.$ac_objext
42158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42159   (eval $ac_compile) 2>&5
42160   ac_status=$?
42161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42162   (exit $ac_status); } &&
42163          { ac_try='test -s conftest.$ac_objext'
42164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42165   (eval $ac_try) 2>&5
42166   ac_status=$?
42167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42168   (exit $ac_status); }; }; then
42169   glibcxx_cv_func___builtin_sin_use=yes
42170 else
42171   echo "$as_me: failed program was:" >&5
42172 sed 's/^/| /' conftest.$ac_ext >&5
42173
42174 glibcxx_cv_func___builtin_sin_use=no
42175 fi
42176 rm -f conftest.$ac_objext conftest.$ac_ext
42177       ac_ext=c
42178 ac_cpp='$CPP $CPPFLAGS'
42179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42182
42183
42184 fi
42185
42186   fi
42187   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_use" >&5
42188 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_use" >&6
42189   if test x$glibcxx_cv_func___builtin_sin_use = x"yes"; then
42190     echo "$as_me:$LINENO: checking for __builtin_sin linkage" >&5
42191 echo $ECHO_N "checking for __builtin_sin linkage... $ECHO_C" >&6
42192     if test x${glibcxx_cv_func___builtin_sin_link+set} != xset; then
42193       if test "${glibcxx_cv_func___builtin_sin_link+set}" = set; then
42194   echo $ECHO_N "(cached) $ECHO_C" >&6
42195 else
42196
42197         cat >conftest.$ac_ext <<_ACEOF
42198 #line $LINENO "configure"
42199 /* confdefs.h.  */
42200 _ACEOF
42201 cat confdefs.h >>conftest.$ac_ext
42202 cat >>conftest.$ac_ext <<_ACEOF
42203 /* end confdefs.h.  */
42204 #include <math.h>
42205 int
42206 main ()
42207 {
42208  __builtin_sin(0);
42209   ;
42210   return 0;
42211 }
42212 _ACEOF
42213 rm -f conftest.$ac_objext conftest$ac_exeext
42214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42215   (eval $ac_link) 2>&5
42216   ac_status=$?
42217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42218   (exit $ac_status); } &&
42219          { ac_try='test -s conftest$ac_exeext'
42220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42221   (eval $ac_try) 2>&5
42222   ac_status=$?
42223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42224   (exit $ac_status); }; }; then
42225   glibcxx_cv_func___builtin_sin_link=yes
42226 else
42227   echo "$as_me: failed program was:" >&5
42228 sed 's/^/| /' conftest.$ac_ext >&5
42229
42230 glibcxx_cv_func___builtin_sin_link=no
42231 fi
42232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42233
42234 fi
42235
42236     fi
42237     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sin_link" >&5
42238 echo "${ECHO_T}$glibcxx_cv_func___builtin_sin_link" >&6
42239     if test x$glibcxx_cv_func___builtin_sin_link = x"yes"; then
42240       ac_tr_func=HAVE_`echo __builtin_sin | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42241       cat >>confdefs.h <<_ACEOF
42242 #define ${ac_tr_func} 1
42243 _ACEOF
42244
42245     fi
42246   fi
42247
42248
42249   echo "$as_me:$LINENO: checking for __builtin_sinl declaration" >&5
42250 echo $ECHO_N "checking for __builtin_sinl declaration... $ECHO_C" >&6
42251   if test x${glibcxx_cv_func___builtin_sinl_use+set} != xset; then
42252     if test "${glibcxx_cv_func___builtin_sinl_use+set}" = set; then
42253   echo $ECHO_N "(cached) $ECHO_C" >&6
42254 else
42255
42256
42257
42258       ac_ext=cc
42259 ac_cpp='$CXXCPP $CPPFLAGS'
42260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42263
42264       cat >conftest.$ac_ext <<_ACEOF
42265 #line $LINENO "configure"
42266 /* confdefs.h.  */
42267 _ACEOF
42268 cat confdefs.h >>conftest.$ac_ext
42269 cat >>conftest.$ac_ext <<_ACEOF
42270 /* end confdefs.h.  */
42271 #include <math.h>
42272 int
42273 main ()
42274 {
42275  __builtin_sinl(0);
42276   ;
42277   return 0;
42278 }
42279 _ACEOF
42280 rm -f conftest.$ac_objext
42281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42282   (eval $ac_compile) 2>&5
42283   ac_status=$?
42284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42285   (exit $ac_status); } &&
42286          { ac_try='test -s conftest.$ac_objext'
42287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42288   (eval $ac_try) 2>&5
42289   ac_status=$?
42290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42291   (exit $ac_status); }; }; then
42292   glibcxx_cv_func___builtin_sinl_use=yes
42293 else
42294   echo "$as_me: failed program was:" >&5
42295 sed 's/^/| /' conftest.$ac_ext >&5
42296
42297 glibcxx_cv_func___builtin_sinl_use=no
42298 fi
42299 rm -f conftest.$ac_objext conftest.$ac_ext
42300       ac_ext=c
42301 ac_cpp='$CPP $CPPFLAGS'
42302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42305
42306
42307 fi
42308
42309   fi
42310   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_use" >&5
42311 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_use" >&6
42312   if test x$glibcxx_cv_func___builtin_sinl_use = x"yes"; then
42313     echo "$as_me:$LINENO: checking for __builtin_sinl linkage" >&5
42314 echo $ECHO_N "checking for __builtin_sinl linkage... $ECHO_C" >&6
42315     if test x${glibcxx_cv_func___builtin_sinl_link+set} != xset; then
42316       if test "${glibcxx_cv_func___builtin_sinl_link+set}" = set; then
42317   echo $ECHO_N "(cached) $ECHO_C" >&6
42318 else
42319
42320         cat >conftest.$ac_ext <<_ACEOF
42321 #line $LINENO "configure"
42322 /* confdefs.h.  */
42323 _ACEOF
42324 cat confdefs.h >>conftest.$ac_ext
42325 cat >>conftest.$ac_ext <<_ACEOF
42326 /* end confdefs.h.  */
42327 #include <math.h>
42328 int
42329 main ()
42330 {
42331  __builtin_sinl(0);
42332   ;
42333   return 0;
42334 }
42335 _ACEOF
42336 rm -f conftest.$ac_objext conftest$ac_exeext
42337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42338   (eval $ac_link) 2>&5
42339   ac_status=$?
42340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42341   (exit $ac_status); } &&
42342          { ac_try='test -s conftest$ac_exeext'
42343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42344   (eval $ac_try) 2>&5
42345   ac_status=$?
42346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42347   (exit $ac_status); }; }; then
42348   glibcxx_cv_func___builtin_sinl_link=yes
42349 else
42350   echo "$as_me: failed program was:" >&5
42351 sed 's/^/| /' conftest.$ac_ext >&5
42352
42353 glibcxx_cv_func___builtin_sinl_link=no
42354 fi
42355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42356
42357 fi
42358
42359     fi
42360     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_sinl_link" >&5
42361 echo "${ECHO_T}$glibcxx_cv_func___builtin_sinl_link" >&6
42362     if test x$glibcxx_cv_func___builtin_sinl_link = x"yes"; then
42363       ac_tr_func=HAVE_`echo __builtin_sinl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42364       cat >>confdefs.h <<_ACEOF
42365 #define ${ac_tr_func} 1
42366 _ACEOF
42367
42368     fi
42369   fi
42370
42371
42372
42373   echo "$as_me:$LINENO: checking for __builtin_cosf declaration" >&5
42374 echo $ECHO_N "checking for __builtin_cosf declaration... $ECHO_C" >&6
42375   if test x${glibcxx_cv_func___builtin_cosf_use+set} != xset; then
42376     if test "${glibcxx_cv_func___builtin_cosf_use+set}" = set; then
42377   echo $ECHO_N "(cached) $ECHO_C" >&6
42378 else
42379
42380
42381
42382       ac_ext=cc
42383 ac_cpp='$CXXCPP $CPPFLAGS'
42384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42387
42388       cat >conftest.$ac_ext <<_ACEOF
42389 #line $LINENO "configure"
42390 /* confdefs.h.  */
42391 _ACEOF
42392 cat confdefs.h >>conftest.$ac_ext
42393 cat >>conftest.$ac_ext <<_ACEOF
42394 /* end confdefs.h.  */
42395 #include <math.h>
42396 int
42397 main ()
42398 {
42399  __builtin_cosf(0);
42400   ;
42401   return 0;
42402 }
42403 _ACEOF
42404 rm -f conftest.$ac_objext
42405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42406   (eval $ac_compile) 2>&5
42407   ac_status=$?
42408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42409   (exit $ac_status); } &&
42410          { ac_try='test -s conftest.$ac_objext'
42411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42412   (eval $ac_try) 2>&5
42413   ac_status=$?
42414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42415   (exit $ac_status); }; }; then
42416   glibcxx_cv_func___builtin_cosf_use=yes
42417 else
42418   echo "$as_me: failed program was:" >&5
42419 sed 's/^/| /' conftest.$ac_ext >&5
42420
42421 glibcxx_cv_func___builtin_cosf_use=no
42422 fi
42423 rm -f conftest.$ac_objext conftest.$ac_ext
42424       ac_ext=c
42425 ac_cpp='$CPP $CPPFLAGS'
42426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42429
42430
42431 fi
42432
42433   fi
42434   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_use" >&5
42435 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_use" >&6
42436   if test x$glibcxx_cv_func___builtin_cosf_use = x"yes"; then
42437     echo "$as_me:$LINENO: checking for __builtin_cosf linkage" >&5
42438 echo $ECHO_N "checking for __builtin_cosf linkage... $ECHO_C" >&6
42439     if test x${glibcxx_cv_func___builtin_cosf_link+set} != xset; then
42440       if test "${glibcxx_cv_func___builtin_cosf_link+set}" = set; then
42441   echo $ECHO_N "(cached) $ECHO_C" >&6
42442 else
42443
42444         cat >conftest.$ac_ext <<_ACEOF
42445 #line $LINENO "configure"
42446 /* confdefs.h.  */
42447 _ACEOF
42448 cat confdefs.h >>conftest.$ac_ext
42449 cat >>conftest.$ac_ext <<_ACEOF
42450 /* end confdefs.h.  */
42451 #include <math.h>
42452 int
42453 main ()
42454 {
42455  __builtin_cosf(0);
42456   ;
42457   return 0;
42458 }
42459 _ACEOF
42460 rm -f conftest.$ac_objext conftest$ac_exeext
42461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42462   (eval $ac_link) 2>&5
42463   ac_status=$?
42464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42465   (exit $ac_status); } &&
42466          { ac_try='test -s conftest$ac_exeext'
42467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42468   (eval $ac_try) 2>&5
42469   ac_status=$?
42470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42471   (exit $ac_status); }; }; then
42472   glibcxx_cv_func___builtin_cosf_link=yes
42473 else
42474   echo "$as_me: failed program was:" >&5
42475 sed 's/^/| /' conftest.$ac_ext >&5
42476
42477 glibcxx_cv_func___builtin_cosf_link=no
42478 fi
42479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42480
42481 fi
42482
42483     fi
42484     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosf_link" >&5
42485 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosf_link" >&6
42486     if test x$glibcxx_cv_func___builtin_cosf_link = x"yes"; then
42487       ac_tr_func=HAVE_`echo __builtin_cosf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42488       cat >>confdefs.h <<_ACEOF
42489 #define ${ac_tr_func} 1
42490 _ACEOF
42491
42492     fi
42493   fi
42494
42495
42496   echo "$as_me:$LINENO: checking for __builtin_cos declaration" >&5
42497 echo $ECHO_N "checking for __builtin_cos declaration... $ECHO_C" >&6
42498   if test x${glibcxx_cv_func___builtin_cos_use+set} != xset; then
42499     if test "${glibcxx_cv_func___builtin_cos_use+set}" = set; then
42500   echo $ECHO_N "(cached) $ECHO_C" >&6
42501 else
42502
42503
42504
42505       ac_ext=cc
42506 ac_cpp='$CXXCPP $CPPFLAGS'
42507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42510
42511       cat >conftest.$ac_ext <<_ACEOF
42512 #line $LINENO "configure"
42513 /* confdefs.h.  */
42514 _ACEOF
42515 cat confdefs.h >>conftest.$ac_ext
42516 cat >>conftest.$ac_ext <<_ACEOF
42517 /* end confdefs.h.  */
42518 #include <math.h>
42519 int
42520 main ()
42521 {
42522  __builtin_cos(0);
42523   ;
42524   return 0;
42525 }
42526 _ACEOF
42527 rm -f conftest.$ac_objext
42528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42529   (eval $ac_compile) 2>&5
42530   ac_status=$?
42531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42532   (exit $ac_status); } &&
42533          { ac_try='test -s conftest.$ac_objext'
42534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42535   (eval $ac_try) 2>&5
42536   ac_status=$?
42537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42538   (exit $ac_status); }; }; then
42539   glibcxx_cv_func___builtin_cos_use=yes
42540 else
42541   echo "$as_me: failed program was:" >&5
42542 sed 's/^/| /' conftest.$ac_ext >&5
42543
42544 glibcxx_cv_func___builtin_cos_use=no
42545 fi
42546 rm -f conftest.$ac_objext conftest.$ac_ext
42547       ac_ext=c
42548 ac_cpp='$CPP $CPPFLAGS'
42549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42552
42553
42554 fi
42555
42556   fi
42557   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_use" >&5
42558 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_use" >&6
42559   if test x$glibcxx_cv_func___builtin_cos_use = x"yes"; then
42560     echo "$as_me:$LINENO: checking for __builtin_cos linkage" >&5
42561 echo $ECHO_N "checking for __builtin_cos linkage... $ECHO_C" >&6
42562     if test x${glibcxx_cv_func___builtin_cos_link+set} != xset; then
42563       if test "${glibcxx_cv_func___builtin_cos_link+set}" = set; then
42564   echo $ECHO_N "(cached) $ECHO_C" >&6
42565 else
42566
42567         cat >conftest.$ac_ext <<_ACEOF
42568 #line $LINENO "configure"
42569 /* confdefs.h.  */
42570 _ACEOF
42571 cat confdefs.h >>conftest.$ac_ext
42572 cat >>conftest.$ac_ext <<_ACEOF
42573 /* end confdefs.h.  */
42574 #include <math.h>
42575 int
42576 main ()
42577 {
42578  __builtin_cos(0);
42579   ;
42580   return 0;
42581 }
42582 _ACEOF
42583 rm -f conftest.$ac_objext conftest$ac_exeext
42584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42585   (eval $ac_link) 2>&5
42586   ac_status=$?
42587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42588   (exit $ac_status); } &&
42589          { ac_try='test -s conftest$ac_exeext'
42590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42591   (eval $ac_try) 2>&5
42592   ac_status=$?
42593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42594   (exit $ac_status); }; }; then
42595   glibcxx_cv_func___builtin_cos_link=yes
42596 else
42597   echo "$as_me: failed program was:" >&5
42598 sed 's/^/| /' conftest.$ac_ext >&5
42599
42600 glibcxx_cv_func___builtin_cos_link=no
42601 fi
42602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42603
42604 fi
42605
42606     fi
42607     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cos_link" >&5
42608 echo "${ECHO_T}$glibcxx_cv_func___builtin_cos_link" >&6
42609     if test x$glibcxx_cv_func___builtin_cos_link = x"yes"; then
42610       ac_tr_func=HAVE_`echo __builtin_cos | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42611       cat >>confdefs.h <<_ACEOF
42612 #define ${ac_tr_func} 1
42613 _ACEOF
42614
42615     fi
42616   fi
42617
42618
42619   echo "$as_me:$LINENO: checking for __builtin_cosl declaration" >&5
42620 echo $ECHO_N "checking for __builtin_cosl declaration... $ECHO_C" >&6
42621   if test x${glibcxx_cv_func___builtin_cosl_use+set} != xset; then
42622     if test "${glibcxx_cv_func___builtin_cosl_use+set}" = set; then
42623   echo $ECHO_N "(cached) $ECHO_C" >&6
42624 else
42625
42626
42627
42628       ac_ext=cc
42629 ac_cpp='$CXXCPP $CPPFLAGS'
42630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42633
42634       cat >conftest.$ac_ext <<_ACEOF
42635 #line $LINENO "configure"
42636 /* confdefs.h.  */
42637 _ACEOF
42638 cat confdefs.h >>conftest.$ac_ext
42639 cat >>conftest.$ac_ext <<_ACEOF
42640 /* end confdefs.h.  */
42641 #include <math.h>
42642 int
42643 main ()
42644 {
42645  __builtin_cosl(0);
42646   ;
42647   return 0;
42648 }
42649 _ACEOF
42650 rm -f conftest.$ac_objext
42651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42652   (eval $ac_compile) 2>&5
42653   ac_status=$?
42654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42655   (exit $ac_status); } &&
42656          { ac_try='test -s conftest.$ac_objext'
42657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42658   (eval $ac_try) 2>&5
42659   ac_status=$?
42660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42661   (exit $ac_status); }; }; then
42662   glibcxx_cv_func___builtin_cosl_use=yes
42663 else
42664   echo "$as_me: failed program was:" >&5
42665 sed 's/^/| /' conftest.$ac_ext >&5
42666
42667 glibcxx_cv_func___builtin_cosl_use=no
42668 fi
42669 rm -f conftest.$ac_objext conftest.$ac_ext
42670       ac_ext=c
42671 ac_cpp='$CPP $CPPFLAGS'
42672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42675
42676
42677 fi
42678
42679   fi
42680   echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_use" >&5
42681 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_use" >&6
42682   if test x$glibcxx_cv_func___builtin_cosl_use = x"yes"; then
42683     echo "$as_me:$LINENO: checking for __builtin_cosl linkage" >&5
42684 echo $ECHO_N "checking for __builtin_cosl linkage... $ECHO_C" >&6
42685     if test x${glibcxx_cv_func___builtin_cosl_link+set} != xset; then
42686       if test "${glibcxx_cv_func___builtin_cosl_link+set}" = set; then
42687   echo $ECHO_N "(cached) $ECHO_C" >&6
42688 else
42689
42690         cat >conftest.$ac_ext <<_ACEOF
42691 #line $LINENO "configure"
42692 /* confdefs.h.  */
42693 _ACEOF
42694 cat confdefs.h >>conftest.$ac_ext
42695 cat >>conftest.$ac_ext <<_ACEOF
42696 /* end confdefs.h.  */
42697 #include <math.h>
42698 int
42699 main ()
42700 {
42701  __builtin_cosl(0);
42702   ;
42703   return 0;
42704 }
42705 _ACEOF
42706 rm -f conftest.$ac_objext conftest$ac_exeext
42707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42708   (eval $ac_link) 2>&5
42709   ac_status=$?
42710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42711   (exit $ac_status); } &&
42712          { ac_try='test -s conftest$ac_exeext'
42713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42714   (eval $ac_try) 2>&5
42715   ac_status=$?
42716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42717   (exit $ac_status); }; }; then
42718   glibcxx_cv_func___builtin_cosl_link=yes
42719 else
42720   echo "$as_me: failed program was:" >&5
42721 sed 's/^/| /' conftest.$ac_ext >&5
42722
42723 glibcxx_cv_func___builtin_cosl_link=no
42724 fi
42725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42726
42727 fi
42728
42729     fi
42730     echo "$as_me:$LINENO: result: $glibcxx_cv_func___builtin_cosl_link" >&5
42731 echo "${ECHO_T}$glibcxx_cv_func___builtin_cosl_link" >&6
42732     if test x$glibcxx_cv_func___builtin_cosl_link = x"yes"; then
42733       ac_tr_func=HAVE_`echo __builtin_cosl | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
42734       cat >>confdefs.h <<_ACEOF
42735 #define ${ac_tr_func} 1
42736 _ACEOF
42737
42738     fi
42739   fi
42740
42741
42742               dummyvar=no
42743   if test x$dummyvar = x"yes"; then
42744     cat >>confdefs.h <<\_ACEOF
42745 #define HAVE___BUILTIN_ABS 1
42746 _ACEOF
42747
42748     cat >>confdefs.h <<\_ACEOF
42749 #define HAVE___BUILTIN_LABS 1
42750 _ACEOF
42751
42752     cat >>confdefs.h <<\_ACEOF
42753 #define HAVE___BUILTIN_COS 1
42754 _ACEOF
42755
42756     cat >>confdefs.h <<\_ACEOF
42757 #define HAVE___BUILTIN_COSF 1
42758 _ACEOF
42759
42760     cat >>confdefs.h <<\_ACEOF
42761 #define HAVE___BUILTIN_COSL 1
42762 _ACEOF
42763
42764     cat >>confdefs.h <<\_ACEOF
42765 #define HAVE___BUILTIN_FABS 1
42766 _ACEOF
42767
42768     cat >>confdefs.h <<\_ACEOF
42769 #define HAVE___BUILTIN_FABSF 1
42770 _ACEOF
42771
42772     cat >>confdefs.h <<\_ACEOF
42773 #define HAVE___BUILTIN_FABSL 1
42774 _ACEOF
42775
42776     cat >>confdefs.h <<\_ACEOF
42777 #define HAVE___BUILTIN_SIN 1
42778 _ACEOF
42779
42780     cat >>confdefs.h <<\_ACEOF
42781 #define HAVE___BUILTIN_SINF 1
42782 _ACEOF
42783
42784     cat >>confdefs.h <<\_ACEOF
42785 #define HAVE___BUILTIN_SINL 1
42786 _ACEOF
42787
42788     cat >>confdefs.h <<\_ACEOF
42789 #define HAVE___BUILTIN_SQRT 1
42790 _ACEOF
42791
42792     cat >>confdefs.h <<\_ACEOF
42793 #define HAVE___BUILTIN_SQRTF 1
42794 _ACEOF
42795
42796     cat >>confdefs.h <<\_ACEOF
42797 #define HAVE___BUILTIN_SQRTL 1
42798 _ACEOF
42799
42800   fi
42801
42802
42803
42804 echo "$as_me:$LINENO: checking for main in -lm" >&5
42805 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
42806 if test "${ac_cv_lib_m_main+set}" = set; then
42807   echo $ECHO_N "(cached) $ECHO_C" >&6
42808 else
42809   ac_check_lib_save_LIBS=$LIBS
42810 LIBS="-lm  $LIBS"
42811 cat >conftest.$ac_ext <<_ACEOF
42812 #line $LINENO "configure"
42813 /* confdefs.h.  */
42814 _ACEOF
42815 cat confdefs.h >>conftest.$ac_ext
42816 cat >>conftest.$ac_ext <<_ACEOF
42817 /* end confdefs.h.  */
42818
42819
42820 int
42821 main ()
42822 {
42823 main ();
42824   ;
42825   return 0;
42826 }
42827 _ACEOF
42828 rm -f conftest.$ac_objext conftest$ac_exeext
42829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42830   (eval $ac_link) 2>&5
42831   ac_status=$?
42832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42833   (exit $ac_status); } &&
42834          { ac_try='test -s conftest$ac_exeext'
42835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42836   (eval $ac_try) 2>&5
42837   ac_status=$?
42838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42839   (exit $ac_status); }; }; then
42840   ac_cv_lib_m_main=yes
42841 else
42842   echo "$as_me: failed program was:" >&5
42843 sed 's/^/| /' conftest.$ac_ext >&5
42844
42845 ac_cv_lib_m_main=no
42846 fi
42847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42848 LIBS=$ac_check_lib_save_LIBS
42849 fi
42850 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
42851 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
42852 if test $ac_cv_lib_m_main = yes; then
42853   cat >>confdefs.h <<_ACEOF
42854 #define HAVE_LIBM 1
42855 _ACEOF
42856
42857   LIBS="-lm $LIBS"
42858
42859 fi
42860
42861
42862
42863 for ac_func in nan copysignf
42864 do
42865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42866 echo "$as_me:$LINENO: checking for $ac_func" >&5
42867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42868 if eval "test \"\${$as_ac_var+set}\" = set"; then
42869   echo $ECHO_N "(cached) $ECHO_C" >&6
42870 else
42871   cat >conftest.$ac_ext <<_ACEOF
42872 #line $LINENO "configure"
42873 /* confdefs.h.  */
42874 _ACEOF
42875 cat confdefs.h >>conftest.$ac_ext
42876 cat >>conftest.$ac_ext <<_ACEOF
42877 /* end confdefs.h.  */
42878 /* System header to define __stub macros and hopefully few prototypes,
42879     which can conflict with char $ac_func (); below.
42880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42881     <limits.h> exists even on freestanding compilers.  */
42882 #ifdef __STDC__
42883 # include <limits.h>
42884 #else
42885 # include <assert.h>
42886 #endif
42887 /* Override any gcc2 internal prototype to avoid an error.  */
42888 #ifdef __cplusplus
42889 extern "C"
42890 {
42891 #endif
42892 /* We use char because int might match the return type of a gcc2
42893    builtin and then its argument prototype would still apply.  */
42894 char $ac_func ();
42895 /* The GNU C library defines this for functions which it implements
42896     to always fail with ENOSYS.  Some functions are actually named
42897     something starting with __ and the normal name is an alias.  */
42898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42899 choke me
42900 #else
42901 char (*f) () = $ac_func;
42902 #endif
42903 #ifdef __cplusplus
42904 }
42905 #endif
42906
42907 int
42908 main ()
42909 {
42910 return f != $ac_func;
42911   ;
42912   return 0;
42913 }
42914 _ACEOF
42915 rm -f conftest.$ac_objext conftest$ac_exeext
42916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42917   (eval $ac_link) 2>&5
42918   ac_status=$?
42919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42920   (exit $ac_status); } &&
42921          { ac_try='test -s conftest$ac_exeext'
42922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42923   (eval $ac_try) 2>&5
42924   ac_status=$?
42925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42926   (exit $ac_status); }; }; then
42927   eval "$as_ac_var=yes"
42928 else
42929   echo "$as_me: failed program was:" >&5
42930 sed 's/^/| /' conftest.$ac_ext >&5
42931
42932 eval "$as_ac_var=no"
42933 fi
42934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
42935 fi
42936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42938 if test `eval echo '${'$as_ac_var'}'` = yes; then
42939   cat >>confdefs.h <<_ACEOF
42940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42941 _ACEOF
42942
42943 else
42944   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
42945 fi
42946 done
42947
42948
42949
42950 for ac_func in __signbit
42951 do
42952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42953 echo "$as_me:$LINENO: checking for $ac_func" >&5
42954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42955 if eval "test \"\${$as_ac_var+set}\" = set"; then
42956   echo $ECHO_N "(cached) $ECHO_C" >&6
42957 else
42958   cat >conftest.$ac_ext <<_ACEOF
42959 #line $LINENO "configure"
42960 /* confdefs.h.  */
42961 _ACEOF
42962 cat confdefs.h >>conftest.$ac_ext
42963 cat >>conftest.$ac_ext <<_ACEOF
42964 /* end confdefs.h.  */
42965 /* System header to define __stub macros and hopefully few prototypes,
42966     which can conflict with char $ac_func (); below.
42967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42968     <limits.h> exists even on freestanding compilers.  */
42969 #ifdef __STDC__
42970 # include <limits.h>
42971 #else
42972 # include <assert.h>
42973 #endif
42974 /* Override any gcc2 internal prototype to avoid an error.  */
42975 #ifdef __cplusplus
42976 extern "C"
42977 {
42978 #endif
42979 /* We use char because int might match the return type of a gcc2
42980    builtin and then its argument prototype would still apply.  */
42981 char $ac_func ();
42982 /* The GNU C library defines this for functions which it implements
42983     to always fail with ENOSYS.  Some functions are actually named
42984     something starting with __ and the normal name is an alias.  */
42985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42986 choke me
42987 #else
42988 char (*f) () = $ac_func;
42989 #endif
42990 #ifdef __cplusplus
42991 }
42992 #endif
42993
42994 int
42995 main ()
42996 {
42997 return f != $ac_func;
42998   ;
42999   return 0;
43000 }
43001 _ACEOF
43002 rm -f conftest.$ac_objext conftest$ac_exeext
43003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43004   (eval $ac_link) 2>&5
43005   ac_status=$?
43006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43007   (exit $ac_status); } &&
43008          { ac_try='test -s conftest$ac_exeext'
43009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43010   (eval $ac_try) 2>&5
43011   ac_status=$?
43012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43013   (exit $ac_status); }; }; then
43014   eval "$as_ac_var=yes"
43015 else
43016   echo "$as_me: failed program was:" >&5
43017 sed 's/^/| /' conftest.$ac_ext >&5
43018
43019 eval "$as_ac_var=no"
43020 fi
43021 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43022 fi
43023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43025 if test `eval echo '${'$as_ac_var'}'` = yes; then
43026   cat >>confdefs.h <<_ACEOF
43027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43028 _ACEOF
43029
43030 else
43031   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
43032 fi
43033 done
43034
43035
43036 for ac_func in __signbitf
43037 do
43038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43039 echo "$as_me:$LINENO: checking for $ac_func" >&5
43040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43041 if eval "test \"\${$as_ac_var+set}\" = set"; then
43042   echo $ECHO_N "(cached) $ECHO_C" >&6
43043 else
43044   cat >conftest.$ac_ext <<_ACEOF
43045 #line $LINENO "configure"
43046 /* confdefs.h.  */
43047 _ACEOF
43048 cat confdefs.h >>conftest.$ac_ext
43049 cat >>conftest.$ac_ext <<_ACEOF
43050 /* end confdefs.h.  */
43051 /* System header to define __stub macros and hopefully few prototypes,
43052     which can conflict with char $ac_func (); below.
43053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43054     <limits.h> exists even on freestanding compilers.  */
43055 #ifdef __STDC__
43056 # include <limits.h>
43057 #else
43058 # include <assert.h>
43059 #endif
43060 /* Override any gcc2 internal prototype to avoid an error.  */
43061 #ifdef __cplusplus
43062 extern "C"
43063 {
43064 #endif
43065 /* We use char because int might match the return type of a gcc2
43066    builtin and then its argument prototype would still apply.  */
43067 char $ac_func ();
43068 /* The GNU C library defines this for functions which it implements
43069     to always fail with ENOSYS.  Some functions are actually named
43070     something starting with __ and the normal name is an alias.  */
43071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43072 choke me
43073 #else
43074 char (*f) () = $ac_func;
43075 #endif
43076 #ifdef __cplusplus
43077 }
43078 #endif
43079
43080 int
43081 main ()
43082 {
43083 return f != $ac_func;
43084   ;
43085   return 0;
43086 }
43087 _ACEOF
43088 rm -f conftest.$ac_objext conftest$ac_exeext
43089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43090   (eval $ac_link) 2>&5
43091   ac_status=$?
43092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43093   (exit $ac_status); } &&
43094          { ac_try='test -s conftest$ac_exeext'
43095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43096   (eval $ac_try) 2>&5
43097   ac_status=$?
43098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43099   (exit $ac_status); }; }; then
43100   eval "$as_ac_var=yes"
43101 else
43102   echo "$as_me: failed program was:" >&5
43103 sed 's/^/| /' conftest.$ac_ext >&5
43104
43105 eval "$as_ac_var=no"
43106 fi
43107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43108 fi
43109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43111 if test `eval echo '${'$as_ac_var'}'` = yes; then
43112   cat >>confdefs.h <<_ACEOF
43113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43114 _ACEOF
43115
43116 else
43117   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
43118 fi
43119 done
43120
43121
43122           if test x$ac_cv_func_copysignl = x"yes"; then
43123
43124 for ac_func in __signbitl
43125 do
43126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43127 echo "$as_me:$LINENO: checking for $ac_func" >&5
43128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43129 if eval "test \"\${$as_ac_var+set}\" = set"; then
43130   echo $ECHO_N "(cached) $ECHO_C" >&6
43131 else
43132   cat >conftest.$ac_ext <<_ACEOF
43133 #line $LINENO "configure"
43134 /* confdefs.h.  */
43135 _ACEOF
43136 cat confdefs.h >>conftest.$ac_ext
43137 cat >>conftest.$ac_ext <<_ACEOF
43138 /* end confdefs.h.  */
43139 /* System header to define __stub macros and hopefully few prototypes,
43140     which can conflict with char $ac_func (); below.
43141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43142     <limits.h> exists even on freestanding compilers.  */
43143 #ifdef __STDC__
43144 # include <limits.h>
43145 #else
43146 # include <assert.h>
43147 #endif
43148 /* Override any gcc2 internal prototype to avoid an error.  */
43149 #ifdef __cplusplus
43150 extern "C"
43151 {
43152 #endif
43153 /* We use char because int might match the return type of a gcc2
43154    builtin and then its argument prototype would still apply.  */
43155 char $ac_func ();
43156 /* The GNU C library defines this for functions which it implements
43157     to always fail with ENOSYS.  Some functions are actually named
43158     something starting with __ and the normal name is an alias.  */
43159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43160 choke me
43161 #else
43162 char (*f) () = $ac_func;
43163 #endif
43164 #ifdef __cplusplus
43165 }
43166 #endif
43167
43168 int
43169 main ()
43170 {
43171 return f != $ac_func;
43172   ;
43173   return 0;
43174 }
43175 _ACEOF
43176 rm -f conftest.$ac_objext conftest$ac_exeext
43177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43178   (eval $ac_link) 2>&5
43179   ac_status=$?
43180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43181   (exit $ac_status); } &&
43182          { ac_try='test -s conftest$ac_exeext'
43183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43184   (eval $ac_try) 2>&5
43185   ac_status=$?
43186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43187   (exit $ac_status); }; }; then
43188   eval "$as_ac_var=yes"
43189 else
43190   echo "$as_me: failed program was:" >&5
43191 sed 's/^/| /' conftest.$ac_ext >&5
43192
43193 eval "$as_ac_var=no"
43194 fi
43195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43196 fi
43197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43199 if test `eval echo '${'$as_ac_var'}'` = yes; then
43200   cat >>confdefs.h <<_ACEOF
43201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43202 _ACEOF
43203
43204 else
43205   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
43206 fi
43207 done
43208
43209   fi
43210
43211   # XXX Review this.  Nothing uses it.
43212   if test -n "$LIBMATHOBJS"; then
43213     need_libmath=yes
43214   fi
43215
43216
43217
43218   # Test wchar.h for mbstate_t, which is needed for char_traits and
43219   # others even if wchar_t support is not on.
43220   echo "$as_me:$LINENO: checking for mbstate_t" >&5
43221 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
43222   cat >conftest.$ac_ext <<_ACEOF
43223 #line $LINENO "configure"
43224 /* confdefs.h.  */
43225 _ACEOF
43226 cat confdefs.h >>conftest.$ac_ext
43227 cat >>conftest.$ac_ext <<_ACEOF
43228 /* end confdefs.h.  */
43229 #include <wchar.h>
43230 int
43231 main ()
43232 {
43233 mbstate_t teststate;
43234   ;
43235   return 0;
43236 }
43237 _ACEOF
43238 rm -f conftest.$ac_objext
43239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43240   (eval $ac_compile) 2>&5
43241   ac_status=$?
43242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43243   (exit $ac_status); } &&
43244          { ac_try='test -s conftest.$ac_objext'
43245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43246   (eval $ac_try) 2>&5
43247   ac_status=$?
43248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43249   (exit $ac_status); }; }; then
43250   have_mbstate_t=yes
43251 else
43252   echo "$as_me: failed program was:" >&5
43253 sed 's/^/| /' conftest.$ac_ext >&5
43254
43255 have_mbstate_t=no
43256 fi
43257 rm -f conftest.$ac_objext conftest.$ac_ext
43258   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
43259 echo "${ECHO_T}$have_mbstate_t" >&6
43260   if test x"$have_mbstate_t" = xyes; then
43261     cat >>confdefs.h <<\_ACEOF
43262 #define HAVE_MBSTATE_T 1
43263 _ACEOF
43264
43265   fi
43266
43267   # Sanity check for existence of ISO C99 headers for extended encoding.
43268
43269 for ac_header in wchar.h
43270 do
43271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43273   echo "$as_me:$LINENO: checking for $ac_header" >&5
43274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43276   echo $ECHO_N "(cached) $ECHO_C" >&6
43277 fi
43278 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43279 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43280 else
43281   # Is the header compilable?
43282 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43284 cat >conftest.$ac_ext <<_ACEOF
43285 #line $LINENO "configure"
43286 /* confdefs.h.  */
43287 _ACEOF
43288 cat confdefs.h >>conftest.$ac_ext
43289 cat >>conftest.$ac_ext <<_ACEOF
43290 /* end confdefs.h.  */
43291 $ac_includes_default
43292 #include <$ac_header>
43293 _ACEOF
43294 rm -f conftest.$ac_objext
43295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43296   (eval $ac_compile) 2>&5
43297   ac_status=$?
43298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43299   (exit $ac_status); } &&
43300          { ac_try='test -s conftest.$ac_objext'
43301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43302   (eval $ac_try) 2>&5
43303   ac_status=$?
43304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43305   (exit $ac_status); }; }; then
43306   ac_header_compiler=yes
43307 else
43308   echo "$as_me: failed program was:" >&5
43309 sed 's/^/| /' conftest.$ac_ext >&5
43310
43311 ac_header_compiler=no
43312 fi
43313 rm -f conftest.$ac_objext conftest.$ac_ext
43314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43315 echo "${ECHO_T}$ac_header_compiler" >&6
43316
43317 # Is the header present?
43318 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43320 cat >conftest.$ac_ext <<_ACEOF
43321 #line $LINENO "configure"
43322 /* confdefs.h.  */
43323 _ACEOF
43324 cat confdefs.h >>conftest.$ac_ext
43325 cat >>conftest.$ac_ext <<_ACEOF
43326 /* end confdefs.h.  */
43327 #include <$ac_header>
43328 _ACEOF
43329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43330   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43331   ac_status=$?
43332   grep -v '^ *+' conftest.er1 >conftest.err
43333   rm -f conftest.er1
43334   cat conftest.err >&5
43335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43336   (exit $ac_status); } >/dev/null; then
43337   if test -s conftest.err; then
43338     ac_cpp_err=$ac_c_preproc_warn_flag
43339   else
43340     ac_cpp_err=
43341   fi
43342 else
43343   ac_cpp_err=yes
43344 fi
43345 if test -z "$ac_cpp_err"; then
43346   ac_header_preproc=yes
43347 else
43348   echo "$as_me: failed program was:" >&5
43349 sed 's/^/| /' conftest.$ac_ext >&5
43350
43351   ac_header_preproc=no
43352 fi
43353 rm -f conftest.err conftest.$ac_ext
43354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43355 echo "${ECHO_T}$ac_header_preproc" >&6
43356
43357 # So?  What about this header?
43358 case $ac_header_compiler:$ac_header_preproc in
43359   yes:no )
43360     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43364     (
43365       cat <<\_ASBOX
43366 ## ------------------------------------ ##
43367 ## Report this to bug-autoconf@gnu.org. ##
43368 ## ------------------------------------ ##
43369 _ASBOX
43370     ) |
43371       sed "s/^/$as_me: WARNING:     /" >&2
43372     ;;
43373   no:yes )
43374     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43376     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43380     (
43381       cat <<\_ASBOX
43382 ## ------------------------------------ ##
43383 ## Report this to bug-autoconf@gnu.org. ##
43384 ## ------------------------------------ ##
43385 _ASBOX
43386     ) |
43387       sed "s/^/$as_me: WARNING:     /" >&2
43388     ;;
43389 esac
43390 echo "$as_me:$LINENO: checking for $ac_header" >&5
43391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43393   echo $ECHO_N "(cached) $ECHO_C" >&6
43394 else
43395   eval "$as_ac_Header=$ac_header_preproc"
43396 fi
43397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43399
43400 fi
43401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43402   cat >>confdefs.h <<_ACEOF
43403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43404 _ACEOF
43405  ac_has_wchar_h=yes
43406 else
43407   ac_has_wchar_h=no
43408 fi
43409
43410 done
43411
43412
43413 for ac_header in wctype.h
43414 do
43415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43417   echo "$as_me:$LINENO: checking for $ac_header" >&5
43418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43420   echo $ECHO_N "(cached) $ECHO_C" >&6
43421 fi
43422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43424 else
43425   # Is the header compilable?
43426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43428 cat >conftest.$ac_ext <<_ACEOF
43429 #line $LINENO "configure"
43430 /* confdefs.h.  */
43431 _ACEOF
43432 cat confdefs.h >>conftest.$ac_ext
43433 cat >>conftest.$ac_ext <<_ACEOF
43434 /* end confdefs.h.  */
43435 $ac_includes_default
43436 #include <$ac_header>
43437 _ACEOF
43438 rm -f conftest.$ac_objext
43439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43440   (eval $ac_compile) 2>&5
43441   ac_status=$?
43442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43443   (exit $ac_status); } &&
43444          { ac_try='test -s conftest.$ac_objext'
43445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43446   (eval $ac_try) 2>&5
43447   ac_status=$?
43448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43449   (exit $ac_status); }; }; then
43450   ac_header_compiler=yes
43451 else
43452   echo "$as_me: failed program was:" >&5
43453 sed 's/^/| /' conftest.$ac_ext >&5
43454
43455 ac_header_compiler=no
43456 fi
43457 rm -f conftest.$ac_objext conftest.$ac_ext
43458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43459 echo "${ECHO_T}$ac_header_compiler" >&6
43460
43461 # Is the header present?
43462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43464 cat >conftest.$ac_ext <<_ACEOF
43465 #line $LINENO "configure"
43466 /* confdefs.h.  */
43467 _ACEOF
43468 cat confdefs.h >>conftest.$ac_ext
43469 cat >>conftest.$ac_ext <<_ACEOF
43470 /* end confdefs.h.  */
43471 #include <$ac_header>
43472 _ACEOF
43473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43474   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43475   ac_status=$?
43476   grep -v '^ *+' conftest.er1 >conftest.err
43477   rm -f conftest.er1
43478   cat conftest.err >&5
43479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43480   (exit $ac_status); } >/dev/null; then
43481   if test -s conftest.err; then
43482     ac_cpp_err=$ac_c_preproc_warn_flag
43483   else
43484     ac_cpp_err=
43485   fi
43486 else
43487   ac_cpp_err=yes
43488 fi
43489 if test -z "$ac_cpp_err"; then
43490   ac_header_preproc=yes
43491 else
43492   echo "$as_me: failed program was:" >&5
43493 sed 's/^/| /' conftest.$ac_ext >&5
43494
43495   ac_header_preproc=no
43496 fi
43497 rm -f conftest.err conftest.$ac_ext
43498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43499 echo "${ECHO_T}$ac_header_preproc" >&6
43500
43501 # So?  What about this header?
43502 case $ac_header_compiler:$ac_header_preproc in
43503   yes:no )
43504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43508     (
43509       cat <<\_ASBOX
43510 ## ------------------------------------ ##
43511 ## Report this to bug-autoconf@gnu.org. ##
43512 ## ------------------------------------ ##
43513 _ASBOX
43514     ) |
43515       sed "s/^/$as_me: WARNING:     /" >&2
43516     ;;
43517   no:yes )
43518     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43520     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43522     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43524     (
43525       cat <<\_ASBOX
43526 ## ------------------------------------ ##
43527 ## Report this to bug-autoconf@gnu.org. ##
43528 ## ------------------------------------ ##
43529 _ASBOX
43530     ) |
43531       sed "s/^/$as_me: WARNING:     /" >&2
43532     ;;
43533 esac
43534 echo "$as_me:$LINENO: checking for $ac_header" >&5
43535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43537   echo $ECHO_N "(cached) $ECHO_C" >&6
43538 else
43539   eval "$as_ac_Header=$ac_header_preproc"
43540 fi
43541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43543
43544 fi
43545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43546   cat >>confdefs.h <<_ACEOF
43547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43548 _ACEOF
43549  ac_has_wctype_h=yes
43550 else
43551   ac_has_wctype_h=no
43552 fi
43553
43554 done
43555
43556
43557   # Only continue checking if the ISO C99 headers exist and support is on.
43558   if test x"$ac_has_wchar_h" = xyes &&
43559      test x"$ac_has_wctype_h" = xyes &&
43560      test x"$enable_c_mbchar" != xno; then
43561
43562     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
43563     # numeric_limits can instantiate type_traits<wchar_t>
43564     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
43565 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
43566     cat >conftest.$ac_ext <<_ACEOF
43567 #line $LINENO "configure"
43568 /* confdefs.h.  */
43569 _ACEOF
43570 cat confdefs.h >>conftest.$ac_ext
43571 cat >>conftest.$ac_ext <<_ACEOF
43572 /* end confdefs.h.  */
43573 #include <wchar.h>
43574 int
43575 main ()
43576 {
43577 int i = WCHAR_MIN; int j = WCHAR_MAX;
43578   ;
43579   return 0;
43580 }
43581 _ACEOF
43582 rm -f conftest.$ac_objext
43583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43584   (eval $ac_compile) 2>&5
43585   ac_status=$?
43586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43587   (exit $ac_status); } &&
43588          { ac_try='test -s conftest.$ac_objext'
43589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43590   (eval $ac_try) 2>&5
43591   ac_status=$?
43592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43593   (exit $ac_status); }; }; then
43594   has_wchar_minmax=yes
43595 else
43596   echo "$as_me: failed program was:" >&5
43597 sed 's/^/| /' conftest.$ac_ext >&5
43598
43599 has_wchar_minmax=no
43600 fi
43601 rm -f conftest.$ac_objext conftest.$ac_ext
43602     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
43603 echo "${ECHO_T}$has_wchar_minmax" >&6
43604
43605     # Test wchar.h for WEOF, which is what we use to determine whether
43606     # to specialize for char_traits<wchar_t> or not.
43607     echo "$as_me:$LINENO: checking for WEOF" >&5
43608 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
43609     cat >conftest.$ac_ext <<_ACEOF
43610 #line $LINENO "configure"
43611 /* confdefs.h.  */
43612 _ACEOF
43613 cat confdefs.h >>conftest.$ac_ext
43614 cat >>conftest.$ac_ext <<_ACEOF
43615 /* end confdefs.h.  */
43616
43617       #include <wchar.h>
43618       #include <stddef.h>
43619 int
43620 main ()
43621 {
43622 wint_t i = WEOF;
43623   ;
43624   return 0;
43625 }
43626 _ACEOF
43627 rm -f conftest.$ac_objext
43628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43629   (eval $ac_compile) 2>&5
43630   ac_status=$?
43631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43632   (exit $ac_status); } &&
43633          { ac_try='test -s conftest.$ac_objext'
43634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43635   (eval $ac_try) 2>&5
43636   ac_status=$?
43637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43638   (exit $ac_status); }; }; then
43639   has_weof=yes
43640 else
43641   echo "$as_me: failed program was:" >&5
43642 sed 's/^/| /' conftest.$ac_ext >&5
43643
43644 has_weof=no
43645 fi
43646 rm -f conftest.$ac_objext conftest.$ac_ext
43647     echo "$as_me:$LINENO: result: $has_weof" >&5
43648 echo "${ECHO_T}$has_weof" >&6
43649
43650     # Tests for wide character functions used in char_traits<wchar_t>.
43651     ac_wfuncs=yes
43652
43653
43654
43655
43656
43657
43658 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
43659 do
43660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43661 echo "$as_me:$LINENO: checking for $ac_func" >&5
43662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43663 if eval "test \"\${$as_ac_var+set}\" = set"; then
43664   echo $ECHO_N "(cached) $ECHO_C" >&6
43665 else
43666   cat >conftest.$ac_ext <<_ACEOF
43667 #line $LINENO "configure"
43668 /* confdefs.h.  */
43669 _ACEOF
43670 cat confdefs.h >>conftest.$ac_ext
43671 cat >>conftest.$ac_ext <<_ACEOF
43672 /* end confdefs.h.  */
43673 /* System header to define __stub macros and hopefully few prototypes,
43674     which can conflict with char $ac_func (); below.
43675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43676     <limits.h> exists even on freestanding compilers.  */
43677 #ifdef __STDC__
43678 # include <limits.h>
43679 #else
43680 # include <assert.h>
43681 #endif
43682 /* Override any gcc2 internal prototype to avoid an error.  */
43683 #ifdef __cplusplus
43684 extern "C"
43685 {
43686 #endif
43687 /* We use char because int might match the return type of a gcc2
43688    builtin and then its argument prototype would still apply.  */
43689 char $ac_func ();
43690 /* The GNU C library defines this for functions which it implements
43691     to always fail with ENOSYS.  Some functions are actually named
43692     something starting with __ and the normal name is an alias.  */
43693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43694 choke me
43695 #else
43696 char (*f) () = $ac_func;
43697 #endif
43698 #ifdef __cplusplus
43699 }
43700 #endif
43701
43702 int
43703 main ()
43704 {
43705 return f != $ac_func;
43706   ;
43707   return 0;
43708 }
43709 _ACEOF
43710 rm -f conftest.$ac_objext conftest$ac_exeext
43711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43712   (eval $ac_link) 2>&5
43713   ac_status=$?
43714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43715   (exit $ac_status); } &&
43716          { ac_try='test -s conftest$ac_exeext'
43717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43718   (eval $ac_try) 2>&5
43719   ac_status=$?
43720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43721   (exit $ac_status); }; }; then
43722   eval "$as_ac_var=yes"
43723 else
43724   echo "$as_me: failed program was:" >&5
43725 sed 's/^/| /' conftest.$ac_ext >&5
43726
43727 eval "$as_ac_var=no"
43728 fi
43729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43730 fi
43731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43733 if test `eval echo '${'$as_ac_var'}'` = yes; then
43734   cat >>confdefs.h <<_ACEOF
43735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43736 _ACEOF
43737
43738 else
43739   ac_wfuncs=no
43740 fi
43741 done
43742
43743
43744     # Checks for names injected into std:: by the c_std headers.
43745
43746
43747
43748
43749
43750
43751
43752
43753
43754
43755
43756
43757
43758
43759
43760
43761
43762
43763
43764
43765
43766
43767
43768
43769
43770
43771
43772
43773
43774
43775
43776
43777
43778
43779
43780
43781
43782
43783
43784
43785
43786
43787
43788
43789
43790
43791
43792
43793
43794
43795 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
43796     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
43797     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
43798     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
43799     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
43800     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
43801 do
43802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43803 echo "$as_me:$LINENO: checking for $ac_func" >&5
43804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43805 if eval "test \"\${$as_ac_var+set}\" = set"; then
43806   echo $ECHO_N "(cached) $ECHO_C" >&6
43807 else
43808   cat >conftest.$ac_ext <<_ACEOF
43809 #line $LINENO "configure"
43810 /* confdefs.h.  */
43811 _ACEOF
43812 cat confdefs.h >>conftest.$ac_ext
43813 cat >>conftest.$ac_ext <<_ACEOF
43814 /* end confdefs.h.  */
43815 /* System header to define __stub macros and hopefully few prototypes,
43816     which can conflict with char $ac_func (); below.
43817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43818     <limits.h> exists even on freestanding compilers.  */
43819 #ifdef __STDC__
43820 # include <limits.h>
43821 #else
43822 # include <assert.h>
43823 #endif
43824 /* Override any gcc2 internal prototype to avoid an error.  */
43825 #ifdef __cplusplus
43826 extern "C"
43827 {
43828 #endif
43829 /* We use char because int might match the return type of a gcc2
43830    builtin and then its argument prototype would still apply.  */
43831 char $ac_func ();
43832 /* The GNU C library defines this for functions which it implements
43833     to always fail with ENOSYS.  Some functions are actually named
43834     something starting with __ and the normal name is an alias.  */
43835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43836 choke me
43837 #else
43838 char (*f) () = $ac_func;
43839 #endif
43840 #ifdef __cplusplus
43841 }
43842 #endif
43843
43844 int
43845 main ()
43846 {
43847 return f != $ac_func;
43848   ;
43849   return 0;
43850 }
43851 _ACEOF
43852 rm -f conftest.$ac_objext conftest$ac_exeext
43853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43854   (eval $ac_link) 2>&5
43855   ac_status=$?
43856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43857   (exit $ac_status); } &&
43858          { ac_try='test -s conftest$ac_exeext'
43859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43860   (eval $ac_try) 2>&5
43861   ac_status=$?
43862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43863   (exit $ac_status); }; }; then
43864   eval "$as_ac_var=yes"
43865 else
43866   echo "$as_me: failed program was:" >&5
43867 sed 's/^/| /' conftest.$ac_ext >&5
43868
43869 eval "$as_ac_var=no"
43870 fi
43871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
43872 fi
43873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43874 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43875 if test `eval echo '${'$as_ac_var'}'` = yes; then
43876   cat >>confdefs.h <<_ACEOF
43877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43878 _ACEOF
43879
43880 else
43881   ac_wfuncs=no
43882 fi
43883 done
43884
43885
43886     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
43887 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
43888     if test x"$has_weof" = xyes &&
43889        test x"$has_wchar_minmax" = xyes &&
43890        test x"$ac_wfuncs" = xyes;
43891     then
43892       ac_isoC99_wchar_t=yes
43893     else
43894       ac_isoC99_wchar_t=no
43895     fi
43896     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
43897 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
43898
43899     # Use iconv for wchar_t to char conversions. As such, check for
43900     # X/Open Portability Guide, version 2 features (XPG2).
43901     if test "${ac_cv_header_iconv_h+set}" = set; then
43902   echo "$as_me:$LINENO: checking for iconv.h" >&5
43903 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
43904 if test "${ac_cv_header_iconv_h+set}" = set; then
43905   echo $ECHO_N "(cached) $ECHO_C" >&6
43906 fi
43907 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
43908 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
43909 else
43910   # Is the header compilable?
43911 echo "$as_me:$LINENO: checking iconv.h usability" >&5
43912 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
43913 cat >conftest.$ac_ext <<_ACEOF
43914 #line $LINENO "configure"
43915 /* confdefs.h.  */
43916 _ACEOF
43917 cat confdefs.h >>conftest.$ac_ext
43918 cat >>conftest.$ac_ext <<_ACEOF
43919 /* end confdefs.h.  */
43920 $ac_includes_default
43921 #include <iconv.h>
43922 _ACEOF
43923 rm -f conftest.$ac_objext
43924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43925   (eval $ac_compile) 2>&5
43926   ac_status=$?
43927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43928   (exit $ac_status); } &&
43929          { ac_try='test -s conftest.$ac_objext'
43930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43931   (eval $ac_try) 2>&5
43932   ac_status=$?
43933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43934   (exit $ac_status); }; }; then
43935   ac_header_compiler=yes
43936 else
43937   echo "$as_me: failed program was:" >&5
43938 sed 's/^/| /' conftest.$ac_ext >&5
43939
43940 ac_header_compiler=no
43941 fi
43942 rm -f conftest.$ac_objext conftest.$ac_ext
43943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43944 echo "${ECHO_T}$ac_header_compiler" >&6
43945
43946 # Is the header present?
43947 echo "$as_me:$LINENO: checking iconv.h presence" >&5
43948 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
43949 cat >conftest.$ac_ext <<_ACEOF
43950 #line $LINENO "configure"
43951 /* confdefs.h.  */
43952 _ACEOF
43953 cat confdefs.h >>conftest.$ac_ext
43954 cat >>conftest.$ac_ext <<_ACEOF
43955 /* end confdefs.h.  */
43956 #include <iconv.h>
43957 _ACEOF
43958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43959   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43960   ac_status=$?
43961   grep -v '^ *+' conftest.er1 >conftest.err
43962   rm -f conftest.er1
43963   cat conftest.err >&5
43964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43965   (exit $ac_status); } >/dev/null; then
43966   if test -s conftest.err; then
43967     ac_cpp_err=$ac_c_preproc_warn_flag
43968   else
43969     ac_cpp_err=
43970   fi
43971 else
43972   ac_cpp_err=yes
43973 fi
43974 if test -z "$ac_cpp_err"; then
43975   ac_header_preproc=yes
43976 else
43977   echo "$as_me: failed program was:" >&5
43978 sed 's/^/| /' conftest.$ac_ext >&5
43979
43980   ac_header_preproc=no
43981 fi
43982 rm -f conftest.err conftest.$ac_ext
43983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43984 echo "${ECHO_T}$ac_header_preproc" >&6
43985
43986 # So?  What about this header?
43987 case $ac_header_compiler:$ac_header_preproc in
43988   yes:no )
43989     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
43990 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43991     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
43992 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
43993     (
43994       cat <<\_ASBOX
43995 ## ------------------------------------ ##
43996 ## Report this to bug-autoconf@gnu.org. ##
43997 ## ------------------------------------ ##
43998 _ASBOX
43999     ) |
44000       sed "s/^/$as_me: WARNING:     /" >&2
44001     ;;
44002   no:yes )
44003     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
44004 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
44005     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
44006 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
44007     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
44008 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
44009     (
44010       cat <<\_ASBOX
44011 ## ------------------------------------ ##
44012 ## Report this to bug-autoconf@gnu.org. ##
44013 ## ------------------------------------ ##
44014 _ASBOX
44015     ) |
44016       sed "s/^/$as_me: WARNING:     /" >&2
44017     ;;
44018 esac
44019 echo "$as_me:$LINENO: checking for iconv.h" >&5
44020 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
44021 if test "${ac_cv_header_iconv_h+set}" = set; then
44022   echo $ECHO_N "(cached) $ECHO_C" >&6
44023 else
44024   ac_cv_header_iconv_h=$ac_header_preproc
44025 fi
44026 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
44027 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
44028
44029 fi
44030 if test $ac_cv_header_iconv_h = yes; then
44031   ac_has_iconv_h=yes
44032 else
44033   ac_has_iconv_h=no
44034 fi
44035
44036
44037     if test "${ac_cv_header_langinfo_h+set}" = set; then
44038   echo "$as_me:$LINENO: checking for langinfo.h" >&5
44039 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
44040 if test "${ac_cv_header_langinfo_h+set}" = set; then
44041   echo $ECHO_N "(cached) $ECHO_C" >&6
44042 fi
44043 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
44044 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
44045 else
44046   # Is the header compilable?
44047 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
44048 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
44049 cat >conftest.$ac_ext <<_ACEOF
44050 #line $LINENO "configure"
44051 /* confdefs.h.  */
44052 _ACEOF
44053 cat confdefs.h >>conftest.$ac_ext
44054 cat >>conftest.$ac_ext <<_ACEOF
44055 /* end confdefs.h.  */
44056 $ac_includes_default
44057 #include <langinfo.h>
44058 _ACEOF
44059 rm -f conftest.$ac_objext
44060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44061   (eval $ac_compile) 2>&5
44062   ac_status=$?
44063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44064   (exit $ac_status); } &&
44065          { ac_try='test -s conftest.$ac_objext'
44066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44067   (eval $ac_try) 2>&5
44068   ac_status=$?
44069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44070   (exit $ac_status); }; }; then
44071   ac_header_compiler=yes
44072 else
44073   echo "$as_me: failed program was:" >&5
44074 sed 's/^/| /' conftest.$ac_ext >&5
44075
44076 ac_header_compiler=no
44077 fi
44078 rm -f conftest.$ac_objext conftest.$ac_ext
44079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44080 echo "${ECHO_T}$ac_header_compiler" >&6
44081
44082 # Is the header present?
44083 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
44084 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
44085 cat >conftest.$ac_ext <<_ACEOF
44086 #line $LINENO "configure"
44087 /* confdefs.h.  */
44088 _ACEOF
44089 cat confdefs.h >>conftest.$ac_ext
44090 cat >>conftest.$ac_ext <<_ACEOF
44091 /* end confdefs.h.  */
44092 #include <langinfo.h>
44093 _ACEOF
44094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44096   ac_status=$?
44097   grep -v '^ *+' conftest.er1 >conftest.err
44098   rm -f conftest.er1
44099   cat conftest.err >&5
44100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44101   (exit $ac_status); } >/dev/null; then
44102   if test -s conftest.err; then
44103     ac_cpp_err=$ac_c_preproc_warn_flag
44104   else
44105     ac_cpp_err=
44106   fi
44107 else
44108   ac_cpp_err=yes
44109 fi
44110 if test -z "$ac_cpp_err"; then
44111   ac_header_preproc=yes
44112 else
44113   echo "$as_me: failed program was:" >&5
44114 sed 's/^/| /' conftest.$ac_ext >&5
44115
44116   ac_header_preproc=no
44117 fi
44118 rm -f conftest.err conftest.$ac_ext
44119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44120 echo "${ECHO_T}$ac_header_preproc" >&6
44121
44122 # So?  What about this header?
44123 case $ac_header_compiler:$ac_header_preproc in
44124   yes:no )
44125     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
44126 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
44127     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
44128 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
44129     (
44130       cat <<\_ASBOX
44131 ## ------------------------------------ ##
44132 ## Report this to bug-autoconf@gnu.org. ##
44133 ## ------------------------------------ ##
44134 _ASBOX
44135     ) |
44136       sed "s/^/$as_me: WARNING:     /" >&2
44137     ;;
44138   no:yes )
44139     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
44140 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
44141     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
44142 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
44143     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
44144 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
44145     (
44146       cat <<\_ASBOX
44147 ## ------------------------------------ ##
44148 ## Report this to bug-autoconf@gnu.org. ##
44149 ## ------------------------------------ ##
44150 _ASBOX
44151     ) |
44152       sed "s/^/$as_me: WARNING:     /" >&2
44153     ;;
44154 esac
44155 echo "$as_me:$LINENO: checking for langinfo.h" >&5
44156 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
44157 if test "${ac_cv_header_langinfo_h+set}" = set; then
44158   echo $ECHO_N "(cached) $ECHO_C" >&6
44159 else
44160   ac_cv_header_langinfo_h=$ac_header_preproc
44161 fi
44162 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
44163 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
44164
44165 fi
44166 if test $ac_cv_header_langinfo_h = yes; then
44167   ac_has_langinfo_h=yes
44168 else
44169   ac_has_langinfo_h=no
44170 fi
44171
44172
44173
44174     # Check for existence of libiconv.a providing XPG2 wchar_t support.
44175     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
44176 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
44177 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
44178   echo $ECHO_N "(cached) $ECHO_C" >&6
44179 else
44180   ac_check_lib_save_LIBS=$LIBS
44181 LIBS="-liconv  $LIBS"
44182 cat >conftest.$ac_ext <<_ACEOF
44183 #line $LINENO "configure"
44184 /* confdefs.h.  */
44185 _ACEOF
44186 cat confdefs.h >>conftest.$ac_ext
44187 cat >>conftest.$ac_ext <<_ACEOF
44188 /* end confdefs.h.  */
44189
44190 /* Override any gcc2 internal prototype to avoid an error.  */
44191 #ifdef __cplusplus
44192 extern "C"
44193 #endif
44194 /* We use char because int might match the return type of a gcc2
44195    builtin and then its argument prototype would still apply.  */
44196 char iconv ();
44197 int
44198 main ()
44199 {
44200 iconv ();
44201   ;
44202   return 0;
44203 }
44204 _ACEOF
44205 rm -f conftest.$ac_objext conftest$ac_exeext
44206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44207   (eval $ac_link) 2>&5
44208   ac_status=$?
44209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44210   (exit $ac_status); } &&
44211          { ac_try='test -s conftest$ac_exeext'
44212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44213   (eval $ac_try) 2>&5
44214   ac_status=$?
44215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44216   (exit $ac_status); }; }; then
44217   ac_cv_lib_iconv_iconv=yes
44218 else
44219   echo "$as_me: failed program was:" >&5
44220 sed 's/^/| /' conftest.$ac_ext >&5
44221
44222 ac_cv_lib_iconv_iconv=no
44223 fi
44224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44225 LIBS=$ac_check_lib_save_LIBS
44226 fi
44227 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
44228 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
44229 if test $ac_cv_lib_iconv_iconv = yes; then
44230   libiconv="-liconv"
44231 fi
44232
44233     ac_save_LIBS="$LIBS"
44234     LIBS="$LIBS $libiconv"
44235
44236
44237
44238
44239
44240 for ac_func in iconv_open iconv_close iconv nl_langinfo
44241 do
44242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44243 echo "$as_me:$LINENO: checking for $ac_func" >&5
44244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44245 if eval "test \"\${$as_ac_var+set}\" = set"; then
44246   echo $ECHO_N "(cached) $ECHO_C" >&6
44247 else
44248   cat >conftest.$ac_ext <<_ACEOF
44249 #line $LINENO "configure"
44250 /* confdefs.h.  */
44251 _ACEOF
44252 cat confdefs.h >>conftest.$ac_ext
44253 cat >>conftest.$ac_ext <<_ACEOF
44254 /* end confdefs.h.  */
44255 /* System header to define __stub macros and hopefully few prototypes,
44256     which can conflict with char $ac_func (); below.
44257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44258     <limits.h> exists even on freestanding compilers.  */
44259 #ifdef __STDC__
44260 # include <limits.h>
44261 #else
44262 # include <assert.h>
44263 #endif
44264 /* Override any gcc2 internal prototype to avoid an error.  */
44265 #ifdef __cplusplus
44266 extern "C"
44267 {
44268 #endif
44269 /* We use char because int might match the return type of a gcc2
44270    builtin and then its argument prototype would still apply.  */
44271 char $ac_func ();
44272 /* The GNU C library defines this for functions which it implements
44273     to always fail with ENOSYS.  Some functions are actually named
44274     something starting with __ and the normal name is an alias.  */
44275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44276 choke me
44277 #else
44278 char (*f) () = $ac_func;
44279 #endif
44280 #ifdef __cplusplus
44281 }
44282 #endif
44283
44284 int
44285 main ()
44286 {
44287 return f != $ac_func;
44288   ;
44289   return 0;
44290 }
44291 _ACEOF
44292 rm -f conftest.$ac_objext conftest$ac_exeext
44293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44294   (eval $ac_link) 2>&5
44295   ac_status=$?
44296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44297   (exit $ac_status); } &&
44298          { ac_try='test -s conftest$ac_exeext'
44299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44300   (eval $ac_try) 2>&5
44301   ac_status=$?
44302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44303   (exit $ac_status); }; }; then
44304   eval "$as_ac_var=yes"
44305 else
44306   echo "$as_me: failed program was:" >&5
44307 sed 's/^/| /' conftest.$ac_ext >&5
44308
44309 eval "$as_ac_var=no"
44310 fi
44311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44312 fi
44313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44315 if test `eval echo '${'$as_ac_var'}'` = yes; then
44316   cat >>confdefs.h <<_ACEOF
44317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44318 _ACEOF
44319  ac_XPG2funcs=yes
44320 else
44321   ac_XPG2funcs=no
44322 fi
44323 done
44324
44325
44326     LIBS="$ac_save_LIBS"
44327
44328     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
44329 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
44330     if test x"$ac_has_iconv_h" = xyes &&
44331        test x"$ac_has_langinfo_h" = xyes &&
44332        test x"$ac_XPG2funcs" = xyes;
44333     then
44334       ac_XPG2_wchar_t=yes
44335     else
44336       ac_XPG2_wchar_t=no
44337     fi
44338     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
44339 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
44340
44341     # At the moment, only enable wchar_t specializations if all the
44342     # above support is present.
44343     if test x"$ac_isoC99_wchar_t" = xyes &&
44344        test x"$ac_XPG2_wchar_t" = xyes;
44345     then
44346       cat >>confdefs.h <<\_ACEOF
44347 #define _GLIBCXX_USE_WCHAR_T 1
44348 _ACEOF
44349
44350       enable_wchar_t=yes
44351     fi
44352   fi
44353   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
44354 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
44355   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
44356 echo "${ECHO_T}$enable_wchar_t" >&6
44357
44358
44359   ac_test_CXXFLAGS="${CXXFLAGS+set}"
44360   ac_save_CXXFLAGS="$CXXFLAGS"
44361   CXXFLAGS='-fno-builtin -D_GNU_SOURCE'
44362
44363
44364   echo "$as_me:$LINENO: checking for strtold declaration" >&5
44365 echo $ECHO_N "checking for strtold declaration... $ECHO_C" >&6
44366   if test x${glibcxx_cv_func_strtold_use+set} != xset; then
44367     if test "${glibcxx_cv_func_strtold_use+set}" = set; then
44368   echo $ECHO_N "(cached) $ECHO_C" >&6
44369 else
44370
44371
44372
44373       ac_ext=cc
44374 ac_cpp='$CXXCPP $CPPFLAGS'
44375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44378
44379       cat >conftest.$ac_ext <<_ACEOF
44380 #line $LINENO "configure"
44381 /* confdefs.h.  */
44382 _ACEOF
44383 cat confdefs.h >>conftest.$ac_ext
44384 cat >>conftest.$ac_ext <<_ACEOF
44385 /* end confdefs.h.  */
44386 #include <stdlib.h>
44387 int
44388 main ()
44389 {
44390  strtold(0, 0);
44391   ;
44392   return 0;
44393 }
44394 _ACEOF
44395 rm -f conftest.$ac_objext
44396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44397   (eval $ac_compile) 2>&5
44398   ac_status=$?
44399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44400   (exit $ac_status); } &&
44401          { ac_try='test -s conftest.$ac_objext'
44402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44403   (eval $ac_try) 2>&5
44404   ac_status=$?
44405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44406   (exit $ac_status); }; }; then
44407   glibcxx_cv_func_strtold_use=yes
44408 else
44409   echo "$as_me: failed program was:" >&5
44410 sed 's/^/| /' conftest.$ac_ext >&5
44411
44412 glibcxx_cv_func_strtold_use=no
44413 fi
44414 rm -f conftest.$ac_objext conftest.$ac_ext
44415       ac_ext=c
44416 ac_cpp='$CPP $CPPFLAGS'
44417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44420
44421
44422 fi
44423
44424   fi
44425   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtold_use" >&5
44426 echo "${ECHO_T}$glibcxx_cv_func_strtold_use" >&6
44427   if test x$glibcxx_cv_func_strtold_use = x"yes"; then
44428
44429 for ac_func in strtold
44430 do
44431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44432 echo "$as_me:$LINENO: checking for $ac_func" >&5
44433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44434 if eval "test \"\${$as_ac_var+set}\" = set"; then
44435   echo $ECHO_N "(cached) $ECHO_C" >&6
44436 else
44437   cat >conftest.$ac_ext <<_ACEOF
44438 #line $LINENO "configure"
44439 /* confdefs.h.  */
44440 _ACEOF
44441 cat confdefs.h >>conftest.$ac_ext
44442 cat >>conftest.$ac_ext <<_ACEOF
44443 /* end confdefs.h.  */
44444 /* System header to define __stub macros and hopefully few prototypes,
44445     which can conflict with char $ac_func (); below.
44446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44447     <limits.h> exists even on freestanding compilers.  */
44448 #ifdef __STDC__
44449 # include <limits.h>
44450 #else
44451 # include <assert.h>
44452 #endif
44453 /* Override any gcc2 internal prototype to avoid an error.  */
44454 #ifdef __cplusplus
44455 extern "C"
44456 {
44457 #endif
44458 /* We use char because int might match the return type of a gcc2
44459    builtin and then its argument prototype would still apply.  */
44460 char $ac_func ();
44461 /* The GNU C library defines this for functions which it implements
44462     to always fail with ENOSYS.  Some functions are actually named
44463     something starting with __ and the normal name is an alias.  */
44464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44465 choke me
44466 #else
44467 char (*f) () = $ac_func;
44468 #endif
44469 #ifdef __cplusplus
44470 }
44471 #endif
44472
44473 int
44474 main ()
44475 {
44476 return f != $ac_func;
44477   ;
44478   return 0;
44479 }
44480 _ACEOF
44481 rm -f conftest.$ac_objext conftest$ac_exeext
44482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44483   (eval $ac_link) 2>&5
44484   ac_status=$?
44485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44486   (exit $ac_status); } &&
44487          { ac_try='test -s conftest$ac_exeext'
44488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44489   (eval $ac_try) 2>&5
44490   ac_status=$?
44491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44492   (exit $ac_status); }; }; then
44493   eval "$as_ac_var=yes"
44494 else
44495   echo "$as_me: failed program was:" >&5
44496 sed 's/^/| /' conftest.$ac_ext >&5
44497
44498 eval "$as_ac_var=no"
44499 fi
44500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44501 fi
44502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44504 if test `eval echo '${'$as_ac_var'}'` = yes; then
44505   cat >>confdefs.h <<_ACEOF
44506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44507 _ACEOF
44508
44509 fi
44510 done
44511
44512   fi
44513
44514
44515   echo "$as_me:$LINENO: checking for strtof declaration" >&5
44516 echo $ECHO_N "checking for strtof declaration... $ECHO_C" >&6
44517   if test x${glibcxx_cv_func_strtof_use+set} != xset; then
44518     if test "${glibcxx_cv_func_strtof_use+set}" = set; then
44519   echo $ECHO_N "(cached) $ECHO_C" >&6
44520 else
44521
44522
44523
44524       ac_ext=cc
44525 ac_cpp='$CXXCPP $CPPFLAGS'
44526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44529
44530       cat >conftest.$ac_ext <<_ACEOF
44531 #line $LINENO "configure"
44532 /* confdefs.h.  */
44533 _ACEOF
44534 cat confdefs.h >>conftest.$ac_ext
44535 cat >>conftest.$ac_ext <<_ACEOF
44536 /* end confdefs.h.  */
44537 #include <stdlib.h>
44538 int
44539 main ()
44540 {
44541  strtof(0, 0);
44542   ;
44543   return 0;
44544 }
44545 _ACEOF
44546 rm -f conftest.$ac_objext
44547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44548   (eval $ac_compile) 2>&5
44549   ac_status=$?
44550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44551   (exit $ac_status); } &&
44552          { ac_try='test -s conftest.$ac_objext'
44553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44554   (eval $ac_try) 2>&5
44555   ac_status=$?
44556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44557   (exit $ac_status); }; }; then
44558   glibcxx_cv_func_strtof_use=yes
44559 else
44560   echo "$as_me: failed program was:" >&5
44561 sed 's/^/| /' conftest.$ac_ext >&5
44562
44563 glibcxx_cv_func_strtof_use=no
44564 fi
44565 rm -f conftest.$ac_objext conftest.$ac_ext
44566       ac_ext=c
44567 ac_cpp='$CPP $CPPFLAGS'
44568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44571
44572
44573 fi
44574
44575   fi
44576   echo "$as_me:$LINENO: result: $glibcxx_cv_func_strtof_use" >&5
44577 echo "${ECHO_T}$glibcxx_cv_func_strtof_use" >&6
44578   if test x$glibcxx_cv_func_strtof_use = x"yes"; then
44579
44580 for ac_func in strtof
44581 do
44582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44583 echo "$as_me:$LINENO: checking for $ac_func" >&5
44584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44585 if eval "test \"\${$as_ac_var+set}\" = set"; then
44586   echo $ECHO_N "(cached) $ECHO_C" >&6
44587 else
44588   cat >conftest.$ac_ext <<_ACEOF
44589 #line $LINENO "configure"
44590 /* confdefs.h.  */
44591 _ACEOF
44592 cat confdefs.h >>conftest.$ac_ext
44593 cat >>conftest.$ac_ext <<_ACEOF
44594 /* end confdefs.h.  */
44595 /* System header to define __stub macros and hopefully few prototypes,
44596     which can conflict with char $ac_func (); below.
44597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44598     <limits.h> exists even on freestanding compilers.  */
44599 #ifdef __STDC__
44600 # include <limits.h>
44601 #else
44602 # include <assert.h>
44603 #endif
44604 /* Override any gcc2 internal prototype to avoid an error.  */
44605 #ifdef __cplusplus
44606 extern "C"
44607 {
44608 #endif
44609 /* We use char because int might match the return type of a gcc2
44610    builtin and then its argument prototype would still apply.  */
44611 char $ac_func ();
44612 /* The GNU C library defines this for functions which it implements
44613     to always fail with ENOSYS.  Some functions are actually named
44614     something starting with __ and the normal name is an alias.  */
44615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44616 choke me
44617 #else
44618 char (*f) () = $ac_func;
44619 #endif
44620 #ifdef __cplusplus
44621 }
44622 #endif
44623
44624 int
44625 main ()
44626 {
44627 return f != $ac_func;
44628   ;
44629   return 0;
44630 }
44631 _ACEOF
44632 rm -f conftest.$ac_objext conftest$ac_exeext
44633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44634   (eval $ac_link) 2>&5
44635   ac_status=$?
44636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44637   (exit $ac_status); } &&
44638          { ac_try='test -s conftest$ac_exeext'
44639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44640   (eval $ac_try) 2>&5
44641   ac_status=$?
44642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44643   (exit $ac_status); }; }; then
44644   eval "$as_ac_var=yes"
44645 else
44646   echo "$as_me: failed program was:" >&5
44647 sed 's/^/| /' conftest.$ac_ext >&5
44648
44649 eval "$as_ac_var=no"
44650 fi
44651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44652 fi
44653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44655 if test `eval echo '${'$as_ac_var'}'` = yes; then
44656   cat >>confdefs.h <<_ACEOF
44657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44658 _ACEOF
44659
44660 fi
44661 done
44662
44663   fi
44664
44665
44666 for ac_func in drand48
44667 do
44668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44669 echo "$as_me:$LINENO: checking for $ac_func" >&5
44670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44671 if eval "test \"\${$as_ac_var+set}\" = set"; then
44672   echo $ECHO_N "(cached) $ECHO_C" >&6
44673 else
44674   cat >conftest.$ac_ext <<_ACEOF
44675 #line $LINENO "configure"
44676 /* confdefs.h.  */
44677 _ACEOF
44678 cat confdefs.h >>conftest.$ac_ext
44679 cat >>conftest.$ac_ext <<_ACEOF
44680 /* end confdefs.h.  */
44681 /* System header to define __stub macros and hopefully few prototypes,
44682     which can conflict with char $ac_func (); below.
44683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44684     <limits.h> exists even on freestanding compilers.  */
44685 #ifdef __STDC__
44686 # include <limits.h>
44687 #else
44688 # include <assert.h>
44689 #endif
44690 /* Override any gcc2 internal prototype to avoid an error.  */
44691 #ifdef __cplusplus
44692 extern "C"
44693 {
44694 #endif
44695 /* We use char because int might match the return type of a gcc2
44696    builtin and then its argument prototype would still apply.  */
44697 char $ac_func ();
44698 /* The GNU C library defines this for functions which it implements
44699     to always fail with ENOSYS.  Some functions are actually named
44700     something starting with __ and the normal name is an alias.  */
44701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44702 choke me
44703 #else
44704 char (*f) () = $ac_func;
44705 #endif
44706 #ifdef __cplusplus
44707 }
44708 #endif
44709
44710 int
44711 main ()
44712 {
44713 return f != $ac_func;
44714   ;
44715   return 0;
44716 }
44717 _ACEOF
44718 rm -f conftest.$ac_objext conftest$ac_exeext
44719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44720   (eval $ac_link) 2>&5
44721   ac_status=$?
44722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44723   (exit $ac_status); } &&
44724          { ac_try='test -s conftest$ac_exeext'
44725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44726   (eval $ac_try) 2>&5
44727   ac_status=$?
44728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44729   (exit $ac_status); }; }; then
44730   eval "$as_ac_var=yes"
44731 else
44732   echo "$as_me: failed program was:" >&5
44733 sed 's/^/| /' conftest.$ac_ext >&5
44734
44735 eval "$as_ac_var=no"
44736 fi
44737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44738 fi
44739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44741 if test `eval echo '${'$as_ac_var'}'` = yes; then
44742   cat >>confdefs.h <<_ACEOF
44743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44744 _ACEOF
44745
44746 fi
44747 done
44748
44749
44750   CXXFLAGS="$ac_save_CXXFLAGS"
44751
44752
44753     # For showmanyc_helper().
44754
44755
44756 for ac_header in sys/ioctl.h sys/filio.h
44757 do
44758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44760   echo "$as_me:$LINENO: checking for $ac_header" >&5
44761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44763   echo $ECHO_N "(cached) $ECHO_C" >&6
44764 fi
44765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44767 else
44768   # Is the header compilable?
44769 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44771 cat >conftest.$ac_ext <<_ACEOF
44772 #line $LINENO "configure"
44773 /* confdefs.h.  */
44774 _ACEOF
44775 cat confdefs.h >>conftest.$ac_ext
44776 cat >>conftest.$ac_ext <<_ACEOF
44777 /* end confdefs.h.  */
44778 $ac_includes_default
44779 #include <$ac_header>
44780 _ACEOF
44781 rm -f conftest.$ac_objext
44782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44783   (eval $ac_compile) 2>&5
44784   ac_status=$?
44785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44786   (exit $ac_status); } &&
44787          { ac_try='test -s conftest.$ac_objext'
44788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44789   (eval $ac_try) 2>&5
44790   ac_status=$?
44791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44792   (exit $ac_status); }; }; then
44793   ac_header_compiler=yes
44794 else
44795   echo "$as_me: failed program was:" >&5
44796 sed 's/^/| /' conftest.$ac_ext >&5
44797
44798 ac_header_compiler=no
44799 fi
44800 rm -f conftest.$ac_objext conftest.$ac_ext
44801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44802 echo "${ECHO_T}$ac_header_compiler" >&6
44803
44804 # Is the header present?
44805 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44807 cat >conftest.$ac_ext <<_ACEOF
44808 #line $LINENO "configure"
44809 /* confdefs.h.  */
44810 _ACEOF
44811 cat confdefs.h >>conftest.$ac_ext
44812 cat >>conftest.$ac_ext <<_ACEOF
44813 /* end confdefs.h.  */
44814 #include <$ac_header>
44815 _ACEOF
44816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44817   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44818   ac_status=$?
44819   grep -v '^ *+' conftest.er1 >conftest.err
44820   rm -f conftest.er1
44821   cat conftest.err >&5
44822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44823   (exit $ac_status); } >/dev/null; then
44824   if test -s conftest.err; then
44825     ac_cpp_err=$ac_c_preproc_warn_flag
44826   else
44827     ac_cpp_err=
44828   fi
44829 else
44830   ac_cpp_err=yes
44831 fi
44832 if test -z "$ac_cpp_err"; then
44833   ac_header_preproc=yes
44834 else
44835   echo "$as_me: failed program was:" >&5
44836 sed 's/^/| /' conftest.$ac_ext >&5
44837
44838   ac_header_preproc=no
44839 fi
44840 rm -f conftest.err conftest.$ac_ext
44841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44842 echo "${ECHO_T}$ac_header_preproc" >&6
44843
44844 # So?  What about this header?
44845 case $ac_header_compiler:$ac_header_preproc in
44846   yes:no )
44847     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44851     (
44852       cat <<\_ASBOX
44853 ## ------------------------------------ ##
44854 ## Report this to bug-autoconf@gnu.org. ##
44855 ## ------------------------------------ ##
44856 _ASBOX
44857     ) |
44858       sed "s/^/$as_me: WARNING:     /" >&2
44859     ;;
44860   no:yes )
44861     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44863     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44867     (
44868       cat <<\_ASBOX
44869 ## ------------------------------------ ##
44870 ## Report this to bug-autoconf@gnu.org. ##
44871 ## ------------------------------------ ##
44872 _ASBOX
44873     ) |
44874       sed "s/^/$as_me: WARNING:     /" >&2
44875     ;;
44876 esac
44877 echo "$as_me:$LINENO: checking for $ac_header" >&5
44878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44880   echo $ECHO_N "(cached) $ECHO_C" >&6
44881 else
44882   eval "$as_ac_Header=$ac_header_preproc"
44883 fi
44884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44886
44887 fi
44888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44889   cat >>confdefs.h <<_ACEOF
44890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44891 _ACEOF
44892
44893 fi
44894
44895 done
44896
44897
44898   if test "${glibcxx_cv_POLL+set}" = set; then
44899   echo $ECHO_N "(cached) $ECHO_C" >&6
44900 else
44901
44902     cat >conftest.$ac_ext <<_ACEOF
44903 #line $LINENO "configure"
44904 /* confdefs.h.  */
44905 _ACEOF
44906 cat confdefs.h >>conftest.$ac_ext
44907 cat >>conftest.$ac_ext <<_ACEOF
44908 /* end confdefs.h.  */
44909 #include <poll.h>
44910 int
44911 main ()
44912 {
44913 struct pollfd pfd[1];
44914        pfd[0].events = POLLIN;
44915        poll(pfd, 1, 0);
44916   ;
44917   return 0;
44918 }
44919 _ACEOF
44920 rm -f conftest.$ac_objext
44921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44922   (eval $ac_compile) 2>&5
44923   ac_status=$?
44924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44925   (exit $ac_status); } &&
44926          { ac_try='test -s conftest.$ac_objext'
44927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44928   (eval $ac_try) 2>&5
44929   ac_status=$?
44930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44931   (exit $ac_status); }; }; then
44932   glibcxx_cv_POLL=yes
44933 else
44934   echo "$as_me: failed program was:" >&5
44935 sed 's/^/| /' conftest.$ac_ext >&5
44936
44937 glibcxx_cv_POLL=no
44938 fi
44939 rm -f conftest.$ac_objext conftest.$ac_ext
44940
44941 fi
44942
44943   if test $glibcxx_cv_POLL = yes; then
44944     cat >>confdefs.h <<\_ACEOF
44945 #define HAVE_POLL 1
44946 _ACEOF
44947
44948   fi
44949
44950
44951   if test "${glibcxx_cv_S_ISREG+set}" = set; then
44952   echo $ECHO_N "(cached) $ECHO_C" >&6
44953 else
44954
44955     cat >conftest.$ac_ext <<_ACEOF
44956 #line $LINENO "configure"
44957 /* confdefs.h.  */
44958 _ACEOF
44959 cat confdefs.h >>conftest.$ac_ext
44960 cat >>conftest.$ac_ext <<_ACEOF
44961 /* end confdefs.h.  */
44962 #include <sys/stat.h>
44963 int
44964 main ()
44965 {
44966 struct stat buffer;
44967        fstat(0, &buffer);
44968        S_ISREG(buffer.st_mode);
44969   ;
44970   return 0;
44971 }
44972 _ACEOF
44973 rm -f conftest.$ac_objext conftest$ac_exeext
44974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44975   (eval $ac_link) 2>&5
44976   ac_status=$?
44977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44978   (exit $ac_status); } &&
44979          { ac_try='test -s conftest$ac_exeext'
44980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44981   (eval $ac_try) 2>&5
44982   ac_status=$?
44983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44984   (exit $ac_status); }; }; then
44985   glibcxx_cv_S_ISREG=yes
44986 else
44987   echo "$as_me: failed program was:" >&5
44988 sed 's/^/| /' conftest.$ac_ext >&5
44989
44990 glibcxx_cv_S_ISREG=no
44991 fi
44992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
44993
44994 fi
44995
44996   if test "${glibcxx_cv_S_IFREG+set}" = set; then
44997   echo $ECHO_N "(cached) $ECHO_C" >&6
44998 else
44999
45000     cat >conftest.$ac_ext <<_ACEOF
45001 #line $LINENO "configure"
45002 /* confdefs.h.  */
45003 _ACEOF
45004 cat confdefs.h >>conftest.$ac_ext
45005 cat >>conftest.$ac_ext <<_ACEOF
45006 /* end confdefs.h.  */
45007 #include <sys/stat.h>
45008 int
45009 main ()
45010 {
45011 struct stat buffer;
45012        fstat(0, &buffer);
45013        S_IFREG & buffer.st_mode;
45014   ;
45015   return 0;
45016 }
45017 _ACEOF
45018 rm -f conftest.$ac_objext conftest$ac_exeext
45019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45020   (eval $ac_link) 2>&5
45021   ac_status=$?
45022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45023   (exit $ac_status); } &&
45024          { ac_try='test -s conftest$ac_exeext'
45025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45026   (eval $ac_try) 2>&5
45027   ac_status=$?
45028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45029   (exit $ac_status); }; }; then
45030   glibcxx_cv_S_IFREG=yes
45031 else
45032   echo "$as_me: failed program was:" >&5
45033 sed 's/^/| /' conftest.$ac_ext >&5
45034
45035 glibcxx_cv_S_IFREG=no
45036 fi
45037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45038
45039 fi
45040
45041   if test $glibcxx_cv_S_ISREG = yes; then
45042     cat >>confdefs.h <<\_ACEOF
45043 #define HAVE_S_ISREG 1
45044 _ACEOF
45045
45046   elif test $glibcxx_cv_S_IFREG = yes; then
45047     cat >>confdefs.h <<\_ACEOF
45048 #define HAVE_S_IFREG 1
45049 _ACEOF
45050
45051   fi
45052
45053
45054     # For xsputn_2().
45055
45056 for ac_header in sys/uio.h
45057 do
45058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45060   echo "$as_me:$LINENO: checking for $ac_header" >&5
45061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45063   echo $ECHO_N "(cached) $ECHO_C" >&6
45064 fi
45065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45067 else
45068   # Is the header compilable?
45069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45071 cat >conftest.$ac_ext <<_ACEOF
45072 #line $LINENO "configure"
45073 /* confdefs.h.  */
45074 _ACEOF
45075 cat confdefs.h >>conftest.$ac_ext
45076 cat >>conftest.$ac_ext <<_ACEOF
45077 /* end confdefs.h.  */
45078 $ac_includes_default
45079 #include <$ac_header>
45080 _ACEOF
45081 rm -f conftest.$ac_objext
45082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45083   (eval $ac_compile) 2>&5
45084   ac_status=$?
45085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45086   (exit $ac_status); } &&
45087          { ac_try='test -s conftest.$ac_objext'
45088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45089   (eval $ac_try) 2>&5
45090   ac_status=$?
45091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45092   (exit $ac_status); }; }; then
45093   ac_header_compiler=yes
45094 else
45095   echo "$as_me: failed program was:" >&5
45096 sed 's/^/| /' conftest.$ac_ext >&5
45097
45098 ac_header_compiler=no
45099 fi
45100 rm -f conftest.$ac_objext conftest.$ac_ext
45101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45102 echo "${ECHO_T}$ac_header_compiler" >&6
45103
45104 # Is the header present?
45105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45107 cat >conftest.$ac_ext <<_ACEOF
45108 #line $LINENO "configure"
45109 /* confdefs.h.  */
45110 _ACEOF
45111 cat confdefs.h >>conftest.$ac_ext
45112 cat >>conftest.$ac_ext <<_ACEOF
45113 /* end confdefs.h.  */
45114 #include <$ac_header>
45115 _ACEOF
45116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45117   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45118   ac_status=$?
45119   grep -v '^ *+' conftest.er1 >conftest.err
45120   rm -f conftest.er1
45121   cat conftest.err >&5
45122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45123   (exit $ac_status); } >/dev/null; then
45124   if test -s conftest.err; then
45125     ac_cpp_err=$ac_c_preproc_warn_flag
45126   else
45127     ac_cpp_err=
45128   fi
45129 else
45130   ac_cpp_err=yes
45131 fi
45132 if test -z "$ac_cpp_err"; then
45133   ac_header_preproc=yes
45134 else
45135   echo "$as_me: failed program was:" >&5
45136 sed 's/^/| /' conftest.$ac_ext >&5
45137
45138   ac_header_preproc=no
45139 fi
45140 rm -f conftest.err conftest.$ac_ext
45141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45142 echo "${ECHO_T}$ac_header_preproc" >&6
45143
45144 # So?  What about this header?
45145 case $ac_header_compiler:$ac_header_preproc in
45146   yes:no )
45147     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45151     (
45152       cat <<\_ASBOX
45153 ## ------------------------------------ ##
45154 ## Report this to bug-autoconf@gnu.org. ##
45155 ## ------------------------------------ ##
45156 _ASBOX
45157     ) |
45158       sed "s/^/$as_me: WARNING:     /" >&2
45159     ;;
45160   no:yes )
45161     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45163     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45167     (
45168       cat <<\_ASBOX
45169 ## ------------------------------------ ##
45170 ## Report this to bug-autoconf@gnu.org. ##
45171 ## ------------------------------------ ##
45172 _ASBOX
45173     ) |
45174       sed "s/^/$as_me: WARNING:     /" >&2
45175     ;;
45176 esac
45177 echo "$as_me:$LINENO: checking for $ac_header" >&5
45178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45180   echo $ECHO_N "(cached) $ECHO_C" >&6
45181 else
45182   eval "$as_ac_Header=$ac_header_preproc"
45183 fi
45184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45186
45187 fi
45188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45189   cat >>confdefs.h <<_ACEOF
45190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45191 _ACEOF
45192
45193 fi
45194
45195 done
45196
45197
45198   if test "${glibcxx_cv_WRITEV+set}" = set; then
45199   echo $ECHO_N "(cached) $ECHO_C" >&6
45200 else
45201
45202     cat >conftest.$ac_ext <<_ACEOF
45203 #line $LINENO "configure"
45204 /* confdefs.h.  */
45205 _ACEOF
45206 cat confdefs.h >>conftest.$ac_ext
45207 cat >>conftest.$ac_ext <<_ACEOF
45208 /* end confdefs.h.  */
45209 #include <sys/uio.h>
45210 int
45211 main ()
45212 {
45213 struct iovec iov[2];
45214        writev(0, iov, 0);
45215   ;
45216   return 0;
45217 }
45218 _ACEOF
45219 rm -f conftest.$ac_objext
45220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45221   (eval $ac_compile) 2>&5
45222   ac_status=$?
45223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45224   (exit $ac_status); } &&
45225          { ac_try='test -s conftest.$ac_objext'
45226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45227   (eval $ac_try) 2>&5
45228   ac_status=$?
45229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45230   (exit $ac_status); }; }; then
45231   glibcxx_cv_WRITEV=yes
45232 else
45233   echo "$as_me: failed program was:" >&5
45234 sed 's/^/| /' conftest.$ac_ext >&5
45235
45236 glibcxx_cv_WRITEV=no
45237 fi
45238 rm -f conftest.$ac_objext conftest.$ac_ext
45239
45240 fi
45241
45242   if test $glibcxx_cv_WRITEV = yes; then
45243     cat >>confdefs.h <<\_ACEOF
45244 #define HAVE_WRITEV 1
45245 _ACEOF
45246
45247   fi
45248
45249
45250     cat >>confdefs.h <<\_ACEOF
45251 #define HAVE_LC_MESSAGES 1
45252 _ACEOF
45253
45254
45255     cat >conftest.$ac_ext <<_ACEOF
45256 #line $LINENO "configure"
45257 /* confdefs.h.  */
45258 _ACEOF
45259 cat confdefs.h >>conftest.$ac_ext
45260 cat >>conftest.$ac_ext <<_ACEOF
45261 /* end confdefs.h.  */
45262 #include <setjmp.h>
45263 int
45264 main ()
45265 {
45266 sigjmp_buf env;
45267        while (! sigsetjmp (env, 1))
45268          siglongjmp (env, 1);
45269
45270   ;
45271   return 0;
45272 }
45273 _ACEOF
45274 rm -f conftest.$ac_objext
45275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45276   (eval $ac_compile) 2>&5
45277   ac_status=$?
45278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45279   (exit $ac_status); } &&
45280          { ac_try='test -s conftest.$ac_objext'
45281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45282   (eval $ac_try) 2>&5
45283   ac_status=$?
45284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45285   (exit $ac_status); }; }; then
45286
45287 cat >>confdefs.h <<\_ACEOF
45288 #define HAVE_SIGSETJMP 1
45289 _ACEOF
45290
45291 else
45292   echo "$as_me: failed program was:" >&5
45293 sed 's/^/| /' conftest.$ac_ext >&5
45294
45295 fi
45296 rm -f conftest.$ac_objext conftest.$ac_ext
45297
45298     cat >>confdefs.h <<\_ACEOF
45299 #define HAVE_MMAP 1
45300 _ACEOF
45301
45302     ;;
45303
45304   *-freebsd*)
45305     #os_include_dir="os/bsd/freebsd"
45306
45307
45308
45309
45310
45311
45312
45313
45314
45315
45316
45317
45318
45319
45320
45321
45322 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
45323       machine/endian.h machine/param.h sys/machine.h sys/types.h \
45324       fp.h locale.h float.h inttypes.h sys/resource.h sys/stat.h \
45325       sys/time.h unistd.h
45326 do
45327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45329   echo "$as_me:$LINENO: checking for $ac_header" >&5
45330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45332   echo $ECHO_N "(cached) $ECHO_C" >&6
45333 fi
45334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45336 else
45337   # Is the header compilable?
45338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45340 cat >conftest.$ac_ext <<_ACEOF
45341 #line $LINENO "configure"
45342 /* confdefs.h.  */
45343 _ACEOF
45344 cat confdefs.h >>conftest.$ac_ext
45345 cat >>conftest.$ac_ext <<_ACEOF
45346 /* end confdefs.h.  */
45347 $ac_includes_default
45348 #include <$ac_header>
45349 _ACEOF
45350 rm -f conftest.$ac_objext
45351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45352   (eval $ac_compile) 2>&5
45353   ac_status=$?
45354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45355   (exit $ac_status); } &&
45356          { ac_try='test -s conftest.$ac_objext'
45357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45358   (eval $ac_try) 2>&5
45359   ac_status=$?
45360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45361   (exit $ac_status); }; }; then
45362   ac_header_compiler=yes
45363 else
45364   echo "$as_me: failed program was:" >&5
45365 sed 's/^/| /' conftest.$ac_ext >&5
45366
45367 ac_header_compiler=no
45368 fi
45369 rm -f conftest.$ac_objext conftest.$ac_ext
45370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45371 echo "${ECHO_T}$ac_header_compiler" >&6
45372
45373 # Is the header present?
45374 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45376 cat >conftest.$ac_ext <<_ACEOF
45377 #line $LINENO "configure"
45378 /* confdefs.h.  */
45379 _ACEOF
45380 cat confdefs.h >>conftest.$ac_ext
45381 cat >>conftest.$ac_ext <<_ACEOF
45382 /* end confdefs.h.  */
45383 #include <$ac_header>
45384 _ACEOF
45385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45387   ac_status=$?
45388   grep -v '^ *+' conftest.er1 >conftest.err
45389   rm -f conftest.er1
45390   cat conftest.err >&5
45391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45392   (exit $ac_status); } >/dev/null; then
45393   if test -s conftest.err; then
45394     ac_cpp_err=$ac_c_preproc_warn_flag
45395   else
45396     ac_cpp_err=
45397   fi
45398 else
45399   ac_cpp_err=yes
45400 fi
45401 if test -z "$ac_cpp_err"; then
45402   ac_header_preproc=yes
45403 else
45404   echo "$as_me: failed program was:" >&5
45405 sed 's/^/| /' conftest.$ac_ext >&5
45406
45407   ac_header_preproc=no
45408 fi
45409 rm -f conftest.err conftest.$ac_ext
45410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45411 echo "${ECHO_T}$ac_header_preproc" >&6
45412
45413 # So?  What about this header?
45414 case $ac_header_compiler:$ac_header_preproc in
45415   yes:no )
45416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45420     (
45421       cat <<\_ASBOX
45422 ## ------------------------------------ ##
45423 ## Report this to bug-autoconf@gnu.org. ##
45424 ## ------------------------------------ ##
45425 _ASBOX
45426     ) |
45427       sed "s/^/$as_me: WARNING:     /" >&2
45428     ;;
45429   no:yes )
45430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45432     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45436     (
45437       cat <<\_ASBOX
45438 ## ------------------------------------ ##
45439 ## Report this to bug-autoconf@gnu.org. ##
45440 ## ------------------------------------ ##
45441 _ASBOX
45442     ) |
45443       sed "s/^/$as_me: WARNING:     /" >&2
45444     ;;
45445 esac
45446 echo "$as_me:$LINENO: checking for $ac_header" >&5
45447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45449   echo $ECHO_N "(cached) $ECHO_C" >&6
45450 else
45451   eval "$as_ac_Header=$ac_header_preproc"
45452 fi
45453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45455
45456 fi
45457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45458   cat >>confdefs.h <<_ACEOF
45459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45460 _ACEOF
45461
45462 fi
45463
45464 done
45465
45466     SECTION_FLAGS='-ffunction-sections -fdata-sections'
45467
45468
45469   # If we're not using GNU ld, then there's no point in even trying these
45470   # tests.  Check for that first.  We should have already tested for gld
45471   # by now (in libtool), but require it now just to be safe...
45472   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
45473   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
45474
45475
45476
45477   # The name set by libtool depends on the version of libtool.  Shame on us
45478   # for depending on an impl detail, but c'est la vie.  Older versions used
45479   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
45480   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
45481   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
45482   # set (hence we're using an older libtool), then set it.
45483   if test x${with_gnu_ld+set} != xset; then
45484     if test x${ac_cv_prog_gnu_ld+set} != xset; then
45485       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
45486       with_gnu_ld=no
45487     else
45488       with_gnu_ld=$ac_cv_prog_gnu_ld
45489     fi
45490   fi
45491
45492   # Start by getting the version number.  I think the libtool test already
45493   # does some of this, but throws away the result.
45494
45495   ldver=`$LD --version 2>/dev/null | head -1 | \
45496          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
45497
45498   glibcxx_gnu_ld_version=`echo $ldver | \
45499          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
45500
45501   # Set --gc-sections.
45502   if test "$with_gnu_ld" = "notbroken"; then
45503     # GNU ld it is!  Joy and bunny rabbits!
45504
45505     # All these tests are for C++; save the language and the compiler flags.
45506     # Need to do this so that g++ won't try to link in libstdc++
45507     ac_test_CFLAGS="${CFLAGS+set}"
45508     ac_save_CFLAGS="$CFLAGS"
45509     CFLAGS='-x c++  -Wl,--gc-sections'
45510
45511     # Check for -Wl,--gc-sections
45512     # XXX This test is broken at the moment, as symbols required for linking
45513     # are now in libsupc++ (not built yet).  In addition, this test has
45514     # cored on solaris in the past.  In addition, --gc-sections doesn't
45515     # really work at the moment (keeps on discarding used sections, first
45516     # .eh_frame and now some of the glibc sections for iconv).
45517     # Bzzzzt.  Thanks for playing, maybe next time.
45518     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
45519 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
45520     if test "$cross_compiling" = yes; then
45521   ac_sectionLDflags=yes
45522 else
45523   cat >conftest.$ac_ext <<_ACEOF
45524 #line $LINENO "configure"
45525 /* confdefs.h.  */
45526 _ACEOF
45527 cat confdefs.h >>conftest.$ac_ext
45528 cat >>conftest.$ac_ext <<_ACEOF
45529 /* end confdefs.h.  */
45530
45531      int main(void)
45532      {
45533        try { throw 1; }
45534        catch (...) { };
45535        return 0;
45536      }
45537
45538 _ACEOF
45539 rm -f conftest$ac_exeext
45540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45541   (eval $ac_link) 2>&5
45542   ac_status=$?
45543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45544   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45546   (eval $ac_try) 2>&5
45547   ac_status=$?
45548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45549   (exit $ac_status); }; }; then
45550   ac_sectionLDflags=yes
45551 else
45552   echo "$as_me: program exited with status $ac_status" >&5
45553 echo "$as_me: failed program was:" >&5
45554 sed 's/^/| /' conftest.$ac_ext >&5
45555
45556 ( exit $ac_status )
45557 ac_sectionLDflags=no
45558 fi
45559 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45560 fi
45561     if test "$ac_test_CFLAGS" = set; then
45562       CFLAGS="$ac_save_CFLAGS"
45563     else
45564       # this is the suspicious part
45565       CFLAGS=''
45566     fi
45567     if test "$ac_sectionLDflags" = "yes"; then
45568       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
45569     fi
45570     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
45571 echo "${ECHO_T}$ac_sectionLDflags" >&6
45572   fi
45573
45574   # Set linker optimization flags.
45575   if test x"$with_gnu_ld" = x"yes"; then
45576     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
45577   fi
45578
45579
45580
45581
45582
45583
45584 echo "$as_me:$LINENO: checking for main in -lm" >&5
45585 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
45586 if test "${ac_cv_lib_m_main+set}" = set; then
45587   echo $ECHO_N "(cached) $ECHO_C" >&6
45588 else
45589   ac_check_lib_save_LIBS=$LIBS
45590 LIBS="-lm  $LIBS"
45591 cat >conftest.$ac_ext <<_ACEOF
45592 #line $LINENO "configure"
45593 /* confdefs.h.  */
45594 _ACEOF
45595 cat confdefs.h >>conftest.$ac_ext
45596 cat >>conftest.$ac_ext <<_ACEOF
45597 /* end confdefs.h.  */
45598
45599
45600 int
45601 main ()
45602 {
45603 main ();
45604   ;
45605   return 0;
45606 }
45607 _ACEOF
45608 rm -f conftest.$ac_objext conftest$ac_exeext
45609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45610   (eval $ac_link) 2>&5
45611   ac_status=$?
45612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45613   (exit $ac_status); } &&
45614          { ac_try='test -s conftest$ac_exeext'
45615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45616   (eval $ac_try) 2>&5
45617   ac_status=$?
45618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45619   (exit $ac_status); }; }; then
45620   ac_cv_lib_m_main=yes
45621 else
45622   echo "$as_me: failed program was:" >&5
45623 sed 's/^/| /' conftest.$ac_ext >&5
45624
45625 ac_cv_lib_m_main=no
45626 fi
45627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45628 LIBS=$ac_check_lib_save_LIBS
45629 fi
45630 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
45631 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
45632 if test $ac_cv_lib_m_main = yes; then
45633   cat >>confdefs.h <<_ACEOF
45634 #define HAVE_LIBM 1
45635 _ACEOF
45636
45637   LIBS="-lm $LIBS"
45638
45639 fi
45640
45641
45642
45643 for ac_func in nan copysignf
45644 do
45645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45646 echo "$as_me:$LINENO: checking for $ac_func" >&5
45647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45648 if eval "test \"\${$as_ac_var+set}\" = set"; then
45649   echo $ECHO_N "(cached) $ECHO_C" >&6
45650 else
45651   cat >conftest.$ac_ext <<_ACEOF
45652 #line $LINENO "configure"
45653 /* confdefs.h.  */
45654 _ACEOF
45655 cat confdefs.h >>conftest.$ac_ext
45656 cat >>conftest.$ac_ext <<_ACEOF
45657 /* end confdefs.h.  */
45658 /* System header to define __stub macros and hopefully few prototypes,
45659     which can conflict with char $ac_func (); below.
45660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45661     <limits.h> exists even on freestanding compilers.  */
45662 #ifdef __STDC__
45663 # include <limits.h>
45664 #else
45665 # include <assert.h>
45666 #endif
45667 /* Override any gcc2 internal prototype to avoid an error.  */
45668 #ifdef __cplusplus
45669 extern "C"
45670 {
45671 #endif
45672 /* We use char because int might match the return type of a gcc2
45673    builtin and then its argument prototype would still apply.  */
45674 char $ac_func ();
45675 /* The GNU C library defines this for functions which it implements
45676     to always fail with ENOSYS.  Some functions are actually named
45677     something starting with __ and the normal name is an alias.  */
45678 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45679 choke me
45680 #else
45681 char (*f) () = $ac_func;
45682 #endif
45683 #ifdef __cplusplus
45684 }
45685 #endif
45686
45687 int
45688 main ()
45689 {
45690 return f != $ac_func;
45691   ;
45692   return 0;
45693 }
45694 _ACEOF
45695 rm -f conftest.$ac_objext conftest$ac_exeext
45696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45697   (eval $ac_link) 2>&5
45698   ac_status=$?
45699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45700   (exit $ac_status); } &&
45701          { ac_try='test -s conftest$ac_exeext'
45702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45703   (eval $ac_try) 2>&5
45704   ac_status=$?
45705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45706   (exit $ac_status); }; }; then
45707   eval "$as_ac_var=yes"
45708 else
45709   echo "$as_me: failed program was:" >&5
45710 sed 's/^/| /' conftest.$ac_ext >&5
45711
45712 eval "$as_ac_var=no"
45713 fi
45714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45715 fi
45716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45718 if test `eval echo '${'$as_ac_var'}'` = yes; then
45719   cat >>confdefs.h <<_ACEOF
45720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45721 _ACEOF
45722
45723 else
45724   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
45725 fi
45726 done
45727
45728
45729
45730 for ac_func in __signbit
45731 do
45732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45733 echo "$as_me:$LINENO: checking for $ac_func" >&5
45734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45735 if eval "test \"\${$as_ac_var+set}\" = set"; then
45736   echo $ECHO_N "(cached) $ECHO_C" >&6
45737 else
45738   cat >conftest.$ac_ext <<_ACEOF
45739 #line $LINENO "configure"
45740 /* confdefs.h.  */
45741 _ACEOF
45742 cat confdefs.h >>conftest.$ac_ext
45743 cat >>conftest.$ac_ext <<_ACEOF
45744 /* end confdefs.h.  */
45745 /* System header to define __stub macros and hopefully few prototypes,
45746     which can conflict with char $ac_func (); below.
45747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45748     <limits.h> exists even on freestanding compilers.  */
45749 #ifdef __STDC__
45750 # include <limits.h>
45751 #else
45752 # include <assert.h>
45753 #endif
45754 /* Override any gcc2 internal prototype to avoid an error.  */
45755 #ifdef __cplusplus
45756 extern "C"
45757 {
45758 #endif
45759 /* We use char because int might match the return type of a gcc2
45760    builtin and then its argument prototype would still apply.  */
45761 char $ac_func ();
45762 /* The GNU C library defines this for functions which it implements
45763     to always fail with ENOSYS.  Some functions are actually named
45764     something starting with __ and the normal name is an alias.  */
45765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45766 choke me
45767 #else
45768 char (*f) () = $ac_func;
45769 #endif
45770 #ifdef __cplusplus
45771 }
45772 #endif
45773
45774 int
45775 main ()
45776 {
45777 return f != $ac_func;
45778   ;
45779   return 0;
45780 }
45781 _ACEOF
45782 rm -f conftest.$ac_objext conftest$ac_exeext
45783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45784   (eval $ac_link) 2>&5
45785   ac_status=$?
45786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45787   (exit $ac_status); } &&
45788          { ac_try='test -s conftest$ac_exeext'
45789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45790   (eval $ac_try) 2>&5
45791   ac_status=$?
45792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45793   (exit $ac_status); }; }; then
45794   eval "$as_ac_var=yes"
45795 else
45796   echo "$as_me: failed program was:" >&5
45797 sed 's/^/| /' conftest.$ac_ext >&5
45798
45799 eval "$as_ac_var=no"
45800 fi
45801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45802 fi
45803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45805 if test `eval echo '${'$as_ac_var'}'` = yes; then
45806   cat >>confdefs.h <<_ACEOF
45807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45808 _ACEOF
45809
45810 else
45811   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
45812 fi
45813 done
45814
45815
45816 for ac_func in __signbitf
45817 do
45818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45819 echo "$as_me:$LINENO: checking for $ac_func" >&5
45820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45821 if eval "test \"\${$as_ac_var+set}\" = set"; then
45822   echo $ECHO_N "(cached) $ECHO_C" >&6
45823 else
45824   cat >conftest.$ac_ext <<_ACEOF
45825 #line $LINENO "configure"
45826 /* confdefs.h.  */
45827 _ACEOF
45828 cat confdefs.h >>conftest.$ac_ext
45829 cat >>conftest.$ac_ext <<_ACEOF
45830 /* end confdefs.h.  */
45831 /* System header to define __stub macros and hopefully few prototypes,
45832     which can conflict with char $ac_func (); below.
45833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45834     <limits.h> exists even on freestanding compilers.  */
45835 #ifdef __STDC__
45836 # include <limits.h>
45837 #else
45838 # include <assert.h>
45839 #endif
45840 /* Override any gcc2 internal prototype to avoid an error.  */
45841 #ifdef __cplusplus
45842 extern "C"
45843 {
45844 #endif
45845 /* We use char because int might match the return type of a gcc2
45846    builtin and then its argument prototype would still apply.  */
45847 char $ac_func ();
45848 /* The GNU C library defines this for functions which it implements
45849     to always fail with ENOSYS.  Some functions are actually named
45850     something starting with __ and the normal name is an alias.  */
45851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45852 choke me
45853 #else
45854 char (*f) () = $ac_func;
45855 #endif
45856 #ifdef __cplusplus
45857 }
45858 #endif
45859
45860 int
45861 main ()
45862 {
45863 return f != $ac_func;
45864   ;
45865   return 0;
45866 }
45867 _ACEOF
45868 rm -f conftest.$ac_objext conftest$ac_exeext
45869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45870   (eval $ac_link) 2>&5
45871   ac_status=$?
45872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45873   (exit $ac_status); } &&
45874          { ac_try='test -s conftest$ac_exeext'
45875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45876   (eval $ac_try) 2>&5
45877   ac_status=$?
45878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45879   (exit $ac_status); }; }; then
45880   eval "$as_ac_var=yes"
45881 else
45882   echo "$as_me: failed program was:" >&5
45883 sed 's/^/| /' conftest.$ac_ext >&5
45884
45885 eval "$as_ac_var=no"
45886 fi
45887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45888 fi
45889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45891 if test `eval echo '${'$as_ac_var'}'` = yes; then
45892   cat >>confdefs.h <<_ACEOF
45893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45894 _ACEOF
45895
45896 else
45897   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
45898 fi
45899 done
45900
45901
45902           if test x$ac_cv_func_copysignl = x"yes"; then
45903
45904 for ac_func in __signbitl
45905 do
45906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45907 echo "$as_me:$LINENO: checking for $ac_func" >&5
45908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45909 if eval "test \"\${$as_ac_var+set}\" = set"; then
45910   echo $ECHO_N "(cached) $ECHO_C" >&6
45911 else
45912   cat >conftest.$ac_ext <<_ACEOF
45913 #line $LINENO "configure"
45914 /* confdefs.h.  */
45915 _ACEOF
45916 cat confdefs.h >>conftest.$ac_ext
45917 cat >>conftest.$ac_ext <<_ACEOF
45918 /* end confdefs.h.  */
45919 /* System header to define __stub macros and hopefully few prototypes,
45920     which can conflict with char $ac_func (); below.
45921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45922     <limits.h> exists even on freestanding compilers.  */
45923 #ifdef __STDC__
45924 # include <limits.h>
45925 #else
45926 # include <assert.h>
45927 #endif
45928 /* Override any gcc2 internal prototype to avoid an error.  */
45929 #ifdef __cplusplus
45930 extern "C"
45931 {
45932 #endif
45933 /* We use char because int might match the return type of a gcc2
45934    builtin and then its argument prototype would still apply.  */
45935 char $ac_func ();
45936 /* The GNU C library defines this for functions which it implements
45937     to always fail with ENOSYS.  Some functions are actually named
45938     something starting with __ and the normal name is an alias.  */
45939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45940 choke me
45941 #else
45942 char (*f) () = $ac_func;
45943 #endif
45944 #ifdef __cplusplus
45945 }
45946 #endif
45947
45948 int
45949 main ()
45950 {
45951 return f != $ac_func;
45952   ;
45953   return 0;
45954 }
45955 _ACEOF
45956 rm -f conftest.$ac_objext conftest$ac_exeext
45957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45958   (eval $ac_link) 2>&5
45959   ac_status=$?
45960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45961   (exit $ac_status); } &&
45962          { ac_try='test -s conftest$ac_exeext'
45963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45964   (eval $ac_try) 2>&5
45965   ac_status=$?
45966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45967   (exit $ac_status); }; }; then
45968   eval "$as_ac_var=yes"
45969 else
45970   echo "$as_me: failed program was:" >&5
45971 sed 's/^/| /' conftest.$ac_ext >&5
45972
45973 eval "$as_ac_var=no"
45974 fi
45975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
45976 fi
45977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45979 if test `eval echo '${'$as_ac_var'}'` = yes; then
45980   cat >>confdefs.h <<_ACEOF
45981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45982 _ACEOF
45983
45984 else
45985   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
45986 fi
45987 done
45988
45989   fi
45990
45991   # XXX Review this.  Nothing uses it.
45992   if test -n "$LIBMATHOBJS"; then
45993     need_libmath=yes
45994   fi
45995
45996
45997
45998   # Test wchar.h for mbstate_t, which is needed for char_traits and
45999   # others even if wchar_t support is not on.
46000   echo "$as_me:$LINENO: checking for mbstate_t" >&5
46001 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
46002   cat >conftest.$ac_ext <<_ACEOF
46003 #line $LINENO "configure"
46004 /* confdefs.h.  */
46005 _ACEOF
46006 cat confdefs.h >>conftest.$ac_ext
46007 cat >>conftest.$ac_ext <<_ACEOF
46008 /* end confdefs.h.  */
46009 #include <wchar.h>
46010 int
46011 main ()
46012 {
46013 mbstate_t teststate;
46014   ;
46015   return 0;
46016 }
46017 _ACEOF
46018 rm -f conftest.$ac_objext
46019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46020   (eval $ac_compile) 2>&5
46021   ac_status=$?
46022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46023   (exit $ac_status); } &&
46024          { ac_try='test -s conftest.$ac_objext'
46025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46026   (eval $ac_try) 2>&5
46027   ac_status=$?
46028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46029   (exit $ac_status); }; }; then
46030   have_mbstate_t=yes
46031 else
46032   echo "$as_me: failed program was:" >&5
46033 sed 's/^/| /' conftest.$ac_ext >&5
46034
46035 have_mbstate_t=no
46036 fi
46037 rm -f conftest.$ac_objext conftest.$ac_ext
46038   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
46039 echo "${ECHO_T}$have_mbstate_t" >&6
46040   if test x"$have_mbstate_t" = xyes; then
46041     cat >>confdefs.h <<\_ACEOF
46042 #define HAVE_MBSTATE_T 1
46043 _ACEOF
46044
46045   fi
46046
46047   # Sanity check for existence of ISO C99 headers for extended encoding.
46048
46049 for ac_header in wchar.h
46050 do
46051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46053   echo "$as_me:$LINENO: checking for $ac_header" >&5
46054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46056   echo $ECHO_N "(cached) $ECHO_C" >&6
46057 fi
46058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46060 else
46061   # Is the header compilable?
46062 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46064 cat >conftest.$ac_ext <<_ACEOF
46065 #line $LINENO "configure"
46066 /* confdefs.h.  */
46067 _ACEOF
46068 cat confdefs.h >>conftest.$ac_ext
46069 cat >>conftest.$ac_ext <<_ACEOF
46070 /* end confdefs.h.  */
46071 $ac_includes_default
46072 #include <$ac_header>
46073 _ACEOF
46074 rm -f conftest.$ac_objext
46075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46076   (eval $ac_compile) 2>&5
46077   ac_status=$?
46078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46079   (exit $ac_status); } &&
46080          { ac_try='test -s conftest.$ac_objext'
46081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46082   (eval $ac_try) 2>&5
46083   ac_status=$?
46084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46085   (exit $ac_status); }; }; then
46086   ac_header_compiler=yes
46087 else
46088   echo "$as_me: failed program was:" >&5
46089 sed 's/^/| /' conftest.$ac_ext >&5
46090
46091 ac_header_compiler=no
46092 fi
46093 rm -f conftest.$ac_objext conftest.$ac_ext
46094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46095 echo "${ECHO_T}$ac_header_compiler" >&6
46096
46097 # Is the header present?
46098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46100 cat >conftest.$ac_ext <<_ACEOF
46101 #line $LINENO "configure"
46102 /* confdefs.h.  */
46103 _ACEOF
46104 cat confdefs.h >>conftest.$ac_ext
46105 cat >>conftest.$ac_ext <<_ACEOF
46106 /* end confdefs.h.  */
46107 #include <$ac_header>
46108 _ACEOF
46109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46111   ac_status=$?
46112   grep -v '^ *+' conftest.er1 >conftest.err
46113   rm -f conftest.er1
46114   cat conftest.err >&5
46115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46116   (exit $ac_status); } >/dev/null; then
46117   if test -s conftest.err; then
46118     ac_cpp_err=$ac_c_preproc_warn_flag
46119   else
46120     ac_cpp_err=
46121   fi
46122 else
46123   ac_cpp_err=yes
46124 fi
46125 if test -z "$ac_cpp_err"; then
46126   ac_header_preproc=yes
46127 else
46128   echo "$as_me: failed program was:" >&5
46129 sed 's/^/| /' conftest.$ac_ext >&5
46130
46131   ac_header_preproc=no
46132 fi
46133 rm -f conftest.err conftest.$ac_ext
46134 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46135 echo "${ECHO_T}$ac_header_preproc" >&6
46136
46137 # So?  What about this header?
46138 case $ac_header_compiler:$ac_header_preproc in
46139   yes:no )
46140     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46144     (
46145       cat <<\_ASBOX
46146 ## ------------------------------------ ##
46147 ## Report this to bug-autoconf@gnu.org. ##
46148 ## ------------------------------------ ##
46149 _ASBOX
46150     ) |
46151       sed "s/^/$as_me: WARNING:     /" >&2
46152     ;;
46153   no:yes )
46154     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46156     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46160     (
46161       cat <<\_ASBOX
46162 ## ------------------------------------ ##
46163 ## Report this to bug-autoconf@gnu.org. ##
46164 ## ------------------------------------ ##
46165 _ASBOX
46166     ) |
46167       sed "s/^/$as_me: WARNING:     /" >&2
46168     ;;
46169 esac
46170 echo "$as_me:$LINENO: checking for $ac_header" >&5
46171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46173   echo $ECHO_N "(cached) $ECHO_C" >&6
46174 else
46175   eval "$as_ac_Header=$ac_header_preproc"
46176 fi
46177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46178 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46179
46180 fi
46181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46182   cat >>confdefs.h <<_ACEOF
46183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46184 _ACEOF
46185  ac_has_wchar_h=yes
46186 else
46187   ac_has_wchar_h=no
46188 fi
46189
46190 done
46191
46192
46193 for ac_header in wctype.h
46194 do
46195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46197   echo "$as_me:$LINENO: checking for $ac_header" >&5
46198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46200   echo $ECHO_N "(cached) $ECHO_C" >&6
46201 fi
46202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46204 else
46205   # Is the header compilable?
46206 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46208 cat >conftest.$ac_ext <<_ACEOF
46209 #line $LINENO "configure"
46210 /* confdefs.h.  */
46211 _ACEOF
46212 cat confdefs.h >>conftest.$ac_ext
46213 cat >>conftest.$ac_ext <<_ACEOF
46214 /* end confdefs.h.  */
46215 $ac_includes_default
46216 #include <$ac_header>
46217 _ACEOF
46218 rm -f conftest.$ac_objext
46219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46220   (eval $ac_compile) 2>&5
46221   ac_status=$?
46222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46223   (exit $ac_status); } &&
46224          { ac_try='test -s conftest.$ac_objext'
46225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46226   (eval $ac_try) 2>&5
46227   ac_status=$?
46228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46229   (exit $ac_status); }; }; then
46230   ac_header_compiler=yes
46231 else
46232   echo "$as_me: failed program was:" >&5
46233 sed 's/^/| /' conftest.$ac_ext >&5
46234
46235 ac_header_compiler=no
46236 fi
46237 rm -f conftest.$ac_objext conftest.$ac_ext
46238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46239 echo "${ECHO_T}$ac_header_compiler" >&6
46240
46241 # Is the header present?
46242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46244 cat >conftest.$ac_ext <<_ACEOF
46245 #line $LINENO "configure"
46246 /* confdefs.h.  */
46247 _ACEOF
46248 cat confdefs.h >>conftest.$ac_ext
46249 cat >>conftest.$ac_ext <<_ACEOF
46250 /* end confdefs.h.  */
46251 #include <$ac_header>
46252 _ACEOF
46253 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46254   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46255   ac_status=$?
46256   grep -v '^ *+' conftest.er1 >conftest.err
46257   rm -f conftest.er1
46258   cat conftest.err >&5
46259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46260   (exit $ac_status); } >/dev/null; then
46261   if test -s conftest.err; then
46262     ac_cpp_err=$ac_c_preproc_warn_flag
46263   else
46264     ac_cpp_err=
46265   fi
46266 else
46267   ac_cpp_err=yes
46268 fi
46269 if test -z "$ac_cpp_err"; then
46270   ac_header_preproc=yes
46271 else
46272   echo "$as_me: failed program was:" >&5
46273 sed 's/^/| /' conftest.$ac_ext >&5
46274
46275   ac_header_preproc=no
46276 fi
46277 rm -f conftest.err conftest.$ac_ext
46278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46279 echo "${ECHO_T}$ac_header_preproc" >&6
46280
46281 # So?  What about this header?
46282 case $ac_header_compiler:$ac_header_preproc in
46283   yes:no )
46284     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46288     (
46289       cat <<\_ASBOX
46290 ## ------------------------------------ ##
46291 ## Report this to bug-autoconf@gnu.org. ##
46292 ## ------------------------------------ ##
46293 _ASBOX
46294     ) |
46295       sed "s/^/$as_me: WARNING:     /" >&2
46296     ;;
46297   no:yes )
46298     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46300     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46304     (
46305       cat <<\_ASBOX
46306 ## ------------------------------------ ##
46307 ## Report this to bug-autoconf@gnu.org. ##
46308 ## ------------------------------------ ##
46309 _ASBOX
46310     ) |
46311       sed "s/^/$as_me: WARNING:     /" >&2
46312     ;;
46313 esac
46314 echo "$as_me:$LINENO: checking for $ac_header" >&5
46315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46317   echo $ECHO_N "(cached) $ECHO_C" >&6
46318 else
46319   eval "$as_ac_Header=$ac_header_preproc"
46320 fi
46321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46322 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46323
46324 fi
46325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46326   cat >>confdefs.h <<_ACEOF
46327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46328 _ACEOF
46329  ac_has_wctype_h=yes
46330 else
46331   ac_has_wctype_h=no
46332 fi
46333
46334 done
46335
46336
46337   # Only continue checking if the ISO C99 headers exist and support is on.
46338   if test x"$ac_has_wchar_h" = xyes &&
46339      test x"$ac_has_wctype_h" = xyes &&
46340      test x"$enable_c_mbchar" != xno; then
46341
46342     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
46343     # numeric_limits can instantiate type_traits<wchar_t>
46344     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
46345 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
46346     cat >conftest.$ac_ext <<_ACEOF
46347 #line $LINENO "configure"
46348 /* confdefs.h.  */
46349 _ACEOF
46350 cat confdefs.h >>conftest.$ac_ext
46351 cat >>conftest.$ac_ext <<_ACEOF
46352 /* end confdefs.h.  */
46353 #include <wchar.h>
46354 int
46355 main ()
46356 {
46357 int i = WCHAR_MIN; int j = WCHAR_MAX;
46358   ;
46359   return 0;
46360 }
46361 _ACEOF
46362 rm -f conftest.$ac_objext
46363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46364   (eval $ac_compile) 2>&5
46365   ac_status=$?
46366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46367   (exit $ac_status); } &&
46368          { ac_try='test -s conftest.$ac_objext'
46369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46370   (eval $ac_try) 2>&5
46371   ac_status=$?
46372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46373   (exit $ac_status); }; }; then
46374   has_wchar_minmax=yes
46375 else
46376   echo "$as_me: failed program was:" >&5
46377 sed 's/^/| /' conftest.$ac_ext >&5
46378
46379 has_wchar_minmax=no
46380 fi
46381 rm -f conftest.$ac_objext conftest.$ac_ext
46382     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
46383 echo "${ECHO_T}$has_wchar_minmax" >&6
46384
46385     # Test wchar.h for WEOF, which is what we use to determine whether
46386     # to specialize for char_traits<wchar_t> or not.
46387     echo "$as_me:$LINENO: checking for WEOF" >&5
46388 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
46389     cat >conftest.$ac_ext <<_ACEOF
46390 #line $LINENO "configure"
46391 /* confdefs.h.  */
46392 _ACEOF
46393 cat confdefs.h >>conftest.$ac_ext
46394 cat >>conftest.$ac_ext <<_ACEOF
46395 /* end confdefs.h.  */
46396
46397       #include <wchar.h>
46398       #include <stddef.h>
46399 int
46400 main ()
46401 {
46402 wint_t i = WEOF;
46403   ;
46404   return 0;
46405 }
46406 _ACEOF
46407 rm -f conftest.$ac_objext
46408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46409   (eval $ac_compile) 2>&5
46410   ac_status=$?
46411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46412   (exit $ac_status); } &&
46413          { ac_try='test -s conftest.$ac_objext'
46414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46415   (eval $ac_try) 2>&5
46416   ac_status=$?
46417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46418   (exit $ac_status); }; }; then
46419   has_weof=yes
46420 else
46421   echo "$as_me: failed program was:" >&5
46422 sed 's/^/| /' conftest.$ac_ext >&5
46423
46424 has_weof=no
46425 fi
46426 rm -f conftest.$ac_objext conftest.$ac_ext
46427     echo "$as_me:$LINENO: result: $has_weof" >&5
46428 echo "${ECHO_T}$has_weof" >&6
46429
46430     # Tests for wide character functions used in char_traits<wchar_t>.
46431     ac_wfuncs=yes
46432
46433
46434
46435
46436
46437
46438 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
46439 do
46440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46441 echo "$as_me:$LINENO: checking for $ac_func" >&5
46442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46443 if eval "test \"\${$as_ac_var+set}\" = set"; then
46444   echo $ECHO_N "(cached) $ECHO_C" >&6
46445 else
46446   cat >conftest.$ac_ext <<_ACEOF
46447 #line $LINENO "configure"
46448 /* confdefs.h.  */
46449 _ACEOF
46450 cat confdefs.h >>conftest.$ac_ext
46451 cat >>conftest.$ac_ext <<_ACEOF
46452 /* end confdefs.h.  */
46453 /* System header to define __stub macros and hopefully few prototypes,
46454     which can conflict with char $ac_func (); below.
46455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46456     <limits.h> exists even on freestanding compilers.  */
46457 #ifdef __STDC__
46458 # include <limits.h>
46459 #else
46460 # include <assert.h>
46461 #endif
46462 /* Override any gcc2 internal prototype to avoid an error.  */
46463 #ifdef __cplusplus
46464 extern "C"
46465 {
46466 #endif
46467 /* We use char because int might match the return type of a gcc2
46468    builtin and then its argument prototype would still apply.  */
46469 char $ac_func ();
46470 /* The GNU C library defines this for functions which it implements
46471     to always fail with ENOSYS.  Some functions are actually named
46472     something starting with __ and the normal name is an alias.  */
46473 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46474 choke me
46475 #else
46476 char (*f) () = $ac_func;
46477 #endif
46478 #ifdef __cplusplus
46479 }
46480 #endif
46481
46482 int
46483 main ()
46484 {
46485 return f != $ac_func;
46486   ;
46487   return 0;
46488 }
46489 _ACEOF
46490 rm -f conftest.$ac_objext conftest$ac_exeext
46491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46492   (eval $ac_link) 2>&5
46493   ac_status=$?
46494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46495   (exit $ac_status); } &&
46496          { ac_try='test -s conftest$ac_exeext'
46497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46498   (eval $ac_try) 2>&5
46499   ac_status=$?
46500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46501   (exit $ac_status); }; }; then
46502   eval "$as_ac_var=yes"
46503 else
46504   echo "$as_me: failed program was:" >&5
46505 sed 's/^/| /' conftest.$ac_ext >&5
46506
46507 eval "$as_ac_var=no"
46508 fi
46509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46510 fi
46511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46512 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46513 if test `eval echo '${'$as_ac_var'}'` = yes; then
46514   cat >>confdefs.h <<_ACEOF
46515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46516 _ACEOF
46517
46518 else
46519   ac_wfuncs=no
46520 fi
46521 done
46522
46523
46524     # Checks for names injected into std:: by the c_std headers.
46525
46526
46527
46528
46529
46530
46531
46532
46533
46534
46535
46536
46537
46538
46539
46540
46541
46542
46543
46544
46545
46546
46547
46548
46549
46550
46551
46552
46553
46554
46555
46556
46557
46558
46559
46560
46561
46562
46563
46564
46565
46566
46567
46568
46569
46570
46571
46572
46573
46574
46575 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
46576     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
46577     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
46578     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
46579     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
46580     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
46581 do
46582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46583 echo "$as_me:$LINENO: checking for $ac_func" >&5
46584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46585 if eval "test \"\${$as_ac_var+set}\" = set"; then
46586   echo $ECHO_N "(cached) $ECHO_C" >&6
46587 else
46588   cat >conftest.$ac_ext <<_ACEOF
46589 #line $LINENO "configure"
46590 /* confdefs.h.  */
46591 _ACEOF
46592 cat confdefs.h >>conftest.$ac_ext
46593 cat >>conftest.$ac_ext <<_ACEOF
46594 /* end confdefs.h.  */
46595 /* System header to define __stub macros and hopefully few prototypes,
46596     which can conflict with char $ac_func (); below.
46597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46598     <limits.h> exists even on freestanding compilers.  */
46599 #ifdef __STDC__
46600 # include <limits.h>
46601 #else
46602 # include <assert.h>
46603 #endif
46604 /* Override any gcc2 internal prototype to avoid an error.  */
46605 #ifdef __cplusplus
46606 extern "C"
46607 {
46608 #endif
46609 /* We use char because int might match the return type of a gcc2
46610    builtin and then its argument prototype would still apply.  */
46611 char $ac_func ();
46612 /* The GNU C library defines this for functions which it implements
46613     to always fail with ENOSYS.  Some functions are actually named
46614     something starting with __ and the normal name is an alias.  */
46615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46616 choke me
46617 #else
46618 char (*f) () = $ac_func;
46619 #endif
46620 #ifdef __cplusplus
46621 }
46622 #endif
46623
46624 int
46625 main ()
46626 {
46627 return f != $ac_func;
46628   ;
46629   return 0;
46630 }
46631 _ACEOF
46632 rm -f conftest.$ac_objext conftest$ac_exeext
46633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46634   (eval $ac_link) 2>&5
46635   ac_status=$?
46636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46637   (exit $ac_status); } &&
46638          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
46644   eval "$as_ac_var=yes"
46645 else
46646   echo "$as_me: failed program was:" >&5
46647 sed 's/^/| /' conftest.$ac_ext >&5
46648
46649 eval "$as_ac_var=no"
46650 fi
46651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
46652 fi
46653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46655 if test `eval echo '${'$as_ac_var'}'` = yes; then
46656   cat >>confdefs.h <<_ACEOF
46657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46658 _ACEOF
46659
46660 else
46661   ac_wfuncs=no
46662 fi
46663 done
46664
46665
46666     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
46667 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
46668     if test x"$has_weof" = xyes &&
46669        test x"$has_wchar_minmax" = xyes &&
46670        test x"$ac_wfuncs" = xyes;
46671     then
46672       ac_isoC99_wchar_t=yes
46673     else
46674       ac_isoC99_wchar_t=no
46675     fi
46676     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
46677 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
46678
46679     # Use iconv for wchar_t to char conversions. As such, check for
46680     # X/Open Portability Guide, version 2 features (XPG2).
46681     if test "${ac_cv_header_iconv_h+set}" = set; then
46682   echo "$as_me:$LINENO: checking for iconv.h" >&5
46683 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
46684 if test "${ac_cv_header_iconv_h+set}" = set; then
46685   echo $ECHO_N "(cached) $ECHO_C" >&6
46686 fi
46687 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
46688 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
46689 else
46690   # Is the header compilable?
46691 echo "$as_me:$LINENO: checking iconv.h usability" >&5
46692 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
46693 cat >conftest.$ac_ext <<_ACEOF
46694 #line $LINENO "configure"
46695 /* confdefs.h.  */
46696 _ACEOF
46697 cat confdefs.h >>conftest.$ac_ext
46698 cat >>conftest.$ac_ext <<_ACEOF
46699 /* end confdefs.h.  */
46700 $ac_includes_default
46701 #include <iconv.h>
46702 _ACEOF
46703 rm -f conftest.$ac_objext
46704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46705   (eval $ac_compile) 2>&5
46706   ac_status=$?
46707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46708   (exit $ac_status); } &&
46709          { ac_try='test -s conftest.$ac_objext'
46710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46711   (eval $ac_try) 2>&5
46712   ac_status=$?
46713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46714   (exit $ac_status); }; }; then
46715   ac_header_compiler=yes
46716 else
46717   echo "$as_me: failed program was:" >&5
46718 sed 's/^/| /' conftest.$ac_ext >&5
46719
46720 ac_header_compiler=no
46721 fi
46722 rm -f conftest.$ac_objext conftest.$ac_ext
46723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46724 echo "${ECHO_T}$ac_header_compiler" >&6
46725
46726 # Is the header present?
46727 echo "$as_me:$LINENO: checking iconv.h presence" >&5
46728 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
46729 cat >conftest.$ac_ext <<_ACEOF
46730 #line $LINENO "configure"
46731 /* confdefs.h.  */
46732 _ACEOF
46733 cat confdefs.h >>conftest.$ac_ext
46734 cat >>conftest.$ac_ext <<_ACEOF
46735 /* end confdefs.h.  */
46736 #include <iconv.h>
46737 _ACEOF
46738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46739   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46740   ac_status=$?
46741   grep -v '^ *+' conftest.er1 >conftest.err
46742   rm -f conftest.er1
46743   cat conftest.err >&5
46744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46745   (exit $ac_status); } >/dev/null; then
46746   if test -s conftest.err; then
46747     ac_cpp_err=$ac_c_preproc_warn_flag
46748   else
46749     ac_cpp_err=
46750   fi
46751 else
46752   ac_cpp_err=yes
46753 fi
46754 if test -z "$ac_cpp_err"; then
46755   ac_header_preproc=yes
46756 else
46757   echo "$as_me: failed program was:" >&5
46758 sed 's/^/| /' conftest.$ac_ext >&5
46759
46760   ac_header_preproc=no
46761 fi
46762 rm -f conftest.err conftest.$ac_ext
46763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46764 echo "${ECHO_T}$ac_header_preproc" >&6
46765
46766 # So?  What about this header?
46767 case $ac_header_compiler:$ac_header_preproc in
46768   yes:no )
46769     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
46770 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46771     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
46772 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
46773     (
46774       cat <<\_ASBOX
46775 ## ------------------------------------ ##
46776 ## Report this to bug-autoconf@gnu.org. ##
46777 ## ------------------------------------ ##
46778 _ASBOX
46779     ) |
46780       sed "s/^/$as_me: WARNING:     /" >&2
46781     ;;
46782   no:yes )
46783     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
46784 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
46785     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
46786 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
46787     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
46788 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
46789     (
46790       cat <<\_ASBOX
46791 ## ------------------------------------ ##
46792 ## Report this to bug-autoconf@gnu.org. ##
46793 ## ------------------------------------ ##
46794 _ASBOX
46795     ) |
46796       sed "s/^/$as_me: WARNING:     /" >&2
46797     ;;
46798 esac
46799 echo "$as_me:$LINENO: checking for iconv.h" >&5
46800 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
46801 if test "${ac_cv_header_iconv_h+set}" = set; then
46802   echo $ECHO_N "(cached) $ECHO_C" >&6
46803 else
46804   ac_cv_header_iconv_h=$ac_header_preproc
46805 fi
46806 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
46807 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
46808
46809 fi
46810 if test $ac_cv_header_iconv_h = yes; then
46811   ac_has_iconv_h=yes
46812 else
46813   ac_has_iconv_h=no
46814 fi
46815
46816
46817     if test "${ac_cv_header_langinfo_h+set}" = set; then
46818   echo "$as_me:$LINENO: checking for langinfo.h" >&5
46819 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
46820 if test "${ac_cv_header_langinfo_h+set}" = set; then
46821   echo $ECHO_N "(cached) $ECHO_C" >&6
46822 fi
46823 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
46824 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
46825 else
46826   # Is the header compilable?
46827 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
46828 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
46829 cat >conftest.$ac_ext <<_ACEOF
46830 #line $LINENO "configure"
46831 /* confdefs.h.  */
46832 _ACEOF
46833 cat confdefs.h >>conftest.$ac_ext
46834 cat >>conftest.$ac_ext <<_ACEOF
46835 /* end confdefs.h.  */
46836 $ac_includes_default
46837 #include <langinfo.h>
46838 _ACEOF
46839 rm -f conftest.$ac_objext
46840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46841   (eval $ac_compile) 2>&5
46842   ac_status=$?
46843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46844   (exit $ac_status); } &&
46845          { ac_try='test -s conftest.$ac_objext'
46846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46847   (eval $ac_try) 2>&5
46848   ac_status=$?
46849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46850   (exit $ac_status); }; }; then
46851   ac_header_compiler=yes
46852 else
46853   echo "$as_me: failed program was:" >&5
46854 sed 's/^/| /' conftest.$ac_ext >&5
46855
46856 ac_header_compiler=no
46857 fi
46858 rm -f conftest.$ac_objext conftest.$ac_ext
46859 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46860 echo "${ECHO_T}$ac_header_compiler" >&6
46861
46862 # Is the header present?
46863 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
46864 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
46865 cat >conftest.$ac_ext <<_ACEOF
46866 #line $LINENO "configure"
46867 /* confdefs.h.  */
46868 _ACEOF
46869 cat confdefs.h >>conftest.$ac_ext
46870 cat >>conftest.$ac_ext <<_ACEOF
46871 /* end confdefs.h.  */
46872 #include <langinfo.h>
46873 _ACEOF
46874 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46875   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46876   ac_status=$?
46877   grep -v '^ *+' conftest.er1 >conftest.err
46878   rm -f conftest.er1
46879   cat conftest.err >&5
46880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46881   (exit $ac_status); } >/dev/null; then
46882   if test -s conftest.err; then
46883     ac_cpp_err=$ac_c_preproc_warn_flag
46884   else
46885     ac_cpp_err=
46886   fi
46887 else
46888   ac_cpp_err=yes
46889 fi
46890 if test -z "$ac_cpp_err"; then
46891   ac_header_preproc=yes
46892 else
46893   echo "$as_me: failed program was:" >&5
46894 sed 's/^/| /' conftest.$ac_ext >&5
46895
46896   ac_header_preproc=no
46897 fi
46898 rm -f conftest.err conftest.$ac_ext
46899 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46900 echo "${ECHO_T}$ac_header_preproc" >&6
46901
46902 # So?  What about this header?
46903 case $ac_header_compiler:$ac_header_preproc in
46904   yes:no )
46905     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
46906 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
46907     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
46908 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
46909     (
46910       cat <<\_ASBOX
46911 ## ------------------------------------ ##
46912 ## Report this to bug-autoconf@gnu.org. ##
46913 ## ------------------------------------ ##
46914 _ASBOX
46915     ) |
46916       sed "s/^/$as_me: WARNING:     /" >&2
46917     ;;
46918   no:yes )
46919     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
46920 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
46921     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
46922 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
46923     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
46924 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
46925     (
46926       cat <<\_ASBOX
46927 ## ------------------------------------ ##
46928 ## Report this to bug-autoconf@gnu.org. ##
46929 ## ------------------------------------ ##
46930 _ASBOX
46931     ) |
46932       sed "s/^/$as_me: WARNING:     /" >&2
46933     ;;
46934 esac
46935 echo "$as_me:$LINENO: checking for langinfo.h" >&5
46936 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
46937 if test "${ac_cv_header_langinfo_h+set}" = set; then
46938   echo $ECHO_N "(cached) $ECHO_C" >&6
46939 else
46940   ac_cv_header_langinfo_h=$ac_header_preproc
46941 fi
46942 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
46943 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
46944
46945 fi
46946 if test $ac_cv_header_langinfo_h = yes; then
46947   ac_has_langinfo_h=yes
46948 else
46949   ac_has_langinfo_h=no
46950 fi
46951
46952
46953
46954     # Check for existence of libiconv.a providing XPG2 wchar_t support.
46955     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
46956 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
46957 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
46958   echo $ECHO_N "(cached) $ECHO_C" >&6
46959 else
46960   ac_check_lib_save_LIBS=$LIBS
46961 LIBS="-liconv  $LIBS"
46962 cat >conftest.$ac_ext <<_ACEOF
46963 #line $LINENO "configure"
46964 /* confdefs.h.  */
46965 _ACEOF
46966 cat confdefs.h >>conftest.$ac_ext
46967 cat >>conftest.$ac_ext <<_ACEOF
46968 /* end confdefs.h.  */
46969
46970 /* Override any gcc2 internal prototype to avoid an error.  */
46971 #ifdef __cplusplus
46972 extern "C"
46973 #endif
46974 /* We use char because int might match the return type of a gcc2
46975    builtin and then its argument prototype would still apply.  */
46976 char iconv ();
46977 int
46978 main ()
46979 {
46980 iconv ();
46981   ;
46982   return 0;
46983 }
46984 _ACEOF
46985 rm -f conftest.$ac_objext conftest$ac_exeext
46986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46987   (eval $ac_link) 2>&5
46988   ac_status=$?
46989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46990   (exit $ac_status); } &&
46991          { ac_try='test -s conftest$ac_exeext'
46992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46993   (eval $ac_try) 2>&5
46994   ac_status=$?
46995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46996   (exit $ac_status); }; }; then
46997   ac_cv_lib_iconv_iconv=yes
46998 else
46999   echo "$as_me: failed program was:" >&5
47000 sed 's/^/| /' conftest.$ac_ext >&5
47001
47002 ac_cv_lib_iconv_iconv=no
47003 fi
47004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47005 LIBS=$ac_check_lib_save_LIBS
47006 fi
47007 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
47008 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
47009 if test $ac_cv_lib_iconv_iconv = yes; then
47010   libiconv="-liconv"
47011 fi
47012
47013     ac_save_LIBS="$LIBS"
47014     LIBS="$LIBS $libiconv"
47015
47016
47017
47018
47019
47020 for ac_func in iconv_open iconv_close iconv nl_langinfo
47021 do
47022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47023 echo "$as_me:$LINENO: checking for $ac_func" >&5
47024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47025 if eval "test \"\${$as_ac_var+set}\" = set"; then
47026   echo $ECHO_N "(cached) $ECHO_C" >&6
47027 else
47028   cat >conftest.$ac_ext <<_ACEOF
47029 #line $LINENO "configure"
47030 /* confdefs.h.  */
47031 _ACEOF
47032 cat confdefs.h >>conftest.$ac_ext
47033 cat >>conftest.$ac_ext <<_ACEOF
47034 /* end confdefs.h.  */
47035 /* System header to define __stub macros and hopefully few prototypes,
47036     which can conflict with char $ac_func (); below.
47037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47038     <limits.h> exists even on freestanding compilers.  */
47039 #ifdef __STDC__
47040 # include <limits.h>
47041 #else
47042 # include <assert.h>
47043 #endif
47044 /* Override any gcc2 internal prototype to avoid an error.  */
47045 #ifdef __cplusplus
47046 extern "C"
47047 {
47048 #endif
47049 /* We use char because int might match the return type of a gcc2
47050    builtin and then its argument prototype would still apply.  */
47051 char $ac_func ();
47052 /* The GNU C library defines this for functions which it implements
47053     to always fail with ENOSYS.  Some functions are actually named
47054     something starting with __ and the normal name is an alias.  */
47055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47056 choke me
47057 #else
47058 char (*f) () = $ac_func;
47059 #endif
47060 #ifdef __cplusplus
47061 }
47062 #endif
47063
47064 int
47065 main ()
47066 {
47067 return f != $ac_func;
47068   ;
47069   return 0;
47070 }
47071 _ACEOF
47072 rm -f conftest.$ac_objext conftest$ac_exeext
47073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47074   (eval $ac_link) 2>&5
47075   ac_status=$?
47076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47077   (exit $ac_status); } &&
47078          { ac_try='test -s conftest$ac_exeext'
47079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47080   (eval $ac_try) 2>&5
47081   ac_status=$?
47082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47083   (exit $ac_status); }; }; then
47084   eval "$as_ac_var=yes"
47085 else
47086   echo "$as_me: failed program was:" >&5
47087 sed 's/^/| /' conftest.$ac_ext >&5
47088
47089 eval "$as_ac_var=no"
47090 fi
47091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47092 fi
47093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47095 if test `eval echo '${'$as_ac_var'}'` = yes; then
47096   cat >>confdefs.h <<_ACEOF
47097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47098 _ACEOF
47099  ac_XPG2funcs=yes
47100 else
47101   ac_XPG2funcs=no
47102 fi
47103 done
47104
47105
47106     LIBS="$ac_save_LIBS"
47107
47108     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
47109 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
47110     if test x"$ac_has_iconv_h" = xyes &&
47111        test x"$ac_has_langinfo_h" = xyes &&
47112        test x"$ac_XPG2funcs" = xyes;
47113     then
47114       ac_XPG2_wchar_t=yes
47115     else
47116       ac_XPG2_wchar_t=no
47117     fi
47118     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
47119 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
47120
47121     # At the moment, only enable wchar_t specializations if all the
47122     # above support is present.
47123     if test x"$ac_isoC99_wchar_t" = xyes &&
47124        test x"$ac_XPG2_wchar_t" = xyes;
47125     then
47126       cat >>confdefs.h <<\_ACEOF
47127 #define _GLIBCXX_USE_WCHAR_T 1
47128 _ACEOF
47129
47130       enable_wchar_t=yes
47131     fi
47132   fi
47133   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
47134 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
47135   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
47136 echo "${ECHO_T}$enable_wchar_t" >&6
47137
47138     cat >>confdefs.h <<\_ACEOF
47139 #define HAVE_LC_MESSAGES 1
47140 _ACEOF
47141
47142     cat >>confdefs.h <<\_ACEOF
47143 #define HAVE_DRAND48 1
47144 _ACEOF
47145
47146     cat >>confdefs.h <<\_ACEOF
47147 #define HAVE_GETPAGESIZE 1
47148 _ACEOF
47149
47150     cat >>confdefs.h <<\_ACEOF
47151 #define HAVE_SETENV 1
47152 _ACEOF
47153
47154     cat >>confdefs.h <<\_ACEOF
47155 #define HAVE_SIGSETJMP 1
47156 _ACEOF
47157
47158     cat >>confdefs.h <<\_ACEOF
47159 #define HAVE_COPYSIGN 1
47160 _ACEOF
47161
47162     cat >>confdefs.h <<\_ACEOF
47163 #define HAVE_COPYSIGNF 1
47164 _ACEOF
47165
47166     cat >>confdefs.h <<\_ACEOF
47167 #define HAVE_FINITEF 1
47168 _ACEOF
47169
47170     cat >>confdefs.h <<\_ACEOF
47171 #define HAVE_FINITE 1
47172 _ACEOF
47173
47174     cat >>confdefs.h <<\_ACEOF
47175 #define HAVE_FREXPF 1
47176 _ACEOF
47177
47178     cat >>confdefs.h <<\_ACEOF
47179 #define HAVE_HYPOT 1
47180 _ACEOF
47181
47182     cat >>confdefs.h <<\_ACEOF
47183 #define HAVE_HYPOTF 1
47184 _ACEOF
47185
47186     cat >>confdefs.h <<\_ACEOF
47187 #define HAVE_ISINF 1
47188 _ACEOF
47189
47190     cat >>confdefs.h <<\_ACEOF
47191 #define HAVE_ISNAN 1
47192 _ACEOF
47193
47194     cat >>confdefs.h <<\_ACEOF
47195 #define HAVE_ISNANF 1
47196 _ACEOF
47197
47198
47199     cat >>confdefs.h <<\_ACEOF
47200 #define HAVE_MMAP 1
47201 _ACEOF
47202
47203     cat >>confdefs.h <<\_ACEOF
47204 #define HAVE_ACOSF 1
47205 _ACEOF
47206
47207     cat >>confdefs.h <<\_ACEOF
47208 #define HAVE_ASINF 1
47209 _ACEOF
47210
47211     cat >>confdefs.h <<\_ACEOF
47212 #define HAVE_ATAN2F 1
47213 _ACEOF
47214
47215     cat >>confdefs.h <<\_ACEOF
47216 #define HAVE_ATANF 1
47217 _ACEOF
47218
47219     cat >>confdefs.h <<\_ACEOF
47220 #define HAVE_CEILF 1
47221 _ACEOF
47222
47223     cat >>confdefs.h <<\_ACEOF
47224 #define HAVE_COPYSIGN 1
47225 _ACEOF
47226
47227     cat >>confdefs.h <<\_ACEOF
47228 #define HAVE_COPYSIGNF 1
47229 _ACEOF
47230
47231     cat >>confdefs.h <<\_ACEOF
47232 #define HAVE_COSF 1
47233 _ACEOF
47234
47235     cat >>confdefs.h <<\_ACEOF
47236 #define HAVE_COSHF 1
47237 _ACEOF
47238
47239     cat >>confdefs.h <<\_ACEOF
47240 #define HAVE_EXPF 1
47241 _ACEOF
47242
47243     cat >>confdefs.h <<\_ACEOF
47244 #define HAVE_FABSF 1
47245 _ACEOF
47246
47247     cat >>confdefs.h <<\_ACEOF
47248 #define HAVE_FLOORF 1
47249 _ACEOF
47250
47251     cat >>confdefs.h <<\_ACEOF
47252 #define HAVE_FMODF 1
47253 _ACEOF
47254
47255     cat >>confdefs.h <<\_ACEOF
47256 #define HAVE_FREXPF 1
47257 _ACEOF
47258
47259     cat >>confdefs.h <<\_ACEOF
47260 #define HAVE_LDEXPF 1
47261 _ACEOF
47262
47263     cat >>confdefs.h <<\_ACEOF
47264 #define HAVE_LOG10F 1
47265 _ACEOF
47266
47267     cat >>confdefs.h <<\_ACEOF
47268 #define HAVE_LOGF 1
47269 _ACEOF
47270
47271     cat >>confdefs.h <<\_ACEOF
47272 #define HAVE_MODFF 1
47273 _ACEOF
47274
47275     cat >>confdefs.h <<\_ACEOF
47276 #define HAVE_POWF 1
47277 _ACEOF
47278
47279     cat >>confdefs.h <<\_ACEOF
47280 #define HAVE_SINF 1
47281 _ACEOF
47282
47283     cat >>confdefs.h <<\_ACEOF
47284 #define HAVE_SINHF 1
47285 _ACEOF
47286
47287     cat >>confdefs.h <<\_ACEOF
47288 #define HAVE_SQRTF 1
47289 _ACEOF
47290
47291     cat >>confdefs.h <<\_ACEOF
47292 #define HAVE_TANF 1
47293 _ACEOF
47294
47295     cat >>confdefs.h <<\_ACEOF
47296 #define HAVE_TANHF 1
47297 _ACEOF
47298
47299     if test x"long_double_math_on_this_cpu" = x"yes"; then
47300       cat >>confdefs.h <<\_ACEOF
47301 #define HAVE_FINITEL 1
47302 _ACEOF
47303
47304       cat >>confdefs.h <<\_ACEOF
47305 #define HAVE_ISINFL 1
47306 _ACEOF
47307
47308       cat >>confdefs.h <<\_ACEOF
47309 #define HAVE_ISNANL 1
47310 _ACEOF
47311
47312     fi
47313     ;;
47314   *-hpux*)
47315     #os_include_dir="os/hpux"
47316
47317
47318
47319
47320
47321
47322
47323
47324
47325
47326
47327
47328 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
47329       machine/endian.h machine/param.h sys/machine.h sys/types.h \
47330       fp.h locale.h float.h inttypes.h
47331 do
47332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47334   echo "$as_me:$LINENO: checking for $ac_header" >&5
47335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47337   echo $ECHO_N "(cached) $ECHO_C" >&6
47338 fi
47339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47341 else
47342   # Is the header compilable?
47343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
47344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
47345 cat >conftest.$ac_ext <<_ACEOF
47346 #line $LINENO "configure"
47347 /* confdefs.h.  */
47348 _ACEOF
47349 cat confdefs.h >>conftest.$ac_ext
47350 cat >>conftest.$ac_ext <<_ACEOF
47351 /* end confdefs.h.  */
47352 $ac_includes_default
47353 #include <$ac_header>
47354 _ACEOF
47355 rm -f conftest.$ac_objext
47356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47357   (eval $ac_compile) 2>&5
47358   ac_status=$?
47359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47360   (exit $ac_status); } &&
47361          { ac_try='test -s conftest.$ac_objext'
47362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47363   (eval $ac_try) 2>&5
47364   ac_status=$?
47365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47366   (exit $ac_status); }; }; then
47367   ac_header_compiler=yes
47368 else
47369   echo "$as_me: failed program was:" >&5
47370 sed 's/^/| /' conftest.$ac_ext >&5
47371
47372 ac_header_compiler=no
47373 fi
47374 rm -f conftest.$ac_objext conftest.$ac_ext
47375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47376 echo "${ECHO_T}$ac_header_compiler" >&6
47377
47378 # Is the header present?
47379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
47380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
47381 cat >conftest.$ac_ext <<_ACEOF
47382 #line $LINENO "configure"
47383 /* confdefs.h.  */
47384 _ACEOF
47385 cat confdefs.h >>conftest.$ac_ext
47386 cat >>conftest.$ac_ext <<_ACEOF
47387 /* end confdefs.h.  */
47388 #include <$ac_header>
47389 _ACEOF
47390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
47391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
47392   ac_status=$?
47393   grep -v '^ *+' conftest.er1 >conftest.err
47394   rm -f conftest.er1
47395   cat conftest.err >&5
47396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47397   (exit $ac_status); } >/dev/null; then
47398   if test -s conftest.err; then
47399     ac_cpp_err=$ac_c_preproc_warn_flag
47400   else
47401     ac_cpp_err=
47402   fi
47403 else
47404   ac_cpp_err=yes
47405 fi
47406 if test -z "$ac_cpp_err"; then
47407   ac_header_preproc=yes
47408 else
47409   echo "$as_me: failed program was:" >&5
47410 sed 's/^/| /' conftest.$ac_ext >&5
47411
47412   ac_header_preproc=no
47413 fi
47414 rm -f conftest.err conftest.$ac_ext
47415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47416 echo "${ECHO_T}$ac_header_preproc" >&6
47417
47418 # So?  What about this header?
47419 case $ac_header_compiler:$ac_header_preproc in
47420   yes:no )
47421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47425     (
47426       cat <<\_ASBOX
47427 ## ------------------------------------ ##
47428 ## Report this to bug-autoconf@gnu.org. ##
47429 ## ------------------------------------ ##
47430 _ASBOX
47431     ) |
47432       sed "s/^/$as_me: WARNING:     /" >&2
47433     ;;
47434   no:yes )
47435     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47437     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
47438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
47439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47441     (
47442       cat <<\_ASBOX
47443 ## ------------------------------------ ##
47444 ## Report this to bug-autoconf@gnu.org. ##
47445 ## ------------------------------------ ##
47446 _ASBOX
47447     ) |
47448       sed "s/^/$as_me: WARNING:     /" >&2
47449     ;;
47450 esac
47451 echo "$as_me:$LINENO: checking for $ac_header" >&5
47452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
47453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
47454   echo $ECHO_N "(cached) $ECHO_C" >&6
47455 else
47456   eval "$as_ac_Header=$ac_header_preproc"
47457 fi
47458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
47459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
47460
47461 fi
47462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47463   cat >>confdefs.h <<_ACEOF
47464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47465 _ACEOF
47466
47467 fi
47468
47469 done
47470
47471     SECTION_FLAGS='-ffunction-sections -fdata-sections'
47472
47473
47474   # If we're not using GNU ld, then there's no point in even trying these
47475   # tests.  Check for that first.  We should have already tested for gld
47476   # by now (in libtool), but require it now just to be safe...
47477   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
47478   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
47479
47480
47481
47482   # The name set by libtool depends on the version of libtool.  Shame on us
47483   # for depending on an impl detail, but c'est la vie.  Older versions used
47484   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
47485   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
47486   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
47487   # set (hence we're using an older libtool), then set it.
47488   if test x${with_gnu_ld+set} != xset; then
47489     if test x${ac_cv_prog_gnu_ld+set} != xset; then
47490       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
47491       with_gnu_ld=no
47492     else
47493       with_gnu_ld=$ac_cv_prog_gnu_ld
47494     fi
47495   fi
47496
47497   # Start by getting the version number.  I think the libtool test already
47498   # does some of this, but throws away the result.
47499
47500   ldver=`$LD --version 2>/dev/null | head -1 | \
47501          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
47502
47503   glibcxx_gnu_ld_version=`echo $ldver | \
47504          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
47505
47506   # Set --gc-sections.
47507   if test "$with_gnu_ld" = "notbroken"; then
47508     # GNU ld it is!  Joy and bunny rabbits!
47509
47510     # All these tests are for C++; save the language and the compiler flags.
47511     # Need to do this so that g++ won't try to link in libstdc++
47512     ac_test_CFLAGS="${CFLAGS+set}"
47513     ac_save_CFLAGS="$CFLAGS"
47514     CFLAGS='-x c++  -Wl,--gc-sections'
47515
47516     # Check for -Wl,--gc-sections
47517     # XXX This test is broken at the moment, as symbols required for linking
47518     # are now in libsupc++ (not built yet).  In addition, this test has
47519     # cored on solaris in the past.  In addition, --gc-sections doesn't
47520     # really work at the moment (keeps on discarding used sections, first
47521     # .eh_frame and now some of the glibc sections for iconv).
47522     # Bzzzzt.  Thanks for playing, maybe next time.
47523     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
47524 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
47525     if test "$cross_compiling" = yes; then
47526   ac_sectionLDflags=yes
47527 else
47528   cat >conftest.$ac_ext <<_ACEOF
47529 #line $LINENO "configure"
47530 /* confdefs.h.  */
47531 _ACEOF
47532 cat confdefs.h >>conftest.$ac_ext
47533 cat >>conftest.$ac_ext <<_ACEOF
47534 /* end confdefs.h.  */
47535
47536      int main(void)
47537      {
47538        try { throw 1; }
47539        catch (...) { };
47540        return 0;
47541      }
47542
47543 _ACEOF
47544 rm -f conftest$ac_exeext
47545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47546   (eval $ac_link) 2>&5
47547   ac_status=$?
47548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47549   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47551   (eval $ac_try) 2>&5
47552   ac_status=$?
47553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47554   (exit $ac_status); }; }; then
47555   ac_sectionLDflags=yes
47556 else
47557   echo "$as_me: program exited with status $ac_status" >&5
47558 echo "$as_me: failed program was:" >&5
47559 sed 's/^/| /' conftest.$ac_ext >&5
47560
47561 ( exit $ac_status )
47562 ac_sectionLDflags=no
47563 fi
47564 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47565 fi
47566     if test "$ac_test_CFLAGS" = set; then
47567       CFLAGS="$ac_save_CFLAGS"
47568     else
47569       # this is the suspicious part
47570       CFLAGS=''
47571     fi
47572     if test "$ac_sectionLDflags" = "yes"; then
47573       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
47574     fi
47575     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
47576 echo "${ECHO_T}$ac_sectionLDflags" >&6
47577   fi
47578
47579   # Set linker optimization flags.
47580   if test x"$with_gnu_ld" = x"yes"; then
47581     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
47582   fi
47583
47584
47585
47586
47587
47588
47589 echo "$as_me:$LINENO: checking for main in -lm" >&5
47590 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
47591 if test "${ac_cv_lib_m_main+set}" = set; then
47592   echo $ECHO_N "(cached) $ECHO_C" >&6
47593 else
47594   ac_check_lib_save_LIBS=$LIBS
47595 LIBS="-lm  $LIBS"
47596 cat >conftest.$ac_ext <<_ACEOF
47597 #line $LINENO "configure"
47598 /* confdefs.h.  */
47599 _ACEOF
47600 cat confdefs.h >>conftest.$ac_ext
47601 cat >>conftest.$ac_ext <<_ACEOF
47602 /* end confdefs.h.  */
47603
47604
47605 int
47606 main ()
47607 {
47608 main ();
47609   ;
47610   return 0;
47611 }
47612 _ACEOF
47613 rm -f conftest.$ac_objext conftest$ac_exeext
47614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47615   (eval $ac_link) 2>&5
47616   ac_status=$?
47617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47618   (exit $ac_status); } &&
47619          { ac_try='test -s conftest$ac_exeext'
47620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47621   (eval $ac_try) 2>&5
47622   ac_status=$?
47623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47624   (exit $ac_status); }; }; then
47625   ac_cv_lib_m_main=yes
47626 else
47627   echo "$as_me: failed program was:" >&5
47628 sed 's/^/| /' conftest.$ac_ext >&5
47629
47630 ac_cv_lib_m_main=no
47631 fi
47632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47633 LIBS=$ac_check_lib_save_LIBS
47634 fi
47635 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
47636 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
47637 if test $ac_cv_lib_m_main = yes; then
47638   cat >>confdefs.h <<_ACEOF
47639 #define HAVE_LIBM 1
47640 _ACEOF
47641
47642   LIBS="-lm $LIBS"
47643
47644 fi
47645
47646
47647
47648 for ac_func in nan copysignf
47649 do
47650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47651 echo "$as_me:$LINENO: checking for $ac_func" >&5
47652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47653 if eval "test \"\${$as_ac_var+set}\" = set"; then
47654   echo $ECHO_N "(cached) $ECHO_C" >&6
47655 else
47656   cat >conftest.$ac_ext <<_ACEOF
47657 #line $LINENO "configure"
47658 /* confdefs.h.  */
47659 _ACEOF
47660 cat confdefs.h >>conftest.$ac_ext
47661 cat >>conftest.$ac_ext <<_ACEOF
47662 /* end confdefs.h.  */
47663 /* System header to define __stub macros and hopefully few prototypes,
47664     which can conflict with char $ac_func (); below.
47665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47666     <limits.h> exists even on freestanding compilers.  */
47667 #ifdef __STDC__
47668 # include <limits.h>
47669 #else
47670 # include <assert.h>
47671 #endif
47672 /* Override any gcc2 internal prototype to avoid an error.  */
47673 #ifdef __cplusplus
47674 extern "C"
47675 {
47676 #endif
47677 /* We use char because int might match the return type of a gcc2
47678    builtin and then its argument prototype would still apply.  */
47679 char $ac_func ();
47680 /* The GNU C library defines this for functions which it implements
47681     to always fail with ENOSYS.  Some functions are actually named
47682     something starting with __ and the normal name is an alias.  */
47683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47684 choke me
47685 #else
47686 char (*f) () = $ac_func;
47687 #endif
47688 #ifdef __cplusplus
47689 }
47690 #endif
47691
47692 int
47693 main ()
47694 {
47695 return f != $ac_func;
47696   ;
47697   return 0;
47698 }
47699 _ACEOF
47700 rm -f conftest.$ac_objext conftest$ac_exeext
47701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47702   (eval $ac_link) 2>&5
47703   ac_status=$?
47704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47705   (exit $ac_status); } &&
47706          { ac_try='test -s conftest$ac_exeext'
47707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47708   (eval $ac_try) 2>&5
47709   ac_status=$?
47710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47711   (exit $ac_status); }; }; then
47712   eval "$as_ac_var=yes"
47713 else
47714   echo "$as_me: failed program was:" >&5
47715 sed 's/^/| /' conftest.$ac_ext >&5
47716
47717 eval "$as_ac_var=no"
47718 fi
47719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47720 fi
47721 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47723 if test `eval echo '${'$as_ac_var'}'` = yes; then
47724   cat >>confdefs.h <<_ACEOF
47725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47726 _ACEOF
47727
47728 else
47729   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
47730 fi
47731 done
47732
47733
47734
47735 for ac_func in __signbit
47736 do
47737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47738 echo "$as_me:$LINENO: checking for $ac_func" >&5
47739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47740 if eval "test \"\${$as_ac_var+set}\" = set"; then
47741   echo $ECHO_N "(cached) $ECHO_C" >&6
47742 else
47743   cat >conftest.$ac_ext <<_ACEOF
47744 #line $LINENO "configure"
47745 /* confdefs.h.  */
47746 _ACEOF
47747 cat confdefs.h >>conftest.$ac_ext
47748 cat >>conftest.$ac_ext <<_ACEOF
47749 /* end confdefs.h.  */
47750 /* System header to define __stub macros and hopefully few prototypes,
47751     which can conflict with char $ac_func (); below.
47752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47753     <limits.h> exists even on freestanding compilers.  */
47754 #ifdef __STDC__
47755 # include <limits.h>
47756 #else
47757 # include <assert.h>
47758 #endif
47759 /* Override any gcc2 internal prototype to avoid an error.  */
47760 #ifdef __cplusplus
47761 extern "C"
47762 {
47763 #endif
47764 /* We use char because int might match the return type of a gcc2
47765    builtin and then its argument prototype would still apply.  */
47766 char $ac_func ();
47767 /* The GNU C library defines this for functions which it implements
47768     to always fail with ENOSYS.  Some functions are actually named
47769     something starting with __ and the normal name is an alias.  */
47770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47771 choke me
47772 #else
47773 char (*f) () = $ac_func;
47774 #endif
47775 #ifdef __cplusplus
47776 }
47777 #endif
47778
47779 int
47780 main ()
47781 {
47782 return f != $ac_func;
47783   ;
47784   return 0;
47785 }
47786 _ACEOF
47787 rm -f conftest.$ac_objext conftest$ac_exeext
47788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47789   (eval $ac_link) 2>&5
47790   ac_status=$?
47791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47792   (exit $ac_status); } &&
47793          { ac_try='test -s conftest$ac_exeext'
47794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47795   (eval $ac_try) 2>&5
47796   ac_status=$?
47797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47798   (exit $ac_status); }; }; then
47799   eval "$as_ac_var=yes"
47800 else
47801   echo "$as_me: failed program was:" >&5
47802 sed 's/^/| /' conftest.$ac_ext >&5
47803
47804 eval "$as_ac_var=no"
47805 fi
47806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47807 fi
47808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47810 if test `eval echo '${'$as_ac_var'}'` = yes; then
47811   cat >>confdefs.h <<_ACEOF
47812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47813 _ACEOF
47814
47815 else
47816   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
47817 fi
47818 done
47819
47820
47821 for ac_func in __signbitf
47822 do
47823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47824 echo "$as_me:$LINENO: checking for $ac_func" >&5
47825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47826 if eval "test \"\${$as_ac_var+set}\" = set"; then
47827   echo $ECHO_N "(cached) $ECHO_C" >&6
47828 else
47829   cat >conftest.$ac_ext <<_ACEOF
47830 #line $LINENO "configure"
47831 /* confdefs.h.  */
47832 _ACEOF
47833 cat confdefs.h >>conftest.$ac_ext
47834 cat >>conftest.$ac_ext <<_ACEOF
47835 /* end confdefs.h.  */
47836 /* System header to define __stub macros and hopefully few prototypes,
47837     which can conflict with char $ac_func (); below.
47838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47839     <limits.h> exists even on freestanding compilers.  */
47840 #ifdef __STDC__
47841 # include <limits.h>
47842 #else
47843 # include <assert.h>
47844 #endif
47845 /* Override any gcc2 internal prototype to avoid an error.  */
47846 #ifdef __cplusplus
47847 extern "C"
47848 {
47849 #endif
47850 /* We use char because int might match the return type of a gcc2
47851    builtin and then its argument prototype would still apply.  */
47852 char $ac_func ();
47853 /* The GNU C library defines this for functions which it implements
47854     to always fail with ENOSYS.  Some functions are actually named
47855     something starting with __ and the normal name is an alias.  */
47856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47857 choke me
47858 #else
47859 char (*f) () = $ac_func;
47860 #endif
47861 #ifdef __cplusplus
47862 }
47863 #endif
47864
47865 int
47866 main ()
47867 {
47868 return f != $ac_func;
47869   ;
47870   return 0;
47871 }
47872 _ACEOF
47873 rm -f conftest.$ac_objext conftest$ac_exeext
47874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47875   (eval $ac_link) 2>&5
47876   ac_status=$?
47877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47878   (exit $ac_status); } &&
47879          { ac_try='test -s conftest$ac_exeext'
47880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47881   (eval $ac_try) 2>&5
47882   ac_status=$?
47883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47884   (exit $ac_status); }; }; then
47885   eval "$as_ac_var=yes"
47886 else
47887   echo "$as_me: failed program was:" >&5
47888 sed 's/^/| /' conftest.$ac_ext >&5
47889
47890 eval "$as_ac_var=no"
47891 fi
47892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47893 fi
47894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47896 if test `eval echo '${'$as_ac_var'}'` = yes; then
47897   cat >>confdefs.h <<_ACEOF
47898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47899 _ACEOF
47900
47901 else
47902   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
47903 fi
47904 done
47905
47906
47907           if test x$ac_cv_func_copysignl = x"yes"; then
47908
47909 for ac_func in __signbitl
47910 do
47911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47912 echo "$as_me:$LINENO: checking for $ac_func" >&5
47913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47914 if eval "test \"\${$as_ac_var+set}\" = set"; then
47915   echo $ECHO_N "(cached) $ECHO_C" >&6
47916 else
47917   cat >conftest.$ac_ext <<_ACEOF
47918 #line $LINENO "configure"
47919 /* confdefs.h.  */
47920 _ACEOF
47921 cat confdefs.h >>conftest.$ac_ext
47922 cat >>conftest.$ac_ext <<_ACEOF
47923 /* end confdefs.h.  */
47924 /* System header to define __stub macros and hopefully few prototypes,
47925     which can conflict with char $ac_func (); below.
47926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47927     <limits.h> exists even on freestanding compilers.  */
47928 #ifdef __STDC__
47929 # include <limits.h>
47930 #else
47931 # include <assert.h>
47932 #endif
47933 /* Override any gcc2 internal prototype to avoid an error.  */
47934 #ifdef __cplusplus
47935 extern "C"
47936 {
47937 #endif
47938 /* We use char because int might match the return type of a gcc2
47939    builtin and then its argument prototype would still apply.  */
47940 char $ac_func ();
47941 /* The GNU C library defines this for functions which it implements
47942     to always fail with ENOSYS.  Some functions are actually named
47943     something starting with __ and the normal name is an alias.  */
47944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47945 choke me
47946 #else
47947 char (*f) () = $ac_func;
47948 #endif
47949 #ifdef __cplusplus
47950 }
47951 #endif
47952
47953 int
47954 main ()
47955 {
47956 return f != $ac_func;
47957   ;
47958   return 0;
47959 }
47960 _ACEOF
47961 rm -f conftest.$ac_objext conftest$ac_exeext
47962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47963   (eval $ac_link) 2>&5
47964   ac_status=$?
47965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47966   (exit $ac_status); } &&
47967          { ac_try='test -s conftest$ac_exeext'
47968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47969   (eval $ac_try) 2>&5
47970   ac_status=$?
47971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47972   (exit $ac_status); }; }; then
47973   eval "$as_ac_var=yes"
47974 else
47975   echo "$as_me: failed program was:" >&5
47976 sed 's/^/| /' conftest.$ac_ext >&5
47977
47978 eval "$as_ac_var=no"
47979 fi
47980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
47981 fi
47982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47984 if test `eval echo '${'$as_ac_var'}'` = yes; then
47985   cat >>confdefs.h <<_ACEOF
47986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47987 _ACEOF
47988
47989 else
47990   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
47991 fi
47992 done
47993
47994   fi
47995
47996   # XXX Review this.  Nothing uses it.
47997   if test -n "$LIBMATHOBJS"; then
47998     need_libmath=yes
47999   fi
48000
48001
48002
48003   # Test wchar.h for mbstate_t, which is needed for char_traits and
48004   # others even if wchar_t support is not on.
48005   echo "$as_me:$LINENO: checking for mbstate_t" >&5
48006 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
48007   cat >conftest.$ac_ext <<_ACEOF
48008 #line $LINENO "configure"
48009 /* confdefs.h.  */
48010 _ACEOF
48011 cat confdefs.h >>conftest.$ac_ext
48012 cat >>conftest.$ac_ext <<_ACEOF
48013 /* end confdefs.h.  */
48014 #include <wchar.h>
48015 int
48016 main ()
48017 {
48018 mbstate_t teststate;
48019   ;
48020   return 0;
48021 }
48022 _ACEOF
48023 rm -f conftest.$ac_objext
48024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48025   (eval $ac_compile) 2>&5
48026   ac_status=$?
48027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48028   (exit $ac_status); } &&
48029          { ac_try='test -s conftest.$ac_objext'
48030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48031   (eval $ac_try) 2>&5
48032   ac_status=$?
48033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48034   (exit $ac_status); }; }; then
48035   have_mbstate_t=yes
48036 else
48037   echo "$as_me: failed program was:" >&5
48038 sed 's/^/| /' conftest.$ac_ext >&5
48039
48040 have_mbstate_t=no
48041 fi
48042 rm -f conftest.$ac_objext conftest.$ac_ext
48043   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
48044 echo "${ECHO_T}$have_mbstate_t" >&6
48045   if test x"$have_mbstate_t" = xyes; then
48046     cat >>confdefs.h <<\_ACEOF
48047 #define HAVE_MBSTATE_T 1
48048 _ACEOF
48049
48050   fi
48051
48052   # Sanity check for existence of ISO C99 headers for extended encoding.
48053
48054 for ac_header in wchar.h
48055 do
48056 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48058   echo "$as_me:$LINENO: checking for $ac_header" >&5
48059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48061   echo $ECHO_N "(cached) $ECHO_C" >&6
48062 fi
48063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48065 else
48066   # Is the header compilable?
48067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
48068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
48069 cat >conftest.$ac_ext <<_ACEOF
48070 #line $LINENO "configure"
48071 /* confdefs.h.  */
48072 _ACEOF
48073 cat confdefs.h >>conftest.$ac_ext
48074 cat >>conftest.$ac_ext <<_ACEOF
48075 /* end confdefs.h.  */
48076 $ac_includes_default
48077 #include <$ac_header>
48078 _ACEOF
48079 rm -f conftest.$ac_objext
48080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48081   (eval $ac_compile) 2>&5
48082   ac_status=$?
48083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48084   (exit $ac_status); } &&
48085          { ac_try='test -s conftest.$ac_objext'
48086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48087   (eval $ac_try) 2>&5
48088   ac_status=$?
48089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48090   (exit $ac_status); }; }; then
48091   ac_header_compiler=yes
48092 else
48093   echo "$as_me: failed program was:" >&5
48094 sed 's/^/| /' conftest.$ac_ext >&5
48095
48096 ac_header_compiler=no
48097 fi
48098 rm -f conftest.$ac_objext conftest.$ac_ext
48099 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48100 echo "${ECHO_T}$ac_header_compiler" >&6
48101
48102 # Is the header present?
48103 echo "$as_me:$LINENO: checking $ac_header presence" >&5
48104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
48105 cat >conftest.$ac_ext <<_ACEOF
48106 #line $LINENO "configure"
48107 /* confdefs.h.  */
48108 _ACEOF
48109 cat confdefs.h >>conftest.$ac_ext
48110 cat >>conftest.$ac_ext <<_ACEOF
48111 /* end confdefs.h.  */
48112 #include <$ac_header>
48113 _ACEOF
48114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48116   ac_status=$?
48117   grep -v '^ *+' conftest.er1 >conftest.err
48118   rm -f conftest.er1
48119   cat conftest.err >&5
48120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48121   (exit $ac_status); } >/dev/null; then
48122   if test -s conftest.err; then
48123     ac_cpp_err=$ac_c_preproc_warn_flag
48124   else
48125     ac_cpp_err=
48126   fi
48127 else
48128   ac_cpp_err=yes
48129 fi
48130 if test -z "$ac_cpp_err"; then
48131   ac_header_preproc=yes
48132 else
48133   echo "$as_me: failed program was:" >&5
48134 sed 's/^/| /' conftest.$ac_ext >&5
48135
48136   ac_header_preproc=no
48137 fi
48138 rm -f conftest.err conftest.$ac_ext
48139 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48140 echo "${ECHO_T}$ac_header_preproc" >&6
48141
48142 # So?  What about this header?
48143 case $ac_header_compiler:$ac_header_preproc in
48144   yes:no )
48145     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48147     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48149     (
48150       cat <<\_ASBOX
48151 ## ------------------------------------ ##
48152 ## Report this to bug-autoconf@gnu.org. ##
48153 ## ------------------------------------ ##
48154 _ASBOX
48155     ) |
48156       sed "s/^/$as_me: WARNING:     /" >&2
48157     ;;
48158   no:yes )
48159     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48160 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48161     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48162 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48163     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48165     (
48166       cat <<\_ASBOX
48167 ## ------------------------------------ ##
48168 ## Report this to bug-autoconf@gnu.org. ##
48169 ## ------------------------------------ ##
48170 _ASBOX
48171     ) |
48172       sed "s/^/$as_me: WARNING:     /" >&2
48173     ;;
48174 esac
48175 echo "$as_me:$LINENO: checking for $ac_header" >&5
48176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48178   echo $ECHO_N "(cached) $ECHO_C" >&6
48179 else
48180   eval "$as_ac_Header=$ac_header_preproc"
48181 fi
48182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48184
48185 fi
48186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48187   cat >>confdefs.h <<_ACEOF
48188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48189 _ACEOF
48190  ac_has_wchar_h=yes
48191 else
48192   ac_has_wchar_h=no
48193 fi
48194
48195 done
48196
48197
48198 for ac_header in wctype.h
48199 do
48200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48202   echo "$as_me:$LINENO: checking for $ac_header" >&5
48203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48205   echo $ECHO_N "(cached) $ECHO_C" >&6
48206 fi
48207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48209 else
48210   # Is the header compilable?
48211 echo "$as_me:$LINENO: checking $ac_header usability" >&5
48212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
48213 cat >conftest.$ac_ext <<_ACEOF
48214 #line $LINENO "configure"
48215 /* confdefs.h.  */
48216 _ACEOF
48217 cat confdefs.h >>conftest.$ac_ext
48218 cat >>conftest.$ac_ext <<_ACEOF
48219 /* end confdefs.h.  */
48220 $ac_includes_default
48221 #include <$ac_header>
48222 _ACEOF
48223 rm -f conftest.$ac_objext
48224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48225   (eval $ac_compile) 2>&5
48226   ac_status=$?
48227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48228   (exit $ac_status); } &&
48229          { ac_try='test -s conftest.$ac_objext'
48230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48231   (eval $ac_try) 2>&5
48232   ac_status=$?
48233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48234   (exit $ac_status); }; }; then
48235   ac_header_compiler=yes
48236 else
48237   echo "$as_me: failed program was:" >&5
48238 sed 's/^/| /' conftest.$ac_ext >&5
48239
48240 ac_header_compiler=no
48241 fi
48242 rm -f conftest.$ac_objext conftest.$ac_ext
48243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48244 echo "${ECHO_T}$ac_header_compiler" >&6
48245
48246 # Is the header present?
48247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
48248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
48249 cat >conftest.$ac_ext <<_ACEOF
48250 #line $LINENO "configure"
48251 /* confdefs.h.  */
48252 _ACEOF
48253 cat confdefs.h >>conftest.$ac_ext
48254 cat >>conftest.$ac_ext <<_ACEOF
48255 /* end confdefs.h.  */
48256 #include <$ac_header>
48257 _ACEOF
48258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48259   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48260   ac_status=$?
48261   grep -v '^ *+' conftest.er1 >conftest.err
48262   rm -f conftest.er1
48263   cat conftest.err >&5
48264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48265   (exit $ac_status); } >/dev/null; then
48266   if test -s conftest.err; then
48267     ac_cpp_err=$ac_c_preproc_warn_flag
48268   else
48269     ac_cpp_err=
48270   fi
48271 else
48272   ac_cpp_err=yes
48273 fi
48274 if test -z "$ac_cpp_err"; then
48275   ac_header_preproc=yes
48276 else
48277   echo "$as_me: failed program was:" >&5
48278 sed 's/^/| /' conftest.$ac_ext >&5
48279
48280   ac_header_preproc=no
48281 fi
48282 rm -f conftest.err conftest.$ac_ext
48283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48284 echo "${ECHO_T}$ac_header_preproc" >&6
48285
48286 # So?  What about this header?
48287 case $ac_header_compiler:$ac_header_preproc in
48288   yes:no )
48289     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48293     (
48294       cat <<\_ASBOX
48295 ## ------------------------------------ ##
48296 ## Report this to bug-autoconf@gnu.org. ##
48297 ## ------------------------------------ ##
48298 _ASBOX
48299     ) |
48300       sed "s/^/$as_me: WARNING:     /" >&2
48301     ;;
48302   no:yes )
48303     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48305     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
48306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
48307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48309     (
48310       cat <<\_ASBOX
48311 ## ------------------------------------ ##
48312 ## Report this to bug-autoconf@gnu.org. ##
48313 ## ------------------------------------ ##
48314 _ASBOX
48315     ) |
48316       sed "s/^/$as_me: WARNING:     /" >&2
48317     ;;
48318 esac
48319 echo "$as_me:$LINENO: checking for $ac_header" >&5
48320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
48321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
48322   echo $ECHO_N "(cached) $ECHO_C" >&6
48323 else
48324   eval "$as_ac_Header=$ac_header_preproc"
48325 fi
48326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
48327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
48328
48329 fi
48330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48331   cat >>confdefs.h <<_ACEOF
48332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48333 _ACEOF
48334  ac_has_wctype_h=yes
48335 else
48336   ac_has_wctype_h=no
48337 fi
48338
48339 done
48340
48341
48342   # Only continue checking if the ISO C99 headers exist and support is on.
48343   if test x"$ac_has_wchar_h" = xyes &&
48344      test x"$ac_has_wctype_h" = xyes &&
48345      test x"$enable_c_mbchar" != xno; then
48346
48347     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
48348     # numeric_limits can instantiate type_traits<wchar_t>
48349     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
48350 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
48351     cat >conftest.$ac_ext <<_ACEOF
48352 #line $LINENO "configure"
48353 /* confdefs.h.  */
48354 _ACEOF
48355 cat confdefs.h >>conftest.$ac_ext
48356 cat >>conftest.$ac_ext <<_ACEOF
48357 /* end confdefs.h.  */
48358 #include <wchar.h>
48359 int
48360 main ()
48361 {
48362 int i = WCHAR_MIN; int j = WCHAR_MAX;
48363   ;
48364   return 0;
48365 }
48366 _ACEOF
48367 rm -f conftest.$ac_objext
48368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48369   (eval $ac_compile) 2>&5
48370   ac_status=$?
48371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48372   (exit $ac_status); } &&
48373          { ac_try='test -s conftest.$ac_objext'
48374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48375   (eval $ac_try) 2>&5
48376   ac_status=$?
48377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48378   (exit $ac_status); }; }; then
48379   has_wchar_minmax=yes
48380 else
48381   echo "$as_me: failed program was:" >&5
48382 sed 's/^/| /' conftest.$ac_ext >&5
48383
48384 has_wchar_minmax=no
48385 fi
48386 rm -f conftest.$ac_objext conftest.$ac_ext
48387     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
48388 echo "${ECHO_T}$has_wchar_minmax" >&6
48389
48390     # Test wchar.h for WEOF, which is what we use to determine whether
48391     # to specialize for char_traits<wchar_t> or not.
48392     echo "$as_me:$LINENO: checking for WEOF" >&5
48393 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
48394     cat >conftest.$ac_ext <<_ACEOF
48395 #line $LINENO "configure"
48396 /* confdefs.h.  */
48397 _ACEOF
48398 cat confdefs.h >>conftest.$ac_ext
48399 cat >>conftest.$ac_ext <<_ACEOF
48400 /* end confdefs.h.  */
48401
48402       #include <wchar.h>
48403       #include <stddef.h>
48404 int
48405 main ()
48406 {
48407 wint_t i = WEOF;
48408   ;
48409   return 0;
48410 }
48411 _ACEOF
48412 rm -f conftest.$ac_objext
48413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48414   (eval $ac_compile) 2>&5
48415   ac_status=$?
48416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48417   (exit $ac_status); } &&
48418          { ac_try='test -s conftest.$ac_objext'
48419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48420   (eval $ac_try) 2>&5
48421   ac_status=$?
48422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48423   (exit $ac_status); }; }; then
48424   has_weof=yes
48425 else
48426   echo "$as_me: failed program was:" >&5
48427 sed 's/^/| /' conftest.$ac_ext >&5
48428
48429 has_weof=no
48430 fi
48431 rm -f conftest.$ac_objext conftest.$ac_ext
48432     echo "$as_me:$LINENO: result: $has_weof" >&5
48433 echo "${ECHO_T}$has_weof" >&6
48434
48435     # Tests for wide character functions used in char_traits<wchar_t>.
48436     ac_wfuncs=yes
48437
48438
48439
48440
48441
48442
48443 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
48444 do
48445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48446 echo "$as_me:$LINENO: checking for $ac_func" >&5
48447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48448 if eval "test \"\${$as_ac_var+set}\" = set"; then
48449   echo $ECHO_N "(cached) $ECHO_C" >&6
48450 else
48451   cat >conftest.$ac_ext <<_ACEOF
48452 #line $LINENO "configure"
48453 /* confdefs.h.  */
48454 _ACEOF
48455 cat confdefs.h >>conftest.$ac_ext
48456 cat >>conftest.$ac_ext <<_ACEOF
48457 /* end confdefs.h.  */
48458 /* System header to define __stub macros and hopefully few prototypes,
48459     which can conflict with char $ac_func (); below.
48460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48461     <limits.h> exists even on freestanding compilers.  */
48462 #ifdef __STDC__
48463 # include <limits.h>
48464 #else
48465 # include <assert.h>
48466 #endif
48467 /* Override any gcc2 internal prototype to avoid an error.  */
48468 #ifdef __cplusplus
48469 extern "C"
48470 {
48471 #endif
48472 /* We use char because int might match the return type of a gcc2
48473    builtin and then its argument prototype would still apply.  */
48474 char $ac_func ();
48475 /* The GNU C library defines this for functions which it implements
48476     to always fail with ENOSYS.  Some functions are actually named
48477     something starting with __ and the normal name is an alias.  */
48478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48479 choke me
48480 #else
48481 char (*f) () = $ac_func;
48482 #endif
48483 #ifdef __cplusplus
48484 }
48485 #endif
48486
48487 int
48488 main ()
48489 {
48490 return f != $ac_func;
48491   ;
48492   return 0;
48493 }
48494 _ACEOF
48495 rm -f conftest.$ac_objext conftest$ac_exeext
48496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48497   (eval $ac_link) 2>&5
48498   ac_status=$?
48499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48500   (exit $ac_status); } &&
48501          { ac_try='test -s conftest$ac_exeext'
48502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48503   (eval $ac_try) 2>&5
48504   ac_status=$?
48505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48506   (exit $ac_status); }; }; then
48507   eval "$as_ac_var=yes"
48508 else
48509   echo "$as_me: failed program was:" >&5
48510 sed 's/^/| /' conftest.$ac_ext >&5
48511
48512 eval "$as_ac_var=no"
48513 fi
48514 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48515 fi
48516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48518 if test `eval echo '${'$as_ac_var'}'` = yes; then
48519   cat >>confdefs.h <<_ACEOF
48520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48521 _ACEOF
48522
48523 else
48524   ac_wfuncs=no
48525 fi
48526 done
48527
48528
48529     # Checks for names injected into std:: by the c_std headers.
48530
48531
48532
48533
48534
48535
48536
48537
48538
48539
48540
48541
48542
48543
48544
48545
48546
48547
48548
48549
48550
48551
48552
48553
48554
48555
48556
48557
48558
48559
48560
48561
48562
48563
48564
48565
48566
48567
48568
48569
48570
48571
48572
48573
48574
48575
48576
48577
48578
48579
48580 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
48581     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
48582     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
48583     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
48584     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
48585     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
48586 do
48587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48588 echo "$as_me:$LINENO: checking for $ac_func" >&5
48589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48590 if eval "test \"\${$as_ac_var+set}\" = set"; then
48591   echo $ECHO_N "(cached) $ECHO_C" >&6
48592 else
48593   cat >conftest.$ac_ext <<_ACEOF
48594 #line $LINENO "configure"
48595 /* confdefs.h.  */
48596 _ACEOF
48597 cat confdefs.h >>conftest.$ac_ext
48598 cat >>conftest.$ac_ext <<_ACEOF
48599 /* end confdefs.h.  */
48600 /* System header to define __stub macros and hopefully few prototypes,
48601     which can conflict with char $ac_func (); below.
48602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48603     <limits.h> exists even on freestanding compilers.  */
48604 #ifdef __STDC__
48605 # include <limits.h>
48606 #else
48607 # include <assert.h>
48608 #endif
48609 /* Override any gcc2 internal prototype to avoid an error.  */
48610 #ifdef __cplusplus
48611 extern "C"
48612 {
48613 #endif
48614 /* We use char because int might match the return type of a gcc2
48615    builtin and then its argument prototype would still apply.  */
48616 char $ac_func ();
48617 /* The GNU C library defines this for functions which it implements
48618     to always fail with ENOSYS.  Some functions are actually named
48619     something starting with __ and the normal name is an alias.  */
48620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48621 choke me
48622 #else
48623 char (*f) () = $ac_func;
48624 #endif
48625 #ifdef __cplusplus
48626 }
48627 #endif
48628
48629 int
48630 main ()
48631 {
48632 return f != $ac_func;
48633   ;
48634   return 0;
48635 }
48636 _ACEOF
48637 rm -f conftest.$ac_objext conftest$ac_exeext
48638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48639   (eval $ac_link) 2>&5
48640   ac_status=$?
48641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48642   (exit $ac_status); } &&
48643          { ac_try='test -s conftest$ac_exeext'
48644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48645   (eval $ac_try) 2>&5
48646   ac_status=$?
48647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48648   (exit $ac_status); }; }; then
48649   eval "$as_ac_var=yes"
48650 else
48651   echo "$as_me: failed program was:" >&5
48652 sed 's/^/| /' conftest.$ac_ext >&5
48653
48654 eval "$as_ac_var=no"
48655 fi
48656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
48657 fi
48658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48660 if test `eval echo '${'$as_ac_var'}'` = yes; then
48661   cat >>confdefs.h <<_ACEOF
48662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48663 _ACEOF
48664
48665 else
48666   ac_wfuncs=no
48667 fi
48668 done
48669
48670
48671     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
48672 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
48673     if test x"$has_weof" = xyes &&
48674        test x"$has_wchar_minmax" = xyes &&
48675        test x"$ac_wfuncs" = xyes;
48676     then
48677       ac_isoC99_wchar_t=yes
48678     else
48679       ac_isoC99_wchar_t=no
48680     fi
48681     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
48682 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
48683
48684     # Use iconv for wchar_t to char conversions. As such, check for
48685     # X/Open Portability Guide, version 2 features (XPG2).
48686     if test "${ac_cv_header_iconv_h+set}" = set; then
48687   echo "$as_me:$LINENO: checking for iconv.h" >&5
48688 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
48689 if test "${ac_cv_header_iconv_h+set}" = set; then
48690   echo $ECHO_N "(cached) $ECHO_C" >&6
48691 fi
48692 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
48693 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
48694 else
48695   # Is the header compilable?
48696 echo "$as_me:$LINENO: checking iconv.h usability" >&5
48697 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
48698 cat >conftest.$ac_ext <<_ACEOF
48699 #line $LINENO "configure"
48700 /* confdefs.h.  */
48701 _ACEOF
48702 cat confdefs.h >>conftest.$ac_ext
48703 cat >>conftest.$ac_ext <<_ACEOF
48704 /* end confdefs.h.  */
48705 $ac_includes_default
48706 #include <iconv.h>
48707 _ACEOF
48708 rm -f conftest.$ac_objext
48709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48710   (eval $ac_compile) 2>&5
48711   ac_status=$?
48712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48713   (exit $ac_status); } &&
48714          { ac_try='test -s conftest.$ac_objext'
48715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48716   (eval $ac_try) 2>&5
48717   ac_status=$?
48718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48719   (exit $ac_status); }; }; then
48720   ac_header_compiler=yes
48721 else
48722   echo "$as_me: failed program was:" >&5
48723 sed 's/^/| /' conftest.$ac_ext >&5
48724
48725 ac_header_compiler=no
48726 fi
48727 rm -f conftest.$ac_objext conftest.$ac_ext
48728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48729 echo "${ECHO_T}$ac_header_compiler" >&6
48730
48731 # Is the header present?
48732 echo "$as_me:$LINENO: checking iconv.h presence" >&5
48733 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
48734 cat >conftest.$ac_ext <<_ACEOF
48735 #line $LINENO "configure"
48736 /* confdefs.h.  */
48737 _ACEOF
48738 cat confdefs.h >>conftest.$ac_ext
48739 cat >>conftest.$ac_ext <<_ACEOF
48740 /* end confdefs.h.  */
48741 #include <iconv.h>
48742 _ACEOF
48743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48744   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48745   ac_status=$?
48746   grep -v '^ *+' conftest.er1 >conftest.err
48747   rm -f conftest.er1
48748   cat conftest.err >&5
48749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48750   (exit $ac_status); } >/dev/null; then
48751   if test -s conftest.err; then
48752     ac_cpp_err=$ac_c_preproc_warn_flag
48753   else
48754     ac_cpp_err=
48755   fi
48756 else
48757   ac_cpp_err=yes
48758 fi
48759 if test -z "$ac_cpp_err"; then
48760   ac_header_preproc=yes
48761 else
48762   echo "$as_me: failed program was:" >&5
48763 sed 's/^/| /' conftest.$ac_ext >&5
48764
48765   ac_header_preproc=no
48766 fi
48767 rm -f conftest.err conftest.$ac_ext
48768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48769 echo "${ECHO_T}$ac_header_preproc" >&6
48770
48771 # So?  What about this header?
48772 case $ac_header_compiler:$ac_header_preproc in
48773   yes:no )
48774     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
48775 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48776     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
48777 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
48778     (
48779       cat <<\_ASBOX
48780 ## ------------------------------------ ##
48781 ## Report this to bug-autoconf@gnu.org. ##
48782 ## ------------------------------------ ##
48783 _ASBOX
48784     ) |
48785       sed "s/^/$as_me: WARNING:     /" >&2
48786     ;;
48787   no:yes )
48788     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
48789 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
48790     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
48791 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
48792     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
48793 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
48794     (
48795       cat <<\_ASBOX
48796 ## ------------------------------------ ##
48797 ## Report this to bug-autoconf@gnu.org. ##
48798 ## ------------------------------------ ##
48799 _ASBOX
48800     ) |
48801       sed "s/^/$as_me: WARNING:     /" >&2
48802     ;;
48803 esac
48804 echo "$as_me:$LINENO: checking for iconv.h" >&5
48805 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
48806 if test "${ac_cv_header_iconv_h+set}" = set; then
48807   echo $ECHO_N "(cached) $ECHO_C" >&6
48808 else
48809   ac_cv_header_iconv_h=$ac_header_preproc
48810 fi
48811 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
48812 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
48813
48814 fi
48815 if test $ac_cv_header_iconv_h = yes; then
48816   ac_has_iconv_h=yes
48817 else
48818   ac_has_iconv_h=no
48819 fi
48820
48821
48822     if test "${ac_cv_header_langinfo_h+set}" = set; then
48823   echo "$as_me:$LINENO: checking for langinfo.h" >&5
48824 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
48825 if test "${ac_cv_header_langinfo_h+set}" = set; then
48826   echo $ECHO_N "(cached) $ECHO_C" >&6
48827 fi
48828 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
48829 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
48830 else
48831   # Is the header compilable?
48832 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
48833 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
48834 cat >conftest.$ac_ext <<_ACEOF
48835 #line $LINENO "configure"
48836 /* confdefs.h.  */
48837 _ACEOF
48838 cat confdefs.h >>conftest.$ac_ext
48839 cat >>conftest.$ac_ext <<_ACEOF
48840 /* end confdefs.h.  */
48841 $ac_includes_default
48842 #include <langinfo.h>
48843 _ACEOF
48844 rm -f conftest.$ac_objext
48845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48846   (eval $ac_compile) 2>&5
48847   ac_status=$?
48848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48849   (exit $ac_status); } &&
48850          { ac_try='test -s conftest.$ac_objext'
48851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48852   (eval $ac_try) 2>&5
48853   ac_status=$?
48854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48855   (exit $ac_status); }; }; then
48856   ac_header_compiler=yes
48857 else
48858   echo "$as_me: failed program was:" >&5
48859 sed 's/^/| /' conftest.$ac_ext >&5
48860
48861 ac_header_compiler=no
48862 fi
48863 rm -f conftest.$ac_objext conftest.$ac_ext
48864 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48865 echo "${ECHO_T}$ac_header_compiler" >&6
48866
48867 # Is the header present?
48868 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
48869 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
48870 cat >conftest.$ac_ext <<_ACEOF
48871 #line $LINENO "configure"
48872 /* confdefs.h.  */
48873 _ACEOF
48874 cat confdefs.h >>conftest.$ac_ext
48875 cat >>conftest.$ac_ext <<_ACEOF
48876 /* end confdefs.h.  */
48877 #include <langinfo.h>
48878 _ACEOF
48879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
48880   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
48881   ac_status=$?
48882   grep -v '^ *+' conftest.er1 >conftest.err
48883   rm -f conftest.er1
48884   cat conftest.err >&5
48885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48886   (exit $ac_status); } >/dev/null; then
48887   if test -s conftest.err; then
48888     ac_cpp_err=$ac_c_preproc_warn_flag
48889   else
48890     ac_cpp_err=
48891   fi
48892 else
48893   ac_cpp_err=yes
48894 fi
48895 if test -z "$ac_cpp_err"; then
48896   ac_header_preproc=yes
48897 else
48898   echo "$as_me: failed program was:" >&5
48899 sed 's/^/| /' conftest.$ac_ext >&5
48900
48901   ac_header_preproc=no
48902 fi
48903 rm -f conftest.err conftest.$ac_ext
48904 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48905 echo "${ECHO_T}$ac_header_preproc" >&6
48906
48907 # So?  What about this header?
48908 case $ac_header_compiler:$ac_header_preproc in
48909   yes:no )
48910     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
48911 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
48912     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
48913 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
48914     (
48915       cat <<\_ASBOX
48916 ## ------------------------------------ ##
48917 ## Report this to bug-autoconf@gnu.org. ##
48918 ## ------------------------------------ ##
48919 _ASBOX
48920     ) |
48921       sed "s/^/$as_me: WARNING:     /" >&2
48922     ;;
48923   no:yes )
48924     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
48925 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
48926     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
48927 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
48928     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
48929 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
48930     (
48931       cat <<\_ASBOX
48932 ## ------------------------------------ ##
48933 ## Report this to bug-autoconf@gnu.org. ##
48934 ## ------------------------------------ ##
48935 _ASBOX
48936     ) |
48937       sed "s/^/$as_me: WARNING:     /" >&2
48938     ;;
48939 esac
48940 echo "$as_me:$LINENO: checking for langinfo.h" >&5
48941 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
48942 if test "${ac_cv_header_langinfo_h+set}" = set; then
48943   echo $ECHO_N "(cached) $ECHO_C" >&6
48944 else
48945   ac_cv_header_langinfo_h=$ac_header_preproc
48946 fi
48947 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
48948 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
48949
48950 fi
48951 if test $ac_cv_header_langinfo_h = yes; then
48952   ac_has_langinfo_h=yes
48953 else
48954   ac_has_langinfo_h=no
48955 fi
48956
48957
48958
48959     # Check for existence of libiconv.a providing XPG2 wchar_t support.
48960     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
48961 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
48962 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
48963   echo $ECHO_N "(cached) $ECHO_C" >&6
48964 else
48965   ac_check_lib_save_LIBS=$LIBS
48966 LIBS="-liconv  $LIBS"
48967 cat >conftest.$ac_ext <<_ACEOF
48968 #line $LINENO "configure"
48969 /* confdefs.h.  */
48970 _ACEOF
48971 cat confdefs.h >>conftest.$ac_ext
48972 cat >>conftest.$ac_ext <<_ACEOF
48973 /* end confdefs.h.  */
48974
48975 /* Override any gcc2 internal prototype to avoid an error.  */
48976 #ifdef __cplusplus
48977 extern "C"
48978 #endif
48979 /* We use char because int might match the return type of a gcc2
48980    builtin and then its argument prototype would still apply.  */
48981 char iconv ();
48982 int
48983 main ()
48984 {
48985 iconv ();
48986   ;
48987   return 0;
48988 }
48989 _ACEOF
48990 rm -f conftest.$ac_objext conftest$ac_exeext
48991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48992   (eval $ac_link) 2>&5
48993   ac_status=$?
48994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48995   (exit $ac_status); } &&
48996          { ac_try='test -s conftest$ac_exeext'
48997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48998   (eval $ac_try) 2>&5
48999   ac_status=$?
49000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49001   (exit $ac_status); }; }; then
49002   ac_cv_lib_iconv_iconv=yes
49003 else
49004   echo "$as_me: failed program was:" >&5
49005 sed 's/^/| /' conftest.$ac_ext >&5
49006
49007 ac_cv_lib_iconv_iconv=no
49008 fi
49009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49010 LIBS=$ac_check_lib_save_LIBS
49011 fi
49012 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
49013 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
49014 if test $ac_cv_lib_iconv_iconv = yes; then
49015   libiconv="-liconv"
49016 fi
49017
49018     ac_save_LIBS="$LIBS"
49019     LIBS="$LIBS $libiconv"
49020
49021
49022
49023
49024
49025 for ac_func in iconv_open iconv_close iconv nl_langinfo
49026 do
49027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49028 echo "$as_me:$LINENO: checking for $ac_func" >&5
49029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49030 if eval "test \"\${$as_ac_var+set}\" = set"; then
49031   echo $ECHO_N "(cached) $ECHO_C" >&6
49032 else
49033   cat >conftest.$ac_ext <<_ACEOF
49034 #line $LINENO "configure"
49035 /* confdefs.h.  */
49036 _ACEOF
49037 cat confdefs.h >>conftest.$ac_ext
49038 cat >>conftest.$ac_ext <<_ACEOF
49039 /* end confdefs.h.  */
49040 /* System header to define __stub macros and hopefully few prototypes,
49041     which can conflict with char $ac_func (); below.
49042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49043     <limits.h> exists even on freestanding compilers.  */
49044 #ifdef __STDC__
49045 # include <limits.h>
49046 #else
49047 # include <assert.h>
49048 #endif
49049 /* Override any gcc2 internal prototype to avoid an error.  */
49050 #ifdef __cplusplus
49051 extern "C"
49052 {
49053 #endif
49054 /* We use char because int might match the return type of a gcc2
49055    builtin and then its argument prototype would still apply.  */
49056 char $ac_func ();
49057 /* The GNU C library defines this for functions which it implements
49058     to always fail with ENOSYS.  Some functions are actually named
49059     something starting with __ and the normal name is an alias.  */
49060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49061 choke me
49062 #else
49063 char (*f) () = $ac_func;
49064 #endif
49065 #ifdef __cplusplus
49066 }
49067 #endif
49068
49069 int
49070 main ()
49071 {
49072 return f != $ac_func;
49073   ;
49074   return 0;
49075 }
49076 _ACEOF
49077 rm -f conftest.$ac_objext conftest$ac_exeext
49078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49079   (eval $ac_link) 2>&5
49080   ac_status=$?
49081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49082   (exit $ac_status); } &&
49083          { ac_try='test -s conftest$ac_exeext'
49084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49085   (eval $ac_try) 2>&5
49086   ac_status=$?
49087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49088   (exit $ac_status); }; }; then
49089   eval "$as_ac_var=yes"
49090 else
49091   echo "$as_me: failed program was:" >&5
49092 sed 's/^/| /' conftest.$ac_ext >&5
49093
49094 eval "$as_ac_var=no"
49095 fi
49096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49097 fi
49098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49099 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49100 if test `eval echo '${'$as_ac_var'}'` = yes; then
49101   cat >>confdefs.h <<_ACEOF
49102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49103 _ACEOF
49104  ac_XPG2funcs=yes
49105 else
49106   ac_XPG2funcs=no
49107 fi
49108 done
49109
49110
49111     LIBS="$ac_save_LIBS"
49112
49113     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
49114 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
49115     if test x"$ac_has_iconv_h" = xyes &&
49116        test x"$ac_has_langinfo_h" = xyes &&
49117        test x"$ac_XPG2funcs" = xyes;
49118     then
49119       ac_XPG2_wchar_t=yes
49120     else
49121       ac_XPG2_wchar_t=no
49122     fi
49123     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
49124 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
49125
49126     # At the moment, only enable wchar_t specializations if all the
49127     # above support is present.
49128     if test x"$ac_isoC99_wchar_t" = xyes &&
49129        test x"$ac_XPG2_wchar_t" = xyes;
49130     then
49131       cat >>confdefs.h <<\_ACEOF
49132 #define _GLIBCXX_USE_WCHAR_T 1
49133 _ACEOF
49134
49135       enable_wchar_t=yes
49136     fi
49137   fi
49138   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
49139 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
49140   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
49141 echo "${ECHO_T}$enable_wchar_t" >&6
49142
49143     cat >>confdefs.h <<\_ACEOF
49144 #define HAVE_COPYSIGN 1
49145 _ACEOF
49146
49147     cat >>confdefs.h <<\_ACEOF
49148 #define HAVE_COPYSIGNF 1
49149 _ACEOF
49150
49151     cat >>confdefs.h <<\_ACEOF
49152 #define HAVE_FREXPF 1
49153 _ACEOF
49154
49155     cat >>confdefs.h <<\_ACEOF
49156 #define HAVE_HYPOT 1
49157 _ACEOF
49158
49159     case "$target" in
49160       *-hpux10*)
49161         cat >>confdefs.h <<\_ACEOF
49162 #define HAVE_FINITE 1
49163 _ACEOF
49164
49165         cat >>confdefs.h <<\_ACEOF
49166 #define HAVE_FINITEF 1
49167 _ACEOF
49168
49169         cat >>confdefs.h <<\_ACEOF
49170 #define HAVE_ISINF 1
49171 _ACEOF
49172
49173         cat >>confdefs.h <<\_ACEOF
49174 #define HAVE_ISINFF 1
49175 _ACEOF
49176
49177         cat >>confdefs.h <<\_ACEOF
49178 #define HAVE_ISNAN 1
49179 _ACEOF
49180
49181         cat >>confdefs.h <<\_ACEOF
49182 #define HAVE_ISNANF 1
49183 _ACEOF
49184
49185         ;;
49186     esac
49187     ;;
49188   *-linux*)
49189     #os_include_dir="os/gnu-linux"
49190
49191
49192
49193
49194
49195
49196
49197
49198
49199
49200
49201
49202 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
49203       machine/endian.h machine/param.h sys/machine.h sys/types.h \
49204       fp.h locale.h float.h inttypes.h
49205 do
49206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49208   echo "$as_me:$LINENO: checking for $ac_header" >&5
49209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49211   echo $ECHO_N "(cached) $ECHO_C" >&6
49212 fi
49213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49215 else
49216   # Is the header compilable?
49217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49219 cat >conftest.$ac_ext <<_ACEOF
49220 #line $LINENO "configure"
49221 /* confdefs.h.  */
49222 _ACEOF
49223 cat confdefs.h >>conftest.$ac_ext
49224 cat >>conftest.$ac_ext <<_ACEOF
49225 /* end confdefs.h.  */
49226 $ac_includes_default
49227 #include <$ac_header>
49228 _ACEOF
49229 rm -f conftest.$ac_objext
49230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49231   (eval $ac_compile) 2>&5
49232   ac_status=$?
49233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49234   (exit $ac_status); } &&
49235          { ac_try='test -s conftest.$ac_objext'
49236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49237   (eval $ac_try) 2>&5
49238   ac_status=$?
49239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49240   (exit $ac_status); }; }; then
49241   ac_header_compiler=yes
49242 else
49243   echo "$as_me: failed program was:" >&5
49244 sed 's/^/| /' conftest.$ac_ext >&5
49245
49246 ac_header_compiler=no
49247 fi
49248 rm -f conftest.$ac_objext conftest.$ac_ext
49249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49250 echo "${ECHO_T}$ac_header_compiler" >&6
49251
49252 # Is the header present?
49253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49255 cat >conftest.$ac_ext <<_ACEOF
49256 #line $LINENO "configure"
49257 /* confdefs.h.  */
49258 _ACEOF
49259 cat confdefs.h >>conftest.$ac_ext
49260 cat >>conftest.$ac_ext <<_ACEOF
49261 /* end confdefs.h.  */
49262 #include <$ac_header>
49263 _ACEOF
49264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49266   ac_status=$?
49267   grep -v '^ *+' conftest.er1 >conftest.err
49268   rm -f conftest.er1
49269   cat conftest.err >&5
49270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49271   (exit $ac_status); } >/dev/null; then
49272   if test -s conftest.err; then
49273     ac_cpp_err=$ac_c_preproc_warn_flag
49274   else
49275     ac_cpp_err=
49276   fi
49277 else
49278   ac_cpp_err=yes
49279 fi
49280 if test -z "$ac_cpp_err"; then
49281   ac_header_preproc=yes
49282 else
49283   echo "$as_me: failed program was:" >&5
49284 sed 's/^/| /' conftest.$ac_ext >&5
49285
49286   ac_header_preproc=no
49287 fi
49288 rm -f conftest.err conftest.$ac_ext
49289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49290 echo "${ECHO_T}$ac_header_preproc" >&6
49291
49292 # So?  What about this header?
49293 case $ac_header_compiler:$ac_header_preproc in
49294   yes:no )
49295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49299     (
49300       cat <<\_ASBOX
49301 ## ------------------------------------ ##
49302 ## Report this to bug-autoconf@gnu.org. ##
49303 ## ------------------------------------ ##
49304 _ASBOX
49305     ) |
49306       sed "s/^/$as_me: WARNING:     /" >&2
49307     ;;
49308   no:yes )
49309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49311     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
49312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
49313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49315     (
49316       cat <<\_ASBOX
49317 ## ------------------------------------ ##
49318 ## Report this to bug-autoconf@gnu.org. ##
49319 ## ------------------------------------ ##
49320 _ASBOX
49321     ) |
49322       sed "s/^/$as_me: WARNING:     /" >&2
49323     ;;
49324 esac
49325 echo "$as_me:$LINENO: checking for $ac_header" >&5
49326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49328   echo $ECHO_N "(cached) $ECHO_C" >&6
49329 else
49330   eval "$as_ac_Header=$ac_header_preproc"
49331 fi
49332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49334
49335 fi
49336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
49337   cat >>confdefs.h <<_ACEOF
49338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
49339 _ACEOF
49340
49341 fi
49342
49343 done
49344
49345     SECTION_FLAGS='-ffunction-sections -fdata-sections'
49346
49347
49348   # If we're not using GNU ld, then there's no point in even trying these
49349   # tests.  Check for that first.  We should have already tested for gld
49350   # by now (in libtool), but require it now just to be safe...
49351   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
49352   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
49353
49354
49355
49356   # The name set by libtool depends on the version of libtool.  Shame on us
49357   # for depending on an impl detail, but c'est la vie.  Older versions used
49358   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
49359   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
49360   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
49361   # set (hence we're using an older libtool), then set it.
49362   if test x${with_gnu_ld+set} != xset; then
49363     if test x${ac_cv_prog_gnu_ld+set} != xset; then
49364       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
49365       with_gnu_ld=no
49366     else
49367       with_gnu_ld=$ac_cv_prog_gnu_ld
49368     fi
49369   fi
49370
49371   # Start by getting the version number.  I think the libtool test already
49372   # does some of this, but throws away the result.
49373
49374   ldver=`$LD --version 2>/dev/null | head -1 | \
49375          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
49376
49377   glibcxx_gnu_ld_version=`echo $ldver | \
49378          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
49379
49380   # Set --gc-sections.
49381   if test "$with_gnu_ld" = "notbroken"; then
49382     # GNU ld it is!  Joy and bunny rabbits!
49383
49384     # All these tests are for C++; save the language and the compiler flags.
49385     # Need to do this so that g++ won't try to link in libstdc++
49386     ac_test_CFLAGS="${CFLAGS+set}"
49387     ac_save_CFLAGS="$CFLAGS"
49388     CFLAGS='-x c++  -Wl,--gc-sections'
49389
49390     # Check for -Wl,--gc-sections
49391     # XXX This test is broken at the moment, as symbols required for linking
49392     # are now in libsupc++ (not built yet).  In addition, this test has
49393     # cored on solaris in the past.  In addition, --gc-sections doesn't
49394     # really work at the moment (keeps on discarding used sections, first
49395     # .eh_frame and now some of the glibc sections for iconv).
49396     # Bzzzzt.  Thanks for playing, maybe next time.
49397     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
49398 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
49399     if test "$cross_compiling" = yes; then
49400   ac_sectionLDflags=yes
49401 else
49402   cat >conftest.$ac_ext <<_ACEOF
49403 #line $LINENO "configure"
49404 /* confdefs.h.  */
49405 _ACEOF
49406 cat confdefs.h >>conftest.$ac_ext
49407 cat >>conftest.$ac_ext <<_ACEOF
49408 /* end confdefs.h.  */
49409
49410      int main(void)
49411      {
49412        try { throw 1; }
49413        catch (...) { };
49414        return 0;
49415      }
49416
49417 _ACEOF
49418 rm -f conftest$ac_exeext
49419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49420   (eval $ac_link) 2>&5
49421   ac_status=$?
49422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49423   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49425   (eval $ac_try) 2>&5
49426   ac_status=$?
49427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49428   (exit $ac_status); }; }; then
49429   ac_sectionLDflags=yes
49430 else
49431   echo "$as_me: program exited with status $ac_status" >&5
49432 echo "$as_me: failed program was:" >&5
49433 sed 's/^/| /' conftest.$ac_ext >&5
49434
49435 ( exit $ac_status )
49436 ac_sectionLDflags=no
49437 fi
49438 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49439 fi
49440     if test "$ac_test_CFLAGS" = set; then
49441       CFLAGS="$ac_save_CFLAGS"
49442     else
49443       # this is the suspicious part
49444       CFLAGS=''
49445     fi
49446     if test "$ac_sectionLDflags" = "yes"; then
49447       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
49448     fi
49449     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
49450 echo "${ECHO_T}$ac_sectionLDflags" >&6
49451   fi
49452
49453   # Set linker optimization flags.
49454   if test x"$with_gnu_ld" = x"yes"; then
49455     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
49456   fi
49457
49458
49459
49460
49461
49462
49463 echo "$as_me:$LINENO: checking for main in -lm" >&5
49464 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
49465 if test "${ac_cv_lib_m_main+set}" = set; then
49466   echo $ECHO_N "(cached) $ECHO_C" >&6
49467 else
49468   ac_check_lib_save_LIBS=$LIBS
49469 LIBS="-lm  $LIBS"
49470 cat >conftest.$ac_ext <<_ACEOF
49471 #line $LINENO "configure"
49472 /* confdefs.h.  */
49473 _ACEOF
49474 cat confdefs.h >>conftest.$ac_ext
49475 cat >>conftest.$ac_ext <<_ACEOF
49476 /* end confdefs.h.  */
49477
49478
49479 int
49480 main ()
49481 {
49482 main ();
49483   ;
49484   return 0;
49485 }
49486 _ACEOF
49487 rm -f conftest.$ac_objext conftest$ac_exeext
49488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49489   (eval $ac_link) 2>&5
49490   ac_status=$?
49491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49492   (exit $ac_status); } &&
49493          { ac_try='test -s conftest$ac_exeext'
49494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49495   (eval $ac_try) 2>&5
49496   ac_status=$?
49497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49498   (exit $ac_status); }; }; then
49499   ac_cv_lib_m_main=yes
49500 else
49501   echo "$as_me: failed program was:" >&5
49502 sed 's/^/| /' conftest.$ac_ext >&5
49503
49504 ac_cv_lib_m_main=no
49505 fi
49506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49507 LIBS=$ac_check_lib_save_LIBS
49508 fi
49509 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
49510 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
49511 if test $ac_cv_lib_m_main = yes; then
49512   cat >>confdefs.h <<_ACEOF
49513 #define HAVE_LIBM 1
49514 _ACEOF
49515
49516   LIBS="-lm $LIBS"
49517
49518 fi
49519
49520
49521
49522 for ac_func in nan copysignf
49523 do
49524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49525 echo "$as_me:$LINENO: checking for $ac_func" >&5
49526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49527 if eval "test \"\${$as_ac_var+set}\" = set"; then
49528   echo $ECHO_N "(cached) $ECHO_C" >&6
49529 else
49530   cat >conftest.$ac_ext <<_ACEOF
49531 #line $LINENO "configure"
49532 /* confdefs.h.  */
49533 _ACEOF
49534 cat confdefs.h >>conftest.$ac_ext
49535 cat >>conftest.$ac_ext <<_ACEOF
49536 /* end confdefs.h.  */
49537 /* System header to define __stub macros and hopefully few prototypes,
49538     which can conflict with char $ac_func (); below.
49539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49540     <limits.h> exists even on freestanding compilers.  */
49541 #ifdef __STDC__
49542 # include <limits.h>
49543 #else
49544 # include <assert.h>
49545 #endif
49546 /* Override any gcc2 internal prototype to avoid an error.  */
49547 #ifdef __cplusplus
49548 extern "C"
49549 {
49550 #endif
49551 /* We use char because int might match the return type of a gcc2
49552    builtin and then its argument prototype would still apply.  */
49553 char $ac_func ();
49554 /* The GNU C library defines this for functions which it implements
49555     to always fail with ENOSYS.  Some functions are actually named
49556     something starting with __ and the normal name is an alias.  */
49557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49558 choke me
49559 #else
49560 char (*f) () = $ac_func;
49561 #endif
49562 #ifdef __cplusplus
49563 }
49564 #endif
49565
49566 int
49567 main ()
49568 {
49569 return f != $ac_func;
49570   ;
49571   return 0;
49572 }
49573 _ACEOF
49574 rm -f conftest.$ac_objext conftest$ac_exeext
49575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49576   (eval $ac_link) 2>&5
49577   ac_status=$?
49578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49579   (exit $ac_status); } &&
49580          { ac_try='test -s conftest$ac_exeext'
49581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49582   (eval $ac_try) 2>&5
49583   ac_status=$?
49584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49585   (exit $ac_status); }; }; then
49586   eval "$as_ac_var=yes"
49587 else
49588   echo "$as_me: failed program was:" >&5
49589 sed 's/^/| /' conftest.$ac_ext >&5
49590
49591 eval "$as_ac_var=no"
49592 fi
49593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49594 fi
49595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49597 if test `eval echo '${'$as_ac_var'}'` = yes; then
49598   cat >>confdefs.h <<_ACEOF
49599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49600 _ACEOF
49601
49602 else
49603   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
49604 fi
49605 done
49606
49607
49608
49609 for ac_func in __signbit
49610 do
49611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49612 echo "$as_me:$LINENO: checking for $ac_func" >&5
49613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49614 if eval "test \"\${$as_ac_var+set}\" = set"; then
49615   echo $ECHO_N "(cached) $ECHO_C" >&6
49616 else
49617   cat >conftest.$ac_ext <<_ACEOF
49618 #line $LINENO "configure"
49619 /* confdefs.h.  */
49620 _ACEOF
49621 cat confdefs.h >>conftest.$ac_ext
49622 cat >>conftest.$ac_ext <<_ACEOF
49623 /* end confdefs.h.  */
49624 /* System header to define __stub macros and hopefully few prototypes,
49625     which can conflict with char $ac_func (); below.
49626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49627     <limits.h> exists even on freestanding compilers.  */
49628 #ifdef __STDC__
49629 # include <limits.h>
49630 #else
49631 # include <assert.h>
49632 #endif
49633 /* Override any gcc2 internal prototype to avoid an error.  */
49634 #ifdef __cplusplus
49635 extern "C"
49636 {
49637 #endif
49638 /* We use char because int might match the return type of a gcc2
49639    builtin and then its argument prototype would still apply.  */
49640 char $ac_func ();
49641 /* The GNU C library defines this for functions which it implements
49642     to always fail with ENOSYS.  Some functions are actually named
49643     something starting with __ and the normal name is an alias.  */
49644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49645 choke me
49646 #else
49647 char (*f) () = $ac_func;
49648 #endif
49649 #ifdef __cplusplus
49650 }
49651 #endif
49652
49653 int
49654 main ()
49655 {
49656 return f != $ac_func;
49657   ;
49658   return 0;
49659 }
49660 _ACEOF
49661 rm -f conftest.$ac_objext conftest$ac_exeext
49662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49663   (eval $ac_link) 2>&5
49664   ac_status=$?
49665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49666   (exit $ac_status); } &&
49667          { ac_try='test -s conftest$ac_exeext'
49668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49669   (eval $ac_try) 2>&5
49670   ac_status=$?
49671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49672   (exit $ac_status); }; }; then
49673   eval "$as_ac_var=yes"
49674 else
49675   echo "$as_me: failed program was:" >&5
49676 sed 's/^/| /' conftest.$ac_ext >&5
49677
49678 eval "$as_ac_var=no"
49679 fi
49680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49681 fi
49682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49684 if test `eval echo '${'$as_ac_var'}'` = yes; then
49685   cat >>confdefs.h <<_ACEOF
49686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49687 _ACEOF
49688
49689 else
49690   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
49691 fi
49692 done
49693
49694
49695 for ac_func in __signbitf
49696 do
49697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49698 echo "$as_me:$LINENO: checking for $ac_func" >&5
49699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49700 if eval "test \"\${$as_ac_var+set}\" = set"; then
49701   echo $ECHO_N "(cached) $ECHO_C" >&6
49702 else
49703   cat >conftest.$ac_ext <<_ACEOF
49704 #line $LINENO "configure"
49705 /* confdefs.h.  */
49706 _ACEOF
49707 cat confdefs.h >>conftest.$ac_ext
49708 cat >>conftest.$ac_ext <<_ACEOF
49709 /* end confdefs.h.  */
49710 /* System header to define __stub macros and hopefully few prototypes,
49711     which can conflict with char $ac_func (); below.
49712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49713     <limits.h> exists even on freestanding compilers.  */
49714 #ifdef __STDC__
49715 # include <limits.h>
49716 #else
49717 # include <assert.h>
49718 #endif
49719 /* Override any gcc2 internal prototype to avoid an error.  */
49720 #ifdef __cplusplus
49721 extern "C"
49722 {
49723 #endif
49724 /* We use char because int might match the return type of a gcc2
49725    builtin and then its argument prototype would still apply.  */
49726 char $ac_func ();
49727 /* The GNU C library defines this for functions which it implements
49728     to always fail with ENOSYS.  Some functions are actually named
49729     something starting with __ and the normal name is an alias.  */
49730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49731 choke me
49732 #else
49733 char (*f) () = $ac_func;
49734 #endif
49735 #ifdef __cplusplus
49736 }
49737 #endif
49738
49739 int
49740 main ()
49741 {
49742 return f != $ac_func;
49743   ;
49744   return 0;
49745 }
49746 _ACEOF
49747 rm -f conftest.$ac_objext conftest$ac_exeext
49748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49749   (eval $ac_link) 2>&5
49750   ac_status=$?
49751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49752   (exit $ac_status); } &&
49753          { ac_try='test -s conftest$ac_exeext'
49754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49755   (eval $ac_try) 2>&5
49756   ac_status=$?
49757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49758   (exit $ac_status); }; }; then
49759   eval "$as_ac_var=yes"
49760 else
49761   echo "$as_me: failed program was:" >&5
49762 sed 's/^/| /' conftest.$ac_ext >&5
49763
49764 eval "$as_ac_var=no"
49765 fi
49766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49767 fi
49768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49770 if test `eval echo '${'$as_ac_var'}'` = yes; then
49771   cat >>confdefs.h <<_ACEOF
49772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49773 _ACEOF
49774
49775 else
49776   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
49777 fi
49778 done
49779
49780
49781           if test x$ac_cv_func_copysignl = x"yes"; then
49782
49783 for ac_func in __signbitl
49784 do
49785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49786 echo "$as_me:$LINENO: checking for $ac_func" >&5
49787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49788 if eval "test \"\${$as_ac_var+set}\" = set"; then
49789   echo $ECHO_N "(cached) $ECHO_C" >&6
49790 else
49791   cat >conftest.$ac_ext <<_ACEOF
49792 #line $LINENO "configure"
49793 /* confdefs.h.  */
49794 _ACEOF
49795 cat confdefs.h >>conftest.$ac_ext
49796 cat >>conftest.$ac_ext <<_ACEOF
49797 /* end confdefs.h.  */
49798 /* System header to define __stub macros and hopefully few prototypes,
49799     which can conflict with char $ac_func (); below.
49800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49801     <limits.h> exists even on freestanding compilers.  */
49802 #ifdef __STDC__
49803 # include <limits.h>
49804 #else
49805 # include <assert.h>
49806 #endif
49807 /* Override any gcc2 internal prototype to avoid an error.  */
49808 #ifdef __cplusplus
49809 extern "C"
49810 {
49811 #endif
49812 /* We use char because int might match the return type of a gcc2
49813    builtin and then its argument prototype would still apply.  */
49814 char $ac_func ();
49815 /* The GNU C library defines this for functions which it implements
49816     to always fail with ENOSYS.  Some functions are actually named
49817     something starting with __ and the normal name is an alias.  */
49818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49819 choke me
49820 #else
49821 char (*f) () = $ac_func;
49822 #endif
49823 #ifdef __cplusplus
49824 }
49825 #endif
49826
49827 int
49828 main ()
49829 {
49830 return f != $ac_func;
49831   ;
49832   return 0;
49833 }
49834 _ACEOF
49835 rm -f conftest.$ac_objext conftest$ac_exeext
49836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49837   (eval $ac_link) 2>&5
49838   ac_status=$?
49839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49840   (exit $ac_status); } &&
49841          { ac_try='test -s conftest$ac_exeext'
49842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49843   (eval $ac_try) 2>&5
49844   ac_status=$?
49845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49846   (exit $ac_status); }; }; then
49847   eval "$as_ac_var=yes"
49848 else
49849   echo "$as_me: failed program was:" >&5
49850 sed 's/^/| /' conftest.$ac_ext >&5
49851
49852 eval "$as_ac_var=no"
49853 fi
49854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
49855 fi
49856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49858 if test `eval echo '${'$as_ac_var'}'` = yes; then
49859   cat >>confdefs.h <<_ACEOF
49860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49861 _ACEOF
49862
49863 else
49864   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
49865 fi
49866 done
49867
49868   fi
49869
49870   # XXX Review this.  Nothing uses it.
49871   if test -n "$LIBMATHOBJS"; then
49872     need_libmath=yes
49873   fi
49874
49875
49876
49877   # Test wchar.h for mbstate_t, which is needed for char_traits and
49878   # others even if wchar_t support is not on.
49879   echo "$as_me:$LINENO: checking for mbstate_t" >&5
49880 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
49881   cat >conftest.$ac_ext <<_ACEOF
49882 #line $LINENO "configure"
49883 /* confdefs.h.  */
49884 _ACEOF
49885 cat confdefs.h >>conftest.$ac_ext
49886 cat >>conftest.$ac_ext <<_ACEOF
49887 /* end confdefs.h.  */
49888 #include <wchar.h>
49889 int
49890 main ()
49891 {
49892 mbstate_t teststate;
49893   ;
49894   return 0;
49895 }
49896 _ACEOF
49897 rm -f conftest.$ac_objext
49898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49899   (eval $ac_compile) 2>&5
49900   ac_status=$?
49901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49902   (exit $ac_status); } &&
49903          { ac_try='test -s conftest.$ac_objext'
49904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49905   (eval $ac_try) 2>&5
49906   ac_status=$?
49907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49908   (exit $ac_status); }; }; then
49909   have_mbstate_t=yes
49910 else
49911   echo "$as_me: failed program was:" >&5
49912 sed 's/^/| /' conftest.$ac_ext >&5
49913
49914 have_mbstate_t=no
49915 fi
49916 rm -f conftest.$ac_objext conftest.$ac_ext
49917   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
49918 echo "${ECHO_T}$have_mbstate_t" >&6
49919   if test x"$have_mbstate_t" = xyes; then
49920     cat >>confdefs.h <<\_ACEOF
49921 #define HAVE_MBSTATE_T 1
49922 _ACEOF
49923
49924   fi
49925
49926   # Sanity check for existence of ISO C99 headers for extended encoding.
49927
49928 for ac_header in wchar.h
49929 do
49930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
49931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49932   echo "$as_me:$LINENO: checking for $ac_header" >&5
49933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
49934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
49935   echo $ECHO_N "(cached) $ECHO_C" >&6
49936 fi
49937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
49938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
49939 else
49940   # Is the header compilable?
49941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
49942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
49943 cat >conftest.$ac_ext <<_ACEOF
49944 #line $LINENO "configure"
49945 /* confdefs.h.  */
49946 _ACEOF
49947 cat confdefs.h >>conftest.$ac_ext
49948 cat >>conftest.$ac_ext <<_ACEOF
49949 /* end confdefs.h.  */
49950 $ac_includes_default
49951 #include <$ac_header>
49952 _ACEOF
49953 rm -f conftest.$ac_objext
49954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49955   (eval $ac_compile) 2>&5
49956   ac_status=$?
49957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49958   (exit $ac_status); } &&
49959          { ac_try='test -s conftest.$ac_objext'
49960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49961   (eval $ac_try) 2>&5
49962   ac_status=$?
49963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49964   (exit $ac_status); }; }; then
49965   ac_header_compiler=yes
49966 else
49967   echo "$as_me: failed program was:" >&5
49968 sed 's/^/| /' conftest.$ac_ext >&5
49969
49970 ac_header_compiler=no
49971 fi
49972 rm -f conftest.$ac_objext conftest.$ac_ext
49973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49974 echo "${ECHO_T}$ac_header_compiler" >&6
49975
49976 # Is the header present?
49977 echo "$as_me:$LINENO: checking $ac_header presence" >&5
49978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
49979 cat >conftest.$ac_ext <<_ACEOF
49980 #line $LINENO "configure"
49981 /* confdefs.h.  */
49982 _ACEOF
49983 cat confdefs.h >>conftest.$ac_ext
49984 cat >>conftest.$ac_ext <<_ACEOF
49985 /* end confdefs.h.  */
49986 #include <$ac_header>
49987 _ACEOF
49988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
49989   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
49990   ac_status=$?
49991   grep -v '^ *+' conftest.er1 >conftest.err
49992   rm -f conftest.er1
49993   cat conftest.err >&5
49994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49995   (exit $ac_status); } >/dev/null; then
49996   if test -s conftest.err; then
49997     ac_cpp_err=$ac_c_preproc_warn_flag
49998   else
49999     ac_cpp_err=
50000   fi
50001 else
50002   ac_cpp_err=yes
50003 fi
50004 if test -z "$ac_cpp_err"; then
50005   ac_header_preproc=yes
50006 else
50007   echo "$as_me: failed program was:" >&5
50008 sed 's/^/| /' conftest.$ac_ext >&5
50009
50010   ac_header_preproc=no
50011 fi
50012 rm -f conftest.err conftest.$ac_ext
50013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50014 echo "${ECHO_T}$ac_header_preproc" >&6
50015
50016 # So?  What about this header?
50017 case $ac_header_compiler:$ac_header_preproc in
50018   yes:no )
50019     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50023     (
50024       cat <<\_ASBOX
50025 ## ------------------------------------ ##
50026 ## Report this to bug-autoconf@gnu.org. ##
50027 ## ------------------------------------ ##
50028 _ASBOX
50029     ) |
50030       sed "s/^/$as_me: WARNING:     /" >&2
50031     ;;
50032   no:yes )
50033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50035     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50039     (
50040       cat <<\_ASBOX
50041 ## ------------------------------------ ##
50042 ## Report this to bug-autoconf@gnu.org. ##
50043 ## ------------------------------------ ##
50044 _ASBOX
50045     ) |
50046       sed "s/^/$as_me: WARNING:     /" >&2
50047     ;;
50048 esac
50049 echo "$as_me:$LINENO: checking for $ac_header" >&5
50050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50052   echo $ECHO_N "(cached) $ECHO_C" >&6
50053 else
50054   eval "$as_ac_Header=$ac_header_preproc"
50055 fi
50056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50057 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50058
50059 fi
50060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50061   cat >>confdefs.h <<_ACEOF
50062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50063 _ACEOF
50064  ac_has_wchar_h=yes
50065 else
50066   ac_has_wchar_h=no
50067 fi
50068
50069 done
50070
50071
50072 for ac_header in wctype.h
50073 do
50074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50076   echo "$as_me:$LINENO: checking for $ac_header" >&5
50077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50079   echo $ECHO_N "(cached) $ECHO_C" >&6
50080 fi
50081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50083 else
50084   # Is the header compilable?
50085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50087 cat >conftest.$ac_ext <<_ACEOF
50088 #line $LINENO "configure"
50089 /* confdefs.h.  */
50090 _ACEOF
50091 cat confdefs.h >>conftest.$ac_ext
50092 cat >>conftest.$ac_ext <<_ACEOF
50093 /* end confdefs.h.  */
50094 $ac_includes_default
50095 #include <$ac_header>
50096 _ACEOF
50097 rm -f conftest.$ac_objext
50098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50099   (eval $ac_compile) 2>&5
50100   ac_status=$?
50101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50102   (exit $ac_status); } &&
50103          { ac_try='test -s conftest.$ac_objext'
50104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50105   (eval $ac_try) 2>&5
50106   ac_status=$?
50107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50108   (exit $ac_status); }; }; then
50109   ac_header_compiler=yes
50110 else
50111   echo "$as_me: failed program was:" >&5
50112 sed 's/^/| /' conftest.$ac_ext >&5
50113
50114 ac_header_compiler=no
50115 fi
50116 rm -f conftest.$ac_objext conftest.$ac_ext
50117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50118 echo "${ECHO_T}$ac_header_compiler" >&6
50119
50120 # Is the header present?
50121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50123 cat >conftest.$ac_ext <<_ACEOF
50124 #line $LINENO "configure"
50125 /* confdefs.h.  */
50126 _ACEOF
50127 cat confdefs.h >>conftest.$ac_ext
50128 cat >>conftest.$ac_ext <<_ACEOF
50129 /* end confdefs.h.  */
50130 #include <$ac_header>
50131 _ACEOF
50132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50134   ac_status=$?
50135   grep -v '^ *+' conftest.er1 >conftest.err
50136   rm -f conftest.er1
50137   cat conftest.err >&5
50138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50139   (exit $ac_status); } >/dev/null; then
50140   if test -s conftest.err; then
50141     ac_cpp_err=$ac_c_preproc_warn_flag
50142   else
50143     ac_cpp_err=
50144   fi
50145 else
50146   ac_cpp_err=yes
50147 fi
50148 if test -z "$ac_cpp_err"; then
50149   ac_header_preproc=yes
50150 else
50151   echo "$as_me: failed program was:" >&5
50152 sed 's/^/| /' conftest.$ac_ext >&5
50153
50154   ac_header_preproc=no
50155 fi
50156 rm -f conftest.err conftest.$ac_ext
50157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50158 echo "${ECHO_T}$ac_header_preproc" >&6
50159
50160 # So?  What about this header?
50161 case $ac_header_compiler:$ac_header_preproc in
50162   yes:no )
50163     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50167     (
50168       cat <<\_ASBOX
50169 ## ------------------------------------ ##
50170 ## Report this to bug-autoconf@gnu.org. ##
50171 ## ------------------------------------ ##
50172 _ASBOX
50173     ) |
50174       sed "s/^/$as_me: WARNING:     /" >&2
50175     ;;
50176   no:yes )
50177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50179     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50183     (
50184       cat <<\_ASBOX
50185 ## ------------------------------------ ##
50186 ## Report this to bug-autoconf@gnu.org. ##
50187 ## ------------------------------------ ##
50188 _ASBOX
50189     ) |
50190       sed "s/^/$as_me: WARNING:     /" >&2
50191     ;;
50192 esac
50193 echo "$as_me:$LINENO: checking for $ac_header" >&5
50194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50196   echo $ECHO_N "(cached) $ECHO_C" >&6
50197 else
50198   eval "$as_ac_Header=$ac_header_preproc"
50199 fi
50200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50202
50203 fi
50204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50205   cat >>confdefs.h <<_ACEOF
50206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50207 _ACEOF
50208  ac_has_wctype_h=yes
50209 else
50210   ac_has_wctype_h=no
50211 fi
50212
50213 done
50214
50215
50216   # Only continue checking if the ISO C99 headers exist and support is on.
50217   if test x"$ac_has_wchar_h" = xyes &&
50218      test x"$ac_has_wctype_h" = xyes &&
50219      test x"$enable_c_mbchar" != xno; then
50220
50221     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
50222     # numeric_limits can instantiate type_traits<wchar_t>
50223     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
50224 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
50225     cat >conftest.$ac_ext <<_ACEOF
50226 #line $LINENO "configure"
50227 /* confdefs.h.  */
50228 _ACEOF
50229 cat confdefs.h >>conftest.$ac_ext
50230 cat >>conftest.$ac_ext <<_ACEOF
50231 /* end confdefs.h.  */
50232 #include <wchar.h>
50233 int
50234 main ()
50235 {
50236 int i = WCHAR_MIN; int j = WCHAR_MAX;
50237   ;
50238   return 0;
50239 }
50240 _ACEOF
50241 rm -f conftest.$ac_objext
50242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50243   (eval $ac_compile) 2>&5
50244   ac_status=$?
50245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50246   (exit $ac_status); } &&
50247          { ac_try='test -s conftest.$ac_objext'
50248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50249   (eval $ac_try) 2>&5
50250   ac_status=$?
50251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50252   (exit $ac_status); }; }; then
50253   has_wchar_minmax=yes
50254 else
50255   echo "$as_me: failed program was:" >&5
50256 sed 's/^/| /' conftest.$ac_ext >&5
50257
50258 has_wchar_minmax=no
50259 fi
50260 rm -f conftest.$ac_objext conftest.$ac_ext
50261     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
50262 echo "${ECHO_T}$has_wchar_minmax" >&6
50263
50264     # Test wchar.h for WEOF, which is what we use to determine whether
50265     # to specialize for char_traits<wchar_t> or not.
50266     echo "$as_me:$LINENO: checking for WEOF" >&5
50267 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
50268     cat >conftest.$ac_ext <<_ACEOF
50269 #line $LINENO "configure"
50270 /* confdefs.h.  */
50271 _ACEOF
50272 cat confdefs.h >>conftest.$ac_ext
50273 cat >>conftest.$ac_ext <<_ACEOF
50274 /* end confdefs.h.  */
50275
50276       #include <wchar.h>
50277       #include <stddef.h>
50278 int
50279 main ()
50280 {
50281 wint_t i = WEOF;
50282   ;
50283   return 0;
50284 }
50285 _ACEOF
50286 rm -f conftest.$ac_objext
50287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50288   (eval $ac_compile) 2>&5
50289   ac_status=$?
50290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50291   (exit $ac_status); } &&
50292          { ac_try='test -s conftest.$ac_objext'
50293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50294   (eval $ac_try) 2>&5
50295   ac_status=$?
50296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50297   (exit $ac_status); }; }; then
50298   has_weof=yes
50299 else
50300   echo "$as_me: failed program was:" >&5
50301 sed 's/^/| /' conftest.$ac_ext >&5
50302
50303 has_weof=no
50304 fi
50305 rm -f conftest.$ac_objext conftest.$ac_ext
50306     echo "$as_me:$LINENO: result: $has_weof" >&5
50307 echo "${ECHO_T}$has_weof" >&6
50308
50309     # Tests for wide character functions used in char_traits<wchar_t>.
50310     ac_wfuncs=yes
50311
50312
50313
50314
50315
50316
50317 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
50318 do
50319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50320 echo "$as_me:$LINENO: checking for $ac_func" >&5
50321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50322 if eval "test \"\${$as_ac_var+set}\" = set"; then
50323   echo $ECHO_N "(cached) $ECHO_C" >&6
50324 else
50325   cat >conftest.$ac_ext <<_ACEOF
50326 #line $LINENO "configure"
50327 /* confdefs.h.  */
50328 _ACEOF
50329 cat confdefs.h >>conftest.$ac_ext
50330 cat >>conftest.$ac_ext <<_ACEOF
50331 /* end confdefs.h.  */
50332 /* System header to define __stub macros and hopefully few prototypes,
50333     which can conflict with char $ac_func (); below.
50334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50335     <limits.h> exists even on freestanding compilers.  */
50336 #ifdef __STDC__
50337 # include <limits.h>
50338 #else
50339 # include <assert.h>
50340 #endif
50341 /* Override any gcc2 internal prototype to avoid an error.  */
50342 #ifdef __cplusplus
50343 extern "C"
50344 {
50345 #endif
50346 /* We use char because int might match the return type of a gcc2
50347    builtin and then its argument prototype would still apply.  */
50348 char $ac_func ();
50349 /* The GNU C library defines this for functions which it implements
50350     to always fail with ENOSYS.  Some functions are actually named
50351     something starting with __ and the normal name is an alias.  */
50352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50353 choke me
50354 #else
50355 char (*f) () = $ac_func;
50356 #endif
50357 #ifdef __cplusplus
50358 }
50359 #endif
50360
50361 int
50362 main ()
50363 {
50364 return f != $ac_func;
50365   ;
50366   return 0;
50367 }
50368 _ACEOF
50369 rm -f conftest.$ac_objext conftest$ac_exeext
50370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50371   (eval $ac_link) 2>&5
50372   ac_status=$?
50373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50374   (exit $ac_status); } &&
50375          { ac_try='test -s conftest$ac_exeext'
50376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50377   (eval $ac_try) 2>&5
50378   ac_status=$?
50379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50380   (exit $ac_status); }; }; then
50381   eval "$as_ac_var=yes"
50382 else
50383   echo "$as_me: failed program was:" >&5
50384 sed 's/^/| /' conftest.$ac_ext >&5
50385
50386 eval "$as_ac_var=no"
50387 fi
50388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50389 fi
50390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50392 if test `eval echo '${'$as_ac_var'}'` = yes; then
50393   cat >>confdefs.h <<_ACEOF
50394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50395 _ACEOF
50396
50397 else
50398   ac_wfuncs=no
50399 fi
50400 done
50401
50402
50403     # Checks for names injected into std:: by the c_std headers.
50404
50405
50406
50407
50408
50409
50410
50411
50412
50413
50414
50415
50416
50417
50418
50419
50420
50421
50422
50423
50424
50425
50426
50427
50428
50429
50430
50431
50432
50433
50434
50435
50436
50437
50438
50439
50440
50441
50442
50443
50444
50445
50446
50447
50448
50449
50450
50451
50452
50453
50454 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
50455     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
50456     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
50457     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
50458     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
50459     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
50460 do
50461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50462 echo "$as_me:$LINENO: checking for $ac_func" >&5
50463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50464 if eval "test \"\${$as_ac_var+set}\" = set"; then
50465   echo $ECHO_N "(cached) $ECHO_C" >&6
50466 else
50467   cat >conftest.$ac_ext <<_ACEOF
50468 #line $LINENO "configure"
50469 /* confdefs.h.  */
50470 _ACEOF
50471 cat confdefs.h >>conftest.$ac_ext
50472 cat >>conftest.$ac_ext <<_ACEOF
50473 /* end confdefs.h.  */
50474 /* System header to define __stub macros and hopefully few prototypes,
50475     which can conflict with char $ac_func (); below.
50476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50477     <limits.h> exists even on freestanding compilers.  */
50478 #ifdef __STDC__
50479 # include <limits.h>
50480 #else
50481 # include <assert.h>
50482 #endif
50483 /* Override any gcc2 internal prototype to avoid an error.  */
50484 #ifdef __cplusplus
50485 extern "C"
50486 {
50487 #endif
50488 /* We use char because int might match the return type of a gcc2
50489    builtin and then its argument prototype would still apply.  */
50490 char $ac_func ();
50491 /* The GNU C library defines this for functions which it implements
50492     to always fail with ENOSYS.  Some functions are actually named
50493     something starting with __ and the normal name is an alias.  */
50494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50495 choke me
50496 #else
50497 char (*f) () = $ac_func;
50498 #endif
50499 #ifdef __cplusplus
50500 }
50501 #endif
50502
50503 int
50504 main ()
50505 {
50506 return f != $ac_func;
50507   ;
50508   return 0;
50509 }
50510 _ACEOF
50511 rm -f conftest.$ac_objext conftest$ac_exeext
50512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50513   (eval $ac_link) 2>&5
50514   ac_status=$?
50515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50516   (exit $ac_status); } &&
50517          { ac_try='test -s conftest$ac_exeext'
50518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50519   (eval $ac_try) 2>&5
50520   ac_status=$?
50521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50522   (exit $ac_status); }; }; then
50523   eval "$as_ac_var=yes"
50524 else
50525   echo "$as_me: failed program was:" >&5
50526 sed 's/^/| /' conftest.$ac_ext >&5
50527
50528 eval "$as_ac_var=no"
50529 fi
50530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50531 fi
50532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50534 if test `eval echo '${'$as_ac_var'}'` = yes; then
50535   cat >>confdefs.h <<_ACEOF
50536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50537 _ACEOF
50538
50539 else
50540   ac_wfuncs=no
50541 fi
50542 done
50543
50544
50545     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
50546 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
50547     if test x"$has_weof" = xyes &&
50548        test x"$has_wchar_minmax" = xyes &&
50549        test x"$ac_wfuncs" = xyes;
50550     then
50551       ac_isoC99_wchar_t=yes
50552     else
50553       ac_isoC99_wchar_t=no
50554     fi
50555     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
50556 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
50557
50558     # Use iconv for wchar_t to char conversions. As such, check for
50559     # X/Open Portability Guide, version 2 features (XPG2).
50560     if test "${ac_cv_header_iconv_h+set}" = set; then
50561   echo "$as_me:$LINENO: checking for iconv.h" >&5
50562 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
50563 if test "${ac_cv_header_iconv_h+set}" = set; then
50564   echo $ECHO_N "(cached) $ECHO_C" >&6
50565 fi
50566 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
50567 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
50568 else
50569   # Is the header compilable?
50570 echo "$as_me:$LINENO: checking iconv.h usability" >&5
50571 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
50572 cat >conftest.$ac_ext <<_ACEOF
50573 #line $LINENO "configure"
50574 /* confdefs.h.  */
50575 _ACEOF
50576 cat confdefs.h >>conftest.$ac_ext
50577 cat >>conftest.$ac_ext <<_ACEOF
50578 /* end confdefs.h.  */
50579 $ac_includes_default
50580 #include <iconv.h>
50581 _ACEOF
50582 rm -f conftest.$ac_objext
50583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50584   (eval $ac_compile) 2>&5
50585   ac_status=$?
50586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50587   (exit $ac_status); } &&
50588          { ac_try='test -s conftest.$ac_objext'
50589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50590   (eval $ac_try) 2>&5
50591   ac_status=$?
50592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50593   (exit $ac_status); }; }; then
50594   ac_header_compiler=yes
50595 else
50596   echo "$as_me: failed program was:" >&5
50597 sed 's/^/| /' conftest.$ac_ext >&5
50598
50599 ac_header_compiler=no
50600 fi
50601 rm -f conftest.$ac_objext conftest.$ac_ext
50602 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50603 echo "${ECHO_T}$ac_header_compiler" >&6
50604
50605 # Is the header present?
50606 echo "$as_me:$LINENO: checking iconv.h presence" >&5
50607 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
50608 cat >conftest.$ac_ext <<_ACEOF
50609 #line $LINENO "configure"
50610 /* confdefs.h.  */
50611 _ACEOF
50612 cat confdefs.h >>conftest.$ac_ext
50613 cat >>conftest.$ac_ext <<_ACEOF
50614 /* end confdefs.h.  */
50615 #include <iconv.h>
50616 _ACEOF
50617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50619   ac_status=$?
50620   grep -v '^ *+' conftest.er1 >conftest.err
50621   rm -f conftest.er1
50622   cat conftest.err >&5
50623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50624   (exit $ac_status); } >/dev/null; then
50625   if test -s conftest.err; then
50626     ac_cpp_err=$ac_c_preproc_warn_flag
50627   else
50628     ac_cpp_err=
50629   fi
50630 else
50631   ac_cpp_err=yes
50632 fi
50633 if test -z "$ac_cpp_err"; then
50634   ac_header_preproc=yes
50635 else
50636   echo "$as_me: failed program was:" >&5
50637 sed 's/^/| /' conftest.$ac_ext >&5
50638
50639   ac_header_preproc=no
50640 fi
50641 rm -f conftest.err conftest.$ac_ext
50642 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50643 echo "${ECHO_T}$ac_header_preproc" >&6
50644
50645 # So?  What about this header?
50646 case $ac_header_compiler:$ac_header_preproc in
50647   yes:no )
50648     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
50649 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50650     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
50651 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
50652     (
50653       cat <<\_ASBOX
50654 ## ------------------------------------ ##
50655 ## Report this to bug-autoconf@gnu.org. ##
50656 ## ------------------------------------ ##
50657 _ASBOX
50658     ) |
50659       sed "s/^/$as_me: WARNING:     /" >&2
50660     ;;
50661   no:yes )
50662     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
50663 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
50664     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
50665 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
50666     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
50667 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
50668     (
50669       cat <<\_ASBOX
50670 ## ------------------------------------ ##
50671 ## Report this to bug-autoconf@gnu.org. ##
50672 ## ------------------------------------ ##
50673 _ASBOX
50674     ) |
50675       sed "s/^/$as_me: WARNING:     /" >&2
50676     ;;
50677 esac
50678 echo "$as_me:$LINENO: checking for iconv.h" >&5
50679 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
50680 if test "${ac_cv_header_iconv_h+set}" = set; then
50681   echo $ECHO_N "(cached) $ECHO_C" >&6
50682 else
50683   ac_cv_header_iconv_h=$ac_header_preproc
50684 fi
50685 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
50686 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
50687
50688 fi
50689 if test $ac_cv_header_iconv_h = yes; then
50690   ac_has_iconv_h=yes
50691 else
50692   ac_has_iconv_h=no
50693 fi
50694
50695
50696     if test "${ac_cv_header_langinfo_h+set}" = set; then
50697   echo "$as_me:$LINENO: checking for langinfo.h" >&5
50698 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
50699 if test "${ac_cv_header_langinfo_h+set}" = set; then
50700   echo $ECHO_N "(cached) $ECHO_C" >&6
50701 fi
50702 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
50703 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
50704 else
50705   # Is the header compilable?
50706 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
50707 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
50708 cat >conftest.$ac_ext <<_ACEOF
50709 #line $LINENO "configure"
50710 /* confdefs.h.  */
50711 _ACEOF
50712 cat confdefs.h >>conftest.$ac_ext
50713 cat >>conftest.$ac_ext <<_ACEOF
50714 /* end confdefs.h.  */
50715 $ac_includes_default
50716 #include <langinfo.h>
50717 _ACEOF
50718 rm -f conftest.$ac_objext
50719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50720   (eval $ac_compile) 2>&5
50721   ac_status=$?
50722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50723   (exit $ac_status); } &&
50724          { ac_try='test -s conftest.$ac_objext'
50725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50726   (eval $ac_try) 2>&5
50727   ac_status=$?
50728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50729   (exit $ac_status); }; }; then
50730   ac_header_compiler=yes
50731 else
50732   echo "$as_me: failed program was:" >&5
50733 sed 's/^/| /' conftest.$ac_ext >&5
50734
50735 ac_header_compiler=no
50736 fi
50737 rm -f conftest.$ac_objext conftest.$ac_ext
50738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50739 echo "${ECHO_T}$ac_header_compiler" >&6
50740
50741 # Is the header present?
50742 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
50743 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
50744 cat >conftest.$ac_ext <<_ACEOF
50745 #line $LINENO "configure"
50746 /* confdefs.h.  */
50747 _ACEOF
50748 cat confdefs.h >>conftest.$ac_ext
50749 cat >>conftest.$ac_ext <<_ACEOF
50750 /* end confdefs.h.  */
50751 #include <langinfo.h>
50752 _ACEOF
50753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50754   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50755   ac_status=$?
50756   grep -v '^ *+' conftest.er1 >conftest.err
50757   rm -f conftest.er1
50758   cat conftest.err >&5
50759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50760   (exit $ac_status); } >/dev/null; then
50761   if test -s conftest.err; then
50762     ac_cpp_err=$ac_c_preproc_warn_flag
50763   else
50764     ac_cpp_err=
50765   fi
50766 else
50767   ac_cpp_err=yes
50768 fi
50769 if test -z "$ac_cpp_err"; then
50770   ac_header_preproc=yes
50771 else
50772   echo "$as_me: failed program was:" >&5
50773 sed 's/^/| /' conftest.$ac_ext >&5
50774
50775   ac_header_preproc=no
50776 fi
50777 rm -f conftest.err conftest.$ac_ext
50778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50779 echo "${ECHO_T}$ac_header_preproc" >&6
50780
50781 # So?  What about this header?
50782 case $ac_header_compiler:$ac_header_preproc in
50783   yes:no )
50784     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
50785 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
50786     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
50787 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
50788     (
50789       cat <<\_ASBOX
50790 ## ------------------------------------ ##
50791 ## Report this to bug-autoconf@gnu.org. ##
50792 ## ------------------------------------ ##
50793 _ASBOX
50794     ) |
50795       sed "s/^/$as_me: WARNING:     /" >&2
50796     ;;
50797   no:yes )
50798     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
50799 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
50800     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
50801 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
50802     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
50803 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
50804     (
50805       cat <<\_ASBOX
50806 ## ------------------------------------ ##
50807 ## Report this to bug-autoconf@gnu.org. ##
50808 ## ------------------------------------ ##
50809 _ASBOX
50810     ) |
50811       sed "s/^/$as_me: WARNING:     /" >&2
50812     ;;
50813 esac
50814 echo "$as_me:$LINENO: checking for langinfo.h" >&5
50815 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
50816 if test "${ac_cv_header_langinfo_h+set}" = set; then
50817   echo $ECHO_N "(cached) $ECHO_C" >&6
50818 else
50819   ac_cv_header_langinfo_h=$ac_header_preproc
50820 fi
50821 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
50822 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
50823
50824 fi
50825 if test $ac_cv_header_langinfo_h = yes; then
50826   ac_has_langinfo_h=yes
50827 else
50828   ac_has_langinfo_h=no
50829 fi
50830
50831
50832
50833     # Check for existence of libiconv.a providing XPG2 wchar_t support.
50834     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
50835 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
50836 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
50837   echo $ECHO_N "(cached) $ECHO_C" >&6
50838 else
50839   ac_check_lib_save_LIBS=$LIBS
50840 LIBS="-liconv  $LIBS"
50841 cat >conftest.$ac_ext <<_ACEOF
50842 #line $LINENO "configure"
50843 /* confdefs.h.  */
50844 _ACEOF
50845 cat confdefs.h >>conftest.$ac_ext
50846 cat >>conftest.$ac_ext <<_ACEOF
50847 /* end confdefs.h.  */
50848
50849 /* Override any gcc2 internal prototype to avoid an error.  */
50850 #ifdef __cplusplus
50851 extern "C"
50852 #endif
50853 /* We use char because int might match the return type of a gcc2
50854    builtin and then its argument prototype would still apply.  */
50855 char iconv ();
50856 int
50857 main ()
50858 {
50859 iconv ();
50860   ;
50861   return 0;
50862 }
50863 _ACEOF
50864 rm -f conftest.$ac_objext conftest$ac_exeext
50865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50866   (eval $ac_link) 2>&5
50867   ac_status=$?
50868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50869   (exit $ac_status); } &&
50870          { ac_try='test -s conftest$ac_exeext'
50871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50872   (eval $ac_try) 2>&5
50873   ac_status=$?
50874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50875   (exit $ac_status); }; }; then
50876   ac_cv_lib_iconv_iconv=yes
50877 else
50878   echo "$as_me: failed program was:" >&5
50879 sed 's/^/| /' conftest.$ac_ext >&5
50880
50881 ac_cv_lib_iconv_iconv=no
50882 fi
50883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50884 LIBS=$ac_check_lib_save_LIBS
50885 fi
50886 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
50887 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
50888 if test $ac_cv_lib_iconv_iconv = yes; then
50889   libiconv="-liconv"
50890 fi
50891
50892     ac_save_LIBS="$LIBS"
50893     LIBS="$LIBS $libiconv"
50894
50895
50896
50897
50898
50899 for ac_func in iconv_open iconv_close iconv nl_langinfo
50900 do
50901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50902 echo "$as_me:$LINENO: checking for $ac_func" >&5
50903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50904 if eval "test \"\${$as_ac_var+set}\" = set"; then
50905   echo $ECHO_N "(cached) $ECHO_C" >&6
50906 else
50907   cat >conftest.$ac_ext <<_ACEOF
50908 #line $LINENO "configure"
50909 /* confdefs.h.  */
50910 _ACEOF
50911 cat confdefs.h >>conftest.$ac_ext
50912 cat >>conftest.$ac_ext <<_ACEOF
50913 /* end confdefs.h.  */
50914 /* System header to define __stub macros and hopefully few prototypes,
50915     which can conflict with char $ac_func (); below.
50916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50917     <limits.h> exists even on freestanding compilers.  */
50918 #ifdef __STDC__
50919 # include <limits.h>
50920 #else
50921 # include <assert.h>
50922 #endif
50923 /* Override any gcc2 internal prototype to avoid an error.  */
50924 #ifdef __cplusplus
50925 extern "C"
50926 {
50927 #endif
50928 /* We use char because int might match the return type of a gcc2
50929    builtin and then its argument prototype would still apply.  */
50930 char $ac_func ();
50931 /* The GNU C library defines this for functions which it implements
50932     to always fail with ENOSYS.  Some functions are actually named
50933     something starting with __ and the normal name is an alias.  */
50934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50935 choke me
50936 #else
50937 char (*f) () = $ac_func;
50938 #endif
50939 #ifdef __cplusplus
50940 }
50941 #endif
50942
50943 int
50944 main ()
50945 {
50946 return f != $ac_func;
50947   ;
50948   return 0;
50949 }
50950 _ACEOF
50951 rm -f conftest.$ac_objext conftest$ac_exeext
50952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50953   (eval $ac_link) 2>&5
50954   ac_status=$?
50955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50956   (exit $ac_status); } &&
50957          { ac_try='test -s conftest$ac_exeext'
50958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50959   (eval $ac_try) 2>&5
50960   ac_status=$?
50961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50962   (exit $ac_status); }; }; then
50963   eval "$as_ac_var=yes"
50964 else
50965   echo "$as_me: failed program was:" >&5
50966 sed 's/^/| /' conftest.$ac_ext >&5
50967
50968 eval "$as_ac_var=no"
50969 fi
50970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
50971 fi
50972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50974 if test `eval echo '${'$as_ac_var'}'` = yes; then
50975   cat >>confdefs.h <<_ACEOF
50976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50977 _ACEOF
50978  ac_XPG2funcs=yes
50979 else
50980   ac_XPG2funcs=no
50981 fi
50982 done
50983
50984
50985     LIBS="$ac_save_LIBS"
50986
50987     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
50988 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
50989     if test x"$ac_has_iconv_h" = xyes &&
50990        test x"$ac_has_langinfo_h" = xyes &&
50991        test x"$ac_XPG2funcs" = xyes;
50992     then
50993       ac_XPG2_wchar_t=yes
50994     else
50995       ac_XPG2_wchar_t=no
50996     fi
50997     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
50998 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
50999
51000     # At the moment, only enable wchar_t specializations if all the
51001     # above support is present.
51002     if test x"$ac_isoC99_wchar_t" = xyes &&
51003        test x"$ac_XPG2_wchar_t" = xyes;
51004     then
51005       cat >>confdefs.h <<\_ACEOF
51006 #define _GLIBCXX_USE_WCHAR_T 1
51007 _ACEOF
51008
51009       enable_wchar_t=yes
51010     fi
51011   fi
51012   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
51013 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
51014   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
51015 echo "${ECHO_T}$enable_wchar_t" >&6
51016
51017     cat >>confdefs.h <<\_ACEOF
51018 #define HAVE_COPYSIGN 1
51019 _ACEOF
51020
51021     cat >>confdefs.h <<\_ACEOF
51022 #define HAVE_COPYSIGNF 1
51023 _ACEOF
51024
51025     cat >>confdefs.h <<\_ACEOF
51026 #define HAVE_FINITE 1
51027 _ACEOF
51028
51029     cat >>confdefs.h <<\_ACEOF
51030 #define HAVE_FINITEF 1
51031 _ACEOF
51032
51033     cat >>confdefs.h <<\_ACEOF
51034 #define HAVE_FREXPF 1
51035 _ACEOF
51036
51037     cat >>confdefs.h <<\_ACEOF
51038 #define HAVE_HYPOTF 1
51039 _ACEOF
51040
51041     cat >>confdefs.h <<\_ACEOF
51042 #define HAVE_ISINF 1
51043 _ACEOF
51044
51045     cat >>confdefs.h <<\_ACEOF
51046 #define HAVE_ISINFF 1
51047 _ACEOF
51048
51049     cat >>confdefs.h <<\_ACEOF
51050 #define HAVE_ISNAN 1
51051 _ACEOF
51052
51053     cat >>confdefs.h <<\_ACEOF
51054 #define HAVE_ISNANF 1
51055 _ACEOF
51056
51057     cat >>confdefs.h <<\_ACEOF
51058 #define HAVE_SINCOS 1
51059 _ACEOF
51060
51061     cat >>confdefs.h <<\_ACEOF
51062 #define HAVE_SINCOSF 1
51063 _ACEOF
51064
51065     if test x"long_double_math_on_this_cpu" = x"yes"; then
51066       cat >>confdefs.h <<\_ACEOF
51067 #define HAVE_FINITEL 1
51068 _ACEOF
51069
51070       cat >>confdefs.h <<\_ACEOF
51071 #define HAVE_HYPOTL 1
51072 _ACEOF
51073
51074       cat >>confdefs.h <<\_ACEOF
51075 #define HAVE_ISINFL 1
51076 _ACEOF
51077
51078       cat >>confdefs.h <<\_ACEOF
51079 #define HAVE_ISNANL 1
51080 _ACEOF
51081
51082     fi
51083     ;;
51084   *-mingw32*)
51085     #os_include_dir="os/mingw32"
51086
51087
51088
51089 for ac_header in sys/types.h locale.h float.h
51090 do
51091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51093   echo "$as_me:$LINENO: checking for $ac_header" >&5
51094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51096   echo $ECHO_N "(cached) $ECHO_C" >&6
51097 fi
51098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51100 else
51101   # Is the header compilable?
51102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51104 cat >conftest.$ac_ext <<_ACEOF
51105 #line $LINENO "configure"
51106 /* confdefs.h.  */
51107 _ACEOF
51108 cat confdefs.h >>conftest.$ac_ext
51109 cat >>conftest.$ac_ext <<_ACEOF
51110 /* end confdefs.h.  */
51111 $ac_includes_default
51112 #include <$ac_header>
51113 _ACEOF
51114 rm -f conftest.$ac_objext
51115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51116   (eval $ac_compile) 2>&5
51117   ac_status=$?
51118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51119   (exit $ac_status); } &&
51120          { ac_try='test -s conftest.$ac_objext'
51121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51122   (eval $ac_try) 2>&5
51123   ac_status=$?
51124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51125   (exit $ac_status); }; }; then
51126   ac_header_compiler=yes
51127 else
51128   echo "$as_me: failed program was:" >&5
51129 sed 's/^/| /' conftest.$ac_ext >&5
51130
51131 ac_header_compiler=no
51132 fi
51133 rm -f conftest.$ac_objext conftest.$ac_ext
51134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51135 echo "${ECHO_T}$ac_header_compiler" >&6
51136
51137 # Is the header present?
51138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51140 cat >conftest.$ac_ext <<_ACEOF
51141 #line $LINENO "configure"
51142 /* confdefs.h.  */
51143 _ACEOF
51144 cat confdefs.h >>conftest.$ac_ext
51145 cat >>conftest.$ac_ext <<_ACEOF
51146 /* end confdefs.h.  */
51147 #include <$ac_header>
51148 _ACEOF
51149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51151   ac_status=$?
51152   grep -v '^ *+' conftest.er1 >conftest.err
51153   rm -f conftest.er1
51154   cat conftest.err >&5
51155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51156   (exit $ac_status); } >/dev/null; then
51157   if test -s conftest.err; then
51158     ac_cpp_err=$ac_c_preproc_warn_flag
51159   else
51160     ac_cpp_err=
51161   fi
51162 else
51163   ac_cpp_err=yes
51164 fi
51165 if test -z "$ac_cpp_err"; then
51166   ac_header_preproc=yes
51167 else
51168   echo "$as_me: failed program was:" >&5
51169 sed 's/^/| /' conftest.$ac_ext >&5
51170
51171   ac_header_preproc=no
51172 fi
51173 rm -f conftest.err conftest.$ac_ext
51174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51175 echo "${ECHO_T}$ac_header_preproc" >&6
51176
51177 # So?  What about this header?
51178 case $ac_header_compiler:$ac_header_preproc in
51179   yes:no )
51180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51184     (
51185       cat <<\_ASBOX
51186 ## ------------------------------------ ##
51187 ## Report this to bug-autoconf@gnu.org. ##
51188 ## ------------------------------------ ##
51189 _ASBOX
51190     ) |
51191       sed "s/^/$as_me: WARNING:     /" >&2
51192     ;;
51193   no:yes )
51194     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51196     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51200     (
51201       cat <<\_ASBOX
51202 ## ------------------------------------ ##
51203 ## Report this to bug-autoconf@gnu.org. ##
51204 ## ------------------------------------ ##
51205 _ASBOX
51206     ) |
51207       sed "s/^/$as_me: WARNING:     /" >&2
51208     ;;
51209 esac
51210 echo "$as_me:$LINENO: checking for $ac_header" >&5
51211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51213   echo $ECHO_N "(cached) $ECHO_C" >&6
51214 else
51215   eval "$as_ac_Header=$ac_header_preproc"
51216 fi
51217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51219
51220 fi
51221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51222   cat >>confdefs.h <<_ACEOF
51223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51224 _ACEOF
51225
51226 fi
51227
51228 done
51229
51230
51231   # If we're not using GNU ld, then there's no point in even trying these
51232   # tests.  Check for that first.  We should have already tested for gld
51233   # by now (in libtool), but require it now just to be safe...
51234   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
51235   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
51236
51237
51238
51239   # The name set by libtool depends on the version of libtool.  Shame on us
51240   # for depending on an impl detail, but c'est la vie.  Older versions used
51241   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
51242   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
51243   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
51244   # set (hence we're using an older libtool), then set it.
51245   if test x${with_gnu_ld+set} != xset; then
51246     if test x${ac_cv_prog_gnu_ld+set} != xset; then
51247       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
51248       with_gnu_ld=no
51249     else
51250       with_gnu_ld=$ac_cv_prog_gnu_ld
51251     fi
51252   fi
51253
51254   # Start by getting the version number.  I think the libtool test already
51255   # does some of this, but throws away the result.
51256
51257   ldver=`$LD --version 2>/dev/null | head -1 | \
51258          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
51259
51260   glibcxx_gnu_ld_version=`echo $ldver | \
51261          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
51262
51263   # Set --gc-sections.
51264   if test "$with_gnu_ld" = "notbroken"; then
51265     # GNU ld it is!  Joy and bunny rabbits!
51266
51267     # All these tests are for C++; save the language and the compiler flags.
51268     # Need to do this so that g++ won't try to link in libstdc++
51269     ac_test_CFLAGS="${CFLAGS+set}"
51270     ac_save_CFLAGS="$CFLAGS"
51271     CFLAGS='-x c++  -Wl,--gc-sections'
51272
51273     # Check for -Wl,--gc-sections
51274     # XXX This test is broken at the moment, as symbols required for linking
51275     # are now in libsupc++ (not built yet).  In addition, this test has
51276     # cored on solaris in the past.  In addition, --gc-sections doesn't
51277     # really work at the moment (keeps on discarding used sections, first
51278     # .eh_frame and now some of the glibc sections for iconv).
51279     # Bzzzzt.  Thanks for playing, maybe next time.
51280     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
51281 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
51282     if test "$cross_compiling" = yes; then
51283   ac_sectionLDflags=yes
51284 else
51285   cat >conftest.$ac_ext <<_ACEOF
51286 #line $LINENO "configure"
51287 /* confdefs.h.  */
51288 _ACEOF
51289 cat confdefs.h >>conftest.$ac_ext
51290 cat >>conftest.$ac_ext <<_ACEOF
51291 /* end confdefs.h.  */
51292
51293      int main(void)
51294      {
51295        try { throw 1; }
51296        catch (...) { };
51297        return 0;
51298      }
51299
51300 _ACEOF
51301 rm -f conftest$ac_exeext
51302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51303   (eval $ac_link) 2>&5
51304   ac_status=$?
51305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51308   (eval $ac_try) 2>&5
51309   ac_status=$?
51310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51311   (exit $ac_status); }; }; then
51312   ac_sectionLDflags=yes
51313 else
51314   echo "$as_me: program exited with status $ac_status" >&5
51315 echo "$as_me: failed program was:" >&5
51316 sed 's/^/| /' conftest.$ac_ext >&5
51317
51318 ( exit $ac_status )
51319 ac_sectionLDflags=no
51320 fi
51321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51322 fi
51323     if test "$ac_test_CFLAGS" = set; then
51324       CFLAGS="$ac_save_CFLAGS"
51325     else
51326       # this is the suspicious part
51327       CFLAGS=''
51328     fi
51329     if test "$ac_sectionLDflags" = "yes"; then
51330       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
51331     fi
51332     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
51333 echo "${ECHO_T}$ac_sectionLDflags" >&6
51334   fi
51335
51336   # Set linker optimization flags.
51337   if test x"$with_gnu_ld" = x"yes"; then
51338     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
51339   fi
51340
51341
51342
51343
51344
51345
51346 echo "$as_me:$LINENO: checking for main in -lm" >&5
51347 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
51348 if test "${ac_cv_lib_m_main+set}" = set; then
51349   echo $ECHO_N "(cached) $ECHO_C" >&6
51350 else
51351   ac_check_lib_save_LIBS=$LIBS
51352 LIBS="-lm  $LIBS"
51353 cat >conftest.$ac_ext <<_ACEOF
51354 #line $LINENO "configure"
51355 /* confdefs.h.  */
51356 _ACEOF
51357 cat confdefs.h >>conftest.$ac_ext
51358 cat >>conftest.$ac_ext <<_ACEOF
51359 /* end confdefs.h.  */
51360
51361
51362 int
51363 main ()
51364 {
51365 main ();
51366   ;
51367   return 0;
51368 }
51369 _ACEOF
51370 rm -f conftest.$ac_objext conftest$ac_exeext
51371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51372   (eval $ac_link) 2>&5
51373   ac_status=$?
51374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51375   (exit $ac_status); } &&
51376          { ac_try='test -s conftest$ac_exeext'
51377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51378   (eval $ac_try) 2>&5
51379   ac_status=$?
51380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51381   (exit $ac_status); }; }; then
51382   ac_cv_lib_m_main=yes
51383 else
51384   echo "$as_me: failed program was:" >&5
51385 sed 's/^/| /' conftest.$ac_ext >&5
51386
51387 ac_cv_lib_m_main=no
51388 fi
51389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51390 LIBS=$ac_check_lib_save_LIBS
51391 fi
51392 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
51393 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
51394 if test $ac_cv_lib_m_main = yes; then
51395   cat >>confdefs.h <<_ACEOF
51396 #define HAVE_LIBM 1
51397 _ACEOF
51398
51399   LIBS="-lm $LIBS"
51400
51401 fi
51402
51403
51404
51405 for ac_func in nan copysignf
51406 do
51407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51408 echo "$as_me:$LINENO: checking for $ac_func" >&5
51409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51410 if eval "test \"\${$as_ac_var+set}\" = set"; then
51411   echo $ECHO_N "(cached) $ECHO_C" >&6
51412 else
51413   cat >conftest.$ac_ext <<_ACEOF
51414 #line $LINENO "configure"
51415 /* confdefs.h.  */
51416 _ACEOF
51417 cat confdefs.h >>conftest.$ac_ext
51418 cat >>conftest.$ac_ext <<_ACEOF
51419 /* end confdefs.h.  */
51420 /* System header to define __stub macros and hopefully few prototypes,
51421     which can conflict with char $ac_func (); below.
51422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51423     <limits.h> exists even on freestanding compilers.  */
51424 #ifdef __STDC__
51425 # include <limits.h>
51426 #else
51427 # include <assert.h>
51428 #endif
51429 /* Override any gcc2 internal prototype to avoid an error.  */
51430 #ifdef __cplusplus
51431 extern "C"
51432 {
51433 #endif
51434 /* We use char because int might match the return type of a gcc2
51435    builtin and then its argument prototype would still apply.  */
51436 char $ac_func ();
51437 /* The GNU C library defines this for functions which it implements
51438     to always fail with ENOSYS.  Some functions are actually named
51439     something starting with __ and the normal name is an alias.  */
51440 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51441 choke me
51442 #else
51443 char (*f) () = $ac_func;
51444 #endif
51445 #ifdef __cplusplus
51446 }
51447 #endif
51448
51449 int
51450 main ()
51451 {
51452 return f != $ac_func;
51453   ;
51454   return 0;
51455 }
51456 _ACEOF
51457 rm -f conftest.$ac_objext conftest$ac_exeext
51458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51459   (eval $ac_link) 2>&5
51460   ac_status=$?
51461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51462   (exit $ac_status); } &&
51463          { ac_try='test -s conftest$ac_exeext'
51464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51465   (eval $ac_try) 2>&5
51466   ac_status=$?
51467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51468   (exit $ac_status); }; }; then
51469   eval "$as_ac_var=yes"
51470 else
51471   echo "$as_me: failed program was:" >&5
51472 sed 's/^/| /' conftest.$ac_ext >&5
51473
51474 eval "$as_ac_var=no"
51475 fi
51476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51477 fi
51478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51479 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51480 if test `eval echo '${'$as_ac_var'}'` = yes; then
51481   cat >>confdefs.h <<_ACEOF
51482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51483 _ACEOF
51484
51485 else
51486   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
51487 fi
51488 done
51489
51490
51491
51492 for ac_func in __signbit
51493 do
51494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51495 echo "$as_me:$LINENO: checking for $ac_func" >&5
51496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51497 if eval "test \"\${$as_ac_var+set}\" = set"; then
51498   echo $ECHO_N "(cached) $ECHO_C" >&6
51499 else
51500   cat >conftest.$ac_ext <<_ACEOF
51501 #line $LINENO "configure"
51502 /* confdefs.h.  */
51503 _ACEOF
51504 cat confdefs.h >>conftest.$ac_ext
51505 cat >>conftest.$ac_ext <<_ACEOF
51506 /* end confdefs.h.  */
51507 /* System header to define __stub macros and hopefully few prototypes,
51508     which can conflict with char $ac_func (); below.
51509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51510     <limits.h> exists even on freestanding compilers.  */
51511 #ifdef __STDC__
51512 # include <limits.h>
51513 #else
51514 # include <assert.h>
51515 #endif
51516 /* Override any gcc2 internal prototype to avoid an error.  */
51517 #ifdef __cplusplus
51518 extern "C"
51519 {
51520 #endif
51521 /* We use char because int might match the return type of a gcc2
51522    builtin and then its argument prototype would still apply.  */
51523 char $ac_func ();
51524 /* The GNU C library defines this for functions which it implements
51525     to always fail with ENOSYS.  Some functions are actually named
51526     something starting with __ and the normal name is an alias.  */
51527 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51528 choke me
51529 #else
51530 char (*f) () = $ac_func;
51531 #endif
51532 #ifdef __cplusplus
51533 }
51534 #endif
51535
51536 int
51537 main ()
51538 {
51539 return f != $ac_func;
51540   ;
51541   return 0;
51542 }
51543 _ACEOF
51544 rm -f conftest.$ac_objext conftest$ac_exeext
51545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51546   (eval $ac_link) 2>&5
51547   ac_status=$?
51548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51549   (exit $ac_status); } &&
51550          { ac_try='test -s conftest$ac_exeext'
51551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51552   (eval $ac_try) 2>&5
51553   ac_status=$?
51554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51555   (exit $ac_status); }; }; then
51556   eval "$as_ac_var=yes"
51557 else
51558   echo "$as_me: failed program was:" >&5
51559 sed 's/^/| /' conftest.$ac_ext >&5
51560
51561 eval "$as_ac_var=no"
51562 fi
51563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51564 fi
51565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51567 if test `eval echo '${'$as_ac_var'}'` = yes; then
51568   cat >>confdefs.h <<_ACEOF
51569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51570 _ACEOF
51571
51572 else
51573   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
51574 fi
51575 done
51576
51577
51578 for ac_func in __signbitf
51579 do
51580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51581 echo "$as_me:$LINENO: checking for $ac_func" >&5
51582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51583 if eval "test \"\${$as_ac_var+set}\" = set"; then
51584   echo $ECHO_N "(cached) $ECHO_C" >&6
51585 else
51586   cat >conftest.$ac_ext <<_ACEOF
51587 #line $LINENO "configure"
51588 /* confdefs.h.  */
51589 _ACEOF
51590 cat confdefs.h >>conftest.$ac_ext
51591 cat >>conftest.$ac_ext <<_ACEOF
51592 /* end confdefs.h.  */
51593 /* System header to define __stub macros and hopefully few prototypes,
51594     which can conflict with char $ac_func (); below.
51595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51596     <limits.h> exists even on freestanding compilers.  */
51597 #ifdef __STDC__
51598 # include <limits.h>
51599 #else
51600 # include <assert.h>
51601 #endif
51602 /* Override any gcc2 internal prototype to avoid an error.  */
51603 #ifdef __cplusplus
51604 extern "C"
51605 {
51606 #endif
51607 /* We use char because int might match the return type of a gcc2
51608    builtin and then its argument prototype would still apply.  */
51609 char $ac_func ();
51610 /* The GNU C library defines this for functions which it implements
51611     to always fail with ENOSYS.  Some functions are actually named
51612     something starting with __ and the normal name is an alias.  */
51613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51614 choke me
51615 #else
51616 char (*f) () = $ac_func;
51617 #endif
51618 #ifdef __cplusplus
51619 }
51620 #endif
51621
51622 int
51623 main ()
51624 {
51625 return f != $ac_func;
51626   ;
51627   return 0;
51628 }
51629 _ACEOF
51630 rm -f conftest.$ac_objext conftest$ac_exeext
51631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51632   (eval $ac_link) 2>&5
51633   ac_status=$?
51634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51635   (exit $ac_status); } &&
51636          { ac_try='test -s conftest$ac_exeext'
51637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51638   (eval $ac_try) 2>&5
51639   ac_status=$?
51640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51641   (exit $ac_status); }; }; then
51642   eval "$as_ac_var=yes"
51643 else
51644   echo "$as_me: failed program was:" >&5
51645 sed 's/^/| /' conftest.$ac_ext >&5
51646
51647 eval "$as_ac_var=no"
51648 fi
51649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51650 fi
51651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51653 if test `eval echo '${'$as_ac_var'}'` = yes; then
51654   cat >>confdefs.h <<_ACEOF
51655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51656 _ACEOF
51657
51658 else
51659   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
51660 fi
51661 done
51662
51663
51664           if test x$ac_cv_func_copysignl = x"yes"; then
51665
51666 for ac_func in __signbitl
51667 do
51668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51669 echo "$as_me:$LINENO: checking for $ac_func" >&5
51670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51671 if eval "test \"\${$as_ac_var+set}\" = set"; then
51672   echo $ECHO_N "(cached) $ECHO_C" >&6
51673 else
51674   cat >conftest.$ac_ext <<_ACEOF
51675 #line $LINENO "configure"
51676 /* confdefs.h.  */
51677 _ACEOF
51678 cat confdefs.h >>conftest.$ac_ext
51679 cat >>conftest.$ac_ext <<_ACEOF
51680 /* end confdefs.h.  */
51681 /* System header to define __stub macros and hopefully few prototypes,
51682     which can conflict with char $ac_func (); below.
51683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51684     <limits.h> exists even on freestanding compilers.  */
51685 #ifdef __STDC__
51686 # include <limits.h>
51687 #else
51688 # include <assert.h>
51689 #endif
51690 /* Override any gcc2 internal prototype to avoid an error.  */
51691 #ifdef __cplusplus
51692 extern "C"
51693 {
51694 #endif
51695 /* We use char because int might match the return type of a gcc2
51696    builtin and then its argument prototype would still apply.  */
51697 char $ac_func ();
51698 /* The GNU C library defines this for functions which it implements
51699     to always fail with ENOSYS.  Some functions are actually named
51700     something starting with __ and the normal name is an alias.  */
51701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51702 choke me
51703 #else
51704 char (*f) () = $ac_func;
51705 #endif
51706 #ifdef __cplusplus
51707 }
51708 #endif
51709
51710 int
51711 main ()
51712 {
51713 return f != $ac_func;
51714   ;
51715   return 0;
51716 }
51717 _ACEOF
51718 rm -f conftest.$ac_objext conftest$ac_exeext
51719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51720   (eval $ac_link) 2>&5
51721   ac_status=$?
51722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51723   (exit $ac_status); } &&
51724          { ac_try='test -s conftest$ac_exeext'
51725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51726   (eval $ac_try) 2>&5
51727   ac_status=$?
51728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51729   (exit $ac_status); }; }; then
51730   eval "$as_ac_var=yes"
51731 else
51732   echo "$as_me: failed program was:" >&5
51733 sed 's/^/| /' conftest.$ac_ext >&5
51734
51735 eval "$as_ac_var=no"
51736 fi
51737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
51738 fi
51739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51741 if test `eval echo '${'$as_ac_var'}'` = yes; then
51742   cat >>confdefs.h <<_ACEOF
51743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51744 _ACEOF
51745
51746 else
51747   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
51748 fi
51749 done
51750
51751   fi
51752
51753   # XXX Review this.  Nothing uses it.
51754   if test -n "$LIBMATHOBJS"; then
51755     need_libmath=yes
51756   fi
51757
51758
51759
51760   # Test wchar.h for mbstate_t, which is needed for char_traits and
51761   # others even if wchar_t support is not on.
51762   echo "$as_me:$LINENO: checking for mbstate_t" >&5
51763 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
51764   cat >conftest.$ac_ext <<_ACEOF
51765 #line $LINENO "configure"
51766 /* confdefs.h.  */
51767 _ACEOF
51768 cat confdefs.h >>conftest.$ac_ext
51769 cat >>conftest.$ac_ext <<_ACEOF
51770 /* end confdefs.h.  */
51771 #include <wchar.h>
51772 int
51773 main ()
51774 {
51775 mbstate_t teststate;
51776   ;
51777   return 0;
51778 }
51779 _ACEOF
51780 rm -f conftest.$ac_objext
51781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51782   (eval $ac_compile) 2>&5
51783   ac_status=$?
51784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51785   (exit $ac_status); } &&
51786          { ac_try='test -s conftest.$ac_objext'
51787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51788   (eval $ac_try) 2>&5
51789   ac_status=$?
51790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51791   (exit $ac_status); }; }; then
51792   have_mbstate_t=yes
51793 else
51794   echo "$as_me: failed program was:" >&5
51795 sed 's/^/| /' conftest.$ac_ext >&5
51796
51797 have_mbstate_t=no
51798 fi
51799 rm -f conftest.$ac_objext conftest.$ac_ext
51800   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
51801 echo "${ECHO_T}$have_mbstate_t" >&6
51802   if test x"$have_mbstate_t" = xyes; then
51803     cat >>confdefs.h <<\_ACEOF
51804 #define HAVE_MBSTATE_T 1
51805 _ACEOF
51806
51807   fi
51808
51809   # Sanity check for existence of ISO C99 headers for extended encoding.
51810
51811 for ac_header in wchar.h
51812 do
51813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51815   echo "$as_me:$LINENO: checking for $ac_header" >&5
51816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51818   echo $ECHO_N "(cached) $ECHO_C" >&6
51819 fi
51820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51822 else
51823   # Is the header compilable?
51824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51826 cat >conftest.$ac_ext <<_ACEOF
51827 #line $LINENO "configure"
51828 /* confdefs.h.  */
51829 _ACEOF
51830 cat confdefs.h >>conftest.$ac_ext
51831 cat >>conftest.$ac_ext <<_ACEOF
51832 /* end confdefs.h.  */
51833 $ac_includes_default
51834 #include <$ac_header>
51835 _ACEOF
51836 rm -f conftest.$ac_objext
51837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51838   (eval $ac_compile) 2>&5
51839   ac_status=$?
51840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51841   (exit $ac_status); } &&
51842          { ac_try='test -s conftest.$ac_objext'
51843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51844   (eval $ac_try) 2>&5
51845   ac_status=$?
51846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51847   (exit $ac_status); }; }; then
51848   ac_header_compiler=yes
51849 else
51850   echo "$as_me: failed program was:" >&5
51851 sed 's/^/| /' conftest.$ac_ext >&5
51852
51853 ac_header_compiler=no
51854 fi
51855 rm -f conftest.$ac_objext conftest.$ac_ext
51856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51857 echo "${ECHO_T}$ac_header_compiler" >&6
51858
51859 # Is the header present?
51860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51862 cat >conftest.$ac_ext <<_ACEOF
51863 #line $LINENO "configure"
51864 /* confdefs.h.  */
51865 _ACEOF
51866 cat confdefs.h >>conftest.$ac_ext
51867 cat >>conftest.$ac_ext <<_ACEOF
51868 /* end confdefs.h.  */
51869 #include <$ac_header>
51870 _ACEOF
51871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51872   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51873   ac_status=$?
51874   grep -v '^ *+' conftest.er1 >conftest.err
51875   rm -f conftest.er1
51876   cat conftest.err >&5
51877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51878   (exit $ac_status); } >/dev/null; then
51879   if test -s conftest.err; then
51880     ac_cpp_err=$ac_c_preproc_warn_flag
51881   else
51882     ac_cpp_err=
51883   fi
51884 else
51885   ac_cpp_err=yes
51886 fi
51887 if test -z "$ac_cpp_err"; then
51888   ac_header_preproc=yes
51889 else
51890   echo "$as_me: failed program was:" >&5
51891 sed 's/^/| /' conftest.$ac_ext >&5
51892
51893   ac_header_preproc=no
51894 fi
51895 rm -f conftest.err conftest.$ac_ext
51896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51897 echo "${ECHO_T}$ac_header_preproc" >&6
51898
51899 # So?  What about this header?
51900 case $ac_header_compiler:$ac_header_preproc in
51901   yes:no )
51902     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51906     (
51907       cat <<\_ASBOX
51908 ## ------------------------------------ ##
51909 ## Report this to bug-autoconf@gnu.org. ##
51910 ## ------------------------------------ ##
51911 _ASBOX
51912     ) |
51913       sed "s/^/$as_me: WARNING:     /" >&2
51914     ;;
51915   no:yes )
51916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51918     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51922     (
51923       cat <<\_ASBOX
51924 ## ------------------------------------ ##
51925 ## Report this to bug-autoconf@gnu.org. ##
51926 ## ------------------------------------ ##
51927 _ASBOX
51928     ) |
51929       sed "s/^/$as_me: WARNING:     /" >&2
51930     ;;
51931 esac
51932 echo "$as_me:$LINENO: checking for $ac_header" >&5
51933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51935   echo $ECHO_N "(cached) $ECHO_C" >&6
51936 else
51937   eval "$as_ac_Header=$ac_header_preproc"
51938 fi
51939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51941
51942 fi
51943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51944   cat >>confdefs.h <<_ACEOF
51945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51946 _ACEOF
51947  ac_has_wchar_h=yes
51948 else
51949   ac_has_wchar_h=no
51950 fi
51951
51952 done
51953
51954
51955 for ac_header in wctype.h
51956 do
51957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51959   echo "$as_me:$LINENO: checking for $ac_header" >&5
51960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51962   echo $ECHO_N "(cached) $ECHO_C" >&6
51963 fi
51964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51966 else
51967   # Is the header compilable?
51968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51970 cat >conftest.$ac_ext <<_ACEOF
51971 #line $LINENO "configure"
51972 /* confdefs.h.  */
51973 _ACEOF
51974 cat confdefs.h >>conftest.$ac_ext
51975 cat >>conftest.$ac_ext <<_ACEOF
51976 /* end confdefs.h.  */
51977 $ac_includes_default
51978 #include <$ac_header>
51979 _ACEOF
51980 rm -f conftest.$ac_objext
51981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51982   (eval $ac_compile) 2>&5
51983   ac_status=$?
51984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51985   (exit $ac_status); } &&
51986          { ac_try='test -s conftest.$ac_objext'
51987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51988   (eval $ac_try) 2>&5
51989   ac_status=$?
51990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51991   (exit $ac_status); }; }; then
51992   ac_header_compiler=yes
51993 else
51994   echo "$as_me: failed program was:" >&5
51995 sed 's/^/| /' conftest.$ac_ext >&5
51996
51997 ac_header_compiler=no
51998 fi
51999 rm -f conftest.$ac_objext conftest.$ac_ext
52000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52001 echo "${ECHO_T}$ac_header_compiler" >&6
52002
52003 # Is the header present?
52004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52006 cat >conftest.$ac_ext <<_ACEOF
52007 #line $LINENO "configure"
52008 /* confdefs.h.  */
52009 _ACEOF
52010 cat confdefs.h >>conftest.$ac_ext
52011 cat >>conftest.$ac_ext <<_ACEOF
52012 /* end confdefs.h.  */
52013 #include <$ac_header>
52014 _ACEOF
52015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52017   ac_status=$?
52018   grep -v '^ *+' conftest.er1 >conftest.err
52019   rm -f conftest.er1
52020   cat conftest.err >&5
52021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52022   (exit $ac_status); } >/dev/null; then
52023   if test -s conftest.err; then
52024     ac_cpp_err=$ac_c_preproc_warn_flag
52025   else
52026     ac_cpp_err=
52027   fi
52028 else
52029   ac_cpp_err=yes
52030 fi
52031 if test -z "$ac_cpp_err"; then
52032   ac_header_preproc=yes
52033 else
52034   echo "$as_me: failed program was:" >&5
52035 sed 's/^/| /' conftest.$ac_ext >&5
52036
52037   ac_header_preproc=no
52038 fi
52039 rm -f conftest.err conftest.$ac_ext
52040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52041 echo "${ECHO_T}$ac_header_preproc" >&6
52042
52043 # So?  What about this header?
52044 case $ac_header_compiler:$ac_header_preproc in
52045   yes:no )
52046     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52050     (
52051       cat <<\_ASBOX
52052 ## ------------------------------------ ##
52053 ## Report this to bug-autoconf@gnu.org. ##
52054 ## ------------------------------------ ##
52055 _ASBOX
52056     ) |
52057       sed "s/^/$as_me: WARNING:     /" >&2
52058     ;;
52059   no:yes )
52060     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52061 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52062     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
52063 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
52064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52066     (
52067       cat <<\_ASBOX
52068 ## ------------------------------------ ##
52069 ## Report this to bug-autoconf@gnu.org. ##
52070 ## ------------------------------------ ##
52071 _ASBOX
52072     ) |
52073       sed "s/^/$as_me: WARNING:     /" >&2
52074     ;;
52075 esac
52076 echo "$as_me:$LINENO: checking for $ac_header" >&5
52077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52079   echo $ECHO_N "(cached) $ECHO_C" >&6
52080 else
52081   eval "$as_ac_Header=$ac_header_preproc"
52082 fi
52083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52085
52086 fi
52087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52088   cat >>confdefs.h <<_ACEOF
52089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52090 _ACEOF
52091  ac_has_wctype_h=yes
52092 else
52093   ac_has_wctype_h=no
52094 fi
52095
52096 done
52097
52098
52099   # Only continue checking if the ISO C99 headers exist and support is on.
52100   if test x"$ac_has_wchar_h" = xyes &&
52101      test x"$ac_has_wctype_h" = xyes &&
52102      test x"$enable_c_mbchar" != xno; then
52103
52104     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
52105     # numeric_limits can instantiate type_traits<wchar_t>
52106     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
52107 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
52108     cat >conftest.$ac_ext <<_ACEOF
52109 #line $LINENO "configure"
52110 /* confdefs.h.  */
52111 _ACEOF
52112 cat confdefs.h >>conftest.$ac_ext
52113 cat >>conftest.$ac_ext <<_ACEOF
52114 /* end confdefs.h.  */
52115 #include <wchar.h>
52116 int
52117 main ()
52118 {
52119 int i = WCHAR_MIN; int j = WCHAR_MAX;
52120   ;
52121   return 0;
52122 }
52123 _ACEOF
52124 rm -f conftest.$ac_objext
52125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52126   (eval $ac_compile) 2>&5
52127   ac_status=$?
52128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52129   (exit $ac_status); } &&
52130          { ac_try='test -s conftest.$ac_objext'
52131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52132   (eval $ac_try) 2>&5
52133   ac_status=$?
52134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52135   (exit $ac_status); }; }; then
52136   has_wchar_minmax=yes
52137 else
52138   echo "$as_me: failed program was:" >&5
52139 sed 's/^/| /' conftest.$ac_ext >&5
52140
52141 has_wchar_minmax=no
52142 fi
52143 rm -f conftest.$ac_objext conftest.$ac_ext
52144     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
52145 echo "${ECHO_T}$has_wchar_minmax" >&6
52146
52147     # Test wchar.h for WEOF, which is what we use to determine whether
52148     # to specialize for char_traits<wchar_t> or not.
52149     echo "$as_me:$LINENO: checking for WEOF" >&5
52150 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
52151     cat >conftest.$ac_ext <<_ACEOF
52152 #line $LINENO "configure"
52153 /* confdefs.h.  */
52154 _ACEOF
52155 cat confdefs.h >>conftest.$ac_ext
52156 cat >>conftest.$ac_ext <<_ACEOF
52157 /* end confdefs.h.  */
52158
52159       #include <wchar.h>
52160       #include <stddef.h>
52161 int
52162 main ()
52163 {
52164 wint_t i = WEOF;
52165   ;
52166   return 0;
52167 }
52168 _ACEOF
52169 rm -f conftest.$ac_objext
52170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52171   (eval $ac_compile) 2>&5
52172   ac_status=$?
52173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52174   (exit $ac_status); } &&
52175          { ac_try='test -s conftest.$ac_objext'
52176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52177   (eval $ac_try) 2>&5
52178   ac_status=$?
52179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52180   (exit $ac_status); }; }; then
52181   has_weof=yes
52182 else
52183   echo "$as_me: failed program was:" >&5
52184 sed 's/^/| /' conftest.$ac_ext >&5
52185
52186 has_weof=no
52187 fi
52188 rm -f conftest.$ac_objext conftest.$ac_ext
52189     echo "$as_me:$LINENO: result: $has_weof" >&5
52190 echo "${ECHO_T}$has_weof" >&6
52191
52192     # Tests for wide character functions used in char_traits<wchar_t>.
52193     ac_wfuncs=yes
52194
52195
52196
52197
52198
52199
52200 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
52201 do
52202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52203 echo "$as_me:$LINENO: checking for $ac_func" >&5
52204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52205 if eval "test \"\${$as_ac_var+set}\" = set"; then
52206   echo $ECHO_N "(cached) $ECHO_C" >&6
52207 else
52208   cat >conftest.$ac_ext <<_ACEOF
52209 #line $LINENO "configure"
52210 /* confdefs.h.  */
52211 _ACEOF
52212 cat confdefs.h >>conftest.$ac_ext
52213 cat >>conftest.$ac_ext <<_ACEOF
52214 /* end confdefs.h.  */
52215 /* System header to define __stub macros and hopefully few prototypes,
52216     which can conflict with char $ac_func (); below.
52217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52218     <limits.h> exists even on freestanding compilers.  */
52219 #ifdef __STDC__
52220 # include <limits.h>
52221 #else
52222 # include <assert.h>
52223 #endif
52224 /* Override any gcc2 internal prototype to avoid an error.  */
52225 #ifdef __cplusplus
52226 extern "C"
52227 {
52228 #endif
52229 /* We use char because int might match the return type of a gcc2
52230    builtin and then its argument prototype would still apply.  */
52231 char $ac_func ();
52232 /* The GNU C library defines this for functions which it implements
52233     to always fail with ENOSYS.  Some functions are actually named
52234     something starting with __ and the normal name is an alias.  */
52235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52236 choke me
52237 #else
52238 char (*f) () = $ac_func;
52239 #endif
52240 #ifdef __cplusplus
52241 }
52242 #endif
52243
52244 int
52245 main ()
52246 {
52247 return f != $ac_func;
52248   ;
52249   return 0;
52250 }
52251 _ACEOF
52252 rm -f conftest.$ac_objext conftest$ac_exeext
52253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52254   (eval $ac_link) 2>&5
52255   ac_status=$?
52256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52257   (exit $ac_status); } &&
52258          { ac_try='test -s conftest$ac_exeext'
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   eval "$as_ac_var=yes"
52265 else
52266   echo "$as_me: failed program was:" >&5
52267 sed 's/^/| /' conftest.$ac_ext >&5
52268
52269 eval "$as_ac_var=no"
52270 fi
52271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52272 fi
52273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52275 if test `eval echo '${'$as_ac_var'}'` = yes; then
52276   cat >>confdefs.h <<_ACEOF
52277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52278 _ACEOF
52279
52280 else
52281   ac_wfuncs=no
52282 fi
52283 done
52284
52285
52286     # Checks for names injected into std:: by the c_std headers.
52287
52288
52289
52290
52291
52292
52293
52294
52295
52296
52297
52298
52299
52300
52301
52302
52303
52304
52305
52306
52307
52308
52309
52310
52311
52312
52313
52314
52315
52316
52317
52318
52319
52320
52321
52322
52323
52324
52325
52326
52327
52328
52329
52330
52331
52332
52333
52334
52335
52336
52337 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
52338     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
52339     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
52340     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
52341     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
52342     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
52343 do
52344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52345 echo "$as_me:$LINENO: checking for $ac_func" >&5
52346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52347 if eval "test \"\${$as_ac_var+set}\" = set"; then
52348   echo $ECHO_N "(cached) $ECHO_C" >&6
52349 else
52350   cat >conftest.$ac_ext <<_ACEOF
52351 #line $LINENO "configure"
52352 /* confdefs.h.  */
52353 _ACEOF
52354 cat confdefs.h >>conftest.$ac_ext
52355 cat >>conftest.$ac_ext <<_ACEOF
52356 /* end confdefs.h.  */
52357 /* System header to define __stub macros and hopefully few prototypes,
52358     which can conflict with char $ac_func (); below.
52359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52360     <limits.h> exists even on freestanding compilers.  */
52361 #ifdef __STDC__
52362 # include <limits.h>
52363 #else
52364 # include <assert.h>
52365 #endif
52366 /* Override any gcc2 internal prototype to avoid an error.  */
52367 #ifdef __cplusplus
52368 extern "C"
52369 {
52370 #endif
52371 /* We use char because int might match the return type of a gcc2
52372    builtin and then its argument prototype would still apply.  */
52373 char $ac_func ();
52374 /* The GNU C library defines this for functions which it implements
52375     to always fail with ENOSYS.  Some functions are actually named
52376     something starting with __ and the normal name is an alias.  */
52377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52378 choke me
52379 #else
52380 char (*f) () = $ac_func;
52381 #endif
52382 #ifdef __cplusplus
52383 }
52384 #endif
52385
52386 int
52387 main ()
52388 {
52389 return f != $ac_func;
52390   ;
52391   return 0;
52392 }
52393 _ACEOF
52394 rm -f conftest.$ac_objext conftest$ac_exeext
52395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52396   (eval $ac_link) 2>&5
52397   ac_status=$?
52398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52399   (exit $ac_status); } &&
52400          { ac_try='test -s conftest$ac_exeext'
52401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52402   (eval $ac_try) 2>&5
52403   ac_status=$?
52404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52405   (exit $ac_status); }; }; then
52406   eval "$as_ac_var=yes"
52407 else
52408   echo "$as_me: failed program was:" >&5
52409 sed 's/^/| /' conftest.$ac_ext >&5
52410
52411 eval "$as_ac_var=no"
52412 fi
52413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52414 fi
52415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52416 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52417 if test `eval echo '${'$as_ac_var'}'` = yes; then
52418   cat >>confdefs.h <<_ACEOF
52419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52420 _ACEOF
52421
52422 else
52423   ac_wfuncs=no
52424 fi
52425 done
52426
52427
52428     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
52429 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
52430     if test x"$has_weof" = xyes &&
52431        test x"$has_wchar_minmax" = xyes &&
52432        test x"$ac_wfuncs" = xyes;
52433     then
52434       ac_isoC99_wchar_t=yes
52435     else
52436       ac_isoC99_wchar_t=no
52437     fi
52438     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
52439 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
52440
52441     # Use iconv for wchar_t to char conversions. As such, check for
52442     # X/Open Portability Guide, version 2 features (XPG2).
52443     if test "${ac_cv_header_iconv_h+set}" = set; then
52444   echo "$as_me:$LINENO: checking for iconv.h" >&5
52445 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52446 if test "${ac_cv_header_iconv_h+set}" = set; then
52447   echo $ECHO_N "(cached) $ECHO_C" >&6
52448 fi
52449 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52450 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52451 else
52452   # Is the header compilable?
52453 echo "$as_me:$LINENO: checking iconv.h usability" >&5
52454 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
52455 cat >conftest.$ac_ext <<_ACEOF
52456 #line $LINENO "configure"
52457 /* confdefs.h.  */
52458 _ACEOF
52459 cat confdefs.h >>conftest.$ac_ext
52460 cat >>conftest.$ac_ext <<_ACEOF
52461 /* end confdefs.h.  */
52462 $ac_includes_default
52463 #include <iconv.h>
52464 _ACEOF
52465 rm -f conftest.$ac_objext
52466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52467   (eval $ac_compile) 2>&5
52468   ac_status=$?
52469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52470   (exit $ac_status); } &&
52471          { ac_try='test -s conftest.$ac_objext'
52472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52473   (eval $ac_try) 2>&5
52474   ac_status=$?
52475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52476   (exit $ac_status); }; }; then
52477   ac_header_compiler=yes
52478 else
52479   echo "$as_me: failed program was:" >&5
52480 sed 's/^/| /' conftest.$ac_ext >&5
52481
52482 ac_header_compiler=no
52483 fi
52484 rm -f conftest.$ac_objext conftest.$ac_ext
52485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52486 echo "${ECHO_T}$ac_header_compiler" >&6
52487
52488 # Is the header present?
52489 echo "$as_me:$LINENO: checking iconv.h presence" >&5
52490 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
52491 cat >conftest.$ac_ext <<_ACEOF
52492 #line $LINENO "configure"
52493 /* confdefs.h.  */
52494 _ACEOF
52495 cat confdefs.h >>conftest.$ac_ext
52496 cat >>conftest.$ac_ext <<_ACEOF
52497 /* end confdefs.h.  */
52498 #include <iconv.h>
52499 _ACEOF
52500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52502   ac_status=$?
52503   grep -v '^ *+' conftest.er1 >conftest.err
52504   rm -f conftest.er1
52505   cat conftest.err >&5
52506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52507   (exit $ac_status); } >/dev/null; then
52508   if test -s conftest.err; then
52509     ac_cpp_err=$ac_c_preproc_warn_flag
52510   else
52511     ac_cpp_err=
52512   fi
52513 else
52514   ac_cpp_err=yes
52515 fi
52516 if test -z "$ac_cpp_err"; then
52517   ac_header_preproc=yes
52518 else
52519   echo "$as_me: failed program was:" >&5
52520 sed 's/^/| /' conftest.$ac_ext >&5
52521
52522   ac_header_preproc=no
52523 fi
52524 rm -f conftest.err conftest.$ac_ext
52525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52526 echo "${ECHO_T}$ac_header_preproc" >&6
52527
52528 # So?  What about this header?
52529 case $ac_header_compiler:$ac_header_preproc in
52530   yes:no )
52531     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
52532 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52533     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52534 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52535     (
52536       cat <<\_ASBOX
52537 ## ------------------------------------ ##
52538 ## Report this to bug-autoconf@gnu.org. ##
52539 ## ------------------------------------ ##
52540 _ASBOX
52541     ) |
52542       sed "s/^/$as_me: WARNING:     /" >&2
52543     ;;
52544   no:yes )
52545     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
52546 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
52547     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
52548 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
52549     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
52550 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
52551     (
52552       cat <<\_ASBOX
52553 ## ------------------------------------ ##
52554 ## Report this to bug-autoconf@gnu.org. ##
52555 ## ------------------------------------ ##
52556 _ASBOX
52557     ) |
52558       sed "s/^/$as_me: WARNING:     /" >&2
52559     ;;
52560 esac
52561 echo "$as_me:$LINENO: checking for iconv.h" >&5
52562 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
52563 if test "${ac_cv_header_iconv_h+set}" = set; then
52564   echo $ECHO_N "(cached) $ECHO_C" >&6
52565 else
52566   ac_cv_header_iconv_h=$ac_header_preproc
52567 fi
52568 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
52569 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
52570
52571 fi
52572 if test $ac_cv_header_iconv_h = yes; then
52573   ac_has_iconv_h=yes
52574 else
52575   ac_has_iconv_h=no
52576 fi
52577
52578
52579     if test "${ac_cv_header_langinfo_h+set}" = set; then
52580   echo "$as_me:$LINENO: checking for langinfo.h" >&5
52581 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52582 if test "${ac_cv_header_langinfo_h+set}" = set; then
52583   echo $ECHO_N "(cached) $ECHO_C" >&6
52584 fi
52585 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52586 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52587 else
52588   # Is the header compilable?
52589 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
52590 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
52591 cat >conftest.$ac_ext <<_ACEOF
52592 #line $LINENO "configure"
52593 /* confdefs.h.  */
52594 _ACEOF
52595 cat confdefs.h >>conftest.$ac_ext
52596 cat >>conftest.$ac_ext <<_ACEOF
52597 /* end confdefs.h.  */
52598 $ac_includes_default
52599 #include <langinfo.h>
52600 _ACEOF
52601 rm -f conftest.$ac_objext
52602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52603   (eval $ac_compile) 2>&5
52604   ac_status=$?
52605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52606   (exit $ac_status); } &&
52607          { ac_try='test -s conftest.$ac_objext'
52608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52609   (eval $ac_try) 2>&5
52610   ac_status=$?
52611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52612   (exit $ac_status); }; }; then
52613   ac_header_compiler=yes
52614 else
52615   echo "$as_me: failed program was:" >&5
52616 sed 's/^/| /' conftest.$ac_ext >&5
52617
52618 ac_header_compiler=no
52619 fi
52620 rm -f conftest.$ac_objext conftest.$ac_ext
52621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52622 echo "${ECHO_T}$ac_header_compiler" >&6
52623
52624 # Is the header present?
52625 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
52626 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
52627 cat >conftest.$ac_ext <<_ACEOF
52628 #line $LINENO "configure"
52629 /* confdefs.h.  */
52630 _ACEOF
52631 cat confdefs.h >>conftest.$ac_ext
52632 cat >>conftest.$ac_ext <<_ACEOF
52633 /* end confdefs.h.  */
52634 #include <langinfo.h>
52635 _ACEOF
52636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52637   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52638   ac_status=$?
52639   grep -v '^ *+' conftest.er1 >conftest.err
52640   rm -f conftest.er1
52641   cat conftest.err >&5
52642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52643   (exit $ac_status); } >/dev/null; then
52644   if test -s conftest.err; then
52645     ac_cpp_err=$ac_c_preproc_warn_flag
52646   else
52647     ac_cpp_err=
52648   fi
52649 else
52650   ac_cpp_err=yes
52651 fi
52652 if test -z "$ac_cpp_err"; then
52653   ac_header_preproc=yes
52654 else
52655   echo "$as_me: failed program was:" >&5
52656 sed 's/^/| /' conftest.$ac_ext >&5
52657
52658   ac_header_preproc=no
52659 fi
52660 rm -f conftest.err conftest.$ac_ext
52661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52662 echo "${ECHO_T}$ac_header_preproc" >&6
52663
52664 # So?  What about this header?
52665 case $ac_header_compiler:$ac_header_preproc in
52666   yes:no )
52667     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
52668 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
52669     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52670 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52671     (
52672       cat <<\_ASBOX
52673 ## ------------------------------------ ##
52674 ## Report this to bug-autoconf@gnu.org. ##
52675 ## ------------------------------------ ##
52676 _ASBOX
52677     ) |
52678       sed "s/^/$as_me: WARNING:     /" >&2
52679     ;;
52680   no:yes )
52681     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
52682 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
52683     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
52684 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
52685     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
52686 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
52687     (
52688       cat <<\_ASBOX
52689 ## ------------------------------------ ##
52690 ## Report this to bug-autoconf@gnu.org. ##
52691 ## ------------------------------------ ##
52692 _ASBOX
52693     ) |
52694       sed "s/^/$as_me: WARNING:     /" >&2
52695     ;;
52696 esac
52697 echo "$as_me:$LINENO: checking for langinfo.h" >&5
52698 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
52699 if test "${ac_cv_header_langinfo_h+set}" = set; then
52700   echo $ECHO_N "(cached) $ECHO_C" >&6
52701 else
52702   ac_cv_header_langinfo_h=$ac_header_preproc
52703 fi
52704 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
52705 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
52706
52707 fi
52708 if test $ac_cv_header_langinfo_h = yes; then
52709   ac_has_langinfo_h=yes
52710 else
52711   ac_has_langinfo_h=no
52712 fi
52713
52714
52715
52716     # Check for existence of libiconv.a providing XPG2 wchar_t support.
52717     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
52718 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
52719 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
52720   echo $ECHO_N "(cached) $ECHO_C" >&6
52721 else
52722   ac_check_lib_save_LIBS=$LIBS
52723 LIBS="-liconv  $LIBS"
52724 cat >conftest.$ac_ext <<_ACEOF
52725 #line $LINENO "configure"
52726 /* confdefs.h.  */
52727 _ACEOF
52728 cat confdefs.h >>conftest.$ac_ext
52729 cat >>conftest.$ac_ext <<_ACEOF
52730 /* end confdefs.h.  */
52731
52732 /* Override any gcc2 internal prototype to avoid an error.  */
52733 #ifdef __cplusplus
52734 extern "C"
52735 #endif
52736 /* We use char because int might match the return type of a gcc2
52737    builtin and then its argument prototype would still apply.  */
52738 char iconv ();
52739 int
52740 main ()
52741 {
52742 iconv ();
52743   ;
52744   return 0;
52745 }
52746 _ACEOF
52747 rm -f conftest.$ac_objext conftest$ac_exeext
52748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52749   (eval $ac_link) 2>&5
52750   ac_status=$?
52751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52752   (exit $ac_status); } &&
52753          { ac_try='test -s conftest$ac_exeext'
52754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52755   (eval $ac_try) 2>&5
52756   ac_status=$?
52757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52758   (exit $ac_status); }; }; then
52759   ac_cv_lib_iconv_iconv=yes
52760 else
52761   echo "$as_me: failed program was:" >&5
52762 sed 's/^/| /' conftest.$ac_ext >&5
52763
52764 ac_cv_lib_iconv_iconv=no
52765 fi
52766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52767 LIBS=$ac_check_lib_save_LIBS
52768 fi
52769 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
52770 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
52771 if test $ac_cv_lib_iconv_iconv = yes; then
52772   libiconv="-liconv"
52773 fi
52774
52775     ac_save_LIBS="$LIBS"
52776     LIBS="$LIBS $libiconv"
52777
52778
52779
52780
52781
52782 for ac_func in iconv_open iconv_close iconv nl_langinfo
52783 do
52784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52785 echo "$as_me:$LINENO: checking for $ac_func" >&5
52786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52787 if eval "test \"\${$as_ac_var+set}\" = set"; then
52788   echo $ECHO_N "(cached) $ECHO_C" >&6
52789 else
52790   cat >conftest.$ac_ext <<_ACEOF
52791 #line $LINENO "configure"
52792 /* confdefs.h.  */
52793 _ACEOF
52794 cat confdefs.h >>conftest.$ac_ext
52795 cat >>conftest.$ac_ext <<_ACEOF
52796 /* end confdefs.h.  */
52797 /* System header to define __stub macros and hopefully few prototypes,
52798     which can conflict with char $ac_func (); below.
52799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52800     <limits.h> exists even on freestanding compilers.  */
52801 #ifdef __STDC__
52802 # include <limits.h>
52803 #else
52804 # include <assert.h>
52805 #endif
52806 /* Override any gcc2 internal prototype to avoid an error.  */
52807 #ifdef __cplusplus
52808 extern "C"
52809 {
52810 #endif
52811 /* We use char because int might match the return type of a gcc2
52812    builtin and then its argument prototype would still apply.  */
52813 char $ac_func ();
52814 /* The GNU C library defines this for functions which it implements
52815     to always fail with ENOSYS.  Some functions are actually named
52816     something starting with __ and the normal name is an alias.  */
52817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52818 choke me
52819 #else
52820 char (*f) () = $ac_func;
52821 #endif
52822 #ifdef __cplusplus
52823 }
52824 #endif
52825
52826 int
52827 main ()
52828 {
52829 return f != $ac_func;
52830   ;
52831   return 0;
52832 }
52833 _ACEOF
52834 rm -f conftest.$ac_objext conftest$ac_exeext
52835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52836   (eval $ac_link) 2>&5
52837   ac_status=$?
52838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52839   (exit $ac_status); } &&
52840          { ac_try='test -s conftest$ac_exeext'
52841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52842   (eval $ac_try) 2>&5
52843   ac_status=$?
52844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52845   (exit $ac_status); }; }; then
52846   eval "$as_ac_var=yes"
52847 else
52848   echo "$as_me: failed program was:" >&5
52849 sed 's/^/| /' conftest.$ac_ext >&5
52850
52851 eval "$as_ac_var=no"
52852 fi
52853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
52854 fi
52855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52857 if test `eval echo '${'$as_ac_var'}'` = yes; then
52858   cat >>confdefs.h <<_ACEOF
52859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52860 _ACEOF
52861  ac_XPG2funcs=yes
52862 else
52863   ac_XPG2funcs=no
52864 fi
52865 done
52866
52867
52868     LIBS="$ac_save_LIBS"
52869
52870     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
52871 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
52872     if test x"$ac_has_iconv_h" = xyes &&
52873        test x"$ac_has_langinfo_h" = xyes &&
52874        test x"$ac_XPG2funcs" = xyes;
52875     then
52876       ac_XPG2_wchar_t=yes
52877     else
52878       ac_XPG2_wchar_t=no
52879     fi
52880     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
52881 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
52882
52883     # At the moment, only enable wchar_t specializations if all the
52884     # above support is present.
52885     if test x"$ac_isoC99_wchar_t" = xyes &&
52886        test x"$ac_XPG2_wchar_t" = xyes;
52887     then
52888       cat >>confdefs.h <<\_ACEOF
52889 #define _GLIBCXX_USE_WCHAR_T 1
52890 _ACEOF
52891
52892       enable_wchar_t=yes
52893     fi
52894   fi
52895   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
52896 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
52897   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
52898 echo "${ECHO_T}$enable_wchar_t" >&6
52899
52900     ;;
52901   *-netbsd*)
52902     #os_include_dir="os/bsd/netbsd"
52903
52904
52905
52906
52907
52908
52909
52910
52911
52912
52913
52914
52915 for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h \
52916       machine/endian.h machine/param.h sys/machine.h sys/types.h \
52917       fp.h locale.h float.h inttypes.h
52918 do
52919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52921   echo "$as_me:$LINENO: checking for $ac_header" >&5
52922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
52923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
52924   echo $ECHO_N "(cached) $ECHO_C" >&6
52925 fi
52926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
52927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
52928 else
52929   # Is the header compilable?
52930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
52931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
52932 cat >conftest.$ac_ext <<_ACEOF
52933 #line $LINENO "configure"
52934 /* confdefs.h.  */
52935 _ACEOF
52936 cat confdefs.h >>conftest.$ac_ext
52937 cat >>conftest.$ac_ext <<_ACEOF
52938 /* end confdefs.h.  */
52939 $ac_includes_default
52940 #include <$ac_header>
52941 _ACEOF
52942 rm -f conftest.$ac_objext
52943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52944   (eval $ac_compile) 2>&5
52945   ac_status=$?
52946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52947   (exit $ac_status); } &&
52948          { ac_try='test -s conftest.$ac_objext'
52949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52950   (eval $ac_try) 2>&5
52951   ac_status=$?
52952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52953   (exit $ac_status); }; }; then
52954   ac_header_compiler=yes
52955 else
52956   echo "$as_me: failed program was:" >&5
52957 sed 's/^/| /' conftest.$ac_ext >&5
52958
52959 ac_header_compiler=no
52960 fi
52961 rm -f conftest.$ac_objext conftest.$ac_ext
52962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52963 echo "${ECHO_T}$ac_header_compiler" >&6
52964
52965 # Is the header present?
52966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
52967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
52968 cat >conftest.$ac_ext <<_ACEOF
52969 #line $LINENO "configure"
52970 /* confdefs.h.  */
52971 _ACEOF
52972 cat confdefs.h >>conftest.$ac_ext
52973 cat >>conftest.$ac_ext <<_ACEOF
52974 /* end confdefs.h.  */
52975 #include <$ac_header>
52976 _ACEOF
52977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
52978   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
52979   ac_status=$?
52980   grep -v '^ *+' conftest.er1 >conftest.err
52981   rm -f conftest.er1
52982   cat conftest.err >&5
52983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52984   (exit $ac_status); } >/dev/null; then
52985   if test -s conftest.err; then
52986     ac_cpp_err=$ac_c_preproc_warn_flag
52987   else
52988     ac_cpp_err=
52989   fi
52990 else
52991   ac_cpp_err=yes
52992 fi
52993 if test -z "$ac_cpp_err"; then
52994   ac_header_preproc=yes
52995 else
52996   echo "$as_me: failed program was:" >&5
52997 sed 's/^/| /' conftest.$ac_ext >&5
52998
52999   ac_header_preproc=no
53000 fi
53001 rm -f conftest.err conftest.$ac_ext
53002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53003 echo "${ECHO_T}$ac_header_preproc" >&6
53004
53005 # So?  What about this header?
53006 case $ac_header_compiler:$ac_header_preproc in
53007   yes:no )
53008     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53010     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53012     (
53013       cat <<\_ASBOX
53014 ## ------------------------------------ ##
53015 ## Report this to bug-autoconf@gnu.org. ##
53016 ## ------------------------------------ ##
53017 _ASBOX
53018     ) |
53019       sed "s/^/$as_me: WARNING:     /" >&2
53020     ;;
53021   no:yes )
53022     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53024     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53028     (
53029       cat <<\_ASBOX
53030 ## ------------------------------------ ##
53031 ## Report this to bug-autoconf@gnu.org. ##
53032 ## ------------------------------------ ##
53033 _ASBOX
53034     ) |
53035       sed "s/^/$as_me: WARNING:     /" >&2
53036     ;;
53037 esac
53038 echo "$as_me:$LINENO: checking for $ac_header" >&5
53039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53041   echo $ECHO_N "(cached) $ECHO_C" >&6
53042 else
53043   eval "$as_ac_Header=$ac_header_preproc"
53044 fi
53045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53047
53048 fi
53049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53050   cat >>confdefs.h <<_ACEOF
53051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53052 _ACEOF
53053
53054 fi
53055
53056 done
53057
53058     SECTION_FLAGS='-ffunction-sections -fdata-sections'
53059
53060
53061   # If we're not using GNU ld, then there's no point in even trying these
53062   # tests.  Check for that first.  We should have already tested for gld
53063   # by now (in libtool), but require it now just to be safe...
53064   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
53065   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
53066
53067
53068
53069   # The name set by libtool depends on the version of libtool.  Shame on us
53070   # for depending on an impl detail, but c'est la vie.  Older versions used
53071   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
53072   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
53073   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
53074   # set (hence we're using an older libtool), then set it.
53075   if test x${with_gnu_ld+set} != xset; then
53076     if test x${ac_cv_prog_gnu_ld+set} != xset; then
53077       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
53078       with_gnu_ld=no
53079     else
53080       with_gnu_ld=$ac_cv_prog_gnu_ld
53081     fi
53082   fi
53083
53084   # Start by getting the version number.  I think the libtool test already
53085   # does some of this, but throws away the result.
53086
53087   ldver=`$LD --version 2>/dev/null | head -1 | \
53088          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
53089
53090   glibcxx_gnu_ld_version=`echo $ldver | \
53091          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
53092
53093   # Set --gc-sections.
53094   if test "$with_gnu_ld" = "notbroken"; then
53095     # GNU ld it is!  Joy and bunny rabbits!
53096
53097     # All these tests are for C++; save the language and the compiler flags.
53098     # Need to do this so that g++ won't try to link in libstdc++
53099     ac_test_CFLAGS="${CFLAGS+set}"
53100     ac_save_CFLAGS="$CFLAGS"
53101     CFLAGS='-x c++  -Wl,--gc-sections'
53102
53103     # Check for -Wl,--gc-sections
53104     # XXX This test is broken at the moment, as symbols required for linking
53105     # are now in libsupc++ (not built yet).  In addition, this test has
53106     # cored on solaris in the past.  In addition, --gc-sections doesn't
53107     # really work at the moment (keeps on discarding used sections, first
53108     # .eh_frame and now some of the glibc sections for iconv).
53109     # Bzzzzt.  Thanks for playing, maybe next time.
53110     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
53111 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
53112     if test "$cross_compiling" = yes; then
53113   ac_sectionLDflags=yes
53114 else
53115   cat >conftest.$ac_ext <<_ACEOF
53116 #line $LINENO "configure"
53117 /* confdefs.h.  */
53118 _ACEOF
53119 cat confdefs.h >>conftest.$ac_ext
53120 cat >>conftest.$ac_ext <<_ACEOF
53121 /* end confdefs.h.  */
53122
53123      int main(void)
53124      {
53125        try { throw 1; }
53126        catch (...) { };
53127        return 0;
53128      }
53129
53130 _ACEOF
53131 rm -f conftest$ac_exeext
53132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53133   (eval $ac_link) 2>&5
53134   ac_status=$?
53135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53138   (eval $ac_try) 2>&5
53139   ac_status=$?
53140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53141   (exit $ac_status); }; }; then
53142   ac_sectionLDflags=yes
53143 else
53144   echo "$as_me: program exited with status $ac_status" >&5
53145 echo "$as_me: failed program was:" >&5
53146 sed 's/^/| /' conftest.$ac_ext >&5
53147
53148 ( exit $ac_status )
53149 ac_sectionLDflags=no
53150 fi
53151 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53152 fi
53153     if test "$ac_test_CFLAGS" = set; then
53154       CFLAGS="$ac_save_CFLAGS"
53155     else
53156       # this is the suspicious part
53157       CFLAGS=''
53158     fi
53159     if test "$ac_sectionLDflags" = "yes"; then
53160       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
53161     fi
53162     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
53163 echo "${ECHO_T}$ac_sectionLDflags" >&6
53164   fi
53165
53166   # Set linker optimization flags.
53167   if test x"$with_gnu_ld" = x"yes"; then
53168     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
53169   fi
53170
53171
53172
53173
53174
53175
53176 echo "$as_me:$LINENO: checking for main in -lm" >&5
53177 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
53178 if test "${ac_cv_lib_m_main+set}" = set; then
53179   echo $ECHO_N "(cached) $ECHO_C" >&6
53180 else
53181   ac_check_lib_save_LIBS=$LIBS
53182 LIBS="-lm  $LIBS"
53183 cat >conftest.$ac_ext <<_ACEOF
53184 #line $LINENO "configure"
53185 /* confdefs.h.  */
53186 _ACEOF
53187 cat confdefs.h >>conftest.$ac_ext
53188 cat >>conftest.$ac_ext <<_ACEOF
53189 /* end confdefs.h.  */
53190
53191
53192 int
53193 main ()
53194 {
53195 main ();
53196   ;
53197   return 0;
53198 }
53199 _ACEOF
53200 rm -f conftest.$ac_objext conftest$ac_exeext
53201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53202   (eval $ac_link) 2>&5
53203   ac_status=$?
53204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53205   (exit $ac_status); } &&
53206          { ac_try='test -s conftest$ac_exeext'
53207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53208   (eval $ac_try) 2>&5
53209   ac_status=$?
53210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53211   (exit $ac_status); }; }; then
53212   ac_cv_lib_m_main=yes
53213 else
53214   echo "$as_me: failed program was:" >&5
53215 sed 's/^/| /' conftest.$ac_ext >&5
53216
53217 ac_cv_lib_m_main=no
53218 fi
53219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53220 LIBS=$ac_check_lib_save_LIBS
53221 fi
53222 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
53223 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
53224 if test $ac_cv_lib_m_main = yes; then
53225   cat >>confdefs.h <<_ACEOF
53226 #define HAVE_LIBM 1
53227 _ACEOF
53228
53229   LIBS="-lm $LIBS"
53230
53231 fi
53232
53233
53234
53235 for ac_func in nan copysignf
53236 do
53237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53238 echo "$as_me:$LINENO: checking for $ac_func" >&5
53239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53240 if eval "test \"\${$as_ac_var+set}\" = set"; then
53241   echo $ECHO_N "(cached) $ECHO_C" >&6
53242 else
53243   cat >conftest.$ac_ext <<_ACEOF
53244 #line $LINENO "configure"
53245 /* confdefs.h.  */
53246 _ACEOF
53247 cat confdefs.h >>conftest.$ac_ext
53248 cat >>conftest.$ac_ext <<_ACEOF
53249 /* end confdefs.h.  */
53250 /* System header to define __stub macros and hopefully few prototypes,
53251     which can conflict with char $ac_func (); below.
53252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53253     <limits.h> exists even on freestanding compilers.  */
53254 #ifdef __STDC__
53255 # include <limits.h>
53256 #else
53257 # include <assert.h>
53258 #endif
53259 /* Override any gcc2 internal prototype to avoid an error.  */
53260 #ifdef __cplusplus
53261 extern "C"
53262 {
53263 #endif
53264 /* We use char because int might match the return type of a gcc2
53265    builtin and then its argument prototype would still apply.  */
53266 char $ac_func ();
53267 /* The GNU C library defines this for functions which it implements
53268     to always fail with ENOSYS.  Some functions are actually named
53269     something starting with __ and the normal name is an alias.  */
53270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53271 choke me
53272 #else
53273 char (*f) () = $ac_func;
53274 #endif
53275 #ifdef __cplusplus
53276 }
53277 #endif
53278
53279 int
53280 main ()
53281 {
53282 return f != $ac_func;
53283   ;
53284   return 0;
53285 }
53286 _ACEOF
53287 rm -f conftest.$ac_objext conftest$ac_exeext
53288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53289   (eval $ac_link) 2>&5
53290   ac_status=$?
53291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53292   (exit $ac_status); } &&
53293          { ac_try='test -s conftest$ac_exeext'
53294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53295   (eval $ac_try) 2>&5
53296   ac_status=$?
53297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53298   (exit $ac_status); }; }; then
53299   eval "$as_ac_var=yes"
53300 else
53301   echo "$as_me: failed program was:" >&5
53302 sed 's/^/| /' conftest.$ac_ext >&5
53303
53304 eval "$as_ac_var=no"
53305 fi
53306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53307 fi
53308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53309 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53310 if test `eval echo '${'$as_ac_var'}'` = yes; then
53311   cat >>confdefs.h <<_ACEOF
53312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53313 _ACEOF
53314
53315 else
53316   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
53317 fi
53318 done
53319
53320
53321
53322 for ac_func in __signbit
53323 do
53324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53325 echo "$as_me:$LINENO: checking for $ac_func" >&5
53326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53327 if eval "test \"\${$as_ac_var+set}\" = set"; then
53328   echo $ECHO_N "(cached) $ECHO_C" >&6
53329 else
53330   cat >conftest.$ac_ext <<_ACEOF
53331 #line $LINENO "configure"
53332 /* confdefs.h.  */
53333 _ACEOF
53334 cat confdefs.h >>conftest.$ac_ext
53335 cat >>conftest.$ac_ext <<_ACEOF
53336 /* end confdefs.h.  */
53337 /* System header to define __stub macros and hopefully few prototypes,
53338     which can conflict with char $ac_func (); below.
53339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53340     <limits.h> exists even on freestanding compilers.  */
53341 #ifdef __STDC__
53342 # include <limits.h>
53343 #else
53344 # include <assert.h>
53345 #endif
53346 /* Override any gcc2 internal prototype to avoid an error.  */
53347 #ifdef __cplusplus
53348 extern "C"
53349 {
53350 #endif
53351 /* We use char because int might match the return type of a gcc2
53352    builtin and then its argument prototype would still apply.  */
53353 char $ac_func ();
53354 /* The GNU C library defines this for functions which it implements
53355     to always fail with ENOSYS.  Some functions are actually named
53356     something starting with __ and the normal name is an alias.  */
53357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53358 choke me
53359 #else
53360 char (*f) () = $ac_func;
53361 #endif
53362 #ifdef __cplusplus
53363 }
53364 #endif
53365
53366 int
53367 main ()
53368 {
53369 return f != $ac_func;
53370   ;
53371   return 0;
53372 }
53373 _ACEOF
53374 rm -f conftest.$ac_objext conftest$ac_exeext
53375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53376   (eval $ac_link) 2>&5
53377   ac_status=$?
53378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53379   (exit $ac_status); } &&
53380          { ac_try='test -s conftest$ac_exeext'
53381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53382   (eval $ac_try) 2>&5
53383   ac_status=$?
53384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53385   (exit $ac_status); }; }; then
53386   eval "$as_ac_var=yes"
53387 else
53388   echo "$as_me: failed program was:" >&5
53389 sed 's/^/| /' conftest.$ac_ext >&5
53390
53391 eval "$as_ac_var=no"
53392 fi
53393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53394 fi
53395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53397 if test `eval echo '${'$as_ac_var'}'` = yes; then
53398   cat >>confdefs.h <<_ACEOF
53399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53400 _ACEOF
53401
53402 else
53403   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
53404 fi
53405 done
53406
53407
53408 for ac_func in __signbitf
53409 do
53410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53411 echo "$as_me:$LINENO: checking for $ac_func" >&5
53412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53413 if eval "test \"\${$as_ac_var+set}\" = set"; then
53414   echo $ECHO_N "(cached) $ECHO_C" >&6
53415 else
53416   cat >conftest.$ac_ext <<_ACEOF
53417 #line $LINENO "configure"
53418 /* confdefs.h.  */
53419 _ACEOF
53420 cat confdefs.h >>conftest.$ac_ext
53421 cat >>conftest.$ac_ext <<_ACEOF
53422 /* end confdefs.h.  */
53423 /* System header to define __stub macros and hopefully few prototypes,
53424     which can conflict with char $ac_func (); below.
53425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53426     <limits.h> exists even on freestanding compilers.  */
53427 #ifdef __STDC__
53428 # include <limits.h>
53429 #else
53430 # include <assert.h>
53431 #endif
53432 /* Override any gcc2 internal prototype to avoid an error.  */
53433 #ifdef __cplusplus
53434 extern "C"
53435 {
53436 #endif
53437 /* We use char because int might match the return type of a gcc2
53438    builtin and then its argument prototype would still apply.  */
53439 char $ac_func ();
53440 /* The GNU C library defines this for functions which it implements
53441     to always fail with ENOSYS.  Some functions are actually named
53442     something starting with __ and the normal name is an alias.  */
53443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53444 choke me
53445 #else
53446 char (*f) () = $ac_func;
53447 #endif
53448 #ifdef __cplusplus
53449 }
53450 #endif
53451
53452 int
53453 main ()
53454 {
53455 return f != $ac_func;
53456   ;
53457   return 0;
53458 }
53459 _ACEOF
53460 rm -f conftest.$ac_objext conftest$ac_exeext
53461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53462   (eval $ac_link) 2>&5
53463   ac_status=$?
53464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53465   (exit $ac_status); } &&
53466          { ac_try='test -s conftest$ac_exeext'
53467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53468   (eval $ac_try) 2>&5
53469   ac_status=$?
53470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53471   (exit $ac_status); }; }; then
53472   eval "$as_ac_var=yes"
53473 else
53474   echo "$as_me: failed program was:" >&5
53475 sed 's/^/| /' conftest.$ac_ext >&5
53476
53477 eval "$as_ac_var=no"
53478 fi
53479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53480 fi
53481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53483 if test `eval echo '${'$as_ac_var'}'` = yes; then
53484   cat >>confdefs.h <<_ACEOF
53485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53486 _ACEOF
53487
53488 else
53489   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
53490 fi
53491 done
53492
53493
53494           if test x$ac_cv_func_copysignl = x"yes"; then
53495
53496 for ac_func in __signbitl
53497 do
53498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53499 echo "$as_me:$LINENO: checking for $ac_func" >&5
53500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53501 if eval "test \"\${$as_ac_var+set}\" = set"; then
53502   echo $ECHO_N "(cached) $ECHO_C" >&6
53503 else
53504   cat >conftest.$ac_ext <<_ACEOF
53505 #line $LINENO "configure"
53506 /* confdefs.h.  */
53507 _ACEOF
53508 cat confdefs.h >>conftest.$ac_ext
53509 cat >>conftest.$ac_ext <<_ACEOF
53510 /* end confdefs.h.  */
53511 /* System header to define __stub macros and hopefully few prototypes,
53512     which can conflict with char $ac_func (); below.
53513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53514     <limits.h> exists even on freestanding compilers.  */
53515 #ifdef __STDC__
53516 # include <limits.h>
53517 #else
53518 # include <assert.h>
53519 #endif
53520 /* Override any gcc2 internal prototype to avoid an error.  */
53521 #ifdef __cplusplus
53522 extern "C"
53523 {
53524 #endif
53525 /* We use char because int might match the return type of a gcc2
53526    builtin and then its argument prototype would still apply.  */
53527 char $ac_func ();
53528 /* The GNU C library defines this for functions which it implements
53529     to always fail with ENOSYS.  Some functions are actually named
53530     something starting with __ and the normal name is an alias.  */
53531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53532 choke me
53533 #else
53534 char (*f) () = $ac_func;
53535 #endif
53536 #ifdef __cplusplus
53537 }
53538 #endif
53539
53540 int
53541 main ()
53542 {
53543 return f != $ac_func;
53544   ;
53545   return 0;
53546 }
53547 _ACEOF
53548 rm -f conftest.$ac_objext conftest$ac_exeext
53549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53550   (eval $ac_link) 2>&5
53551   ac_status=$?
53552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53553   (exit $ac_status); } &&
53554          { ac_try='test -s conftest$ac_exeext'
53555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53556   (eval $ac_try) 2>&5
53557   ac_status=$?
53558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53559   (exit $ac_status); }; }; then
53560   eval "$as_ac_var=yes"
53561 else
53562   echo "$as_me: failed program was:" >&5
53563 sed 's/^/| /' conftest.$ac_ext >&5
53564
53565 eval "$as_ac_var=no"
53566 fi
53567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
53568 fi
53569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53571 if test `eval echo '${'$as_ac_var'}'` = yes; then
53572   cat >>confdefs.h <<_ACEOF
53573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53574 _ACEOF
53575
53576 else
53577   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
53578 fi
53579 done
53580
53581   fi
53582
53583   # XXX Review this.  Nothing uses it.
53584   if test -n "$LIBMATHOBJS"; then
53585     need_libmath=yes
53586   fi
53587
53588
53589
53590   # Test wchar.h for mbstate_t, which is needed for char_traits and
53591   # others even if wchar_t support is not on.
53592   echo "$as_me:$LINENO: checking for mbstate_t" >&5
53593 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
53594   cat >conftest.$ac_ext <<_ACEOF
53595 #line $LINENO "configure"
53596 /* confdefs.h.  */
53597 _ACEOF
53598 cat confdefs.h >>conftest.$ac_ext
53599 cat >>conftest.$ac_ext <<_ACEOF
53600 /* end confdefs.h.  */
53601 #include <wchar.h>
53602 int
53603 main ()
53604 {
53605 mbstate_t teststate;
53606   ;
53607   return 0;
53608 }
53609 _ACEOF
53610 rm -f conftest.$ac_objext
53611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53612   (eval $ac_compile) 2>&5
53613   ac_status=$?
53614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53615   (exit $ac_status); } &&
53616          { ac_try='test -s conftest.$ac_objext'
53617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53618   (eval $ac_try) 2>&5
53619   ac_status=$?
53620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53621   (exit $ac_status); }; }; then
53622   have_mbstate_t=yes
53623 else
53624   echo "$as_me: failed program was:" >&5
53625 sed 's/^/| /' conftest.$ac_ext >&5
53626
53627 have_mbstate_t=no
53628 fi
53629 rm -f conftest.$ac_objext conftest.$ac_ext
53630   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
53631 echo "${ECHO_T}$have_mbstate_t" >&6
53632   if test x"$have_mbstate_t" = xyes; then
53633     cat >>confdefs.h <<\_ACEOF
53634 #define HAVE_MBSTATE_T 1
53635 _ACEOF
53636
53637   fi
53638
53639   # Sanity check for existence of ISO C99 headers for extended encoding.
53640
53641 for ac_header in wchar.h
53642 do
53643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53644 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53645   echo "$as_me:$LINENO: checking for $ac_header" >&5
53646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53648   echo $ECHO_N "(cached) $ECHO_C" >&6
53649 fi
53650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53652 else
53653   # Is the header compilable?
53654 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53656 cat >conftest.$ac_ext <<_ACEOF
53657 #line $LINENO "configure"
53658 /* confdefs.h.  */
53659 _ACEOF
53660 cat confdefs.h >>conftest.$ac_ext
53661 cat >>conftest.$ac_ext <<_ACEOF
53662 /* end confdefs.h.  */
53663 $ac_includes_default
53664 #include <$ac_header>
53665 _ACEOF
53666 rm -f conftest.$ac_objext
53667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53668   (eval $ac_compile) 2>&5
53669   ac_status=$?
53670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53671   (exit $ac_status); } &&
53672          { ac_try='test -s conftest.$ac_objext'
53673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53674   (eval $ac_try) 2>&5
53675   ac_status=$?
53676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53677   (exit $ac_status); }; }; then
53678   ac_header_compiler=yes
53679 else
53680   echo "$as_me: failed program was:" >&5
53681 sed 's/^/| /' conftest.$ac_ext >&5
53682
53683 ac_header_compiler=no
53684 fi
53685 rm -f conftest.$ac_objext conftest.$ac_ext
53686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53687 echo "${ECHO_T}$ac_header_compiler" >&6
53688
53689 # Is the header present?
53690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53692 cat >conftest.$ac_ext <<_ACEOF
53693 #line $LINENO "configure"
53694 /* confdefs.h.  */
53695 _ACEOF
53696 cat confdefs.h >>conftest.$ac_ext
53697 cat >>conftest.$ac_ext <<_ACEOF
53698 /* end confdefs.h.  */
53699 #include <$ac_header>
53700 _ACEOF
53701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53702   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53703   ac_status=$?
53704   grep -v '^ *+' conftest.er1 >conftest.err
53705   rm -f conftest.er1
53706   cat conftest.err >&5
53707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53708   (exit $ac_status); } >/dev/null; then
53709   if test -s conftest.err; then
53710     ac_cpp_err=$ac_c_preproc_warn_flag
53711   else
53712     ac_cpp_err=
53713   fi
53714 else
53715   ac_cpp_err=yes
53716 fi
53717 if test -z "$ac_cpp_err"; then
53718   ac_header_preproc=yes
53719 else
53720   echo "$as_me: failed program was:" >&5
53721 sed 's/^/| /' conftest.$ac_ext >&5
53722
53723   ac_header_preproc=no
53724 fi
53725 rm -f conftest.err conftest.$ac_ext
53726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53727 echo "${ECHO_T}$ac_header_preproc" >&6
53728
53729 # So?  What about this header?
53730 case $ac_header_compiler:$ac_header_preproc in
53731   yes:no )
53732     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53736     (
53737       cat <<\_ASBOX
53738 ## ------------------------------------ ##
53739 ## Report this to bug-autoconf@gnu.org. ##
53740 ## ------------------------------------ ##
53741 _ASBOX
53742     ) |
53743       sed "s/^/$as_me: WARNING:     /" >&2
53744     ;;
53745   no:yes )
53746     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53748     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53749 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53752     (
53753       cat <<\_ASBOX
53754 ## ------------------------------------ ##
53755 ## Report this to bug-autoconf@gnu.org. ##
53756 ## ------------------------------------ ##
53757 _ASBOX
53758     ) |
53759       sed "s/^/$as_me: WARNING:     /" >&2
53760     ;;
53761 esac
53762 echo "$as_me:$LINENO: checking for $ac_header" >&5
53763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53765   echo $ECHO_N "(cached) $ECHO_C" >&6
53766 else
53767   eval "$as_ac_Header=$ac_header_preproc"
53768 fi
53769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53771
53772 fi
53773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53774   cat >>confdefs.h <<_ACEOF
53775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53776 _ACEOF
53777  ac_has_wchar_h=yes
53778 else
53779   ac_has_wchar_h=no
53780 fi
53781
53782 done
53783
53784
53785 for ac_header in wctype.h
53786 do
53787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53789   echo "$as_me:$LINENO: checking for $ac_header" >&5
53790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53792   echo $ECHO_N "(cached) $ECHO_C" >&6
53793 fi
53794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53796 else
53797   # Is the header compilable?
53798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
53799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
53800 cat >conftest.$ac_ext <<_ACEOF
53801 #line $LINENO "configure"
53802 /* confdefs.h.  */
53803 _ACEOF
53804 cat confdefs.h >>conftest.$ac_ext
53805 cat >>conftest.$ac_ext <<_ACEOF
53806 /* end confdefs.h.  */
53807 $ac_includes_default
53808 #include <$ac_header>
53809 _ACEOF
53810 rm -f conftest.$ac_objext
53811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53812   (eval $ac_compile) 2>&5
53813   ac_status=$?
53814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53815   (exit $ac_status); } &&
53816          { ac_try='test -s conftest.$ac_objext'
53817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53818   (eval $ac_try) 2>&5
53819   ac_status=$?
53820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53821   (exit $ac_status); }; }; then
53822   ac_header_compiler=yes
53823 else
53824   echo "$as_me: failed program was:" >&5
53825 sed 's/^/| /' conftest.$ac_ext >&5
53826
53827 ac_header_compiler=no
53828 fi
53829 rm -f conftest.$ac_objext conftest.$ac_ext
53830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53831 echo "${ECHO_T}$ac_header_compiler" >&6
53832
53833 # Is the header present?
53834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
53835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
53836 cat >conftest.$ac_ext <<_ACEOF
53837 #line $LINENO "configure"
53838 /* confdefs.h.  */
53839 _ACEOF
53840 cat confdefs.h >>conftest.$ac_ext
53841 cat >>conftest.$ac_ext <<_ACEOF
53842 /* end confdefs.h.  */
53843 #include <$ac_header>
53844 _ACEOF
53845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
53846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
53847   ac_status=$?
53848   grep -v '^ *+' conftest.er1 >conftest.err
53849   rm -f conftest.er1
53850   cat conftest.err >&5
53851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53852   (exit $ac_status); } >/dev/null; then
53853   if test -s conftest.err; then
53854     ac_cpp_err=$ac_c_preproc_warn_flag
53855   else
53856     ac_cpp_err=
53857   fi
53858 else
53859   ac_cpp_err=yes
53860 fi
53861 if test -z "$ac_cpp_err"; then
53862   ac_header_preproc=yes
53863 else
53864   echo "$as_me: failed program was:" >&5
53865 sed 's/^/| /' conftest.$ac_ext >&5
53866
53867   ac_header_preproc=no
53868 fi
53869 rm -f conftest.err conftest.$ac_ext
53870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53871 echo "${ECHO_T}$ac_header_preproc" >&6
53872
53873 # So?  What about this header?
53874 case $ac_header_compiler:$ac_header_preproc in
53875   yes:no )
53876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53880     (
53881       cat <<\_ASBOX
53882 ## ------------------------------------ ##
53883 ## Report this to bug-autoconf@gnu.org. ##
53884 ## ------------------------------------ ##
53885 _ASBOX
53886     ) |
53887       sed "s/^/$as_me: WARNING:     /" >&2
53888     ;;
53889   no:yes )
53890     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53892     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
53893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
53894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53896     (
53897       cat <<\_ASBOX
53898 ## ------------------------------------ ##
53899 ## Report this to bug-autoconf@gnu.org. ##
53900 ## ------------------------------------ ##
53901 _ASBOX
53902     ) |
53903       sed "s/^/$as_me: WARNING:     /" >&2
53904     ;;
53905 esac
53906 echo "$as_me:$LINENO: checking for $ac_header" >&5
53907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
53908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
53909   echo $ECHO_N "(cached) $ECHO_C" >&6
53910 else
53911   eval "$as_ac_Header=$ac_header_preproc"
53912 fi
53913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
53914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
53915
53916 fi
53917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53918   cat >>confdefs.h <<_ACEOF
53919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53920 _ACEOF
53921  ac_has_wctype_h=yes
53922 else
53923   ac_has_wctype_h=no
53924 fi
53925
53926 done
53927
53928
53929   # Only continue checking if the ISO C99 headers exist and support is on.
53930   if test x"$ac_has_wchar_h" = xyes &&
53931      test x"$ac_has_wctype_h" = xyes &&
53932      test x"$enable_c_mbchar" != xno; then
53933
53934     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
53935     # numeric_limits can instantiate type_traits<wchar_t>
53936     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
53937 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
53938     cat >conftest.$ac_ext <<_ACEOF
53939 #line $LINENO "configure"
53940 /* confdefs.h.  */
53941 _ACEOF
53942 cat confdefs.h >>conftest.$ac_ext
53943 cat >>conftest.$ac_ext <<_ACEOF
53944 /* end confdefs.h.  */
53945 #include <wchar.h>
53946 int
53947 main ()
53948 {
53949 int i = WCHAR_MIN; int j = WCHAR_MAX;
53950   ;
53951   return 0;
53952 }
53953 _ACEOF
53954 rm -f conftest.$ac_objext
53955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
53956   (eval $ac_compile) 2>&5
53957   ac_status=$?
53958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53959   (exit $ac_status); } &&
53960          { ac_try='test -s conftest.$ac_objext'
53961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53962   (eval $ac_try) 2>&5
53963   ac_status=$?
53964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53965   (exit $ac_status); }; }; then
53966   has_wchar_minmax=yes
53967 else
53968   echo "$as_me: failed program was:" >&5
53969 sed 's/^/| /' conftest.$ac_ext >&5
53970
53971 has_wchar_minmax=no
53972 fi
53973 rm -f conftest.$ac_objext conftest.$ac_ext
53974     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
53975 echo "${ECHO_T}$has_wchar_minmax" >&6
53976
53977     # Test wchar.h for WEOF, which is what we use to determine whether
53978     # to specialize for char_traits<wchar_t> or not.
53979     echo "$as_me:$LINENO: checking for WEOF" >&5
53980 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
53981     cat >conftest.$ac_ext <<_ACEOF
53982 #line $LINENO "configure"
53983 /* confdefs.h.  */
53984 _ACEOF
53985 cat confdefs.h >>conftest.$ac_ext
53986 cat >>conftest.$ac_ext <<_ACEOF
53987 /* end confdefs.h.  */
53988
53989       #include <wchar.h>
53990       #include <stddef.h>
53991 int
53992 main ()
53993 {
53994 wint_t i = WEOF;
53995   ;
53996   return 0;
53997 }
53998 _ACEOF
53999 rm -f conftest.$ac_objext
54000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54001   (eval $ac_compile) 2>&5
54002   ac_status=$?
54003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54004   (exit $ac_status); } &&
54005          { ac_try='test -s conftest.$ac_objext'
54006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54007   (eval $ac_try) 2>&5
54008   ac_status=$?
54009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54010   (exit $ac_status); }; }; then
54011   has_weof=yes
54012 else
54013   echo "$as_me: failed program was:" >&5
54014 sed 's/^/| /' conftest.$ac_ext >&5
54015
54016 has_weof=no
54017 fi
54018 rm -f conftest.$ac_objext conftest.$ac_ext
54019     echo "$as_me:$LINENO: result: $has_weof" >&5
54020 echo "${ECHO_T}$has_weof" >&6
54021
54022     # Tests for wide character functions used in char_traits<wchar_t>.
54023     ac_wfuncs=yes
54024
54025
54026
54027
54028
54029
54030 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
54031 do
54032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54033 echo "$as_me:$LINENO: checking for $ac_func" >&5
54034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54035 if eval "test \"\${$as_ac_var+set}\" = set"; then
54036   echo $ECHO_N "(cached) $ECHO_C" >&6
54037 else
54038   cat >conftest.$ac_ext <<_ACEOF
54039 #line $LINENO "configure"
54040 /* confdefs.h.  */
54041 _ACEOF
54042 cat confdefs.h >>conftest.$ac_ext
54043 cat >>conftest.$ac_ext <<_ACEOF
54044 /* end confdefs.h.  */
54045 /* System header to define __stub macros and hopefully few prototypes,
54046     which can conflict with char $ac_func (); below.
54047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54048     <limits.h> exists even on freestanding compilers.  */
54049 #ifdef __STDC__
54050 # include <limits.h>
54051 #else
54052 # include <assert.h>
54053 #endif
54054 /* Override any gcc2 internal prototype to avoid an error.  */
54055 #ifdef __cplusplus
54056 extern "C"
54057 {
54058 #endif
54059 /* We use char because int might match the return type of a gcc2
54060    builtin and then its argument prototype would still apply.  */
54061 char $ac_func ();
54062 /* The GNU C library defines this for functions which it implements
54063     to always fail with ENOSYS.  Some functions are actually named
54064     something starting with __ and the normal name is an alias.  */
54065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54066 choke me
54067 #else
54068 char (*f) () = $ac_func;
54069 #endif
54070 #ifdef __cplusplus
54071 }
54072 #endif
54073
54074 int
54075 main ()
54076 {
54077 return f != $ac_func;
54078   ;
54079   return 0;
54080 }
54081 _ACEOF
54082 rm -f conftest.$ac_objext conftest$ac_exeext
54083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54084   (eval $ac_link) 2>&5
54085   ac_status=$?
54086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54087   (exit $ac_status); } &&
54088          { ac_try='test -s conftest$ac_exeext'
54089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54090   (eval $ac_try) 2>&5
54091   ac_status=$?
54092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54093   (exit $ac_status); }; }; then
54094   eval "$as_ac_var=yes"
54095 else
54096   echo "$as_me: failed program was:" >&5
54097 sed 's/^/| /' conftest.$ac_ext >&5
54098
54099 eval "$as_ac_var=no"
54100 fi
54101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54102 fi
54103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54105 if test `eval echo '${'$as_ac_var'}'` = yes; then
54106   cat >>confdefs.h <<_ACEOF
54107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54108 _ACEOF
54109
54110 else
54111   ac_wfuncs=no
54112 fi
54113 done
54114
54115
54116     # Checks for names injected into std:: by the c_std headers.
54117
54118
54119
54120
54121
54122
54123
54124
54125
54126
54127
54128
54129
54130
54131
54132
54133
54134
54135
54136
54137
54138
54139
54140
54141
54142
54143
54144
54145
54146
54147
54148
54149
54150
54151
54152
54153
54154
54155
54156
54157
54158
54159
54160
54161
54162
54163
54164
54165
54166
54167 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
54168     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
54169     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
54170     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
54171     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
54172     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
54173 do
54174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54175 echo "$as_me:$LINENO: checking for $ac_func" >&5
54176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54177 if eval "test \"\${$as_ac_var+set}\" = set"; then
54178   echo $ECHO_N "(cached) $ECHO_C" >&6
54179 else
54180   cat >conftest.$ac_ext <<_ACEOF
54181 #line $LINENO "configure"
54182 /* confdefs.h.  */
54183 _ACEOF
54184 cat confdefs.h >>conftest.$ac_ext
54185 cat >>conftest.$ac_ext <<_ACEOF
54186 /* end confdefs.h.  */
54187 /* System header to define __stub macros and hopefully few prototypes,
54188     which can conflict with char $ac_func (); below.
54189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54190     <limits.h> exists even on freestanding compilers.  */
54191 #ifdef __STDC__
54192 # include <limits.h>
54193 #else
54194 # include <assert.h>
54195 #endif
54196 /* Override any gcc2 internal prototype to avoid an error.  */
54197 #ifdef __cplusplus
54198 extern "C"
54199 {
54200 #endif
54201 /* We use char because int might match the return type of a gcc2
54202    builtin and then its argument prototype would still apply.  */
54203 char $ac_func ();
54204 /* The GNU C library defines this for functions which it implements
54205     to always fail with ENOSYS.  Some functions are actually named
54206     something starting with __ and the normal name is an alias.  */
54207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54208 choke me
54209 #else
54210 char (*f) () = $ac_func;
54211 #endif
54212 #ifdef __cplusplus
54213 }
54214 #endif
54215
54216 int
54217 main ()
54218 {
54219 return f != $ac_func;
54220   ;
54221   return 0;
54222 }
54223 _ACEOF
54224 rm -f conftest.$ac_objext conftest$ac_exeext
54225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54226   (eval $ac_link) 2>&5
54227   ac_status=$?
54228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54229   (exit $ac_status); } &&
54230          { ac_try='test -s conftest$ac_exeext'
54231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54232   (eval $ac_try) 2>&5
54233   ac_status=$?
54234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54235   (exit $ac_status); }; }; then
54236   eval "$as_ac_var=yes"
54237 else
54238   echo "$as_me: failed program was:" >&5
54239 sed 's/^/| /' conftest.$ac_ext >&5
54240
54241 eval "$as_ac_var=no"
54242 fi
54243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54244 fi
54245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54247 if test `eval echo '${'$as_ac_var'}'` = yes; then
54248   cat >>confdefs.h <<_ACEOF
54249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54250 _ACEOF
54251
54252 else
54253   ac_wfuncs=no
54254 fi
54255 done
54256
54257
54258     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
54259 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
54260     if test x"$has_weof" = xyes &&
54261        test x"$has_wchar_minmax" = xyes &&
54262        test x"$ac_wfuncs" = xyes;
54263     then
54264       ac_isoC99_wchar_t=yes
54265     else
54266       ac_isoC99_wchar_t=no
54267     fi
54268     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
54269 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
54270
54271     # Use iconv for wchar_t to char conversions. As such, check for
54272     # X/Open Portability Guide, version 2 features (XPG2).
54273     if test "${ac_cv_header_iconv_h+set}" = set; then
54274   echo "$as_me:$LINENO: checking for iconv.h" >&5
54275 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
54276 if test "${ac_cv_header_iconv_h+set}" = set; then
54277   echo $ECHO_N "(cached) $ECHO_C" >&6
54278 fi
54279 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
54280 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
54281 else
54282   # Is the header compilable?
54283 echo "$as_me:$LINENO: checking iconv.h usability" >&5
54284 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
54285 cat >conftest.$ac_ext <<_ACEOF
54286 #line $LINENO "configure"
54287 /* confdefs.h.  */
54288 _ACEOF
54289 cat confdefs.h >>conftest.$ac_ext
54290 cat >>conftest.$ac_ext <<_ACEOF
54291 /* end confdefs.h.  */
54292 $ac_includes_default
54293 #include <iconv.h>
54294 _ACEOF
54295 rm -f conftest.$ac_objext
54296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54297   (eval $ac_compile) 2>&5
54298   ac_status=$?
54299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54300   (exit $ac_status); } &&
54301          { ac_try='test -s conftest.$ac_objext'
54302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54303   (eval $ac_try) 2>&5
54304   ac_status=$?
54305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54306   (exit $ac_status); }; }; then
54307   ac_header_compiler=yes
54308 else
54309   echo "$as_me: failed program was:" >&5
54310 sed 's/^/| /' conftest.$ac_ext >&5
54311
54312 ac_header_compiler=no
54313 fi
54314 rm -f conftest.$ac_objext conftest.$ac_ext
54315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54316 echo "${ECHO_T}$ac_header_compiler" >&6
54317
54318 # Is the header present?
54319 echo "$as_me:$LINENO: checking iconv.h presence" >&5
54320 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
54321 cat >conftest.$ac_ext <<_ACEOF
54322 #line $LINENO "configure"
54323 /* confdefs.h.  */
54324 _ACEOF
54325 cat confdefs.h >>conftest.$ac_ext
54326 cat >>conftest.$ac_ext <<_ACEOF
54327 /* end confdefs.h.  */
54328 #include <iconv.h>
54329 _ACEOF
54330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54331   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54332   ac_status=$?
54333   grep -v '^ *+' conftest.er1 >conftest.err
54334   rm -f conftest.er1
54335   cat conftest.err >&5
54336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54337   (exit $ac_status); } >/dev/null; then
54338   if test -s conftest.err; then
54339     ac_cpp_err=$ac_c_preproc_warn_flag
54340   else
54341     ac_cpp_err=
54342   fi
54343 else
54344   ac_cpp_err=yes
54345 fi
54346 if test -z "$ac_cpp_err"; then
54347   ac_header_preproc=yes
54348 else
54349   echo "$as_me: failed program was:" >&5
54350 sed 's/^/| /' conftest.$ac_ext >&5
54351
54352   ac_header_preproc=no
54353 fi
54354 rm -f conftest.err conftest.$ac_ext
54355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54356 echo "${ECHO_T}$ac_header_preproc" >&6
54357
54358 # So?  What about this header?
54359 case $ac_header_compiler:$ac_header_preproc in
54360   yes:no )
54361     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
54362 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54363     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
54364 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
54365     (
54366       cat <<\_ASBOX
54367 ## ------------------------------------ ##
54368 ## Report this to bug-autoconf@gnu.org. ##
54369 ## ------------------------------------ ##
54370 _ASBOX
54371     ) |
54372       sed "s/^/$as_me: WARNING:     /" >&2
54373     ;;
54374   no:yes )
54375     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
54376 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
54377     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
54378 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
54379     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
54380 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
54381     (
54382       cat <<\_ASBOX
54383 ## ------------------------------------ ##
54384 ## Report this to bug-autoconf@gnu.org. ##
54385 ## ------------------------------------ ##
54386 _ASBOX
54387     ) |
54388       sed "s/^/$as_me: WARNING:     /" >&2
54389     ;;
54390 esac
54391 echo "$as_me:$LINENO: checking for iconv.h" >&5
54392 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
54393 if test "${ac_cv_header_iconv_h+set}" = set; then
54394   echo $ECHO_N "(cached) $ECHO_C" >&6
54395 else
54396   ac_cv_header_iconv_h=$ac_header_preproc
54397 fi
54398 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
54399 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
54400
54401 fi
54402 if test $ac_cv_header_iconv_h = yes; then
54403   ac_has_iconv_h=yes
54404 else
54405   ac_has_iconv_h=no
54406 fi
54407
54408
54409     if test "${ac_cv_header_langinfo_h+set}" = set; then
54410   echo "$as_me:$LINENO: checking for langinfo.h" >&5
54411 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
54412 if test "${ac_cv_header_langinfo_h+set}" = set; then
54413   echo $ECHO_N "(cached) $ECHO_C" >&6
54414 fi
54415 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
54416 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
54417 else
54418   # Is the header compilable?
54419 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
54420 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
54421 cat >conftest.$ac_ext <<_ACEOF
54422 #line $LINENO "configure"
54423 /* confdefs.h.  */
54424 _ACEOF
54425 cat confdefs.h >>conftest.$ac_ext
54426 cat >>conftest.$ac_ext <<_ACEOF
54427 /* end confdefs.h.  */
54428 $ac_includes_default
54429 #include <langinfo.h>
54430 _ACEOF
54431 rm -f conftest.$ac_objext
54432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
54433   (eval $ac_compile) 2>&5
54434   ac_status=$?
54435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54436   (exit $ac_status); } &&
54437          { ac_try='test -s conftest.$ac_objext'
54438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54439   (eval $ac_try) 2>&5
54440   ac_status=$?
54441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54442   (exit $ac_status); }; }; then
54443   ac_header_compiler=yes
54444 else
54445   echo "$as_me: failed program was:" >&5
54446 sed 's/^/| /' conftest.$ac_ext >&5
54447
54448 ac_header_compiler=no
54449 fi
54450 rm -f conftest.$ac_objext conftest.$ac_ext
54451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54452 echo "${ECHO_T}$ac_header_compiler" >&6
54453
54454 # Is the header present?
54455 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
54456 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
54457 cat >conftest.$ac_ext <<_ACEOF
54458 #line $LINENO "configure"
54459 /* confdefs.h.  */
54460 _ACEOF
54461 cat confdefs.h >>conftest.$ac_ext
54462 cat >>conftest.$ac_ext <<_ACEOF
54463 /* end confdefs.h.  */
54464 #include <langinfo.h>
54465 _ACEOF
54466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
54467   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
54468   ac_status=$?
54469   grep -v '^ *+' conftest.er1 >conftest.err
54470   rm -f conftest.er1
54471   cat conftest.err >&5
54472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54473   (exit $ac_status); } >/dev/null; then
54474   if test -s conftest.err; then
54475     ac_cpp_err=$ac_c_preproc_warn_flag
54476   else
54477     ac_cpp_err=
54478   fi
54479 else
54480   ac_cpp_err=yes
54481 fi
54482 if test -z "$ac_cpp_err"; then
54483   ac_header_preproc=yes
54484 else
54485   echo "$as_me: failed program was:" >&5
54486 sed 's/^/| /' conftest.$ac_ext >&5
54487
54488   ac_header_preproc=no
54489 fi
54490 rm -f conftest.err conftest.$ac_ext
54491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54492 echo "${ECHO_T}$ac_header_preproc" >&6
54493
54494 # So?  What about this header?
54495 case $ac_header_compiler:$ac_header_preproc in
54496   yes:no )
54497     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
54498 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
54499     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
54500 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
54501     (
54502       cat <<\_ASBOX
54503 ## ------------------------------------ ##
54504 ## Report this to bug-autoconf@gnu.org. ##
54505 ## ------------------------------------ ##
54506 _ASBOX
54507     ) |
54508       sed "s/^/$as_me: WARNING:     /" >&2
54509     ;;
54510   no:yes )
54511     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
54512 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
54513     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
54514 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
54515     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
54516 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
54517     (
54518       cat <<\_ASBOX
54519 ## ------------------------------------ ##
54520 ## Report this to bug-autoconf@gnu.org. ##
54521 ## ------------------------------------ ##
54522 _ASBOX
54523     ) |
54524       sed "s/^/$as_me: WARNING:     /" >&2
54525     ;;
54526 esac
54527 echo "$as_me:$LINENO: checking for langinfo.h" >&5
54528 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
54529 if test "${ac_cv_header_langinfo_h+set}" = set; then
54530   echo $ECHO_N "(cached) $ECHO_C" >&6
54531 else
54532   ac_cv_header_langinfo_h=$ac_header_preproc
54533 fi
54534 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
54535 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
54536
54537 fi
54538 if test $ac_cv_header_langinfo_h = yes; then
54539   ac_has_langinfo_h=yes
54540 else
54541   ac_has_langinfo_h=no
54542 fi
54543
54544
54545
54546     # Check for existence of libiconv.a providing XPG2 wchar_t support.
54547     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
54548 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
54549 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
54550   echo $ECHO_N "(cached) $ECHO_C" >&6
54551 else
54552   ac_check_lib_save_LIBS=$LIBS
54553 LIBS="-liconv  $LIBS"
54554 cat >conftest.$ac_ext <<_ACEOF
54555 #line $LINENO "configure"
54556 /* confdefs.h.  */
54557 _ACEOF
54558 cat confdefs.h >>conftest.$ac_ext
54559 cat >>conftest.$ac_ext <<_ACEOF
54560 /* end confdefs.h.  */
54561
54562 /* Override any gcc2 internal prototype to avoid an error.  */
54563 #ifdef __cplusplus
54564 extern "C"
54565 #endif
54566 /* We use char because int might match the return type of a gcc2
54567    builtin and then its argument prototype would still apply.  */
54568 char iconv ();
54569 int
54570 main ()
54571 {
54572 iconv ();
54573   ;
54574   return 0;
54575 }
54576 _ACEOF
54577 rm -f conftest.$ac_objext conftest$ac_exeext
54578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54579   (eval $ac_link) 2>&5
54580   ac_status=$?
54581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54582   (exit $ac_status); } &&
54583          { ac_try='test -s conftest$ac_exeext'
54584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54585   (eval $ac_try) 2>&5
54586   ac_status=$?
54587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54588   (exit $ac_status); }; }; then
54589   ac_cv_lib_iconv_iconv=yes
54590 else
54591   echo "$as_me: failed program was:" >&5
54592 sed 's/^/| /' conftest.$ac_ext >&5
54593
54594 ac_cv_lib_iconv_iconv=no
54595 fi
54596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54597 LIBS=$ac_check_lib_save_LIBS
54598 fi
54599 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
54600 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
54601 if test $ac_cv_lib_iconv_iconv = yes; then
54602   libiconv="-liconv"
54603 fi
54604
54605     ac_save_LIBS="$LIBS"
54606     LIBS="$LIBS $libiconv"
54607
54608
54609
54610
54611
54612 for ac_func in iconv_open iconv_close iconv nl_langinfo
54613 do
54614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54615 echo "$as_me:$LINENO: checking for $ac_func" >&5
54616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54617 if eval "test \"\${$as_ac_var+set}\" = set"; then
54618   echo $ECHO_N "(cached) $ECHO_C" >&6
54619 else
54620   cat >conftest.$ac_ext <<_ACEOF
54621 #line $LINENO "configure"
54622 /* confdefs.h.  */
54623 _ACEOF
54624 cat confdefs.h >>conftest.$ac_ext
54625 cat >>conftest.$ac_ext <<_ACEOF
54626 /* end confdefs.h.  */
54627 /* System header to define __stub macros and hopefully few prototypes,
54628     which can conflict with char $ac_func (); below.
54629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54630     <limits.h> exists even on freestanding compilers.  */
54631 #ifdef __STDC__
54632 # include <limits.h>
54633 #else
54634 # include <assert.h>
54635 #endif
54636 /* Override any gcc2 internal prototype to avoid an error.  */
54637 #ifdef __cplusplus
54638 extern "C"
54639 {
54640 #endif
54641 /* We use char because int might match the return type of a gcc2
54642    builtin and then its argument prototype would still apply.  */
54643 char $ac_func ();
54644 /* The GNU C library defines this for functions which it implements
54645     to always fail with ENOSYS.  Some functions are actually named
54646     something starting with __ and the normal name is an alias.  */
54647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54648 choke me
54649 #else
54650 char (*f) () = $ac_func;
54651 #endif
54652 #ifdef __cplusplus
54653 }
54654 #endif
54655
54656 int
54657 main ()
54658 {
54659 return f != $ac_func;
54660   ;
54661   return 0;
54662 }
54663 _ACEOF
54664 rm -f conftest.$ac_objext conftest$ac_exeext
54665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54666   (eval $ac_link) 2>&5
54667   ac_status=$?
54668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54669   (exit $ac_status); } &&
54670          { ac_try='test -s conftest$ac_exeext'
54671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54672   (eval $ac_try) 2>&5
54673   ac_status=$?
54674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54675   (exit $ac_status); }; }; then
54676   eval "$as_ac_var=yes"
54677 else
54678   echo "$as_me: failed program was:" >&5
54679 sed 's/^/| /' conftest.$ac_ext >&5
54680
54681 eval "$as_ac_var=no"
54682 fi
54683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54684 fi
54685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54687 if test `eval echo '${'$as_ac_var'}'` = yes; then
54688   cat >>confdefs.h <<_ACEOF
54689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54690 _ACEOF
54691  ac_XPG2funcs=yes
54692 else
54693   ac_XPG2funcs=no
54694 fi
54695 done
54696
54697
54698     LIBS="$ac_save_LIBS"
54699
54700     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
54701 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
54702     if test x"$ac_has_iconv_h" = xyes &&
54703        test x"$ac_has_langinfo_h" = xyes &&
54704        test x"$ac_XPG2funcs" = xyes;
54705     then
54706       ac_XPG2_wchar_t=yes
54707     else
54708       ac_XPG2_wchar_t=no
54709     fi
54710     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
54711 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
54712
54713     # At the moment, only enable wchar_t specializations if all the
54714     # above support is present.
54715     if test x"$ac_isoC99_wchar_t" = xyes &&
54716        test x"$ac_XPG2_wchar_t" = xyes;
54717     then
54718       cat >>confdefs.h <<\_ACEOF
54719 #define _GLIBCXX_USE_WCHAR_T 1
54720 _ACEOF
54721
54722       enable_wchar_t=yes
54723     fi
54724   fi
54725   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
54726 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
54727   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
54728 echo "${ECHO_T}$enable_wchar_t" >&6
54729
54730     cat >>confdefs.h <<\_ACEOF
54731 #define HAVE_COPYSIGN 1
54732 _ACEOF
54733
54734     cat >>confdefs.h <<\_ACEOF
54735 #define HAVE_COPYSIGNF 1
54736 _ACEOF
54737
54738     cat >>confdefs.h <<\_ACEOF
54739 #define HAVE_FINITEF 1
54740 _ACEOF
54741
54742     cat >>confdefs.h <<\_ACEOF
54743 #define HAVE_FINITE 1
54744 _ACEOF
54745
54746     cat >>confdefs.h <<\_ACEOF
54747 #define HAVE_FREXPF 1
54748 _ACEOF
54749
54750     cat >>confdefs.h <<\_ACEOF
54751 #define HAVE_HYPOTF 1
54752 _ACEOF
54753
54754     cat >>confdefs.h <<\_ACEOF
54755 #define HAVE_ISINF 1
54756 _ACEOF
54757
54758     cat >>confdefs.h <<\_ACEOF
54759 #define HAVE_ISINFF 1
54760 _ACEOF
54761
54762     cat >>confdefs.h <<\_ACEOF
54763 #define HAVE_ISNAN 1
54764 _ACEOF
54765
54766     cat >>confdefs.h <<\_ACEOF
54767 #define HAVE_ISNANF 1
54768 _ACEOF
54769
54770     if test x"long_double_math_on_this_cpu" = x"yes"; then
54771       cat >>confdefs.h <<\_ACEOF
54772 #define HAVE_FINITEL 1
54773 _ACEOF
54774
54775       cat >>confdefs.h <<\_ACEOF
54776 #define HAVE_ISINFL 1
54777 _ACEOF
54778
54779       cat >>confdefs.h <<\_ACEOF
54780 #define HAVE_ISNANL 1
54781 _ACEOF
54782
54783     fi
54784     ;;
54785   *-qnx6.1* | *-qnx6.2*)
54786     #os_include_dir="os/qnx/qnx6.1"
54787     SECTION_FLAGS='-ffunction-sections -fdata-sections'
54788
54789
54790   # If we're not using GNU ld, then there's no point in even trying these
54791   # tests.  Check for that first.  We should have already tested for gld
54792   # by now (in libtool), but require it now just to be safe...
54793   test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
54794   test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
54795
54796
54797
54798   # The name set by libtool depends on the version of libtool.  Shame on us
54799   # for depending on an impl detail, but c'est la vie.  Older versions used
54800   # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
54801   # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
54802   # makes sense).  We'll test with_gnu_ld everywhere else, so if that isn't
54803   # set (hence we're using an older libtool), then set it.
54804   if test x${with_gnu_ld+set} != xset; then
54805     if test x${ac_cv_prog_gnu_ld+set} != xset; then
54806       # We got through "ac_require(ac_prog_ld)" and still not set?  Huh?
54807       with_gnu_ld=no
54808     else
54809       with_gnu_ld=$ac_cv_prog_gnu_ld
54810     fi
54811   fi
54812
54813   # Start by getting the version number.  I think the libtool test already
54814   # does some of this, but throws away the result.
54815
54816   ldver=`$LD --version 2>/dev/null | head -1 | \
54817          sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
54818
54819   glibcxx_gnu_ld_version=`echo $ldver | \
54820          $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
54821
54822   # Set --gc-sections.
54823   if test "$with_gnu_ld" = "notbroken"; then
54824     # GNU ld it is!  Joy and bunny rabbits!
54825
54826     # All these tests are for C++; save the language and the compiler flags.
54827     # Need to do this so that g++ won't try to link in libstdc++
54828     ac_test_CFLAGS="${CFLAGS+set}"
54829     ac_save_CFLAGS="$CFLAGS"
54830     CFLAGS='-x c++  -Wl,--gc-sections'
54831
54832     # Check for -Wl,--gc-sections
54833     # XXX This test is broken at the moment, as symbols required for linking
54834     # are now in libsupc++ (not built yet).  In addition, this test has
54835     # cored on solaris in the past.  In addition, --gc-sections doesn't
54836     # really work at the moment (keeps on discarding used sections, first
54837     # .eh_frame and now some of the glibc sections for iconv).
54838     # Bzzzzt.  Thanks for playing, maybe next time.
54839     echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5
54840 echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6
54841     if test "$cross_compiling" = yes; then
54842   ac_sectionLDflags=yes
54843 else
54844   cat >conftest.$ac_ext <<_ACEOF
54845 #line $LINENO "configure"
54846 /* confdefs.h.  */
54847 _ACEOF
54848 cat confdefs.h >>conftest.$ac_ext
54849 cat >>conftest.$ac_ext <<_ACEOF
54850 /* end confdefs.h.  */
54851
54852      int main(void)
54853      {
54854        try { throw 1; }
54855        catch (...) { };
54856        return 0;
54857      }
54858
54859 _ACEOF
54860 rm -f conftest$ac_exeext
54861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54862   (eval $ac_link) 2>&5
54863   ac_status=$?
54864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54867   (eval $ac_try) 2>&5
54868   ac_status=$?
54869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54870   (exit $ac_status); }; }; then
54871   ac_sectionLDflags=yes
54872 else
54873   echo "$as_me: program exited with status $ac_status" >&5
54874 echo "$as_me: failed program was:" >&5
54875 sed 's/^/| /' conftest.$ac_ext >&5
54876
54877 ( exit $ac_status )
54878 ac_sectionLDflags=no
54879 fi
54880 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54881 fi
54882     if test "$ac_test_CFLAGS" = set; then
54883       CFLAGS="$ac_save_CFLAGS"
54884     else
54885       # this is the suspicious part
54886       CFLAGS=''
54887     fi
54888     if test "$ac_sectionLDflags" = "yes"; then
54889       SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
54890     fi
54891     echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5
54892 echo "${ECHO_T}$ac_sectionLDflags" >&6
54893   fi
54894
54895   # Set linker optimization flags.
54896   if test x"$with_gnu_ld" = x"yes"; then
54897     OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
54898   fi
54899
54900
54901
54902
54903
54904
54905 echo "$as_me:$LINENO: checking for main in -lm" >&5
54906 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
54907 if test "${ac_cv_lib_m_main+set}" = set; then
54908   echo $ECHO_N "(cached) $ECHO_C" >&6
54909 else
54910   ac_check_lib_save_LIBS=$LIBS
54911 LIBS="-lm  $LIBS"
54912 cat >conftest.$ac_ext <<_ACEOF
54913 #line $LINENO "configure"
54914 /* confdefs.h.  */
54915 _ACEOF
54916 cat confdefs.h >>conftest.$ac_ext
54917 cat >>conftest.$ac_ext <<_ACEOF
54918 /* end confdefs.h.  */
54919
54920
54921 int
54922 main ()
54923 {
54924 main ();
54925   ;
54926   return 0;
54927 }
54928 _ACEOF
54929 rm -f conftest.$ac_objext conftest$ac_exeext
54930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54931   (eval $ac_link) 2>&5
54932   ac_status=$?
54933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54934   (exit $ac_status); } &&
54935          { ac_try='test -s conftest$ac_exeext'
54936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54937   (eval $ac_try) 2>&5
54938   ac_status=$?
54939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54940   (exit $ac_status); }; }; then
54941   ac_cv_lib_m_main=yes
54942 else
54943   echo "$as_me: failed program was:" >&5
54944 sed 's/^/| /' conftest.$ac_ext >&5
54945
54946 ac_cv_lib_m_main=no
54947 fi
54948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
54949 LIBS=$ac_check_lib_save_LIBS
54950 fi
54951 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
54952 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
54953 if test $ac_cv_lib_m_main = yes; then
54954   cat >>confdefs.h <<_ACEOF
54955 #define HAVE_LIBM 1
54956 _ACEOF
54957
54958   LIBS="-lm $LIBS"
54959
54960 fi
54961
54962
54963
54964 for ac_func in nan copysignf
54965 do
54966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54967 echo "$as_me:$LINENO: checking for $ac_func" >&5
54968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54969 if eval "test \"\${$as_ac_var+set}\" = set"; then
54970   echo $ECHO_N "(cached) $ECHO_C" >&6
54971 else
54972   cat >conftest.$ac_ext <<_ACEOF
54973 #line $LINENO "configure"
54974 /* confdefs.h.  */
54975 _ACEOF
54976 cat confdefs.h >>conftest.$ac_ext
54977 cat >>conftest.$ac_ext <<_ACEOF
54978 /* end confdefs.h.  */
54979 /* System header to define __stub macros and hopefully few prototypes,
54980     which can conflict with char $ac_func (); below.
54981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54982     <limits.h> exists even on freestanding compilers.  */
54983 #ifdef __STDC__
54984 # include <limits.h>
54985 #else
54986 # include <assert.h>
54987 #endif
54988 /* Override any gcc2 internal prototype to avoid an error.  */
54989 #ifdef __cplusplus
54990 extern "C"
54991 {
54992 #endif
54993 /* We use char because int might match the return type of a gcc2
54994    builtin and then its argument prototype would still apply.  */
54995 char $ac_func ();
54996 /* The GNU C library defines this for functions which it implements
54997     to always fail with ENOSYS.  Some functions are actually named
54998     something starting with __ and the normal name is an alias.  */
54999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55000 choke me
55001 #else
55002 char (*f) () = $ac_func;
55003 #endif
55004 #ifdef __cplusplus
55005 }
55006 #endif
55007
55008 int
55009 main ()
55010 {
55011 return f != $ac_func;
55012   ;
55013   return 0;
55014 }
55015 _ACEOF
55016 rm -f conftest.$ac_objext conftest$ac_exeext
55017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55018   (eval $ac_link) 2>&5
55019   ac_status=$?
55020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55021   (exit $ac_status); } &&
55022          { ac_try='test -s conftest$ac_exeext'
55023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55024   (eval $ac_try) 2>&5
55025   ac_status=$?
55026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55027   (exit $ac_status); }; }; then
55028   eval "$as_ac_var=yes"
55029 else
55030   echo "$as_me: failed program was:" >&5
55031 sed 's/^/| /' conftest.$ac_ext >&5
55032
55033 eval "$as_ac_var=no"
55034 fi
55035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55036 fi
55037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55039 if test `eval echo '${'$as_ac_var'}'` = yes; then
55040   cat >>confdefs.h <<_ACEOF
55041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55042 _ACEOF
55043
55044 else
55045   LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"
55046 fi
55047 done
55048
55049
55050
55051 for ac_func in __signbit
55052 do
55053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55054 echo "$as_me:$LINENO: checking for $ac_func" >&5
55055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55056 if eval "test \"\${$as_ac_var+set}\" = set"; then
55057   echo $ECHO_N "(cached) $ECHO_C" >&6
55058 else
55059   cat >conftest.$ac_ext <<_ACEOF
55060 #line $LINENO "configure"
55061 /* confdefs.h.  */
55062 _ACEOF
55063 cat confdefs.h >>conftest.$ac_ext
55064 cat >>conftest.$ac_ext <<_ACEOF
55065 /* end confdefs.h.  */
55066 /* System header to define __stub macros and hopefully few prototypes,
55067     which can conflict with char $ac_func (); below.
55068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55069     <limits.h> exists even on freestanding compilers.  */
55070 #ifdef __STDC__
55071 # include <limits.h>
55072 #else
55073 # include <assert.h>
55074 #endif
55075 /* Override any gcc2 internal prototype to avoid an error.  */
55076 #ifdef __cplusplus
55077 extern "C"
55078 {
55079 #endif
55080 /* We use char because int might match the return type of a gcc2
55081    builtin and then its argument prototype would still apply.  */
55082 char $ac_func ();
55083 /* The GNU C library defines this for functions which it implements
55084     to always fail with ENOSYS.  Some functions are actually named
55085     something starting with __ and the normal name is an alias.  */
55086 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55087 choke me
55088 #else
55089 char (*f) () = $ac_func;
55090 #endif
55091 #ifdef __cplusplus
55092 }
55093 #endif
55094
55095 int
55096 main ()
55097 {
55098 return f != $ac_func;
55099   ;
55100   return 0;
55101 }
55102 _ACEOF
55103 rm -f conftest.$ac_objext conftest$ac_exeext
55104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55105   (eval $ac_link) 2>&5
55106   ac_status=$?
55107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55108   (exit $ac_status); } &&
55109          { ac_try='test -s conftest$ac_exeext'
55110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55111   (eval $ac_try) 2>&5
55112   ac_status=$?
55113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55114   (exit $ac_status); }; }; then
55115   eval "$as_ac_var=yes"
55116 else
55117   echo "$as_me: failed program was:" >&5
55118 sed 's/^/| /' conftest.$ac_ext >&5
55119
55120 eval "$as_ac_var=no"
55121 fi
55122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55123 fi
55124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55126 if test `eval echo '${'$as_ac_var'}'` = yes; then
55127   cat >>confdefs.h <<_ACEOF
55128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55129 _ACEOF
55130
55131 else
55132   LIBMATHOBJS="$LIBMATHOBJS signbit.lo"
55133 fi
55134 done
55135
55136
55137 for ac_func in __signbitf
55138 do
55139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55140 echo "$as_me:$LINENO: checking for $ac_func" >&5
55141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55142 if eval "test \"\${$as_ac_var+set}\" = set"; then
55143   echo $ECHO_N "(cached) $ECHO_C" >&6
55144 else
55145   cat >conftest.$ac_ext <<_ACEOF
55146 #line $LINENO "configure"
55147 /* confdefs.h.  */
55148 _ACEOF
55149 cat confdefs.h >>conftest.$ac_ext
55150 cat >>conftest.$ac_ext <<_ACEOF
55151 /* end confdefs.h.  */
55152 /* System header to define __stub macros and hopefully few prototypes,
55153     which can conflict with char $ac_func (); below.
55154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55155     <limits.h> exists even on freestanding compilers.  */
55156 #ifdef __STDC__
55157 # include <limits.h>
55158 #else
55159 # include <assert.h>
55160 #endif
55161 /* Override any gcc2 internal prototype to avoid an error.  */
55162 #ifdef __cplusplus
55163 extern "C"
55164 {
55165 #endif
55166 /* We use char because int might match the return type of a gcc2
55167    builtin and then its argument prototype would still apply.  */
55168 char $ac_func ();
55169 /* The GNU C library defines this for functions which it implements
55170     to always fail with ENOSYS.  Some functions are actually named
55171     something starting with __ and the normal name is an alias.  */
55172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55173 choke me
55174 #else
55175 char (*f) () = $ac_func;
55176 #endif
55177 #ifdef __cplusplus
55178 }
55179 #endif
55180
55181 int
55182 main ()
55183 {
55184 return f != $ac_func;
55185   ;
55186   return 0;
55187 }
55188 _ACEOF
55189 rm -f conftest.$ac_objext conftest$ac_exeext
55190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55191   (eval $ac_link) 2>&5
55192   ac_status=$?
55193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55194   (exit $ac_status); } &&
55195          { ac_try='test -s conftest$ac_exeext'
55196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55197   (eval $ac_try) 2>&5
55198   ac_status=$?
55199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55200   (exit $ac_status); }; }; then
55201   eval "$as_ac_var=yes"
55202 else
55203   echo "$as_me: failed program was:" >&5
55204 sed 's/^/| /' conftest.$ac_ext >&5
55205
55206 eval "$as_ac_var=no"
55207 fi
55208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55209 fi
55210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55212 if test `eval echo '${'$as_ac_var'}'` = yes; then
55213   cat >>confdefs.h <<_ACEOF
55214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55215 _ACEOF
55216
55217 else
55218   LIBMATHOBJS="$LIBMATHOBJS signbitf.lo"
55219 fi
55220 done
55221
55222
55223           if test x$ac_cv_func_copysignl = x"yes"; then
55224
55225 for ac_func in __signbitl
55226 do
55227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55228 echo "$as_me:$LINENO: checking for $ac_func" >&5
55229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55230 if eval "test \"\${$as_ac_var+set}\" = set"; then
55231   echo $ECHO_N "(cached) $ECHO_C" >&6
55232 else
55233   cat >conftest.$ac_ext <<_ACEOF
55234 #line $LINENO "configure"
55235 /* confdefs.h.  */
55236 _ACEOF
55237 cat confdefs.h >>conftest.$ac_ext
55238 cat >>conftest.$ac_ext <<_ACEOF
55239 /* end confdefs.h.  */
55240 /* System header to define __stub macros and hopefully few prototypes,
55241     which can conflict with char $ac_func (); below.
55242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55243     <limits.h> exists even on freestanding compilers.  */
55244 #ifdef __STDC__
55245 # include <limits.h>
55246 #else
55247 # include <assert.h>
55248 #endif
55249 /* Override any gcc2 internal prototype to avoid an error.  */
55250 #ifdef __cplusplus
55251 extern "C"
55252 {
55253 #endif
55254 /* We use char because int might match the return type of a gcc2
55255    builtin and then its argument prototype would still apply.  */
55256 char $ac_func ();
55257 /* The GNU C library defines this for functions which it implements
55258     to always fail with ENOSYS.  Some functions are actually named
55259     something starting with __ and the normal name is an alias.  */
55260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55261 choke me
55262 #else
55263 char (*f) () = $ac_func;
55264 #endif
55265 #ifdef __cplusplus
55266 }
55267 #endif
55268
55269 int
55270 main ()
55271 {
55272 return f != $ac_func;
55273   ;
55274   return 0;
55275 }
55276 _ACEOF
55277 rm -f conftest.$ac_objext conftest$ac_exeext
55278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55279   (eval $ac_link) 2>&5
55280   ac_status=$?
55281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55282   (exit $ac_status); } &&
55283          { ac_try='test -s conftest$ac_exeext'
55284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55285   (eval $ac_try) 2>&5
55286   ac_status=$?
55287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55288   (exit $ac_status); }; }; then
55289   eval "$as_ac_var=yes"
55290 else
55291   echo "$as_me: failed program was:" >&5
55292 sed 's/^/| /' conftest.$ac_ext >&5
55293
55294 eval "$as_ac_var=no"
55295 fi
55296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55297 fi
55298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55300 if test `eval echo '${'$as_ac_var'}'` = yes; then
55301   cat >>confdefs.h <<_ACEOF
55302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55303 _ACEOF
55304
55305 else
55306   LIBMATHOBJS="$LIBMATHOBJS signbitl.lo"
55307 fi
55308 done
55309
55310   fi
55311
55312   # XXX Review this.  Nothing uses it.
55313   if test -n "$LIBMATHOBJS"; then
55314     need_libmath=yes
55315   fi
55316
55317
55318
55319   # Test wchar.h for mbstate_t, which is needed for char_traits and
55320   # others even if wchar_t support is not on.
55321   echo "$as_me:$LINENO: checking for mbstate_t" >&5
55322 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
55323   cat >conftest.$ac_ext <<_ACEOF
55324 #line $LINENO "configure"
55325 /* confdefs.h.  */
55326 _ACEOF
55327 cat confdefs.h >>conftest.$ac_ext
55328 cat >>conftest.$ac_ext <<_ACEOF
55329 /* end confdefs.h.  */
55330 #include <wchar.h>
55331 int
55332 main ()
55333 {
55334 mbstate_t teststate;
55335   ;
55336   return 0;
55337 }
55338 _ACEOF
55339 rm -f conftest.$ac_objext
55340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55341   (eval $ac_compile) 2>&5
55342   ac_status=$?
55343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55344   (exit $ac_status); } &&
55345          { ac_try='test -s conftest.$ac_objext'
55346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55347   (eval $ac_try) 2>&5
55348   ac_status=$?
55349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55350   (exit $ac_status); }; }; then
55351   have_mbstate_t=yes
55352 else
55353   echo "$as_me: failed program was:" >&5
55354 sed 's/^/| /' conftest.$ac_ext >&5
55355
55356 have_mbstate_t=no
55357 fi
55358 rm -f conftest.$ac_objext conftest.$ac_ext
55359   echo "$as_me:$LINENO: result: $have_mbstate_t" >&5
55360 echo "${ECHO_T}$have_mbstate_t" >&6
55361   if test x"$have_mbstate_t" = xyes; then
55362     cat >>confdefs.h <<\_ACEOF
55363 #define HAVE_MBSTATE_T 1
55364 _ACEOF
55365
55366   fi
55367
55368   # Sanity check for existence of ISO C99 headers for extended encoding.
55369
55370 for ac_header in wchar.h
55371 do
55372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55374   echo "$as_me:$LINENO: checking for $ac_header" >&5
55375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55377   echo $ECHO_N "(cached) $ECHO_C" >&6
55378 fi
55379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55381 else
55382   # Is the header compilable?
55383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55385 cat >conftest.$ac_ext <<_ACEOF
55386 #line $LINENO "configure"
55387 /* confdefs.h.  */
55388 _ACEOF
55389 cat confdefs.h >>conftest.$ac_ext
55390 cat >>conftest.$ac_ext <<_ACEOF
55391 /* end confdefs.h.  */
55392 $ac_includes_default
55393 #include <$ac_header>
55394 _ACEOF
55395 rm -f conftest.$ac_objext
55396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55397   (eval $ac_compile) 2>&5
55398   ac_status=$?
55399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55400   (exit $ac_status); } &&
55401          { ac_try='test -s conftest.$ac_objext'
55402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55403   (eval $ac_try) 2>&5
55404   ac_status=$?
55405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55406   (exit $ac_status); }; }; then
55407   ac_header_compiler=yes
55408 else
55409   echo "$as_me: failed program was:" >&5
55410 sed 's/^/| /' conftest.$ac_ext >&5
55411
55412 ac_header_compiler=no
55413 fi
55414 rm -f conftest.$ac_objext conftest.$ac_ext
55415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55416 echo "${ECHO_T}$ac_header_compiler" >&6
55417
55418 # Is the header present?
55419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55421 cat >conftest.$ac_ext <<_ACEOF
55422 #line $LINENO "configure"
55423 /* confdefs.h.  */
55424 _ACEOF
55425 cat confdefs.h >>conftest.$ac_ext
55426 cat >>conftest.$ac_ext <<_ACEOF
55427 /* end confdefs.h.  */
55428 #include <$ac_header>
55429 _ACEOF
55430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55432   ac_status=$?
55433   grep -v '^ *+' conftest.er1 >conftest.err
55434   rm -f conftest.er1
55435   cat conftest.err >&5
55436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55437   (exit $ac_status); } >/dev/null; then
55438   if test -s conftest.err; then
55439     ac_cpp_err=$ac_c_preproc_warn_flag
55440   else
55441     ac_cpp_err=
55442   fi
55443 else
55444   ac_cpp_err=yes
55445 fi
55446 if test -z "$ac_cpp_err"; then
55447   ac_header_preproc=yes
55448 else
55449   echo "$as_me: failed program was:" >&5
55450 sed 's/^/| /' conftest.$ac_ext >&5
55451
55452   ac_header_preproc=no
55453 fi
55454 rm -f conftest.err conftest.$ac_ext
55455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55456 echo "${ECHO_T}$ac_header_preproc" >&6
55457
55458 # So?  What about this header?
55459 case $ac_header_compiler:$ac_header_preproc in
55460   yes:no )
55461     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55465     (
55466       cat <<\_ASBOX
55467 ## ------------------------------------ ##
55468 ## Report this to bug-autoconf@gnu.org. ##
55469 ## ------------------------------------ ##
55470 _ASBOX
55471     ) |
55472       sed "s/^/$as_me: WARNING:     /" >&2
55473     ;;
55474   no:yes )
55475     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55477     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55481     (
55482       cat <<\_ASBOX
55483 ## ------------------------------------ ##
55484 ## Report this to bug-autoconf@gnu.org. ##
55485 ## ------------------------------------ ##
55486 _ASBOX
55487     ) |
55488       sed "s/^/$as_me: WARNING:     /" >&2
55489     ;;
55490 esac
55491 echo "$as_me:$LINENO: checking for $ac_header" >&5
55492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55494   echo $ECHO_N "(cached) $ECHO_C" >&6
55495 else
55496   eval "$as_ac_Header=$ac_header_preproc"
55497 fi
55498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55500
55501 fi
55502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55503   cat >>confdefs.h <<_ACEOF
55504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55505 _ACEOF
55506  ac_has_wchar_h=yes
55507 else
55508   ac_has_wchar_h=no
55509 fi
55510
55511 done
55512
55513
55514 for ac_header in wctype.h
55515 do
55516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
55517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55518   echo "$as_me:$LINENO: checking for $ac_header" >&5
55519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55521   echo $ECHO_N "(cached) $ECHO_C" >&6
55522 fi
55523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55525 else
55526   # Is the header compilable?
55527 echo "$as_me:$LINENO: checking $ac_header usability" >&5
55528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
55529 cat >conftest.$ac_ext <<_ACEOF
55530 #line $LINENO "configure"
55531 /* confdefs.h.  */
55532 _ACEOF
55533 cat confdefs.h >>conftest.$ac_ext
55534 cat >>conftest.$ac_ext <<_ACEOF
55535 /* end confdefs.h.  */
55536 $ac_includes_default
55537 #include <$ac_header>
55538 _ACEOF
55539 rm -f conftest.$ac_objext
55540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55541   (eval $ac_compile) 2>&5
55542   ac_status=$?
55543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55544   (exit $ac_status); } &&
55545          { ac_try='test -s conftest.$ac_objext'
55546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55547   (eval $ac_try) 2>&5
55548   ac_status=$?
55549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55550   (exit $ac_status); }; }; then
55551   ac_header_compiler=yes
55552 else
55553   echo "$as_me: failed program was:" >&5
55554 sed 's/^/| /' conftest.$ac_ext >&5
55555
55556 ac_header_compiler=no
55557 fi
55558 rm -f conftest.$ac_objext conftest.$ac_ext
55559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
55560 echo "${ECHO_T}$ac_header_compiler" >&6
55561
55562 # Is the header present?
55563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
55564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
55565 cat >conftest.$ac_ext <<_ACEOF
55566 #line $LINENO "configure"
55567 /* confdefs.h.  */
55568 _ACEOF
55569 cat confdefs.h >>conftest.$ac_ext
55570 cat >>conftest.$ac_ext <<_ACEOF
55571 /* end confdefs.h.  */
55572 #include <$ac_header>
55573 _ACEOF
55574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
55575   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
55576   ac_status=$?
55577   grep -v '^ *+' conftest.er1 >conftest.err
55578   rm -f conftest.er1
55579   cat conftest.err >&5
55580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55581   (exit $ac_status); } >/dev/null; then
55582   if test -s conftest.err; then
55583     ac_cpp_err=$ac_c_preproc_warn_flag
55584   else
55585     ac_cpp_err=
55586   fi
55587 else
55588   ac_cpp_err=yes
55589 fi
55590 if test -z "$ac_cpp_err"; then
55591   ac_header_preproc=yes
55592 else
55593   echo "$as_me: failed program was:" >&5
55594 sed 's/^/| /' conftest.$ac_ext >&5
55595
55596   ac_header_preproc=no
55597 fi
55598 rm -f conftest.err conftest.$ac_ext
55599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
55600 echo "${ECHO_T}$ac_header_preproc" >&6
55601
55602 # So?  What about this header?
55603 case $ac_header_compiler:$ac_header_preproc in
55604   yes:no )
55605     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
55606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
55607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55609     (
55610       cat <<\_ASBOX
55611 ## ------------------------------------ ##
55612 ## Report this to bug-autoconf@gnu.org. ##
55613 ## ------------------------------------ ##
55614 _ASBOX
55615     ) |
55616       sed "s/^/$as_me: WARNING:     /" >&2
55617     ;;
55618   no:yes )
55619     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
55620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
55621     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
55622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
55623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
55624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
55625     (
55626       cat <<\_ASBOX
55627 ## ------------------------------------ ##
55628 ## Report this to bug-autoconf@gnu.org. ##
55629 ## ------------------------------------ ##
55630 _ASBOX
55631     ) |
55632       sed "s/^/$as_me: WARNING:     /" >&2
55633     ;;
55634 esac
55635 echo "$as_me:$LINENO: checking for $ac_header" >&5
55636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
55637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
55638   echo $ECHO_N "(cached) $ECHO_C" >&6
55639 else
55640   eval "$as_ac_Header=$ac_header_preproc"
55641 fi
55642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
55643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
55644
55645 fi
55646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
55647   cat >>confdefs.h <<_ACEOF
55648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
55649 _ACEOF
55650  ac_has_wctype_h=yes
55651 else
55652   ac_has_wctype_h=no
55653 fi
55654
55655 done
55656
55657
55658   # Only continue checking if the ISO C99 headers exist and support is on.
55659   if test x"$ac_has_wchar_h" = xyes &&
55660      test x"$ac_has_wctype_h" = xyes &&
55661      test x"$enable_c_mbchar" != xno; then
55662
55663     # Test wchar.h for WCHAR_MIN, WCHAR_MAX, which is needed before
55664     # numeric_limits can instantiate type_traits<wchar_t>
55665     echo "$as_me:$LINENO: checking for WCHAR_MIN and WCHAR_MAX" >&5
55666 echo $ECHO_N "checking for WCHAR_MIN and WCHAR_MAX... $ECHO_C" >&6
55667     cat >conftest.$ac_ext <<_ACEOF
55668 #line $LINENO "configure"
55669 /* confdefs.h.  */
55670 _ACEOF
55671 cat confdefs.h >>conftest.$ac_ext
55672 cat >>conftest.$ac_ext <<_ACEOF
55673 /* end confdefs.h.  */
55674 #include <wchar.h>
55675 int
55676 main ()
55677 {
55678 int i = WCHAR_MIN; int j = WCHAR_MAX;
55679   ;
55680   return 0;
55681 }
55682 _ACEOF
55683 rm -f conftest.$ac_objext
55684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55685   (eval $ac_compile) 2>&5
55686   ac_status=$?
55687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55688   (exit $ac_status); } &&
55689          { ac_try='test -s conftest.$ac_objext'
55690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55691   (eval $ac_try) 2>&5
55692   ac_status=$?
55693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55694   (exit $ac_status); }; }; then
55695   has_wchar_minmax=yes
55696 else
55697   echo "$as_me: failed program was:" >&5
55698 sed 's/^/| /' conftest.$ac_ext >&5
55699
55700 has_wchar_minmax=no
55701 fi
55702 rm -f conftest.$ac_objext conftest.$ac_ext
55703     echo "$as_me:$LINENO: result: $has_wchar_minmax" >&5
55704 echo "${ECHO_T}$has_wchar_minmax" >&6
55705
55706     # Test wchar.h for WEOF, which is what we use to determine whether
55707     # to specialize for char_traits<wchar_t> or not.
55708     echo "$as_me:$LINENO: checking for WEOF" >&5
55709 echo $ECHO_N "checking for WEOF... $ECHO_C" >&6
55710     cat >conftest.$ac_ext <<_ACEOF
55711 #line $LINENO "configure"
55712 /* confdefs.h.  */
55713 _ACEOF
55714 cat confdefs.h >>conftest.$ac_ext
55715 cat >>conftest.$ac_ext <<_ACEOF
55716 /* end confdefs.h.  */
55717
55718       #include <wchar.h>
55719       #include <stddef.h>
55720 int
55721 main ()
55722 {
55723 wint_t i = WEOF;
55724   ;
55725   return 0;
55726 }
55727 _ACEOF
55728 rm -f conftest.$ac_objext
55729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
55730   (eval $ac_compile) 2>&5
55731   ac_status=$?
55732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55733   (exit $ac_status); } &&
55734          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
55740   has_weof=yes
55741 else
55742   echo "$as_me: failed program was:" >&5
55743 sed 's/^/| /' conftest.$ac_ext >&5
55744
55745 has_weof=no
55746 fi
55747 rm -f conftest.$ac_objext conftest.$ac_ext
55748     echo "$as_me:$LINENO: result: $has_weof" >&5
55749 echo "${ECHO_T}$has_weof" >&6
55750
55751     # Tests for wide character functions used in char_traits<wchar_t>.
55752     ac_wfuncs=yes
55753
55754
55755
55756
55757
55758
55759 for ac_func in wcslen wmemchr wmemcmp wmemcpy wmemmove wmemset
55760 do
55761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55762 echo "$as_me:$LINENO: checking for $ac_func" >&5
55763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55764 if eval "test \"\${$as_ac_var+set}\" = set"; then
55765   echo $ECHO_N "(cached) $ECHO_C" >&6
55766 else
55767   cat >conftest.$ac_ext <<_ACEOF
55768 #line $LINENO "configure"
55769 /* confdefs.h.  */
55770 _ACEOF
55771 cat confdefs.h >>conftest.$ac_ext
55772 cat >>conftest.$ac_ext <<_ACEOF
55773 /* end confdefs.h.  */
55774 /* System header to define __stub macros and hopefully few prototypes,
55775     which can conflict with char $ac_func (); below.
55776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55777     <limits.h> exists even on freestanding compilers.  */
55778 #ifdef __STDC__
55779 # include <limits.h>
55780 #else
55781 # include <assert.h>
55782 #endif
55783 /* Override any gcc2 internal prototype to avoid an error.  */
55784 #ifdef __cplusplus
55785 extern "C"
55786 {
55787 #endif
55788 /* We use char because int might match the return type of a gcc2
55789    builtin and then its argument prototype would still apply.  */
55790 char $ac_func ();
55791 /* The GNU C library defines this for functions which it implements
55792     to always fail with ENOSYS.  Some functions are actually named
55793     something starting with __ and the normal name is an alias.  */
55794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55795 choke me
55796 #else
55797 char (*f) () = $ac_func;
55798 #endif
55799 #ifdef __cplusplus
55800 }
55801 #endif
55802
55803 int
55804 main ()
55805 {
55806 return f != $ac_func;
55807   ;
55808   return 0;
55809 }
55810 _ACEOF
55811 rm -f conftest.$ac_objext conftest$ac_exeext
55812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55813   (eval $ac_link) 2>&5
55814   ac_status=$?
55815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55816   (exit $ac_status); } &&
55817          { ac_try='test -s conftest$ac_exeext'
55818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55819   (eval $ac_try) 2>&5
55820   ac_status=$?
55821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55822   (exit $ac_status); }; }; then
55823   eval "$as_ac_var=yes"
55824 else
55825   echo "$as_me: failed program was:" >&5
55826 sed 's/^/| /' conftest.$ac_ext >&5
55827
55828 eval "$as_ac_var=no"
55829 fi
55830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55831 fi
55832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55834 if test `eval echo '${'$as_ac_var'}'` = yes; then
55835   cat >>confdefs.h <<_ACEOF
55836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55837 _ACEOF
55838
55839 else
55840   ac_wfuncs=no
55841 fi
55842 done
55843
55844
55845     # Checks for names injected into std:: by the c_std headers.
55846
55847
55848
55849
55850
55851
55852
55853
55854
55855
55856
55857
55858
55859
55860
55861
55862
55863
55864
55865
55866
55867
55868
55869
55870
55871
55872
55873
55874
55875
55876
55877
55878
55879
55880
55881
55882
55883
55884
55885
55886
55887
55888
55889
55890
55891
55892
55893
55894
55895
55896 for ac_func in btowc wctob fgetwc fgetws fputwc fputws fwide \
55897     fwprintf fwscanf swprintf swscanf vfwprintf vfwscanf vswprintf vswscanf \
55898     vwprintf vwscanf wprintf wscanf getwc getwchar mbsinit mbrlen mbrtowc \
55899     mbsrtowcs wcsrtombs putwc putwchar ungetwc wcrtomb wcstod wcstof wcstol \
55900     wcstoul wcscpy wcsncpy wcscat wcsncat wcscmp wcscoll wcsncmp wcsxfrm \
55901     wcscspn wcsspn wcstok wcsftime wcschr wcspbrk wcsrchr wcsstr
55902 do
55903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55904 echo "$as_me:$LINENO: checking for $ac_func" >&5
55905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55906 if eval "test \"\${$as_ac_var+set}\" = set"; then
55907   echo $ECHO_N "(cached) $ECHO_C" >&6
55908 else
55909   cat >conftest.$ac_ext <<_ACEOF
55910 #line $LINENO "configure"
55911 /* confdefs.h.  */
55912 _ACEOF
55913 cat confdefs.h >>conftest.$ac_ext
55914 cat >>conftest.$ac_ext <<_ACEOF
55915 /* end confdefs.h.  */
55916 /* System header to define __stub macros and hopefully few prototypes,
55917     which can conflict with char $ac_func (); below.
55918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55919     <limits.h> exists even on freestanding compilers.  */
55920 #ifdef __STDC__
55921 # include <limits.h>
55922 #else
55923 # include <assert.h>
55924 #endif
55925 /* Override any gcc2 internal prototype to avoid an error.  */
55926 #ifdef __cplusplus
55927 extern "C"
55928 {
55929 #endif
55930 /* We use char because int might match the return type of a gcc2
55931    builtin and then its argument prototype would still apply.  */
55932 char $ac_func ();
55933 /* The GNU C library defines this for functions which it implements
55934     to always fail with ENOSYS.  Some functions are actually named
55935     something starting with __ and the normal name is an alias.  */
55936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55937 choke me
55938 #else
55939 char (*f) () = $ac_func;
55940 #endif
55941 #ifdef __cplusplus
55942 }
55943 #endif
55944
55945 int
55946 main ()
55947 {
55948 return f != $ac_func;
55949   ;
55950   return 0;
55951 }
55952 _ACEOF
55953 rm -f conftest.$ac_objext conftest$ac_exeext
55954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55955   (eval $ac_link) 2>&5
55956   ac_status=$?
55957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55958   (exit $ac_status); } &&
55959          { ac_try='test -s conftest$ac_exeext'
55960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55961   (eval $ac_try) 2>&5
55962   ac_status=$?
55963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55964   (exit $ac_status); }; }; then
55965   eval "$as_ac_var=yes"
55966 else
55967   echo "$as_me: failed program was:" >&5
55968 sed 's/^/| /' conftest.$ac_ext >&5
55969
55970 eval "$as_ac_var=no"
55971 fi
55972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
55973 fi
55974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55976 if test `eval echo '${'$as_ac_var'}'` = yes; then
55977   cat >>confdefs.h <<_ACEOF
55978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55979 _ACEOF
55980
55981 else
55982   ac_wfuncs=no
55983 fi
55984 done
55985
55986
55987     echo "$as_me:$LINENO: checking for ISO C99 wchar_t support" >&5
55988 echo $ECHO_N "checking for ISO C99 wchar_t support... $ECHO_C" >&6
55989     if test x"$has_weof" = xyes &&
55990        test x"$has_wchar_minmax" = xyes &&
55991        test x"$ac_wfuncs" = xyes;
55992     then
55993       ac_isoC99_wchar_t=yes
55994     else
55995       ac_isoC99_wchar_t=no
55996     fi
55997     echo "$as_me:$LINENO: result: $ac_isoC99_wchar_t" >&5
55998 echo "${ECHO_T}$ac_isoC99_wchar_t" >&6
55999
56000     # Use iconv for wchar_t to char conversions. As such, check for
56001     # X/Open Portability Guide, version 2 features (XPG2).
56002     if test "${ac_cv_header_iconv_h+set}" = set; then
56003   echo "$as_me:$LINENO: checking for iconv.h" >&5
56004 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
56005 if test "${ac_cv_header_iconv_h+set}" = set; then
56006   echo $ECHO_N "(cached) $ECHO_C" >&6
56007 fi
56008 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
56009 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
56010 else
56011   # Is the header compilable?
56012 echo "$as_me:$LINENO: checking iconv.h usability" >&5
56013 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
56014 cat >conftest.$ac_ext <<_ACEOF
56015 #line $LINENO "configure"
56016 /* confdefs.h.  */
56017 _ACEOF
56018 cat confdefs.h >>conftest.$ac_ext
56019 cat >>conftest.$ac_ext <<_ACEOF
56020 /* end confdefs.h.  */
56021 $ac_includes_default
56022 #include <iconv.h>
56023 _ACEOF
56024 rm -f conftest.$ac_objext
56025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56026   (eval $ac_compile) 2>&5
56027   ac_status=$?
56028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56029   (exit $ac_status); } &&
56030          { ac_try='test -s conftest.$ac_objext'
56031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56032   (eval $ac_try) 2>&5
56033   ac_status=$?
56034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56035   (exit $ac_status); }; }; then
56036   ac_header_compiler=yes
56037 else
56038   echo "$as_me: failed program was:" >&5
56039 sed 's/^/| /' conftest.$ac_ext >&5
56040
56041 ac_header_compiler=no
56042 fi
56043 rm -f conftest.$ac_objext conftest.$ac_ext
56044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56045 echo "${ECHO_T}$ac_header_compiler" >&6
56046
56047 # Is the header present?
56048 echo "$as_me:$LINENO: checking iconv.h presence" >&5
56049 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
56050 cat >conftest.$ac_ext <<_ACEOF
56051 #line $LINENO "configure"
56052 /* confdefs.h.  */
56053 _ACEOF
56054 cat confdefs.h >>conftest.$ac_ext
56055 cat >>conftest.$ac_ext <<_ACEOF
56056 /* end confdefs.h.  */
56057 #include <iconv.h>
56058 _ACEOF
56059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56060   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56061   ac_status=$?
56062   grep -v '^ *+' conftest.er1 >conftest.err
56063   rm -f conftest.er1
56064   cat conftest.err >&5
56065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56066   (exit $ac_status); } >/dev/null; then
56067   if test -s conftest.err; then
56068     ac_cpp_err=$ac_c_preproc_warn_flag
56069   else
56070     ac_cpp_err=
56071   fi
56072 else
56073   ac_cpp_err=yes
56074 fi
56075 if test -z "$ac_cpp_err"; then
56076   ac_header_preproc=yes
56077 else
56078   echo "$as_me: failed program was:" >&5
56079 sed 's/^/| /' conftest.$ac_ext >&5
56080
56081   ac_header_preproc=no
56082 fi
56083 rm -f conftest.err conftest.$ac_ext
56084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56085 echo "${ECHO_T}$ac_header_preproc" >&6
56086
56087 # So?  What about this header?
56088 case $ac_header_compiler:$ac_header_preproc in
56089   yes:no )
56090     { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
56091 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
56092     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
56093 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
56094     (
56095       cat <<\_ASBOX
56096 ## ------------------------------------ ##
56097 ## Report this to bug-autoconf@gnu.org. ##
56098 ## ------------------------------------ ##
56099 _ASBOX
56100     ) |
56101       sed "s/^/$as_me: WARNING:     /" >&2
56102     ;;
56103   no:yes )
56104     { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
56105 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
56106     { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
56107 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
56108     { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
56109 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
56110     (
56111       cat <<\_ASBOX
56112 ## ------------------------------------ ##
56113 ## Report this to bug-autoconf@gnu.org. ##
56114 ## ------------------------------------ ##
56115 _ASBOX
56116     ) |
56117       sed "s/^/$as_me: WARNING:     /" >&2
56118     ;;
56119 esac
56120 echo "$as_me:$LINENO: checking for iconv.h" >&5
56121 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
56122 if test "${ac_cv_header_iconv_h+set}" = set; then
56123   echo $ECHO_N "(cached) $ECHO_C" >&6
56124 else
56125   ac_cv_header_iconv_h=$ac_header_preproc
56126 fi
56127 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
56128 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
56129
56130 fi
56131 if test $ac_cv_header_iconv_h = yes; then
56132   ac_has_iconv_h=yes
56133 else
56134   ac_has_iconv_h=no
56135 fi
56136
56137
56138     if test "${ac_cv_header_langinfo_h+set}" = set; then
56139   echo "$as_me:$LINENO: checking for langinfo.h" >&5
56140 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
56141 if test "${ac_cv_header_langinfo_h+set}" = set; then
56142   echo $ECHO_N "(cached) $ECHO_C" >&6
56143 fi
56144 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
56145 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
56146 else
56147   # Is the header compilable?
56148 echo "$as_me:$LINENO: checking langinfo.h usability" >&5
56149 echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
56150 cat >conftest.$ac_ext <<_ACEOF
56151 #line $LINENO "configure"
56152 /* confdefs.h.  */
56153 _ACEOF
56154 cat confdefs.h >>conftest.$ac_ext
56155 cat >>conftest.$ac_ext <<_ACEOF
56156 /* end confdefs.h.  */
56157 $ac_includes_default
56158 #include <langinfo.h>
56159 _ACEOF
56160 rm -f conftest.$ac_objext
56161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56162   (eval $ac_compile) 2>&5
56163   ac_status=$?
56164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56165   (exit $ac_status); } &&
56166          { ac_try='test -s conftest.$ac_objext'
56167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56168   (eval $ac_try) 2>&5
56169   ac_status=$?
56170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56171   (exit $ac_status); }; }; then
56172   ac_header_compiler=yes
56173 else
56174   echo "$as_me: failed program was:" >&5
56175 sed 's/^/| /' conftest.$ac_ext >&5
56176
56177 ac_header_compiler=no
56178 fi
56179 rm -f conftest.$ac_objext conftest.$ac_ext
56180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56181 echo "${ECHO_T}$ac_header_compiler" >&6
56182
56183 # Is the header present?
56184 echo "$as_me:$LINENO: checking langinfo.h presence" >&5
56185 echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
56186 cat >conftest.$ac_ext <<_ACEOF
56187 #line $LINENO "configure"
56188 /* confdefs.h.  */
56189 _ACEOF
56190 cat confdefs.h >>conftest.$ac_ext
56191 cat >>conftest.$ac_ext <<_ACEOF
56192 /* end confdefs.h.  */
56193 #include <langinfo.h>
56194 _ACEOF
56195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56196   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56197   ac_status=$?
56198   grep -v '^ *+' conftest.er1 >conftest.err
56199   rm -f conftest.er1
56200   cat conftest.err >&5
56201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56202   (exit $ac_status); } >/dev/null; then
56203   if test -s conftest.err; then
56204     ac_cpp_err=$ac_c_preproc_warn_flag
56205   else
56206     ac_cpp_err=
56207   fi
56208 else
56209   ac_cpp_err=yes
56210 fi
56211 if test -z "$ac_cpp_err"; then
56212   ac_header_preproc=yes
56213 else
56214   echo "$as_me: failed program was:" >&5
56215 sed 's/^/| /' conftest.$ac_ext >&5
56216
56217   ac_header_preproc=no
56218 fi
56219 rm -f conftest.err conftest.$ac_ext
56220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56221 echo "${ECHO_T}$ac_header_preproc" >&6
56222
56223 # So?  What about this header?
56224 case $ac_header_compiler:$ac_header_preproc in
56225   yes:no )
56226     { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
56227 echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
56228     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
56229 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
56230     (
56231       cat <<\_ASBOX
56232 ## ------------------------------------ ##
56233 ## Report this to bug-autoconf@gnu.org. ##
56234 ## ------------------------------------ ##
56235 _ASBOX
56236     ) |
56237       sed "s/^/$as_me: WARNING:     /" >&2
56238     ;;
56239   no:yes )
56240     { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
56241 echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
56242     { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
56243 echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
56244     { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
56245 echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
56246     (
56247       cat <<\_ASBOX
56248 ## ------------------------------------ ##
56249 ## Report this to bug-autoconf@gnu.org. ##
56250 ## ------------------------------------ ##
56251 _ASBOX
56252     ) |
56253       sed "s/^/$as_me: WARNING:     /" >&2
56254     ;;
56255 esac
56256 echo "$as_me:$LINENO: checking for langinfo.h" >&5
56257 echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
56258 if test "${ac_cv_header_langinfo_h+set}" = set; then
56259   echo $ECHO_N "(cached) $ECHO_C" >&6
56260 else
56261   ac_cv_header_langinfo_h=$ac_header_preproc
56262 fi
56263 echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
56264 echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
56265
56266 fi
56267 if test $ac_cv_header_langinfo_h = yes; then
56268   ac_has_langinfo_h=yes
56269 else
56270   ac_has_langinfo_h=no
56271 fi
56272
56273
56274
56275     # Check for existence of libiconv.a providing XPG2 wchar_t support.
56276     echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
56277 echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
56278 if test "${ac_cv_lib_iconv_iconv+set}" = set; then
56279   echo $ECHO_N "(cached) $ECHO_C" >&6
56280 else
56281   ac_check_lib_save_LIBS=$LIBS
56282 LIBS="-liconv  $LIBS"
56283 cat >conftest.$ac_ext <<_ACEOF
56284 #line $LINENO "configure"
56285 /* confdefs.h.  */
56286 _ACEOF
56287 cat confdefs.h >>conftest.$ac_ext
56288 cat >>conftest.$ac_ext <<_ACEOF
56289 /* end confdefs.h.  */
56290
56291 /* Override any gcc2 internal prototype to avoid an error.  */
56292 #ifdef __cplusplus
56293 extern "C"
56294 #endif
56295 /* We use char because int might match the return type of a gcc2
56296    builtin and then its argument prototype would still apply.  */
56297 char iconv ();
56298 int
56299 main ()
56300 {
56301 iconv ();
56302   ;
56303   return 0;
56304 }
56305 _ACEOF
56306 rm -f conftest.$ac_objext conftest$ac_exeext
56307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56308   (eval $ac_link) 2>&5
56309   ac_status=$?
56310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56311   (exit $ac_status); } &&
56312          { ac_try='test -s conftest$ac_exeext'
56313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56314   (eval $ac_try) 2>&5
56315   ac_status=$?
56316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56317   (exit $ac_status); }; }; then
56318   ac_cv_lib_iconv_iconv=yes
56319 else
56320   echo "$as_me: failed program was:" >&5
56321 sed 's/^/| /' conftest.$ac_ext >&5
56322
56323 ac_cv_lib_iconv_iconv=no
56324 fi
56325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56326 LIBS=$ac_check_lib_save_LIBS
56327 fi
56328 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv" >&5
56329 echo "${ECHO_T}$ac_cv_lib_iconv_iconv" >&6
56330 if test $ac_cv_lib_iconv_iconv = yes; then
56331   libiconv="-liconv"
56332 fi
56333
56334     ac_save_LIBS="$LIBS"
56335     LIBS="$LIBS $libiconv"
56336
56337
56338
56339
56340
56341 for ac_func in iconv_open iconv_close iconv nl_langinfo
56342 do
56343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56344 echo "$as_me:$LINENO: checking for $ac_func" >&5
56345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
56346 if eval "test \"\${$as_ac_var+set}\" = set"; then
56347   echo $ECHO_N "(cached) $ECHO_C" >&6
56348 else
56349   cat >conftest.$ac_ext <<_ACEOF
56350 #line $LINENO "configure"
56351 /* confdefs.h.  */
56352 _ACEOF
56353 cat confdefs.h >>conftest.$ac_ext
56354 cat >>conftest.$ac_ext <<_ACEOF
56355 /* end confdefs.h.  */
56356 /* System header to define __stub macros and hopefully few prototypes,
56357     which can conflict with char $ac_func (); below.
56358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56359     <limits.h> exists even on freestanding compilers.  */
56360 #ifdef __STDC__
56361 # include <limits.h>
56362 #else
56363 # include <assert.h>
56364 #endif
56365 /* Override any gcc2 internal prototype to avoid an error.  */
56366 #ifdef __cplusplus
56367 extern "C"
56368 {
56369 #endif
56370 /* We use char because int might match the return type of a gcc2
56371    builtin and then its argument prototype would still apply.  */
56372 char $ac_func ();
56373 /* The GNU C library defines this for functions which it implements
56374     to always fail with ENOSYS.  Some functions are actually named
56375     something starting with __ and the normal name is an alias.  */
56376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
56377 choke me
56378 #else
56379 char (*f) () = $ac_func;
56380 #endif
56381 #ifdef __cplusplus
56382 }
56383 #endif
56384
56385 int
56386 main ()
56387 {
56388 return f != $ac_func;
56389   ;
56390   return 0;
56391 }
56392 _ACEOF
56393 rm -f conftest.$ac_objext conftest$ac_exeext
56394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56395   (eval $ac_link) 2>&5
56396   ac_status=$?
56397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56398   (exit $ac_status); } &&
56399          { ac_try='test -s conftest$ac_exeext'
56400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56401   (eval $ac_try) 2>&5
56402   ac_status=$?
56403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56404   (exit $ac_status); }; }; then
56405   eval "$as_ac_var=yes"
56406 else
56407   echo "$as_me: failed program was:" >&5
56408 sed 's/^/| /' conftest.$ac_ext >&5
56409
56410 eval "$as_ac_var=no"
56411 fi
56412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56413 fi
56414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
56415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
56416 if test `eval echo '${'$as_ac_var'}'` = yes; then
56417   cat >>confdefs.h <<_ACEOF
56418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56419 _ACEOF
56420  ac_XPG2funcs=yes
56421 else
56422   ac_XPG2funcs=no
56423 fi
56424 done
56425
56426
56427     LIBS="$ac_save_LIBS"
56428
56429     echo "$as_me:$LINENO: checking for XPG2 wchar_t support" >&5
56430 echo $ECHO_N "checking for XPG2 wchar_t support... $ECHO_C" >&6
56431     if test x"$ac_has_iconv_h" = xyes &&
56432        test x"$ac_has_langinfo_h" = xyes &&
56433        test x"$ac_XPG2funcs" = xyes;
56434     then
56435       ac_XPG2_wchar_t=yes
56436     else
56437       ac_XPG2_wchar_t=no
56438     fi
56439     echo "$as_me:$LINENO: result: $ac_XPG2_wchar_t" >&5
56440 echo "${ECHO_T}$ac_XPG2_wchar_t" >&6
56441
56442     # At the moment, only enable wchar_t specializations if all the
56443     # above support is present.
56444     if test x"$ac_isoC99_wchar_t" = xyes &&
56445        test x"$ac_XPG2_wchar_t" = xyes;
56446     then
56447       cat >>confdefs.h <<\_ACEOF
56448 #define _GLIBCXX_USE_WCHAR_T 1
56449 _ACEOF
56450
56451       enable_wchar_t=yes
56452     fi
56453   fi
56454   echo "$as_me:$LINENO: checking for enabled wchar_t specializations" >&5
56455 echo $ECHO_N "checking for enabled wchar_t specializations... $ECHO_C" >&6
56456   echo "$as_me:$LINENO: result: $enable_wchar_t" >&5
56457 echo "${ECHO_T}$enable_wchar_t" >&6
56458
56459     cat >>confdefs.h <<\_ACEOF
56460 #define HAVE_COSF 1
56461 _ACEOF
56462
56463     cat >>confdefs.h <<\_ACEOF
56464 #define HAVE_COSL 1
56465 _ACEOF
56466
56467     cat >>confdefs.h <<\_ACEOF
56468 #define HAVE_COSHF 1
56469 _ACEOF
56470
56471     cat >>confdefs.h <<\_ACEOF
56472 #define HAVE_COSHL 1
56473 _ACEOF
56474
56475     cat >>confdefs.h <<\_ACEOF
56476 #define HAVE_LOGF 1
56477 _ACEOF
56478
56479     cat >>confdefs.h <<\_ACEOF
56480 #define HAVE_LOGL 1
56481 _ACEOF
56482
56483     cat >>confdefs.h <<\_ACEOF
56484 #define HAVE_LOG10F 1
56485 _ACEOF
56486
56487     cat >>confdefs.h <<\_ACEOF
56488 #define HAVE_LOG10L 1
56489 _ACEOF
56490
56491     cat >>confdefs.h <<\_ACEOF
56492 #define HAVE_SINF 1
56493 _ACEOF
56494
56495     cat >>confdefs.h <<\_ACEOF
56496 #define HAVE_SINL 1
56497 _ACEOF
56498
56499     cat >>confdefs.h <<\_ACEOF
56500 #define HAVE_SINHF 1
56501 _ACEOF
56502
56503     cat >>confdefs.h <<\_ACEOF
56504 #define HAVE_SINHL 1
56505 _ACEOF
56506
56507     ;;
56508   *-solaris*)
56509     #case "$target" in
56510     #  *-solaris2.5)
56511     #    os_include_dir="os/solaris/solaris2.5"
56512     #    ;;
56513     #  *-solaris2.6)
56514     #    os_include_dir="os/solaris/solaris2.6"
56515     #    ;;
56516     #  *-solaris2.7 | *-solaris2.8 | *-solaris2.9)
56517     #    os_include_dir="os/solaris/solaris2.7"
56518     #    ;;
56519     #esac
56520     cat >>confdefs.h <<\_ACEOF
56521 #define HAVE_STRTOF 1
56522 _ACEOF
56523
56524     cat >>confdefs.h <<\_ACEOF
56525 #define HAVE_STRTOLD 1
56526 _ACEOF
56527
56528     cat >>confdefs.h <<\_ACEOF
56529 #define HAVE_MMAP 1
56530 _ACEOF
56531
56532     cat >>confdefs.h <<\_ACEOF
56533 #define HAVE_COPYSIGN 1
56534 _ACEOF
56535
56536     cat >>confdefs.h <<\_ACEOF
56537 #define HAVE_ISNAN 1
56538 _ACEOF
56539
56540     cat >>confdefs.h <<\_ACEOF
56541 #define HAVE_ISNANF 1
56542 _ACEOF
56543
56544     cat >>confdefs.h <<\_ACEOF
56545 #define HAVE_MODFF 1
56546 _ACEOF
56547
56548     cat >>confdefs.h <<\_ACEOF
56549 #define HAVE_HYPOT 1
56550 _ACEOF
56551
56552     ;;
56553   *-windiss*)
56554     #os_include_dir="os/windiss"
56555     cat >>confdefs.h <<\_ACEOF
56556 #define HAVE_ACOSF 1
56557 _ACEOF
56558
56559     cat >>confdefs.h <<\_ACEOF
56560 #define HAVE_ASINF 1
56561 _ACEOF
56562
56563     cat >>confdefs.h <<\_ACEOF
56564 #define HAVE_ATAN2F 1
56565 _ACEOF
56566
56567     cat >>confdefs.h <<\_ACEOF
56568 #define HAVE_ATANF 1
56569 _ACEOF
56570
56571     cat >>confdefs.h <<\_ACEOF
56572 #define HAVE_CEILF 1
56573 _ACEOF
56574
56575     cat >>confdefs.h <<\_ACEOF
56576 #define HAVE_COPYSIGN 1
56577 _ACEOF
56578
56579     cat >>confdefs.h <<\_ACEOF
56580 #define HAVE_COPYSIGNF 1
56581 _ACEOF
56582
56583     cat >>confdefs.h <<\_ACEOF
56584 #define HAVE_COSF 1
56585 _ACEOF
56586
56587     cat >>confdefs.h <<\_ACEOF
56588 #define HAVE_COSHF 1
56589 _ACEOF
56590
56591     cat >>confdefs.h <<\_ACEOF
56592 #define HAVE_EXPF 1
56593 _ACEOF
56594
56595     cat >>confdefs.h <<\_ACEOF
56596 #define HAVE_FABSF 1
56597 _ACEOF
56598
56599     cat >>confdefs.h <<\_ACEOF
56600 #define HAVE_FLOORF 1
56601 _ACEOF
56602
56603     cat >>confdefs.h <<\_ACEOF
56604 #define HAVE_FMODF 1
56605 _ACEOF
56606
56607     cat >>confdefs.h <<\_ACEOF
56608 #define HAVE_FREXPF 1
56609 _ACEOF
56610
56611     cat >>confdefs.h <<\_ACEOF
56612 #define HAVE_LDEXPF 1
56613 _ACEOF
56614
56615     cat >>confdefs.h <<\_ACEOF
56616 #define HAVE_LOG10F 1
56617 _ACEOF
56618
56619     cat >>confdefs.h <<\_ACEOF
56620 #define HAVE_LOGF 1
56621 _ACEOF
56622
56623     cat >>confdefs.h <<\_ACEOF
56624 #define HAVE_MODFF 1
56625 _ACEOF
56626
56627     cat >>confdefs.h <<\_ACEOF
56628 #define HAVE_POWF 1
56629 _ACEOF
56630
56631     cat >>confdefs.h <<\_ACEOF
56632 #define HAVE_SINF 1
56633 _ACEOF
56634
56635     cat >>confdefs.h <<\_ACEOF
56636 #define HAVE_SINHF 1
56637 _ACEOF
56638
56639     cat >>confdefs.h <<\_ACEOF
56640 #define HAVE_SQRTF 1
56641 _ACEOF
56642
56643     cat >>confdefs.h <<\_ACEOF
56644 #define HAVE_TANF 1
56645 _ACEOF
56646
56647     cat >>confdefs.h <<\_ACEOF
56648 #define HAVE_TANHF 1
56649 _ACEOF
56650
56651     ;;
56652   *)
56653     { { echo "$as_me:$LINENO: error: No support for this host/target combination." >&5
56654 echo "$as_me: error: No support for this host/target combination." >&2;}
56655    { (exit 1); exit 1; }; }
56656    ;;
56657 esac
56658
56659
56660   fi
56661
56662   # At some point, we should differentiate between architectures
56663   # like x86, which have long double versions, and alpha/powerpc/etc.,
56664   # which don't. For the time being, punt.
56665   if test x"long_double_math_on_this_cpu" = x"yes"; then
56666     cat >>confdefs.h <<\_ACEOF
56667 #define HAVE_ACOSL 1
56668 _ACEOF
56669
56670     cat >>confdefs.h <<\_ACEOF
56671 #define HAVE_ASINL 1
56672 _ACEOF
56673
56674     cat >>confdefs.h <<\_ACEOF
56675 #define HAVE_ATAN2L 1
56676 _ACEOF
56677
56678     cat >>confdefs.h <<\_ACEOF
56679 #define HAVE_ATANL 1
56680 _ACEOF
56681
56682     cat >>confdefs.h <<\_ACEOF
56683 #define HAVE_CEILL 1
56684 _ACEOF
56685
56686     cat >>confdefs.h <<\_ACEOF
56687 #define HAVE_COPYSIGNL 1
56688 _ACEOF
56689
56690     cat >>confdefs.h <<\_ACEOF
56691 #define HAVE_COSL 1
56692 _ACEOF
56693
56694     cat >>confdefs.h <<\_ACEOF
56695 #define HAVE_COSHL 1
56696 _ACEOF
56697
56698     cat >>confdefs.h <<\_ACEOF
56699 #define HAVE_EXPL 1
56700 _ACEOF
56701
56702     cat >>confdefs.h <<\_ACEOF
56703 #define HAVE_FABSL 1
56704 _ACEOF
56705
56706     cat >>confdefs.h <<\_ACEOF
56707 #define HAVE_FLOORL 1
56708 _ACEOF
56709
56710     cat >>confdefs.h <<\_ACEOF
56711 #define HAVE_FMODL 1
56712 _ACEOF
56713
56714     cat >>confdefs.h <<\_ACEOF
56715 #define HAVE_FREXPL 1
56716 _ACEOF
56717
56718     cat >>confdefs.h <<\_ACEOF
56719 #define HAVE_LDEXPL 1
56720 _ACEOF
56721
56722     cat >>confdefs.h <<\_ACEOF
56723 #define HAVE_LOG10L 1
56724 _ACEOF
56725
56726     cat >>confdefs.h <<\_ACEOF
56727 #define HAVE_LOGL 1
56728 _ACEOF
56729
56730     cat >>confdefs.h <<\_ACEOF
56731 #define HAVE_MODFL 1
56732 _ACEOF
56733
56734     cat >>confdefs.h <<\_ACEOF
56735 #define HAVE_POWL 1
56736 _ACEOF
56737
56738     cat >>confdefs.h <<\_ACEOF
56739 #define HAVE_SINCOSL 1
56740 _ACEOF
56741
56742     cat >>confdefs.h <<\_ACEOF
56743 #define HAVE_SINL 1
56744 _ACEOF
56745
56746     cat >>confdefs.h <<\_ACEOF
56747 #define HAVE_SINHL 1
56748 _ACEOF
56749
56750     cat >>confdefs.h <<\_ACEOF
56751 #define HAVE_SQRTL 1
56752 _ACEOF
56753
56754     cat >>confdefs.h <<\_ACEOF
56755 #define HAVE_TANL 1
56756 _ACEOF
56757
56758     cat >>confdefs.h <<\_ACEOF
56759 #define HAVE_TANHL 1
56760 _ACEOF
56761
56762   fi
56763
56764 fi
56765
56766 # This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it assumes no.
56767
56768
56769  # Check whether --enable-symvers or --disable-symvers was given.
56770 if test "${enable_symvers+set}" = set; then
56771   enableval="$enable_symvers"
56772
56773       case "$enableval" in
56774        yes|no|gnu) ;;
56775        *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5
56776 echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;}
56777    { (exit 1); exit 1; }; } ;;
56778                           esac
56779
56780 else
56781   enable_symvers=yes
56782 fi;
56783
56784
56785 # If we never went through the GLIBCXX_CHECK_LINKER_FEATURES macro, then we
56786 # don't know enough about $LD to do tricks...
56787
56788 # FIXME  The following test is too strict, in theory.
56789 if test $enable_shared = no ||
56790         test "x$LD" = x ||
56791         test x$glibcxx_gnu_ld_version = x; then
56792   enable_symvers=no
56793 fi
56794
56795 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
56796 if test $enable_symvers != no; then
56797   echo "$as_me:$LINENO: checking for shared libgcc" >&5
56798 echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6
56799   ac_save_CFLAGS="$CFLAGS"
56800   CFLAGS=' -lgcc_s'
56801   cat >conftest.$ac_ext <<_ACEOF
56802 #line $LINENO "configure"
56803 /* confdefs.h.  */
56804 _ACEOF
56805 cat confdefs.h >>conftest.$ac_ext
56806 cat >>conftest.$ac_ext <<_ACEOF
56807 /* end confdefs.h.  */
56808
56809 int
56810 main ()
56811 {
56812 return 0;
56813   ;
56814   return 0;
56815 }
56816 _ACEOF
56817 rm -f conftest.$ac_objext conftest$ac_exeext
56818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
56819   (eval $ac_link) 2>&5
56820   ac_status=$?
56821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56822   (exit $ac_status); } &&
56823          { ac_try='test -s conftest$ac_exeext'
56824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56825   (eval $ac_try) 2>&5
56826   ac_status=$?
56827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56828   (exit $ac_status); }; }; then
56829   glibcxx_shared_libgcc=yes
56830 else
56831   echo "$as_me: failed program was:" >&5
56832 sed 's/^/| /' conftest.$ac_ext >&5
56833
56834 glibcxx_shared_libgcc=no
56835 fi
56836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
56837   CFLAGS="$ac_save_CFLAGS"
56838   echo "$as_me:$LINENO: result: $glibcxx_shared_libgcc" >&5
56839 echo "${ECHO_T}$glibcxx_shared_libgcc" >&6
56840 fi
56841
56842 # For GNU ld, we need at least this version.  The format is described in
56843 # GLIBCXX_CHECK_LINKER_FEATURES above.
56844 glibcxx_min_gnu_ld_version=21400
56845 # XXXXXXXXXXX glibcxx_gnu_ld_version=21390
56846
56847 # Check to see if unspecified "yes" value can win, given results above.
56848 # Change "yes" into either "no" or a style name.
56849 if test $enable_symvers = yes; then
56850   if test $with_gnu_ld = yes &&
56851      test $glibcxx_shared_libgcc = yes;
56852   then
56853     if test $glibcxx_gnu_ld_version -ge $glibcxx_min_gnu_ld_version ; then
56854       enable_symvers=gnu
56855     else
56856       # The right tools, the right setup, but too old.  Fallbacks?
56857       { echo "$as_me:$LINENO: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&5
56858 echo "$as_me: WARNING: === Linker version $glibcxx_gnu_ld_version is too old for" >&2;}
56859       { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5
56860 echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
56861       { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5
56862 echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
56863       { echo "$as_me:$LINENO: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&5
56864 echo "$as_me: WARNING: === $glibcxx_min_gnu_ld_version or later and rebuild GCC." >&2;}
56865       if test $glibcxx_gnu_ld_version -ge 21200 ; then
56866         # Globbing fix is present, proper block support is not.
56867                         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
56868 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
56869         enable_symvers=no
56870       else
56871         # 2.11 or older.
56872         { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
56873 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
56874         enable_symvers=no
56875       fi
56876     fi
56877   else
56878     # just fail for now
56879     { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5
56880 echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
56881     { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5
56882 echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
56883     { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5
56884 echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
56885     { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5
56886 echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
56887     enable_symvers=no
56888   fi
56889 fi
56890
56891 # Everything parsed; figure out what file to use.
56892 case $enable_symvers in
56893   no)
56894     SYMVER_MAP=config/linker-map.dummy
56895     ;;
56896   gnu)
56897     SYMVER_MAP=config/linker-map.gnu
56898     cat >>confdefs.h <<\_ACEOF
56899 #define _GLIBCXX_SYMVER 1
56900 _ACEOF
56901
56902     ;;
56903 esac
56904
56905
56906
56907
56908 { echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5
56909 echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
56910
56911
56912 # This depends on GLIBCXX_ENABLE_SYMVERS and GLIBCXX_IS_NATIVE.
56913
56914   if $GLIBCXX_IS_NATIVE && test $is_hosted = yes; then
56915     # Do checks for memory limit functions.
56916
56917   setrlimit_have_headers=yes
56918
56919
56920
56921 for ac_header in unistd.h sys/time.h sys/resource.h
56922 do
56923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
56924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56925   echo "$as_me:$LINENO: checking for $ac_header" >&5
56926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
56927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
56928   echo $ECHO_N "(cached) $ECHO_C" >&6
56929 fi
56930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
56931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
56932 else
56933   # Is the header compilable?
56934 echo "$as_me:$LINENO: checking $ac_header usability" >&5
56935 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
56936 cat >conftest.$ac_ext <<_ACEOF
56937 #line $LINENO "configure"
56938 /* confdefs.h.  */
56939 _ACEOF
56940 cat confdefs.h >>conftest.$ac_ext
56941 cat >>conftest.$ac_ext <<_ACEOF
56942 /* end confdefs.h.  */
56943 $ac_includes_default
56944 #include <$ac_header>
56945 _ACEOF
56946 rm -f conftest.$ac_objext
56947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
56948   (eval $ac_compile) 2>&5
56949   ac_status=$?
56950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56951   (exit $ac_status); } &&
56952          { ac_try='test -s conftest.$ac_objext'
56953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
56954   (eval $ac_try) 2>&5
56955   ac_status=$?
56956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56957   (exit $ac_status); }; }; then
56958   ac_header_compiler=yes
56959 else
56960   echo "$as_me: failed program was:" >&5
56961 sed 's/^/| /' conftest.$ac_ext >&5
56962
56963 ac_header_compiler=no
56964 fi
56965 rm -f conftest.$ac_objext conftest.$ac_ext
56966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56967 echo "${ECHO_T}$ac_header_compiler" >&6
56968
56969 # Is the header present?
56970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
56971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
56972 cat >conftest.$ac_ext <<_ACEOF
56973 #line $LINENO "configure"
56974 /* confdefs.h.  */
56975 _ACEOF
56976 cat confdefs.h >>conftest.$ac_ext
56977 cat >>conftest.$ac_ext <<_ACEOF
56978 /* end confdefs.h.  */
56979 #include <$ac_header>
56980 _ACEOF
56981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
56982   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
56983   ac_status=$?
56984   grep -v '^ *+' conftest.er1 >conftest.err
56985   rm -f conftest.er1
56986   cat conftest.err >&5
56987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56988   (exit $ac_status); } >/dev/null; then
56989   if test -s conftest.err; then
56990     ac_cpp_err=$ac_c_preproc_warn_flag
56991   else
56992     ac_cpp_err=
56993   fi
56994 else
56995   ac_cpp_err=yes
56996 fi
56997 if test -z "$ac_cpp_err"; then
56998   ac_header_preproc=yes
56999 else
57000   echo "$as_me: failed program was:" >&5
57001 sed 's/^/| /' conftest.$ac_ext >&5
57002
57003   ac_header_preproc=no
57004 fi
57005 rm -f conftest.err conftest.$ac_ext
57006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
57007 echo "${ECHO_T}$ac_header_preproc" >&6
57008
57009 # So?  What about this header?
57010 case $ac_header_compiler:$ac_header_preproc in
57011   yes:no )
57012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
57013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
57014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57016     (
57017       cat <<\_ASBOX
57018 ## ------------------------------------ ##
57019 ## Report this to bug-autoconf@gnu.org. ##
57020 ## ------------------------------------ ##
57021 _ASBOX
57022     ) |
57023       sed "s/^/$as_me: WARNING:     /" >&2
57024     ;;
57025   no:yes )
57026     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
57027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
57028     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
57029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
57030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
57031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
57032     (
57033       cat <<\_ASBOX
57034 ## ------------------------------------ ##
57035 ## Report this to bug-autoconf@gnu.org. ##
57036 ## ------------------------------------ ##
57037 _ASBOX
57038     ) |
57039       sed "s/^/$as_me: WARNING:     /" >&2
57040     ;;
57041 esac
57042 echo "$as_me:$LINENO: checking for $ac_header" >&5
57043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
57044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
57045   echo $ECHO_N "(cached) $ECHO_C" >&6
57046 else
57047   eval "$as_ac_Header=$ac_header_preproc"
57048 fi
57049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
57050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
57051
57052 fi
57053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
57054   cat >>confdefs.h <<_ACEOF
57055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
57056 _ACEOF
57057
57058 else
57059   setrlimit_have_headers=no
57060 fi
57061
57062 done
57063
57064   # If don't have the headers, then we can't run the tests now, and we
57065   # won't be seeing any of these during testsuite compilation.
57066   if test $setrlimit_have_headers = yes; then
57067     # Can't do these in a loop, else the resulting syntax is wrong.
57068
57069   cat >conftest.$ac_ext <<_ACEOF
57070 #line $LINENO "configure"
57071 /* confdefs.h.  */
57072 _ACEOF
57073 cat confdefs.h >>conftest.$ac_ext
57074 cat >>conftest.$ac_ext <<_ACEOF
57075 /* end confdefs.h.  */
57076 #include <unistd.h>
57077      #include <sys/time.h>
57078      #include <sys/resource.h>
57079
57080 int
57081 main ()
57082 {
57083  int f = RLIMIT_DATA ;
57084   ;
57085   return 0;
57086 }
57087 _ACEOF
57088 rm -f conftest.$ac_objext
57089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57090   (eval $ac_compile) 2>&5
57091   ac_status=$?
57092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57093   (exit $ac_status); } &&
57094          { ac_try='test -s conftest.$ac_objext'
57095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57096   (eval $ac_try) 2>&5
57097   ac_status=$?
57098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57099   (exit $ac_status); }; }; then
57100   glibcxx_mresult=1
57101 else
57102   echo "$as_me: failed program was:" >&5
57103 sed 's/^/| /' conftest.$ac_ext >&5
57104
57105 glibcxx_mresult=0
57106 fi
57107 rm -f conftest.$ac_objext conftest.$ac_ext
57108
57109 cat >>confdefs.h <<_ACEOF
57110 #define HAVE_MEMLIMIT_DATA $glibcxx_mresult
57111 _ACEOF
57112
57113
57114
57115   cat >conftest.$ac_ext <<_ACEOF
57116 #line $LINENO "configure"
57117 /* confdefs.h.  */
57118 _ACEOF
57119 cat confdefs.h >>conftest.$ac_ext
57120 cat >>conftest.$ac_ext <<_ACEOF
57121 /* end confdefs.h.  */
57122 #include <unistd.h>
57123      #include <sys/time.h>
57124      #include <sys/resource.h>
57125
57126 int
57127 main ()
57128 {
57129  int f = RLIMIT_RSS ;
57130   ;
57131   return 0;
57132 }
57133 _ACEOF
57134 rm -f conftest.$ac_objext
57135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57136   (eval $ac_compile) 2>&5
57137   ac_status=$?
57138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57139   (exit $ac_status); } &&
57140          { ac_try='test -s conftest.$ac_objext'
57141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57142   (eval $ac_try) 2>&5
57143   ac_status=$?
57144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57145   (exit $ac_status); }; }; then
57146   glibcxx_mresult=1
57147 else
57148   echo "$as_me: failed program was:" >&5
57149 sed 's/^/| /' conftest.$ac_ext >&5
57150
57151 glibcxx_mresult=0
57152 fi
57153 rm -f conftest.$ac_objext conftest.$ac_ext
57154
57155 cat >>confdefs.h <<_ACEOF
57156 #define HAVE_MEMLIMIT_RSS $glibcxx_mresult
57157 _ACEOF
57158
57159
57160
57161   cat >conftest.$ac_ext <<_ACEOF
57162 #line $LINENO "configure"
57163 /* confdefs.h.  */
57164 _ACEOF
57165 cat confdefs.h >>conftest.$ac_ext
57166 cat >>conftest.$ac_ext <<_ACEOF
57167 /* end confdefs.h.  */
57168 #include <unistd.h>
57169      #include <sys/time.h>
57170      #include <sys/resource.h>
57171
57172 int
57173 main ()
57174 {
57175  int f = RLIMIT_VMEM ;
57176   ;
57177   return 0;
57178 }
57179 _ACEOF
57180 rm -f conftest.$ac_objext
57181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57182   (eval $ac_compile) 2>&5
57183   ac_status=$?
57184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57185   (exit $ac_status); } &&
57186          { ac_try='test -s conftest.$ac_objext'
57187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57188   (eval $ac_try) 2>&5
57189   ac_status=$?
57190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57191   (exit $ac_status); }; }; then
57192   glibcxx_mresult=1
57193 else
57194   echo "$as_me: failed program was:" >&5
57195 sed 's/^/| /' conftest.$ac_ext >&5
57196
57197 glibcxx_mresult=0
57198 fi
57199 rm -f conftest.$ac_objext conftest.$ac_ext
57200
57201 cat >>confdefs.h <<_ACEOF
57202 #define HAVE_MEMLIMIT_VMEM $glibcxx_mresult
57203 _ACEOF
57204
57205
57206
57207   cat >conftest.$ac_ext <<_ACEOF
57208 #line $LINENO "configure"
57209 /* confdefs.h.  */
57210 _ACEOF
57211 cat confdefs.h >>conftest.$ac_ext
57212 cat >>conftest.$ac_ext <<_ACEOF
57213 /* end confdefs.h.  */
57214 #include <unistd.h>
57215      #include <sys/time.h>
57216      #include <sys/resource.h>
57217
57218 int
57219 main ()
57220 {
57221  int f = RLIMIT_AS ;
57222   ;
57223   return 0;
57224 }
57225 _ACEOF
57226 rm -f conftest.$ac_objext
57227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57228   (eval $ac_compile) 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   glibcxx_mresult=1
57239 else
57240   echo "$as_me: failed program was:" >&5
57241 sed 's/^/| /' conftest.$ac_ext >&5
57242
57243 glibcxx_mresult=0
57244 fi
57245 rm -f conftest.$ac_objext conftest.$ac_ext
57246
57247 cat >>confdefs.h <<_ACEOF
57248 #define HAVE_MEMLIMIT_AS $glibcxx_mresult
57249 _ACEOF
57250
57251
57252
57253     # Check for rlimit, setrlimit.
57254     if test "${ac_setrlimit+set}" = set; then
57255   echo $ECHO_N "(cached) $ECHO_C" >&6
57256 else
57257
57258       cat >conftest.$ac_ext <<_ACEOF
57259 #line $LINENO "configure"
57260 /* confdefs.h.  */
57261 _ACEOF
57262 cat confdefs.h >>conftest.$ac_ext
57263 cat >>conftest.$ac_ext <<_ACEOF
57264 /* end confdefs.h.  */
57265 #include <unistd.h>
57266          #include <sys/time.h>
57267          #include <sys/resource.h>
57268
57269 int
57270 main ()
57271 {
57272 struct rlimit r;
57273          setrlimit(0, &r);
57274   ;
57275   return 0;
57276 }
57277 _ACEOF
57278 rm -f conftest.$ac_objext
57279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57280   (eval $ac_compile) 2>&5
57281   ac_status=$?
57282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57283   (exit $ac_status); } &&
57284          { ac_try='test -s conftest.$ac_objext'
57285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57286   (eval $ac_try) 2>&5
57287   ac_status=$?
57288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57289   (exit $ac_status); }; }; then
57290   ac_setrlimit=yes
57291 else
57292   echo "$as_me: failed program was:" >&5
57293 sed 's/^/| /' conftest.$ac_ext >&5
57294
57295 ac_setrlimit=no
57296 fi
57297 rm -f conftest.$ac_objext conftest.$ac_ext
57298
57299 fi
57300
57301   fi
57302
57303   echo "$as_me:$LINENO: checking for testsuite memory limit support" >&5
57304 echo $ECHO_N "checking for testsuite memory limit support... $ECHO_C" >&6
57305   if test $setrlimit_have_headers = yes && test $ac_setrlimit = yes; then
57306     ac_mem_limits=yes
57307     cat >>confdefs.h <<\_ACEOF
57308 #define _GLIBCXX_MEM_LIMITS 1
57309 _ACEOF
57310
57311   else
57312     ac_mem_limits=no
57313   fi
57314   echo "$as_me:$LINENO: result: $ac_mem_limits" >&5
57315 echo "${ECHO_T}$ac_mem_limits" >&6
57316
57317
57318     # Look for setenv, so that extended locale tests can be performed.
57319
57320   echo "$as_me:$LINENO: checking for setenv declaration" >&5
57321 echo $ECHO_N "checking for setenv declaration... $ECHO_C" >&6
57322   if test x${glibcxx_cv_func_setenv_use+set} != xset; then
57323     if test "${glibcxx_cv_func_setenv_use+set}" = set; then
57324   echo $ECHO_N "(cached) $ECHO_C" >&6
57325 else
57326
57327
57328
57329       ac_ext=cc
57330 ac_cpp='$CXXCPP $CPPFLAGS'
57331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
57332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
57333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
57334
57335       cat >conftest.$ac_ext <<_ACEOF
57336 #line $LINENO "configure"
57337 /* confdefs.h.  */
57338 _ACEOF
57339 cat confdefs.h >>conftest.$ac_ext
57340 cat >>conftest.$ac_ext <<_ACEOF
57341 /* end confdefs.h.  */
57342 #include <stdlib.h>
57343 int
57344 main ()
57345 {
57346  setenv(0, 0, 0);
57347   ;
57348   return 0;
57349 }
57350 _ACEOF
57351 rm -f conftest.$ac_objext
57352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
57353   (eval $ac_compile) 2>&5
57354   ac_status=$?
57355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57356   (exit $ac_status); } &&
57357          { ac_try='test -s conftest.$ac_objext'
57358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57359   (eval $ac_try) 2>&5
57360   ac_status=$?
57361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57362   (exit $ac_status); }; }; then
57363   glibcxx_cv_func_setenv_use=yes
57364 else
57365   echo "$as_me: failed program was:" >&5
57366 sed 's/^/| /' conftest.$ac_ext >&5
57367
57368 glibcxx_cv_func_setenv_use=no
57369 fi
57370 rm -f conftest.$ac_objext conftest.$ac_ext
57371       ac_ext=c
57372 ac_cpp='$CPP $CPPFLAGS'
57373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
57374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
57375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
57376
57377
57378 fi
57379
57380   fi
57381   echo "$as_me:$LINENO: result: $glibcxx_cv_func_setenv_use" >&5
57382 echo "${ECHO_T}$glibcxx_cv_func_setenv_use" >&6
57383   if test x$glibcxx_cv_func_setenv_use = x"yes"; then
57384
57385 for ac_func in setenv
57386 do
57387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57388 echo "$as_me:$LINENO: checking for $ac_func" >&5
57389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
57390 if eval "test \"\${$as_ac_var+set}\" = set"; then
57391   echo $ECHO_N "(cached) $ECHO_C" >&6
57392 else
57393   cat >conftest.$ac_ext <<_ACEOF
57394 #line $LINENO "configure"
57395 /* confdefs.h.  */
57396 _ACEOF
57397 cat confdefs.h >>conftest.$ac_ext
57398 cat >>conftest.$ac_ext <<_ACEOF
57399 /* end confdefs.h.  */
57400 /* System header to define __stub macros and hopefully few prototypes,
57401     which can conflict with char $ac_func (); below.
57402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57403     <limits.h> exists even on freestanding compilers.  */
57404 #ifdef __STDC__
57405 # include <limits.h>
57406 #else
57407 # include <assert.h>
57408 #endif
57409 /* Override any gcc2 internal prototype to avoid an error.  */
57410 #ifdef __cplusplus
57411 extern "C"
57412 {
57413 #endif
57414 /* We use char because int might match the return type of a gcc2
57415    builtin and then its argument prototype would still apply.  */
57416 char $ac_func ();
57417 /* The GNU C library defines this for functions which it implements
57418     to always fail with ENOSYS.  Some functions are actually named
57419     something starting with __ and the normal name is an alias.  */
57420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
57421 choke me
57422 #else
57423 char (*f) () = $ac_func;
57424 #endif
57425 #ifdef __cplusplus
57426 }
57427 #endif
57428
57429 int
57430 main ()
57431 {
57432 return f != $ac_func;
57433   ;
57434   return 0;
57435 }
57436 _ACEOF
57437 rm -f conftest.$ac_objext conftest$ac_exeext
57438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
57439   (eval $ac_link) 2>&5
57440   ac_status=$?
57441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57442   (exit $ac_status); } &&
57443          { ac_try='test -s conftest$ac_exeext'
57444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
57445   (eval $ac_try) 2>&5
57446   ac_status=$?
57447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57448   (exit $ac_status); }; }; then
57449   eval "$as_ac_var=yes"
57450 else
57451   echo "$as_me: failed program was:" >&5
57452 sed 's/^/| /' conftest.$ac_ext >&5
57453
57454 eval "$as_ac_var=no"
57455 fi
57456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57457 fi
57458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
57459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
57460 if test `eval echo '${'$as_ac_var'}'` = yes; then
57461   cat >>confdefs.h <<_ACEOF
57462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57463 _ACEOF
57464
57465 fi
57466 done
57467
57468   fi
57469
57470   fi
57471
57472   # Export file names for ABI checking.
57473   baseline_dir="$glibcxx_srcdir/config/abi/${abi_baseline_pair}\$(MULTISUBDIR)"
57474
57475
57476   # Determine if checking the ABI is desirable.
57477   if test $enable_symvers = no || test $is_hosted = no; then
57478     enable_abi_check=no
57479   else
57480     case "$host" in
57481       *-*-cygwin*)
57482         enable_abi_check=no ;;
57483       *)
57484         enable_abi_check=yes ;;
57485     esac
57486   fi
57487
57488
57489
57490
57491
57492 # Propagate the target-specific source directories through the build chain.
57493 # (Nothing currently uses cpu_include_dir directly; only atomicity_include_dir
57494 # uses it, and it only gets used in this file.)
57495 ATOMICITY_INC_SRCDIR=config/${atomicity_include_dir}
57496 OS_INC_SRCDIR=config/${os_include_dir}
57497 FPOS_INC_SRCDIR=config/${fpos_include_dir}
57498
57499
57500
57501
57502 # Determine cross-compile flags and AM_CONDITIONALs.
57503 #AC_SUBST(GLIBCXX_IS_NATIVE)
57504 #AM_CONDITIONAL(CANADIAN, test $CANADIAN = yes)
57505 # from GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT:
57506 #AM_CONDITIONAL(GLIBCXX_BUILD_LIBMATH,  test $need_libmath = yes)
57507
57508
57509 if test $is_hosted = yes; then
57510   GLIBCXX_HOSTED_TRUE=
57511   GLIBCXX_HOSTED_FALSE='#'
57512 else
57513   GLIBCXX_HOSTED_TRUE='#'
57514   GLIBCXX_HOSTED_FALSE=
57515 fi
57516
57517
57518
57519
57520 if test $enable_libstdcxx_pch = yes; then
57521   GLIBCXX_BUILD_PCH_TRUE=
57522   GLIBCXX_BUILD_PCH_FALSE='#'
57523 else
57524   GLIBCXX_BUILD_PCH_TRUE='#'
57525   GLIBCXX_BUILD_PCH_FALSE=
57526 fi
57527
57528
57529
57530
57531 if test $enable_cheaders = c; then
57532   GLIBCXX_C_HEADERS_C_TRUE=
57533   GLIBCXX_C_HEADERS_C_FALSE='#'
57534 else
57535   GLIBCXX_C_HEADERS_C_TRUE='#'
57536   GLIBCXX_C_HEADERS_C_FALSE=
57537 fi
57538
57539
57540
57541
57542 if test $enable_cheaders = c_std; then
57543   GLIBCXX_C_HEADERS_C_STD_TRUE=
57544   GLIBCXX_C_HEADERS_C_STD_FALSE='#'
57545 else
57546   GLIBCXX_C_HEADERS_C_STD_TRUE='#'
57547   GLIBCXX_C_HEADERS_C_STD_FALSE=
57548 fi
57549
57550
57551
57552
57553 if test $c_compatibility = yes; then
57554   GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE=
57555   GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE='#'
57556 else
57557   GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE='#'
57558   GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE=
57559 fi
57560
57561
57562
57563
57564 if test $enable_libstdcxx_debug = yes; then
57565   GLIBCXX_BUILD_DEBUG_TRUE=
57566   GLIBCXX_BUILD_DEBUG_FALSE='#'
57567 else
57568   GLIBCXX_BUILD_DEBUG_TRUE='#'
57569   GLIBCXX_BUILD_DEBUG_FALSE=
57570 fi
57571
57572
57573
57574
57575 if test $enable_symvers != no; then
57576   GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE=
57577   GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE='#'
57578 else
57579   GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE='#'
57580   GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE=
57581 fi
57582
57583
57584
57585
57586 if test $enable_wchar_t = yes; then
57587   GLIBCXX_TEST_WCHAR_T_TRUE=
57588   GLIBCXX_TEST_WCHAR_T_FALSE='#'
57589 else
57590   GLIBCXX_TEST_WCHAR_T_TRUE='#'
57591   GLIBCXX_TEST_WCHAR_T_FALSE=
57592 fi
57593
57594
57595
57596
57597 if test $enable_abi_check = yes; then
57598   GLIBCXX_TEST_ABI_TRUE=
57599   GLIBCXX_TEST_ABI_FALSE='#'
57600 else
57601   GLIBCXX_TEST_ABI_TRUE='#'
57602   GLIBCXX_TEST_ABI_FALSE=
57603 fi
57604
57605
57606
57607
57608 cat >confcache <<\_ACEOF
57609 # This file is a shell script that caches the results of configure
57610 # tests run on this system so they can be shared between configure
57611 # scripts and configure runs, see configure's option --config-cache.
57612 # It is not useful on other systems.  If it contains results you don't
57613 # want to keep, you may remove or edit it.
57614 #
57615 # config.status only pays attention to the cache file if you give it
57616 # the --recheck option to rerun configure.
57617 #
57618 # `ac_cv_env_foo' variables (set or unset) will be overridden when
57619 # loading this file, other *unset* `ac_cv_foo' will be assigned the
57620 # following values.
57621
57622 _ACEOF
57623
57624 # The following way of writing the cache mishandles newlines in values,
57625 # but we know of no workaround that is simple, portable, and efficient.
57626 # So, don't put newlines in cache variables' values.
57627 # Ultrix sh set writes to stderr and can't be redirected directly,
57628 # and sets the high bit in the cache file unless we assign to the vars.
57629 {
57630   (set) 2>&1 |
57631     case `(ac_space=' '; set | grep ac_space) 2>&1` in
57632     *ac_space=\ *)
57633       # `set' does not quote correctly, so add quotes (double-quote
57634       # substitution turns \\\\ into \\, and sed turns \\ into \).
57635       sed -n \
57636         "s/'/'\\\\''/g;
57637           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
57638       ;;
57639     *)
57640       # `set' quotes correctly as required by POSIX, so do not add quotes.
57641       sed -n \
57642         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
57643       ;;
57644     esac;
57645 } |
57646   sed '
57647      t clear
57648      : clear
57649      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
57650      t end
57651      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
57652      : end' >>confcache
57653 if diff $cache_file confcache >/dev/null 2>&1; then :; else
57654   if test -w $cache_file; then
57655     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
57656     cat confcache >$cache_file
57657   else
57658     echo "not updating unwritable cache $cache_file"
57659   fi
57660 fi
57661 rm -f confcache
57662
57663 if test ${multilib} = yes; then
57664   multilib_arg="--enable-multilib"
57665 else
57666   multilib_arg=
57667 fi
57668
57669 # Export all the install information.
57670
57671   glibcxx_toolexecdir=no
57672   glibcxx_toolexeclibdir=no
57673   glibcxx_prefixdir=$prefix
57674
57675   echo "$as_me:$LINENO: checking for gxx-include-dir" >&5
57676 echo $ECHO_N "checking for gxx-include-dir... $ECHO_C" >&6
57677
57678 # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given.
57679 if test "${with_gxx_include_dir+set}" = set; then
57680   withval="$with_gxx_include_dir"
57681   case "$withval" in
57682       yes) { { echo "$as_me:$LINENO: error: Missing directory for --with-gxx-include-dir" >&5
57683 echo "$as_me: error: Missing directory for --with-gxx-include-dir" >&2;}
57684    { (exit 1); exit 1; }; } ;;
57685       no)  gxx_include_dir=no ;;
57686       *)   gxx_include_dir=$withval ;;
57687      esac
57688 else
57689   gxx_include_dir=no
57690 fi;
57691   echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
57692 echo "${ECHO_T}$gxx_include_dir" >&6
57693
57694   echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5
57695 echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6
57696   # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
57697 if test "${enable_version_specific_runtime_libs+set}" = set; then
57698   enableval="$enable_version_specific_runtime_libs"
57699   case "$enableval" in
57700       yes) version_specific_libs=yes ;;
57701       no)  version_specific_libs=no ;;
57702       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
57703 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
57704    { (exit 1); exit 1; }; };;
57705      esac
57706 else
57707   version_specific_libs=no
57708 fi;
57709   echo "$as_me:$LINENO: result: $version_specific_libs" >&5
57710 echo "${ECHO_T}$version_specific_libs" >&6
57711
57712   # Default case for install directory for include files.
57713   if test $version_specific_libs = no && test $gxx_include_dir = no; then
57714     gxx_include_dir='${prefix}'/include/c++/${gcc_version}
57715   fi
57716
57717   # Version-specific runtime libs processing.
57718   if test $version_specific_libs = yes; then
57719     # Need the gcc compiler version to know where to install libraries
57720     # and header files if --enable-version-specific-runtime-libs option
57721     # is selected.
57722     if test x"$gxx_include_dir" = x"no"; then
57723       gxx_include_dir='${libdir}/gcc-lib/${host_alias}/'$gcc_version/include/c++
57724     fi
57725     glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
57726     glibcxx_toolexeclibdir='${toolexecdir}/'$gcc_version'$(MULTISUBDIR)'
57727   fi
57728
57729   # Calculate glibcxx_toolexecdir, glibcxx_toolexeclibdir
57730   # Install a library built with a cross compiler in tooldir, not libdir.
57731   if test x"$glibcxx_toolexecdir" = x"no"; then
57732     if test -n "$with_cross_host" &&
57733        test x"$with_cross_host" != x"no"; then
57734       glibcxx_toolexecdir='${exec_prefix}/${host_alias}'
57735       glibcxx_toolexeclibdir='${toolexecdir}/lib'
57736     else
57737       glibcxx_toolexecdir='${libdir}/gcc-lib/${host_alias}'
57738       glibcxx_toolexeclibdir='${libdir}'
57739     fi
57740     multi_os_directory=`$CXX -print-multi-os-directory`
57741     case $multi_os_directory in
57742       .) ;; # Avoid trailing /.
57743       *) glibcxx_toolexeclibdir=$glibcxx_toolexeclibdir/$multi_os_directory ;;
57744     esac
57745   fi
57746
57747   echo "$as_me:$LINENO: checking for install location" >&5
57748 echo $ECHO_N "checking for install location... $ECHO_C" >&6
57749   echo "$as_me:$LINENO: result: $gxx_include_dir" >&5
57750 echo "${ECHO_T}$gxx_include_dir" >&6
57751
57752
57753
57754
57755
57756
57757
57758 # Export all the include and flag information to Makefiles.
57759
57760   # Used for every C++ compile we perform.
57761   GLIBCXX_INCLUDES="\
57762 -I$glibcxx_builddir/include/$host_alias \
57763 -I$glibcxx_builddir/include \
57764 -I$glibcxx_srcdir/libsupc++"
57765
57766   # For Canadian crosses, pick this up too.
57767   if test $CANADIAN = yes; then
57768     GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES '-I${includedir}'"
57769   fi
57770
57771   # Stuff in the actual top level.  Currently only used by libsupc++ to
57772   # get unwind* headers from the gcc dir.
57773   #TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc -I$(toplevel_srcdir)/include'
57774   TOPLEVEL_INCLUDES='-I$(toplevel_srcdir)/gcc'
57775
57776   # Now, export this to all the little Makefiles....
57777
57778
57779
57780
57781   # Optimization flags that are probably a good idea for thrill-seekers. Just
57782   # uncomment the lines below and make, everything else is ready to go...
57783   # OPTIMIZE_CXXFLAGS = -O3 -fstrict-aliasing -fvtable-gc
57784   OPTIMIZE_CXXFLAGS=
57785
57786
57787   WARN_FLAGS='-Wall -Wno-format -W -Wwrite-strings'
57788
57789
57790
57791 if ${CONFIG_SHELL-/bin/sh} ./libtool --tag CXX --features |
57792    grep "enable shared" > /dev/null;
57793 then
57794   LIBSUPCXX_PICFLAGS=-prefer-pic
57795 else
57796   LIBSUPCXX_PICFLAGS=
57797 fi
57798
57799
57800                                                                       ac_config_files="$ac_config_files Makefile include/Makefile libmath/Makefile libsupc++/Makefile src/Makefile po/Makefile testsuite/Makefile"
57801
57802           ac_config_files="$ac_config_files scripts/check_survey"
57803
57804           ac_config_files="$ac_config_files scripts/testsuite_flags"
57805
57806
57807           ac_config_commands="$ac_config_commands default"
57808
57809
57810 cat >confcache <<\_ACEOF
57811 # This file is a shell script that caches the results of configure
57812 # tests run on this system so they can be shared between configure
57813 # scripts and configure runs, see configure's option --config-cache.
57814 # It is not useful on other systems.  If it contains results you don't
57815 # want to keep, you may remove or edit it.
57816 #
57817 # config.status only pays attention to the cache file if you give it
57818 # the --recheck option to rerun configure.
57819 #
57820 # `ac_cv_env_foo' variables (set or unset) will be overridden when
57821 # loading this file, other *unset* `ac_cv_foo' will be assigned the
57822 # following values.
57823
57824 _ACEOF
57825
57826 # The following way of writing the cache mishandles newlines in values,
57827 # but we know of no workaround that is simple, portable, and efficient.
57828 # So, don't put newlines in cache variables' values.
57829 # Ultrix sh set writes to stderr and can't be redirected directly,
57830 # and sets the high bit in the cache file unless we assign to the vars.
57831 {
57832   (set) 2>&1 |
57833     case `(ac_space=' '; set | grep ac_space) 2>&1` in
57834     *ac_space=\ *)
57835       # `set' does not quote correctly, so add quotes (double-quote
57836       # substitution turns \\\\ into \\, and sed turns \\ into \).
57837       sed -n \
57838         "s/'/'\\\\''/g;
57839           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
57840       ;;
57841     *)
57842       # `set' quotes correctly as required by POSIX, so do not add quotes.
57843       sed -n \
57844         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
57845       ;;
57846     esac;
57847 } |
57848   sed '
57849      t clear
57850      : clear
57851      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
57852      t end
57853      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
57854      : end' >>confcache
57855 if diff $cache_file confcache >/dev/null 2>&1; then :; else
57856   if test -w $cache_file; then
57857     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
57858     cat confcache >$cache_file
57859   else
57860     echo "not updating unwritable cache $cache_file"
57861   fi
57862 fi
57863 rm -f confcache
57864
57865 test "x$prefix" = xNONE && prefix=$ac_default_prefix
57866 # Let make expand exec_prefix.
57867 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
57868
57869 # VPATH may cause trouble with some makes, so we remove $(srcdir),
57870 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
57871 # trailing colons and then remove the whole line if VPATH becomes empty
57872 # (actually we leave an empty line to preserve line numbers).
57873 if test "x$srcdir" = x.; then
57874   ac_vpsub='/^[         ]*VPATH[        ]*=/{
57875 s/:*\$(srcdir):*/:/;
57876 s/:*\${srcdir}:*/:/;
57877 s/:*@srcdir@:*/:/;
57878 s/^\([^=]*=[    ]*\):*/\1/;
57879 s/:*$//;
57880 s/^[^=]*=[      ]*$//;
57881 }'
57882 fi
57883
57884 DEFS=-DHAVE_CONFIG_H
57885
57886 ac_libobjs=
57887 ac_ltlibobjs=
57888 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
57889   # 1. Remove the extension, and $U if already installed.
57890   ac_i=`echo "$ac_i" |
57891          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
57892   # 2. Add them.
57893   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
57894   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
57895 done
57896 LIBOBJS=$ac_libobjs
57897
57898 LTLIBOBJS=$ac_ltlibobjs
57899
57900
57901 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
57902   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
57903 Usually this means the macro was only invoked conditionally." >&5
57904 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
57905 Usually this means the macro was only invoked conditionally." >&2;}
57906    { (exit 1); exit 1; }; }
57907 fi
57908 if test -z "${GLIBCXX_HOSTED_TRUE}" && test -z "${GLIBCXX_HOSTED_FALSE}"; then
57909   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_HOSTED\" was never defined.
57910 Usually this means the macro was only invoked conditionally." >&5
57911 echo "$as_me: error: conditional \"GLIBCXX_HOSTED\" was never defined.
57912 Usually this means the macro was only invoked conditionally." >&2;}
57913    { (exit 1); exit 1; }; }
57914 fi
57915 if test -z "${GLIBCXX_BUILD_PCH_TRUE}" && test -z "${GLIBCXX_BUILD_PCH_FALSE}"; then
57916   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
57917 Usually this means the macro was only invoked conditionally." >&5
57918 echo "$as_me: error: conditional \"GLIBCXX_BUILD_PCH\" was never defined.
57919 Usually this means the macro was only invoked conditionally." >&2;}
57920    { (exit 1); exit 1; }; }
57921 fi
57922 if test -z "${GLIBCXX_C_HEADERS_C_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_FALSE}"; then
57923   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
57924 Usually this means the macro was only invoked conditionally." >&5
57925 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C\" was never defined.
57926 Usually this means the macro was only invoked conditionally." >&2;}
57927    { (exit 1); exit 1; }; }
57928 fi
57929 if test -z "${GLIBCXX_C_HEADERS_C_STD_TRUE}" && test -z "${GLIBCXX_C_HEADERS_C_STD_FALSE}"; then
57930   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
57931 Usually this means the macro was only invoked conditionally." >&5
57932 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_C_STD\" was never defined.
57933 Usually this means the macro was only invoked conditionally." >&2;}
57934    { (exit 1); exit 1; }; }
57935 fi
57936 if test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE}" && test -z "${GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE}"; then
57937   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
57938 Usually this means the macro was only invoked conditionally." >&5
57939 echo "$as_me: error: conditional \"GLIBCXX_C_HEADERS_COMPATIBILITY\" was never defined.
57940 Usually this means the macro was only invoked conditionally." >&2;}
57941    { (exit 1); exit 1; }; }
57942 fi
57943 if test -z "${GLIBCXX_BUILD_DEBUG_TRUE}" && test -z "${GLIBCXX_BUILD_DEBUG_FALSE}"; then
57944   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
57945 Usually this means the macro was only invoked conditionally." >&5
57946 echo "$as_me: error: conditional \"GLIBCXX_BUILD_DEBUG\" was never defined.
57947 Usually this means the macro was only invoked conditionally." >&2;}
57948    { (exit 1); exit 1; }; }
57949 fi
57950 if test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE}"; then
57951   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
57952 Usually this means the macro was only invoked conditionally." >&5
57953 echo "$as_me: error: conditional \"GLIBCXX_BUILD_VERSIONED_SHLIB\" was never defined.
57954 Usually this means the macro was only invoked conditionally." >&2;}
57955    { (exit 1); exit 1; }; }
57956 fi
57957 if test -z "${GLIBCXX_TEST_WCHAR_T_TRUE}" && test -z "${GLIBCXX_TEST_WCHAR_T_FALSE}"; then
57958   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
57959 Usually this means the macro was only invoked conditionally." >&5
57960 echo "$as_me: error: conditional \"GLIBCXX_TEST_WCHAR_T\" was never defined.
57961 Usually this means the macro was only invoked conditionally." >&2;}
57962    { (exit 1); exit 1; }; }
57963 fi
57964 if test -z "${GLIBCXX_TEST_ABI_TRUE}" && test -z "${GLIBCXX_TEST_ABI_FALSE}"; then
57965   { { echo "$as_me:$LINENO: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
57966 Usually this means the macro was only invoked conditionally." >&5
57967 echo "$as_me: error: conditional \"GLIBCXX_TEST_ABI\" was never defined.
57968 Usually this means the macro was only invoked conditionally." >&2;}
57969    { (exit 1); exit 1; }; }
57970 fi
57971
57972 : ${CONFIG_STATUS=./config.status}
57973 ac_clean_files_save=$ac_clean_files
57974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
57975 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
57976 echo "$as_me: creating $CONFIG_STATUS" >&6;}
57977 cat >$CONFIG_STATUS <<_ACEOF
57978 #! $SHELL
57979 # Generated by $as_me.
57980 # Run this file to recreate the current configuration.
57981 # Compiler output produced by configure, useful for debugging
57982 # configure, is in config.log if it exists.
57983
57984 debug=false
57985 ac_cs_recheck=false
57986 ac_cs_silent=false
57987 SHELL=\${CONFIG_SHELL-$SHELL}
57988 _ACEOF
57989
57990 cat >>$CONFIG_STATUS <<\_ACEOF
57991 ## --------------------- ##
57992 ## M4sh Initialization.  ##
57993 ## --------------------- ##
57994
57995 # Be Bourne compatible
57996 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
57997   emulate sh
57998   NULLCMD=:
57999   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
58000   # is contrary to our usage.  Disable this feature.
58001   alias -g '${1+"$@"}'='"$@"'
58002 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
58003   set -o posix
58004 fi
58005
58006 # Support unset when possible.
58007 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
58008   as_unset=unset
58009 else
58010   as_unset=false
58011 fi
58012
58013
58014 # Work around bugs in pre-3.0 UWIN ksh.
58015 $as_unset ENV MAIL MAILPATH
58016 PS1='$ '
58017 PS2='> '
58018 PS4='+ '
58019
58020 # NLS nuisances.
58021 for as_var in \
58022   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
58023   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
58024   LC_TELEPHONE LC_TIME
58025 do
58026   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
58027     eval $as_var=C; export $as_var
58028   else
58029     $as_unset $as_var
58030   fi
58031 done
58032
58033 # Required to use basename.
58034 if expr a : '\(a\)' >/dev/null 2>&1; then
58035   as_expr=expr
58036 else
58037   as_expr=false
58038 fi
58039
58040 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
58041   as_basename=basename
58042 else
58043   as_basename=false
58044 fi
58045
58046
58047 # Name of the executable.
58048 as_me=`$as_basename "$0" ||
58049 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
58050          X"$0" : 'X\(//\)$' \| \
58051          X"$0" : 'X\(/\)$' \| \
58052          .     : '\(.\)' 2>/dev/null ||
58053 echo X/"$0" |
58054     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
58055           /^X\/\(\/\/\)$/{ s//\1/; q; }
58056           /^X\/\(\/\).*/{ s//\1/; q; }
58057           s/.*/./; q'`
58058
58059
58060 # PATH needs CR, and LINENO needs CR and PATH.
58061 # Avoid depending upon Character Ranges.
58062 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
58063 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
58064 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
58065 as_cr_digits='0123456789'
58066 as_cr_alnum=$as_cr_Letters$as_cr_digits
58067
58068 # The user is always right.
58069 if test "${PATH_SEPARATOR+set}" != set; then
58070   echo "#! /bin/sh" >conf$$.sh
58071   echo  "exit 0"   >>conf$$.sh
58072   chmod +x conf$$.sh
58073   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
58074     PATH_SEPARATOR=';'
58075   else
58076     PATH_SEPARATOR=:
58077   fi
58078   rm -f conf$$.sh
58079 fi
58080
58081
58082   as_lineno_1=$LINENO
58083   as_lineno_2=$LINENO
58084   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
58085   test "x$as_lineno_1" != "x$as_lineno_2" &&
58086   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
58087   # Find who we are.  Look in the path if we contain no path at all
58088   # relative or not.
58089   case $0 in
58090     *[\\/]* ) as_myself=$0 ;;
58091     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58092 for as_dir in $PATH
58093 do
58094   IFS=$as_save_IFS
58095   test -z "$as_dir" && as_dir=.
58096   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
58097 done
58098
58099        ;;
58100   esac
58101   # We did not find ourselves, most probably we were run as `sh COMMAND'
58102   # in which case we are not to be found in the path.
58103   if test "x$as_myself" = x; then
58104     as_myself=$0
58105   fi
58106   if test ! -f "$as_myself"; then
58107     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
58108 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
58109    { (exit 1); exit 1; }; }
58110   fi
58111   case $CONFIG_SHELL in
58112   '')
58113     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58114 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
58115 do
58116   IFS=$as_save_IFS
58117   test -z "$as_dir" && as_dir=.
58118   for as_base in sh bash ksh sh5; do
58119          case $as_dir in
58120          /*)
58121            if ("$as_dir/$as_base" -c '
58122   as_lineno_1=$LINENO
58123   as_lineno_2=$LINENO
58124   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
58125   test "x$as_lineno_1" != "x$as_lineno_2" &&
58126   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
58127              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
58128              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
58129              CONFIG_SHELL=$as_dir/$as_base
58130              export CONFIG_SHELL
58131              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
58132            fi;;
58133          esac
58134        done
58135 done
58136 ;;
58137   esac
58138
58139   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
58140   # uniformly replaced by the line number.  The first 'sed' inserts a
58141   # line-number line before each line; the second 'sed' does the real
58142   # work.  The second script uses 'N' to pair each line-number line
58143   # with the numbered line, and appends trailing '-' during
58144   # substitution so that $LINENO is not a special case at line end.
58145   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
58146   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
58147   sed '=' <$as_myself |
58148     sed '
58149       N
58150       s,$,-,
58151       : loop
58152       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
58153       t loop
58154       s,-$,,
58155       s,^['$as_cr_digits']*\n,,
58156     ' >$as_me.lineno &&
58157   chmod +x $as_me.lineno ||
58158     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
58159 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
58160    { (exit 1); exit 1; }; }
58161
58162   # Don't try to exec as it changes $[0], causing all sort of problems
58163   # (the dirname of $[0] is not the place where we might find the
58164   # original and so on.  Autoconf is especially sensible to this).
58165   . ./$as_me.lineno
58166   # Exit status is that of the last command.
58167   exit
58168 }
58169
58170
58171 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
58172   *c*,-n*) ECHO_N= ECHO_C='
58173 ' ECHO_T='      ' ;;
58174   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
58175   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
58176 esac
58177
58178 if expr a : '\(a\)' >/dev/null 2>&1; then
58179   as_expr=expr
58180 else
58181   as_expr=false
58182 fi
58183
58184 rm -f conf$$ conf$$.exe conf$$.file
58185 echo >conf$$.file
58186 if ln -s conf$$.file conf$$ 2>/dev/null; then
58187   # We could just check for DJGPP; but this test a) works b) is more generic
58188   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
58189   if test -f conf$$.exe; then
58190     # Don't use ln at all; we don't have any links
58191     as_ln_s='cp -p'
58192   else
58193     as_ln_s='ln -s'
58194   fi
58195 elif ln conf$$.file conf$$ 2>/dev/null; then
58196   as_ln_s=ln
58197 else
58198   as_ln_s='cp -p'
58199 fi
58200 rm -f conf$$ conf$$.exe conf$$.file
58201
58202 if mkdir -p . 2>/dev/null; then
58203   as_mkdir_p=:
58204 else
58205   as_mkdir_p=false
58206 fi
58207
58208 as_executable_p="test -f"
58209
58210 # Sed expression to map a string onto a valid CPP name.
58211 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
58212
58213 # Sed expression to map a string onto a valid variable name.
58214 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
58215
58216
58217 # IFS
58218 # We need space, tab and new line, in precisely that order.
58219 as_nl='
58220 '
58221 IFS="   $as_nl"
58222
58223 # CDPATH.
58224 $as_unset CDPATH
58225
58226 exec 6>&1
58227
58228 # Open the log real soon, to keep \$[0] and so on meaningful, and to
58229 # report actual input values of CONFIG_FILES etc. instead of their
58230 # values after options handling.  Logging --version etc. is OK.
58231 exec 5>>config.log
58232 {
58233   echo
58234   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
58235 ## Running $as_me. ##
58236 _ASBOX
58237 } >&5
58238 cat >&5 <<_CSEOF
58239
58240 This file was extended by package-unused $as_me version-unused, which was
58241 generated by GNU Autoconf 2.57.  Invocation command line was
58242
58243   CONFIG_FILES    = $CONFIG_FILES
58244   CONFIG_HEADERS  = $CONFIG_HEADERS
58245   CONFIG_LINKS    = $CONFIG_LINKS
58246   CONFIG_COMMANDS = $CONFIG_COMMANDS
58247   $ $0 $@
58248
58249 _CSEOF
58250 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
58251 echo >&5
58252 _ACEOF
58253
58254 # Files that config.status was made for.
58255 if test -n "$ac_config_files"; then
58256   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
58257 fi
58258
58259 if test -n "$ac_config_headers"; then
58260   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
58261 fi
58262
58263 if test -n "$ac_config_links"; then
58264   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
58265 fi
58266
58267 if test -n "$ac_config_commands"; then
58268   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
58269 fi
58270
58271 cat >>$CONFIG_STATUS <<\_ACEOF
58272
58273 ac_cs_usage="\
58274 \`$as_me' instantiates files from templates according to the
58275 current configuration.
58276
58277 Usage: $0 [OPTIONS] [FILE]...
58278
58279   -h, --help       print this help, then exit
58280   -V, --version    print version number, then exit
58281   -q, --quiet      do not print progress messages
58282   -d, --debug      don't remove temporary files
58283       --recheck    update $as_me by reconfiguring in the same conditions
58284   --file=FILE[:TEMPLATE]
58285                    instantiate the configuration file FILE
58286   --header=FILE[:TEMPLATE]
58287                    instantiate the configuration header FILE
58288
58289 Configuration files:
58290 $config_files
58291
58292 Configuration headers:
58293 $config_headers
58294
58295 Configuration commands:
58296 $config_commands
58297
58298 Report bugs to <bug-autoconf@gnu.org>."
58299 _ACEOF
58300
58301 cat >>$CONFIG_STATUS <<_ACEOF
58302 ac_cs_version="\\
58303 package-unused config.status version-unused
58304 configured by $0, generated by GNU Autoconf 2.57,
58305   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
58306
58307 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
58308 Free Software Foundation, Inc.
58309 This config.status script is free software; the Free Software Foundation
58310 gives unlimited permission to copy, distribute and modify it."
58311 srcdir=$srcdir
58312 INSTALL="$INSTALL"
58313 _ACEOF
58314
58315 cat >>$CONFIG_STATUS <<\_ACEOF
58316 # If no file are specified by the user, then we need to provide default
58317 # value.  By we need to know if files were specified by the user.
58318 ac_need_defaults=:
58319 while test $# != 0
58320 do
58321   case $1 in
58322   --*=*)
58323     ac_option=`expr "x$1" : 'x\([^=]*\)='`
58324     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
58325     ac_shift=:
58326     ;;
58327   -*)
58328     ac_option=$1
58329     ac_optarg=$2
58330     ac_shift=shift
58331     ;;
58332   *) # This is not an option, so the user has probably given explicit
58333      # arguments.
58334      ac_option=$1
58335      ac_need_defaults=false;;
58336   esac
58337
58338   case $ac_option in
58339   # Handling of the options.
58340 _ACEOF
58341 cat >>$CONFIG_STATUS <<\_ACEOF
58342   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
58343     ac_cs_recheck=: ;;
58344   --version | --vers* | -V )
58345     echo "$ac_cs_version"; exit 0 ;;
58346   --he | --h)
58347     # Conflict between --help and --header
58348     { { echo "$as_me:$LINENO: error: ambiguous option: $1
58349 Try \`$0 --help' for more information." >&5
58350 echo "$as_me: error: ambiguous option: $1
58351 Try \`$0 --help' for more information." >&2;}
58352    { (exit 1); exit 1; }; };;
58353   --help | --hel | -h )
58354     echo "$ac_cs_usage"; exit 0 ;;
58355   --debug | --d* | -d )
58356     debug=: ;;
58357   --file | --fil | --fi | --f )
58358     $ac_shift
58359     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
58360     ac_need_defaults=false;;
58361   --header | --heade | --head | --hea )
58362     $ac_shift
58363     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
58364     ac_need_defaults=false;;
58365   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
58366   | -silent | --silent | --silen | --sile | --sil | --si | --s)
58367     ac_cs_silent=: ;;
58368
58369   # This is an error.
58370   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
58371 Try \`$0 --help' for more information." >&5
58372 echo "$as_me: error: unrecognized option: $1
58373 Try \`$0 --help' for more information." >&2;}
58374    { (exit 1); exit 1; }; } ;;
58375
58376   *) ac_config_targets="$ac_config_targets $1" ;;
58377
58378   esac
58379   shift
58380 done
58381
58382 ac_configure_extra_args=
58383
58384 if $ac_cs_silent; then
58385   exec 6>/dev/null
58386   ac_configure_extra_args="$ac_configure_extra_args --silent"
58387 fi
58388
58389 _ACEOF
58390 cat >>$CONFIG_STATUS <<_ACEOF
58391 if \$ac_cs_recheck; then
58392   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
58393   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
58394 fi
58395
58396 _ACEOF
58397
58398 cat >>$CONFIG_STATUS <<_ACEOF
58399 #
58400 # INIT-COMMANDS section.
58401 #
58402
58403
58404 srcdir="$srcdir"
58405 host="$host"
58406 target="$target"
58407 with_multisubdir="$with_multisubdir"
58408 with_multisrctop="$with_multisrctop"
58409 with_target_subdir="$with_target_subdir"
58410 ac_configure_args="${multilib_arg} ${ac_configure_args}"
58411 multi_basedir="$multi_basedir"
58412 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
58413 CC="$CC"
58414
58415 # Variables needed in config.status (file generation) which aren't already
58416 # passed by autoconf.
58417 SUBDIRS="$SUBDIRS"
58418
58419
58420 _ACEOF
58421
58422
58423
58424 cat >>$CONFIG_STATUS <<\_ACEOF
58425 for ac_config_target in $ac_config_targets
58426 do
58427   case "$ac_config_target" in
58428   # Handling of arguments.
58429   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
58430   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
58431   "libmath/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmath/Makefile" ;;
58432   "libsupc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES libsupc++/Makefile" ;;
58433   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
58434   "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
58435   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
58436   "scripts/check_survey" ) CONFIG_FILES="$CONFIG_FILES scripts/check_survey" ;;
58437   "scripts/testsuite_flags" ) CONFIG_FILES="$CONFIG_FILES scripts/testsuite_flags" ;;
58438   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
58439   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
58440   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
58441   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
58442 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
58443    { (exit 1); exit 1; }; };;
58444   esac
58445 done
58446
58447 # If the user did not use the arguments to specify the items to instantiate,
58448 # then the envvar interface is used.  Set only those that are not.
58449 # We use the long form for the default assignment because of an extremely
58450 # bizarre bug on SunOS 4.1.3.
58451 if $ac_need_defaults; then
58452   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
58453   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
58454   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
58455 fi
58456
58457 # Have a temporary directory for convenience.  Make it in the build tree
58458 # simply because there is no reason to put it here, and in addition,
58459 # creating and moving files from /tmp can sometimes cause problems.
58460 # Create a temporary directory, and hook for its removal unless debugging.
58461 $debug ||
58462 {
58463   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
58464   trap '{ (exit 1); exit 1; }' 1 2 13 15
58465 }
58466
58467 # Create a (secure) tmp directory for tmp files.
58468
58469 {
58470   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
58471   test -n "$tmp" && test -d "$tmp"
58472 }  ||
58473 {
58474   tmp=./confstat$$-$RANDOM
58475   (umask 077 && mkdir $tmp)
58476 } ||
58477 {
58478    echo "$me: cannot create a temporary directory in ." >&2
58479    { (exit 1); exit 1; }
58480 }
58481
58482 _ACEOF
58483
58484 cat >>$CONFIG_STATUS <<_ACEOF
58485
58486 #
58487 # CONFIG_FILES section.
58488 #
58489
58490 # No need to generate the scripts if there are no CONFIG_FILES.
58491 # This happens for instance when ./config.status config.h
58492 if test -n "\$CONFIG_FILES"; then
58493   # Protect against being on the right side of a sed subst in config.status.
58494   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
58495    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
58496 s,@SHELL@,$SHELL,;t t
58497 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
58498 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
58499 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
58500 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
58501 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
58502 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
58503 s,@exec_prefix@,$exec_prefix,;t t
58504 s,@prefix@,$prefix,;t t
58505 s,@program_transform_name@,$program_transform_name,;t t
58506 s,@bindir@,$bindir,;t t
58507 s,@sbindir@,$sbindir,;t t
58508 s,@libexecdir@,$libexecdir,;t t
58509 s,@datadir@,$datadir,;t t
58510 s,@sysconfdir@,$sysconfdir,;t t
58511 s,@sharedstatedir@,$sharedstatedir,;t t
58512 s,@localstatedir@,$localstatedir,;t t
58513 s,@libdir@,$libdir,;t t
58514 s,@includedir@,$includedir,;t t
58515 s,@oldincludedir@,$oldincludedir,;t t
58516 s,@infodir@,$infodir,;t t
58517 s,@mandir@,$mandir,;t t
58518 s,@build_alias@,$build_alias,;t t
58519 s,@host_alias@,$host_alias,;t t
58520 s,@target_alias@,$target_alias,;t t
58521 s,@DEFS@,$DEFS,;t t
58522 s,@ECHO_C@,$ECHO_C,;t t
58523 s,@ECHO_N@,$ECHO_N,;t t
58524 s,@ECHO_T@,$ECHO_T,;t t
58525 s,@LIBS@,$LIBS,;t t
58526 s,@libtool_VERSION@,$libtool_VERSION,;t t
58527 s,@multi_basedir@,$multi_basedir,;t t
58528 s,@build@,$build,;t t
58529 s,@build_cpu@,$build_cpu,;t t
58530 s,@build_vendor@,$build_vendor,;t t
58531 s,@build_os@,$build_os,;t t
58532 s,@host@,$host,;t t
58533 s,@host_cpu@,$host_cpu,;t t
58534 s,@host_vendor@,$host_vendor,;t t
58535 s,@host_os@,$host_os,;t t
58536 s,@target@,$target,;t t
58537 s,@target_cpu@,$target_cpu,;t t
58538 s,@target_vendor@,$target_vendor,;t t
58539 s,@target_os@,$target_os,;t t
58540 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
58541 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
58542 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
58543 s,@CYGPATH_W@,$CYGPATH_W,;t t
58544 s,@PACKAGE@,$PACKAGE,;t t
58545 s,@VERSION@,$VERSION,;t t
58546 s,@ACLOCAL@,$ACLOCAL,;t t
58547 s,@AUTOCONF@,$AUTOCONF,;t t
58548 s,@AUTOMAKE@,$AUTOMAKE,;t t
58549 s,@AUTOHEADER@,$AUTOHEADER,;t t
58550 s,@MAKEINFO@,$MAKEINFO,;t t
58551 s,@AMTAR@,$AMTAR,;t t
58552 s,@install_sh@,$install_sh,;t t
58553 s,@STRIP@,$STRIP,;t t
58554 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
58555 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
58556 s,@AWK@,$AWK,;t t
58557 s,@SET_MAKE@,$SET_MAKE,;t t
58558 s,@am__leading_dot@,$am__leading_dot,;t t
58559 s,@glibcxx_builddir@,$glibcxx_builddir,;t t
58560 s,@glibcxx_srcdir@,$glibcxx_srcdir,;t t
58561 s,@toplevel_srcdir@,$toplevel_srcdir,;t t
58562 s,@CC@,$CC,;t t
58563 s,@ac_ct_CC@,$ac_ct_CC,;t t
58564 s,@EXEEXT@,$EXEEXT,;t t
58565 s,@OBJEXT@,$OBJEXT,;t t
58566 s,@CXX@,$CXX,;t t
58567 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
58568 s,@CFLAGS@,$CFLAGS,;t t
58569 s,@CXXFLAGS@,$CXXFLAGS,;t t
58570 s,@LN_S@,$LN_S,;t t
58571 s,@AS@,$AS,;t t
58572 s,@ac_ct_AS@,$ac_ct_AS,;t t
58573 s,@AR@,$AR,;t t
58574 s,@ac_ct_AR@,$ac_ct_AR,;t t
58575 s,@RANLIB@,$RANLIB,;t t
58576 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
58577 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
58578 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
58579 s,@MAINT@,$MAINT,;t t
58580 s,@LIBTOOL@,$LIBTOOL,;t t
58581 s,@CXXCPP@,$CXXCPP,;t t
58582 s,@CPPFLAGS@,$CPPFLAGS,;t t
58583 s,@enable_shared@,$enable_shared,;t t
58584 s,@enable_static@,$enable_static,;t t
58585 s,@GLIBCXX_HOSTED_TRUE@,$GLIBCXX_HOSTED_TRUE,;t t
58586 s,@GLIBCXX_HOSTED_FALSE@,$GLIBCXX_HOSTED_FALSE,;t t
58587 s,@LIBUNWIND_FLAG@,$LIBUNWIND_FLAG,;t t
58588 s,@GLIBCXX_BUILD_PCH_TRUE@,$GLIBCXX_BUILD_PCH_TRUE,;t t
58589 s,@GLIBCXX_BUILD_PCH_FALSE@,$GLIBCXX_BUILD_PCH_FALSE,;t t
58590 s,@glibcxx_PCHFLAGS@,$glibcxx_PCHFLAGS,;t t
58591 s,@CSTDIO_H@,$CSTDIO_H,;t t
58592 s,@FPOS_H@,$FPOS_H,;t t
58593 s,@BASIC_FILE_H@,$BASIC_FILE_H,;t t
58594 s,@BASIC_FILE_CC@,$BASIC_FILE_CC,;t t
58595 s,@CPP@,$CPP,;t t
58596 s,@EGREP@,$EGREP,;t t
58597 s,@check_msgfmt@,$check_msgfmt,;t t
58598 s,@glibcxx_MOFILES@,$glibcxx_MOFILES,;t t
58599 s,@glibcxx_POFILES@,$glibcxx_POFILES,;t t
58600 s,@glibcxx_localedir@,$glibcxx_localedir,;t t
58601 s,@USE_NLS@,$USE_NLS,;t t
58602 s,@CLOCALE_H@,$CLOCALE_H,;t t
58603 s,@CCODECVT_H@,$CCODECVT_H,;t t
58604 s,@CMESSAGES_H@,$CMESSAGES_H,;t t
58605 s,@CCODECVT_CC@,$CCODECVT_CC,;t t
58606 s,@CCOLLATE_CC@,$CCOLLATE_CC,;t t
58607 s,@CCTYPE_CC@,$CCTYPE_CC,;t t
58608 s,@CMESSAGES_CC@,$CMESSAGES_CC,;t t
58609 s,@CMONEY_CC@,$CMONEY_CC,;t t
58610 s,@CNUMERIC_CC@,$CNUMERIC_CC,;t t
58611 s,@CTIME_H@,$CTIME_H,;t t
58612 s,@CTIME_CC@,$CTIME_CC,;t t
58613 s,@CLOCALE_CC@,$CLOCALE_CC,;t t
58614 s,@CLOCALE_INTERNAL_H@,$CLOCALE_INTERNAL_H,;t t
58615 s,@C_INCLUDE_DIR@,$C_INCLUDE_DIR,;t t
58616 s,@GLIBCXX_C_HEADERS_C_TRUE@,$GLIBCXX_C_HEADERS_C_TRUE,;t t
58617 s,@GLIBCXX_C_HEADERS_C_FALSE@,$GLIBCXX_C_HEADERS_C_FALSE,;t t
58618 s,@GLIBCXX_C_HEADERS_C_STD_TRUE@,$GLIBCXX_C_HEADERS_C_STD_TRUE,;t t
58619 s,@GLIBCXX_C_HEADERS_C_STD_FALSE@,$GLIBCXX_C_HEADERS_C_STD_FALSE,;t t
58620 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE,;t t
58621 s,@GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE@,$GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE,;t t
58622 s,@glibcxx_thread_h@,$glibcxx_thread_h,;t t
58623 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
58624 s,@GLIBCXX_BUILD_DEBUG_TRUE@,$GLIBCXX_BUILD_DEBUG_TRUE,;t t
58625 s,@GLIBCXX_BUILD_DEBUG_FALSE@,$GLIBCXX_BUILD_DEBUG_FALSE,;t t
58626 s,@EXTRA_CXX_FLAGS@,$EXTRA_CXX_FLAGS,;t t
58627 s,@WERROR@,$WERROR,;t t
58628 s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t
58629 s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t
58630 s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t
58631 s,@LIBMATHOBJS@,$LIBMATHOBJS,;t t
58632 s,@SYMVER_MAP@,$SYMVER_MAP,;t t
58633 s,@port_specific_symbol_files@,$port_specific_symbol_files,;t t
58634 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE,;t t
58635 s,@GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE@,$GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE,;t t
58636 s,@baseline_dir@,$baseline_dir,;t t
58637 s,@GLIBCXX_TEST_WCHAR_T_TRUE@,$GLIBCXX_TEST_WCHAR_T_TRUE,;t t
58638 s,@GLIBCXX_TEST_WCHAR_T_FALSE@,$GLIBCXX_TEST_WCHAR_T_FALSE,;t t
58639 s,@GLIBCXX_TEST_ABI_TRUE@,$GLIBCXX_TEST_ABI_TRUE,;t t
58640 s,@GLIBCXX_TEST_ABI_FALSE@,$GLIBCXX_TEST_ABI_FALSE,;t t
58641 s,@ATOMICITY_INC_SRCDIR@,$ATOMICITY_INC_SRCDIR,;t t
58642 s,@FPOS_INC_SRCDIR@,$FPOS_INC_SRCDIR,;t t
58643 s,@OS_INC_SRCDIR@,$OS_INC_SRCDIR,;t t
58644 s,@glibcxx_prefixdir@,$glibcxx_prefixdir,;t t
58645 s,@gxx_include_dir@,$gxx_include_dir,;t t
58646 s,@glibcxx_toolexecdir@,$glibcxx_toolexecdir,;t t
58647 s,@glibcxx_toolexeclibdir@,$glibcxx_toolexeclibdir,;t t
58648 s,@GLIBCXX_INCLUDES@,$GLIBCXX_INCLUDES,;t t
58649 s,@TOPLEVEL_INCLUDES@,$TOPLEVEL_INCLUDES,;t t
58650 s,@OPTIMIZE_CXXFLAGS@,$OPTIMIZE_CXXFLAGS,;t t
58651 s,@WARN_FLAGS@,$WARN_FLAGS,;t t
58652 s,@LIBSUPCXX_PICFLAGS@,$LIBSUPCXX_PICFLAGS,;t t
58653 s,@LIBOBJS@,$LIBOBJS,;t t
58654 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
58655 CEOF
58656
58657 _ACEOF
58658
58659   cat >>$CONFIG_STATUS <<\_ACEOF
58660   # Split the substitutions into bite-sized pieces for seds with
58661   # small command number limits, like on Digital OSF/1 and HP-UX.
58662   ac_max_sed_lines=48
58663   ac_sed_frag=1 # Number of current file.
58664   ac_beg=1 # First line for current file.
58665   ac_end=$ac_max_sed_lines # Line after last line for current file.
58666   ac_more_lines=:
58667   ac_sed_cmds=
58668   while $ac_more_lines; do
58669     if test $ac_beg -gt 1; then
58670       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
58671     else
58672       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
58673     fi
58674     if test ! -s $tmp/subs.frag; then
58675       ac_more_lines=false
58676     else
58677       # The purpose of the label and of the branching condition is to
58678       # speed up the sed processing (if there are no `@' at all, there
58679       # is no need to browse any of the substitutions).
58680       # These are the two extra sed commands mentioned above.
58681       (echo ':t
58682   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
58683       if test -z "$ac_sed_cmds"; then
58684         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
58685       else
58686         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
58687       fi
58688       ac_sed_frag=`expr $ac_sed_frag + 1`
58689       ac_beg=$ac_end
58690       ac_end=`expr $ac_end + $ac_max_sed_lines`
58691     fi
58692   done
58693   if test -z "$ac_sed_cmds"; then
58694     ac_sed_cmds=cat
58695   fi
58696 fi # test -n "$CONFIG_FILES"
58697
58698 _ACEOF
58699 cat >>$CONFIG_STATUS <<\_ACEOF
58700 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
58701   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
58702   case $ac_file in
58703   - | *:- | *:-:* ) # input from stdin
58704         cat >$tmp/stdin
58705         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
58706         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
58707   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
58708         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
58709   * )   ac_file_in=$ac_file.in ;;
58710   esac
58711
58712   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
58713   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
58714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
58715          X"$ac_file" : 'X\(//\)[^/]' \| \
58716          X"$ac_file" : 'X\(//\)$' \| \
58717          X"$ac_file" : 'X\(/\)' \| \
58718          .     : '\(.\)' 2>/dev/null ||
58719 echo X"$ac_file" |
58720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
58721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
58722           /^X\(\/\/\)$/{ s//\1/; q; }
58723           /^X\(\/\).*/{ s//\1/; q; }
58724           s/.*/./; q'`
58725   { if $as_mkdir_p; then
58726     mkdir -p "$ac_dir"
58727   else
58728     as_dir="$ac_dir"
58729     as_dirs=
58730     while test ! -d "$as_dir"; do
58731       as_dirs="$as_dir $as_dirs"
58732       as_dir=`(dirname "$as_dir") 2>/dev/null ||
58733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
58734          X"$as_dir" : 'X\(//\)[^/]' \| \
58735          X"$as_dir" : 'X\(//\)$' \| \
58736          X"$as_dir" : 'X\(/\)' \| \
58737          .     : '\(.\)' 2>/dev/null ||
58738 echo X"$as_dir" |
58739     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
58740           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
58741           /^X\(\/\/\)$/{ s//\1/; q; }
58742           /^X\(\/\).*/{ s//\1/; q; }
58743           s/.*/./; q'`
58744     done
58745     test ! -n "$as_dirs" || mkdir $as_dirs
58746   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
58747 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
58748    { (exit 1); exit 1; }; }; }
58749
58750   ac_builddir=.
58751
58752 if test "$ac_dir" != .; then
58753   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
58754   # A "../" for each directory in $ac_dir_suffix.
58755   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
58756 else
58757   ac_dir_suffix= ac_top_builddir=
58758 fi
58759
58760 case $srcdir in
58761   .)  # No --srcdir option.  We are building in place.
58762     ac_srcdir=.
58763     if test -z "$ac_top_builddir"; then
58764        ac_top_srcdir=.
58765     else
58766        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
58767     fi ;;
58768   [\\/]* | ?:[\\/]* )  # Absolute path.
58769     ac_srcdir=$srcdir$ac_dir_suffix;
58770     ac_top_srcdir=$srcdir ;;
58771   *) # Relative path.
58772     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
58773     ac_top_srcdir=$ac_top_builddir$srcdir ;;
58774 esac
58775 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
58776 # absolute.
58777 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
58778 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
58779 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
58780 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
58781
58782
58783   case $INSTALL in
58784   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
58785   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
58786   esac
58787
58788   if test x"$ac_file" != x-; then
58789     { echo "$as_me:$LINENO: creating $ac_file" >&5
58790 echo "$as_me: creating $ac_file" >&6;}
58791     rm -f "$ac_file"
58792   fi
58793   # Let's still pretend it is `configure' which instantiates (i.e., don't
58794   # use $as_me), people would be surprised to read:
58795   #    /* config.h.  Generated by config.status.  */
58796   if test x"$ac_file" = x-; then
58797     configure_input=
58798   else
58799     configure_input="$ac_file.  "
58800   fi
58801   configure_input=$configure_input"Generated from `echo $ac_file_in |
58802                                      sed 's,.*/,,'` by configure."
58803
58804   # First look for the input files in the build tree, otherwise in the
58805   # src tree.
58806   ac_file_inputs=`IFS=:
58807     for f in $ac_file_in; do
58808       case $f in
58809       -) echo $tmp/stdin ;;
58810       [\\/$]*)
58811          # Absolute (can't be DOS-style, as IFS=:)
58812          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
58813 echo "$as_me: error: cannot find input file: $f" >&2;}
58814    { (exit 1); exit 1; }; }
58815          echo $f;;
58816       *) # Relative
58817          if test -f "$f"; then
58818            # Build tree
58819            echo $f
58820          elif test -f "$srcdir/$f"; then
58821            # Source tree
58822            echo $srcdir/$f
58823          else
58824            # /dev/null tree
58825            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
58826 echo "$as_me: error: cannot find input file: $f" >&2;}
58827    { (exit 1); exit 1; }; }
58828          fi;;
58829       esac
58830     done` || { (exit 1); exit 1; }
58831 _ACEOF
58832 cat >>$CONFIG_STATUS <<_ACEOF
58833   sed "$ac_vpsub
58834 $extrasub
58835 _ACEOF
58836 cat >>$CONFIG_STATUS <<\_ACEOF
58837 :t
58838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
58839 s,@configure_input@,$configure_input,;t t
58840 s,@srcdir@,$ac_srcdir,;t t
58841 s,@abs_srcdir@,$ac_abs_srcdir,;t t
58842 s,@top_srcdir@,$ac_top_srcdir,;t t
58843 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
58844 s,@builddir@,$ac_builddir,;t t
58845 s,@abs_builddir@,$ac_abs_builddir,;t t
58846 s,@top_builddir@,$ac_top_builddir,;t t
58847 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
58848 s,@INSTALL@,$ac_INSTALL,;t t
58849 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
58850   rm -f $tmp/stdin
58851   if test x"$ac_file" != x-; then
58852     mv $tmp/out $ac_file
58853   else
58854     cat $tmp/out
58855     rm -f $tmp/out
58856   fi
58857
58858   # Run the commands associated with the file.
58859   case $ac_file in
58860     scripts/check_survey ) chmod +x scripts/check_survey ;;
58861     scripts/testsuite_flags ) chmod +x scripts/testsuite_flags ;;
58862   esac
58863 done
58864 _ACEOF
58865 cat >>$CONFIG_STATUS <<\_ACEOF
58866
58867 #
58868 # CONFIG_HEADER section.
58869 #
58870
58871 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
58872 # NAME is the cpp macro being defined and VALUE is the value it is being given.
58873 #
58874 # ac_d sets the value in "#define NAME VALUE" lines.
58875 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
58876 ac_dB='[        ].*$,\1#\2'
58877 ac_dC=' '
58878 ac_dD=',;t'
58879 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
58880 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
58881 ac_uB='$,\1#\2define\3'
58882 ac_uC=' '
58883 ac_uD=',;t'
58884
58885 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
58886   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
58887   case $ac_file in
58888   - | *:- | *:-:* ) # input from stdin
58889         cat >$tmp/stdin
58890         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
58891         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
58892   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
58893         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
58894   * )   ac_file_in=$ac_file.in ;;
58895   esac
58896
58897   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
58898 echo "$as_me: creating $ac_file" >&6;}
58899
58900   # First look for the input files in the build tree, otherwise in the
58901   # src tree.
58902   ac_file_inputs=`IFS=:
58903     for f in $ac_file_in; do
58904       case $f in
58905       -) echo $tmp/stdin ;;
58906       [\\/$]*)
58907          # Absolute (can't be DOS-style, as IFS=:)
58908          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
58909 echo "$as_me: error: cannot find input file: $f" >&2;}
58910    { (exit 1); exit 1; }; }
58911          echo $f;;
58912       *) # Relative
58913          if test -f "$f"; then
58914            # Build tree
58915            echo $f
58916          elif test -f "$srcdir/$f"; then
58917            # Source tree
58918            echo $srcdir/$f
58919          else
58920            # /dev/null tree
58921            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
58922 echo "$as_me: error: cannot find input file: $f" >&2;}
58923    { (exit 1); exit 1; }; }
58924          fi;;
58925       esac
58926     done` || { (exit 1); exit 1; }
58927   # Remove the trailing spaces.
58928   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
58929
58930 _ACEOF
58931
58932 # Transform confdefs.h into two sed scripts, `conftest.defines' and
58933 # `conftest.undefs', that substitutes the proper values into
58934 # config.h.in to produce config.h.  The first handles `#define'
58935 # templates, and the second `#undef' templates.
58936 # And first: Protect against being on the right side of a sed subst in
58937 # config.status.  Protect against being in an unquoted here document
58938 # in config.status.
58939 rm -f conftest.defines conftest.undefs
58940 # Using a here document instead of a string reduces the quoting nightmare.
58941 # Putting comments in sed scripts is not portable.
58942 #
58943 # `end' is used to avoid that the second main sed command (meant for
58944 # 0-ary CPP macros) applies to n-ary macro definitions.
58945 # See the Autoconf documentation for `clear'.
58946 cat >confdef2sed.sed <<\_ACEOF
58947 s/[\\&,]/\\&/g
58948 s,[\\$`],\\&,g
58949 t clear
58950 : clear
58951 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
58952 t end
58953 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
58954 : end
58955 _ACEOF
58956 # If some macros were called several times there might be several times
58957 # the same #defines, which is useless.  Nevertheless, we may not want to
58958 # sort them, since we want the *last* AC-DEFINE to be honored.
58959 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
58960 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
58961 rm -f confdef2sed.sed
58962
58963 # This sed command replaces #undef with comments.  This is necessary, for
58964 # example, in the case of _POSIX_SOURCE, which is predefined and required
58965 # on some systems where configure will not decide to define it.
58966 cat >>conftest.undefs <<\_ACEOF
58967 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
58968 _ACEOF
58969
58970 # Break up conftest.defines because some shells have a limit on the size
58971 # of here documents, and old seds have small limits too (100 cmds).
58972 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
58973 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
58974 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
58975 echo '  :' >>$CONFIG_STATUS
58976 rm -f conftest.tail
58977 while grep . conftest.defines >/dev/null
58978 do
58979   # Write a limited-size here document to $tmp/defines.sed.
58980   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
58981   # Speed up: don't consider the non `#define' lines.
58982   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
58983   # Work around the forget-to-reset-the-flag bug.
58984   echo 't clr' >>$CONFIG_STATUS
58985   echo ': clr' >>$CONFIG_STATUS
58986   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
58987   echo 'CEOF
58988   sed -f $tmp/defines.sed $tmp/in >$tmp/out
58989   rm -f $tmp/in
58990   mv $tmp/out $tmp/in
58991 ' >>$CONFIG_STATUS
58992   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
58993   rm -f conftest.defines
58994   mv conftest.tail conftest.defines
58995 done
58996 rm -f conftest.defines
58997 echo '  fi # grep' >>$CONFIG_STATUS
58998 echo >>$CONFIG_STATUS
58999
59000 # Break up conftest.undefs because some shells have a limit on the size
59001 # of here documents, and old seds have small limits too (100 cmds).
59002 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
59003 rm -f conftest.tail
59004 while grep . conftest.undefs >/dev/null
59005 do
59006   # Write a limited-size here document to $tmp/undefs.sed.
59007   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
59008   # Speed up: don't consider the non `#undef'
59009   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
59010   # Work around the forget-to-reset-the-flag bug.
59011   echo 't clr' >>$CONFIG_STATUS
59012   echo ': clr' >>$CONFIG_STATUS
59013   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
59014   echo 'CEOF
59015   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
59016   rm -f $tmp/in
59017   mv $tmp/out $tmp/in
59018 ' >>$CONFIG_STATUS
59019   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
59020   rm -f conftest.undefs
59021   mv conftest.tail conftest.undefs
59022 done
59023 rm -f conftest.undefs
59024
59025 cat >>$CONFIG_STATUS <<\_ACEOF
59026   # Let's still pretend it is `configure' which instantiates (i.e., don't
59027   # use $as_me), people would be surprised to read:
59028   #    /* config.h.  Generated by config.status.  */
59029   if test x"$ac_file" = x-; then
59030     echo "/* Generated by configure.  */" >$tmp/config.h
59031   else
59032     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
59033   fi
59034   cat $tmp/in >>$tmp/config.h
59035   rm -f $tmp/in
59036   if test x"$ac_file" != x-; then
59037     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
59038       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
59039 echo "$as_me: $ac_file is unchanged" >&6;}
59040     else
59041       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
59042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
59043          X"$ac_file" : 'X\(//\)[^/]' \| \
59044          X"$ac_file" : 'X\(//\)$' \| \
59045          X"$ac_file" : 'X\(/\)' \| \
59046          .     : '\(.\)' 2>/dev/null ||
59047 echo X"$ac_file" |
59048     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
59049           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
59050           /^X\(\/\/\)$/{ s//\1/; q; }
59051           /^X\(\/\).*/{ s//\1/; q; }
59052           s/.*/./; q'`
59053       { if $as_mkdir_p; then
59054     mkdir -p "$ac_dir"
59055   else
59056     as_dir="$ac_dir"
59057     as_dirs=
59058     while test ! -d "$as_dir"; do
59059       as_dirs="$as_dir $as_dirs"
59060       as_dir=`(dirname "$as_dir") 2>/dev/null ||
59061 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
59062          X"$as_dir" : 'X\(//\)[^/]' \| \
59063          X"$as_dir" : 'X\(//\)$' \| \
59064          X"$as_dir" : 'X\(/\)' \| \
59065          .     : '\(.\)' 2>/dev/null ||
59066 echo X"$as_dir" |
59067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
59068           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
59069           /^X\(\/\/\)$/{ s//\1/; q; }
59070           /^X\(\/\).*/{ s//\1/; q; }
59071           s/.*/./; q'`
59072     done
59073     test ! -n "$as_dirs" || mkdir $as_dirs
59074   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
59075 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
59076    { (exit 1); exit 1; }; }; }
59077
59078       rm -f $ac_file
59079       mv $tmp/config.h $ac_file
59080     fi
59081   else
59082     cat $tmp/config.h
59083     rm -f $tmp/config.h
59084   fi
59085 # Compute $ac_file's index in $config_headers.
59086 _am_stamp_count=1
59087 for _am_header in $config_headers :; do
59088   case $_am_header in
59089     $ac_file | $ac_file:* )
59090       break ;;
59091     * )
59092       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
59093   esac
59094 done
59095 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
59096 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
59097          X$ac_file : 'X\(//\)[^/]' \| \
59098          X$ac_file : 'X\(//\)$' \| \
59099          X$ac_file : 'X\(/\)' \| \
59100          .     : '\(.\)' 2>/dev/null ||
59101 echo X$ac_file |
59102     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
59103           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
59104           /^X\(\/\/\)$/{ s//\1/; q; }
59105           /^X\(\/\).*/{ s//\1/; q; }
59106           s/.*/./; q'`/stamp-h$_am_stamp_count
59107 done
59108 _ACEOF
59109 cat >>$CONFIG_STATUS <<\_ACEOF
59110
59111 #
59112 # CONFIG_COMMANDS section.
59113 #
59114 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
59115   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
59116   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
59117   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
59118 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
59119          X"$ac_dest" : 'X\(//\)[^/]' \| \
59120          X"$ac_dest" : 'X\(//\)$' \| \
59121          X"$ac_dest" : 'X\(/\)' \| \
59122          .     : '\(.\)' 2>/dev/null ||
59123 echo X"$ac_dest" |
59124     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
59125           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
59126           /^X\(\/\/\)$/{ s//\1/; q; }
59127           /^X\(\/\).*/{ s//\1/; q; }
59128           s/.*/./; q'`
59129   ac_builddir=.
59130
59131 if test "$ac_dir" != .; then
59132   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
59133   # A "../" for each directory in $ac_dir_suffix.
59134   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
59135 else
59136   ac_dir_suffix= ac_top_builddir=
59137 fi
59138
59139 case $srcdir in
59140   .)  # No --srcdir option.  We are building in place.
59141     ac_srcdir=.
59142     if test -z "$ac_top_builddir"; then
59143        ac_top_srcdir=.
59144     else
59145        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
59146     fi ;;
59147   [\\/]* | ?:[\\/]* )  # Absolute path.
59148     ac_srcdir=$srcdir$ac_dir_suffix;
59149     ac_top_srcdir=$srcdir ;;
59150   *) # Relative path.
59151     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
59152     ac_top_srcdir=$ac_top_builddir$srcdir ;;
59153 esac
59154 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
59155 # absolute.
59156 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
59157 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
59158 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
59159 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
59160
59161
59162   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
59163 echo "$as_me: executing $ac_dest commands" >&6;}
59164   case $ac_dest in
59165     default-1 )
59166 # Only add multilib support code if we just rebuilt the top-level
59167 # Makefile.
59168 case " $CONFIG_FILES " in
59169  *" Makefile "*)
59170    ac_file=Makefile . ${multi_basedir}/config-ml.in
59171    ;;
59172 esac ;;
59173     default ) if test -n "$CONFIG_FILES"; then
59174    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
59175    # that multilib installs will end up installed in the correct place.
59176    # The testsuite needs it for multilib-aware ABI baseline files.
59177    # To work around this not being passed down from config-ml.in ->
59178    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
59179    # append it here.  Only modify Makefiles that have just been created.
59180    #
59181    # Also, get rid of this simulated-VPATH thing that automake does.
59182    cat > vpsed << \_EOF
59183 s!`test -f '$<' || echo '$(srcdir)/'`!!
59184 _EOF
59185    for i in $SUBDIRS; do
59186     case $CONFIG_FILES in
59187      *${i}/Makefile*)
59188        #echo "Adding MULTISUBDIR to $i/Makefile"
59189        sed -f vpsed $i/Makefile > tmp
59190        grep '^MULTISUBDIR =' Makefile >> tmp
59191        mv tmp $i/Makefile
59192        ;;
59193     esac
59194    done
59195    rm vpsed
59196  fi
59197  (cd include && ${MAKE-make})
59198  ;;
59199   esac
59200 done
59201 _ACEOF
59202
59203 cat >>$CONFIG_STATUS <<\_ACEOF
59204
59205 { (exit 0); exit 0; }
59206 _ACEOF
59207 chmod +x $CONFIG_STATUS
59208 ac_clean_files=$ac_clean_files_save
59209
59210
59211 # configure is writing to config.log, and then calls config.status.
59212 # config.status does its own redirection, appending to config.log.
59213 # Unfortunately, on DOS this fails, as config.log is still kept open
59214 # by configure, so config.status won't be able to write to it; its
59215 # output is simply discarded.  So we exec the FD to /dev/null,
59216 # effectively closing config.log, so it can be properly (re)opened and
59217 # appended to by config.status.  When coming back to configure, we
59218 # need to make the FD available again.
59219 if test "$no_create" != yes; then
59220   ac_cs_success=:
59221   ac_config_status_args=
59222   test "$silent" = yes &&
59223     ac_config_status_args="$ac_config_status_args --quiet"
59224   exec 5>/dev/null
59225   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
59226   exec 5>>config.log
59227   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
59228   # would make configure fail if this is the last instruction.
59229   $ac_cs_success || { (exit 1); exit 1; }
59230 fi
59231